/* ==========================================================================
   💎 NEXTEDU NEXUS — ADVANCED SUBSCRIPTION & ELITE MEMBERSHIP ENGINE (v7.0.0)
   Obsidian + Glass + Cyber Gold + Radiant Aqua EdTech Design System
   Hardware-accelerated 60FPS • Zero Jank • Mobile-First Responsive
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

/* ==========================================================================
   1. NEXUS SUBSCRIPTION TOKENS (Unified Theme System)
   ========================================================================== */
:root, [data-theme="dark"] {
    --nexus-bg: #050807;
    --nexus-bg-alt: #0c1210;
    --nexus-bg-gradient: #050807;
    --nexus-surface: #0c1210;
    --nexus-surface-card: #111a16;
    --nexus-surface-hover: #162019;
    --nexus-surface-solid: #0c1210;
    --nexus-glass: #0c1210;
    --nexus-glass-border: #192a20;
    --nexus-glass-border-hover: rgba(34, 197, 94, 0.45);
    --nexus-text: #edfdf4;
    --nexus-text-muted: #9ab0a4;
    --nexus-text-dim: #647a6f;
    --nexus-cyan: #22c55e;
    --nexus-blue: #3b82f6;
    --nexus-purple: #22c55e;
    --nexus-amber: #f59e0b;
    --nexus-emerald: #22c55e;
    --nexus-rose: #ef4444;
    --nexus-gold: #eab308;
    --nexus-gold-glow: rgba(234, 179, 8, 0.2);
    --nexus-primary: #22c55e;
    --nexus-primary-hover: #16a34a;
    --nexus-primary-light: rgba(34, 197, 94, 0.12);
    
    /* Plan Specific Theme Variables */
    --card-iron-bg: #111a16;
    --card-iron-border: #192a20;
    
    --card-silver-bg: #111a16;
    --card-silver-border: rgba(34, 197, 94, 0.35);
    --card-silver-glow: rgba(34, 197, 94, 0.15);
    
    --card-gold-bg: #111a16;
    --card-gold-border: rgba(234, 179, 8, 0.45);
    --card-gold-glow: rgba(234, 179, 8, 0.2);
    --input-bg: #111a16;
    
    --nexus-shadow: 0 16px 44px rgba(0, 0, 0, 0.6);
    --nexus-glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --nexus-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --nexus-font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --nexus-font-mono: 'Inter', monospace;
    --nexus-max-width: 1120px;
    --nexus-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
    --nexus-bg: #f8f5ff;
    --nexus-bg-alt: #fbf9ff;
    --nexus-bg-gradient: #f8f5ff;
    --nexus-surface: #ffffff;
    --nexus-surface-card: #ffffff;
    --nexus-surface-hover: #f3eeff;
    --nexus-surface-solid: #ffffff;
    --nexus-glass: #ffffff;
    --nexus-glass-border: #e7ddff;
    --nexus-glass-border-hover: rgba(109, 40, 217, 0.4);
    --nexus-text: #171321;
    --nexus-text-muted: #625b71;
    --nexus-text-dim: #9d8fb0;
    --nexus-cyan: #6d28d9;
    --nexus-blue: #4f46e5;
    --nexus-purple: #6d28d9;
    --nexus-amber: #d97706;
    --nexus-emerald: #16a34a;
    --nexus-rose: #dc2626;
    --nexus-gold: #d97706;
    --nexus-gold-glow: rgba(217, 119, 6, 0.18);
    --nexus-primary: #6d28d9;
    --nexus-primary-hover: #5b21b6;
    --nexus-primary-light: #ede9fe;
    
    --card-iron-bg: #ffffff;
    --card-iron-border: #e7ddff;
    
    --card-silver-bg: #ffffff;
    --card-silver-border: rgba(109, 40, 217, 0.25);
    --card-silver-glow: rgba(109, 40, 217, 0.1);
    
    --card-gold-bg: #ffffff;
    --card-gold-border: rgba(217, 119, 6, 0.45);
    --card-gold-glow: rgba(217, 119, 6, 0.18);
    --input-bg: #fbf9ff;
    
    --nexus-shadow: 0 16px 40px rgba(47, 24, 90, 0.08);
    --nexus-glass-shadow: 0 8px 30px 0 rgba(47, 24, 90, 0.06);
}

/* ==========================================================================
   2. GLOBAL BODY & 60FPS AMBIENT HARDWARE CANVAS
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body.dashboard-body {
    margin: 0;
    padding: 0 0 calc(78px + env(safe-area-inset-bottom, 0px)) 0;
    min-height: 100vh;
    background-color: var(--nexus-bg);
    background-image: var(--nexus-bg-gradient);
    background-attachment: fixed;
    color: var(--nexus-text);
    font-family: var(--nexus-font);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ambient Hardware-Accelerated Glow Orbs */
.ambient-bg-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    animation: ambientFloat 24s ease-in-out infinite alternate;
}

.ambient-orb-1 {
    width: 480px;
    height: 480px;
    top: -120px;
    left: -100px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, transparent 70%);
}

.ambient-orb-2 {
    width: 440px;
    height: 440px;
    top: 40%;
    right: -120px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, transparent 70%);
    animation-delay: -8s;
}

.ambient-orb-3 {
    width: 380px;
    height: 380px;
    bottom: 5%;
    left: 15%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, transparent 70%);
    animation-delay: -16s;
}

@keyframes ambientFloat {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(25px, 35px, 0) scale(1.08); }
    100% { transform: translate3d(-20px, -25px, 0) scale(0.94); }
}

/* ==========================================================================
   3. APP HEADER & NAVIGATION
   ========================================================================== */
.main-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--nexus-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--nexus-glass-border);
    transition: var(--nexus-ease);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-top-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9999px;
    background: var(--nexus-surface);
    border: 1px solid var(--nexus-glass-border);
    color: var(--nexus-text);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-top-back:hover {
    background: var(--nexus-surface-hover);
    border-color: var(--nexus-primary);
    color: var(--nexus-primary);
    transform: translateX(-2px);
}

.btn-top-back i {
    font-size: 0.82rem;
    transition: transform 0.2s ease;
}

.btn-top-back:hover i {
    transform: translateX(-3px);
}

.brand-text-block {
    display: flex;
    align-items: center;
}

.header-logo-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25) 0%, rgba(56, 189, 248, 0.2) 100%);
    border: 1px solid var(--nexus-gold-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nexus-gold);
    font-size: 1.25rem;
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.2);
}

.header-title-box {
    display: flex;
    flex-direction: column;
}

.header-app-title {
    font-family: var(--nexus-font-mono);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--nexus-text);
}

.header-app-title span {
    color: var(--nexus-gold);
}

.header-app-sub {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--nexus-text-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Header Wallet Pill */
.wallet-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 20px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: var(--nexus-cyan);
    font-weight: 700;
    font-size: 0.88rem;
    font-family: var(--nexus-font-heading);
    cursor: pointer;
    transition: all 0.2s ease;
}

.wallet-pill:hover {
    background: rgba(56, 189, 248, 0.18);
    border-color: var(--nexus-cyan);
    transform: translateY(-1px);
}

.wallet-pill i {
    font-size: 0.95rem;
}

/* Header Theme Toggle & Avatar */
.glossy-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--nexus-surface-card);
    border: 1px solid var(--nexus-glass-border);
    color: var(--nexus-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.glossy-btn:hover {
    background: var(--nexus-surface-hover);
    border-color: var(--nexus-glass-border-hover);
    transform: translateY(-1px);
}

.header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid var(--nexus-glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
}

.header-avatar:hover {
    border-color: var(--nexus-cyan);
    transform: scale(1.05);
}

.header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   4. MAIN SUBSCRIPTION CONTAINER & HERO
   ========================================================================== */
.sub-container {
    max-width: var(--nexus-max-width);
    margin: 0 auto;
    padding: 24px 16px 50px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Security & Renewal Control Bar */
.auto-pay-status-bar {
    background: var(--nexus-surface-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--nexus-glass-border);
    border-radius: 18px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--nexus-glass-shadow);
    transition: var(--nexus-ease);
}

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

.auto-pay-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nexus-cyan);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.auto-pay-text-group {
    display: flex;
    flex-direction: column;
}

.auto-pay-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--nexus-text);
}

.auto-pay-desc {
    font-size: 0.76rem;
    color: var(--nexus-text-muted);
    margin: 2px 0 0;
}

/* Switch Slider */
.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(100, 116, 139, 0.35);
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-round::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 3px;
    background-color: #ffffff;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.switch input:checked + .slider-round {
    background-color: var(--nexus-emerald);
    border-color: rgba(16, 185, 129, 0.4);
}

.switch input:checked + .slider-round::before {
    transform: translateX(24px);
}

/* ==========================================================================
   5. HERO & CURRENT PLAN HUD
   ========================================================================== */
.hero-section {
    text-align: center;
    padding: 10px 0 6px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid var(--nexus-gold-glow);
    color: var(--nexus-gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.hero-title {
    font-family: var(--nexus-font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--nexus-text);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--nexus-text-muted);
    max-width: 580px;
    margin: 0 auto;
}

/* Current Plan HUD Card */
.current-plan-hud {
    background: var(--nexus-surface-card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--nexus-glass-border);
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: var(--nexus-glass-shadow);
}

.hud-identity {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hud-icon-badge {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--nexus-cyan);
}

.hud-icon-badge.gold {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
    color: var(--nexus-gold);
}

.hud-title-wrap {
    display: flex;
    flex-direction: column;
}

.hud-tag {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--nexus-text-muted);
}

.hud-plan-name {
    font-family: var(--nexus-font-mono);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--nexus-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hud-status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(16, 185, 129, 0.15);
    color: var(--nexus-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.hud-status-badge.inactive {
    background: rgba(148, 163, 184, 0.15);
    color: var(--nexus-text-muted);
    border-color: rgba(148, 163, 184, 0.3);
}

.hud-meta-grid {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hud-meta-item {
    display: flex;
    flex-direction: column;
}

.hud-meta-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--nexus-text-muted);
    text-transform: uppercase;
}

.hud-meta-value {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--nexus-text);
}

/* ==========================================================================
   6. SEGMENTED BILLING CYCLE SWITCHER
   ========================================================================== */
.cycle-switcher-container {
    display: flex;
    justify-content: center;
    margin: 4px 0 10px;
}

.cycle-switcher {
    display: inline-flex;
    background: var(--nexus-surface-card);
    border: 1px solid var(--nexus-glass-border);
    border-radius: 16px;
    padding: 5px;
    gap: 4px;
    box-shadow: var(--nexus-glass-shadow);
}

.cycle-btn {
    border: none;
    background: transparent;
    color: var(--nexus-text-muted);
    padding: 8px 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s var(--nexus-ease);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--nexus-font-heading);
}

.cycle-btn:hover {
    color: var(--nexus-text);
    background: rgba(255, 255, 255, 0.04);
}

.cycle-btn.active {
    background: linear-gradient(135deg, var(--nexus-cyan) 0%, var(--nexus-blue) 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

.cycle-btn .cycle-save-badge {
    background: rgba(251, 191, 36, 0.2);
    color: var(--nexus-gold);
    border: 1px solid rgba(251, 191, 36, 0.3);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 2px;
}

.cycle-btn.active .cycle-save-badge {
    background: #ffffff;
    color: #0284c7;
    border-color: #ffffff;
}

/* ==========================================================================
   7. TWO-TIER MEMBERSHIP CARDS (GRID & BASE - FREE & PRIME)
   ========================================================================== */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 460px));
    justify-content: center;
    gap: 28px;
    align-items: stretch;
    max-width: 960px;
    margin: 0 auto;
}

.plan-card {
    border-radius: 26px;
    padding: 28px 24px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s var(--nexus-ease), border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    will-change: transform;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--nexus-shadow);
}

/* Dynamic Tier Corner Ribbon */
.tier-corner-ribbon {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Card Header & Emblems */
.plan-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.tier-emblem-wrap {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.tier-title {
    font-family: var(--nexus-font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--nexus-text);
}

.tier-subtitle {
    font-size: 0.8rem;
    color: var(--nexus-text-muted);
    margin-bottom: 14px;
}

/* Price Box & Multi-Cycle Presentation */
.price-box {
    position: relative;
    padding: 14px 0;
    border-top: 1px solid var(--nexus-glass-border);
    border-bottom: 1px solid var(--nexus-glass-border);
    margin-bottom: 20px;
}

.price-display-main {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-currency {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--nexus-cyan);
    font-family: var(--nexus-font-heading);
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--nexus-text);
    font-family: var(--nexus-font-heading);
    line-height: 1;
}

.price-period {
    font-size: 0.85rem;
    color: var(--nexus-text-muted);
    font-weight: 600;
}

.discount-tag {
    position: absolute;
    top: -12px;
    right: 0;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.pricing-cycles-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.price-row-silver, .price-row-gold {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--nexus-text-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.price-row-silver.active-cycle-silver {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
    color: var(--nexus-text);
    font-weight: 700;
}

.price-row-gold.active-cycle-gold {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.35);
    color: var(--nexus-text);
    font-weight: 700;
}

/* Feature Groups & Rows */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.feature-group-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--nexus-text-dim);
    margin: 8px 0 2px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--nexus-text);
    line-height: 1.35;
}

.plan-features li i.fa-circle-check {
    color: var(--nexus-emerald);
    font-size: 0.92rem;
    flex-shrink: 0;
}

.plan-features li.disabled-feature {
    color: var(--nexus-text-dim);
    opacity: 0.6;
}

.plan-features li.disabled-feature i {
    color: var(--nexus-rose);
    opacity: 0.7;
    font-size: 0.92rem;
    flex-shrink: 0;
}

.vip-feature-highlight-box {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(251, 191, 36, 0.05) 100%);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 700;
    color: var(--nexus-gold) !important;
}

.vip-feature-highlight-box i {
    color: var(--nexus-gold) !important;
}

/* Plan Buy Buttons */
.buy-btn {
    width: 100%;
    padding: 15px;
    border-radius: 16px;
    border: none;
    font-family: var(--nexus-font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s var(--nexus-ease);
}

.buy-btn:disabled, .buy-btn.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   8. INDIVIDUAL PLAN THEME IMPLEMENTATIONS
   ========================================================================== */

/* 🪨 1. FREE STARTER (Obsidian / Iron) */
.plan-card-iron {
    background: var(--card-iron-bg);
    border: 1px solid var(--card-iron-border);
}

.ribbon-iron {
    background: rgba(148, 163, 184, 0.15);
    color: var(--nexus-text-muted);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.tier-emblem-iron {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: var(--nexus-text-muted);
}

.buy-btn-iron {
    background: rgba(148, 163, 184, 0.12);
    color: var(--nexus-text-muted);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

/* ⚔️ 2. POLISHED SILVER / AQUA (Standard Tier) */
.plan-card-silver {
    background: var(--card-silver-bg);
    border: 1.5px solid var(--card-silver-border);
    box-shadow: 0 16px 44px var(--card-silver-glow);
}

.plan-card-silver:hover {
    border-color: var(--nexus-cyan);
    box-shadow: 0 20px 50px rgba(56, 189, 248, 0.3);
}

.ribbon-silver {
    background: rgba(56, 189, 248, 0.2);
    color: var(--nexus-cyan);
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.tier-emblem-silver {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(59, 130, 246, 0.2) 100%);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: var(--nexus-cyan);
}

.buy-btn-silver {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

.buy-btn-silver:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.55);
}

/* 👑💎 3. ROYAL GOLD & DIAMOND (Prime VIP Tier) */
.plan-card-diamond-gold {
    background: var(--card-gold-bg);
    border: 1.5px solid var(--card-gold-border);
    box-shadow: 0 16px 44px var(--card-gold-glow);
    position: relative;
}

.plan-card-diamond-gold::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.plan-card-diamond-gold:hover {
    border-color: var(--nexus-gold);
    box-shadow: 0 22px 55px rgba(251, 191, 36, 0.38);
}

.ribbon-gold {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3) 0%, rgba(217, 119, 6, 0.3) 100%);
    color: var(--nexus-gold);
    border: 1px solid rgba(251, 191, 36, 0.55);
}

.tier-emblem-gold {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3) 0%, rgba(217, 119, 6, 0.25) 100%);
    border: 1px solid rgba(251, 191, 36, 0.5);
    color: var(--nexus-gold);
}

.tag-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.buy-btn-gold-diamond {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 6px 22px rgba(245, 158, 11, 0.45);
}

.buy-btn-gold-diamond:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(245, 158, 11, 0.6);
}

/* ==========================================================================
   9. FEATURE COMPARISON MATRIX SECTION
   ========================================================================== */
.comparison-section {
    background: var(--nexus-surface-card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--nexus-glass-border);
    border-radius: 26px;
    padding: 28px 24px;
    box-shadow: var(--nexus-glass-shadow);
    margin-top: 10px;
}

.comparison-header {
    text-align: center;
    margin-bottom: 24px;
}

.comparison-title {
    font-family: var(--nexus-font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--nexus-text);
    margin: 0 0 6px 0;
}

.comparison-subtitle {
    font-size: 0.85rem;
    color: var(--nexus-text-muted);
}

.comparison-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid var(--nexus-glass-border);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th, .comparison-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--nexus-glass-border);
    font-size: 0.86rem;
}

.comparison-table th {
    background: rgba(255, 255, 255, 0.03);
    font-family: var(--nexus-font-heading);
    font-weight: 800;
    color: var(--nexus-text);
    text-align: center;
}

.comparison-table th:first-child {
    text-align: left;
}

.comparison-table td {
    text-align: center;
    color: var(--nexus-text);
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.comparison-category-row td {
    background: rgba(56, 189, 248, 0.05);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--nexus-cyan);
    padding: 10px 18px;
}

/* ==========================================================================
   10. PURCHASE CONFIRMATION MODAL (Forced Cinematic Dark Glass)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 7, 6, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Confirm Modal Content (Base & Dark Theme) */
.confirm-modal-content {
    border-radius: 28px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: modalSlideUp 0.35s var(--nexus-ease);
    box-sizing: border-box;
}

[data-theme="dark"] .confirm-modal-content {
    background: #191210 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(16, 185, 129, 0.15) !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .confirm-modal-content * {
    color-scheme: dark;
}

[data-theme="dark"] .confirm-modal-content .cycle-option {
    background: #241a16 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .confirm-modal-content .cycle-option.active {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: #10b981 !important;
}

[data-theme="dark"] .confirm-modal-content .modal-checkbox-container,
[data-theme="dark"] .confirm-modal-content .purchase-fee-breakdown-card {
    background: #201714 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Light Theme Overrides for Subscription Modal */
[data-theme="light"] .confirm-modal-content {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.14) !important;
    color: #0f172a !important;
}

[data-theme="light"] .confirm-modal-content * {
    color-scheme: light;
}

[data-theme="light"] .confirm-modal-content .modal-title {
    color: #0f172a !important;
}

[data-theme="light"] .confirm-modal-content .cycle-option {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}

[data-theme="light"] .confirm-modal-content .cycle-option.active {
    background: #f0fdf4 !important;
    border-color: #10b981 !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15) !important;
}

[data-theme="light"] .confirm-modal-content .modal-checkbox-container,
[data-theme="light"] .confirm-modal-content .purchase-fee-breakdown-card {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}

[data-theme="light"] .confirm-modal-content .purchase-fee-row {
    color: #64748b !important;
}

[data-theme="light"] .confirm-modal-content .purchase-fee-row.fee-total-row {
    color: #0f172a !important;
    border-top-color: #cbd5e1 !important;
}

[data-theme="light"] .confirm-modal-content .modal-btn-cancel {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}

/* Dual Payment Method Styles for Subscription Modal */
.confirm-modal-content .portal-payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 12px 0 8px 0;
}

.confirm-modal-content .portal-payment-method-card {
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 4px;
}

[data-theme="dark"] .confirm-modal-content .portal-payment-method-card {
    background: #241a16 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    color: #f8fafc !important;
}

[data-theme="light"] .confirm-modal-content .portal-payment-method-card {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #0f172a !important;
}

.confirm-modal-content .portal-payment-method-card.active#subMethodWallet {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.12) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15) !important;
}

[data-theme="light"] .confirm-modal-content .portal-payment-method-card.active#subMethodWallet {
    background: #f0fdf4 !important;
}

.confirm-modal-content .portal-payment-method-card.active#subMethodRazorpay {
    border-color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.12) !important;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.15) !important;
}

[data-theme="light"] .confirm-modal-content .portal-payment-method-card.active#subMethodRazorpay {
    background: #f0f9ff !important;
    border-color: #0284c7 !important;
}

.confirm-modal-content .pay-method-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.confirm-modal-content .pay-method-title {
    font-size: 0.88rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}

.confirm-modal-content .pay-method-sub {
    font-size: 0.72rem;
    opacity: 0.8;
}

.confirm-modal-content .pay-zero-fee-badge {
    font-size: 0.65rem;
    font-weight: 800;
    background: rgba(16, 185, 129, 0.18);
    color: #10b981;
    padding: 2px 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

[data-theme="light"] .confirm-modal-content .pay-zero-fee-badge {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.confirm-modal-content {
    font-size: 0.65rem;
    font-weight: 800;
    background: rgba(56, 189, 248, 0.15);
    color: #0284c7;
    padding: 2px 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.confirm-modal-content .wallet-zero-fee-banner {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

[data-theme="light"] .confirm-modal-content .wallet-zero-fee-banner {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.modal-header-visual {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-header-icon {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid var(--nexus-gold-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nexus-gold);
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.modal-title {
    font-family: var(--nexus-font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 4px;
    color: var(--nexus-text);
}

/* Modal Cycle Selector Pills */
.cycle-selectors {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.cycle-option {
    background: var(--nexus-surface);
    border: 1px solid var(--nexus-glass-border);
    border-radius: 14px;
    padding: 12px 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cycle-option:hover {
    border-color: var(--nexus-glass-border-hover);
}

.cycle-option.active {
    background: rgba(56, 189, 248, 0.12) !important;
    border-color: var(--nexus-cyan) !important;
}

/* Modal Checkbox Container */
.modal-checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--nexus-surface);
    border: 1px solid var(--nexus-glass-border);
    padding: 12px 16px;
    border-radius: 14px;
    cursor: pointer;
}

.modal-checkbox-container input {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--nexus-cyan);
}

.modal-checkbox-container label {
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--nexus-text);
}

/* Purchase Fee Breakdown Card */
.purchase-fee-breakdown-card {
    background: var(--nexus-surface);
    border: 1px solid var(--nexus-glass-border);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.purchase-fee-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--nexus-text-muted);
}

.fee-divider {
    height: 1px;
    background: var(--nexus-glass-border);
    margin: 4px 0;
}

.fee-total-row {
    color: var(--nexus-text);
    font-weight: 800;
    font-size: 1.05rem;
}

.fee-total-row span:last-child {
    color: var(--nexus-cyan);
    font-family: var(--nexus-font-heading);
    font-size: 1.25rem;
}

/* Modal Wallet Balance Sufficiency Status */
.modal-wallet-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
}

.modal-wallet-status-bar.sufficient {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--nexus-emerald);
}

.modal-wallet-status-bar.insufficient {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--nexus-rose);
}

.modal-recharge-btn {
    background: var(--nexus-rose);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}

/* Modal Action Buttons */
.modal-actions {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
    margin-top: 4px;
}

.modal-btn-cancel {
    padding: 14px;
    border-radius: 14px;
    background: transparent;
    border: 1px solid var(--nexus-glass-border);
    color: var(--nexus-text-muted);
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--nexus-text);
}

.modal-btn-confirm {
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--nexus-cyan) 0%, var(--nexus-blue) 100%);
    border: none;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.35);
    transition: all 0.25s ease;
}

.modal-btn-confirm:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.5);
}

.modal-btn-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   11. TOAST NOTIFICATIONS
   ========================================================================== */
#toast-container {
    position: fixed;
    bottom: calc(85px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    width: 90%;
    max-width: 400px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--nexus-glass-border);
    border-radius: 14px;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    animation: toastIn 0.3s var(--nexus-ease);
}

.toast.success {
    border-color: rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.toast.fade-out {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translate3d(0, 15px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* ==========================================================================
   12. MOBILE RESPONSIVENESS (< 992px & < 640px)
   ========================================================================== */
@media (max-width: 992px) {
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 540px;
        margin: 0 auto;
    }
    
    .current-plan-hud {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hud-meta-grid {
        width: 100%;
        justify-content: space-between;
        padding-top: 10px;
        border-top: 1px solid var(--nexus-glass-border);
    }
}

@media (max-width: 640px) {
    .sub-container {
        padding: 14px 12px 60px 12px !important;
        gap: 16px !important;
    }

    .hero-title {
        font-size: 1.35rem !important;
    }

    .hero-subtitle {
        font-size: 0.8rem !important;
        line-height: 1.45 !important;
    }

    .auto-pay-status-bar {
        padding: 10px 14px !important;
        border-radius: 14px !important;
    }

    .auto-pay-icon-wrap {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.05rem !important;
    }

    .auto-pay-title {
        font-size: 0.84rem !important;
    }

    .auto-pay-desc {
        font-size: 0.7rem !important;
    }

    .current-plan-hud {
        padding: 12px 14px !important;
        border-radius: 16px !important;
    }

    .hud-icon-badge {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.15rem !important;
    }

    .hud-plan-name {
        font-size: 1.05rem !important;
    }

    .hud-meta-value {
        font-size: 0.82rem !important;
    }

    .cycle-btn {
        padding: 6px 12px !important;
        font-size: 0.78rem !important;
    }

    .plan-card {
        padding: 18px 14px 16px !important;
        border-radius: 18px !important;
    }

    .tier-emblem-wrap {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.3rem !important;
        border-radius: 12px !important;
        margin-bottom: 10px !important;
    }

    .tier-title {
        font-size: 1.25rem !important;
        margin-bottom: 4px !important;
    }

    .tier-subtitle {
        font-size: 0.74rem !important;
        margin-bottom: 10px !important;
    }

    .price-box {
        padding: 10px 0 !important;
        margin-bottom: 14px !important;
    }

    .price-currency {
        font-size: 1.1rem !important;
    }

    .price-amount {
        font-size: 1.85rem !important;
    }

    .price-period {
        font-size: 0.75rem !important;
    }

    .feature-item {
        font-size: 0.76rem !important;
        gap: 8px !important;
    }

    .btn-choose-plan {
        padding: 11px 16px !important;
        font-size: 0.84rem !important;
    }

    .confirm-modal-content {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        max-height: 88vh;
        margin: 0;
        padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
        animation: sheetUp 0.35s var(--nexus-ease);
    }
    
    @keyframes sheetUp {
        from { transform: translate3d(0, 100%, 0); }
        to { transform: translate3d(0, 0, 0); }
    }
    
    .cycle-selectors {
        grid-template-columns: 1fr;
    }
    
    .cycle-option {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
}

/* ==========================================================================
   13. REDUCED MOTION PREFERENCE
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .ambient-orb {
        animation: none !important;
    }
}
