/* =================================================================
   FiveM Shop - Design system
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg: #07080f;
    --bg-soft: #0b0d18;
    --surface: rgba(20, 23, 40, 0.72);
    --surface-solid: #12162a;
    --surface-2: #171b31;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);

    --text: #eef1fb;
    --muted: #9aa3c4;
    --dim: #6b7396;

    --brand: #7c5cff;
    --brand-2: #22d3ee;
    --brand-3: #f472b6;
    --accent-grad: linear-gradient(135deg, #4f7cff 0%, #22d3ee 45%, #c7d9ff 100%);
    --accent-grad-soft: linear-gradient(135deg, rgba(124, 92, 255, .18), rgba(34, 211, 238, .12));

    --success: #34d399;
    --warning: #fbbf24;
    --danger: #fb7185;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --radius-xl: 30px;

    --shadow-sm: 0 4px 16px rgba(0, 0, 0, .3);
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, .75);
    --shadow-glow: 0 0 0 1px rgba(124, 92, 255, .3), 0 20px 60px -20px rgba(124, 92, 255, .55);

    --container: 1240px;
    --nav-h: 72px;
}

/* ------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Aurore de fond */
body::before {
    content: '';
    position: fixed;
    inset: -30% -10% auto -10%;
    height: 90vh;
    background:
        radial-gradient(45% 55% at 18% 20%, rgba(124, 92, 255, .30), transparent 70%),
        radial-gradient(40% 50% at 82% 10%, rgba(34, 211, 238, .20), transparent 70%),
        radial-gradient(35% 45% at 55% 45%, rgba(244, 114, 182, .12), transparent 70%);
    filter: blur(30px);
    z-index: -2;
    pointer-events: none;
    animation: drift 24s ease-in-out infinite alternate;
}
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
    z-index: -1;
    pointer-events: none;
}
@keyframes drift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-3%, 4%, 0) scale(1.08); }
}

h1, h2, h3, h4, h5 {
    font-family: 'Sora', 'Inter', sans-serif;
    line-height: 1.15;
    letter-spacing: -.02em;
    font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

a { color: inherit; text-decoration: none; transition: color .2s ease; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
code {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    background: rgba(124, 92, 255, .14);
    border: 1px solid var(--line);
    padding: .1em .4em;
    border-radius: 6px;
    font-size: .88em;
    color: #c9c2ff;
}

::selection { background: rgba(124, 92, 255, .4); color: #fff; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #0a0c16; }
::-webkit-scrollbar-thumb { background: #262c47; border-radius: 99px; border: 3px solid #0a0c16; }
::-webkit-scrollbar-thumb:hover { background: #39406a; }

/* ---------------------------------------------------------- utilities */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.container-sm { max-width: 760px; }
.stack > * + * { margin-top: 14px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: .84rem; }
.tiny { font-size: .76rem; }
.center { text-align: center; }
.right { text-align: right; }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.hide { display: none !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 26px; }
.mt-4 { margin-top: 40px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 26px; }
.gradient-text {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.section { padding: 72px 0; }
.section-sm { padding: 44px 0; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head p { color: var(--muted); margin-top: 6px; max-width: 60ch; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--brand-2);
    margin-bottom: 12px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--accent-grad); border-radius: 2px; }

/* ------------------------------------------------------------ buttons */
.btn {
    --btn-bg: var(--surface-2);
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 11px 20px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: var(--btn-bg);
    color: var(--text);
    font-weight: 600;
    font-size: .92rem;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .16s ease, box-shadow .25s ease, background .25s ease, border-color .2s ease, opacity .2s;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.3); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn svg { width: 17px; height: 17px; }

.btn-primary {
    background: var(--accent-grad);
    border: none;
    color: #080a14;
    font-weight: 700;
    box-shadow: 0 10px 30px -12px rgba(124, 92, 255, .9);
}
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(124, 92, 255, 1); filter: brightness(1.06); }

.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, .05); }

.btn-soft { background: rgba(124, 92, 255, .12); border-color: rgba(124, 92, 255, .3); color: #cfc6ff; }
.btn-soft:hover { background: rgba(124, 92, 255, .2); }

.btn-danger { background: rgba(251, 113, 133, .12); border-color: rgba(251, 113, 133, .32); color: #ffb3be; }
.btn-danger:hover { background: rgba(251, 113, 133, .22); }

.btn-success { background: rgba(52, 211, 153, .13); border-color: rgba(52, 211, 153, .32); color: #8ef0cd; }

.btn-sm { padding: 7px 13px; font-size: .82rem; border-radius: 10px; }
.btn-lg { padding: 15px 30px; font-size: 1rem; border-radius: 14px; }
.btn-block { display: flex; width: 100%; }
.btn-icon { padding: 9px; border-radius: 10px; }

/* ------------------------------------------------------------- badges */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: .72rem; font-weight: 700; letter-spacing: .02em;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, .05);
    color: var(--muted);
    white-space: nowrap;
}
.badge-brand { background: rgba(124, 92, 255, .16); border-color: rgba(124, 92, 255, .36); color: #c8bcff; }
.badge-cyan { background: rgba(34, 211, 238, .13); border-color: rgba(34, 211, 238, .34); color: #9beaf7; }
.badge-success { background: rgba(52, 211, 153, .13); border-color: rgba(52, 211, 153, .32); color: #8ef0cd; }
.badge-warning { background: rgba(251, 191, 36, .13); border-color: rgba(251, 191, 36, .32); color: #ffdd94; }
.badge-danger { background: rgba(251, 113, 133, .13); border-color: rgba(251, 113, 133, .32); color: #ffb3be; }
.badge-sale { background: linear-gradient(135deg, #f472b6, #fb7185); border: none; color: #14060d; }
.badge-free { background: linear-gradient(135deg, #34d399, #22d3ee); border: none; color: #04140f; }

/* ------------------------------------------------------------ surfaces */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.panel { padding: 24px; }
.panel-lg { padding: 32px; }

/* -------------------------------------------------------------- navbar */
.nav {
    position: sticky; top: 0; z-index: 60;
    height: var(--nav-h);
    display: flex; align-items: center;
    background: rgba(7, 8, 15, .72);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.06rem; letter-spacing: -.02em; }
.brand-mark {
    width: 36px; height: 36px; border-radius: 11px;
    background: var(--accent-grad);
    display: grid; place-items: center;
    color: #06070f; font-size: 1rem; font-weight: 800;
    box-shadow: 0 8px 22px -8px rgba(124, 92, 255, .9);
}
.brand-logo {
    height: 40px; width: auto; flex: none;
    filter: drop-shadow(0 6px 16px rgba(60, 120, 255, .45));
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), filter .35s ease;
}
.brand:hover .brand-logo {
    transform: translateY(-2px) scale(1.05);
    filter: drop-shadow(0 10px 22px rgba(60, 160, 255, .7));
}
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 10px; }
.nav-links a {
    padding: 8px 14px; border-radius: 10px;
    color: var(--muted); font-weight: 500; font-size: .92rem;
    transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-links a.active { color: var(--text); background: rgba(124, 92, 255, .16); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.cart-btn { position: relative; }
.cart-count {
    position: absolute; top: -6px; right: -6px;
    min-width: 19px; height: 19px; padding: 0 5px;
    background: var(--accent-grad); color: #06070f;
    border-radius: 99px; font-size: .68rem; font-weight: 800;
    display: grid; place-items: center;
}

.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px; cursor: pointer; }

/* dropdown compte */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; right: 0; top: calc(100% + 10px);
    min-width: 216px; padding: 8px;
    background: #101426; border: 1px solid var(--line-strong);
    border-radius: 14px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: all .18s ease; z-index: 70;
}
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a, .dropdown-menu button {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 9px 12px; border-radius: 10px;
    background: none; border: none; text-align: left; cursor: pointer;
    color: var(--muted); font-size: .9rem;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.dropdown-sep { height: 1px; background: var(--line); margin: 6px 4px; }

.avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--accent-grad); color: #06070f;
    display: grid; place-items: center; font-weight: 800; font-size: .82rem;
    border: 1px solid rgba(255,255,255,.2); flex: none;
}
.avatar-lg { width: 56px; height: 56px; font-size: 1.2rem; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: 86px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero p.lead { font-size: 1.08rem; color: var(--muted); max-width: 54ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-pill {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 15px 7px 8px; border-radius: 99px;
    background: rgba(255, 255, 255, .05); border: 1px solid var(--line-strong);
    font-size: .82rem; color: var(--muted); margin-bottom: 24px;
}
.hero-pill b { color: var(--text); }
.hero-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(52,211,153,.18); }

.hero-visual { position: relative; }
.hero-visual .glow {
    position: absolute; inset: -14%;
    background: radial-gradient(circle at 60% 40%, rgba(124,92,255,.35), transparent 60%);
    filter: blur(38px); z-index: 0;
}
.hero-card {
    position: relative; z-index: 1;
    background: linear-gradient(160deg, rgba(23,27,49,.92), rgba(12,15,28,.92));
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xl);
    padding: 22px;
    box-shadow: var(--shadow);
    animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
.hero-card-top { display: flex; gap: 8px; margin-bottom: 16px; }
.hero-card-top span { width: 11px; height: 11px; border-radius: 50%; background: #2a3050; }
.hero-card-top span:first-child { background: #fb7185; }
.hero-card-top span:nth-child(2) { background: #fbbf24; }
.hero-card-top span:nth-child(3) { background: #34d399; }
.hero-line { height: 11px; border-radius: 99px; background: rgba(255,255,255,.07); margin-bottom: 11px; }
.hero-line.w-70 { width: 70%; }
.hero-line.w-45 { width: 45%; }
.hero-line.grad { background: var(--accent-grad); opacity: .85; }

.stats-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
    margin-top: 56px;
}
.stat { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font-family: 'Sora', sans-serif; font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; }
.stat span { color: var(--dim); font-size: .82rem; }

/* ------------------------------------------------------------ resource */
.grid-resources {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 22px;
}
.res-card {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s;
    backdrop-filter: blur(12px);
}
.res-card:hover { transform: translateY(-6px); border-color: rgba(124, 92, 255, .45); box-shadow: var(--shadow-glow); }
.res-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0e1120; }
.res-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.res-card:hover .res-thumb img { transform: scale(1.07); }
.res-thumb::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(7,8,15,.9) 2%, transparent 45%);
}
.res-flags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; flex-wrap: wrap; }
.res-fav { position: absolute; top: 12px; right: 12px; z-index: 2; }
.res-body { padding: 17px 18px 19px; display: flex; flex-direction: column; flex: 1; gap: 9px; }
.res-cat { font-size: .74rem; color: var(--brand-2); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.res-title { font-family: 'Sora', sans-serif; font-size: 1.03rem; font-weight: 700; line-height: 1.3; }
.res-card:hover .res-title { color: #fff; }
.res-tagline { color: var(--muted); font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.res-meta { display: flex; align-items: center; gap: 12px; font-size: .78rem; color: var(--dim); }
.res-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line); }
.price { display: flex; align-items: baseline; gap: 8px; }
.price b { font-family: 'Sora', sans-serif; font-size: 1.16rem; font-weight: 800; letter-spacing: -.02em; }
.price s { color: var(--dim); font-size: .84rem; }

/* étoiles */
.stars { display: inline-flex; gap: 2px; align-items: center; }
.star { width: 14px; height: 14px; fill: #2c3252; flex: none; }
.star.is-full { fill: #fbbf24; }
.star.is-half { fill: url(#halfGrad); fill: #fbbf24; opacity: .55; }
.stars-lg .star { width: 19px; height: 19px; }

/* --------------------------------------------------------- categories */
.cat-scroll { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-pill {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 9px 16px; border-radius: 99px;
    border: 1px solid var(--line); background: var(--surface);
    color: var(--muted); font-size: .89rem; font-weight: 500;
    transition: all .2s;
}
.cat-pill:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-2px); }
.cat-pill.active { background: var(--accent-grad); color: #080a14; border-color: transparent; font-weight: 700; }
.cat-pill span.count { font-size: .74rem; opacity: .7; }

.cat-card {
    display: flex; align-items: center; gap: 14px;
    padding: 18px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line);
    transition: all .25s;
}
.cat-card:hover { transform: translateY(-4px); border-color: rgba(124,92,255,.4); }
.cat-card .icon {
    width: 46px; height: 46px; border-radius: 13px; flex: none;
    display: grid; place-items: center; font-size: 1.3rem;
    background: var(--accent-grad-soft); border: 1px solid var(--line);
}
.grid-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }

/* ------------------------------------------------------------ filtres */
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.field .hint { font-size: .76rem; color: var(--dim); }
.input, .select, .textarea {
    width: 100%;
    padding: 11px 14px;
    background: rgba(10, 12, 22, .8);
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    color: var(--text);
    transition: border-color .2s, box-shadow .2s, background .2s;
    font-size: .93rem;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: rgba(124, 92, 255, .7);
    box-shadow: 0 0 0 4px rgba(124, 92, 255, .16);
    background: rgba(10, 12, 22, 1);
}
.input::placeholder, .textarea::placeholder { color: #5b6386; }
.textarea { resize: vertical; min-height: 120px; line-height: 1.6; font-family: inherit; }
.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3c4' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 17px;
    padding-right: 38px;
    cursor: pointer;
}
.search-box { position: relative; flex: 1; min-width: 220px; }
.search-box .input { padding-left: 42px; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; stroke: var(--dim); }

.checkbox { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: .9rem; color: var(--muted); }
.checkbox input { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; }

.file-drop {
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius);
    padding: 26px 20px;
    text-align: center;
    background: rgba(10, 12, 22, .5);
    cursor: pointer;
    transition: all .2s;
}
.file-drop:hover, .file-drop.dragover { border-color: rgba(124, 92, 255, .7); background: rgba(124, 92, 255, .07); }
.file-drop input[type=file] { display: none; }
.file-drop .icon { font-size: 1.6rem; margin-bottom: 8px; }
.file-name { color: var(--brand-2); font-weight: 600; font-size: .88rem; margin-top: 8px; word-break: break-all; }

/* ------------------------------------------------------- fiche produit */
.product { display: grid; grid-template-columns: 1fr 372px; gap: 34px; align-items: start; }
.gallery-main {
    position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg);
    overflow: hidden; border: 1px solid var(--line); background: #0d1020;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button {
    flex: none; width: 96px; aspect-ratio: 16/10; padding: 0; overflow: hidden;
    border-radius: 10px; border: 1.5px solid var(--line); cursor: pointer; background: none;
    transition: all .2s;
}
.gallery-thumbs button.active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124,92,255,.2); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.buy-box { position: sticky; top: calc(var(--nav-h) + 20px); }
.buy-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.buy-price b { font-family: 'Sora', sans-serif; font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; }
.buy-price s { color: var(--dim); font-size: 1.05rem; }
.spec-list { display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.spec-list div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 15px; background: var(--surface-solid); font-size: .87rem; }
.spec-list dt, .spec-list .k { color: var(--dim); }
.spec-list .v { font-weight: 600; text-align: right; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tab {
    padding: 12px 18px; background: none; border: none; cursor: pointer;
    color: var(--muted); font-weight: 600; font-size: .93rem;
    border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
    transition: all .2s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--brand); }
.tab-panel { display: none; animation: fadeUp .3s ease; }
.tab-panel.active { display: block; }

.prose { color: #c9cfe6; line-height: 1.75; }
.prose h2, .prose h3, .prose h4 { color: var(--text); margin: 26px 0 12px; }
.prose h2 { font-size: 1.4rem; } .prose h3 { font-size: 1.16rem; } .prose h4 { font-size: 1.02rem; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 16px; padding-left: 4px; }
.prose li { position: relative; padding-left: 26px; margin-bottom: 9px; }
.prose li::before {
    content: ''; position: absolute; left: 4px; top: .62em;
    width: 7px; height: 7px; border-radius: 2px; background: var(--accent-grad);
}
.prose a { color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: #fff; }

/* -------------------------------------------------------------- avis */
.review { display: flex; gap: 15px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: none; }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.review-head .name { font-weight: 700; }
.review-reply {
    margin-top: 12px; padding: 13px 16px; border-radius: 12px;
    background: rgba(124, 92, 255, .09); border-left: 2px solid var(--brand);
}
.rating-summary { display: grid; grid-template-columns: 190px 1fr; gap: 30px; align-items: center; }
.rating-big { text-align: center; }
.rating-big b { font-family: 'Sora', sans-serif; font-size: 3.4rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.bar-row { display: flex; align-items: center; gap: 12px; font-size: .82rem; color: var(--muted); }
.bar { flex: 1; height: 7px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #fbbf24, #f59e0b); border-radius: 99px; }

.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { display: none; }
.star-input label { cursor: pointer; font-size: 1.7rem; color: #2c3252; transition: color .15s, transform .15s; line-height: 1; }
.star-input label:hover, .star-input label:hover ~ label,
.star-input input:checked ~ label { color: #fbbf24; }
.star-input label:hover { transform: scale(1.15); }

/* ------------------------------------------------------------- alerts */
.alert {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 17px; border-radius: 14px;
    border: 1px solid var(--line-strong); background: var(--surface);
    font-size: .91rem;
}
.alert-success { background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .3); color: #b6f5de; }
.alert-error, .alert-danger { background: rgba(251, 113, 133, .1); border-color: rgba(251, 113, 133, .3); color: #ffc9d1; }
.alert-warning { background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .3); color: #ffe6ad; }
.alert-info { background: rgba(34, 211, 238, .09); border-color: rgba(34, 211, 238, .28); color: #b3edf8; }

.toast-wrap { position: fixed; top: 84px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 40px)); }
.toast { animation: slideIn .35s cubic-bezier(.2,.9,.3,1.3); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
@keyframes slideIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; min-width: 640px; }
table.data th {
    text-align: left; padding: 13px 16px; font-size: .74rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em; color: var(--dim);
    background: rgba(255, 255, 255, .03); border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: background .15s; }
table.data tbody tr:hover { background: rgba(255, 255, 255, .028); }
.cell-title { display: flex; align-items: center; gap: 12px; }
.cell-thumb { width: 52px; height: 34px; border-radius: 8px; object-fit: cover; flex: none; border: 1px solid var(--line); }

/* --------------------------------------------------------- pagination */
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.pagination a, .pagination span {
    min-width: 40px; height: 40px; padding: 0 12px;
    display: grid; place-items: center; border-radius: 11px;
    border: 1px solid var(--line); background: var(--surface);
    color: var(--muted); font-weight: 600; font-size: .88rem; transition: all .2s;
}
.pagination a:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-2px); }
.pagination .current { background: var(--accent-grad); color: #080a14; border-color: transparent; }
.pagination .disabled { opacity: .35; }

/* -------------------------------------------------------------- admin */
.admin-shell { display: grid; grid-template-columns: 258px 1fr; min-height: 100vh; }
.admin-side {
    background: rgba(10, 12, 22, .85);
    border-right: 1px solid var(--line);
    padding: 22px 16px;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    backdrop-filter: blur(14px);
}
.admin-side .brand { margin-bottom: 26px; padding: 0 8px; }
.admin-nav { display: flex; flex-direction: column; gap: 3px; }
.admin-nav a {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 13px; border-radius: 11px;
    color: var(--muted); font-size: .91rem; font-weight: 500;
    transition: all .18s;
}
.admin-nav a:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.admin-nav a.active { background: var(--accent-grad-soft); color: #fff; border: 1px solid rgba(124, 92, 255, .3); }
.admin-nav a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.admin-nav .group-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); padding: 18px 13px 7px; font-weight: 700; }
.admin-main { padding: 30px 34px 70px; min-width: 0; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 28px; flex-wrap: wrap; }
.admin-head h1 { font-size: 1.65rem; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.kpi {
    padding: 20px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line);
    position: relative; overflow: hidden;
}
.kpi::after {
    content: ''; position: absolute; right: -30px; top: -30px;
    width: 110px; height: 110px; border-radius: 50%;
    background: var(--accent-grad); opacity: .09;
}
.kpi .label { color: var(--dim); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.kpi .value { font-family: 'Sora', sans-serif; font-size: 1.95rem; font-weight: 800; letter-spacing: -.03em; margin-top: 6px; }
.kpi .delta { font-size: .8rem; color: var(--success); }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }

.img-preview { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.img-preview .item { position: relative; width: 108px; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-preview .del {
    position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
    border-radius: 7px; border: none; cursor: pointer;
    background: rgba(7, 8, 15, .85); color: #ffb3be; font-size: .8rem;
    display: grid; place-items: center;
}

/* --------------------------------------------------------------- misc */
.empty { text-align: center; padding: 62px 22px; color: var(--muted); }
.empty .icon { font-size: 2.6rem; margin-bottom: 14px; opacity: .55; }

.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .84rem; color: var(--dim); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--brand-2); }

.divider { height: 1px; background: var(--line); margin: 26px 0; }

.auth-wrap { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; padding: 46px 20px; }
.auth-card { width: 100%; max-width: 440px; }

.footer { border-top: 1px solid var(--line); padding: 54px 0 30px; margin-top: 70px; background: rgba(9, 10, 20, .6); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-bottom: 14px; }
.footer li { margin-bottom: 9px; }
.footer a { color: var(--muted); font-size: .9rem; }
.footer a:hover { color: var(--brand-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: .84rem; }

.marquee-strip {
    display: flex; gap: 46px; align-items: center;
    padding: 18px 0; border-block: 1px solid var(--line);
    overflow: hidden; color: var(--dim); font-size: .84rem;
    text-transform: uppercase; letter-spacing: .14em; font-weight: 600;
}
.marquee-track { display: flex; gap: 46px; animation: marquee 26s linear infinite; white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.copy-field { display: flex; gap: 8px; }
.copy-field .input { font-family: ui-monospace, monospace; font-size: .82rem; }

/* --------------------------------------------------------- responsive */
@media (max-width: 1080px) {
    .product { grid-template-columns: 1fr; }
    .buy-box { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-side { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--line); }
    .admin-nav { flex-direction: row; flex-wrap: wrap; }
    .admin-nav .group-label { display: none; }
    .admin-main { padding: 22px 18px 60px; }
}
@media (max-width: 760px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column; align-items: stretch;
        position: absolute; top: var(--nav-h); left: 0; right: 0;
        background: #0a0c18; border-bottom: 1px solid var(--line);
        padding: 12px; gap: 4px; margin: 0;
    }
    .nav-toggle { display: inline-flex; }
    .form-grid { grid-template-columns: 1fr; }
    .rating-summary { grid-template-columns: 1fr; gap: 20px; }
    .section { padding: 50px 0; }
    .hero { padding: 54px 0 40px; }
    .panel-lg { padding: 22px; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .stats-row { grid-template-columns: 1fr 1fr; gap: 12px; }
    .grid-resources { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

@media print {
    .nav, .footer, .btn { display: none; }
    body { background: #fff; color: #000; }
}
