/* style.css - Global Stylesheet for MLM Staking Website */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-dark: #07080b;
    --bg-card: rgba(18, 20, 29, 0.75);
    --bg-card-border: rgba(212, 175, 55, 0.08);
    --color-primary: #d4af37; /* Metallic Luxury Gold */
    --color-secondary: #10b981; /* Emerald Green */
    --color-accent: #c5a880; /* Champagne Gold / Sand Gold */
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-success: #10b981;
    --text-danger: #ef4444;
    --font-header: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-glow: 0 0 25px rgba(212, 175, 55, 0.12);
    --radius-lg: 16px;
    --radius-md: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 10% 10%, rgba(212, 175, 55, 0.08) 0px, transparent 50%),
        radial-gradient(at 90% 90%, rgba(16, 185, 129, 0.06) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(197, 168, 128, 0.03) 0px, transparent 60%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5em;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    filter: brightness(1.2);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    min-width: 0;
}

@media (min-width: 769px) {
    .container {
        padding: 0 24px;
    }
}

/* Glass Card */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

@media (min-width: 768px) {
    .card {
        padding: 30px;
    }
}

.card:hover {
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 10px 40px rgba(0, 242, 254, 0.05);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-header);
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--bg-card-border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

.btn-danger {
    background: var(--text-danger);
    color: white;
}

.btn-danger:hover {
    filter: brightness(1.1);
}

/* Navigation */
nav {
    border-bottom: 1px solid var(--bg-card-border);
    background: rgba(10, 11, 16, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

/* Responsive Navigation Container (Mobile-First) */
.nav-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, #ffffff 0%, var(--color-primary) 50%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    transition: var(--transition);
    display: inline-block;
}

.logo:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.hamburger-btn {
    display: block;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav-links {
    display: none; /* Hidden on mobile */
}

/* User Sidebar Drawer (Mobile Viewports) */
.user-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: rgba(10, 11, 16, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--bg-card-border);
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.user-sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.user-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-sidebar-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.user-sidebar-close:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.user-sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-sidebar-links a {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.user-sidebar-links a:hover, .user-sidebar-links a.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

/* Desktop Navigation Layout (>= 768px) */
@media (min-width: 768px) {
    .hamburger-btn {
        display: none; /* Hide hamburger */
    }
    
    .nav-links {
        display: flex; /* Show desktop top-nav links */
        gap: 20px;
        align-items: center;
        width: auto;
        overflow-x: visible;
        padding-bottom: 0;
        justify-content: flex-end;
    }
    
    .nav-links a {
        color: var(--text-muted);
        font-weight: 500;
        display: inline-block;
        transition: var(--transition);
    }
    
    .nav-links a:hover, .nav-links a.active {
        color: var(--text-main);
    }

    .nav-links .btn {
        padding: 8px 18px;
        font-size: 0.875rem;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        border-radius: var(--radius-md);
    }

    .nav-links .btn-primary {
        color: #ffffff !important;
    }

    .nav-links .btn-primary:hover {
        color: #ffffff !important;
    }

    .nav-links .btn-secondary {
        color: var(--text-main) !important;
    }

    .nav-links .btn-secondary:hover {
        color: var(--text-main) !important;
    }
    
    .user-sidebar, .user-sidebar-backdrop {
        display: none !important; /* Force hide sidebar drawer */
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

select.form-control {
    background-color: var(--bg-dark);
}

select.form-control option {
    background-color: #12131f;
    color: var(--text-main);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

/* Alert Boxes */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #a7f3d0;
}

/* Auth Pages Style */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 40px 24px;
}

.auth-card {
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Table Style */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    display: block;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 0.95rem;
    text-align: left;
}

@media (max-width: 768px) {
    .table-responsive table {
        min-width: 100% !important;
    }
    
    /* Stacking tables for mobile first layout */
    .table-responsive table, 
    .table-responsive thead, 
    .table-responsive tbody, 
    .table-responsive th, 
    .table-responsive td, 
    .table-responsive tr { 
        display: block; 
    }
    
    /* Hide table headers on mobile */
    .table-responsive thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .table-responsive tr { 
        border: 1px solid var(--bg-card-border);
        border-radius: var(--radius-md);
        margin-bottom: 15px;
        padding: 12px 16px;
        background: rgba(255, 255, 255, 0.01);
    }
    
    .table-responsive td { 
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        position: relative;
        padding-left: 45% !important; 
        text-align: right !important;
        padding: 10px 0 !important;
        font-size: 0.85rem;
        min-height: 38px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    
    .table-responsive td:last-child {
        border-bottom: 0;
    }
    
    .table-responsive td:before { 
        content: attr(data-label);
        position: absolute;
        left: 6px;
        width: 40%; 
        padding-right: 10px; 
        white-space: nowrap;
        text-align: left;
        font-weight: 600;
        color: var(--text-muted);
    }
}

th, td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--bg-card-border);
}

th {
    color: var(--text-muted);
    font-weight: 600;
    font-family: var(--font-header);
}

tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

/* Badge System */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--text-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--text-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Mobile-First Responsive Helper Grids */
.grid-responsive-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

@media (min-width: 769px) {
    .grid-responsive-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }
}

.grid-responsive-1-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

@media (min-width: 993px) {
    .grid-responsive-1-2 {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
        gap: 30px;
    }
}

/* Announcement Marquee Ticker */
.news-marquee-container {
    background: rgba(18, 19, 31, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 46px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.news-marquee-label {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: #0a0b10;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    letter-spacing: 0.8px;
    white-space: nowrap;
    z-index: 2;
    text-transform: uppercase;
}

.news-marquee-text {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.news-marquee-text span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee-scroll 30s linear infinite;
    font-size: 0.9rem;
    color: var(--text-main);
}

.news-marquee-text span:hover {
    animation-play-state: paused;
    cursor: pointer;
}

@keyframes marquee-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* --- Public Auth Pages Aesthetics Overhaul --- */

/* Floating Orbs in Background */
.auth-bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    mix-blend-mode: screen;
    animation: orb-float 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--color-primary);
    top: 15%;
    left: -50px;
    animation-duration: 25s;
}

.orb-2 {
    width: 450px;
    height: 450px;
    background: var(--color-accent);
    bottom: 10%;
    right: -100px;
    animation-duration: 30s;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--color-secondary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 20s;
    animation-delay: -10s;
}

@keyframes orb-float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(40px, -60px) scale(1.15);
    }
    100% {
        transform: translate(-30px, 40px) scale(0.9);
    }
}

/* Animations on Card Load */
.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth Card Overrides for Premium Glassmorphism */
.auth-card-premium {
    border: 1px solid rgba(212, 175, 55, 0.15) !important;
    background: rgba(10, 11, 16, 0.82) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    border-radius: 24px !important;
    overflow: hidden;
    position: relative;
    padding: 30px 24px !important;
}

@media (min-width: 576px) {
    .auth-card-premium {
        padding: 40px 35px !important;
    }
}

.auth-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    transition: 0.5s;
    pointer-events: none;
}

.auth-card-premium:hover::before {
    left: 100%;
    transition: 0.8s ease-in-out;
}

/* Form Controls Premium Styling */
.form-group-premium {
    position: relative;
    margin-bottom: 22px;
}

.form-group-premium label {
    font-family: var(--font-header);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: block;
    transition: var(--transition);
}

.form-control-premium {
    width: 100%;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--radius-md) !important;
    padding: 13px 16px !important;
    color: var(--text-main) !important;
    font-size: 0.95rem !important;
    transition: var(--transition) !important;
    font-family: var(--font-body);
}

.form-control-premium:focus {
    outline: none !important;
    border-color: var(--color-primary) !important;
    box-shadow: 
        0 0 0 3px rgba(212, 175, 55, 0.15),
        0 4px 15px rgba(0, 0, 0, 0.25) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    transform: translateY(-1px);
}

.form-control-premium:disabled, .form-control-premium[readonly] {
    background: rgba(255, 255, 255, 0.01) !important;
    border-color: rgba(255, 255, 255, 0.04) !important;
    color: rgba(243, 244, 246, 0.5) !important;
    cursor: not-allowed;
}

/* Premium Buttons */
.btn-premium-auth {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%) !important;
    background-size: 200% auto !important;
    color: #07080b !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    padding: 14px 28px !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25) !important;
    transition: var(--transition) !important;
    width: 100%;
    margin-top: 15px;
}

.btn-premium-auth:hover {
    background-position: right center !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.35) !important;
}

.btn-premium-auth:active {
    transform: translateY(0);
}

/* Premium grid for registration on larger devices */
@media (min-width: 576px) {
    .register-grid-premium {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }
    .register-grid-premium .form-group-full {
        grid-column: span 2;
    }
}

/* Floating Icons in Background */
.floating-icon {
    position: absolute;
    opacity: 0.05;
    color: var(--text-main);
    pointer-events: none;
    animation: float-around 25s infinite linear;
}

.icon-1 {
    top: 12%;
    left: 8%;
    animation-duration: 22s;
    animation-delay: -2s;
}

.icon-2 {
    top: 25%;
    right: 12%;
    animation-duration: 30s;
    animation-delay: -5s;
}

.icon-3 {
    bottom: 18%;
    left: 14%;
    animation-duration: 26s;
    animation-delay: -10s;
}

.icon-4 {
    bottom: 28%;
    right: 8%;
    animation-duration: 34s;
    animation-delay: -15s;
}

.icon-5 {
    top: 55%;
    left: 5%;
    animation-duration: 28s;
    animation-delay: -7s;
}

@keyframes float-around {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(45px, 25px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(90px, -15px) rotate(180deg) scale(0.95);
    }
    75% {
        transform: translate(35px, -70px) rotate(270deg) scale(1.05);
    }
    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
}

/* --- Public Auth Pages Split-Screen & Showcase Aesthetics --- */

.auth-split-container {
    display: grid;
    grid-template-columns: 1fr;
    min-height: calc(100vh - 80px);
    width: 100%;
}

.auth-showcase-column {
    display: none; /* Hidden on mobile */
    background: rgba(10, 11, 16, 0.4);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-form-column {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 24px;
}

@media (min-width: 992px) {
    .auth-split-container {
        grid-template-columns: 1.15fr 0.85fr;
    }
    .auth-showcase-column {
        display: flex;
    }
}

.showcase-content {
    max-width: 580px;
    z-index: 10;
}

.badge-premium {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 242, 254, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.05);
}

.showcase-title {
    font-size: 2.8rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    font-weight: 800;
}

.showcase-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.stats-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-preview-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.stat-preview-card:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(212, 175, 55, 0.25);
    transform: translateY(-3px);
}

.stat-lbl {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.stat-val {
    display: block;
    font-size: 1.4rem;
    font-family: var(--font-header);
    color: var(--text-main);
    font-weight: 700;
}

/* Animated Premium Glowing Card Wrapper */
.auth-glow-wrapper {
    position: relative;
    padding: 1px;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(197, 168, 128, 0.1) 100%);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    transition: var(--transition);
    width: 100%;
    max-width: 450px;
}

.auth-glow-wrapper:hover {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.6),
        0 0 30px rgba(212, 175, 55, 0.15);
}

.auth-glow-wrapper .auth-card-premium {
    border: none !important; /* Managed by wrapper border */
}

/* Mouse spotlight glow following cursor */
#mouse-spotlight {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: left 0.1s ease-out, top 0.1s ease-out;
    display: none;
}

@media (min-width: 992px) {
    #mouse-spotlight {
        display: block;
    }
}

/* Staggered load delays for showcase items */
.stats-preview-grid .stat-preview-card:nth-child(1) { animation-delay: 0.1s; }
.stats-preview-grid .stat-preview-card:nth-child(2) { animation-delay: 0.2s; }
.stats-preview-grid .stat-preview-card:nth-child(3) { animation-delay: 0.3s; }
.stats-preview-grid .stat-preview-card:nth-child(4) { animation-delay: 0.4s; }

.stats-preview-grid .stat-preview-card {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Continuous Pulse Glow for Primary Auth Button */
.btn-premium-auth {
    animation: button-pulse-glow 3s infinite alternate ease-in-out;
}

@keyframes button-pulse-glow {
    0% {
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
    }
    100% {
        box-shadow: 
            0 4px 25px rgba(212, 175, 55, 0.45),
            0 0 15px rgba(16, 185, 129, 0.2);
    }
}

/* Rising Golden Sparkles */
.sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-primary);
    opacity: 0;
    pointer-events: none;
    animation: rise-sparkle 16s infinite linear;
}

.sparkle-1 { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.sparkle-2 { left: 25%; animation-delay: -3s; animation-duration: 18s; }
.sparkle-3 { left: 45%; animation-delay: -6s; animation-duration: 15s; }
.sparkle-4 { left: 60%; animation-delay: -9s; animation-duration: 20s; }
.sparkle-5 { left: 75%; animation-delay: -2s; animation-duration: 14s; }
.sparkle-6 { left: 90%; animation-delay: -5s; animation-duration: 16s; }

@keyframes rise-sparkle {
    0% {
        transform: translateY(105vh) translateX(0) scale(0.6);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-10vh) translateX(40px) scale(1.3);
        opacity: 0;
    }
}

/* Password Visibility Toggle Eye Button styling */
.password-wrapper-premium {
    position: relative;
    width: 100%;
}

.password-wrapper-premium .form-control-premium {
    padding-right: 48px !important;
}

.password-toggle-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 5;
}

.password-toggle-btn:hover {
    color: var(--color-primary);
}

.password-toggle-btn svg {
    display: block;
}

/* --- Input Field SVG Icon Wrappers & Styling --- */
.input-icon-wrapper-premium {
    position: relative;
    width: 100%;
}

.input-icon-wrapper-premium .form-control-premium {
    padding-left: 48px !important;
}

.input-icon-wrapper-premium .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
    opacity: 0.55;
    z-index: 4;
}

.input-icon-wrapper-premium:focus-within .input-icon {
    color: var(--color-primary);
    opacity: 1;
}

.form-group-premium label {
    font-family: var(--font-header);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
    transition: var(--transition);
}

.form-group-premium:focus-within label {
    color: var(--color-primary);
}

/* Guest Navigation Styling (Forces inline layout on mobile) */
.guest-nav-links {
    display: flex !important;
    gap: 8px;
    align-items: center;
}

@media (max-width: 576px) {
    .guest-nav-links .btn {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }
    .logo-postfix {
        display: none !important;
    }
}

