/* Tagoals v2 "Elite" Design System */

:root {
    /* Base Brand Colors (Static) */
    --accent-pink: #ff63da;
    --accent-purple: #9e40ff;
    --accent-blue: #009dff;
    --gradient-primary: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Theme-specific variables (Dark - Default) */
    --bg-dark: #020617;
    --bg-surface: #0f172a;
    --bg-grid: rgba(255, 255, 255, 0.02);
    --bg-mesh: radial-gradient(at 100% 0%, rgba(158, 64, 255, 0.1) 0, transparent 50%),
        radial-gradient(at 0% 100%, rgba(0, 157, 255, 0.08) 0, transparent 50%);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.35);
    /* High Contrast */
    --grid-color: rgba(0, 157, 255, 0.25);
    /* More vibrant blue grid */
    /* Sharpened for Dark Mode */
    /* Ultra-Visible Squares */
    /* The "Square" pattern */
    --nav-bg: rgba(2, 6, 23, 0.85);
    --header-shadow: rgba(0, 0, 0, 0.3);
    --particle-color: rgba(255, 99, 218, 0.6);
    /* Dense Pink */
    --menu-bg: #060b13;
    --menu-border: rgba(255, 255, 255, 0.1);
    --menu-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --menu-text: #ffffff;
    --chart-grid: rgba(255, 255, 255, 0.1);
    --chart-text: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] {
    --bg-dark: #f8fafc;
    --bg-surface: #ffffff;
    --bg-grid: rgba(0, 0, 0, 0.05);
    --chart-grid: rgba(0, 0, 0, 0.05);
    --chart-text: #64748b;
    --bg-mesh: radial-gradient(at 100% 0%, rgba(158, 64, 255, 0.1) 0, transparent 50%),
        radial-gradient(at 0% 100%, rgba(0, 157, 255, 0.1) 0, transparent 50%);
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --glass-bg: rgba(255, 255, 255, 0.9);
    /* More opaque */
    --glass-border: rgba(0, 0, 0, 0.15);
    /* Sharper */
    --grid-color: rgba(0, 157, 255, 0.15);
    /* Distinct blue grid in Light Mode too */
    /* Sharpened for Light Mode */
    --nav-bg: rgba(255, 255, 255, 0.9);
    --header-shadow: transparent;
    --particle-color: rgba(255, 0, 204, 0.7);
    /* Deep Pink */
    --menu-bg: #ffffff;
    --menu-border: transparent;
    --menu-shadow: none;
    --menu-text: #0f172a;
}

/* Typography */
@font-face {
    font-family: 'Araboto';
    src: url('../fonts/Araboto Light 400.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Araboto';
    src: url('../fonts/Araboto Bold 400.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: transparent !important;
    /* Show canvas behind */
    background-image:
        linear-gradient(var(--grid-color) 2px, transparent 2px),
        linear-gradient(90deg, var(--grid-color) 2px, transparent 2px),
        var(--bg-mesh);
    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
    /* Grid on TOP, Mesh behind */
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Araboto', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    overflow-x: hidden;
    background: transparent !important;
    color: var(--text-main);
    transition: background-color 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}



.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: var(--spacing-md);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    display: inline-block;
    background: var(--gradient-primary);
    color: #ffffff !important;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 99, 218, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 99, 218, 0.4);
}

h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 1.8rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: inline-block;
    margin-bottom: 2rem;
}

/* Dashboard Specifics */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar-menu {
    width: 250px;
    background: linear-gradient(180deg, #06112d 0%, #250949 100%);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    color: white;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Araboto', sans-serif;
    font-weight: 300;
    /* Araboto Light */
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-item.active {
    color: white;
    font-weight: 700;
    /* Araboto Bold */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    /* Outer Glow */
    border-bottom: 2px solid white;
    /* Line under it */
}

.nav-item:hover {
    color: white;
}

/* Page Content Transition */
.page-content {
    flex: 1;
    background: transparent;
    padding: 2rem;
    overflow-x: hidden;
}

/* Tier Colors */
.tier-platinum {
    color: #e5e4e2;
}

.tier-gold {
    color: #ffd700;
}

.tier-silver {
    color: #c0c0c0;
}

/* Desktop-First Adjustments */
.main-header {
    position: fixed;
    /* Force fixed as requested */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    height: 90px;
    /* Slightly taller to accommodate larger logo */
    box-shadow: 0 4px 30px var(--header-shadow);
    border-bottom: none !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

/* Logo - Default (Mobile) - MAXIMUM SIZE */
.logo {
    line-height: 0;
    display: flex;
    align-items: center;
    position: relative;
    height: 100%;
    z-index: 10000;
}

.logo img {
    height: 90px !important;
    /* Slightly smaller to match user perception */
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
    display: block;
    margin: 0;
    margin-left: -25px !important;
    /* Pull Left to align vertically with Footer */
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

/* Desktop Nav Hidden by Default (Mobile First) */
.desktop-nav {
    display: none;
}

/* Mobile Toggle Visible by Default */
.mobile-menu-toggle {
    display: block;
}

@media (min-width: 992px) {
    .main-header {
        height: 85px;
        /* Slightly taller for desktop balance */
    }

    .main-header .container {
        padding: 0 30px;
        height: 100%;
    }

    .logo img {
        height: 100px !important;
        /* Slightly smaller desktop */
        width: auto !important;
        margin-left: -25px;
        /* Match mobile alignment */
        margin-top: 0;
    }

    .mobile-menu-toggle {
        display: none !important;
        /* strictly force hidden on desktop */
    }

    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 2rem;
    }

    .desktop-nav a {
        color: var(--text-primary);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s;
    }

    .desktop-nav a:hover {
        color: var(--primary-pink);
    }
}

.hero-section {
    padding: 10rem 0 8rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Removed dark overlay to allow theme background to show through */

/* Ensure glass button hover works */
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: white !important;
}

.what-we-do,
.how-it-works,
.features-section {
    padding: 6rem 0;
    /* More breathing room for Elite feel */
}

.footer {
    padding: 5rem 0 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 0 auto;
}

/* Laptop/Desktop Grid for Features and How It Works */
@media (min-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Force Horizontal for How It Works Steps */
    .how-it-works .steps-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
        align-items: flex-start;
        padding-top: 2rem;
    }

    /* Hide vertical swirl on desktop grid */
    .how-it-works .swirl-line {
        display: none;
    }
}

/* Tablet Grid */
@media (min-width: 768px) and (max-width: 991px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .how-it-works .steps-grid {
        grid-template-columns: repeat(1, 1fr);
        /* Stacked on tablet to avoid squishing */
    }
}

/* Mobile Grid */
@media (max-width: 767px) {

    .features-grid,
    .how-it-works .steps-grid {
        grid-template-columns: 1fr;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: left !important;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center !important;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(255, 99, 218, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 99, 218, 0.6);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* Mobile Menu & Header Layout */
.mobile-header-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 15px;
    height: 100%;
}

/* Strictly hide mobile-only toggle on desktop */
.mobile-theme-only {
    display: none !important;
}

@media (max-width: 991px) {
    .main-header {
        height: 110px !important;
        /* Fixed sturdy height */
    }

    .mobile-header-layout {
        justify-content: center !important;
        height: 100%;
        position: relative;
    }

    .mobile-header-layout .logo {
        position: absolute;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    .mobile-header-layout .logo img {
        height: 140px !important;
        /* Maximum impact sizing */
        margin: 0 !important;
        width: auto !important;
        max-width: 280px;
        filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.4));
    }

    .mobile-header-layout .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        left: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
        z-index: 11;
        background: none;
        border: none;
        width: 44px;
        height: 44px;
        padding: 0;
        font-size: 30px;
        /* Larger icon */
        color: var(--text-primary) !important;
    }

    .mobile-theme-only {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
        z-index: 11;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        width: 44px;
        height: 44px;
        padding: 0;
        color: var(--text-primary) !important;
    }

    .desktop-nav {
        display: none !important;
    }
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: flex;
    }
}

.mobile-dropdown-menu {
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    background: var(--menu-bg);
    border-top: 1px solid var(--menu-border);
    border-bottom: 1px solid var(--menu-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    z-index: 998;
}

.mobile-dropdown-menu.open {
    max-height: 400px;
    /* Increased for breathing room */
    padding: 2rem 0;
    border-top: 1px solid var(--menu-border);
    border-bottom: 1px solid var(--menu-border);
    box-shadow: var(--menu-shadow);
}

.mobile-dropdown-menu nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    color: var(--menu-text);
}

.mobile-link {
    color: var(--menu-text);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    /* Center text */
    padding: 0.5rem 2rem;
    transition: background 0.2s;
}

.mobile-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.modal-content-elite {
    background: var(--bg-surface);
    /* For light mode, this might be overridden to rgba(255, 255, 255, 0.05) */
}

.btn-primary-mobile {
    background: var(--gradient-primary);
    border-radius: 50px;
    padding: 12px 40px;
    display: inline-block;
    width: auto;
    /* Don't stretch full width */
    margin-top: 0.5rem;
}

/* Auth Pages Enhancement */
.auth-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #060b13;
    position: relative;
}

.auth-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/HOW IT WORKS BACKGROUND.png') center/cover;
    opacity: 0.15;
    z-index: 0;
}

.auth-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    color: white;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    /* Theme-aware visibility */
    opacity: 0.8;
}

.btn-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-surface);
    /* Theme-aware surface */
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.4;
}

.form-input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px rgba(158, 64, 255, 0.2);
    background: var(--bg-surface);
    outline: none;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.auth-footer a {
    color: #ff63da;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.auth-footer a:hover {
    color: #ff80e2;
    text-decoration: underline;
}

/* Platinum Tier Specific */
.text-platinum {
    color: #333 !important;
    /* Dark text for visibility */
    background: linear-gradient(135deg, #e0e0e0 0%, #ffffff 50%, #e0e0e0 100%);
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    /* fix compatibility */
    text-shadow: none;
    font-weight: 800;
}

/* Brand Column - Strict Left Alignment & Visual T-Alignment */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Force left alignment */
    text-align: left;
    align-self: start;
    /* Align with grid baseline */
}

.footer-logo-img {
    height: 100px !important;
    /* Increased size for better visibility */
    width: auto;
    margin-top: -40px;
    /* Pull UP to align Tagoals text with COMPANY/CONTACT headers */
    margin-bottom: 0.5rem;
    /* Tighter gap*/
    display: block;
    margin-left: -15px;
    /* Aggressive align 'T' with 'Q' */
}

@media (max-width: 768px) {
    .footer-brand {
        align-items: center !important;
        text-align: center !important;
        margin-bottom: 2rem;
    }

    .footer-logo-img {
        margin: 0 auto 1.5rem !important;
        /* Force horizontal centering */
        margin-top: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (min-width: 992px) {
    .footer-logo-img {
        height: 110px !important;
        /* Larger on desktop */
    }
}



/* ========================
   ELITE FOOTER STYLES
   ======================== */
.footer {
    background: var(--bg-surface);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--glass-border);
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    align-items: start;
    /* All columns start from same baseline */
}

/* Brand Column */
.footer-desc {
    color: var(--text-gray);
    margin-bottom: 1.2rem;
    line-height: 1.4;
    font-size: 0.95rem;
    max-width: 300px;
    font-weight: 500;
    margin-left: 5px;
    /* Align with T */
}

.socials {
    display: flex;
    gap: 1rem;
    margin-left: 5px;
    /* Align with T */
}

.social-link {
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-secondary);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    color: white;
    filter: drop-shadow(0 0 8px currentColor);
}

.social-link.pink:hover {
    color: #ff63da;
}

.social-link.purple:hover {
    color: #9e40ff;
}

.social-link.blue:hover {
    color: #009dff;
}


/* Headings - Typography Upgrade */
.footer-heading {
    color: var(--text-primary);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--primary-pink);
    border-radius: 2px;
}

/* Navigation Links */
.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1rem;
}

.footer-link:hover {
    color: var(--accent-pink);
    transform: translateX(10px);
    /* Elite movement */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Contact Items */
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.contact-item i {
    color: var(--primary-pink);
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

/* Copyright */
.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
    opacity: 0.6;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-desc,
    .socials {
        margin: 0 auto 1.5rem;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-item {
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar-menu {
        width: 200px;
    }

    .container {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar-menu {
        position: fixed;
        left: -280px;
        width: 280px;
        height: 100%;
        z-index: 999;
        transition: left 0.3s ease;
    }

    .sidebar-menu.mobile-active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1000;
    }

    .page-content {
        padding: 1rem;
        padding-top: 4rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .btn-primary {
        width: 100%;
        padding: 14px 20px;
    }

    .glass-panel {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.25rem;
    }
}

/* Tier Badges */
.tier-platinum {
    background: rgba(229, 228, 226, 0.2) !important;
    color: #E5E4E2 !important;
    border: 1px solid rgba(229, 228, 226, 0.3);
}

.tier-gold {
    background: rgba(255, 215, 0, 0.1) !important;
    color: #FFD700 !important;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.tier-silver {
    background: rgba(192, 192, 192, 0.1) !important;
    color: #C0C0C0 !important;
    border: 1px solid rgba(192, 192, 192, 0.2);
}

.tier-a {
    background: rgba(255, 215, 0, 0.1) !important;
    color: #FFD700 !important;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.tier-b {
    background: rgba(102, 126, 234, 0.1) !important;
    color: #667eea !important;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.tier-c {
    background: rgba(86, 204, 242, 0.1) !important;
    color: #56CCF2 !important;
    border: 1px solid rgba(86, 204, 242, 0.2);
}

.tier-d {
    background: rgba(155, 81, 224, 0.1) !important;
    color: #9B51E0 !important;
    border: 1px solid rgba(155, 81, 224, 0.2);
}

.tier-e {
    background: rgba(235, 87, 87, 0.1) !important;
    color: #EB5757 !important;
    border: 1px solid rgba(235, 87, 87, 0.2);
}

.tier-none {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Background Particle System */
#antigravity-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: -2 !important;
    /* Behind everything including body transparent background */
    pointer-events: none !important;
    opacity: 1 !important;
    display: block !important;
    background: var(--bg-dark);
    /* The canvas itself holds the background color */
}

/* Cinematic Theme Swipe */
.theme-transition-overlay {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: none;
    clip-path: circle(0% at 50% 50%);
}

[data-theme="dark"] .theme-transition-overlay {
    background: #020617;
}

.theme-transition-overlay.active {
    animation: liquidSwipe 0.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes liquidSwipe {
    0% {
        opacity: 0;
        clip-path: circle(0% at 50% 50%);
    }

    40% {
        opacity: 1;
        clip-path: circle(100% at 50% 50%);
    }

    60% {
        opacity: 1;
        clip-path: circle(100% at 50% 50%);
    }

    100% {
        opacity: 0;
        clip-path: circle(150% at 50% 50%);
    }
}