/* ==========================================================================
   LC Urban Designs — design system
   Dark only. Warm near-black surfaces, orange accent.
   1 Tokens  2 Base  3 Layout  4 Buttons  5 Nav  6 Components  7 Pages  8 Admin  9 Footer/ads  10 Responsive
   ========================================================================== */

/* 1 ── Tokens ───────────────────────────────────────────────────────────── */
:root {
    color-scheme: dark;

    --bg: #0b0a09;
    --bg-raised: #100e0c;
    --surface: #161310;
    --surface-2: #1d1915;
    --surface-hover: #241f1a;

    --border: rgba(255, 237, 213, 0.08);
    --border-strong: rgba(255, 237, 213, 0.16);

    --text: #f6f1ea;
    --text-2: #b3aa9f;
    --text-3: #7b7369;

    --brand: #ff7a1a;
    --brand-2: #ffa24d;
    --brand-deep: #e5620a;
    --brand-ink: #1c0d02;               /* text on orange */
    --brand-soft: rgba(255, 122, 26, 0.12);
    --brand-line: rgba(255, 122, 26, 0.38);
    --grad: linear-gradient(135deg, #ff7a1a 0%, #ffa24d 100%);

    --success: #3ddc84;
    --danger: #ff5d5d;
    --warning: #ffc233;
    --info: #5865f2;
    --robux: #00b06f;
    --partner: #74b9ff;

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 22px;

    --shadow-card: 0 18px 40px -18px rgba(0, 0, 0, 0.85);
    --shadow-glow: 0 14px 50px -22px rgba(255, 122, 26, 0.45);

    --container: 1200px;
    --nav-h: 64px;
    --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* Compatibility layer: names used by older inline styles (admin panel, edit page). */
    --primary: var(--brand);
    --primary-dark: var(--brand-deep);
    --secondary: var(--brand-2);
    --accent: var(--brand);
    --primary-soft: var(--brand-2);
    --bg-dark: var(--bg);
    --bg-primary: var(--bg);
    --bg-secondary: var(--bg-raised);
    --bg-elevated: var(--bg-raised);
    --bg-card: var(--surface);
    --bg-card-hover: var(--surface-hover);
    --text-primary: var(--text);
    --text-secondary: var(--text-2);
    --text-muted: var(--text-3);
    --gray: var(--text-2);
    --light: var(--surface);
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: var(--border);
    --surface-03: rgba(255, 255, 255, 0.03);
    --surface-04: rgba(255, 255, 255, 0.04);
    --surface-06: rgba(255, 255, 255, 0.06);
    --surface-12: rgba(255, 255, 255, 0.12);
    --surface-18: rgba(255, 255, 255, 0.18);
    --primary-15: rgba(255, 122, 26, 0.15);
    --primary-30: rgba(255, 122, 26, 0.3);
    --purple: var(--brand-deep);
    --purple-light: var(--brand-2);
    --purple-alt: var(--brand-2);
    --purple-alt-15: rgba(255, 122, 26, 0.15);
    --purple-alt-30: rgba(255, 122, 26, 0.3);
    --success-12: rgba(61, 220, 132, 0.12);
    --success-15: rgba(61, 220, 132, 0.15);
    --success-30: rgba(61, 220, 132, 0.3);
    --danger-12: rgba(255, 93, 93, 0.12);
    --danger-15: rgba(255, 93, 93, 0.15);
    --danger-20: rgba(255, 93, 93, 0.2);
    --danger-30: rgba(255, 93, 93, 0.3);
    --warning-10: rgba(255, 194, 51, 0.1);
    --warning-30: rgba(255, 194, 51, 0.3);
    --warning-strong: var(--brand-2);
    --warningStrong-06: rgba(255, 122, 26, 0.06);
    --warningStrong-15: rgba(255, 122, 26, 0.15);
    --warningStrong-25: rgba(255, 122, 26, 0.25);
    --warningStrong-30: rgba(255, 122, 26, 0.3);
}

/* 2 ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(900px 480px at 85% -8%, rgba(255, 122, 26, 0.09), transparent 60%),
        radial-gradient(700px 400px at 4% 0%, rgba(255, 162, 77, 0.05), transparent 60%);
}
main { flex: 1; }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: rgba(255, 122, 26, 0.35); }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }
* { scrollbar-width: thin; scrollbar-color: #3a332b transparent; }

.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 2000;
    background: var(--brand); color: var(--brand-ink); padding: 0.6rem 1rem; border-radius: var(--r-md); font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

.muted { color: var(--text-2); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.stack-sm { margin-top: 1rem; }
.req { color: var(--brand); }
.hint { color: var(--text-3); font-size: 0.8rem; line-height: 1.5; }
.label-caps { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.74rem; font-weight: 650; color: var(--text-3); margin-bottom: 0.9rem; }
.flip { transform: scaleX(-1); }
.danger-text { color: var(--danger) !important; }

/* 3 ── Layout ───────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.container-narrow { max-width: 760px; }
.section { padding: 2.5rem 0 1rem; }
.section-tight { padding-top: 0.5rem; padding-bottom: 1rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.link-arrow { color: var(--brand-2); font-weight: 600; font-size: 0.92rem; }
.link-arrow:hover { color: var(--text); }

.page-head { padding: 3rem 0 1.5rem; }
.page-head p { margin-top: 0.4rem; }
.page-head.center { text-align: center; padding-bottom: 2rem; }
.page-head.center p { max-width: 34rem; margin-inline: auto; margin-top: 0.75rem; }
.head-icon {
    width: 54px; height: 54px; border-radius: 16px; margin: 0 auto 1.1rem; display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand-2); border: 1px solid var(--brand-line);
}

/* 4 ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.7rem 1.25rem; border-radius: var(--r-md); border: 1px solid transparent;
    font-size: 0.92rem; font-weight: 650; line-height: 1.2; white-space: nowrap; cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, filter 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-sm, .btn-small { padding: 0.45rem 0.85rem; font-size: 0.82rem; border-radius: 10px; }
.btn-lg { padding: 0.9rem 1.6rem; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--grad); color: var(--brand-ink); box-shadow: 0 8px 22px -8px rgba(255, 122, 26, 0.6); }
.btn-primary:hover { filter: brightness(1.07); box-shadow: 0 12px 28px -8px rgba(255, 122, 26, 0.75); }
.btn-secondary, .btn-logout { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover, .btn-logout:hover { background: var(--surface-hover); border-color: var(--brand-line); }
.btn-success { background: var(--success); color: #04170c; box-shadow: 0 8px 22px -10px rgba(61, 220, 132, 0.6); }
.btn-success:hover { filter: brightness(1.06); }
.btn-owned { background: rgba(61, 220, 132, 0.1); color: var(--success); border-color: rgba(61, 220, 132, 0.35); }
.btn-owned:hover { background: rgba(61, 220, 132, 0.18); }
.btn-danger { background: rgba(255, 93, 93, 0.12); color: var(--danger); border-color: rgba(255, 93, 93, 0.4); }
.btn-danger:hover:not(:disabled) { background: var(--danger); color: #1a0505; }
.btn-robux { background: linear-gradient(135deg, #00b06f, #008f5a); color: #fff; }
.btn-discord { background: var(--info); color: #fff; }
.btn-discord:hover { background: #4752c4; }

.icon-btn {
    position: relative; width: 38px; height: 38px; display: inline-grid; place-items: center; flex-shrink: 0;
    background: transparent; border: 1px solid transparent; border-radius: 10px; color: var(--text-2);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.icon-btn:hover { background: var(--surface); border-color: var(--border); color: var(--text); }
.icon-btn.danger:hover { background: var(--danger-12); border-color: var(--danger-30); color: var(--danger); }

/* 5 ── Navbar ───────────────────────────────────────────────────────────── */
.navbar {
    position: sticky; top: 0; z-index: 1000; height: var(--nav-h);
    background: rgba(11, 10, 9, 0.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--border);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.nav-brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a { padding: 0.45rem 0.85rem; border-radius: 10px; color: var(--text-2); font-size: 0.92rem; font-weight: 550; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a[aria-current='page'] { color: var(--brand-2); background: var(--brand-soft); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 0.35rem; }
.nav-toggle { display: none; }

.cart-badge {
    position: absolute; top: 1px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
    background: var(--brand); color: var(--brand-ink); font-size: 0.66rem; font-weight: 800; line-height: 1;
    display: grid; place-items: center; border: 2px solid var(--bg);
}
.user-chip {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.22rem 0.8rem 0.22rem 0.22rem; margin-left: 0.25rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: 999px; transition: border-color 0.2s;
}
.user-chip:hover { border-color: var(--brand-line); }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.user-name { font-size: 0.85rem; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-login { margin-left: 0.25rem; }

.lang-switcher { position: relative; }
.lang-btn { display: inline-flex; align-items: center; width: auto; gap: 0.35rem; padding: 0 0.6rem; }
.lang-code { font-size: 0.74rem; font-weight: 750; letter-spacing: 0.06em; }
.lang-option .lang-code { display: inline-grid; place-items: center; width: 1.9rem; height: 1.4rem; border-radius: 6px; background: var(--surface); color: var(--text-3); font-size: 0.68rem; }
.lang-option.active .lang-code { background: rgba(255, 122, 26, 0.2); color: var(--brand-2); }
.lang-menu {
    display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; padding: 6px; z-index: 1100;
    background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--r-md); box-shadow: var(--shadow-card);
}
.lang-menu.open { display: block; }
.lang-option { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.7rem; border-radius: 8px; color: var(--text-2); font-size: 0.9rem; }
.lang-option:hover { background: var(--surface-hover); color: var(--text); }
.lang-option.active { color: var(--brand-2); background: var(--brand-soft); font-weight: 600; }

/* 6 ── Components ───────────────────────────────────────────────────────── */
/* badges */
.badge {
    --tint: rgba(255, 255, 255, 0.08);
    display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.6rem; border-radius: 999px;
    font-size: 0.68rem; font-weight: 750; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.4; white-space: nowrap;
    color: var(--text-2); border: 1px solid var(--border-strong);
    background: linear-gradient(var(--tint), var(--tint)), rgba(11, 10, 9, 0.7);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.badge-free, .badge-owned { --tint: rgba(61, 220, 132, 0.16); color: var(--success); border-color: rgba(61, 220, 132, 0.35); }
.badge-sale { --tint: rgba(255, 93, 93, 0.18); color: #ff8a8a; border-color: rgba(255, 93, 93, 0.4); }
.badge-partner { --tint: rgba(116, 185, 255, 0.16); color: var(--partner); border-color: rgba(116, 185, 255, 0.4); }
.badge-bogo, .badge-brand { --tint: rgba(255, 122, 26, 0.18); color: var(--brand-2); border-color: var(--brand-line); }
.badge-warn { --tint: rgba(255, 194, 51, 0.14); color: var(--warning); border-color: rgba(255, 194, 51, 0.35); }

/* chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip-row-lg { margin: 0.9rem 0 1.25rem; }
.chip {
    display: inline-flex; align-items: center; padding: 0.35rem 0.85rem; border-radius: 999px; font-size: 0.84rem; font-weight: 550;
    background: var(--surface); border: 1px solid var(--border); color: var(--text-2); transition: all 0.2s;
}
a.chip:hover { border-color: var(--brand-line); color: var(--text); }
.chip.active { background: var(--brand-soft); border-color: var(--brand-line); color: #ffb37a; }
.chip-sm { padding: 0.16rem 0.6rem; font-size: 0.72rem; }
.chip-static { cursor: default; }

/* stars */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.star { fill: rgba(255, 237, 213, 0.14); }
.star.on { fill: #ffb020; }

/* prices */
.price { font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.price-free { color: var(--success); }
.price-old { color: var(--text-3); font-weight: 500; font-size: 0.85rem; text-decoration-thickness: 1px; }
.price-now { color: var(--brand-2); }

/* notices & alerts */
.notice {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    padding: 1rem 1.25rem; margin: 0 0 1.5rem; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface);
}
.notice-text strong { display: inline-flex; align-items: center; gap: 0.45rem; }
.notice-text p { margin-top: 0.2rem; color: var(--text-2); font-size: 0.9rem; }
.notice-brand { background: var(--brand-soft); border-color: var(--brand-line); }
.notice-brand strong { color: var(--brand-2); }
.notice-warn { background: rgba(255, 194, 51, 0.08); border-color: rgba(255, 194, 51, 0.3); }
.notice-warn strong { color: var(--warning); }
.notice.stack-sm { margin: 1rem 0 0; }
.alert { padding: 0.85rem 1.1rem; border-radius: var(--r-md); border: 1px solid; font-weight: 500; font-size: 0.92rem; margin-bottom: 1rem; }
.alert-success { background: rgba(61, 220, 132, 0.1); border-color: rgba(61, 220, 132, 0.4); color: var(--success); }
.alert-error { background: rgba(255, 93, 93, 0.1); border-color: rgba(255, 93, 93, 0.4); color: #ff8a8a; }

#toasts { position: fixed; top: calc(var(--nav-h) + 12px); right: 1rem; z-index: 10000; display: flex; flex-direction: column; gap: 0.5rem; max-width: min(92vw, 380px); }
.toast {
    padding: 0.8rem 1rem; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-card); font-size: 0.9rem; font-weight: 500; animation: toast-in 0.25s ease both; transition: opacity 0.3s, transform 0.3s;
}
.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast.leaving { opacity: 0; transform: translateX(12px); }
@keyframes toast-in { from { opacity: 0; transform: translateX(14px); } }

/* forms */
input:not([type='checkbox']):not([type='radio']):not([type='file']):not([type='hidden']), textarea, select {
    width: 100%; padding: 0.72rem 0.95rem; font: inherit; font-size: 0.95rem; color: var(--text);
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-md);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
select option { background: var(--surface-2); }
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:not([type='checkbox']):not([type='radio']):focus, textarea:focus, select:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.18);
}
input[type='checkbox'], input[type='radio'] { accent-color: var(--brand); }
input[type='file'] { width: 100%; color: var(--text-2); font-size: 0.9rem; }
input[type='file']::file-selector-button {
    margin-right: 0.9rem; padding: 0.5rem 0.9rem; border-radius: 10px; border: 1px solid var(--border-strong);
    background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
}
input[type='file']::file-selector-button:hover { border-color: var(--brand-line); }
.form { display: flex; flex-direction: column; gap: 1.15rem; }
.field > label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4rem; }
.field > .hint { display: block; margin-top: 0.35rem; }
.field > label .hint { display: inline; margin: 0 0 0 0.3rem; font-weight: 400; }

/* panels */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 1.75rem; }
.panel-flush { padding: 0; overflow: hidden; }
.panel.split, .split { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.panel-danger { background: rgba(255, 93, 93, 0.06); border-color: var(--danger-30); }
.panel-user { display: flex; align-items: center; gap: 0.9rem; padding-bottom: 1.25rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.avatar-lg { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--brand); }

.empty-state {
    text-align: center; padding: 4rem 1.5rem; border: 1px dashed var(--border-strong); border-radius: var(--r-xl);
    background: rgba(255, 255, 255, 0.015); display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
}
.empty-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); }
.empty-icon.tone-success { background: rgba(61, 220, 132, 0.12); color: var(--success); }
.empty-icon.tone-danger { background: var(--danger-12); color: var(--danger); }
.empty-line { grid-column: 1 / -1; padding: 2rem 0; }

.status-card { text-align: center; padding: 1rem 0 0.5rem; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.status-card h2 { text-transform: capitalize; }
.status-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); }
.tone-warn .status-icon { background: rgba(255, 194, 51, 0.12); color: var(--warning); }
.tone-success .status-icon { background: rgba(61, 220, 132, 0.12); color: var(--success); }
.tone-danger .status-icon { background: var(--danger-12); color: var(--danger); }
.quote { width: 100%; text-align: left; padding: 0.9rem 1rem; border-radius: var(--r-md); border-left: 3px solid var(--danger); background: var(--danger-12); font-size: 0.92rem; }

/* toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.search-field { position: relative; flex: 1; min-width: 240px; color: var(--text-3); }
.search-field svg { position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%); pointer-events: none; }
.search-field input { padding-left: 2.6rem !important; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-md); }
.seg-btn { padding: 0.5rem 1rem; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font-size: 0.88rem; font-weight: 600; transition: all 0.2s; }
.seg-btn:hover { color: var(--text); }
.seg-btn.active { background: var(--brand-soft); color: #ffb37a; box-shadow: inset 0 0 0 1px var(--brand-line); }

/* product cards */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.25rem; }
.product-card {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--brand-line); box-shadow: var(--shadow-card), var(--shadow-glow); }
.product-card-media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-card-media img { transform: scale(1.045); }
.media-placeholder {
    width: 100%; height: 100%; display: grid; place-items: center; color: var(--text-3);
    background: radial-gradient(circle at 30% 20%, rgba(255, 122, 26, 0.12), transparent 60%), var(--surface-2);
}
.product-card-badges { position: absolute; top: 0.7rem; left: 0.7rem; right: 0.7rem; display: flex; flex-wrap: wrap; gap: 0.35rem; z-index: 2; pointer-events: none; }
.product-card-body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1rem 1.1rem 1.1rem; flex: 1; }
.product-card-title { font-size: 1.05rem; font-weight: 650; line-height: 1.3; letter-spacing: -0.01em; }
.stretched::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.product-card-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.8rem; color: var(--text-2); }
.meta-item { display: inline-flex; align-items: center; gap: 0.35rem; }
.product-card .chip-row .chip, .product-card-foot .btn { position: relative; z-index: 2; }
.product-card-foot { margin-top: auto; padding-top: 0.4rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.card-arrow { color: var(--text-3); transition: color 0.2s, transform 0.2s; }
.product-card:hover .card-arrow { color: var(--brand-2); transform: translateX(3px); }
.owned-card .product-card-foot { padding-top: 0.6rem; }
.ad-card:hover { border-color: var(--brand-line); }

/* 7 ── Pages ────────────────────────────────────────────────────────────── */
/* sale banner */
.sale-banner {
    display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; padding: 0.6rem 1rem;
    background: var(--grad); color: var(--brand-ink); font-size: 0.9rem; font-weight: 600; text-align: center;
}
.sale-banner .dot { margin: 0 0.5rem; opacity: 0.5; }
.sale-banner-text strong { text-transform: uppercase; letter-spacing: 0.05em; font-weight: 800; }
.sale-banner-cta { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 800; }
.sale-banner:hover .sale-banner-cta { text-decoration: underline; }

/* hero */
.hero { position: relative; padding: 5.5rem 0 2.5rem; text-align: center; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(640px 300px at 50% 0%, rgba(255, 122, 26, 0.24), transparent 70%),
        radial-gradient(rgba(255, 237, 213, 0.09) 1px, transparent 1px);
    background-size: auto, 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 75% 85% at 50% 0%, #000 25%, transparent 75%);
    mask-image: radial-gradient(ellipse 75% 85% at 50% 0%, #000 25%, transparent 75%);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.35rem 0.95rem; border-radius: 999px; margin-bottom: 1.5rem;
    background: var(--brand-soft); border: 1px solid var(--brand-line); color: #ffb37a; font-size: 0.8rem; font-weight: 600;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); }
.hero h1 {
    font-size: clamp(2.4rem, 6.5vw, 4.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; max-width: 15ch;
    background: linear-gradient(180deg, #fff 35%, #ffc796 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { max-width: 40rem; margin-top: 1.25rem; color: var(--text-2); font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 2rem; }
.stats {
    display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; max-width: 860px; margin-top: 3.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)); border: 1px solid var(--border); border-radius: var(--r-lg);
}
.stat { padding: 1.2rem 1rem; text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-value { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-label { margin-top: 0.15rem; font-size: 0.72rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }

/* product detail */
.pd { padding-top: 1.5rem; }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 1.25rem; color: var(--text-2); font-size: 0.9rem; font-weight: 550; }
.back-link:hover { color: var(--brand-2); }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.gallery-main {
    display: block; width: 100%; padding: 0; aspect-ratio: 16 / 10; overflow: hidden; cursor: zoom-in;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-empty { display: grid; place-items: center; color: var(--text-3); cursor: default; background: radial-gradient(circle at 30% 20%, rgba(255, 122, 26, 0.1), transparent 60%), var(--surface); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 0.6rem; margin-top: 0.75rem; }
.gallery-thumb {
    aspect-ratio: 16 / 10; padding: 0; overflow: hidden; border-radius: 10px; opacity: 0.6;
    background: var(--surface); border: 2px solid transparent; transition: opacity 0.2s, border-color 0.2s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active { opacity: 1; border-color: var(--brand); }
.pd-panel {
    position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
    padding: 1.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
}
.pd-panel h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.pd-rating { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.pd-price { display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; }
.pd-price-now { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pd-owners { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-2); font-size: 0.9rem; }
.pd-actions, .buy-actions { width: 100%; }
.buy-actions { display: flex; flex-direction: column; gap: 0.7rem; }
.variants { width: 100%; display: flex; flex-direction: column; gap: 0.45rem; padding: 1rem; border-radius: 14px; background: var(--bg-raised); border: 1px solid var(--border); }
.variants .label-caps { margin-bottom: 0.3rem; }
.variant { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; padding: 0.7rem 0.85rem; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); transition: border-color 0.2s, background 0.2s; }
.variant:hover { border-color: var(--brand-line); }
.variant.current { border-color: var(--brand); background: var(--brand-soft); }
.variant-name { font-weight: 600; font-size: 0.92rem; }
.variant-meta { display: inline-flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.variant-price { font-weight: 650; font-size: 0.88rem; color: var(--text-2); }
.robux-box { display: flex; flex-direction: column; gap: 0.6rem; padding: 1rem; border-radius: 14px; background: rgba(0, 176, 111, 0.06); border: 1px solid rgba(0, 176, 111, 0.28); }
.robux-title { font-weight: 650; display: flex; align-items: center; gap: 0.5rem; }
.robux-mark { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: rgba(255, 255, 255, 0.2); font-size: 0.62rem; font-weight: 800; }
.pd-section { margin-top: 3.25rem; }
.pd-section h2 { margin-bottom: 1.1rem; }
.prose { color: var(--text-2); line-height: 1.8; max-width: 72ch; }

.review { padding: 1.1rem 1.25rem; margin-bottom: 0.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.review-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.6rem; }
.review-author { font-weight: 650; margin-bottom: 0.15rem; }
.review p { color: var(--text-2); line-height: 1.7; }
.review-form { margin-top: 1.5rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 0.8rem; align-items: flex-start; }
.review-form textarea { width: 100%; }
.star-rating { display: flex; gap: 0.3rem; font-size: 2rem; line-height: 1; }
.star-rating span { color: rgba(255, 237, 213, 0.16); cursor: pointer; transition: color 0.15s, transform 0.15s; }
.star-rating span:hover { transform: scale(1.12); }
.star-rating span:hover, .star-rating span.active { color: #ffb020; }

/* lightbox */
.lb-overlay { display: none; position: fixed; inset: 0; z-index: 9999; align-items: center; justify-content: center; background: rgba(6, 5, 4, 0.95); cursor: zoom-out; }
.lb-overlay.open { display: flex; }
.lb-overlay img { max-width: 92vw; max-height: 86vh; border-radius: 12px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7); }
.lb-close, .lb-nav { position: absolute; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--text); background: rgba(255, 255, 255, 0.1); transition: background 0.2s; cursor: pointer; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, 0.2); }
.lb-close { top: 1.1rem; right: 1.25rem; width: 44px; height: 44px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lb-prev { left: 1.1rem; }
.lb-next { right: 1.1rem; }
.lb-counter { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); padding: 3px 14px; border-radius: 999px; font-size: 0.85rem; color: var(--text-2); background: rgba(0, 0, 0, 0.55); pointer-events: none; }

/* cart */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.5rem; align-items: start; }
.cart-list { display: flex; flex-direction: column; gap: 0.7rem; }
.cart-item {
    display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    transition: opacity 0.22s, transform 0.22s, border-color 0.2s;
}
.cart-item:hover { border-color: var(--border-strong); }
.cart-item.is-free, .cart-item.is-trigger { border-color: var(--brand-line); background: linear-gradient(90deg, var(--brand-soft), transparent 70%), var(--surface); }
.cart-item.leaving { opacity: 0; transform: translateX(16px); }
.cart-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; }
.cart-item-name { font-weight: 600; }
.cart-item-name:hover { color: var(--brand-2); }
.cart-item-price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-item-price .price-now { color: var(--text); }
.summary { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); }
.summary h2 { font-size: 1.05rem; }
.summary .notice { margin: 0; }
.summary-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--border); }
.summary-total strong { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; color: var(--brand-2); }
.summary .alert { margin: 0; }

/* advertise */
.dropzone { padding: 2rem 1rem; text-align: center; color: var(--text-2); border: 2px dashed var(--border-strong); border-radius: 14px; cursor: pointer; background: var(--bg-raised); transition: border-color 0.2s, background 0.2s; }
.dropzone:hover, .dropzone:focus-visible { border-color: var(--brand); background: var(--brand-soft); }
.dropzone svg { color: var(--brand-2); margin: 0 auto 0.6rem; }
.dropzone #ad-preview-img { max-width: 100%; max-height: 240px; margin: 0 auto; border-radius: 10px; object-fit: contain; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 0.6rem; }
.tier { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; padding: 0.85rem 0.5rem; cursor: pointer; background: var(--bg-raised); border: 2px solid var(--border); border-radius: var(--r-md); transition: all 0.2s; }
.tier input { display: none; }
.tier:hover { border-color: var(--border-strong); }
.tier.selected { border-color: var(--brand); background: var(--brand-soft); }
.tier-label { font-weight: 600; font-size: 0.9rem; }
.tier-price { color: var(--brand-2); font-weight: 750; font-size: 1.1rem; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.info-card { padding: 1.25rem; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.info-card svg { color: var(--brand-2); margin: 0 auto 0.6rem; }
.info-card strong { display: block; margin-bottom: 0.3rem; }

/* legal */
.legal-content { padding: 2.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); line-height: 1.85; color: var(--text-2); }

/* account */
.acc-hero { padding: 3rem 0 2rem; border-bottom: 1px solid var(--border); background: radial-gradient(600px 220px at 15% 0%, rgba(255, 122, 26, 0.12), transparent 70%); }
.acc-hero-inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.acc-avatar { width: 88px; height: 88px; border-radius: 50%; border: 3px solid var(--brand); object-fit: cover; box-shadow: 0 0 0 6px var(--brand-soft); }
.acc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 0.3rem; color: var(--text-3); font-size: 0.85rem; }
.acc-meta code { padding: 0.1rem 0.5rem; border-radius: 6px; background: var(--surface); color: var(--text-2); font-size: 0.8rem; }
.acc-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.7rem; }
.acc-body { padding-top: 2.5rem; padding-bottom: 3rem; }
.acc-section { margin-bottom: 2.5rem; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 1rem; }
.stat-card { padding: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); transition: border-color 0.2s, transform 0.2s; }
.stat-card:hover { border-color: var(--brand-line); transform: translateY(-2px); }
.stat-card-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand-2); }
.stat-card-value { margin: 0.8rem 0 0.1rem; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; }
.stat-card-label { font-weight: 600; font-size: 0.9rem; }
.stat-card-sub { font-size: 0.78rem; color: var(--text-3); }
.activity-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.activity-row:last-child { border-bottom: 0; }
.activity-icon { width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0; border-radius: 10px; background: var(--surface-2); color: var(--text-2); }
.activity-title { font-weight: 600; }
.link-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.8rem; }
.link-card { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; color: var(--text-3); transition: border-color 0.2s, transform 0.2s; }
.link-card:hover { border-color: var(--brand-line); transform: translateY(-2px); color: var(--brand-2); }
.link-card .activity-title { color: var(--text); }
.panel .chip-row { margin-top: 0.8rem; }
.danger-note { margin-top: 0.8rem; padding: 0.65rem 0.9rem; max-width: 520px; border-radius: 10px; background: var(--danger-12); border: 1px solid var(--danger-30); color: #ff8a8a; font-size: 0.84rem; line-height: 1.5; }

.acc-modal-overlay { display: none; position: fixed; inset: 0; z-index: 9999; align-items: center; justify-content: center; padding: 1.5rem; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(4px); }
.acc-modal-overlay.open { display: flex; }
.acc-modal { width: 100%; max-width: 480px; padding: 1.85rem; background: var(--surface); border: 1px solid var(--danger-30); border-radius: var(--r-xl); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); animation: modal-in 0.2s ease both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.acc-modal-title { margin-bottom: 0.6rem; color: var(--danger); font-size: 1.3rem; }
.acc-modal-text { margin-bottom: 1rem; color: var(--text-2); font-size: 0.92rem; }
.acc-modal-list { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1rem; }
.acc-modal-list li { position: relative; padding-left: 1.5rem; font-size: 0.88rem; }
.acc-modal-list li::before { content: '✕'; position: absolute; left: 0; color: var(--danger); font-weight: 700; }
.acc-modal-irreversible { margin-bottom: 1.1rem; padding: 0.6rem 0.9rem; border-radius: 10px; background: var(--danger-12); border: 1px solid var(--danger-30); color: #ff8a8a; font-size: 0.82rem; font-weight: 600; text-align: center; }
.acc-modal-label { display: block; margin-bottom: 0.45rem; color: var(--text-2); font-size: 0.82rem; }
.acc-modal-input { margin-bottom: 1.25rem; }
.acc-modal-input:focus { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(255, 93, 93, 0.18) !important; }
.acc-modal-actions { display: flex; gap: 0.75rem; }
.acc-modal-actions .btn { flex: 1; }

/* 8 ── Admin panel & product editor ─────────────────────────────────────── */
.section-title { font-size: 2rem; font-weight: 800; margin: 2.5rem 0 0.5rem; }
.admin-panel { margin-top: 1.5rem; padding: 2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); }
.admin-header { margin-bottom: 1.75rem; }
.admin-header h2 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.admin-header p { color: var(--text-2); font-size: 0.92rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group > label { display: block; margin-bottom: 0.45rem; font-weight: 600; font-size: 0.92rem; }
.form-group label input[type='checkbox'] { margin-right: 0.5rem; }
.admin-product-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; padding: 1.1rem 1.25rem; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 14px; }
.admin-product-info { flex: 1; min-width: 0; }
.admin-product-name { font-size: 1.05rem; font-weight: 650; margin-bottom: 0.25rem; }
.admin-product-meta { color: var(--text-2); font-size: 0.85rem; }
.admin-product-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.admin-panel table { width: 100%; border-collapse: collapse; }
.admin-panel th { padding: 0.7rem 0.75rem; text-align: left; font-size: 0.72rem; font-weight: 650; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3) !important; border-bottom: 1px solid var(--border-strong); }
.admin-panel td { padding: 0.75rem; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 0.9rem; }
.admin-panel tr:last-child td { border-bottom: 0; }
.modal { display: none; position: fixed; inset: 0; z-index: 10000; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(4px); }
.modal.active { display: flex; }
.modal-content { width: 90%; max-width: 500px; padding: 1.75rem; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-xl); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); }
.modal-content h3 { margin-bottom: 1.25rem; }
.modal-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.legal-editor { margin-top: 1.5rem; }
.legal-tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.legal-tab { padding: 0.55rem 1.1rem; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 10px; color: var(--text-2); font-weight: 600; transition: all 0.2s; }
.legal-tab.active { background: var(--brand-soft); border-color: var(--brand-line); color: #ffb37a; }
.legal-editor textarea { min-height: 260px; margin-bottom: 1rem; font-size: 0.92rem; }
.ep-thumb { position: relative; flex-shrink: 0; width: 140px; height: 105px; overflow: hidden; border-radius: 10px; border: 2px solid var(--border); transition: border-color 0.2s; }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-thumb:hover { border-color: var(--brand); }
.ep-thumb.deleting { opacity: 0.4; pointer-events: none; }
.ep-delete-btn { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 93, 93, 0.92); color: #fff; font-size: 0.72rem; }
.ep-delete-btn:hover { background: #e03f3f; }
.ep-thumb-order { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 0; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 0.68rem; font-weight: 600; text-align: center; }

/* 9 ── Footer & sponsors ────────────────────────────────────────────────── */
.footer { margin-top: 5rem; background: var(--bg-raised); border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-top: 2.5rem; padding-bottom: 1.75rem; }
.footer-brand { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-brand img { height: 30px; width: auto; align-self: flex-start; }
.footer-brand p { color: var(--text-3); font-size: 0.85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.footer-links a { color: var(--text-2); font-size: 0.9rem; font-weight: 500; }
.footer-links a:hover { color: var(--brand-2); }
.footer-bottom { padding-top: 1.25rem; padding-bottom: 2rem; border-top: 1px solid var(--border); color: var(--text-3); font-size: 0.8rem; }

#ad-sidebar { position: fixed; top: 50%; right: 14px; z-index: 50; width: 138px; transform: translateY(-50%); display: none; flex-direction: column; gap: 0.7rem; }
.ad-sidebar-card { display: block; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: transform 0.2s, border-color 0.2s; }
.ad-sidebar-card:hover { transform: translateY(-3px); border-color: var(--brand-line); }
.ad-sidebar-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.ad-sidebar-label { display: block; padding: 4px 8px 6px; text-align: center; font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }

/* motion */
.grid-products > *, .stat-cards > *, .link-cards > * { animation: rise 0.5s ease both; }
.grid-products > :nth-child(2) { animation-delay: 0.04s; }
.grid-products > :nth-child(3) { animation-delay: 0.08s; }
.grid-products > :nth-child(4) { animation-delay: 0.12s; }
.grid-products > :nth-child(n + 5) { animation-delay: 0.16s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* 10 ── Responsive ──────────────────────────────────────────────────────── */
@media (min-width: 1580px) { #ad-sidebar { display: flex; } }

@media (max-width: 1100px) {
    .user-name { display: none; }
    .user-chip { padding-right: 0.22rem; }
}

@media (max-width: 900px) {
    .nav-toggle { display: inline-grid; }
    .nav-links {
        display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0.15rem;
        padding: 0.75rem 1rem 1rem; background: var(--bg-raised); border-bottom: 1px solid var(--border); box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.8);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 0.75rem 0.9rem; font-size: 1rem; }
    .pd-grid, .cart-layout { grid-template-columns: 1fr; }
    .pd-panel, .summary { position: static; }
    .hero { padding-top: 3.5rem; }
}

@media (max-width: 640px) {
    .container { padding-inline: 1rem; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n + 3) { border-top: 1px solid var(--border); }
    .btn-login span { display: none; }
    .btn-login { padding: 0.5rem 0.65rem; }
    .grid-products { grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .panel, .legal-content { padding: 1.25rem; }
    .admin-panel { padding: 1.25rem; }
    .cart-item { flex-wrap: wrap; }
    .page-head { padding-top: 2rem; }
    .acc-hero-inner { flex-direction: column; text-align: center; }
    .acc-meta, .acc-badges { justify-content: center; }
    .split > .btn { width: 100%; }
}
