:root {
    --bg-dark: #050505;
    --card-bg: rgba(15, 17, 26, 0.7);
    --border: rgba(255, 255, 255, 0.08);
    --neon: #aeff02;
    --neon-glow: rgba(174, 255, 2, 0.3);
    --white: #ffffff;
    --gray: #8e9196;
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --radius: 24px;
}

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

body.dashboard-active {
    background-color: var(--bg-dark);
    color: var(--white);
    font-family: var(--font-body);
    overflow: hidden;
    height: 100vh;
}

.dash-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: 100vh;
    width: 100vw;
}

/* Premium Dashboard Background System (Tactical Mesh) */
.dash-bg-system {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 0% 0%, rgba(174, 255, 2, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 100% 100%, rgba(0, 136, 255, 0.05) 0%, transparent 50%),
                var(--bg-dark);
}

.dash-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: dashOrbFade 3s ease forwards;
}

.dash-orb-1 {
    width: 800px; height: 800px;
    top: -200px; left: -200px;
    background: radial-gradient(circle, rgba(174,255,2,0.1), transparent 70%);
}

.dash-orb-2 {
    width: 600px; height: 600px;
    bottom: -100px; right: -100px;
    background: radial-gradient(circle, rgba(0,136,255,0.08), transparent 70%);
}

.dash-grid-mesh {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(45deg, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
}

.dash-data-cell {
    position: absolute;
    border: 1px solid rgba(255,255,255,0.03);
    background: rgba(255,255,255,0.01);
    border-radius: 4px;
    animation: cellFloat 15s linear infinite;
}

.cell-1 { width: 150px; height: 100px; top: 20%; left: 15%; animation-delay: 0s; }
.cell-2 { width: 120px; height: 180px; top: 60%; right: 10%; animation-delay: -5s; }

.dash-scan-line {
    position: absolute;
    width: 100%;
    height: 100px;
    background: linear-gradient(180deg, transparent, rgba(174,255,2,0.02), transparent);
    animation: scanMove 8s linear infinite;
    z-index: 1;
}

.dash-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
    mix-blend-mode: overlay;
    pointer-events: none;
}

@keyframes dashOrbFade { from { opacity: 0; } to { opacity: 0.4; } }
@keyframes scanMove { from { top: -100px; } to { top: 100%; } }
@keyframes cellFloat {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.hero-beam {
    position: absolute;
    top: -30%;
    right: 10%;
    width: 600px;
    height: 160%;
    background: linear-gradient(180deg, transparent 0%, rgba(174,255,2,0.02) 30%, rgba(174,255,2,0.04) 50%, rgba(174,255,2,0.02) 70%, transparent 100%);
    transform: rotate(25deg);
    filter: blur(50px);
    pointer-events: none;
    z-index: -1;
}

/* Onboarding Overlay */
/* Onboarding Overlay Base */
.onboarding-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(25px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.8s cubic-bezier(0.86, 0, 0.07, 1);
}

.onboarding-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.05);
}

/* Onboarding Card Split Layout */
.onboarding-card {
    width: 950px;
    max-width: 95%;
    max-height: 85vh;
    background: #000;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    display: flex;
    position: relative;
    padding: 0;
}

.onboarding-info-panel {
    flex: 1;
    background: linear-gradient(180deg, #0a0a0c 0%, #000 100%);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.onboarding-info-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
    z-index: 1;
}

.onboarding-info-panel > * { position: relative; z-index: 2; }

.info-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 50px;
}

.info-logo .logo-icon {
    width: 48px;
    height: 48px;
    background: var(--neon);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.info-content h2 {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    font-family: var(--font-display);
}

.info-content h2 span { color: var(--neon); }

.info-content p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 380px;
}

.onboarding-form-panel {
    width: 440px;
    padding: 50px;
    background: #0a0a0c;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.onboarding-header {
    text-align: left;
    margin-bottom: 30px;
}

.onboarding-header h1 {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-display);
    margin-bottom: 8px;
}

.onboarding-header p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Football Field Selector */
.field-container {
    background: #020402;
    border: 1px solid rgba(174, 255, 2, 0.15);
    border-radius: 24px;
    padding: 20px;
    position: relative;
    aspect-ratio: 2/2.8;
    width: 100%;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    perspective: 1000px;
    z-index: 2;
}

.pitch {
    position: relative;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(174, 255, 2, 0.15);
    transform: rotateX(5deg);
    transition: var(--transition);
}

.pitch::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 10%, rgba(174, 255, 2, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Pitch Markings */
.pitch::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; width: 100%; height: 1.5px;
    background: rgba(174, 255, 2, 0.25);
    z-index: 1;
}

.pitch::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 80px; height: 80px;
    border: 1.5px solid rgba(174, 255, 2, 0.25);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.penalty-box {
    position: absolute;
    left: 50%; transform: translateX(-50%);
    width: 70%; height: 18%;
    border: 1.5px solid rgba(174, 255, 2, 0.25);
    z-index: 1;
}

.penalty-box.top { top: 0; border-top: none; }
.penalty-box.bottom { bottom: 0; border-bottom: none; }

.goal-box {
    position: absolute;
    left: 50%; transform: translateX(-50%);
    width: 35%; height: 6%;
    border: 1.5px solid rgba(174, 255, 2, 0.25);
    z-index: 1;
}
.goal-box.top { top: 0; border-top: none; }
.goal-box.bottom { bottom: 0; border-bottom: none; }

/* Position Dots (Concentric Style) */
.pos-dot {
    position: absolute;
    width: 36px; height: 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: var(--transition);
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pos-dot:not(.selected)::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    border: 1px solid rgba(174, 255, 2, 0.1);
    border-radius: 50%;
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.pos-dot .dot-inner {
    width: 20px; height: 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pos-dot .dot-core {
    width: 6px; height: 6px;
    background: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.pos-dot:hover, .pos-dot.selected {
    border-color: var(--neon);
    background: rgba(174, 255, 2, 0.05);
    box-shadow: 0 0 30px var(--neon-glow);
}

.pos-dot:hover .dot-core, .pos-dot.selected .dot-core {
    background: var(--neon);
    box-shadow: 0 0 10px var(--neon);
    transform: scale(1.2);
}

.pos-label {
    position: absolute;
    top: -25px; left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gray);
    white-space: nowrap;
    opacity: 0.8;
}

.pos-dot.selected .pos-label {
    color: var(--neon);
    opacity: 1;
}

/* Onboarding Steps */
.onboarding-step {
    display: none;
    animation: stepIn 0.5s ease forwards;
}

.onboarding-step.active {
    display: block;
}

@keyframes stepIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Profile Form */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
    font-family: var(--font-display);
}

.premium-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.premium-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--neon);
    box-shadow: 0 0 15px var(--neon-glow);
}

.premium-input::placeholder {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Button */
.btn-continue {
    width: 100%;
    padding: 20px;
    background: #0f1118;
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--gray);
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-display);
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.6;
    pointer-events: none;
    z-index: 2;
    position: relative;
}

.btn-continue.active {
    opacity: 1;
    pointer-events: all;
    background: #151821;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.btn-continue.active:hover {
    transform: translateY(-2px);
    background: #1a1e28;
    border-color: rgba(255, 255, 255, 0.2);
}

/* =========================================
   CONTAINER CLASSES
========================================= */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}
.container-large {
    max-width: 1400px;
}

/* Dashboard Main Layout */
.dash-main {
    height: 100vh;
    padding: 0;
    gap: 0;
    filter: blur(10px);
    transition: filter 1s ease, transform 1s ease;
    background: transparent;
}

body:has(.onboarding-overlay.hidden) .dash-main {
    filter: blur(0);
}

/* =========================================
   PREMIUM SIDEBAR
========================================= */
.dash-sidebar {
    height: 100vh;
    background: rgba(10, 12, 16, 0.4);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
    z-index: 20;
    position: relative;
    box-shadow: 10px 0 30px rgba(0,0,0,0.5);
}

.sidebar-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 50px;
    padding-left: 10px;
    letter-spacing: -0.5px;
}

.sidebar-logo i { 
    color: var(--neon); 
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px rgba(174,255,2,0.4));
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    border-radius: 14px;
    color: var(--gray);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.nav-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    transition: var(--transition);
    opacity: 0.7;
}

@media (hover: hover) {
    .nav-item:hover {
        color: var(--white);
        background: rgba(255, 255, 255, 0.05);
        transform: translateX(5px);
    }
    .nav-item:hover i { opacity: 1; color: var(--neon); }
}

.nav-item.active {
    background: rgba(174, 255, 2, 0.1);
    color: #fff;
    font-weight: 600;
    border: 1px solid rgba(174, 255, 2, 0.2);
    box-shadow: inset 0 0 20px rgba(174, 255, 2, 0.05), 0 5px 15px rgba(0,0,0,0.2);
}

.nav-item.active i { 
    opacity: 1; 
    color: var(--neon); 
    filter: drop-shadow(0 0 8px rgba(174,255,2,0.5));
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 4px;
    background: var(--neon);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px var(--neon);
}

/* Content Area */
.dash-content {
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    padding: 30px 40px; /* Reduced top padding from 60px to 30px to elevate headers */
    position: relative;
    scroll-behavior: smooth;
    z-index: 10;
}

@media (max-width: 1600px) {
    .dash-content { padding: 30px 50px; }
}

@media (max-width: 1400px) {
    .dash-content { padding: 25px 40px; }
}

.dash-view {
    display: none;
    height: 100%;
    animation: viewIn 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.dash-view.active {
    display: block;
}

.dash-view.active > .container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@keyframes viewIn {
    0% { opacity: 0; transform: translateY(10px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Player Hero Section */
.player-hero {
    background: linear-gradient(135deg, rgba(174, 255, 2, 0.05) 0%, rgba(0, 0, 0, 0.4) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 45px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 50px;
    position: relative;
    overflow: hidden;
}

.player-hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0; width: 300px; height: 100%;
    background: radial-gradient(circle at center, var(--neon-glow), transparent 70%);
    opacity: 0.3;
}

.player-avatar-wrap {
    position: relative;
    width: 130px; height: 130px;
}

.avatar-square {
    width: 100%;
    height: 100%;
    background: var(--neon);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 3rem;
    box-shadow: 0 10px 30px var(--neon-glow);
}

.rank-badge {
    position: absolute;
    bottom: -8px; 
    right: -8px;
    padding: 4px 12px;
    background: var(--neon);
    color: #000;
    font-weight: 800;
    font-size: 0.7rem;
    border-radius: 6px;
    transform: rotate(-3deg);
    box-shadow: 0 5px 15px rgba(174, 255, 2, 0.4);
    z-index: 5;
    white-space: nowrap;
}

.player-info h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.2rem, 3vw, 3.5rem);
    margin-bottom: 5px;
    letter-spacing: -1px;
}

.player-meta {
    display: flex;
    gap: 20px;
    color: var(--gray);
    font-size: 0.9rem;
}

.player-meta span b { color: var(--white); }

.xp-bar-wrap {
    margin-top: 20px;
    width: 100%;
    max-width: 400px;
}

.xp-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.xp-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    overflow: hidden;
}

.xp-progress {
    width: 65%; height: 100%;
    background: linear-gradient(90deg, var(--neon), #8acc00);
    box-shadow: 0 0 10px var(--neon-glow);
}

.player-stats-mini {
    display: flex;
    gap: 30px;
}

.mini-stat-card {
    text-align: center;
}

.mini-stat-val {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.mini-stat-label {
    font-size: 0.7rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Widgets Grid */
.dash-grid-advanced {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 1500px) {
    .dash-grid-advanced { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1280px) {
    .dash-grid-advanced { gap: 25px; }
}

.widget-card {
    background: rgba(20, 22, 30, 0.4);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 35px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.widget-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.2rem, 1.5vw, 1.6rem);
    color: var(--white);
    letter-spacing: -0.5px;
}

/* Radar Chart (CSS Mock) */
.radar-container {
    width: 200px; height: 200px; /* Slightly larger for better label clearance */
    margin: 20px auto;
    position: relative;
}

.radar-bg {
    width: 100%; height: 100%;
    border: 1px solid var(--border);
    clip-path: polygon(50% 0%, 100% 38%, 81% 100%, 19% 100%, 0% 38%);
    background: rgba(174, 255, 2, 0.02);
}

.radar-value {
    position: absolute;
    top: 10%; left: 10%; width: 80%; height: 80%;
    background: var(--neon-glow);
    clip-path: polygon(50% 10%, 90% 40%, 75% 90%, 25% 85%, 15% 45%);
    border: 1px solid var(--neon);
}

.radar-label {
    position: absolute;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--gray);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.label-top { top: -20px; left: 50%; transform: translateX(-50%); }
.label-right { top: 38%; right: -35px; }
.label-bottom-right { bottom: -15px; right: 5%; }
.label-bottom-left { bottom: -15px; left: 5%; }
.label-left { top: 38%; left: -35px; }

/* Dashboard Utilities */
.val-neon { color: var(--neon) !important; }
.val-assist { color: #0088ff !important; }
.border-left { border-left: 1px solid var(--border) !important; padding-left: 20px !important; }

@media (max-width: 600px) {
    .radar-container {
        width: 160px; height: 160px;
    }
    .label-right { right: -25px; }
    .label-left { left: -25px; }
    .widget-card {
        padding: 25px 20px !important;
    }
}

/* Load Bars */
.load-item {
    margin-bottom: 15px;
}

.load-label {
    font-size: 0.8rem;
    color: var(--gray);
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.load-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    overflow: hidden;
}

.load-fill {
    height: 100%;
    border-radius: 10px;
}

/* Match Card */
.match-card-large {
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.teams-wrap {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 20px 0;
}

.team {
    text-align: center;
}

.team-logo {
    width: 60px; height: 60px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.vs {
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--neon);
    font-size: 1.2rem;
    opacity: 0.5;
}

.match-footer {
    padding: 15px;
    background: rgba(174, 255, 2, 0.1);
    border-radius: 16px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* AI Coach Chat Interface */
.ai-coach-container {
    max-width: 900px;
    width: 100%;
    height: calc(100vh - 100px);
    margin: 0 auto;
    background: rgba(10, 11, 15, 0.6);
    backdrop-filter: blur(40px);
    border: 1px solid var(--border);
    border-radius: 35px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0,0,0,0.6);
    position: relative;
    z-index: 2;
}

.ai-coach-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 10%, rgba(174, 255, 2, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 90% 90%, rgba(0, 136, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}
@media (max-width: 700px) {
    #ai-coachView .container {
        padding: 0 !important;
        height: 100%;
    }

    .ai-coach-container {
        height: calc(100vh - 70px); /* Adjust for mobile header */
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: rgba(10, 11, 15, 0.4);
    }

    .chat-header {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .chat-messages {
        padding: 20px 15px;
    }

    .chat-input-area {
        padding: 15px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(10, 11, 15, 0.8);
    }
}

#ai-coachView {
    background: radial-gradient(circle at 50% 50%, rgba(174, 255, 2, 0.02) 0%, transparent 100%);
    position: relative;
}

#ai-coachView::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

.chat-header {
    padding: 24px 35px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ai-avatar {
    width: 50px;
    height: 50px;
    background: var(--neon-glow);
    border: 1px solid var(--neon);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--neon);
    position: relative;
    box-shadow: 0 0 20px var(--neon-glow);
}

.status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #00ff00;
    border: 3px solid #0f111a;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff00;
}

.ai-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-display);
}

.ai-info p {
    font-size: 0.75rem;
    color: var(--gray);
}

.chat-actions i {
    color: var(--gray);
    margin-left: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.chat-actions i:hover { color: var(--white); }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    scroll-behavior: smooth;
}

/* Scrollbar styling for chat */
.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

.message {
    max-width: 80%;
    display: flex;
    flex-direction: column;
    animation: msgIn 0.4s ease forwards;
}

@keyframes msgIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.ai-msg { align-self: flex-start; }
.user-msg { align-self: flex-end; }

.msg-bubble {
    padding: 18px 22px;
    border-radius: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.ai-msg .msg-bubble {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-bottom-left-radius: 2px;
    border: 1px solid rgba(174, 255, 2, 0.2); /* Matching user screenshot border hint */
}

/* Quick Suggestions */
.quick-suggestions {
    margin-top: 5px;
    padding-left: 0;
}

.suggestions-label {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 12px;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.suggestion-btn {
    background: rgba(40, 42, 45, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 14px 18px;
    border-radius: 18px;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.suggestion-btn:hover {
    background: rgba(174, 255, 2, 0.08);
    border-color: var(--neon);
    transform: translateY(-2px);
}

.user-msg .msg-bubble {
    background: var(--neon);
    color: #000;
    font-weight: 600;
    border-bottom-right-radius: 2px;
    box-shadow: 0 10px 30px var(--neon-glow);
}

.msg-time {
    display: block;
    font-size: 0.65rem;
    margin-top: 8px;
    opacity: 0.5;
    text-align: right;
}

.chat-input-area {
    padding: 20px 35px;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 20px;
}

.input-wrapper {
    flex: 1;
    background: rgba(40, 42, 45, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 10px 15px 10px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.input-wrapper:focus-within {
    border-color: var(--neon);
    background: rgba(255, 255, 255, 0.05);
}

#chatInput {
    flex: 1;
    background: none;
    border: none;
    color: var(--white);
    font-size: 0.95rem;
    outline: none;
}

#chatInput::placeholder {
    color: rgba(255,255,255,0.2);
}

.input-actions {
    display: flex;
    gap: 10px;
}

.btn-chat-action {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.btn-chat-action:hover { color: var(--white); background: rgba(255,255,255,0.05); }

.btn-chat-send-circular {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--neon);
    border: none;
    color: #000;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px var(--neon-glow);
    flex-shrink: 0;
}

.btn-chat-send-circular:hover {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 8px 30px var(--neon-glow);
}

/* Nutrition View Styles */
.nutrition-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 80px;
    align-items: start;
    padding: 0 0 80px;
}

.nutrition-left-col {
    display: flex;
    flex-direction: column;
}

.nutrition-right-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.nutrition-card {
    background: rgba(15, 17, 26, 0.4);
    backdrop-filter: blur(40px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 45px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    transition: var(--transition);
}

.primary-stats .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.primary-stats .card-header h3 {
    font-size: clamp(1.6rem, 2vw, 2.2rem);
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--white);
    letter-spacing: -0.5px;
}

.calorie-tracker-hero {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.circular-progress {
    position: relative;
    width: 280px;
    height: 280px;
    min-width: 280px;
    min-height: 280px;
    aspect-ratio: 1/1;
    flex-shrink: 0;
    filter: drop-shadow(0 0 40px rgba(174, 255, 2, 0.2));
}

.circular-progress svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circular-progress circle {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
}

.circular-progress .bg {
    stroke: rgba(255, 255, 255, 0.05);
}

.circular-progress .progress {
    stroke: var(--neon);
    filter: drop-shadow(0 0 10px var(--neon-glow));
}

/* Macros Card */
.macro-list {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.macro-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.macro-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
}

.macro-info .label { color: var(--gray); }

.macro-bar-bg {
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    overflow: hidden;
}

.macro-bar-fill {
    height: 100%;
    border-radius: 100px;
    box-shadow: 0 0 20px currentColor;
    position: relative;
}

.macro-bar-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: barShine 3s infinite;
}

@keyframes barShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.macro-bar-fill.protein { background: #ff0077; color: rgba(255, 0, 119, 0.3); }
.macro-bar-fill.carbs { background: #ffaa00; color: rgba(255, 170, 0, 0.3); }
.macro-bar-fill.fats { background: #00ddff; color: rgba(0, 221, 255, 0.3); }

/* Analysis Card */
.analysis-card {
    background: linear-gradient(135deg, rgba(174, 255, 2, 0.1) 0%, rgba(15,17,26,0.5) 100%);
    border: 1px solid rgba(174, 255, 2, 0.2);
}

.analysis-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.score-circle {
    width: 90px;
    height: 90px;
    min-width: 90px;
    min-height: 90px;
    aspect-ratio: 1/1;
    border: 3px solid var(--neon);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px var(--neon-glow);
    flex-shrink: 0;
    background: rgba(174, 255, 2, 0.05);
}

.score-val { font-size: 1.8rem; font-weight: 900; line-height: 1; }
.score-lbl { font-size: 0.7rem; text-transform: uppercase; color: var(--gray); font-weight: 700; }

.analysis-text h4 { font-size: 1.2rem; margin-bottom: 8px; color: var(--neon); font-weight: 800; }
.analysis-text p { font-size: 0.95rem; color: var(--gray); line-height: 1.6; }

/* Water Card */
.water-card { height: 100%; }

.water-progress-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-top: 20px;
}

.water-level-container {
    width: 120px;
    height: 180px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.water-level {
    background: linear-gradient(to top, #0088ff, #00ddff);
    width: 100%;
    transition: height 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 0 30px rgba(0, 136, 255, 0.5);
    position: relative;
}

.water-level::before {
    content: '';
    position: absolute;
    top: -15px; left: 0; width: 200%; height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 40%;
    animation: waterWave 4s infinite linear;
}

@keyframes waterWave {
    0% { transform: translateX(0) rotate(0); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

.water-val {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--white);
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    width: 100%;
    text-align: center;
}

.water-actions {
    display: flex;
    gap: 10px;
}

.btn-water-add {
    background: rgba(0, 136, 255, 0.1);
    border: 1px solid rgba(0, 136, 255, 0.3);
    color: #00ddff;
    padding: 8px 15px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-water-add:hover {
    background: #0088ff;
    color: #fff;
    transform: scale(1.05);
}

/* Right Col Grid adjustments */
.nutrition-row-split {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
}

.log-meal-section .meal-logging-grid {
    grid-template-columns: repeat(2, 1fr);
    height: 100%;
}

.calorie-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* =========================================
   NUTRITION LAYOUT
========================================= */
.nutrition-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    max-width: 1600px;
}
.nutrition-left-col, .nutrition-right-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.nutrition-card {
    background: rgba(15, 17, 24, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.card-header h3 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    color: var(--white);
}
.nutrition-section {
    background: rgba(15, 17, 24, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    backdrop-filter: blur(20px);
}
.nutrition-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.calorie-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 900;
    font-family: var(--font-display);
    line-height: 1;
}

.calorie-label {
    font-size: 0.8rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-summary-row {
    display: flex;
    justify-content: space-around;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.summary-stat {
    text-align: center;
}

.summary-stat .val {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    font-family: var(--font-display);
}

.summary-stat .lbl {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nutrition-section .section-title {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-display);
    margin-bottom: 20px;
}

.meal-logging-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.meal-log-btn {
    background: rgba(20, 22, 30, 0.6);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.meal-log-btn i {
    color: var(--neon);
    font-size: 1.1rem;
    transition: var(--transition);
}

.meal-log-btn:hover i {
    transform: rotate(90deg) scale(1.2);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.view-all-link {
    color: var(--neon);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.meal-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meal-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.meal-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.meal-name {
    font-size: 1.2rem;
    font-weight: 800;
    font-family: var(--font-display);
    display: block;
    margin-bottom: 5px;
}

.meal-time {
    font-size: 0.95rem;
    color: var(--gray);
    font-weight: 600;
}

.meal-calories {
    font-size: 1.4rem;
    font-weight: 900;
    font-family: var(--font-display);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.meal-calories i {
    color: #ffaa00;
    font-size: 1.2rem;
    filter: drop-shadow(0 0 8px rgba(255, 170, 0, 0.4));
}

@media (max-width: 1100px) {
    .nutrition-container {
        grid-template-columns: 1fr;
        max-width: 800px;
    }
}

@media (max-width: 1400px) {
    .dash-grid-advanced { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
    .onboarding-card { 
        flex-direction: column; 
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    .onboarding-info-panel { padding: 40px; display: none; }
    .onboarding-form-panel { width: 100%; padding: 30px; }
    
    body {
        display: block; /* Disable grid on mobile */
    }

    .dash-main { 
        width: 100%;
    }
    .dash-sidebar { 
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 280px;
        transform: translateX(-100%);
        transition: 0.4s cubic-bezier(0.86, 0, 0.07, 1);
        z-index: 1001;
        background: rgba(10, 12, 16, 0.98);
        border-right: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 80px;
    }
    
    .sidebar-active .dash-sidebar {
        transform: translateX(0);
        box-shadow: 20px 0 50px rgba(0,0,0,0.8);
    }

    .dash-content {
        padding: 20px 10px !important; /* Reduced top padding from 30px to 20px */
        margin-top: 75px; /* Reduced from 90px to elevate content closer to mobile header */
    }

    .container {
        padding: 0 !important;
    }

    .player-hero {
        padding: 40px 20px 30px !important;
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
        border-radius: 24px;
        margin-top: 10px;
    }

    .player-avatar-wrap {
        margin: 0 auto;
        width: 100px; height: 100px; /* Slightly smaller on mobile */
    }

    .avatar-square {
        border-radius: 22px;
        font-size: 2.2rem;
    }

    .rank-badge {
        font-size: 0.6rem;
        padding: 3px 10px;
        bottom: -5px;
        right: -5px;
    }

    .player-info h2 {
        font-size: 1.6rem;
        margin-top: 10px;
    }

    .player-meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        font-size: 0.8rem;
    }

    .player-stats-mini {
        justify-content: center;
        width: 100%;
        gap: 0; 
        margin-top: 20px;
        background: rgba(255,255,255,0.03);
        padding: 15px 5px;
        border-radius: 18px;
    }

    .mini-stat-card {
        flex: 1;
        padding: 0 5px !important;
        border-left: 1px solid rgba(255,255,255,0.05) !important;
    }

    .mini-stat-card:first-child {
        border-left: none !important;
    }

    .mini-stat-val {
        font-size: 1.1rem;
    }

    .mini-stat-label {
        font-size: 0.6rem;
        letter-spacing: 0.5px;
    }

    .xp-bar-wrap {
        max-width: 100%;
        margin: 15px auto 0;
    }

    .dash-grid-advanced {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .widget-card {
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }

    /* Weekly Progress Reference Match */
    .weekly-stats-row {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    .weekly-stat-box {
        padding: 12px 5px !important;
        border-radius: 12px !important;
    }

    .weekly-stat-val {
        font-size: 0.95rem !important;
    }

    .weekly-stat-lbl {
        font-size: 0.55rem !important;
    }

    .weekly-title {
        font-size: 1.1rem !important;
    }
}

/* Immersive Mobile Overview UI (< 700px) */
@media (max-width: 700px) {
    .player-hero, 
    .weekly-progress-card, 
    .widget-card, 
    .action-card {
        border: none !important;
        background: rgba(255, 255, 255, 0.03) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.2) !important;
    }

    .player-hero {
        padding: 30px 15px !important;
        border-radius: 28px !important;
    }

    .player-stats-mini {
        background: rgba(255, 255, 255, 0.02) !important;
        padding: 12px 0 !important;
    }

    .mini-stat-card {
        border-left: 1px solid rgba(255, 255, 255, 0.03) !important;
    }

    .weekly-progress-card {
        padding: 20px !important;
        border-radius: 24px !important;
    }

    .weekly-stat-box {
        background: rgba(255, 255, 255, 0.02) !important;
        border: none !important;
        padding: 15px 10px !important;
    }

    .widget-card {
        padding: 20px !important;
        border-radius: 24px !important;
    }

    .action-card {
        padding: 20px !important;
        border-radius: 20px !important;
        background: rgba(255, 255, 255, 0.02) !important;
    }

    .action-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        background: rgba(255, 255, 255, 0.03) !important;
    }
}

/* =========================================
   MOBILE HEADER & OVERLAY
========================================= */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(10, 12, 16, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    padding: 0 20px;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: var(--transition);
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-user-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--white);
}

.mobile-avatar {
    width: 36px;
    height: 36px;
    background: var(--neon);
    color: #000;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s ease;
}

.sidebar-active .sidebar-overlay {
    opacity: 1;
    pointer-events: all;
}

.sidebar-active {
    overflow: hidden; /* Prevent body scroll when menu open */
}

@media (max-width: 1024px) {
    .mobile-header {
        display: flex;
    }
}

/* =========================================
   MARKET / SHOP SECTION
 ========================================= */
.shop-header-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px; /* Reduced from 40px to tighten outer gap */
    background: linear-gradient(90deg, rgba(8, 10, 15, 0.8) 0%, rgba(15, 17, 26, 0.4) 100%);
    padding: 35px 45px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.shop-actions-premium {
    display: flex;
    align-items: center;
    gap: 30px;
}

.shop-title-area h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    font-family: var(--font-display);
    margin-bottom: 5px;
    letter-spacing: -1.5px;
}

.shop-title-area .neon-text {
    color: var(--neon);
    text-shadow: 0 0 20px var(--neon-glow);
}

.shop-title-area p {
    color: var(--gray);
    font-size: 0.95rem;
    font-weight: 500;
}

.shop-filter {
    display: flex;
    gap: 12px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--gray);
    padding: 12px 26px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--neon);
    color: #000;
    border-color: var(--neon);
    box-shadow: 0 8px 20px rgba(174, 255, 2, 0.3);
}

.cart-indicator-premium {
    position: relative;
    width: 54px;
    height: 54px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.cart-indicator-premium:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--neon);
    color: #000;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(174, 255, 2, 0.4);
    border: 2px solid #000;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 35px;
    margin-bottom: 60px;
}

.product-card {
    background: rgba(15, 17, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(15px);
}

.product-card:hover {
    border-color: var(--neon);
    box-shadow: 0 0 20px rgba(174, 255, 2, 0.2);
}

.product-img-box {
    width: 100%;
    aspect-ratio: 1/1;
    background: radial-gradient(circle at center, rgba(30, 35, 45, 0.4) 0%, rgba(10, 12, 16, 0.6) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow: hidden;
}

.product-img-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

.product-img-box img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    filter: drop-shadow(0 20px 35px rgba(0,0,0,0.6));
}

.product-card:hover .product-img-box img {
    transform: none;
}

.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 900;
    z-index: 5;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.product-badge.premium {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #000;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.product-badge.new {
    background: var(--neon);
    color: #000;
    box-shadow: 0 8px 20px rgba(174, 255, 2, 0.3);
}

.product-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-meta-top {
    margin-bottom: 12px;
}

.product-cat {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--neon);
    letter-spacing: 1.5px;
    margin-bottom: 4px;
    opacity: 0.8;
}

.product-info h3 {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--white);
}

.product-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 25px;
    line-height: 1.6;
    flex: 1;
    font-weight: 500;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.product-bottom .price {
    font-size: 1.4rem;
    font-weight: 900;
    font-family: var(--font-display);
    color: var(--white);
}

.price span {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 600;
    margin-left: 4px;
}

.btn-buy {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.product-card:hover .btn-buy {
    background: var(--neon);
    color: #000;
    border-color: var(--neon);
    box-shadow: 0 10px 25px rgba(174, 255, 2, 0.4);
    transform: scale(1.1);
}

.btn-buy:active {
    transform: scale(0.9);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .shop-header-premium {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
        padding: 30px;
    }
    
    .shop-actions-premium {
        width: 100%;
        justify-content: space-between;
        gap: 15px;
    }

    .shop-filter {
        flex: 1;
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: none; /* Firefox */
    }
    
    .shop-filter::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .filter-btn {
        flex-shrink: 0;
        padding: 10px 18px;
        font-size: 0.75rem;
    }
}

/* 2-Column Mobile Grid Request */
@media (max-width: 600px) {
    .shop-header-premium {
        padding: 24px; /* Reverted inner padding */
        gap: 20px;
        margin-bottom: 15px;
    }

    .shop-title-area h2 {
        font-size: 1.5rem;
        margin-bottom: 4px;
    }

    .shop-title-area p {
        font-size: 0.8rem;
    }

    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px; /* Reverted to 15px */
        padding: 0;
    }

    .product-card {
        border-radius: 24px; /* Slightly more rounded but proportionate */
    }

    .product-img-box {
        padding: 15px; /* Reverted to allow breathing room */
        background: radial-gradient(circle at center, rgba(30, 35, 45, 0.4) 0%, rgba(10, 12, 16, 0.6) 100%);
    }

    .product-img-box img {
        max-width: 85%; /* Reverted for balance */
        max-height: 85%;
        filter: drop-shadow(0 15px 30px rgba(0,0,0,0.5));
    }

    .product-badge {
        top: 15px;
        left: 15px;
        font-size: 0.6rem;
        padding: 4px 10px;
        border-radius: 8px;
    }

    .product-info {
        padding: 18px; /* Reverted for premium feel */
    }

    .product-cat {
        font-size: 0.6rem;
        letter-spacing: 1px;
        margin-bottom: 4px;
    }

    .product-info h3 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .product-desc {
        display: none;
    }

    .product-bottom {
        padding-top: 15px;
        margin-top: 15px;
    }

    .product-bottom .price {
        font-size: 1.15rem;
    }

    .price span {
        font-size: 0.7rem;
    }

    .btn-buy {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 1rem;
    }
}

@media (max-width: 700px) { 
    .product-card, .product-card:hover, .product-img-box img, .product-card:hover .product-img-box img, .btn-buy, .btn-buy:hover { 
        transform: none !important; 
        transition: none !important; 
        box-shadow: none !important; 
    } 
    .product-card:hover { 
        border-color: rgba(255, 255, 255, 0.04) !important; 
    } 
}

/* Onboarding Mobile Optimization */
@media (max-width: 700px) {
    .onboarding-card {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        flex-direction: column;
        border: none;
    }

    .onboarding-info-panel {
        display: none !important; /* Hide marketing info on mobile to focus on the form */
    }

    .onboarding-card {
        width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        flex-direction: column;
        border: none !important;
        overflow: hidden !important;
    }

    .onboarding-form-panel {
        width: 100% !important;
        height: 100% !important;
        padding: 40px 20px !important;
        background: #000 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important; 
        overflow: hidden !important; 
        position: relative;
        border-radius: 0 !important;
    }

    .onboarding-back-btn {
        position: absolute;
        top: 20px;
        left: 20px;
        background: none;
        border: none;
        color: #fff;
        font-size: 1.1rem;
        cursor: pointer;
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 100;
        width: 40px;
        height: 40px;
    }

    .onboarding-back-btn i {
        font-weight: 300;
    }

    .onboarding-header {
        text-align: center;
        margin-bottom: 25px;
        width: 100%;
        margin-top: -20px; /* Slight pull up to account for back button line */
    }

    .onboarding-header h1 {
        font-size: 2.1rem;
        font-weight: 800;
        margin-bottom: 8px;
        letter-spacing: -0.5px;
    }

    .onboarding-header p {
        font-size: 0.95rem;
        opacity: 0.5;
        font-weight: 400;
    }

    /* Hide redundant labels */
    .onboarding-step h2,
    .onboarding-step p,
    .onboarding-step div[style*="text-transform: uppercase"],
    .onboarding-step .step-subtitle {
        display: none !important;
    }

    .field-container {
        padding: 0;
        aspect-ratio: 1/1.35;
        width: 100%;
        max-width: 350px;
        margin: 0 auto 30px;
        background: transparent !important;
        border: none !important;
    }

    .pitch {
        background: #000;
        border: 1px solid rgba(174, 255, 2, 0.1);
        border-radius: 24px;
        box-shadow: inset 0 0 40px rgba(174, 255, 2, 0.05);
    }

    .pos-dot {
        width: 22px;
        height: 22px;
    }

    .pos-dot .dot-inner {
        width: 12px;
        height: 12px;
    }

    .pos-label {
        display: none !important; /* Matching Figma's clean minimalist look */
    }

    .btn-continue {
        width: 100%;
        max-width: 350px;
        padding: 20px !important;
        background: #1e2632 !important; /* Accurate Figma deep muted blue */
        color: rgba(255, 255, 255, 0.4) !important;
        border-radius: 16px !important;
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        border: none !important;
        margin-top: 20px !important;
        text-transform: capitalize !important;
        letter-spacing: 0 !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.4) !important;
    }

    .btn-continue.active {
        background: #2a3a50 !important;
        color: #fff !important;
    }
}


/* Weekly Progress & Quick Actions */
.weekly-progress-card {
    grid-column: 1 / -1;
    background: rgba(15, 17, 24, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    padding: 30px;
    backdrop-filter: blur(20px);
}

.weekly-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.weekly-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
}

.weekly-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.weekly-stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.weekly-stat-box:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--neon);
}

.weekly-stat-val {
    display: block;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--neon);
    margin-bottom: 5px;
}

.weekly-stat-lbl {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quick-actions-section {
    margin-top: 10px;
    grid-column: 1 / -1;
}

.section-title-premium {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .actions-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.action-card {
    background: #0f1118;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.action-card:hover {
    background: rgba(174, 255, 2, 0.03);
    border-color: var(--neon);
    transform: translateY(-5px);
}

.action-icon {
    width: 60px;
    height: 60px;
    background: rgba(174, 255, 2, 0.05);
    border: 1.5px solid rgba(174, 255, 2, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon);
    font-size: 1.5rem;
    transition: var(--transition);
}

.action-card:hover .action-icon {
    border-color: var(--neon);
    background: rgba(174, 255, 2, 0.1);
    box-shadow: 0 0 20px rgba(174, 255, 2, 0.2);
}

.action-info h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 6px;
}

.action-info p {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

@media (max-width: 768px) {
    .weekly-stats-row {
        grid-template-columns: 1fr;
    }
    .actions-grid {
        grid-template-columns: 1fr;
    }
}
