/* ==========================================================================
   2DWATCH - YELLOW & BLACK THEME OVERRIDES & CPA OFFER LOCKER MODAL
   ========================================================================== */

:root {
  --cpa-yellow: #ffc700;
  --cpa-yellow-hover: #e0b000;
  --cpa-yellow-glow: rgba(255, 199, 0, 0.4);
  --cpa-bg-dark: #08080a;
  --cpa-bg-card: #14141c;
  --cpa-text: #ffffff;
  --cpa-text-muted: #a0a5b5;
  --cpa-green: #00e676;
}

/* Hide old AdBlueMedia / third-party locker overlays completely */
#cl_modal, #cl_content, #cl_wrapper, 
.cl_modal, .cl_content, .cl_wrapper, 
iframe[src*="cloudfront.net"], iframe[src*="adblue"], 
[id*="adblue"], [class*="adblue"],
div[id*="locker"]:not(#customLockerModal):not(#customLockerModalBackdrop),
div[class*="locker"]:not(#customLockerModal):not(#customLockerModalBackdrop):not(.locker-modal):not(.locker-header):not(.locker-subtitle):not(.locker-icon-glow):not(.locker-progress-bar):not(.locker-footer):not(.locker-security):not(.locker-modal-backdrop) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Floating API Offers Settings Button (Hidden) */
.floating-cpa-config-btn {
  display: none !important;
}

.floating-cpa-config-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 30px rgba(255, 199, 0, 0.6);
  background: #ffd438;
}

/* Lock Modal Backdrop */
.locker-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 4, 6, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.locker-modal-backdrop.hidden {
  display: none !important;
}

.locker-modal {
  background: linear-gradient(145deg, #181822, #101016);
  border: 1px solid rgba(255, 199, 0, 0.4);
  border-radius: 20px;
  width: 100%;
  max-width: 580px;
  padding: 36px 32px 26px 32px;
  position: relative;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95), 0 0 30px var(--cpa-yellow-glow);
  color: #fff;
}

.locker-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--cpa-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.locker-close-btn:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.locker-header {
  text-align: center;
  margin-bottom: 22px;
}

.locker-icon-glow {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(255, 199, 0, 0.15);
  border: 2px solid var(--cpa-yellow);
  color: var(--cpa-yellow);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: 0 0 30px var(--cpa-yellow-glow);
}

.locker-header h2 {
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.locker-subtitle {
  font-size: 0.9rem;
  color: var(--cpa-text-muted);
}

.locker-progress-bar {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 22px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.status-pending { color: var(--cpa-yellow); }
.status-complete { color: var(--cpa-green); }

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cpa-yellow), var(--cpa-green));
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* CPA OFFERS LIST */
.cpa-offers-container {
  margin-bottom: 22px;
}

.cpa-loading {
  text-align: center;
  padding: 24px;
  color: var(--cpa-text-muted);
}

.cpa-loading i {
  font-size: 1.8rem;
  color: var(--cpa-yellow);
  margin-bottom: 10px;
}

.cpa-offers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cpa-offer-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.cpa-offer-item:hover {
  background: rgba(255, 199, 0, 0.1);
  border-color: rgba(255, 199, 0, 0.4);
  transform: translateX(4px);
}

.offer-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.offer-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cpa-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.offer-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.offer-info p {
  font-size: 0.78rem;
  color: var(--cpa-text-muted);
}

.offer-payout-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(0, 230, 118, 0.15);
  color: var(--cpa-green);
  padding: 2px 8px;
  border-radius: 4px;
}

.offer-action-btn {
  background: var(--cpa-yellow);
  color: #000;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.locker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.locker-security {
  font-size: 0.8rem;
  color: var(--cpa-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.locker-security i {
  color: var(--cpa-green);
}

.btn-quick-test {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-quick-test:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* CONFIG MODAL */
.config-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.config-modal-backdrop.hidden {
  display: none !important;
}

.config-modal {
  background: #14141c;
  border: 1px solid rgba(255, 199, 0, 0.4);
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  padding: 32px;
  color: #fff;
  box-shadow: 0 25px 70px rgba(0,0,0,0.9), 0 0 25px var(--cpa-yellow-glow);
}

.config-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.config-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--cpa-yellow);
  display: flex;
  align-items: center;
  gap: 10px;
}

.config-close-btn {
  background: none;
  border: none;
  color: var(--cpa-text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.config-desc {
  font-size: 0.88rem;
  color: var(--cpa-text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-input, .form-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--cpa-yellow);
}

.form-help {
  display: block;
  font-size: 0.75rem;
  color: var(--cpa-text-muted);
  margin-top: 4px;
}

.config-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn-save {
  background: var(--cpa-yellow);
  color: #000;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 800;
  border: none;
  cursor: pointer;
}

.btn-reset {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}
