/**
 * File: assets/css/main.css
 * Purpose: Complete responsive stylesheet — Pakistan-device optimised
 * Project: TestPrep.pk
 *
 * DEVICE BREAKPOINTS (Pakistan 2025-26 market):
 *   360px  → Tecno Spark, Infinix Hot, Samsung A04 (entry ~40%)
 *   390px  → Samsung A14/A15, Redmi 12/Note 12   (mid   ~30%)
 *   430px  → Samsung A34/A54, Xiaomi mid-range    (upper ~15%)
 *   768px  → Tablets
 *  1024px  → Small laptops
 *  1366px  → Most-common laptop resolution in PK
 */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
    --primary: #5b5ef4;
    --primary-hover: #4a4dd2;
    --primary-soft: rgba(91, 94, 244, 0.10);

    /* Package tiers */
    --free-color: #6b7280;
    --free-bg: #f9fafb;
    --free-border: #d1d5db;

    --silver-color: #475569;
    --silver-bg: #f1f5f9;
    --silver-border: #94a3b8;

    --gold-color: #b45309;
    --gold-bg: #fffbeb;
    --gold-border: #d97706;

    /* Light theme */
    --bg: #f5f5f8;
    --bg-card: #ffffff;
    --bg-card-rgb: 255, 255, 255;

    --text-h: #111827;
    --text-body: #374151;
    --text-muted: #6b7280;

    --border: #e5e7eb;
    --border-focus: #5b5ef4;

    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 4px 8px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.10);

    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;

    --nav-height: 68px;
    --container-max: 1200px;
    --container-pad: 20px;
}

/* ============================================================
   2. DARK MODE
   KEY FIX: --bg-card-rgb is now defined so rgba(var(--bg-card-rgb), .88)
   works in the navbar background properly
   ============================================================ */
[data-theme="dark"] {
    --bg: #0e0e1a;
    --bg-card: #181828;
    --bg-card-rgb: 24, 24, 40;

    --text-h: #f1f1f6;
    --text-body: #b8b8cc;
    --text-muted: #6c6c96;

    --border: #2a2a42;
    --border-focus: #5b5ef4;

    /* Grayish, softer shadows for dark mode to prevent muddiness */
    --shadow-xs: 0 1px 4px rgba(0, 0, 0, 0.45);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 10px 32px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);

    --free-bg: #191923;
    --free-border: #36364e;
    --silver-bg: #181e2e;
    --silver-border: #354060;
    --gold-bg: #1c1400;
    --gold-border: #6b3e00;
}

/* ============================================================
   3. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text-body);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color .25s ease, color .25s ease;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Sora', sans-serif;
    color: var(--text-h);
    line-height: 1.2;
    margin-bottom: .75rem;
}

h1 {
    font-weight: 800;
    font-size: clamp(1.75rem, 6vw, 3.5rem);
}

h2 {
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2.4rem);
}

h3 {
    font-weight: 700;
    font-size: clamp(1.1rem, 3vw, 1.65rem);
}

h4 {
    font-weight: 600;
    font-size: clamp(0.95rem, 2.5vw, 1.2rem);
}

p {
    font-size: clamp(0.88rem, 2vw, 1.02rem);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color .18s ease;
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================================
   4. LAYOUT
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* ============================================================
   5. RESPONSIVE UTILITIES
   ============================================================ */
.grid-stack {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media screen and (max-width: 992px) {
    .grid-stack {
        grid-template-columns: 1fr;
    }
}

.mobile-hide {
    display: table-cell;
}

@media screen and (max-width: 640px) {
    .mobile-hide {
        display: none !important;
    }
}

.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -10px;
    padding: 0 10px;
}

.table-container table {
    min-width: 850px; /* Force overflow for horizontal scrolling on mobile */
}

/* Specific fix for smaller detail tables */
.table-container table.small-table {
    min-width: 600px;
}

/* ============================================================
   6. CARDS
   ============================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: clamp(16px, 4vw, 24px);
    box-shadow: var(--shadow-sm);
    transition: all .25s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    transform: translateY(-4px);
}

/* ============================================================
   7. BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 22px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid transparent;
    text-align: center;
    min-height: 44px;
    white-space: nowrap;
    text-decoration: none !important;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(91, 94, 244, .28);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 94, 244, .38);
    color: #fff !important;
}

.btn-outline {
    background: transparent;
    color: var(--text-h) !important;
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
    background: var(--primary-soft);
}

/* ============================================================
   8. ALERTS
   ============================================================ */
.alert {
    padding: 13px 18px;
    border-radius: var(--r-md);
    margin-bottom: 18px;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.alert-info {
    background: var(--primary-soft);
    color: var(--primary);
    border-color: rgba(91, 94, 244, .2);
}

[data-theme="dark"] .alert-error {
    background: #2d0f0f;
    color: #fca5a5;
    border-color: #7f1d1d;
}

[data-theme="dark"] .alert-success {
    background: #0c2a16;
    color: #86efac;
    border-color: #14532d;
}

[data-theme="dark"] .alert-info {
    background: rgba(91, 94, 244, .12);
}

/* ============================================================
   7. CARDS
   ============================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    transform: translateY(-4px);
}

/* ============================================================
   8. NAVBAR
   FIX: Uses --bg-card-rgb (now defined) for proper glassmorphism in dark mode
   ============================================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 5000; /* Extremely high to stay above overlay/drawer */
    background: rgba(var(--bg-card-rgb), 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: background .25s ease, border-color .25s ease;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    gap: 12px;
}

.logo {
    font-family: 'Sora', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-h) !important;
    flex-shrink: 0;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: var(--text-body);
    font-weight: 500;
    font-size: 0.93rem;
    padding: 7px 12px;
    border-radius: var(--r-sm);
    transition: all .18s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: var(--primary-soft);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Dark / Light toggle */
.theme-toggle {
    background: var(--bg);
    border: 1.5px solid var(--border);
    color: var(--text-body);
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: all .2s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

.theme-toggle svg {
    width: 19px;
    height: 19px;
}

[data-theme="light"] .icon-sun {
    display: none;
}

[data-theme="dark"] .icon-moon {
    display: none;
}

/* ============================================================
   9. HAMBURGER BUTTON
   FIX: Was invisible — now has visible border + border-radius (square with
   rounded corners) + lines that contrast in both light and dark mode.
   ============================================================ */
.burger {
    display: none;
    /* hidden on desktop */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--r-sm);
    /* square with rounded corners */
    cursor: pointer;
    padding: 0;
    z-index: 1010;
    flex-shrink: 0;
    transition: border-color .2s, background .2s;
}

.burger:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.burger-line {
    display: block;
    width: 20px;
    height: 2.5px;
    background: var(--text-h);
    /* auto-contrasts in light & dark */
    border-radius: 3px;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animate to X when open */
.burger[aria-expanded="true"] .line1 {
    transform: translateY(7.5px) rotate(45deg);
}

.burger[aria-expanded="true"] .line2 {
    opacity: 0;
    transform: scaleX(0);
}

.burger[aria-expanded="true"] .line3 {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ============================================================
   10. MOBILE MENU + OVERLAY
   ============================================================ */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: 4000; /* Just below navbar and drawer */
}

.nav-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   11. PRICING / PACKAGE CARDS
   Free = slate-grey  |  Silver = cool metallic  |  Gold = warm amber
   ============================================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    align-items: start;
}

.plan-card {
    border-radius: var(--r-xl);
    padding: 30px 26px;
    border: 2px solid transparent;
    transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: var(--bg-card);
}

.plan-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* FREE */
.plan-card.plan-free {
    background: var(--free-bg);
    border-color: var(--free-border);
}

.plan-card.plan-free .plan-badge {
    background: #e5e7eb;
    color: #374151;
}

.plan-card.plan-free .plan-price {
    color: var(--free-color);
}

/* SILVER */
.plan-card.plan-silver {
    background: var(--silver-bg);
    border-color: var(--silver-border);
}

.plan-card.plan-silver .plan-badge {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: #fff;
}

.plan-card.plan-silver .plan-price {
    color: var(--silver-color);
}

/* GOLD — premium featured */
.plan-card.plan-gold {
    background: var(--gold-bg);
    border-color: var(--gold-border);
    box-shadow: 0 8px 28px rgba(217, 119, 6, .16);
}

.plan-card.plan-gold .plan-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.plan-card.plan-gold .plan-price {
    color: var(--gold-color);
}

/* Dark mode text fix inside plan cards */
[data-theme="dark"] .plan-card h3,
[data-theme="dark"] .plan-card h4 {
    color: var(--text-h);
}

[data-theme="dark"] .plan-card p {
    color: var(--text-body);
}

[data-theme="dark"] .plan-card.plan-free .plan-price {
    color: #94a3b8;
}

[data-theme="dark"] .plan-card.plan-gold .plan-price {
    color: #f59e0b;
}

.plan-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    padding: 4px 12px;
    border-radius: 30px;
    margin-bottom: 14px;
}

.plan-price {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 6px;
}

.plan-price small {
    font-size: .83rem;
    font-weight: 400;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    margin: 18px 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.plan-features li {
    font-size: 0.88rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text-body);
    line-height: 1.5;
}

.feat-yes {
    color: #16a34a;
    flex-shrink: 0;
}

.feat-no {
    color: #9ca3af;
    flex-shrink: 0;
}

/* ============================================================
   12. FORM ELEMENTS
   ============================================================ */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--text-body);
}

.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    font-family: 'DM Sans', sans-serif;
    font-size: .95rem;
    background: var(--bg);
    color: var(--text-h);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    appearance: none;
}

.form-control:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(91, 94, 244, .12);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* ============================================================
   13. FOOTER
   ============================================================ */
.footer-main {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 70px 0 36px;
    margin-top: 90px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-col h4 {
    font-size: .95rem;
    color: var(--text-h);
    margin-bottom: 18px;
}

.footer-col p {
    color: var(--text-muted);
    font-size: .88rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: .88rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 9px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: all .22s ease;
}

.social-icon svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
}

.social-icon:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 26px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: .85rem;
}

.legal-links {
    display: flex;
    gap: 16px;
}

.legal-links a {
    color: var(--text-muted);
    font-size: .85rem;
}

.legal-links a:hover {
    color: var(--primary);
}

/* ============================================================
   14. HERO UTILITIES
   ============================================================ */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-soft);
    color: var(--primary);
    padding: 7px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .8px;
    border: 1px solid rgba(91, 94, 244, .2);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 22px;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

[data-theme="dark"] .card:hover,
[data-theme="dark"] .feature-card:hover {
    background: rgba(91, 94, 244, 0.05);
    /* Very subtle primary glow */
}

.feature-card h4 {
    color: var(--text-h);
}

.feature-card p {
    color: var(--text-muted);
    font-size: .85rem;
    margin: 0;
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* ============================================================
   15. STATS BOX
   ============================================================ */
.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-xs);
}

.stat-box strong {
    display: block;
    font-size: 1.5rem;
    font-family: 'Sora', sans-serif;
    color: var(--text-h);
}

.stat-box span {
    font-size: .76rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ============================================================
   16. RESPONSIVE BREAKPOINTS — mobile-first, PK-optimised
   ============================================================ */

/* Very small phones (Tecno Spark, Infinix Hot) */
@media screen and (max-width: 360px) {
    :root {
        --container-pad: 13px;
        --nav-height: 60px;
    }

    .plan-card {
        padding: 20px 16px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .plan-price {
        font-size: 1.7rem;
    }
}

/* Samsung A14/A15, Redmi 12 — the most common screen in Pakistan */
@media screen and (max-width: 390px) {
    .nav-actions .btn {
        display: none;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .branding {
        grid-column: auto;
    }
}

/* Budget mid-range phones */
@media screen and (max-width: 480px) {
    :root {
        --container-pad: 15px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .branding {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Tablets & large phones — show hamburger, slide-out menu */
@media screen and (max-width: 768px) {
    .burger {
        display: flex;
        -webkit-tap-highlight-color: transparent;
        z-index: 6000; /* Higher than drawer so it stays clickable */
    }

    .burger:active {
        transform: scale(0.92);
    }

    .mobile-only-auth {
        display: block !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85vw);
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 80px 24px 40px; /* Space for the top navbar area */
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
        transition: right .36s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 4500; /* Above overlay, below burger/header */
        gap: 0;
        border-left: 1px solid var(--border);
        overflow-y: auto;
        touch-action: pan-y;
    }

    .nav-links.is-open {
        right: 0;
    }

    .mobile-close-container {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        margin-bottom: 20px;
        list-style: none;
    }

    .btn-close {
        background: var(--bg);
        border: 1px solid var(--border);
        color: var(--text-h);
        font-size: 2rem;
        line-height: 1;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--r-sm);
        cursor: pointer;
        padding: 0;
        transition: all 0.2s ease;
    }

    .btn-close:hover {
        background: var(--primary-soft);
        color: var(--primary);
        border-color: var(--primary);
    }

    .nav-links li {
        width: 100%;
        list-style: none;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 14px;
        font-size: 1.05rem;
    }

    .nav-actions .btn-outline {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .branding {
        grid-column: span 2;
    }
}

/* Hide mobile auth on desktop */
@media screen and (min-width: 769px) {
    .mobile-only-auth {
        display: none !important;
    }
}

/* Tablet landscape + small laptops */
@media screen and (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

/* Footer mobile */
@media screen and (max-width: 600px) {
    .footer-main {
        padding: 52px 0 28px;
        margin-top: 60px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .branding {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}



/* 1. Position the parent so the tooltip knows where to sit */
.custom-tooltip {
    position: relative;
}

/* 2. Create the Tooltip Box */
.custom-tooltip::after {
    content: attr(data-tooltip);
    /* Pulls text from the data-tooltip attribute */
    position: absolute;
    bottom: 120%;
    /* Sits above the button */
    left: 50%;
    transform: translateX(-50%);

    /* Custom Styling - Change these! */
    background-color: var(--bg-card);
    /* Box Color */
    color: var(--primary);
    /* Text Color */
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;

    /* Animation */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    /* Stops the tooltip from flickering */
    z-index: 10;
}

/* 3. Show on Hover */
.custom-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: 130%;
    /* Slight "pop up" effect */
}

.custom-tooltip::before {
    content: "";
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    /* Match the background-color above */
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.custom-tooltip:hover::before {
    opacity: 1;
    bottom: 120%;
}