/* Zones store theme. Colours follow the in-game menus (MenuTextures) and the ZONES gradient. */
:root {
    --bg: #0b0c12;
    --panel: #1e2028;
    --panel-2: #191b22;
    --card: #171920;
    --plate: #262934;
    --line: rgba(255, 255, 255, 0.07);
    --line-2: rgba(255, 255, 255, 0.12);
    --text: #e8eaf2;
    --muted: #969cb0;
    --dim: #6b7186;
    --a: #c084fc;
    --b: #60a5fa;
    --violet: #8b5cf6;
    --gold: #ffd166;
    --ok: #4ade80;
    --bad: #f87171;
    --grad: linear-gradient(90deg, var(--a), var(--b));
    --radius: 14px;
    --wrap: 1180px;
    --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
    --pixel: "Silkscreen", "Pixelify Sans", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[x-cloak] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.55 var(--font);
    -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0; }
.muted { color: var(--muted); }

/* Fixed background: two brand glows over a faint pixel grid. */
.bg-fx {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(900px 520px at 12% -8%, rgba(139, 92, 246, 0.20), transparent 62%),
        radial-gradient(800px 480px at 95% 4%, rgba(96, 165, 250, 0.13), transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px) 0 0 / 16px 16px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px) 0 0 / 16px 16px,
        var(--bg);
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.main { flex: 1; padding-top: 28px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 28px; }

.grad, .grad-gold {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.grad-gold { background-image: linear-gradient(90deg, #ffe08a, #ffb347); }

.panel {
    position: relative;
    background: linear-gradient(180deg, #20222b, var(--panel-2));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 40px rgba(0, 0, 0, 0.35);
}

/* Header plate: the purple-edged tab from the in-game menus. */
.plate {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: max-content;
    padding: 5px 11px 4px;
    font: 400 12px/1 var(--pixel);
    letter-spacing: 0.08em;
    color: #ede4ff;
    background: #181624;
    border: 2px solid var(--violet);
    border-radius: 6px;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.10), 0 4px 14px rgba(139, 92, 246, 0.25);
}
.plate-sm { padding: 3px 7px 2px; font-size: 10px; border-width: 1.5px; }

/* Minecraft-style bevelled button, in the brand gradient. */
.mc-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 15.5rem;
    min-height: 4.6rem;
    padding: 0.7rem 1.1rem 0.5rem;
    color: #fff;
    text-align: center;
    background: linear-gradient(90deg, #a35cf3, #6f6ff2 55%, #4f8ff4);
    border: 0;
    border-top: 4px solid #dcc6ff;
    border-left: 4px solid #5a34c4;
    border-right: 4px solid #4a7fe0;
    border-bottom: 5px solid #2f2588;
    border-radius: 0;
    text-shadow: 0 2px 0 rgba(28, 10, 80, 0.45);
    transition: filter 0.15s, transform 0.08s;
}
.mc-btn:hover { filter: brightness(1.1) saturate(1.05); }
.mc-btn:active { transform: translateY(2px); border-bottom-width: 3px; margin-bottom: 2px; }
.mc-btn:disabled, .mc-btn-off { filter: grayscale(0.85) brightness(0.7); cursor: not-allowed; }
.mc-btn-title { display: inline-flex; align-items: center; gap: 8px; font-size: 1.22rem; font-weight: 700; line-height: 1.2; }
.mc-btn small { font-size: 0.8rem; font-weight: 500; opacity: 0.92; white-space: nowrap; }
.mc-btn small strong { font-weight: 800; }
.mc-btn-alt {
    background: linear-gradient(180deg, #343849, #2a2d3b);
    border-top-color: #5b6178;
    border-left-color: #1f212b;
    border-right-color: #3a3e50;
    border-bottom-color: #14151c;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}
.mc-btn-wide { width: 100%; min-width: 0; min-height: 3.3rem; padding: 0.5rem 1rem 0.4rem; }
.mc-btn-wide .mc-btn-title { font-size: 1.05rem; }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    transition: color 0.15s, background 0.15s;
}
.icon-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.09); }

/* ---------- Top bar ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(12, 13, 19, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(192, 132, 252, 0.35), 0 6px 18px rgba(139, 92, 246, 0.35); }
.brand-word { display: block; height: 24px; width: auto; aspect-ratio: 40 / 8; flex: none; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
    position: relative;
    padding: 8px 14px;
    border-radius: 9px;
    font-weight: 600;
    color: var(--muted);
    transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.nav-links a.on { color: #fff; }
.nav-links a.on::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -17px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--grad);
    box-shadow: 0 0 12px rgba(192, 132, 252, 0.7);
}
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.045);
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}
.nav-btn:hover { background: rgba(255, 255, 255, 0.09); border-color: var(--line-2); }
.nav-btn .head { width: 22px; height: 22px; border-radius: 4px; image-rendering: pixelated; }
.cart-count {
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: var(--grad);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
}
.ip-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(139, 92, 246, 0.45);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.16), rgba(96, 165, 250, 0.08));
    transition: border-color 0.15s, background 0.15s;
}
.ip-chip:hover { border-color: rgba(192, 132, 252, 0.8); }
.ip-text { font: 400 13px/1 var(--pixel); letter-spacing: 0.05em; color: #fff; }
.ip-count { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); animation: pulse 2s infinite; }
.dot-off { background: var(--dim); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

/* ---------- Home ---------- */
.home { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 48px 0; }
.home-title { font-size: clamp(2.8rem, 6vw, 4.4rem); font-weight: 800; line-height: 1; letter-spacing: -0.01em; }
.lead { font-size: 1.12rem; color: #c9cddc; max-width: 34rem; }
.vip-card {
    margin-top: 34px;
    width: min(100%, 460px);
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 28px;
    text-align: left;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--panel);
    transition: transform 0.2s, border-color 0.2s;
}
.vip-card:hover { transform: translateY(-3px); border-color: rgba(192, 132, 252, 0.55); }
.vip-card-head { display: flex; align-items: center; gap: 12px; }
.vip-card-name { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.vip-card-price { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.vip-card-price strong { color: #fff; font-size: 1.25rem; font-weight: 800; }
.vip-card-price small { font-size: 0.78rem; color: var(--dim); }
.vip-card-cta { width: 100%; }.vip-card:hover .vip-card-cta { filter: brightness(1.1); }
.rank-badge.rank-badge-xl { padding: 0.15em calc(0.5em - 0.06em) calc(0.29em + 4px) 0.5em; font-size: 1.7rem; line-height: 1; border-radius: 7px; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.25), 0 0 22px rgba(192, 132, 252, 0.5); }
.vip-card .rank-badge.rank-badge-xl { font-size: 1.3rem; border-radius: 6px; }

/* ---------- Category headers ---------- */
.cat-head { display: flex; align-items: center; gap: 24px; padding: 40px 48px; overflow: hidden; }
.cat-head::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(55% 90% at 8% 40%, rgba(139, 92, 246, 0.22), transparent 70%);
    pointer-events: none;
}
.cat-head-text { position: relative; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.cat-head-art { position: relative; width: 300px; max-width: 34%; border-radius: 12px; mask-image: radial-gradient(closest-side, #000 70%, transparent); -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent); }
.cat-head-slim { padding: 30px 40px; justify-content: space-between; flex-wrap: wrap; }
.page-title { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; }
.cat-sub { font-size: 1.2rem; font-weight: 700; margin-top: 4px; }

.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.ticks li { position: relative; padding-left: 26px; color: #cfd3e1; }
.ticks li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.42em;
    width: 12px;
    height: 12px;
    background: var(--grad);
    clip-path: polygon(0 50%, 38% 88%, 100% 14%, 86% 0, 38% 60%, 14% 36%);
}
.ticks-more { color: var(--muted) !important; }
.ticks-more::before { background: var(--dim) !important; }

/* ---------- Ranks ---------- */
.rank-hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    min-height: 540px;
    padding: 46px 56px;
    overflow: hidden;
    background:
        radial-gradient(60% 85% at 10% 45%, rgba(139, 92, 246, 0.30), transparent 70%),
        radial-gradient(50% 70% at 85% 45%, rgba(96, 165, 250, 0.16), transparent 70%),
        linear-gradient(180deg, #1c1d27, #15161e);
}
.rank-copy { display: flex; flex-direction: column; gap: 16px; }
.rank-title { font-size: clamp(3rem, 6vw, 4.4rem); font-weight: 800; }
.buy-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: auto; padding-top: 18px; }
.buy-row-center { justify-content: center; }
.fine { font-size: 0.82rem; color: var(--dim); }
.fine a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.rank-art { display: grid; place-items: center; }
.rank-art img {
    width: 100%;
    max-width: 470px;
    border-radius: 18px;
    mask-image: radial-gradient(closest-side, #000 72%, transparent);
    -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent);
    animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-12px) rotate(-1deg); } }

.perks { padding: 8px 0; overflow: hidden; }
.perk-row { display: grid; grid-template-columns: 1fr 13rem 13rem; align-items: center; min-height: 52px; padding: 0 28px; }
.perk-row:nth-child(even) { background: rgba(255, 255, 255, 0.025); }
.perk-head { min-height: 58px; background: rgba(38, 41, 52, 0.85) !important; font-weight: 800; border-bottom: 1px solid var(--line); }
.perk-head span:not(:first-child), .perk-cell { text-align: center; }
.perk-name { display: inline-flex; align-items: center; gap: 8px; color: #d6d9e5; }
.perk-tip { font-size: 0.78rem; color: var(--dim); cursor: help; }
.perk-cell .yes { color: var(--ok); }
.perk-cell .no { color: var(--bad); opacity: 0.85; }
.perk-def { color: var(--muted); }
.perk-vip { font-weight: 700; color: #e9ddff; }
/* Silkscreen's capitals sit low in the line box: the uneven padding centres them on the area above the bevel. */
.rank-badge {
    display: inline-block;
    padding: 2px calc(8px - 0.06em) 5.5px 8px;
    font: 400 12px/1 var(--pixel);
    letter-spacing: 0.06em;
    color: #fff;
    background: var(--grad);
    border-radius: 4px;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25), 0 0 14px rgba(192, 132, 252, 0.45);
    text-shadow: 0 1px 0 rgba(30, 10, 70, 0.6);
}

/* ---------- Product grid / cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, #1f2129, #17181f); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32); transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-5px); border-color: rgba(192, 132, 252, 0.45); box-shadow: 0 18px 38px rgba(139, 92, 246, 0.22); }
.card-art {
    position: relative;
    display: grid;
    place-items: center;
    height: 180px;
    overflow: hidden;
    background: radial-gradient(60% 70% at 50% 55%, rgba(139, 92, 246, 0.28), transparent 70%), #14151c;
    border-bottom: 1px solid var(--line);
}
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.card:hover .card-art img { transform: scale(1.06); }
.card-art > i { font-size: 3rem; color: var(--a); }
.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px 4px;
    font: 400 11px/1 var(--pixel);
    letter-spacing: 0.05em;
    color: #2b1b00;
    background: linear-gradient(180deg, #ffe08a, #ffbe4a);
    border-radius: 5px;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18), 0 4px 12px rgba(255, 190, 74, 0.3);
}
.badge-sale { color: #fff; background: linear-gradient(180deg, #ff7a7a, #e04848); }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; flex: 1; }
.card-body h3 { font-size: 1.2rem; font-weight: 800; }
.card-body h3 a:hover { color: #e9ddff; }
.card-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.card-price strong { font-size: 1.55rem; font-weight: 800; }
.card-price s { color: var(--dim); }
.card-price span { color: var(--muted); font-size: 0.9rem; }
.card-body .mc-btn { margin-top: auto; }


/* ---------- Product page ---------- */
.back { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; margin-bottom: -10px; }
.back:hover { color: #fff; }
.product { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; padding: 36px; }
.product-art { display: grid; place-items: center; min-height: 320px; border-radius: 12px; overflow: hidden; background: radial-gradient(60% 70% at 50% 50%, rgba(139, 92, 246, 0.25), transparent 70%), #14151c; border: 1px solid var(--line); }
.product-art img { width: 100%; height: 100%; object-fit: cover; }
.product-art > i { font-size: 4rem; color: var(--a); }
.product-info { display: flex; flex-direction: column; gap: 16px; }
.product-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.product-price strong { font-size: 2rem; font-weight: 800; }
.product-price s { color: var(--dim); }

.prose { color: #c9cddc; }
.prose p { margin: 0 0 0.75em; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--a); text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 0.75em; }
.prose strong { color: #fff; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field span { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.field input, .field select {
    height: 48px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--line-2);
    background: #12131a;
    color: #fff;
    font: 600 1rem var(--font);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus { border-color: var(--a); box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.2); }

/* ---------- Cart drawer ---------- */
.drawer-wrap { position: fixed; inset: 0; z-index: 50; }
.drawer-shade { position: absolute; inset: 0; background: rgba(5, 5, 9, 0.7); backdrop-filter: blur(3px); }
.drawer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 410px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #1d1f28, #15161d);
    border-left: 1px solid var(--line-2);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
}
.drawer-anim { transition: transform 0.25s ease; }
.drawer-off { transform: translateX(100%); }
.drawer-on { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-user { display: flex; align-items: center; gap: 12px; margin: 16px 22px 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.drawer-user img { width: 40px; height: 40px; border-radius: 7px; image-rendering: pixelated; }
.drawer-user div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.drawer-user span { font-size: 0.82rem; color: var(--muted); }
.drawer-signout { font-size: 0.82rem; color: var(--muted); }
.drawer-signout:hover { color: var(--bad); }
.drawer-login { transition: border-color 0.15s; }
.drawer-login:hover { border-color: rgba(192, 132, 252, 0.6); }
.drawer-login-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; background: var(--grad); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 12px; transition: opacity 0.15s; }
.drawer-body.is-busy { opacity: 0.6; pointer-events: none; }
.drawer-empty { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--muted); padding: 40px 0; }
.drawer-empty i { font-size: 2.2rem; color: var(--dim); margin-bottom: 8px; }
.drawer-empty strong { color: var(--text); font-size: 1.05rem; }
.line { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.line-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.line-main strong { font-weight: 700; }
.line-price { color: var(--muted); font-size: 0.9rem; }
.line-tag { align-self: flex-start; padding: 3px 7px 2px; font: 400 10px/1 var(--pixel); letter-spacing: 0.05em; color: #e9ddff; background: rgba(139, 92, 246, 0.25); border: 1px solid rgba(139, 92, 246, 0.6); border-radius: 4px; }
.line-qty { display: flex; align-items: center; gap: 8px; }
.line-qty button { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); font-size: 0.7rem; }
.line-qty button:hover { background: rgba(255, 255, 255, 0.12); }
.line-remove:hover { color: var(--bad); }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; }
.drawer-total span { color: var(--muted); font-weight: 600; }
.drawer-total strong { font-size: 1.5rem; font-weight: 800; }
.drawer-note { font-size: 0.78rem; color: var(--dim); text-align: center; }

/* ---------- Cart page / account rows ---------- */
.cart-page { padding: 10px 0; }
.cart-line { display: flex; align-items: center; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.cart-line-art { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #14151c; flex: none; }
.cart-line-art img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-main { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-line-qty { display: flex; align-items: center; gap: 8px; }
.cart-line-qty input { width: 64px; height: 38px; text-align: center; border-radius: 8px; border: 1px solid var(--line-2); background: #12131a; color: #fff; font: 600 1rem var(--font); }
.cart-line-price { min-width: 90px; text-align: right; font-size: 1.15rem; }
.cart-sum { display: flex; align-items: center; justify-content: flex-end; gap: 24px; padding: 20px 24px 12px; flex-wrap: wrap; }
.cart-sum .link-danger { margin-right: auto; }
.cart-total { display: flex; align-items: baseline; gap: 10px; }
.cart-total span { color: var(--muted); }
.cart-total strong { font-size: 1.7rem; }
.link-danger { background: none; border: 0; padding: 0; color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.link-danger:hover { color: var(--bad); }

.tabs { position: relative; display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { padding: 9px 14px; border-radius: 9px; font-weight: 600; color: var(--muted); border: 1px solid transparent; }
.tabs a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.tabs a.on { color: #fff; border-color: rgba(139, 92, 246, 0.6); background: rgba(139, 92, 246, 0.14); }
.rows { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 20px; padding: 18px 24px; flex-wrap: wrap; }
.row-main { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 220px; }
.row-main strong { font-size: 1.08rem; }
.row-main .muted { font-size: 0.88rem; }
.row-price { font-size: 1.2rem; }
.row-link { color: var(--a); font-weight: 600; }
.status { text-transform: capitalize; font-weight: 700; color: var(--text); }
.status-active { color: var(--ok); }
.status-canceled, .status-removed { color: var(--bad); }

/* ---------- Misc pages ---------- */
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 56px 24px; text-align: center; color: var(--muted); }
.empty > i { font-size: 2.6rem; color: var(--a); margin-bottom: 6px; }
.empty h3 { color: var(--text); font-size: 1.35rem; }
.empty .mc-btn { margin-top: 14px; }

.login { width: 100%; max-width: 480px; margin: 20px auto 0; padding: 36px; display: flex; flex-direction: column; gap: 24px; }
.login-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.login-avatar { width: 96px; height: 96px; border-radius: 14px; image-rendering: pixelated; box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.6), 0 10px 30px rgba(139, 92, 246, 0.35); background: #14151c; }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-form .fine { text-align: center; }

.done { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 56px 32px; text-align: center; }
.done-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 18px; font-size: 2rem; color: #062b14; background: linear-gradient(135deg, #86efac, #4ade80); box-shadow: 0 10px 30px rgba(74, 222, 128, 0.35); margin-bottom: 6px; }
.page-body { padding: 32px 40px; }

.flash { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px; background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.45); color: #ffd4d4; }
.flash span { flex: 1; }
.flash button { background: none; border: 0; color: inherit; }

.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); align-items: center; z-index: 60; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 240px; max-width: 360px; padding: 12px 16px; border-radius: 11px; background: #1d1f28; border: 1px solid var(--line-2); border-left: 4px solid var(--b); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); font-weight: 600; font-size: 0.93rem; }
.toast-ok { border-left-color: var(--ok); }
.toast-ok i { color: var(--ok); }
.toast-warn { border-left-color: var(--gold); }
.toast-warn i { color: var(--gold); }
.toast-error { border-left-color: var(--bad); }
.toast-error i { color: var(--bad); }
.toast-info i { color: var(--b); }

.foot-brand .foot-pay { font-size: 0.8rem; color: var(--dim); }
.foot-pay a { text-decoration: underline; text-underline-offset: 2px; }
.foot-pay a:hover { color: var(--muted); }

/* ---------- Footer ---------- */
.foot { margin-top: 24px; border-top: 1px solid var(--line); background: rgba(8, 9, 13, 0.6); }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 28px; }
.foot-brand { display: flex; flex-direction: column; gap: 12px; max-width: 360px; }
.foot-brand .brand img { width: 32px; height: 32px; border-radius: 8px; }
.foot-brand .brand-word { height: 24px; }
.foot-brand p { font-size: 0.9rem; color: var(--muted); }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col h4 { font: 400 12px/1 var(--pixel); letter-spacing: 0.08em; color: #ede4ff; margin-bottom: 6px; }
.foot-col a { font-size: 0.92rem; color: var(--muted); }
.foot-col a:hover { color: #fff; }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 26px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--dim); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .nav-in { height: auto; flex-wrap: wrap; gap: 10px 18px; padding-top: 12px; padding-bottom: 12px; }
    .nav-links { order: 3; width: 100%; overflow-x: auto; margin: 0 -6px; }
    .nav-links a.on::after { bottom: -1px; }
    .ip-count { display: none; }
    .rank-hero { grid-template-columns: 1fr; padding: 34px 28px; min-height: 0; }
    .rank-art { order: -1; }
    .rank-art img { max-width: 340px; }
    .product { grid-template-columns: 1fr; padding: 24px; }
    .foot-in { grid-template-columns: 1fr 1fr; }
    .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .wrap { padding: 0 14px; }
    .nav-in { gap: 10px 8px; }
    .nav-actions { gap: 6px; }
    .nav-btn-label { display: none; }
    .nav-btn { padding: 0 11px; }
    .ip-chip { padding: 0 10px; }
    .brand { gap: 7px; }
    .brand img { width: 30px; height: 30px; }
    .brand-word { height: 16px; }
    .nav-btn, .ip-chip { height: 40px; }
    .brand .plate { display: none; }
    .home { padding: 44px 0 24px; }
    .vip-card { padding: 22px; }

    .cat-head { flex-direction: column; align-items: flex-start; padding: 28px 22px; }
    .cat-head-art { max-width: 70%; align-self: center; }
    .perk-row { grid-template-columns: 1fr 4.6rem 4.6rem; padding: 0 14px; font-size: 0.92rem; }
    .perk-tip { display: none; }
    .mc-btn { min-width: 0; width: 100%; }
    .cart-line { flex-wrap: wrap; padding: 14px; }
    .cart-sum { justify-content: space-between; }
    .cart-sum .mc-btn { width: 100%; }
}
