/* =============================
   Pricing Page — Premium Layout
   ============================= */

.pricing-page {
    padding: 140px 0 100px;
    background: transparent;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Mesh gradient background */
.pricing-page::before {
    content: '';
    position: fixed;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-gold-glow) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.pricing-page::after {
    content: '';
    position: fixed;
    bottom: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(160, 112, 96, 0.08) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

/* Header */
.pricing-header {
    text-align: left;
    margin-bottom: 80px;
}

/* Grid */
.pricing-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

/* ─── Base Card ─────────────────────────── */
.pricing-card {
    background: linear-gradient(145deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 40px;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: all 0.6s var(--ease-silk);
    box-shadow: var(--shadow-sm);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pricing-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(196, 164, 108, 0.25);
}

.pricing-card:hover::before {
    opacity: 1;
}

/* ─── Popular Card ──────────────────────── */
.pricing-card.popular {
    background: linear-gradient(145deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border: 1px solid rgba(196, 164, 108, 0.4);
    box-shadow:
        var(--shadow-premium),
        0 0 0 1px rgba(196, 164, 108, 0.1),
        0 0 80px rgba(196, 164, 108, 0.08);
    transform: translateY(-8px) scale(1.02);
    z-index: 5;
}

.pricing-card.popular:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow:
        0 40px 80px rgba(0,0,0,0.08),
        0 0 0 1px rgba(196, 164, 108, 0.3),
        0 0 100px rgba(196, 164, 108, 0.12);
}

.pricing-card.popular::before {
    opacity: 1;
    background: linear-gradient(90deg, transparent, var(--accent-gold), var(--accent-gold), transparent);
}

[data-theme="dark"] .pricing-card {
    background: linear-gradient(145deg, #1A1A1A 0%, #111111 100%);
}

[data-theme="dark"] .pricing-card.popular {
    background: linear-gradient(145deg, #1F1A10 0%, #141209 100%);
    box-shadow:
        0 30px 80px rgba(0,0,0,0.6),
        0 0 0 1px rgba(212, 182, 134, 0.2),
        0 0 80px rgba(212, 182, 134, 0.06);
}

/* ─── Popular Badge ─────────────────────── */
.popular-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-gold);
    color: #fff;
    padding: 6px 16px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(196, 164, 108, 0.4);
}

.popular-badge::before {
    content: '✦';
    font-size: 8px;
}

/* ─── Plan Name ─────────────────────────── */
.plan-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ─── Price ─────────────────────────────── */
.plan-price {
    margin-bottom: 40px;
    line-height: 1;
}

.price-currency {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 400;
    font-style: italic;
    color: var(--accent-gold);
    vertical-align: text-top;
    margin-right: 4px;
}

.price-amount {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 900;
    letter-spacing: -4px;
    color: var(--text-primary);
    line-height: 1;
}

.price-period {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-muted);
    margin-left: 4px;
}

/* ─── Divider ───────────────────────────── */
.plan-divider {
    width: 100%;
    height: 1px;
    background: var(--border-subtle);
    margin-bottom: 32px;
}

/* ─── Features List ─────────────────────── */
.plan-features {
    list-style: none;
    margin: 0 0 40px 0;
    padding: 0;
    width: 100%;
    flex: 1;
}

.plan-features li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.4;
}

.plan-features li svg {
    color: var(--accent-gold);
    flex-shrink: 0;
    background: rgba(196, 164, 108, 0.08);
    border-radius: 50%;
    padding: 3px;
    width: 24px;
    height: 24px;
}

/* ─── Buttons ───────────────────────────── */
.pricing-btn {
    width: 100%;
    padding: 18px 24px;
    border-radius: 100px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all 0.4s var(--ease-silk);
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(196, 164, 108, 0.05);
    transform: translateY(-2px);
}

/* Specificity boost to override global button styles */
.pricing-page .btn-primary {
    background: var(--accent-gold) !important;
    color: #141414 !important;
    border: none;
    box-shadow: 0 12px 30px rgba(196, 164, 108, 0.35);
}

/* Force dark text color even in dark mode for this specific page's buttons */
[data-theme="dark"] .pricing-page .btn-primary {
    background: var(--accent-gold) !important;
    color: #141414 !important;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(196, 164, 108, 0.45);
    filter: brightness(1.05);
}

/* ─── Responsive ────────────────────────── */
@media (max-width: 992px) {
    .pricing-grid {
        flex-direction: column;
        align-items: center;
        max-width: 520px;
    }
    .pricing-card {
        width: 100%;
        transform: none !important;
    }
    .pricing-card.popular {
        transform: none !important;
        order: -1; /* popular card first on mobile */
    }
}

@media (max-width: 640px) {
    .pricing-page {
        padding: 100px 0 60px;
    }
    .pricing-header {
        margin-bottom: 48px;
    }
    .pricing-card {
        padding: 36px 28px;
        border-radius: 28px;
    }
    .price-amount {
        font-size: 56px;
    }
}
