/* Syntax Ware — dark red theme inspired by South. */
:root {
    --bg-0: #05060a;                /* almost pure black background */
    --bg-1: #0d0e14;                /* card fill */
    --bg-2: #14161f;                /* input fill */
    --line: #1c1a24;                /* subtle borders */
    --text: #f2f4f8;
    --text-dim: #8a8f9c;

    --red: #e11b1b;                 /* south-style pure red */
    --red-2: #ff2a2a;               /* hover / accent */
    --red-glow: rgba(225, 27, 27, 0.35);
    --ok: #2ec46b;
    --off: #f04b4b;
    --warn: #f39f2a;

    --brand-grad: linear-gradient(135deg, #e11b1b 0%, #7a0000 100%);
    --card-grad: radial-gradient(ellipse at top,
        rgba(225, 27, 27, 0.08) 0%,
        rgba(13, 14, 20, 0) 60%),
        var(--bg-1);
    --page-grad: radial-gradient(ellipse at 30% 0%,
        rgba(140, 15, 15, 0.35) 0%,
        rgba(5, 6, 10, 0) 45%),
        radial-gradient(ellipse at 80% 100%,
        rgba(140, 15, 15, 0.25) 0%,
        rgba(5, 6, 10, 0) 50%),
        var(--bg-0);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    background: var(--bg-0);
    color: var(--text);
    font: 15px/1.55 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    background: var(--page-grad);
    background-attachment: fixed;
    position: relative;
}

/* Floating red particles — pure CSS, no JS to keep CSP tight. */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.particles i {
    position: absolute;
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 6px var(--red-glow);
    opacity: 0.55;
    animation: floatUp 14s linear infinite;
}
@keyframes floatUp {
    0%   { transform: translateY(110vh) scale(1); opacity: 0; }
    10%  { opacity: 0.55; }
    90%  { opacity: 0.55; }
    100% { transform: translateY(-10vh) scale(0.6); opacity: 0; }
}
.particles i:nth-child(1)  { left:  4%; animation-delay: 0s;  animation-duration: 18s; }
.particles i:nth-child(2)  { left: 12%; animation-delay: 2s;  animation-duration: 15s; }
.particles i:nth-child(3)  { left: 21%; animation-delay: 6s;  animation-duration: 20s; width: 3px; height: 3px; }
.particles i:nth-child(4)  { left: 32%; animation-delay: 1s;  animation-duration: 16s; }
.particles i:nth-child(5)  { left: 41%; animation-delay: 4s;  animation-duration: 22s; width: 2px; height: 2px; }
.particles i:nth-child(6)  { left: 52%; animation-delay: 7s;  animation-duration: 17s; }
.particles i:nth-child(7)  { left: 63%; animation-delay: 3s;  animation-duration: 19s; width: 3px; height: 3px; }
.particles i:nth-child(8)  { left: 71%; animation-delay: 9s;  animation-duration: 14s; }
.particles i:nth-child(9)  { left: 82%; animation-delay: 5s;  animation-duration: 21s; }
.particles i:nth-child(10) { left: 91%; animation-delay: 8s;  animation-duration: 18s; width: 2px; height: 2px; }
.particles i:nth-child(11) { left: 27%; animation-delay: 11s; animation-duration: 16s; }
.particles i:nth-child(12) { left: 46%; animation-delay: 13s; animation-duration: 20s; }
.particles i:nth-child(13) { left: 66%; animation-delay: 10s; animation-duration: 17s; }
.particles i:nth-child(14) { left: 86%; animation-delay: 12s; animation-duration: 15s; width: 3px; height: 3px; }

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--red-2); }

/* ── Top bar ────────────────────────────────────────────────── */
.topbar {
    position: relative; z-index: 10;
    display: flex; align-items: center; justify-content: space-between;
    gap: 18px;
    padding: 16px 32px;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
}
.topbar .brand {
    display: flex; align-items: center; gap: 14px;
    color: var(--text);
}
.brand-logo {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--brand-grad);
    display: grid; place-items: center;
    font-weight: 800; font-size: 22px; color: white;
    box-shadow: 0 0 18px var(--red-glow);
    font-family: Georgia, serif;
    letter-spacing: -1px;
}
.brand-title {
    display: flex; flex-direction: column; line-height: 1.1;
}
.brand-title b { font-size: 15px; letter-spacing: 1px; }
.brand-title span { font-size: 11px; color: var(--text-dim); }

.nav-center {
    display: flex; gap: 4px; padding: 4px;
    background: rgba(30, 12, 12, 0.45);
    border: 1px solid var(--line);
    border-radius: 999px;
}
.nav-center a {
    padding: 8px 22px; border-radius: 999px;
    color: var(--text-dim); font-size: 14px; font-weight: 500;
    transition: all 0.15s;
}
.nav-center a.active,
.nav-center a:hover {
    background: linear-gradient(180deg, rgba(225, 27, 27, 0.25), rgba(225, 27, 27, 0.1));
    color: var(--text);
}

.nav-right { display: flex; align-items: center; gap: 10px; }
.icon-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(30, 12, 12, 0.45);
    border: 1px solid var(--line);
    display: grid; place-items: center;
    color: var(--text-dim);
    transition: all 0.15s;
}
.icon-btn:hover { color: var(--red-2); border-color: var(--red); }
.discord-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--brand-grad);
    padding: 10px 20px;
    border-radius: 999px;
    color: white; font-weight: 600; font-size: 14px;
    box-shadow: 0 6px 20px var(--red-glow);
    transition: transform 0.15s;
}
.discord-btn:hover { transform: translateY(-1px); color: white; }

/* ── Layout ─────────────────────────────────────────────────── */
main {
    position: relative; z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 32px 80px;
}

/* ── Hero (shop landing) ────────────────────────────────────── */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    padding: 20px 0 60px;
    align-items: center;
}
.hero .tags {
    color: var(--text-dim); font-size: 13px;
    letter-spacing: 2px; text-transform: uppercase;
    display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.hero .tags::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 10px var(--red);
}
.hero h1 {
    font-size: 68px; line-height: 1; margin: 0 0 24px;
    font-weight: 800; letter-spacing: -2px;
}
.hero h1 span {
    color: var(--red);
    text-shadow: 0 0 40px var(--red-glow);
}
.hero .lead {
    color: var(--text-dim); font-size: 16px; line-height: 1.7;
    margin-bottom: 32px; max-width: 540px;
}
.hero .cta {
    display: flex; gap: 12px; flex-wrap: wrap;
    margin: 30px 0 40px;
}

/* Feature strip under hero */
.strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    max-width: 720px;
}
.strip .box {
    background: var(--card-grad);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 20px;
}
.strip .box .h {
    display: flex; align-items: center; gap: 8px;
    color: var(--text-dim); font-size: 12px; letter-spacing: 1.5px;
    text-transform: uppercase; margin-bottom: 8px;
}
.strip .box .h::before {
    content: ""; width: 14px; height: 14px; border-radius: 50%;
    background: var(--brand-grad);
    box-shadow: 0 0 8px var(--red-glow);
}
.strip .box .v { font-size: 14px; color: var(--text); }

/* Hero side card */
.hero-card {
    background: var(--card-grad);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 26px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 60px rgba(225, 27, 27, 0.05);
}
.hero-card .head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 22px;
}
.hero-card .who {
    display: flex; align-items: center; gap: 12px;
}
.hero-card .who .avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--brand-grad);
    display: grid; place-items: center; color: white;
    font-weight: 800; font-size: 20px; font-family: Georgia, serif;
}
.hero-card .who b { display: block; font-size: 15px; }
.hero-card .who span { color: var(--text-dim); font-size: 12px; }
.pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 999px;
    background: rgba(46, 196, 107, 0.12);
    color: var(--ok);
    font-size: 12px; font-weight: 600;
    border: 1px solid rgba(46, 196, 107, 0.3);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); }

.badge-strip {
    background: linear-gradient(135deg, rgba(225, 27, 27, 0.15), rgba(225, 27, 27, 0.02));
    border: 1px solid rgba(225, 27, 27, 0.3);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 18px;
}
.badge-strip .lbl {
    background: var(--red); color: white;
    padding: 3px 10px; border-radius: 6px;
    font-size: 10px; font-weight: 800; letter-spacing: 2px;
    display: inline-block; margin-bottom: 10px;
}
.badge-strip h3 { margin: 0 0 6px; font-size: 22px; line-height: 1.2; }
.badge-strip p { margin: 0; color: var(--text-dim); font-size: 13px; }

.metric-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.metric {
    background: rgba(20, 22, 31, 0.6);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 16px;
}
.metric .label { color: var(--text-dim); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.metric .value { font-size: 22px; font-weight: 700; margin-top: 4px; }
.metric.ok .value { color: var(--ok); }

/* ── Accomplishments block ──────────────────────────────────── */
.section-title {
    text-align: center; margin: 60px 0 40px;
}
.section-title h2 {
    font-size: 40px; margin: 0; letter-spacing: 3px; font-weight: 800;
    position: relative; display: inline-block;
}
.section-title h2::after {
    content: ""; display: block; width: 60px; height: 3px;
    background: var(--red); margin: 12px auto 0;
    box-shadow: 0 0 12px var(--red-glow);
}
.section-title p { color: var(--text-dim); max-width: 520px; margin: 16px auto 0; }

.acc-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.acc {
    background: var(--card-grad);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 40px 30px; text-align: center;
}
.acc-ic {
    width: 60px; height: 60px; margin: 0 auto 20px;
    background: var(--brand-grad); border-radius: 14px;
    display: grid; place-items: center; color: white; font-size: 26px;
    box-shadow: 0 8px 20px var(--red-glow);
}
.acc .n { font-size: 40px; font-weight: 800; margin: 8px 0; }
.acc .l { color: var(--text-dim); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; }

/* ── Product grid ───────────────────────────────────────────── */
.page-head { padding: 20px 0 30px; }
.page-head h1 { font-size: 42px; margin: 0; letter-spacing: -1px; font-weight: 800; }
.page-head h1::after { content: ""; display: block; width: 60px; height: 3px; background: var(--red); margin-top: 12px; box-shadow: 0 0 10px var(--red-glow); }
.page-head p { color: var(--text-dim); margin: 10px 0 0; }

.pgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}
.pcard {
    background: var(--card-grad);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    transition: all 0.2s;
    position: relative; overflow: hidden;
}
.pcard:hover {
    border-color: var(--red);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(225, 27, 27, 0.15);
}
.pcard .thumb {
    aspect-ratio: 16/10;
    border-radius: 12px;
    background: var(--bg-2) center/cover;
    margin-bottom: 16px;
    position: relative; overflow: hidden;
}
.pcard .name { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.pcard .desc { color: var(--text-dim); font-size: 13px; line-height: 1.55; margin: 0 0 14px; min-height: 44px; }
.pcard .footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.pcard .n-prods { color: var(--text-dim); font-size: 12px; }
.pcard .price { font-size: 22px; font-weight: 800; color: var(--text); }
.pcard .price small { color: var(--text-dim); font-size: 12px; margin-right: 6px; text-decoration: line-through; }
.pcard .go {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 18px;
    background: var(--brand-grad);
    color: white; border-radius: 999px; font-weight: 600; font-size: 13px;
}
.pcard .discount-tag {
    position: absolute; top: 10px; left: 10px;
    background: var(--warn); color: black;
    font-weight: 800; font-size: 11px; letter-spacing: 1px;
    padding: 3px 9px; border-radius: 6px; z-index: 2;
}

/* ── Product page ───────────────────────────────────────────── */
.prod {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-top: 20px;
}
.prod .hero-img {
    aspect-ratio: 4/3;
    background: var(--bg-2) center/cover;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.prod .side {
    background: var(--card-grad);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px;
}
.prod .side h1 { font-size: 34px; margin: 0 0 14px; letter-spacing: -0.5px; }
.badge-lbl {
    display: inline-block; padding: 6px 14px; border-radius: 999px;
    background: linear-gradient(135deg, rgba(225, 27, 27, 0.2), rgba(225, 27, 27, 0.05));
    border: 1px solid rgba(225, 27, 27, 0.4);
    color: var(--red-2); font-size: 12px; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; margin-bottom: 18px;
}
.prod .price-big { font-size: 40px; font-weight: 800; margin: 8px 0 22px; }
.prod .price-big small { color: var(--text-dim); font-size: 20px; text-decoration: line-through; margin-left: 10px; font-weight: 600; }

.duration-label { color: var(--text-dim); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.duration-opt {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.15s;
}
.duration-opt:hover { border-color: var(--red); }
.duration-opt.selected { border-color: var(--red); background: rgba(225, 27, 27, 0.05); }
.duration-opt .name { font-weight: 700; }
.duration-opt .tags-inline { display: flex; gap: 6px; margin-top: 4px; }
.chip {
    display: inline-block; padding: 3px 8px; border-radius: 4px;
    font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
}
.chip.best { background: rgba(255, 200, 0, 0.15); color: #ffc800; }
.chip.save { background: rgba(46, 196, 107, 0.15); color: var(--ok); }
.duration-opt .p { text-align: right; }
.duration-opt .p .now { font-size: 20px; font-weight: 800; }
.duration-opt .p .was { color: var(--text-dim); font-size: 12px; text-decoration: line-through; }

.qty-buy { display: flex; gap: 10px; align-items: center; margin-top: 22px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.qty button { background: none; border: none; color: var(--text); padding: 10px 14px; cursor: pointer; font-size: 16px; }
.qty span { padding: 0 14px; min-width: 30px; text-align: center; font-weight: 700; }
.stock { color: var(--ok); font-size: 13px; }
.qty-buy .stock-pill {
    background: rgba(46, 196, 107, 0.1); color: var(--ok);
    border: 1px solid rgba(46, 196, 107, 0.3);
    padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 600;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: 999px;
    text-decoration: none; font-weight: 600; font-size: 14px;
    border: 1px solid var(--line); background: var(--bg-2); color: var(--text);
    cursor: pointer; transition: all 0.15s;
    letter-spacing: 0.3px;
}
.btn:hover { border-color: var(--red-2); color: var(--text); }
.btn.primary {
    background: var(--brand-grad); border-color: transparent; color: white;
    box-shadow: 0 6px 20px var(--red-glow);
}
.btn.primary:hover { transform: translateY(-1px); }
.btn.solid-red {
    background: var(--red); border-color: var(--red); color: white;
    box-shadow: 0 6px 18px var(--red-glow);
}
.btn.solid-red:hover { background: var(--red-2); border-color: var(--red-2); }
.btn.ghost { background: transparent; }
.btn.big { padding: 15px 30px; font-size: 15px; }
.btn.grow { flex: 1; }

button.link {
    background: none; border: none; padding: 0; color: var(--text-dim);
    cursor: pointer; font: inherit;
}
button.link:hover { color: var(--red-2); }
form.inline { display: inline; }

/* ── Auth (login + register side-by-side) ───────────────────── */
.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 40px auto;
}
.auth-card {
    background: var(--card-grad);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 40px;
}
.auth-card h1 { margin: 0 0 8px; font-size: 32px; }
.auth-card .sub { color: var(--text-dim); margin-bottom: 26px; }
.auth-card label {
    display: block; margin: 16px 0 6px;
    font-size: 13px; color: var(--text-dim);
    text-transform: uppercase; letter-spacing: 1px;
}
.auth-card input {
    width: 100%;
    background: var(--bg-0);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 14px 16px;
    border-radius: 10px;
    font: inherit;
}
.auth-card input:focus { border-color: var(--red); outline: none; }
.auth-card .full {
    width: 100%; margin-top: 24px;
    padding: 15px; font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
}
.auth-card .hint { color: var(--text-dim); font-size: 12px; margin-top: 14px; }

/* ── Panel pages (custom/support/cupula/owner) ─────────────── */
.panel h1 { margin: 0 0 20px; font-size: 34px; }
.panel h1::after { content: ""; display: block; width: 50px; height: 3px; background: var(--red); margin-top: 10px; box-shadow: 0 0 8px var(--red-glow); }
.grid-2 {
    display: grid; gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}
.card {
    background: var(--card-grad);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
}
.card h3 { margin: 0 0 14px; font-size: 17px; }
.stats { display: flex; gap: 20px; color: var(--text-dim); flex-wrap: wrap; margin-bottom: 20px; }
.stats b { color: var(--text); font-size: 20px; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 26px; }
.tile {
    background: var(--card-grad); border: 1px solid var(--line);
    border-radius: 12px; padding: 16px 18px;
}
.tile b { display: block; font-size: 24px; }
.tile span { color: var(--text-dim); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }

dl { margin: 0; display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 14px; }
dt { color: var(--text-dim); }

.tag { display: inline-block; padding: 3px 9px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.tag.ok { background: rgba(46, 196, 107, 0.15); color: var(--ok); }
.tag.off { background: rgba(240, 75, 75, 0.15); color: var(--off); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--text-dim); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
tbody tr:hover { background: rgba(225, 27, 27, 0.05); }
table.tight th, table.tight td { padding: 6px 10px; font-size: 13px; }

.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack label { display: flex; flex-direction: column; gap: 6px; color: var(--text-dim); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.stack input, .stack select { background: var(--bg-2); border: 1px solid var(--line); color: var(--text); padding: 10px 14px; border-radius: 8px; font: inherit; }
.stack input:focus, .stack select:focus { border-color: var(--red); outline: none; }

.muted { color: var(--text-dim); }
.small { font-size: 12px; }
.error { color: var(--off); margin: 12px 0; }
.ok { color: var(--ok); }
.off { color: var(--off); }
.notice { background: rgba(243, 159, 42, 0.1); border: 1px solid var(--warn); color: var(--warn); padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; }
.mono { font-family: "SF Mono", Menlo, Consolas, monospace; }
.mono.big { font-size: 22px; letter-spacing: 2px; text-align: center; padding: 16px 0; color: var(--red-2); }

footer {
    position: relative; z-index: 1;
    text-align: center; padding: 40px 0; color: var(--text-dim); font-size: 12px;
    border-top: 1px solid var(--line);
    background: rgba(0,0,0,0.4);
}

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; gap: 30px; }
    .hero h1 { font-size: 42px; }
    .strip { grid-template-columns: 1fr; }
    .acc-grid { grid-template-columns: 1fr; }
    .prod { grid-template-columns: 1fr; }
    .auth-grid { grid-template-columns: 1fr; }
    .topbar { flex-direction: column; gap: 12px; padding: 14px 20px; }
    .nav-center { flex-wrap: wrap; }
    dl { grid-template-columns: 1fr; gap: 2px; }
    dt { margin-top: 8px; }
}
