/* ==========================================================================
   TARGETED FIXES: FREEMIUM BANNER & UNLOCK PRICE BOX HIGH CONTRAST
   ========================================================================== */

/* 1. Freemium Teaser Banner (Screenshot 1 Fix: Prevents black-on-navy text) */
.freemium-banner,
[data-theme="light"] .freemium-banner,
[data-theme="dark"] .freemium-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  border: 1.5px solid #f59e0b !important;
  border-radius: var(--radius-lg, 14px) !important;
  padding: 1.35rem 1.75rem !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.freemium-banner h3,
[data-theme="light"] .freemium-banner h3,
[data-theme="dark"] .freemium-banner h3 {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 1.12rem !important;
  margin: 0 0 0.35rem 0 !important;
}

.freemium-banner p,
[data-theme="light"] .freemium-banner p,
[data-theme="dark"] .freemium-banner p {
  color: #e2e8f0 !important;
  font-weight: 500 !important;
  font-size: 0.88rem !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

.freemium-banner .btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3) !important;
  white-space: nowrap !important;
}

/* 2. Unlock Modal Price Box (Screenshot 2 Fix: Prevents white-on-white text) */
[data-theme="light"] .unlock-price-box {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: var(--radius-md, 10px) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .price-label {
  color: #0f172a !important; /* Bold solid black/charcoal */
  font-weight: 800 !important;
  font-size: 1rem !important;
}

[data-theme="light"] .price-sub {
  color: #334155 !important; /* High-contrast dark slate */
  font-weight: 500 !important;
  font-size: 0.82rem !important;
}

[data-theme="light"] .price-amount {
  color: #b45309 !important; /* Deep bold golden amber for crisp contrast */
  font-weight: 800 !important;
}

[data-theme="dark"] .unlock-price-box {
  background: #1e293b !important;
  border: 1.5px solid #475569 !important;
}

[data-theme="dark"] .price-label {
  color: #ffffff !important;
  font-weight: 800 !important;
}

[data-theme="dark"] .price-sub {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .price-amount {
  color: #fbbf24 !important;
}

/* 3. Unlock Modal Body & Bank Details in Light Mode */
[data-theme="light"] .bank-details-card {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .bank-row span {
  color: #334155 !important;
  font-weight: 600 !important;
}

[data-theme="light"] .bank-row strong {
  color: #0f172a !important;
  font-weight: 800 !important;
}

[data-theme="light"] #acct-number-text {
  color: #0f172a !important;
  background: #e2e8f0 !important;
  padding: 0.2rem 0.5rem !important;
  border-radius: 4px !important;
}

[data-theme="light"] .code-redemption-box p {
  color: #334155 !important;
}

[data-theme="light"] .code-redemption-box h4,
[data-theme="light"] .payment-steps-box h4 {
  color: #0f172a !important;
}

[data-theme="light"] .student-input,
[data-theme="light"] .code-input {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .student-input::placeholder,
[data-theme="light"] .code-input::placeholder {
  color: #64748b !important;
}


/* Floating Scroll Unlock Notification */
.floating-unlock-bar {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

.floating-unlock-bar.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.floating-unlock-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(245, 158, 11, 0.6);
  padding: 0.45rem 0.55rem 0.45rem 0.95rem;
  border-radius: 9999px;
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.floating-unlock-inner:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.7), 0 0 26px rgba(245, 158, 11, 0.4);
  border-color: #f59e0b;
}

.floating-unlock-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #f8fafc;
}

.floating-unlock-text .unlock-icon {
  width: 16px;
  height: 16px;
  stroke: #f59e0b;
  flex-shrink: 0;
}

.btn-floating-unlock {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-floating-unlock:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  transform: scale(1.02);
}

[data-theme="light"] .floating-unlock-inner {
  background: rgba(255, 255, 255, 0.96);
  border-color: #d97706;
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.15), 0 0 16px rgba(217, 119, 6, 0.2);
}

[data-theme="light"] .floating-unlock-text {
  color: #0f172a;
}

@media (max-width: 640px) {
  .floating-unlock-bar {
    right: auto;
    left: 50%;
    transform: translate(-50%, 20px) scale(0.96);
    bottom: 1rem;
    width: max-content;
    max-width: 94vw;
  }
  .floating-unlock-bar.visible {
    transform: translate(-50%, 0) scale(1);
  }
  .floating-unlock-text span {
    display: none;
  }
}


/* Daily 5 Pro & Completed Status Styles */
.badge-pro-tag {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  margin-left: 0.4rem;
  vertical-align: middle;
}

[data-theme="light"] .badge-pro-tag {
  background: #fef3c7 !important;
  color: #b45309 !important;
  border-color: #fde68a !important;
}

.btn-daily5.btn-daily5-locked {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3) !important;
}

.btn-daily5.btn-daily5-completed {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  cursor: pointer;
}

[data-theme="light"] .btn-daily5.btn-daily5-completed {
  background: #dcfce7 !important;
  color: #15803d !important;
  border-color: #86efac !important;
}


/* Option Locked in Daily 5 */
.option-card.option-locked {
  cursor: default !important;
  pointer-events: none;
}

/* Highlighted words (e.g. the price) inside the dark banner must stay readable */
.freemium-banner p strong {
  color: #fbbf24 !important;
}
