/* Vexer — shared design system
 * applies to every page on the site
 */

:root {
    --bg:       #05050a;
    --bg-1:     #0a0a12;
    --bg-2:     #0e0e18;
    --surface:  #14141c;
    --surface-2:#1c1c28;
    --line:     rgba(255,255,255,0.06);
    --line-2:   rgba(255,255,255,0.10);
    --line-3:   rgba(255,255,255,0.18);
    --text:     #fff;
    --text-1:   #c8c8d0;
    --text-2:   #8a8a92;
    --text-3:   #4a4a52;
    --accent:   #66dfff;
    --ease:     cubic-bezier(0.32, 0.72, 0, 1);
    --r:        12px;
    --r-lg:     18px;
    --r-xl:     24px;
}
* { margin:0; padding:0; box-sizing:border-box; }
html, body {
    background: var(--bg); color: var(--text);
    font-family: 'Geist', -apple-system, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.011em;
}
body { min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
.mono { font-family: 'Geist Mono', monospace; }

/* ───────── floating-pill nav ───────── */
.nav {
    position: fixed; top: 16px; left: 0; right: 0; z-index: 50;
    padding: 0 24px;
    display: flex; justify-content: center;
    transition: transform 0.35s var(--ease), opacity 0.25s ease;
}
.nav.hidden { transform: translateY(-130%); opacity: 0; }
.nav .wrap { width: 100%; max-width: 1480px; display: flex; align-items: center; gap: 10px; }

.nav-pill {
    flex: 1;
    display: flex; align-items: center; gap: 16px;
    height: 60px;
    padding: 0 12px 0 14px;
    border-radius: 100px;
    background: rgba(10, 12, 20, 0.65);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.04);
}
.nav-pill .brand { display: flex; align-items: center; gap: 12px; padding-right: 6px; }
.nav-pill .brand .lg {
    width: 40px; height: 40px; border-radius: 10px;
    background: linear-gradient(180deg, #1a1a26 0%, #0c0c14 100%);
    border: 1px solid rgba(255,255,255,0.10);
    display: grid; place-items: center;
}
.nav-pill .brand .lg img { width: 24px; height: 24px; }
.nav-pill .brand .text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-pill .brand .nm { font-weight: 700; font-size: 15px; letter-spacing: -0.02em; }
.nav-pill .brand .sub { font-size: 11px; color: var(--text-2); margin-top: 2px; }

.nav-pill .search-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: transparent;
    display: grid; place-items: center;
    color: var(--text-1);
    transition: background 0.15s;
}
.nav-pill .search-btn:hover { background: rgba(255,255,255,0.06); }

.lang-wrap { position: relative; }
.lang-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 12px 7px 7px;
    height: 36px;
    border-radius: 100px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 13px; font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s;
}
.lang-btn:hover { background: rgba(255,255,255,0.08); }
.lang-btn .flag {
    width: 22px; height: 22px; border-radius: 50%;
    overflow: hidden; flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.1);
    background: #111;
}
.lang-btn .flag svg { width: 100%; height: 100%; }
.lang-btn .chev { color: var(--text-2); transition: transform 0.2s; }
.lang-wrap.open .lang-btn .chev { transform: rotate(180deg); }
.lang-menu {
    position: absolute; top: 100%; left: 0; margin-top: 8px;
    background: rgba(14, 14, 22, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    padding: 6px;
    min-width: 160px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.7);
    opacity: 0; transform: translateY(-6px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.18s, transform 0.18s;
    z-index: 60;
}
.lang-wrap.open .lang-menu { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.lang-menu a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 8px;
    font-size: 13px; color: var(--text-1);
    transition: background 0.12s, color 0.12s;
}
.lang-menu a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.lang-menu a.active { color: #fff; background: rgba(255,255,255,0.04); }
.lang-menu a .flag { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.1); }
.lang-menu a .flag svg { width: 100%; height: 100%; }

.nav-pill .links { flex: 1; display: flex; justify-content: center; gap: 4px; min-width: 0; }
.nav-pill .links a {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 14px; border-radius: 100px;
    font-size: 13.5px; color: var(--text-1);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.nav-pill .links a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-pill .links a.active { color: #fff; background: rgba(255,255,255,0.04); }
.nav-pill .links a .ic { color: var(--text-2); transition: color 0.15s; }
.nav-pill .links a:hover .ic, .nav-pill .links a.active .ic { color: var(--text); }

.nav-pill .actions { display: flex; align-items: center; gap: 6px; padding-left: 6px; }
.nav-pill .actions .act {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 0 16px; height: 38px;
    border-radius: 100px;
    font-size: 13.5px; font-weight: 600;
    color: var(--text);
    transition: background 0.15s, transform 0.15s;
}
.nav-pill .actions .act:hover { background: rgba(255,255,255,0.06); }
.nav-pill .actions .act.discord { background: #5865f2; color: #fff; }
.nav-pill .actions .act.discord:hover { background: #4752c4; }
.nav-pill .actions .act.panel { background: #fff; color: #000; }
.nav-pill .actions .act.panel:hover { background: #e6e6ec; }
.nav-pill .actions .act.danger:hover { background: rgba(255, 100, 100, 0.12); color: #ff8080; }

/* ───────── buttons ───────── */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 11px 18px; border-radius: 100px;
    font-size: 13.5px; font-weight: 600;
    transition: transform 0.15s, background 0.15s, box-shadow 0.2s;
    line-height: 1;
}
.btn-primary { background: linear-gradient(135deg, #fff 0%, #d0d0d8 100%); color: #000; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -8px rgba(255,255,255,0.4); }
.btn-ghost { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.10); }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #4752c4; }
.btn-cyan { background: linear-gradient(135deg, #b8e6ff 0%, var(--accent) 100%); color: #00131a; }
.btn-cyan:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -8px rgba(102, 223, 255, 0.5); }

/* ───────── shell / page wrapper ───────── */
.page {
    padding-top: 96px; /* leaves room for the floating nav */
    min-height: 100vh;
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* glow page background */
.page-bg {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(50% 60% at 75% 20%, rgba(102, 223, 255, 0.06) 0%, transparent 60%),
        radial-gradient(45% 70% at 20% 80%, rgba(180, 100, 255, 0.04) 0%, transparent 60%),
        linear-gradient(180deg, #050510 0%, #0a0a14 100%);
}
.page-bg::after {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
    opacity: 0.4;
}

/* ───────── section heads ───────── */
.section-head { text-align: center; margin-bottom: 60px; }
.section-head .kicker {
    font-family: 'Geist Mono', monospace; font-size: 11px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.section-head h1, .section-head h2 {
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -0.035em;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 12px;
}
.section-head h2 .acc, .section-head h1 .acc {
    background: linear-gradient(135deg, #e0f0ff 0%, var(--accent) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-head p { color: var(--text-1); font-size: 16px; max-width: 600px; margin: 0 auto; line-height: 1.55; }

/* ───────── cards ───────── */
.card {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 28px;
    transition: border-color 0.25s, transform 0.25s var(--ease);
}
.card:hover { border-color: var(--line-2); }
.card.featured { border-color: rgba(102, 223, 255, 0.35); }
.card-pad-sm { padding: 18px 20px; }

/* ───────── form fields ───────── */
.field { position: relative; margin-bottom: 14px; }
.field label {
    display: block; font-size: 12.5px; color: var(--text-1);
    margin-bottom: 7px; font-weight: 500;
}
.input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    color: var(--text);
    font: inherit; font-size: 14px;
    transition: border-color 0.15s, background 0.15s;
}
.input:focus { outline: none; border-color: var(--line-3); background: rgba(255,255,255,0.05); }
.input::placeholder { color: var(--text-3); }
.field-error {
    display:none; padding:11px 14px;
    background: rgba(255, 100, 100, 0.05);
    border:1px solid rgba(255, 100, 100, 0.25);
    border-radius: 10px;
    color: #ffaaaa; font-size: 13px;
    margin-bottom: 14px;
}
.field-error.show { display: block; }
.field-ok {
    display:none; padding:11px 14px;
    background: rgba(102, 223, 255, 0.05);
    border:1px solid rgba(102, 223, 255, 0.25);
    border-radius: 10px;
    color: var(--accent); font-size: 13px;
    margin-bottom: 14px;
}
.field-ok.show { display: block; }

.spin { width:14px; height:14px; border:2px solid rgba(0,0,0,0.3); border-top-color:#000; border-radius:50%; animation:spin 0.6s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity:1 } 50% { opacity:0.4 } }

/* ───────── footer ───────── */
footer.site-footer {
    padding: 60px 24px 32px;
    border-top: 1px solid var(--line);
    margin-top: 80px;
}
footer.site-footer .grid {
    max-width: 1380px; margin: 0 auto;
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
    margin-bottom: 40px;
}
footer.site-footer .brand-col .brand { display:flex; align-items:center; gap:10px; font-weight: 700; margin-bottom: 14px; font-size: 16px; }
footer.site-footer .brand-col .brand .lg { width:30px;height:30px;border-radius:9px;background:rgba(255,255,255,0.04);border:1px solid var(--line-2);display:grid;place-items:center }
footer.site-footer .brand-col .brand .lg img { width:22px;height:22px }
footer.site-footer .brand-col p { color: var(--text-2); font-size: 13px; line-height: 1.6; max-width: 280px; }
footer.site-footer .col h4 { font-family: 'Geist Mono', monospace; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2); margin-bottom: 16px; }
footer.site-footer .col a { display: block; padding: 6px 0; font-size: 14px; color: var(--text-1); transition: color 0.15s; }
footer.site-footer .col a:hover { color: #fff; }
footer.site-footer .bot {
    max-width: 1380px; margin: 0 auto;
    border-top: 1px solid var(--line); padding-top: 22px;
    display: flex; justify-content: space-between; align-items: center;
    color: var(--text-3); font-size: 12.5px;
}
footer.site-footer .bot .mono { color: var(--text-2); }

/* ───────── cart drawer ───────── */
.cart-backdrop {
    position: fixed !important; inset: 0; z-index: 80;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s var(--ease), visibility 0s linear 0.25s;
}
.cart-backdrop.open { opacity: 1; visibility: visible; transition: opacity 0.25s var(--ease); }
aside.cart-drawer {
    position: fixed !important;
    right: 0 !important; top: 0 !important; bottom: 0 !important; left: auto !important;
    width: 440px; max-width: 92vw;
    background: linear-gradient(180deg, #0e0e16 0%, #07070d 100%);
    border-left: 1px solid rgba(255,255,255,0.08);
    box-shadow: -30px 0 80px -20px rgba(0,0,0,0.7);
    z-index: 81;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    display: flex !important; flex-direction: column;
    visibility: hidden;
}
aside.cart-drawer.open { transform: translateX(0); visibility: visible; }
.cart-drawer .head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
}
.cart-drawer .head h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.025em; }
.cart-drawer .head .close {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--line-2);
    display: grid; place-items: center;
    color: var(--text-1);
    transition: background 0.15s;
}
.cart-drawer .head .close:hover { background: rgba(255,255,255,0.10); }
.cart-drawer .body { flex: 1; overflow-y: auto; padding: 22px 24px; }
.cart-drawer .foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); }
.cart-drawer .foot .btn { width: 100%; justify-content: center; padding: 14px; }

.cart-empty {
    text-align: center; padding: 60px 20px;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.cart-empty .ic-wrap {
    width: 64px; height: 64px; border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line-2);
    display: grid; place-items: center;
    color: var(--text-2);
}
.cart-empty h4 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.cart-empty p { color: var(--text-2); font-size: 13.5px; line-height: 1.55; max-width: 280px; }

.cart-item {
    display: grid; grid-template-columns: 56px 1fr auto;
    gap: 14px; align-items: center;
    padding: 14px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.04);
}
.cart-item:last-child { border-bottom: none; }
.cart-item .ci-thumb {
    width: 56px; height: 56px; border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line-2);
    display: grid; place-items: center;
    flex-shrink: 0;
}
.cart-item .ci-thumb img { width: 30px; height: 30px; }
.cart-item .ci-name { font-size: 14px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 4px; }
.cart-item .ci-meta { color: var(--text-2); font-size: 12px; font-family: 'Geist Mono', monospace; }
.cart-item .ci-right { text-align: right; }
.cart-item .ci-price { font-size: 15px; font-weight: 700; }
.cart-item .ci-rm { color: var(--text-3); font-size: 11px; margin-top: 4px; cursor: pointer; }
.cart-item .ci-rm:hover { color: #ff8080; }

.cart-summary {
    padding-top: 18px; margin-top: 12px;
    border-top: 1px solid var(--line);
}
.cart-summary .ln { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: 13px; color: var(--text-1); }
.cart-summary .total { font-size: 17px; font-weight: 700; color: #fff; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.cart-summary .total .val { color: var(--accent); }

/* ───────── floating widgets ───────── */
.float-widget {
    position: fixed; bottom: 24px; left: 24px;
    display: flex; flex-direction: column; gap: 8px;
    z-index: 40;
}
.float-widget a {
    width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center;
    color: #fff;
    box-shadow: 0 8px 24px -6px rgba(0,0,0,0.55);
    transition: transform 0.15s;
}
.float-widget a:hover { transform: scale(1.06); }
.float-widget .discord { background: #5865f2; }
.float-widget .support { background: linear-gradient(135deg, #1c1c28, #0a0a14); border: 1px solid var(--line-2); }

@media (max-width: 980px) {
    .nav-pill .links { display: none; }
    .nav-pill .search-btn { display: none; }
}
@media (max-width: 720px) {
    .nav-pill .brand .text { display: none; }
    .nav-pill .actions .act:not(.panel) { display: none; }
    footer.site-footer .grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
