/* ============================================================
   LootLink Design System
   Glassmorphism + Light/Dark theme
   ============================================================ */

/* ── Theme Variables ─────────────────────────────────────── */
:root {
    --bg-gradient-start: #f0f7ff;
    --bg-gradient-end: #e8f0ff;
    --text-primary: #1a1a2e;
    --text-secondary: #6a6a6a;
    --text-tertiary: #999;
    --nav-text: #5a5a5a;

    --accent-primary: #4a90e2;
    --accent-secondary: #667eea;
    --accent-gradient: linear-gradient(135deg, #4a90e2 0%, #667eea 100%);

    --orb1-gradient: linear-gradient(135deg, #6ba3ff 0%, #4a90e2 100%);
    --orb2-gradient: linear-gradient(135deg, #667eea 0%, #a8c0ff 100%);
    --orb3-gradient: linear-gradient(135deg, #d4e7ff 0%, #9fc5ff 100%);
    --orb-opacity: 0.4;

    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(255, 255, 255, 0.9);
    --card-shadow: rgba(0, 0, 0, 0.1);

    --category-bg: rgba(255, 255, 255, 0.7);
    --category-hover-bg: rgba(255, 255, 255, 0.95);

    --search-bg: rgba(255, 255, 255, 0.8);
    --search-border: rgba(255, 255, 255, 0.9);
    --search-shadow: rgba(0, 0, 0, 0.08);

    --btn-secondary-bg: rgba(255, 255, 255, 0.7);
    --btn-secondary-border: rgba(255, 255, 255, 0.8);
    --btn-secondary-hover: rgba(255, 255, 255, 0.9);

    --footer-bg: rgba(255, 255, 255, 0.6);
    --footer-border: rgba(255, 255, 255, 0.8);

    --card-image-gradient: linear-gradient(135deg, #d4e7ff 0%, #9fc5ff 100%);
    --offer-image-gradient: linear-gradient(135deg, #667eea 0%, #a8c0ff 100%);

    /* Extended palette */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --color-primary: #4a90e2;
    --color-primary-light: rgba(74, 144, 226, 0.12);
    --color-success: #22c55e;
    --color-success-light: rgba(34, 197, 94, 0.12);
    --color-warning: #f59e0b;
    --color-warning-light: rgba(245, 158, 11, 0.12);
    --color-danger: #ef4444;
    --color-danger-light: rgba(239, 68, 68, 0.12);
    --color-info: #3b82f6;
    --color-info-light: rgba(59, 130, 246, 0.12);

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 28px;
    --space-8: 32px;
    --space-9: 36px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;

    /* Typography */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;

    --weight-normal: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-extrabold: 800;

    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;

    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 25px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);

    /* Z-index */
    --z-dropdown: 100;
    --z-header: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;
    --z-dropdown-menu: 9999;

    /* Transitions */
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;

    /* Input */
    --input-bg: rgba(255, 255, 255, 0.6);
    --input-border: rgba(0, 0, 0, 0.08);
    --input-focus-border: var(--accent-primary);
    --input-focus-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);

    /* Color aliases */
    --color-white: #ffffff;
    --dark: var(--text-primary);
    --primary: var(--accent-primary);
}

[data-theme="dark"] {
    --bg-gradient-start: #0f172a;
    --bg-gradient-end: #1e293b;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --nav-text: #94a3b8;

    --accent-primary: #818cf8;
    --accent-secondary: #a78bfa;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);

    --orb1-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --orb2-gradient: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    --orb3-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --orb-opacity: 0.2;

    --card-bg: rgba(30, 41, 59, 0.85);
    --card-border: rgba(71, 85, 105, 0.5);
    --card-shadow: rgba(0, 0, 0, 0.4);

    --category-bg: rgba(30, 41, 59, 0.7);
    --category-hover-bg: rgba(30, 41, 59, 0.95);

    --search-bg: rgba(30, 41, 59, 0.8);
    --search-border: rgba(71, 85, 105, 0.5);
    --search-shadow: rgba(0, 0, 0, 0.3);

    --btn-secondary-bg: rgba(51, 65, 85, 0.7);
    --btn-secondary-border: rgba(71, 85, 105, 0.8);
    --btn-secondary-hover: rgba(51, 65, 85, 0.9);

    --footer-bg: rgba(15, 23, 42, 0.6);
    --footer-border: rgba(71, 85, 105, 0.3);

    --card-image-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --offer-image-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);

    --gray-50: #1e293b;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #475569;
    --gray-400: #64748b;
    --gray-500: #94a3b8;
    --gray-600: #cbd5e1;
    --gray-700: #e2e8f0;
    --gray-800: #f1f5f9;
    --gray-900: #f8fafc;

    --color-primary: #818cf8;
    --color-primary-light: rgba(129, 140, 248, 0.15);
    --color-success: #4ade80;
    --color-success-light: rgba(74, 222, 128, 0.15);
    --color-warning: #fbbf24;
    --color-warning-light: rgba(251, 191, 36, 0.15);
    --color-danger: #f87171;
    --color-danger-light: rgba(248, 113, 113, 0.15);
    --color-info: #60a5fa;
    --color-info-light: rgba(96, 165, 250, 0.15);

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.3);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.35);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.4);

    --input-bg: rgba(30, 41, 59, 0.6);
    --input-border: rgba(71, 85, 105, 0.5);
    --input-focus-border: var(--accent-primary);
    --input-focus-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);

    --color-white: #1e293b;
    --dark: var(--text-primary);
    --primary: var(--accent-primary);
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-display);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background 0.5s ease, color 0.3s ease;
    min-height: 100vh;
    line-height: var(--leading-normal);
    font-size: var(--text-base);
}

a { color: var(--accent-primary); text-decoration: none; transition: color var(--duration-normal) var(--ease-out); }
a:hover { color: var(--accent-secondary); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
input, button, textarea, select { font: inherit; }

::selection { background: var(--accent-primary); color: white; }

/* ── Floating Orbs Background ────────────────────────────── */
.bg-orbs { position: fixed; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: var(--orb-opacity); animation: float 20s infinite ease-in-out; transition: opacity 0.5s ease; }
.orb1 { width: 400px; height: 400px; background: var(--orb1-gradient); top: -100px; left: -100px; animation-delay: 0s; }
.orb2 { width: 350px; height: 350px; background: var(--orb2-gradient); bottom: -100px; right: -100px; animation-delay: 7s; }
.orb3 { width: 300px; height: 300px; background: var(--orb3-gradient); top: 50%; right: 10%; animation-delay: 14s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* ── Container ───────────────────────────────────────────── */
.container { position: relative; z-index: 1; max-width: 1400px; margin: 0 auto; padding: 0 40px; }

/* ── Header ──────────────────────────────────────────────── */
header { padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; z-index: var(--z-header); }

/* ── Animated Logo (production stroke-dash) ──────────────── */
.logo { display: flex; align-items: center; gap: 14px; cursor: pointer; transition: all 0.3s ease; text-decoration: none; flex-shrink: 0; }
.logo:hover { transform: translateY(-2px); color: var(--accent-primary); }

.logo-icon { display: inline-flex; align-items: center; justify-content: center; }

.logo-svg { width: 36px; height: 36px; color: var(--accent-primary); }

.logo-circle {
    stroke-dasharray: 126;
    stroke-dashoffset: 126;
    animation: drawCircle 3s ease-in-out infinite;
}

.logo-path {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawPath 3s ease-in-out infinite 0.3s;
}

@keyframes drawCircle {
    0%, 100% { stroke-dashoffset: 126; opacity: 0.5; }
    50% { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes drawPath {
    0%, 100% { stroke-dashoffset: 50; opacity: 0.5; }
    50% { stroke-dashoffset: 0; opacity: 1; }
}

.logo-text {
    font-size: 26px;
    font-weight: var(--weight-bold);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.logo:hover .logo-circle { animation-duration: 1.5s; }
.logo:hover .logo-path { animation-duration: 1.5s; }

/* ── Navigation ──────────────────────────────────────────── */
nav { display: flex; gap: 32px; align-items: center; }
nav a { text-decoration: none; color: var(--nav-text); font-weight: var(--weight-medium); font-size: 15px; transition: all 0.3s ease; position: relative; }
nav a:hover { color: var(--accent-primary); }
nav a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--accent-gradient); transition: width 0.3s ease; }
nav a:hover::after { width: 100%; }

/* ── User Actions (header right) ─────────────────────────── */
.user-actions { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }

/* ── User Dropdown ──────────────────────────────────────── */
.user-dropdown { position: relative; }
.user-dropdown-trigger { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.user-dropdown-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-gradient); color: white; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: var(--weight-bold); overflow: hidden; flex-shrink: 0; }
.user-dropdown-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-dropdown-menu { position: fixed; min-width: 240px; background: var(--card-bg); backdrop-filter: blur(30px); border: 1px solid var(--card-border); border-radius: var(--radius-lg); box-shadow: 0 12px 40px var(--card-shadow), 0 4px 12px rgba(0,0,0,0.05); padding: 6px; padding-top: 14px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all 0.2s var(--ease-out); z-index: var(--z-dropdown-menu); pointer-events: none; }
.user-dropdown-menu.active { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.user-dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-md); color: var(--text-primary); text-decoration: none; font-size: var(--text-sm); font-weight: var(--weight-medium); transition: all 0.15s ease; white-space: nowrap; }
.user-dropdown-item:hover { background: var(--gray-100); color: var(--accent-primary); }
.user-dropdown-item svg { width: 16px; height: 16px; opacity: .6; flex-shrink: 0; }
.user-dropdown-item:hover svg { opacity: 1; }
.user-dropdown-item--danger { color: var(--color-danger); }
.user-dropdown-item--danger:hover { background: rgba(239,68,68,.08); color: var(--color-danger); }
.user-dropdown-divider { height: 1px; background: var(--card-border); margin: 4px 8px; }
.user-dropdown-badge { margin-left: auto; font-size: 11px; padding: 2px 8px; border-radius: var(--radius-full); background: var(--accent-primary); color: white; font-weight: var(--weight-semibold); }

/* ── Theme Toggle ────────────────────────────────────────── */
.theme-toggle { position: relative; width: 52px; height: 28px; background: var(--btn-secondary-bg); border-radius: 20px; cursor: pointer; border: 1px solid var(--btn-secondary-border); backdrop-filter: blur(10px); transition: all 0.3s ease; flex-shrink: 0; }
.theme-toggle:hover { transform: scale(1.05); }
.theme-toggle-slider { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; background: var(--accent-gradient); border-radius: 50%; transition: transform 0.3s ease; display: flex; align-items: center; justify-content: center; }
.theme-toggle-slider svg { width: 12px; height: 12px; stroke: white; stroke-width: 2; }
[data-theme="dark"] .theme-toggle-slider { transform: translateX(24px); }

/* ── Notification Bell ───────────────────────────────────── */
.notif-bell { position: relative; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); background: var(--btn-secondary-bg); border: 1px solid var(--btn-secondary-border); backdrop-filter: blur(10px); cursor: pointer; transition: all 0.3s ease; color: var(--nav-text); }
.notif-bell:hover { background: var(--btn-secondary-hover); color: var(--accent-primary); }
.notif-bell svg { width: 18px; height: 18px; }
.notif-badge { position: absolute; top: -4px; right: -4px; background: var(--color-danger); color: white; font-size: 10px; font-weight: var(--weight-bold); min-width: 18px; height: 18px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; padding: 0 4px; line-height: 1; }

/* ── Mobile Menu ─────────────────────────────────────────── */
.mobile-toggle { display: none; width: 38px; height: 38px; border: 1px solid var(--btn-secondary-border); background: var(--btn-secondary-bg); backdrop-filter: blur(10px); border-radius: var(--radius-md); cursor: pointer; align-items: center; justify-content: center; color: var(--nav-text); transition: all 0.3s ease; }
.mobile-toggle:hover { background: var(--btn-secondary-hover); }
.mobile-toggle svg { width: 20px; height: 20px; }

/* (old mobile drawer removed - using fullscreen menu now) */

/* ── Buttons ─────────────────────────────────────────────── */
.btn { padding: 10px 24px; border-radius: var(--radius-2xl); border: none; font-weight: var(--weight-semibold); font-size: 14px; cursor: pointer; transition: all 0.4s var(--ease-out); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.4; }
.btn svg { width: 16px; height: 16px; }

.btn-primary { background: var(--accent-gradient); color: white; }
.btn-primary:hover { opacity: 0.9; color: white; transform: translateY(-1px); }

.btn-secondary { background: var(--btn-secondary-bg); backdrop-filter: blur(10px); color: var(--nav-text); border: 1px solid var(--btn-secondary-border); }
.btn-secondary:hover { background: var(--btn-secondary-hover); color: var(--text-primary); }

.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid transparent; }
.btn-ghost:hover { background: var(--gray-50); color: var(--text-primary); }

.btn-danger { background: var(--color-danger); color: white; }
.btn-danger:hover { opacity: 0.9; color: white; }

.btn-success { background: var(--color-success); color: white; }
.btn-success:hover { opacity: 0.9; color: white; }

.btn-outline-primary { background: transparent; color: var(--accent-primary); border: 1px solid var(--accent-primary); }
.btn-outline-primary:hover { background: var(--color-primary-light); }

.btn-white { background: rgba(255,255,255,0.2); backdrop-filter: blur(10px); color: white; border: 1px solid rgba(255,255,255,0.3); }
.btn-white:hover { background: rgba(255,255,255,0.3); color: white; }

.btn-sm { padding: 6px 16px; font-size: var(--text-xs); }
.btn-lg { padding: 14px 32px; font-size: var(--text-base); }
.btn-accent { background: var(--accent-gradient); color: white; }
.btn-accent:hover { opacity: 0.9; color: white; }

.w-100 { width: 100%; }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: var(--space-4); }

.form-label { display: block; font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-primary); margin-bottom: var(--space-2); }

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-sm);
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--input-focus-border);
    box-shadow: var(--input-focus-shadow);
    background: var(--input-bg);
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder { color: var(--text-tertiary); }

textarea { resize: vertical; min-height: 100px; }

select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

.form-check { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); }
.form-check input[type="checkbox"],
.form-check input[type="radio"] { width: 18px; height: 18px; accent-color: var(--accent-primary); flex-shrink: 0; }

.form-text { font-size: var(--text-xs); color: var(--text-tertiary); margin-top: var(--space-1); }
.form-error { font-size: var(--text-xs); color: var(--color-danger); margin-top: var(--space-1); }
.form-hint { font-size: var(--text-xs); color: var(--text-tertiary); margin-top: var(--space-1); display: flex; align-items: center; gap: 4px; }
.text-danger { color: var(--color-danger); font-size: var(--text-xs); margin-top: var(--space-1); }

.errorlist { list-style: none; padding: 0; margin: var(--space-1) 0 0; }
.errorlist li { color: var(--color-danger); font-size: var(--text-xs); }

/* ── Alerts ──────────────────────────────────────────────── */
.alert { padding: 14px 20px; border-radius: var(--radius-lg); margin-bottom: var(--space-3); font-size: var(--text-sm); line-height: var(--leading-normal); backdrop-filter: blur(10px); border: 1px solid; display: flex; align-items: center; gap: 10px; }
.alert svg { width: 18px; height: 18px; flex-shrink: 0; }

.alert-success { background: var(--color-success-light); border-color: var(--color-success); color: var(--color-success); }
.alert-danger, .alert-error { background: var(--color-danger-light); border-color: var(--color-danger); color: var(--color-danger); }
.alert-warning { background: var(--color-warning-light); border-color: var(--color-warning); color: var(--color-warning); }
.alert-info { background: var(--color-info-light); border-color: var(--color-info); color: var(--color-info); }

/* ── Floating Toast Notifications ─────────────────────────── */
.toast-container { position: fixed; top: 24px; right: 24px; z-index: var(--z-toast); display: flex; flex-direction: column; gap: 10px; pointer-events: none; max-width: 420px; width: calc(100% - 48px); }

.toast { pointer-events: auto; padding: 14px 18px; border-radius: var(--radius-lg); backdrop-filter: blur(24px); font-size: var(--text-sm); line-height: var(--leading-normal); display: flex; align-items: flex-start; gap: 12px; box-shadow: var(--shadow-lg); border: 1px solid; animation: toastIn 0.4s var(--ease-out) forwards; opacity: 0; transform: translateX(40px); cursor: pointer; transition: opacity 0.3s, transform 0.3s; }
.toast svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.toast__content { flex: 1; }
.toast__close { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.4; cursor: pointer; transition: opacity 0.2s; margin-top: 1px; }
.toast__close:hover { opacity: 1; }

.toast--success { background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.3); color: var(--color-success); }
[data-theme="dark"] .toast--success { background: rgba(34, 197, 94, 0.15); border-color: rgba(74, 222, 128, 0.25); color: var(--color-success); }

.toast--error, .toast--danger { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.25); color: var(--color-danger); }
[data-theme="dark"] .toast--error, [data-theme="dark"] .toast--danger { background: rgba(239, 68, 68, 0.15); border-color: rgba(248, 113, 113, 0.25); color: var(--color-danger); }

.toast--warning { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.25); color: var(--color-warning); }
[data-theme="dark"] .toast--warning { background: rgba(245, 158, 11, 0.15); border-color: rgba(251, 191, 36, 0.25); color: var(--color-warning); }

.toast--info { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.25); color: var(--color-info); }
[data-theme="dark"] .toast--info { background: rgba(59, 130, 246, 0.15); border-color: rgba(96, 165, 250, 0.25); color: var(--color-info); }

@keyframes toastIn { to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(40px); } }
.toast.removing { animation: toastOut 0.3s var(--ease-out) forwards; }

.toast__progress { position: absolute; bottom: 0; left: 0; height: 3px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); background: currentColor; opacity: 0.3; animation: toastProgress var(--toast-duration, 5s) linear forwards; }
@keyframes toastProgress { from { width: 100%; } to { width: 0%; } }

@media (max-width: 768px) {
    .toast-container { top: 12px; right: 12px; max-width: calc(100% - 24px); width: calc(100% - 24px); }
}

/* ── Badges ──────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: var(--weight-semibold); line-height: 1.2; }
.badge svg { width: 12px; height: 12px; }

.badge-primary { background: var(--color-primary-light); color: var(--accent-primary); }
.badge-success { background: var(--color-success-light); color: var(--color-success); }
.badge-warning { background: var(--color-warning-light); color: var(--color-warning); }
.badge-danger { background: var(--color-danger-light); color: var(--color-danger); }
.badge-neutral { background: var(--gray-100); color: var(--gray-500); }
.badge-info { background: var(--color-info-light); color: var(--color-info); }

/* Legacy badge classes */
.badge-ll { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: var(--weight-semibold); }
.badge-ll--primary { background: var(--color-primary-light); color: var(--accent-primary); }
.badge-ll--success { background: var(--color-success-light); color: var(--color-success); }
.badge-ll--warning { background: var(--color-warning-light); color: var(--color-warning); }
.badge-ll--danger { background: var(--color-danger-light); color: var(--color-danger); }
.badge-ll--neutral { background: var(--gray-100); color: var(--gray-500); }

/* ── Avatars ─────────────────────────────────────────────── */
.avatar { width: 44px; height: 44px; border-radius: var(--radius-md); overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--accent-gradient); color: white; font-weight: var(--weight-bold); font-size: var(--text-base); flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.avatar--sm { width: 32px; height: 32px; font-size: var(--text-xs); }
.avatar--lg { width: 56px; height: 56px; font-size: var(--text-xl); }
.avatar--xl { width: 80px; height: 80px; font-size: var(--text-2xl); }
.avatar--round { border-radius: 50%; }

.avatar-placeholder { background: var(--gray-200); color: var(--gray-500); }
.avatar-placeholder svg { width: 50%; height: 50%; }

/* Seller avatar in offers */
.seller-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-gradient); display: flex; align-items: center; justify-content: center; color: white; font-weight: var(--weight-bold); font-size: 16px; flex-shrink: 0; }

/* ── Cards ────────────────────────────────────────────────── */
.card-glass { background: var(--card-bg); backdrop-filter: blur(20px); border-radius: var(--radius-xl); padding: var(--space-6); border: 1px solid var(--card-border); box-shadow: var(--shadow-md); transition: all 0.4s var(--ease-out); }
.card-glass:hover { box-shadow: var(--shadow-lg); }

.card-ll { background: var(--card-bg); backdrop-filter: blur(20px); border-radius: var(--radius-xl); padding: var(--space-6); border: 1px solid var(--card-border); box-shadow: var(--shadow-md); transition: all 0.4s var(--ease-out); }
.card-ll:hover { box-shadow: var(--shadow-lg); }
.card-ll--no-hover { cursor: default; }
.card-ll--no-hover:hover { box-shadow: var(--shadow-md); }

/* ── Empty States ────────────────────────────────────────── */
.empty-state { text-align: center; padding: var(--space-16) var(--space-6); }
.empty-state__icon { width: 80px; height: 80px; margin: 0 auto var(--space-5); border-radius: 50%; background: var(--gray-100); display: flex; align-items: center; justify-content: center; }
.empty-state__icon svg { width: 36px; height: 36px; color: var(--gray-400); }
.empty-state__title { font-size: var(--text-lg); font-weight: var(--weight-semibold); color: var(--text-primary); margin-bottom: var(--space-2); }
.empty-state__text { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: var(--space-5); max-width: 360px; margin-left: auto; margin-right: auto; }

/* ── Breadcrumbs ─────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); margin-bottom: var(--space-6); flex-wrap: wrap; }
.breadcrumb li { display: flex; align-items: center; gap: var(--space-2); }
.breadcrumb li + li::before { content: '/'; color: var(--text-tertiary); }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent-primary); }
.breadcrumb .current { color: var(--text-primary); font-weight: var(--weight-medium); }

.ll-breadcrumb { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); margin-bottom: var(--space-6); flex-wrap: wrap; list-style: none; padding: 0; }
.ll-breadcrumb li { display: flex; align-items: center; gap: var(--space-2); }
.ll-breadcrumb li + li::before { content: '/'; color: var(--text-tertiary); }
.ll-breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.ll-breadcrumb a:hover { color: var(--accent-primary); }
.ll-breadcrumb .current { color: var(--text-primary); font-weight: var(--weight-medium); }

/* ── Tables ──────────────────────────────────────────────── */
.table-glass { width: 100%; border-collapse: separate; border-spacing: 0; }
.table-glass thead th { padding: 12px 16px; text-align: left; font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--card-border); }
.table-glass tbody td { padding: 14px 16px; font-size: var(--text-sm); color: var(--text-primary); border-bottom: 1px solid var(--card-border); vertical-align: middle; }
.table-glass tbody tr:last-child td { border-bottom: none; }
.table-glass tbody tr:hover td { background: var(--gray-50); }

/* ── Pagination ──────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: var(--space-2); margin-top: var(--space-8); }
.pagination a, .pagination span { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: var(--weight-medium); transition: all 0.2s; }
.pagination a { color: var(--text-secondary); background: var(--btn-secondary-bg); border: 1px solid var(--btn-secondary-border); text-decoration: none; }
.pagination a:hover { background: var(--btn-secondary-hover); color: var(--accent-primary); }
.pagination .active { background: var(--accent-gradient); color: white; border: none; }
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* ── Tabs ────────────────────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--card-border); margin-bottom: var(--space-6); overflow-x: auto; }
.tab-item { padding: 12px 20px; font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-secondary); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; white-space: nowrap; text-decoration: none; }
.tab-item:hover { color: var(--accent-primary); }
.tab-item.active { color: var(--accent-primary); border-bottom-color: var(--accent-primary); }

/* ── Stars / Ratings ─────────────────────────────────────── */
.stars { display: flex; align-items: center; gap: 2px; }
.stars svg { width: 14px; height: 14px; }
.stars .filled { fill: #fbbf24; color: #fbbf24; }
.stars .empty { color: var(--gray-300); }

/* ── Section Headers ─────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 48px; font-weight: var(--weight-extrabold); margin-bottom: 15px; color: var(--text-primary); }
.section-header p { font-size: 18px; color: var(--text-secondary); }

.section-label { display: inline-block; padding: 6px 16px; background: var(--color-primary-light); color: var(--accent-primary); border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: var(--weight-semibold); margin-bottom: var(--space-3); text-transform: uppercase; letter-spacing: 0.05em; }

.page-header { margin-bottom: var(--space-8); }
.page-header h1 { font-size: var(--text-3xl); font-weight: var(--weight-extrabold); margin-bottom: var(--space-2); color: var(--text-primary); }
.page-header p { color: var(--text-secondary); font-size: var(--text-base); }

/* ── Hero Section ────────────────────────────────────────── */
.hero { padding: 60px 0 80px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-content h1 { font-size: 64px; font-weight: var(--weight-extrabold); line-height: 1.1; margin-bottom: 25px; background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-content p { font-size: 20px; color: var(--text-secondary); margin-bottom: 35px; line-height: 1.6; }

.search-box { background: var(--search-bg); backdrop-filter: blur(20px); border-radius: 30px; padding: 8px 8px 8px 25px; display: flex; align-items: center; gap: 15px; box-shadow: 0 20px 60px var(--search-shadow); border: 1px solid var(--search-border); transition: all 0.3s ease; }
.search-box input { flex: 1; border: none; background: none; font-size: 16px; outline: none; color: var(--text-primary); }
.search-box input::placeholder { color: var(--text-tertiary); }
.search-box button { padding: 14px 32px; background: var(--accent-gradient); border: none; border-radius: 22px; color: white; font-weight: var(--weight-semibold); cursor: pointer; transition: all 0.3s ease; }
.search-box button:hover { opacity: 0.9; }

.hero-visual { position: relative; height: 500px; }

.floating-card { position: absolute; background: var(--card-bg); backdrop-filter: blur(20px); border-radius: var(--radius-2xl); padding: 25px; box-shadow: 0 20px 60px var(--card-shadow); border: 1px solid var(--card-border); transition: all 0.4s var(--ease-out); z-index: 2; }
.floating-card:hover { opacity: 0.95; }
.card-1 { top: 50px; right: 100px; width: 280px; animation: floatCard 6s infinite ease-in-out; }
.card-2 { bottom: 80px; right: 50px; width: 250px; animation: floatCard 6s infinite ease-in-out; animation-delay: 2s; }
.card-3 { top: 200px; left: 50px; width: 220px; animation: floatCard 6s infinite ease-in-out; animation-delay: 4s; }

@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

.card-image { width: 100%; height: 140px; background: var(--card-image-gradient); border-radius: 18px; margin-bottom: 15px; display: flex; align-items: center; justify-content: center; transition: background 0.3s ease; }
.card-image svg { width: 64px; height: 64px; stroke: var(--accent-primary); stroke-width: 1.5; }
[data-theme="dark"] .card-image svg { stroke: #c4b5fd; }

.card-title { font-size: 16px; font-weight: var(--weight-bold); margin-bottom: 8px; color: var(--text-primary); }
.card-price { font-size: 22px; font-weight: var(--weight-extrabold); background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Categories ──────────────────────────────────────────── */
.categories { padding: 80px 0; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 25px; }
.category-item { background: var(--category-bg); backdrop-filter: blur(20px); border-radius: 30px; padding: 35px 25px; text-align: center; cursor: pointer; transition: all 0.4s var(--ease-out); border: 1px solid var(--card-border); }
.category-item:hover { background: var(--category-hover-bg); }
.category-icon { margin-bottom: 18px; display: flex; justify-content: center; align-items: center; }
.category-icon svg { width: 52px; height: 52px; stroke: var(--accent-primary); stroke-width: 1.5; }
.category-name { font-size: 18px; font-weight: var(--weight-bold); color: var(--text-primary); margin-bottom: 8px; }
.category-count { font-size: 14px; color: var(--text-tertiary); }

/* ── Trending Offers ─────────────────────────────────────── */
.trending { padding: 80px 0; }
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.offer-card { background: var(--card-bg); backdrop-filter: blur(20px); border-radius: 28px; overflow: hidden; transition: all 0.4s var(--ease-out); border: 1px solid var(--card-border); cursor: pointer; text-decoration: none; color: inherit; display: block; }
.offer-card:hover { opacity: 0.95; color: inherit; transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.offer-image { height: 220px; background: var(--offer-image-gradient); display: flex; align-items: center; justify-content: center; position: relative; transition: background 0.3s ease; overflow: hidden; }
.offer-image img { width: 100%; height: 100%; object-fit: cover; }
.offer-image svg { width: 80px; height: 80px; stroke: white; stroke-width: 1.5; }

.offer-badge { position: absolute; top: 15px; right: 15px; background: var(--card-bg); backdrop-filter: blur(10px); padding: 8px 16px; border-radius: 20px; font-size: 12px; font-weight: var(--weight-bold); color: var(--accent-primary); }
.offer-content { padding: 25px; }
.offer-seller { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.seller-info { flex: 1; }
.seller-name { font-size: 14px; font-weight: var(--weight-bold); color: var(--text-primary); }
.seller-rating { font-size: 12px; color: var(--text-tertiary); display: flex; align-items: center; gap: 4px; }
.seller-rating svg { width: 14px; height: 14px; fill: #ffd700; stroke: #ffd700; }
.offer-title { font-size: 18px; font-weight: var(--weight-bold); margin-bottom: 12px; color: var(--text-primary); }
.offer-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.offer-price { font-size: 26px; font-weight: var(--weight-extrabold); background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.offer-btn { padding: 10px 24px; background: var(--accent-gradient); border: none; border-radius: 20px; color: white; font-weight: var(--weight-semibold); font-size: 13px; cursor: pointer; transition: all 0.3s ease; }
.offer-btn:hover { opacity: 0.9; }

/* ── Footer ──────────────────────────────────────────────── */
footer { background: var(--footer-bg); backdrop-filter: blur(30px); padding: 60px 0 30px; margin-top: 100px; border-top: 1px solid var(--footer-border); transition: all 0.3s ease; position: relative; z-index: 1; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 40px; }
.footer-brand { font-size: 32px; font-weight: var(--weight-extrabold); background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 15px; }
.footer-desc { color: var(--text-secondary); line-height: 1.6; font-size: 15px; }
.footer-section h3 { font-size: 16px; font-weight: var(--weight-bold); margin-bottom: 20px; color: var(--text-primary); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 14px; transition: all 0.3s ease; }
.footer-links a:hover { color: var(--accent-primary); padding-left: 5px; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid var(--footer-border); color: var(--text-tertiary); font-size: 14px; }

/* Mobile compact footer */
.footer-mobile { display: none; }
.footer-mobile .footer-brand { font-size: 22px; margin-bottom: 12px; }
.footer-mobile__links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 16px; }
.footer-mobile__links a { color: var(--text-secondary); font-size: 13px; text-decoration: none; transition: color 0.2s; }
.footer-mobile__links a:hover { color: var(--accent-primary); }
.footer-mobile__social { display: flex; gap: 12px; margin-bottom: 4px; }
.footer-mobile__social a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); background: var(--btn-secondary-bg); border: 1px solid var(--btn-secondary-border); color: var(--text-secondary); transition: all 0.2s; }
.footer-mobile__social a:hover { color: var(--accent-primary); background: var(--btn-secondary-hover); }
.footer-mobile__social svg { width: 16px; height: 16px; }

/* ── Listing Cards (reusable) ────────────────────────────── */
.listing-card { background: var(--card-bg); backdrop-filter: blur(20px); border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--card-border); transition: all 0.3s var(--ease-out); height: 100%; display: flex; flex-direction: column; }
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.listing-card__image { height: 160px; overflow: hidden; background: var(--offer-image-gradient); display: flex; align-items: center; justify-content: center; }
.listing-card__image img { width: 100%; height: 100%; object-fit: cover; }
.listing-card__image-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.listing-card__image-placeholder svg { width: 48px; height: 48px; color: white; opacity: 0.6; }
.listing-card__body { padding: var(--space-4); flex: 1; display: flex; flex-direction: column; }
.listing-card__title { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-primary); margin-bottom: var(--space-2); }
.listing-card__footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.listing-card__price { font-weight: var(--weight-bold); color: var(--accent-primary); }

/* ── Game Card (catalog) ─────────────────────────────────── */
.game-card-ll { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--space-4); background: var(--card-bg); backdrop-filter: blur(20px); border-radius: var(--radius-xl); border: 1px solid var(--card-border); transition: all 0.3s var(--ease-out); color: inherit; }
.game-card-ll:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.game-card-ll__icon { width: 56px; height: 56px; border-radius: var(--radius-md); object-fit: cover; margin-bottom: var(--space-3); }
.game-card-ll__icon-placeholder { width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--offer-image-gradient); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-3); }
.game-card-ll__icon-placeholder svg { width: 28px; height: 28px; color: white; }
.game-card-ll__name { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-primary); margin-bottom: var(--space-1); }
.game-card-ll__count { font-size: var(--text-xs); color: var(--text-tertiary); }

/* ── Scroll Row (horizontal) ─────────────────────────────── */
.scroll-row { display: flex; gap: var(--space-4); overflow-x: auto; padding-bottom: var(--space-4); -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.scroll-row::-webkit-scrollbar { height: 6px; }
.scroll-row::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }

/* ── Trust Meter ─────────────────────────────────────────── */
.trust-meter { margin-top: var(--space-4); }
.trust-meter__bar { height: 6px; background: var(--gray-200); border-radius: 3px; overflow: hidden; }
.trust-meter__fill { height: 100%; background: var(--accent-gradient); border-radius: 3px; transition: width 0.5s ease; }
.trust-meter__label { display: flex; justify-content: space-between; font-size: var(--text-xs); color: var(--text-tertiary); margin-top: var(--space-1); }

/* ── Seller Card (sidebar) ───────────────────────────────── */
.seller-card { background: var(--card-bg); backdrop-filter: blur(20px); border-radius: var(--radius-xl); padding: var(--space-6); border: 1px solid var(--card-border); margin-bottom: var(--space-4); }
.seller-card__header { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.seller-card__name { font-weight: var(--weight-semibold); color: var(--text-primary); }
.seller-card__stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); margin: var(--space-3) 0; }
.seller-card__stat { text-align: center; }
.seller-card__stat-value { font-size: var(--text-xl); font-weight: var(--weight-bold); color: var(--text-primary); }
.seller-card__stat-label { font-size: var(--text-xs); color: var(--text-tertiary); }

/* ── Wallet Balance ──────────────────────────────────────── */
.wallet-balance { background: var(--accent-gradient); border-radius: var(--radius-xl); padding: var(--space-8); color: white; }
.wallet-balance__label { font-size: var(--text-sm); opacity: 0.8; margin-bottom: var(--space-1); }
.wallet-balance__amount { font-size: var(--text-3xl); font-weight: var(--weight-extrabold); }
.wallet-balance__actions { display: flex; gap: var(--space-3); margin-top: var(--space-5); flex-wrap: wrap; }

/* ── Chat List ───────────────────────────────────────────── */
.chat-list__item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); border-bottom: 1px solid var(--card-border); transition: background 0.2s; text-decoration: none; color: inherit; }
.chat-list__item:hover { background: var(--gray-50); color: inherit; }
.chat-list__item--unread { background: var(--color-primary-light); }
.chat-list__preview { flex: 1; min-width: 0; }
.chat-list__name { font-weight: var(--weight-semibold); color: var(--text-primary); font-size: var(--text-sm); }
.chat-list__time { font-size: var(--text-xs); color: var(--text-tertiary); }
.chat-list__message { font-size: var(--text-sm); color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Auth Page Layout ────────────────────────────────────── */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 200px); padding: var(--space-8) 0; }
.auth-page__card { background: var(--card-bg); backdrop-filter: blur(30px); border-radius: var(--radius-xl); padding: var(--space-10); border: 1px solid var(--card-border); box-shadow: var(--shadow-xl); width: 100%; max-width: 480px; }
.auth-page__logo { display: flex; align-items: center; gap: var(--space-3); justify-content: center; margin-bottom: var(--space-8); text-decoration: none; color: inherit; }
.auth-page__logo svg { width: 36px; height: 36px; color: var(--accent-primary); }
.auth-page__logo .logo-circle { stroke-dasharray: 126; stroke-dashoffset: 126; animation: drawCircle 3s ease-in-out infinite; }
.auth-page__logo .logo-path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: drawPath 3s ease-in-out infinite 0.3s; }
.auth-page__logo span { font-size: var(--text-2xl); font-weight: var(--weight-bold); background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.auth-page__title { font-size: var(--text-2xl); font-weight: var(--weight-extrabold); text-align: center; margin-bottom: var(--space-2); color: var(--text-primary); }
.auth-page__subtitle { text-align: center; color: var(--text-secondary); font-size: var(--text-sm); margin-bottom: var(--space-8); }
.auth-page__form { display: flex; flex-direction: column; }
.auth-page__forgot { font-size: var(--text-sm); color: var(--accent-primary); text-align: right; margin-bottom: var(--space-5); }
.auth-page__submit { width: 100%; margin-bottom: var(--space-4); }
.auth-page__alt { text-align: center; font-size: var(--text-sm); color: var(--text-secondary); }
.auth-page__alt a { color: var(--accent-primary); font-weight: var(--weight-semibold); }

/* ── Profile Page ────────────────────────────────────────── */
.profile-page__cover { height: 200px; background: var(--accent-gradient); border-radius: var(--radius-xl); overflow: hidden; margin-bottom: -40px; position: relative; }
.profile-page__cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-page__header { background: var(--card-bg); backdrop-filter: blur(20px); border-radius: var(--radius-xl); padding: var(--space-6); padding-top: var(--space-12); border: 1px solid var(--card-border); margin-bottom: var(--space-6); position: relative; }
.profile-page__avatar-wrap { width: 88px; height: 88px; border-radius: 50%; border: 4px solid var(--card-bg); overflow: hidden; position: absolute; top: -44px; left: var(--space-6); background: var(--accent-gradient); display: flex; align-items: center; justify-content: center; }
.profile-page__avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.profile-page__name { font-size: var(--text-2xl); font-weight: var(--weight-extrabold); display: flex; align-items: center; gap: var(--space-2); }
.profile-page__verified { color: var(--accent-primary); }
.profile-page__bio { color: var(--text-secondary); font-size: var(--text-sm); margin-top: var(--space-3); line-height: var(--leading-relaxed); }
.profile-page__stats { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-4); }
.profile-page__stat-chip { display: flex; align-items: center; gap: var(--space-2); padding: 8px 16px; background: var(--gray-50); border-radius: var(--radius-full); font-size: var(--text-sm); color: var(--text-secondary); }
.profile-page__stat-chip strong { color: var(--text-primary); font-weight: var(--weight-semibold); }
.profile-page__stat-chip svg { width: 16px; height: 16px; }
.profile-page__tabs { display: flex; gap: 0; border-bottom: 2px solid var(--card-border); margin-bottom: var(--space-6); }
.profile-page__tab { padding: 12px 20px; font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-secondary); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; text-decoration: none; display: flex; align-items: center; gap: var(--space-2); }
.profile-page__tab:hover { color: var(--accent-primary); }
.profile-page__tab.active { color: var(--accent-primary); border-bottom-color: var(--accent-primary); }
.profile-page__content { margin-bottom: var(--space-8); }

/* ── Account Page (header) ───────────────────────────────── */
.account-page__header { margin-bottom: var(--space-6); }
.account-page__header h1 { font-size: var(--text-2xl); font-weight: var(--weight-extrabold); color: var(--text-primary); }

/* ── Catalog Page ────────────────────────────────────────── */
.catalog-page { padding: var(--space-8) 0 var(--space-12); }
.catalog-page .container { max-width: 1400px; }
.catalog-page__search { position: relative; max-width: 500px; margin: 0 auto var(--space-6); }
.catalog-page__search input { width: 100%; padding: 14px 20px 14px 44px; background: var(--card-bg); backdrop-filter: blur(20px); border: 1px solid var(--card-border); border-radius: var(--radius-2xl); font-size: var(--text-sm); }
.catalog-page__search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-tertiary); pointer-events: none; }
.catalog-page__alphabet { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-1); margin-bottom: var(--space-6); }
.catalog-page__letter { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-secondary); background: var(--btn-secondary-bg); border: 1px solid var(--btn-secondary-border); text-decoration: none; transition: all 0.2s; }
.catalog-page__letter:hover, .catalog-page__letter.active { background: var(--accent-gradient); color: white; border-color: transparent; }
.catalog-page__games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-4); }
.catalog-page__letter-divider { grid-column: 1 / -1; font-size: var(--text-2xl); font-weight: var(--weight-extrabold); color: var(--accent-primary); padding: var(--space-4) 0 var(--space-2); border-bottom: 2px solid var(--card-border); margin-bottom: var(--space-2); }

/* ── Listing Detail ──────────────────────────────────────── */
.listing-detail { padding: var(--space-6) 0 var(--space-12); }
.listing-detail__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--space-6); align-items: start; }
.listing-detail__image-wrap { border-radius: var(--radius-xl); overflow: hidden; background: var(--gray-100); aspect-ratio: 4/3; margin-bottom: var(--space-5); }
.listing-detail__image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.listing-detail__info { background: var(--card-bg); backdrop-filter: blur(20px); border-radius: var(--radius-xl); padding: var(--space-6); border: 1px solid var(--card-border); }
.listing-detail__info h1 { font-size: var(--text-2xl); font-weight: var(--weight-extrabold); margin-bottom: var(--space-3); }
.listing-detail__meta { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-5); }
.listing-detail__meta-item { font-size: var(--text-sm); color: var(--text-secondary); display: flex; align-items: center; gap: var(--space-1); }
.listing-detail__meta-item svg { width: 14px; height: 14px; }
.listing-detail__description { font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-relaxed); }
.listing-detail__sidebar { position: sticky; top: var(--space-6); }
.listing-detail__price-card { background: var(--card-bg); backdrop-filter: blur(20px); border-radius: var(--radius-xl); padding: var(--space-6); border: 1px solid var(--card-border); margin-bottom: var(--space-4); }
.listing-detail__price { font-size: var(--text-4xl); font-weight: var(--weight-extrabold); background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: var(--space-5); }
.listing-detail__price small { font-size: var(--text-xl); }
.listing-detail__actions { display: flex; flex-direction: column; gap: var(--space-3); }
.similar-listings { margin-top: var(--space-10); }
.similar-listings h3 { font-size: var(--text-xl); font-weight: var(--weight-bold); margin-bottom: var(--space-5); }

/* ── Listings Grid ────────────────────────────────────────── */
.listings-grid-ll { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-5); }
.listing-card__seller { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-2); }
.listing-card__seller-name { font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--accent-primary); }
.listing-card__seller-date { font-size: var(--text-xs); color: var(--text-tertiary); }
.listing-card__desc { font-size: var(--text-xs); color: var(--text-secondary); margin-bottom: var(--space-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: var(--leading-normal); }
.listing-card__action { font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--accent-primary); display: flex; align-items: center; gap: 4px; }
.listing-card__action svg { width: 14px; height: 14px; }

/* ── Divider ─────────────────────────────────────────────── */
.divider { height: 1px; background: var(--card-border); margin: var(--space-5) 0; }

/* ── Favorite Button ─────────────────────────────────────── */
.favorite-btn-detail.active { color: var(--color-danger); }
.favorite-btn-detail.active svg { fill: var(--color-danger); }

/* ── Utility Classes ─────────────────────────────────────── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-secondary); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }

.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.row { display: flex; flex-wrap: wrap; margin: 0 calc(var(--space-3) * -1); }
.col-lg-9 { width: 100%; padding: 0 var(--space-3); }
.justify-content-center { justify-content: center; }

.d-none { display: none; }
.d-lg-none { display: block; }

/* ── Fullscreen Mobile Menu ──────────────────────────────── */
.mobile-menu { position: fixed; inset: 0; z-index: var(--z-modal); background: var(--bg-gradient-start); overflow-y: auto; -webkit-overflow-scrolling: touch; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s; }
.mobile-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }

.mobile-menu__header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.mobile-menu__close { width: 36px; height: 36px; border: none; background: var(--gray-100); border-radius: var(--radius-md); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: all 0.2s; }
.mobile-menu__close:hover { background: var(--gray-200); }
.mobile-menu__close svg { width: 18px; height: 18px; }

.mobile-menu__user { display: flex; align-items: center; gap: 14px; padding: 8px 20px 20px; }
.mobile-menu__user-name { font-size: var(--text-base); font-weight: var(--weight-bold); color: var(--text-primary); }
.mobile-menu__user-balance { font-size: var(--text-sm); color: var(--accent-primary); display: flex; align-items: center; gap: 6px; margin-top: 2px; }

.mobile-menu__body { padding: 0 16px 32px; display: flex; flex-direction: column; gap: 20px; }

.mobile-menu__group { display: flex; flex-direction: column; }
.mobile-menu__group-label { font-size: 11px; font-weight: var(--weight-semibold); color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.08em; padding: 0 4px; margin-bottom: 10px; }

.mobile-menu__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mobile-menu__tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; background: var(--card-bg); backdrop-filter: blur(20px); border: 1px solid var(--card-border); border-radius: var(--radius-lg); text-decoration: none; color: var(--text-primary); font-size: 11px; font-weight: var(--weight-medium); transition: all 0.2s; -webkit-tap-highlight-color: transparent; }
.mobile-menu__tile:active { transform: scale(0.95); }
.mobile-menu__tile-icon { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--color-primary-light); display: flex; align-items: center; justify-content: center; position: relative; }
.mobile-menu__tile-icon svg { width: 20px; height: 20px; color: var(--accent-primary); }
.mobile-menu__tile-badge { position: absolute; top: -4px; right: -4px; background: var(--color-danger); color: white; font-size: 9px; font-weight: var(--weight-bold); min-width: 16px; height: 16px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; padding: 0 3px; }

.mobile-menu__link { display: flex; align-items: center; gap: 14px; padding: 12px 4px; color: var(--text-primary); text-decoration: none; font-size: var(--text-sm); font-weight: var(--weight-medium); border-bottom: 1px solid var(--card-border); transition: color 0.2s; -webkit-tap-highlight-color: transparent; }
.mobile-menu__link:last-child { border-bottom: none; }
.mobile-menu__link svg { width: 18px; height: 18px; color: var(--text-tertiary); flex-shrink: 0; }
.mobile-menu__link:active { color: var(--accent-primary); }
.mobile-menu__link:active svg { color: var(--accent-primary); }

.mobile-menu__cta { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; background: var(--accent-gradient); color: white; border-radius: var(--radius-xl); font-size: var(--text-sm); font-weight: var(--weight-semibold); text-decoration: none; transition: opacity 0.2s; }
.mobile-menu__cta svg { width: 18px; height: 18px; }
.mobile-menu__cta:active { opacity: 0.85; color: white; }

.mobile-menu__auth { display: flex; flex-direction: column; gap: 10px; }

.mobile-menu__footer { display: flex; gap: 12px; padding-top: 8px; border-top: 1px solid var(--card-border); }
.mobile-menu__footer-link { display: flex; align-items: center; gap: 6px; font-size: var(--text-xs); color: var(--text-tertiary); text-decoration: none; padding: 8px 0; }
.mobile-menu__footer-link svg { width: 14px; height: 14px; }
.mobile-menu__footer-link--danger { color: var(--color-danger); }

/* ── Responsive: Tablet (1024px) ─────────────────────────── */
@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .offers-grid { grid-template-columns: repeat(2, 1fr); }
    .listing-detail__grid { grid-template-columns: 1fr; }
    .listing-detail__sidebar { position: static; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 40px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Responsive: Mobile (768px) ──────────────────────────── */
@media (max-width: 768px) {
    /* -- Layout -- */
    .container { padding: 0 16px; }

    /* -- Header -- */
    header { padding: 12px 0; gap: 10px; }
    nav { display: none; }
    .user-actions .btn { display: none; }
    .user-actions .user-dropdown { display: none; }
    .user-actions .notif-bell { display: none; }
    .user-actions .theme-toggle { display: flex; }
    .mobile-toggle { display: flex; }
    .logo-text { font-size: 20px; }
    .logo-svg { width: 28px; height: 28px; }
    .logo { gap: 8px; }

    /* -- Fullscreen menu visible -- */
    .mobile-menu { display: flex; flex-direction: column; }

    /* -- Hero -- */
    .hero { padding: 32px 0 48px; gap: 24px; }
    .hero-content h1 { font-size: 28px; line-height: 1.2; }
    .hero-content p { font-size: 15px; margin-bottom: 24px; }
    .search-box { padding: 6px 6px 6px 16px; border-radius: 20px; gap: 8px; }
    .search-box input { font-size: 14px; }
    .search-box button { padding: 10px 20px; font-size: 13px; border-radius: 16px; }

    /* -- Section Headers -- */
    .section-header { margin-bottom: 32px; }
    .section-header h2 { font-size: 24px; }
    .section-header p { font-size: 14px; }
    .page-header h1 { font-size: var(--text-2xl); }

    /* -- Categories -- */
    .categories { padding: 40px 0; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-item { padding: 20px 14px; border-radius: 20px; }
    .category-icon svg { width: 36px; height: 36px; }
    .category-name { font-size: 14px; }
    .category-count { font-size: 12px; }

    /* -- Offers / Listings Grid -- */
    .trending { padding: 40px 0; }
    .offers-grid { grid-template-columns: 1fr; gap: 16px; }
    .offer-card { border-radius: 20px; }
    .offer-image { height: 160px; }
    .offer-content { padding: 16px; }
    .offer-title { font-size: 16px; }
    .offer-price { font-size: 22px; }
    .offer-footer { margin-top: 14px; }

    .listings-grid-ll { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .listing-card { border-radius: var(--radius-lg); }
    .listing-card__image { height: 120px; }
    .listing-card__body { padding: var(--space-3); }
    .listing-card__title { font-size: var(--text-xs); }
    .listing-card__desc { font-size: 11px; margin-bottom: var(--space-2); -webkit-line-clamp: 1; }
    .listing-card__price { font-size: var(--text-sm); }
    .listing-card__action { font-size: 11px; }
    .listing-card__seller { margin-bottom: var(--space-1); }
    .listing-card__seller-name, .listing-card__seller-date { font-size: 10px; }
    .listing-card__game-tag { font-size: 10px; padding: 2px 8px; }

    /* -- Grids utility -- */
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: var(--space-3); }

    /* -- Listing Detail -- */
    .listing-detail { padding: var(--space-4) 0 var(--space-8); }
    .listing-detail__grid { gap: var(--space-4); }
    .listing-detail__image-wrap { aspect-ratio: 16/10; margin-bottom: var(--space-3); border-radius: var(--radius-lg); }
    .listing-detail__info { padding: var(--space-4); border-radius: var(--radius-lg); }
    .listing-detail__info h1 { font-size: var(--text-xl); }
    .listing-detail__meta { gap: var(--space-2); margin-bottom: var(--space-3); flex-wrap: wrap; }
    .listing-detail__meta-item { font-size: var(--text-xs); }
    .listing-detail__price-card { padding: var(--space-4); border-radius: var(--radius-lg); }
    .listing-detail__price { font-size: var(--text-3xl); margin-bottom: var(--space-3); }
    .listing-detail__price small { font-size: var(--text-base); }
    .listing-detail__actions { gap: var(--space-2); }
    .listing-detail__actions .btn { padding: 10px 16px; font-size: var(--text-sm); }
    .seller-card { padding: var(--space-4); border-radius: var(--radius-lg); }
    .seller-card__header { gap: var(--space-2); margin-bottom: var(--space-3); }
    .similar-listings { margin-top: var(--space-6); }
    .similar-listings h3 { font-size: var(--text-base); margin-bottom: var(--space-3); }
    .scroll-row { gap: var(--space-3); }
    .scroll-row > a { width: 200px; }

    /* -- Breadcrumbs -- */
    .ll-breadcrumb, .breadcrumb { font-size: var(--text-xs); margin-bottom: var(--space-3); gap: var(--space-1); }

    /* -- Auth Page -- */
    .auth-page { padding: var(--space-4) 0; min-height: auto; }
    .auth-page__card { padding: var(--space-5); margin: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
    .auth-page__title { font-size: var(--text-xl); }
    .auth-page__subtitle { font-size: var(--text-xs); margin-bottom: var(--space-5); }
    .auth-page__logo svg { width: 28px; height: 28px; }
    .auth-page__logo span { font-size: var(--text-xl); }
    .auth-page__logo { margin-bottom: var(--space-5); }

    /* -- Profile Page -- */
    .profile-page__cover { height: 120px; border-radius: var(--radius-lg); }
    .profile-page__header { padding: var(--space-4); padding-top: var(--space-10); border-radius: var(--radius-lg); }
    .profile-page__avatar-wrap { width: 64px; height: 64px; top: -32px; left: var(--space-4); }
    .profile-page__avatar-wrap span { font-size: var(--text-xl) !important; }
    .profile-page__name { font-size: var(--text-xl); }
    .profile-page__bio { font-size: var(--text-xs); }
    .profile-page__stats { gap: var(--space-1); margin-top: var(--space-3); }
    .profile-page__stat-chip { padding: 6px 10px; font-size: var(--text-xs); }
    .profile-page__stat-chip svg { width: 14px; height: 14px; }
    .profile-page__tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .profile-page__tabs::-webkit-scrollbar { display: none; }
    .profile-page__tab { padding: 10px 14px; font-size: var(--text-xs); white-space: nowrap; }

    /* -- Account Page -- */
    .account-page__header { margin-bottom: var(--space-4); }
    .account-page__header h1 { font-size: var(--text-xl); }
    .account-page__header { display: flex; flex-direction: column; gap: var(--space-3); }

    /* -- Forms -- */
    .row { margin: 0; gap: var(--space-3); }
    .row > [class*="col-"] { width: 100% !important; padding: 0; }
    .g-3 { gap: var(--space-3) !important; }
    .mt-3 { margin-top: var(--space-3); }
    input[type="text"], input[type="email"], input[type="password"],
    input[type="number"], input[type="tel"], input[type="url"],
    input[type="search"], textarea, select { font-size: 16px; padding: 10px 14px; }
    .form-label { font-size: var(--text-xs); margin-bottom: var(--space-1); }

    /* -- Cards -- */
    .card-glass, .card-ll { padding: var(--space-4); border-radius: var(--radius-lg); }

    /* -- Tables (horizontal scroll) -- */
    .table-glass { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table-glass thead, .table-glass tbody { min-width: 600px; }
    .table-glass thead th { padding: 10px 12px; font-size: 10px; }
    .table-glass tbody td { padding: 10px 12px; font-size: var(--text-xs); }

    /* -- Tabs -- */
    .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .tabs::-webkit-scrollbar { display: none; }
    .tab-item { padding: 10px 14px; font-size: var(--text-xs); white-space: nowrap; }

    /* -- Badges -- */
    .badge { padding: 3px 8px; font-size: 10px; }

    /* -- Pagination -- */
    .pagination { gap: var(--space-1); margin-top: var(--space-5); }
    .pagination a, .pagination span { width: 32px; height: 32px; font-size: var(--text-xs); }

    /* -- Catalog Page -- */
    .catalog-page { padding: var(--space-4) 0 var(--space-8); }
    .catalog-page__search { max-width: 100%; margin-bottom: var(--space-4); }
    .catalog-page__search input { padding: 12px 16px 12px 40px; }
    .catalog-page__alphabet { gap: 3px; margin-bottom: var(--space-4); }
    .catalog-page__letter { width: 30px; height: 30px; font-size: var(--text-xs); border-radius: 6px; }
    .catalog-page__games-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
    .catalog-page__letter-divider { font-size: var(--text-xl); padding: var(--space-3) 0 var(--space-1); }
    .game-card-ll { padding: var(--space-3); border-radius: var(--radius-md); }
    .game-card-ll__icon, .game-card-ll__icon-placeholder { width: 40px; height: 40px; margin-bottom: var(--space-2); }
    .game-card-ll__name { font-size: 11px; }
    .game-card-ll__count { font-size: 10px; }

    /* -- Chat -- */
    .chat-wrap { height: calc(100vh - 130px); height: calc(100dvh - 130px); }
    .chat-header-bar { padding: var(--space-3); border-radius: var(--radius-lg); margin-bottom: var(--space-2); }
    .chat-messages { padding: var(--space-3); border-radius: var(--radius-lg); margin-bottom: var(--space-2); }
    .msg-row { max-width: 85%; }
    .msg-bubble { padding: 8px 12px; font-size: var(--text-xs); border-radius: var(--radius-md); }
    .chat-input-bar { padding: var(--space-2); border-radius: var(--radius-lg); }
    .chat-input-bar input { font-size: 16px; padding: 8px; }
    .chat-input-bar button { width: 36px; height: 36px; }

    /* -- Chat List -- */
    .chat-list__item { padding: var(--space-3); gap: var(--space-2); }
    .chat-list__name { font-size: var(--text-xs); }
    .chat-list__message { font-size: var(--text-xs); }

    /* -- Wallet -- */
    .wallet-balance { padding: var(--space-5); border-radius: var(--radius-lg); }
    .wallet-balance__amount { font-size: var(--text-2xl); }
    .wallet-balance__actions { gap: var(--space-2); }
    .wallet-balance__actions .btn { flex: 1; padding: 8px 12px; font-size: var(--text-xs); }

    /* -- Footer -- */
    footer { padding: 24px 0 16px; margin-top: 40px; }
    .footer-content { display: none; }
    .footer-mobile { display: block; }
    .footer-bottom { font-size: 11px; padding-top: 12px; }

    /* -- Floating cards hide -- */
    .floating-card { display: none; }

    /* -- Orbs reduce -- */
    .orb1 { width: 200px; height: 200px; }
    .orb2 { width: 180px; height: 180px; }
    .orb3 { width: 150px; height: 150px; }

    /* -- Toasts -- */
    .toast-container { top: 12px; right: 12px; max-width: calc(100% - 24px); width: calc(100% - 24px); }
    .toast { padding: 10px 14px; font-size: var(--text-xs); gap: 8px; }
    .toast svg { width: 16px; height: 16px; }

    /* -- Avatars -- */
    .avatar { width: 36px; height: 36px; font-size: var(--text-xs); }
    .avatar--lg { width: 48px; height: 48px; font-size: var(--text-lg); }
    .avatar--xl { width: 64px; height: 64px; font-size: var(--text-xl); }

    /* -- Empty State -- */
    .empty-state { padding: var(--space-10) var(--space-4); }
    .empty-state__icon { width: 60px; height: 60px; }
    .empty-state__icon svg { width: 28px; height: 28px; }
    .empty-state__title { font-size: var(--text-base); }

    /* -- Buttons -- */
    .btn { padding: 8px 18px; font-size: 13px; border-radius: var(--radius-xl); }
    .btn-lg { padding: 12px 24px; font-size: 14px; }
    .btn-sm { padding: 6px 12px; font-size: 11px; }

    /* -- Alerts -- */
    .alert { padding: 10px 14px; font-size: var(--text-xs); }
    .alert svg { width: 16px; height: 16px; }

    /* -- Utility adjustments -- */
    .d-flex { display: flex; }
    .align-items-end { align-items: flex-end; }
    .justify-content-end { justify-content: flex-end; }
    .justify-content-center { justify-content: center; }
}

/* ── Responsive: Small Phone (480px) ─────────────────────── */
@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .hero-content h1 { font-size: 24px; }
    .hero-content p { font-size: 14px; }
    .section-header h2 { font-size: 20px; }
    .listings-grid-ll { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .listing-card__image { height: 100px; }
    .listing-card__body { padding: var(--space-2); }
    .listing-card__title { font-size: 11px; }
    .listing-card__price { font-size: var(--text-xs); }
    .offers-grid { gap: 12px; }
    .category-grid { gap: 8px; }
    .category-item { padding: 16px 10px; border-radius: 16px; }
    .category-icon svg { width: 28px; height: 28px; }
    .category-name { font-size: 12px; }
    .catalog-page__games-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .game-card-ll { padding: var(--space-2); }
    .game-card-ll__icon, .game-card-ll__icon-placeholder { width: 32px; height: 32px; margin-bottom: var(--space-1); }
    .game-card-ll__name { font-size: 10px; }
    .footer-mobile__links { gap: 4px 12px; }
    .footer-mobile__links a { font-size: 12px; }
    .profile-page__cover { height: 100px; }
    .profile-page__avatar-wrap { width: 56px; height: 56px; top: -28px; }
    .profile-page__name { font-size: var(--text-lg); }
    .profile-page__stat-chip { padding: 4px 8px; font-size: 10px; }
    .wallet-balance__amount { font-size: var(--text-xl); }
}

/* ── Desktop overrides ───────────────────────────────────── */
@media (min-width: 769px) {
    .mobile-toggle { display: none !important; }
    .mobile-menu { display: none !important; }
    .footer-mobile { display: none !important; }
    .d-lg-none { display: none !important; }
}

@media (min-width: 992px) {
    .col-lg-9 { width: 75%; }
}

/* ── Field validation feedback ─────────────────────────── */
.field-feedback { font-size: 12px; margin-top: 6px; display: flex; align-items: center; gap: 5px; min-height: 20px; transition: all 0.2s ease; }
.field-feedback--ok { color: var(--color-success, #22c55e); }
.field-feedback--error { color: var(--color-danger, #ef4444); }
.field-feedback--loading { color: var(--text-tertiary); }
.fb-spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--gray-200); border-top-color: var(--accent-primary); border-radius: 50%; animation: fbSpin 0.6s linear infinite; }
@keyframes fbSpin { to { transform: rotate(360deg); } }
input.is-valid { border-color: var(--color-success, #22c55e) !important; }
input.is-invalid { border-color: var(--color-danger, #ef4444) !important; }

/* ── Password toggle ──────────────────────────────────── */
.password-wrap { position: relative; display: flex; align-items: center; }
.password-wrap input { padding-right: 44px !important; width: 100%; }
.password-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--text-tertiary); padding: 4px; display: flex; align-items: center; justify-content: center; transition: color 0.2s; }
.password-toggle:hover { color: var(--accent-primary); }
