/* ═══════════════════════════════════════════════════════════════
   PREMIUM.CSS — Polished Conversion-Focused Subscription Page
   Strict 32px Avatar · Two-Column Layout · ₹49/Month Pricing Card
   Three-Column Benefits · Accordion FAQ · Light & Dark Theme
   ═══════════════════════════════════════════════════════════════ */

:root,
[data-theme="dark"] {
  --bg: #070707;
  --card: #121212;
  --surface: #181818;
  --gold: #D4AF37;
  --gold-hover: #E3C45C;
  --gold-dim: rgba(212, 175, 55, 0.12);
  --border-default: rgba(255, 255, 255, 0.10);
  --border-gold: rgba(212, 175, 55, 0.35);
  --text-primary: #F5F5F3;
  --text-secondary: #A3A3A3;
  --text-muted: #737373;
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
  --bg: #F7F6F2;
  --card: #FFFFFF;
  --surface: #FAF9F6;
  --gold: #A77B12;
  --gold-hover: #8A650C;
  --gold-dim: rgba(167, 123, 18, 0.10);
  --border-default: rgba(23, 23, 23, 0.12);
  --border-gold: rgba(167, 123, 18, 0.30);
  --text-primary: #171717;
  --text-secondary: #555555;
  --text-muted: #777777;
  --shadow-card: 0 6px 24px rgba(0, 0, 0, 0.06);
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ─── Strict Avatar Sizing Overrides ────────────────────────── */
.nav-user-avatar {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  border-radius: 50% !important;
  border: 1.5px solid var(--gold) !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.nav-user-avatar img {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
}

/* ─── Premium Layout Container ───────────────────────────────── */
.premium-page-layout {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 24px 96px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* ─── Hero Two-Column Grid ───────────────────────────────────── */
.premium-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

/* Left Hero Content */
.hero-left-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.premium-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.premium-main-heading {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.premium-main-desc {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-highlights-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.highlight-icon {
  color: var(--gold);
  font-size: 16px;
  line-height: 1.4;
  flex-shrink: 0;
}

.highlight-item strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.highlight-item p {
  font-size: 13px;
  color: var(--text-secondary);
}

.hero-preview-box {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-card);
}

.hero-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-preview-overlay {
  position: absolute;
  bottom: 0;
  inset-x: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ─── Right Pricing Card ─────────────────────────────────────── */
.hero-right-card {
  position: sticky;
  top: 96px;
}

.pricing-card-surface {
  background: var(--card);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.card-badge-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.card-badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: #070707;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.card-plan-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.price-display-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}

.price-symbol {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
}

.price-number {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
}

.price-period-meta {
  display: flex;
  flex-direction: column;
  margin-left: 6px;
}

.price-period {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
}

.price-subtext {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
}

.renewal-policy-note {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.card-divider {
  height: 1px;
  background: var(--border-default);
  margin-bottom: 20px;
}

.card-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.card-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.card-features-list svg {
  color: var(--gold);
  flex-shrink: 0;
}

.btn-gold-full {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  background: var(--gold);
  color: #070707;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.btn-gold-full:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

.btn-gold-full:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.active-subscription-box {
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.active-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.active-badge {
  padding: 2px 8px;
  border-radius: 4px;
  background: #10B981;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
}

.active-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
}

.active-expiry-text {
  font-size: 12px;
  color: var(--text-secondary);
}

.card-trust-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-t: 1px solid var(--border-default);
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.trust-pill svg {
  color: var(--gold);
}

/* ─── Benefits Three-Column Section ─────────────────────────── */
.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.text-center { text-align: center; }

.benefits-three-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card {
  background: var(--card);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border-color 0.2s ease;
}

.benefit-card:hover {
  border-color: var(--border-gold);
}

.benefit-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.benefit-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.benefit-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Premium Presets Showcase ───────────────────────────────── */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.showcase-card {
  background: var(--card);
  border: 1px solid var(--border-default);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.showcase-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
}

.showcase-thumb-box {
  aspect-ratio: 4/3;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.showcase-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.showcase-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Accordion FAQ Section ──────────────────────────────────── */
.premium-faq-section {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.faq-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.open {
  border-color: var(--border-gold);
}

.faq-trigger {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  outline: none;
}

.faq-trigger:hover {
  color: var(--gold);
}

.faq-chevron {
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--gold);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
  padding: 0 24px;
}

.faq-item.open .faq-panel {
  max-height: 200px;
  padding-bottom: 20px;
}

.faq-panel p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Toast Notification ─────────────────────────────────────── */
.toast-notification {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--card);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  z-index: 3000;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
}

/* ─── Responsive Media Queries ───────────────────────────────── */
@media (max-width: 1024px) {
  .premium-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-right-card {
    position: static;
  }

  .premium-main-heading {
    font-size: 42px;
  }

  .showcase-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .premium-page-layout {
    padding: 72px 18px 64px;
    gap: 56px;
  }

  .premium-main-heading {
    font-size: 34px;
  }

  .price-number {
    font-size: 48px;
  }

  .benefits-three-grid {
    grid-template-columns: 1fr;
  }

  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-trust-row {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}
