/* 
   CYBERPUNK OVERHAUL - STYLE.CSS 
   Theme: Neon Gamer / Metaverse
   Colors: Deep Navy, Neon Purple, Cyan, Hot Pink
*/

:root {
    /* Color Palette */
    --bg-body: #0a0f1c;
    /* Deepest Navy */
    --bg-card: rgba(20, 27, 45, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.03);

    --primary: #8b5cf6;
    /* Violet */
    --primary-glow: rgba(139, 92, 246, 0.5);
    --secondary: #06b6d4;
    /* Cyan */
    --secondary-glow: rgba(6, 182, 212, 0.5);
    --accent: #f472b6;
    /* Pink */
    --success: #10b981;
    /* Green */

    --text-main: #f1f5f9;
    --text-muted: #94a3b8;

    --border: rgba(255, 255, 255, 0.08);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --font-display: 'Orbitron', sans-serif;
    /* Tech/Gamer Headings */
    --font-body: 'Inter', sans-serif;
}



/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-body);
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Global Scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
    scroll-behavior: smooth;
    /* Force smooth scrolling */
}

body {
    background-color: var(--bg-body);
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Button Click Effect */
.btn:active,
a:active {
    transform: scale(0.95) !important;
    transition: transform 0.1s;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
    text-transform: uppercase;
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    /* Tech feel */
    font-weight: 600;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #fff !important;
    box-shadow: 0 0 15px var(--primary-glow);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    /* Improved visibility */
    font-weight: 700;
}

.btn-primary:hover {
    box-shadow: 0 0 25px var(--primary-glow), 0 0 10px var(--secondary-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* 3D Glass Cards */
.card-3d {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    /* Performance Fixes */
    will-change: transform;
    backface-visibility: hidden;
}

.card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    opacity: 0.5;
}

.card-3d:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--primary-glow);
    border-color: var(--primary);
}

/* HEADER (Sticky Glass) */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    will-change: transform;
    /* Hint for compositing */
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-shadow: 0 0 10px var(--secondary-glow);
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary);
    text-shadow: 0 0 8px var(--secondary-glow);
}

/* HERO SECTION (Metaverse Style) */
.hero {
    padding: 2rem 0 6rem;
    position: relative;
    overflow: visible;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* ANIMATED REWARD CARD (Fixed & Polished) */
.tilt-wrapper {
    perspective: 1000px;
    display: flex;
    justify-content: center;
}

.job-board-card {
    width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: 16px;
    position: relative;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.25), inset 0 0 20px rgba(139, 92, 246, 0.05);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: card-float 6s ease-in-out infinite;
    backdrop-filter: blur(16px);
    /* Performance Fixes */
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.job-board-card:hover {
    transform: perspective(1000px) rotateY(0) scale(1.02);
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.4);
    border-color: var(--secondary);
}

@keyframes card-float {

    0%,
    100% {
        transform: perspective(1000px) rotateY(-5deg) translateY(0);
    }

    50% {
        transform: perspective(1000px) rotateY(-5deg) translateY(-15px);
    }
}

.job-board-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--secondary);
    box-shadow: 0 0 15px var(--secondary), 0 0 30px var(--secondary);
    opacity: 0.6;
    animation: scan-line 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: 10;
    pointer-events: none;
}

@keyframes scan-line {
    0% {
        top: -10%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 110%;
        opacity: 0;
    }
}

.board-header {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.2), transparent);
    color: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-display);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.board-content {
    padding: 1.5rem;
}

.job-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.job-item:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--secondary);
    transform: translateX(5px);
}

.job-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.job-info h4 {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-main);
    font-family: var(--font-display);
    letter-spacing: 0.5px;
}

.job-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.job-reward {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.job-reward .amount {
    display: block;
    color: var(--secondary);
    font-weight: 700;
    font-size: 1rem;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.btn-accept {
    display: inline-block;
    font-size: 0.7rem;
    color: #000;
    background: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 6px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    border: none;
    transition: 0.2s;
}

.btn-accept:hover,
.job-item:hover .btn-accept {
    background: var(--secondary);
    box-shadow: 0 0 15px var(--secondary);
    transform: scale(1.1);
}

.board-footer {
    padding: 0.8rem 1.5rem;
    text-align: right;
    background: rgba(0, 0, 0, 0.2);
}

.pulse-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 8px var(--success);
    animation: dot-pulse 1.5s infinite;
}

@keyframes dot-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* LIVE STATS SECTION (New) */
.live-stats {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Force 4 columns on desktop */
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    position: relative;
    padding: 1rem;
    text-align: center;
    /* Center align content */
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    /* Center in 2rem gap */
    top: 10%;
    bottom: 10%;
    width: 3px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.stat-icon {
    font-size: 2.5rem;
    /* Larger */
    margin-bottom: 0.5rem;
    display: inline-block;
    /* Changed to inline-block for centering */
    text-shadow: 0 0 15px var(--secondary);
    /* Glowing Emojis */
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.2rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}


/* FOOTER */
footer {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 1rem 0;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links h4 {
    color: var(--secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text-main);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 0;
    border-top: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

    /* Layout Adjustments */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        margin: 0 auto 2rem;
    }

    .tilt-wrapper {
        display: none !important;
        /* Hide 3D card on mobile for performance/space */
    }

    /* Navigation */
    .navbar {
        padding: 0.8rem 0;
        position: relative !important;
        /* Unstick on mobile to save screen space */
        top: auto !important;
    }

    .nav-content {
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
        /* Hidden by default */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 99999;
        flex-direction: column;
        background: #0a0f1c;
        /* Solid background color - same as body */
        padding: 1.5rem;
        margin-top: 0;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        border: 1px solid var(--border);
        border-top: none;
        gap: 1.5rem;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 0.5rem;
    }

    /* Dashboard Sidebar */
    .sidebar {
        transform: translateX(-100%);
        /* Hide sidebar off-screen */
        width: 280px;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .sidebar.active {
        transform: translateX(0);
        /* Slide in */
    }

    .main-content {
        margin-left: 0 !important;
        /* Remove margin when sidebar is hidden */
        width: 100%;
    }

    /* Dashboard Header */
    .modern-header {
        padding: 1rem;
        flex-direction: column;
        /* Stack header items if needed, or keep row but adjust */
        gap: 1rem;
    }

    .header-left {
        width: 100%;
        justify-content: flex-start;
    }

    .header-controls {
        width: 100%;
        justify-content: flex-end;
    }

    #sidebar-toggle {
        display: block !important;
        /* Show hamburger on mobile */
    }

    /* Grid Layouts */
    .stats-grid {
        grid-template-columns: 1fr;
        /* 1 Column for stats */
        gap: 1rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        /* 1 Column for content */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    /* Login/Register Split Layout */
    .split-layout {
        flex-direction: column;
    }

    .auth-left {
        display: none;
        /* Hide animation side on mobile */
    }

    .auth-right {
        width: 100%;
        padding: 1rem;
    }

    .auth-card {
        padding: 1.5rem;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure Main Content respects Sidebar on Desktop */
@media (min-width: 769px) {
    .main-content {
        margin-left: 260px;
        /* Match sidebar width */
        width: calc(100% - 260px);
    }

    #sidebar-toggle {
        display: none;
        /* Hide toggle on desktop */
    }

    .mobile-menu-btn {
        display: none;
    }
}

/* --- NAVIGATION HOVER EFFECTS (FORCED) --- */
/* Restored but ensure these don't override mobile toggling */
.nav-links {
    /* display: flex; REMOVED to avoid overriding mobile display: none */
    gap: 2rem;
    align-items: center;
}

/* Ensure desktop flex is applied only on desktop */
@media (min-width: 769px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    text-decoration: none !important;
    color: var(--text-muted) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary) !important;
    text-shadow: 0 0 10px var(--primary-glow);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 5px var(--primary-glow);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* --- DASHBOARD LAYOUT & SIDEBAR (ADDED FOR FIX) --- */
.wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.sidebar {
    width: 260px;
    /* Reduced to 260px */
    /* Restored to Standard 280px */
    /* Restored to standard */
    background: rgba(10, 15, 28, 0.95);
    border-right: 1px solid var(--border);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    padding: 1.5rem 2rem 1rem;
    /* Reduced top/bottom padding */
    border-bottom: 1px solid var(--border);
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 1rem 1.5rem;
    /* Reduced top padding */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.sidebar-menu::-webkit-scrollbar {
    width: 5px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}



.menu-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin: 1rem 0 0.5rem 1rem;
    /* Reduced top margin */
    font-weight: 700;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.65rem 1rem;
    /* Compact padding */
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.9rem;
    /* Smaller Font */
}

.menu-item:hover,
.menu-item.active {
    background: rgba(139, 92, 246, 0.1);
    color: #fff;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.05);
}

.menu-item.active {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.15), transparent);
    border-left: 3px solid var(--secondary);
}

.menu-icon {
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.logout-item {
    margin-top: auto;
    color: #ef4444 !important;
}

.logout-item:hover {
    background: rgba(239, 68, 68, 0.1) !important;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    /* Match sidebar 260px */
    padding: 1rem 1.5rem 2rem;
    /* Reduced horizontal padding */
    width: calc(100% - 260px);
    transition: margin-left 0.3s;
}

.section-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
}

/* Removed 992px media query to restore desktop sidebar on small screens */

/* --- FORMS & INPUTS (ADDED FOR FIX) --- */
.form-input,
input:not([type='submit']):not([type='button']):not([type='checkbox']):not([type='radio']),
select,
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus,
input:not([type='submit']):not([type='button']):not([type='checkbox']):not([type='radio']):focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    background: rgba(255, 255, 255, 0.1);
}

/* Placeholders */
::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Select dropdown styling */
select {
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%238b5cf6%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.8rem auto;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/* Checkbox/Radio */
input[type='checkbox'],
input[type='radio'] {
    accent-color: var(--primary);
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}


/* --- AUTH CARD OVERHAUL (LINK2EARN STYLE) --- */
.auth-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.auth-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.auth-card .form-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.auth-card .form-input:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
    transform: translateY(-1px);
}

.auth-card .btn-primary {
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    box-shadow: 0 10px 20px -5px rgba(139, 92, 246, 0.4);
}

.auth-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(139, 92, 246, 0.5);
}


/* --- SPLIT LAYOUT & ANIMATION (LINK2EARN STYLE) --- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

.auth-left {
    position: relative;
    display: flex;
    justify-content: flex-end;
    /* Move to right */
    align-items: center;
    /* background removed to show global theme */
    z-index: 1;
    padding-right: 2rem;
    /* Add spacing from center */
}

.auth-right {
    display: flex;
    /* Stack card and footer */
    justify-content: flex-start;
    /* Move to left */
    align-items: center;
    position: relative;
    z-index: 10;
    padding-left: 2rem;
    /* Add spacing from center */
}

/* Lottie Container */
.lottie-container {
    width: 80%;
    max-width: 600px;
    animation: floaty 6s ease-in-out infinite alternate;
    position: relative;
    z-index: 2;
}

@keyframes floaty {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-20px);
    }
}

/* Ambient Glows */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
    animation: floatGlow 15s ease-in-out infinite alternate;
}

.hero-glow.one {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
    top: 10%;
    left: 10%;
}

.hero-glow.two {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.4) 0%, transparent 70%);
    bottom: 20%;
    right: 20%;
    animation-delay: -5s;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* --- COMMAND CENTER HUD STYLES (v2) --- */

.hud-container {
    display: grid;
    gap: 2rem;
    padding-bottom: 2rem;
}

/* 1. Holodeck Header */
.hud-header {
    position: relative;
    background: linear-gradient(90deg, rgba(16, 20, 40, 0.9), rgba(16, 20, 40, 0.6));
    border: 1px solid var(--primary);
    border-radius: 0 0 20px 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    overflow: hidden;
    /* Tech corners */
    clip-path: polygon(0 0,
            100% 0,
            100% 85%,
            98% 100%,
            2% 100%,
            0 85%);
}

.hud-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    box-shadow: 0 0 10px var(--secondary);
}

.hud-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.commander-info h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--primary-glow);
    margin: 0;
}

.rank-badge {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 1rem;
    display: inline-block;
}

/* 2. Core Stats Modules */
.hud-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.hud-module {
    background: rgba(10, 15, 28, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 160px;
    /* Corner Accents */
}

.hud-module::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
}

.hud-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--primary);
    border-left: 2px solid var(--primary);
}

.module-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 8px currentColor);
}

.module-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.module-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

/* Color Variants for Modules */
.hud-module.core {
    border-color: var(--success);
}

.hud-module.core .module-icon {
    color: var(--success);
}

.hud-module.core::after,
.hud-module.core::before {
    border-color: var(--success);
}

.hud-module.signal {
    border-color: var(--secondary);
}

.hud-module.signal .module-icon {
    color: var(--secondary);
}

.hud-module.signal::after,
.hud-module.signal::before {
    border-color: var(--secondary);
}

.hud-module.uplink {
    border-color: var(--accent);
}

.hud-module.uplink .module-icon {
    color: var(--accent);
}

.hud-module.uplink::after,
.hud-module.uplink::before {
    border-color: var(--accent);
}


/* 3. Operations Deck (Bottom) */
.ops-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.ops-panel {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    padding: 1.5rem;
    position: relative;
    backdrop-filter: blur(10px);
}

.ops-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.ops-header h3 {
    font-size: 1rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Orbitron', sans-serif;
}

/* Launch Keys (Buttons) */
.launch-key {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent);
    border-left: 3px solid var(--border);
    padding: 1.2rem;
    margin-bottom: 1rem;
    transition: 0.3s;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
}

.launch-key:hover {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.1), transparent);
    border-left-color: var(--primary);
    padding-left: 1.5rem;
    color: #fff;
    text-shadow: 0 0 8px var(--primary);
}

/* Terminal List */
.terminal-item {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    padding: 0.8rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.terminal-item span.highlight {
    color: var(--success);
}

/* Responsive */
@media (max-width: 900px) {
    .hud-stats-grid {
        grid-template-columns: 1fr;
    }

    .ops-grid {
        grid-template-columns: 1fr;
    }
}


/* Fix Auth Card Size */
.auth-card {
    width: 100%;
    max-width: 440px;
    /* Reduced width per user request */
    margin: 2rem;
}

/* HUD Icons */
.hud-icon {
    position: absolute;
    z-index: 5;
    transition: all 0.3s ease;
}

.hud-icon.main {
    width: 70px;
    height: 70px;
    color: var(--primary);
    filter: drop-shadow(0 0 15px var(--primary));
    animation: iconPulse 3s ease-in-out infinite alternate;
}

.hud-icon.badge {
    width: 35px;
    height: 35px;
    transform: translate(25px, 25px);
    /* Offset to bottom-right */
    color: var(--secondary);
    filter: drop-shadow(0 0 10px var(--secondary));
    animation: iconPulse 3s ease-in-out infinite alternate-reverse;
}

.hud-core {
    background: none !important;
    /* Remove solid core */
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

@keyframes iconPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
        filter: drop-shadow(0 0 25px var(--accent));
    }
}


/* --- DASHBOARD SPECIFIC STYLES --- */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    /* Reduced from 2.5rem */
    padding: 1rem 1.5rem;
    /* Reduced top/bottom padding */
    background: rgba(10, 15, 28, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.user-welcome h1 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
    background: linear-gradient(90deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-welcome span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 50px;
    transition: 0.3s;
}

.user-profile-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.avatar-circle {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Enhanced Stat Cards */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(139, 92, 246, 0.1);
}

.stat-card:hover::before {
    transform: translateX(100%);
}

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    position: relative;
}

.stat-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    opacity: 0.4;
    filter: blur(5px);
    z-index: -1;
}

.stat-icon-wrapper.green {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.stat-icon-wrapper.green::after {
    background: #10b981;
}

.stat-icon-wrapper.blue {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.stat-icon-wrapper.blue::after {
    background: #3b82f6;
}

.stat-icon-wrapper.purple {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.stat-icon-wrapper.purple::after {
    background: #8b5cf6;
}

.stat-icon-wrapper.orange {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.stat-icon-wrapper.orange::after {
    background: #f59e0b;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-display);
    margin-bottom: 0.2rem;
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Quick Actions & Recent Activity */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.action-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    /* Slimmer padding */
    /* Shrink to 1rem */
    /* Height auto to fit content only */
    display: flex;
    flex-direction: column;
}

.action-list,
.activity-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.35rem;
}


/* Sidebar Icons (Emojis) */
.menu-icon {
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.menu-item:hover .menu-icon,
.menu-item.active .menu-icon {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

.menu-category {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.8;
    letter-spacing: 1px;
    margin-top: 1rem;
    /* Reduced from default/previous */
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

/* Boxy Pill Menu Items */
.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding-left: 1.25rem;
    /* Slight shift */
}

.menu-item.active {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.1), transparent);
    color: #fff;
    border-left-color: var(--primary);
}

.card-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.card-header {
    margin-bottom: 0.5rem;
    /* Shrink margin */
}

.quick-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0.75rem;
    /* Slimmer button padding */
    /* Shrink to 0.75rem */
    margin-bottom: 0;
    /* Let flex handle spacing */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.quick-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--primary);
    transform: translateX(5px);
    color: #fff;
}

.quick-btn .icon {
    font-size: 1.1rem;
    /* Shrink icon */
}



.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    /* Slimmer item padding */
    /* Shrink to 0.75rem */
    background: rgba(255, 255, 255, 0.03);
    /* Match Quick Actions */
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.08);
    /* Brighter on hover */
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.activity-info h4 {
    font-size: 0.9rem;
    margin: 0 0 0.25rem 0;
    color: #fff;
}

.activity-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.activity-value {
    font-weight: 700;
    color: var(--success);
    font-family: var(--font-display);
}

/* --- DASHBOARD HEADER REDESIGN --- */

.modern-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.welcome-text h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 0;
    /* Forced zero gap */
}

.icon-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 !important;
    /* Force no margin */
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.profile-pill {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* PROFESSIONAL PROFILE CARD */
.identity-card {
    padding: 0;
    /* Clear padding for header image */
    background: var(--bg-card);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-header-bg {
    height: 100px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.1));
    position: relative;
}

.card-header-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, var(--bg-card), transparent);
}

.pro-avatar-container {
    margin-top: -60px;
    text-align: center;
    position: relative;
    margin-bottom: 1rem;
}

.pro-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
    /* Cutout effect */
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    position: relative;
    z-index: 2;
}

.pro-badge {
    position: absolute;
    bottom: 0;
    right: calc(50% - 50px);
    /* Align to bottom right of avatar */
    background: var(--secondary);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    border: 2px solid var(--bg-card);
    z-index: 3;
}

.pro-info {
    text-align: center;
    padding: 0 2rem 2rem;
}

.pro-info h2 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0.25rem;
}

.pro-email {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.pro-stats-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
}

.pro-stat-item {
    text-align: center;
}

.pro-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-display);
}

.pro-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.pro-status-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.status-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.status-verified {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-unverified {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* PROFILE HERO REDESIGN */
.profile-hero {
    height: 250px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(6, 182, 212, 0.2)),
        url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md);
    position: relative;
    margin-bottom: 5rem;
    /* Space for the floating avatar */
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.profile-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--bg-body), transparent);
}

.profile-avatar-container {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
}

.hero-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--bg-body);
    padding: 6px;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
    margin: 0 auto 1rem;
    position: relative;
    overflow: hidden;
}

.hero-avatar img,
.hero-avatar .placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
}

.hero-username {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.verified-badge {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* HUD STATS */
.hud-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .hud-grid {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        padding: 1.5rem;
        height: 100%;
    }
}

.modern-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modern-card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.grid-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    /* Adjusted min-width for better fit */
    gap: 1rem;
}

.modern-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    /* Restored to 1.5rem */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.modern-quick-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
    color: #fff;
}

/* Specific colors for hover states */
.modern-quick-btn:hover .btn-icon.view-ads {
    color: #60a5fa;
    text-shadow: 0 0 15px rgba(96, 165, 250, 0.5);
}

.modern-quick-btn:hover .btn-icon.offers {
    color: #f472b6;
    text-shadow: 0 0 15px rgba(244, 114, 182, 0.5);
}

.modern-quick-btn:hover .btn-icon.withdraw {
    color: #34d399;
    text-shadow: 0 0 15px rgba(52, 211, 153, 0.5);
}

.modern-quick-btn .btn-icon {
    font-size: 2.5rem;
    /* Restored to 2.5rem */
    margin-bottom: 0.25rem;
    transition: 0.3s;
    filter: grayscale(100%);
    opacity: 0.7;
}

.modern-quick-btn:hover .btn-icon {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.modern-quick-btn span:last-child {
    font-size: 0.85rem;
    font-weight: 600;
}

/* --- VIEW ALL ADS BUTTON --- */
.view-all-btn {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    padding: 0.8rem;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.05);
    border: 1px dashed rgba(139, 92, 246, 0.3);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

/* --- OFFERWALLS PAGE --- */
.offerwall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.offerwall-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: auto;
    /* Compact height */
}

.offerwall-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
    opacity: 0;
    transition: 0.3s;
}

.offerwall-card:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 5px 20px -5px rgba(0, 0, 0, 0.5);
}

.offerwall-card:hover::before {
    opacity: 1;
}

/* Icon wrapper styles removed as requested */


/* Terminal Window (Active View) */
.terminal-window {
    background: rgba(10, 15, 30, 0.95);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    margin-top: 3rem;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terminal-header {
    background: #0f172a;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red {
    background: #ef4444;
}

.dot-yellow {
    background: #f59e0b;
}

.dot-green {
    background: #10b981;
}

.terminal-title {
    font-family: monospace;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.close-terminal-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-terminal-btn:hover {
    background: #ef4444;
    transform: rotate(90deg);
}

/* --- PTC ADS PAGE --- */
.ptc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.ptc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ptc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--primary);
    opacity: 0.5;
    transition: 0.3s;
}

.ptc-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.ptc-card:hover::before {
    opacity: 1;
    box-shadow: 0 0 10px var(--primary);
}

.ptc-card.completed {
    opacity: 0.6;
    border-color: var(--success);
}

.ptc-card.completed::before {
    background: var(--success);
}

.ptc-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-reward {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-timer {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Ad Viewing Overlay (System Process Style) */
.ad-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 15, 30, 0.98);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.process-container {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.process-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    border-radius: 2px;
    overflow: hidden;
}

.process-progress {
    height: 100%;
    background: var(--primary);
    width: 0%;
    box-shadow: 0 0 10px var(--primary);
    transition: width 1s linear;
}

.digit-counter {
    font-family: 'Orbitron', monospace;
    font-size: 5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin: 1.5rem 0;
    text-shadow: 0 0 20px var(--primary);
}

/* --- TASKS PAGE --- */
.task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.task-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: #a855f7;
    /* Purple accent */
    opacity: 0.5;
    transition: 0.3s;
}

.task-card:hover {
    transform: translateY(-5px);
    border-color: #a855f7;
    box-shadow: 0 10px 30px -10px rgba(168, 85, 247, 0.2);
}

.task-card:hover::before {
    opacity: 1;
    box-shadow: 0 0 10px #a855f7;
}

.task-card.completed {
    opacity: 0.6;
    border-color: var(--success);
}



/* --- CYBERPUNK TABLE STYLES --- */
.cyber-table-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    overflow-x: auto;
}

.cyber-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

.cyber-table th {
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    font-weight: 600;
}

.cyber-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    transition: background 0.2s;
}

.cyber-table tr:last-child td {
    border-bottom: none;
}

.cyber-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}



/* --- WITHDRAW PAGE STYLES --- */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-option {
    position: relative;
}

.payment-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.payment-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.payment-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.payment-option input:checked+.payment-card {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.payment-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    transition: 0.3s;
}

.payment-option input:checked+.payment-card .payment-icon {
    color: #fff;
    transform: scale(1.1);
}

.payment-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.payment-option input:checked+.payment-card .payment-name {
    color: #fff;
}

.cyber-input-group {
    margin-bottom: 1.5rem;
}

.cyber-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.cyber-input {
    width: 100%;
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 12px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.cyber-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
    background: rgba(10, 15, 30, 0.8);
}

.balance-card-cyber {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.balance-card-cyber::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ULTRA COMPACT PROFILE STYLES */
.profile-container-compact {
    display: grid;
    grid-template-columns: 350px 1fr;
    /* Fixed width for identity, rest for settings */
    gap: 1.5rem;
    align-items: start;
    height: calc(100vh - 100px);
    /* Fit within viewport */
    overflow: hidden;
    padding-bottom: 1rem;
}

@media (max-width: 900px) {
    .profile-container-compact {
        grid-template-columns: 1fr;
        height: auto;
        overflow-y: auto;
    }
}

.mini-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.identity-compact {
    position: relative;
}

.avatar-compact {
    width: 90px;
    height: 90px;
    margin: 2rem auto 1rem;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.avatar-compact div {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    font-weight: 800;
}

.user-info-compact {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.user-info-compact h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.user-info-compact p {
    color: var(--text-muted);
}

/* COMPACT TILE GRID */
.tile-grid-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 0 1.5rem 1.5rem;
    overflow-y: auto;
}

.mini-tile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.2s ease;
}

.mini-tile:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.3);
}

.mini-tile-icon {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.mini-tile-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mini-tile-value {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-top: 2px;
}

/* SETTINGS COLUMN */
.settings-compact {
    padding: 2rem;
    overflow-y: auto;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.settings-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.compact-form-group {
    margin-bottom: 1.5rem;
}

.compact-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.compact-input {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #fff;
    transition: 0.2s;
}

.compact-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
}

.compact-btn {
    width: 100%;
    padding: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* BLOCK LAYOUT STYLES */
.profile-blocks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.5rem 0;
    width: 100%;
}

.info-block {
    background: rgba(255, 255, 255, 0.05);
    /* Distinct block bg */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Left align content */
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-block:hover {
    background: rgba(255, 255, 255, 0.08);
    /* Brighter on hover */
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.info-block-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.info-block-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.info-block-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-display);
    word-break: break-all;
    /* Prevent overflow */
}

/* Specific Block Colors */
.block-balance {
    border-left: 3px solid var(--success);
}

.block-value {
    border-left: 3px solid var(--secondary);
}

.block-id {
    border-left: 3px solid #f59e0b;
}

.block-joined {
    border-left: 3px solid #8b5cf6;
}

/* Status Blocks are full width */
.status-blocks-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    width: 100%;
}

.status-block {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

/* SMART COMPACT CARD STYLES */
.smart-identity {
    padding: 0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.smart-header-bg {
    height: 100px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(6, 182, 212, 0.4));
    position: relative;
}

.smart-avatar {
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border-radius: 50%;
    padding: 3px;
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px var(--bg-card);
}

.smart-avatar-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 1.5rem;
}

.smart-body {
    padding: 3rem 1.5rem 1.5rem;
    text-align: center;
    flex: 1;
}

.smart-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.smart-email {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Smart Stats Row - Flex based */
.smart-stats {
    display: flex;
    justify-content: space-around;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.smart-stat-item {
    display: flex;
    flex-direction: column;
}

.smart-stat-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.smart-stat-lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Smart Tags - Flow Layout */
.smart-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.smart-tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
}

.smart-tag strong {
    color: #fff;
}

/* HORIZONTAL BANNER PROFILE STYLES */
.profile-banner {
    background: linear-gradient(90deg, rgba(20, 20, 30, 0.8), rgba(30, 30, 50, 0.6));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.banner-identity {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.banner-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 2px;
}

.banner-avatar div {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.banner-info h2 {
    font-size: 1.5rem;
    margin: 0;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.banner-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.banner-stats {
    display: flex;
    gap: 2rem;
}

.b-stat {
    text-align: right;
}

.b-stat-val {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-display);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.b-stat-lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Content Grid below Banner */
.profile-content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
}

.data-log-card,
.system-config-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
}

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-row:last-child {
    border-bottom: none;
}

.data-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.data-value {
    color: #fff;
    font-weight: 500;
    font-family: monospace;
}


/* MERGED PROFILE CARD STYLES */
.merged-profile-container {
    max-width: 700px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.merged-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    position: relative;
}

.merged-header {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
    padding: 3rem 2rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.merged-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 3px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.merged-avatar div {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    font-weight: 800;
}

.merged-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.merged-username {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Horizontal Stats Bar */
.merged-stats {
    display: flex;
    justify-content: space-around;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--border);
    max-width: 500px;
    margin: 0 auto;
}

.merged-stat-item {
    text-align: center;
}

.merged-stat-val {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.merged-stat-lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Form Section */
.merged-body {
    padding: 2.5rem;
}

.merged-section-title {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.merged-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
    margin-left: 1rem;
}

/* --- MODERN DASHBOARD HEADER --- */
.modern-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    margin: 0 0 2rem 0;
    backdrop-filter: blur(10px);
    border-radius: 16px;
}

.header-left .welcome-text h1 {
    font-size: 1.5rem;
    margin: 0;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-left .welcome-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0.5rem 0.35rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.profile-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-info {
    text-align: right;
    line-height: 1.2;
}

.profile-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.profile-role {
    display: block;
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* --- DASHBOARD ACTION CARDS --- */
.modern-action-card {
    background: rgba(20, 27, 45, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modern-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.modern-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: 0.5px;
}

.text-gradient {
    background-clip: text;
    display: inline-block;
}

/* Generic Hover Effect */
.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hover-scale:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--primary-glow);
    border-color: var(--primary) !important;
}

/* Sidebar Logo Box (User Request) */
.sidebar-header {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Tables Responsive */
.cyber-table-container,
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
    table {
        min-width: 600px;
        /* Force horizontal scroll */
    }

    /* FAQ Mobile Fixes */
    .faq-header {
        padding: 1rem !important;
    }

    .faq-body {
        padding: 1rem !important;
    }

    /* Payment Proof Table Fixes */
    .table-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        width: 100% !important;
        display: block;
    }

    .table-wrapper table {
        min-width: 700px;
        /* Ensure content doesn't squash */
    }

    .table-wrapper th,
    .table-wrapper td {
        padding: 0.8rem 0.5rem !important;
        font-size: 0.8rem !important;
        white-space: nowrap;
        /* Prevent wrapping for cleaner look */
    }

    /* FIX: Force overflow hidden and smaller fonts to prevent horizontal scroll */
    html,
    body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .container {
        width: 100% !important;
        padding: 0 1rem !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    section {
        overflow-x: hidden !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    h1 {
        font-size: 1.8rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        line-height: 1.2 !important;
    }

    p {
        word-wrap: break-word !important;
    }

    /* AUTH PAGES CRITICAL FIX */
    .split-layout {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        position: relative !important;
        overflow: visible !important;
    }

    .auth-left {
        display: none !important;
    }

    .auth-right {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 100vh;
        padding: 1rem !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .auth-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 1rem !important;
        box-shadow: none !important;
        background: transparent !important;
        margin-top: 1rem !important;
    }

    /* Fix "Back to Home" link positioning */
    .auth-right>div:first-child {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 2rem !important;
        padding-top: 1rem !important;
        display: block !important;
    }

    /* Adjust logo and headers in auth pages */
    .auth-card .logo img {
        max-height: 50px !important;
    }

    .auth-card h1 {
        font-size: 1.5rem !important;
        margin-top: 0.5rem !important;
    }

    /* --- PROFILE GRID SYSTEM --- */
    .profile-grid {
        display: grid;
        gap: 1.5rem;
        max-width: 1000px;
        margin: 0 auto;
    }

    .profile-banner {
        display: grid;
        grid-template-columns: 1fr auto;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 2rem;
        align-items: center;
        position: relative;
        overflow: hidden;
        backdrop-filter: blur(10px);
    }

    .profile-banner::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(to bottom, var(--primary), var(--secondary));
    }

    .banner-identity {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    .banner-avatar {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary), var(--accent));
        padding: 3px;
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    }

    .banner-avatar div {
        width: 100%;
        height: 100%;
        background: var(--bg-body);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        font-weight: 800;
        color: #fff;
    }

    .banner-info h2 {
        font-size: 1.5rem;
        margin: 0;
        background: linear-gradient(90deg, #fff, var(--text-muted));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .banner-info p {
        color: var(--text-muted);
        font-size: 0.9rem;
        margin: 0.25rem 0 0;
    }

    .banner-stats {
        display: flex;
        gap: 2rem;
    }

    .b-stat {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .b-stat-val {
        font-family: var(--font-display);
        font-size: 1.5rem;
        font-weight: 700;
        color: #fff;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    }

    .b-stat-lbl {
        font-size: 0.75rem;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .profile-content-grid {
        display: grid;
        grid-template-columns: 350px 1fr;
        gap: 1.5rem;
    }

    .data-log-card,
    .system-config-card {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 1.5rem;
    }

    .data-row {
        display: flex;
        justify-content: space-between;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .data-row:last-child {
        border-bottom: none;
    }

    .data-label {
        color: var(--text-muted);
        font-size: 0.9rem;
    }

    .data-value {
        font-weight: 600;
        color: #fff;
    }

    .status-tag {
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 0.75rem;
        text-transform: uppercase;
        font-weight: 700;
    }

    .status-verified {
        background: rgba(16, 185, 129, 0.1);
        color: #10b981;
    }

    .status-unverified {
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
    }

    /* Ensure inputs are usable */
    .form-input {
        font-size: 16px !important;
        /* Prevent zoom on iOS */
    }
}

/* --- MOBILE RESPONSIVENESS OVERRIDES --- */
@media (max-width: 768px) {

    /* 1. Force Grids to Single Column */
    .ptc-grid,
    .task-grid,
    .offerwall-grid,
    .payment-grid,
    .grid,
    .grid-2-col,
    .stats-grid,
    .footer-grid,
    .profile-grid {
        grid-template-columns: 1fr !important;
    }

    /* 2. Adjust Profile Layout */
    .profile-container-compact,
    .profile-grid,
    .profile-content-grid,
    .profile-banner {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        overflow-y: visible !important;
    }

    .banner-stats {
        width: 100%;
        justify-content: space-between;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border);
    }

    .b-stat {
        align-items: center;
        width: 50%;
    }

    .b-stat:last-child {
        border-left: none !important;
        padding-left: 0 !important;
    }

    .banner-identity {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

    .profile-blocks-grid {
        grid-template-columns: 1fr !important;
    }

    .system-config-card form .grid-2-col {
        display: flex !important;
        flex-direction: column !important;
    }

    /* 3. Adjust Headers */
    .section-header {
        align-items: center !important;
        text-align: center !important;
    }

    .section-header h1 {
        font-size: 1.8rem !important;
        /* Smaller title */
    }

    .section-header p {
        font-size: 0.9rem !important;
        padding: 0 1rem;
    }

    /* 4. Payment Cards (Withdraw) */
    .payment-card {
        padding: 1rem !important;
        min-height: auto !important;
    }

    /* 5. Generic Container Padding */
    .main-content {
        padding: 1rem 1rem 6rem 1rem !important;
        /* Bottom pad for nav if needed */
        margin-left: 0 !important;
        width: 100% !important;
    }

    .container {
        width: 100% !important;
        padding: 0 15px !important;
    }

    /* 6. Sidebar Toggle Visibility */
    #sidebar-toggle {
        display: block !important;
    }

    /* 7. Dialogs / Modals */
    .terminal-window {
        width: 95% !important;
        left: 2.5% !important;
        top: 2.5% !important;
        height: 90vh !important;
    }

    /* 8. Table Adjustments */
    .cyber-table-container {
        padding: 0.5rem !important;
        border-radius: 8px !important;
    }

    .cyber-table th,
    .cyber-table td {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.85rem !important;
    }
}