/* A-6 Archives store theme (dark, violet neon). Standalone: the store pages don't load ../style.css. */
:root {
    --bg: #04040c; --bg2: #0a0a19; --card: #0f0e24; --line: #24224f;
    --text: #eceaff; --muted: #9894c8; --violet: #6d5bf0; --violet2: #a59cff; --glow: #4f3fd9;
    --discord: #5865f2; --ok: #86efac; --err: #fca5a5;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; line-height: 1.5; overflow-x: hidden; }
body::before {
    content: ""; position: fixed; inset: 0; pointer-events: none;
    background: radial-gradient(800px 500px at 75% -10%, rgba(84, 66, 230, .28), transparent 60%),
                radial-gradient(600px 400px at 0% 40%, rgba(105, 83, 207, .10), transparent 60%);
}
main, header, footer { position: relative; }
a { color: inherit; text-decoration: none; }
a.link { color: var(--violet2); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--violet2); outline-offset: 3px; }
.wrap { max-width: 1150px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, .brand { font-family: Rajdhani, sans-serif; letter-spacing: .04em; }
.muted { color: var(--muted); }
.small, small { font-size: 13px; }
code { color: var(--violet2); }

/* Header */
header { position: sticky; top: 0; z-index: 10; background: rgba(4, 4, 12, .8); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 70px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700; }
.brand span { color: var(--violet2); }
.links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--muted); align-items: center; flex-wrap: wrap; }
.links a:hover, .links a[aria-current="page"] { color: var(--text); }
.cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--violet); color: #fff; font-size: 12px; font-weight: 600; }

/* Buttons */
.btn, button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border: 0; border-radius: 10px; padding: 10px 18px;
    font-weight: 600; font-size: 14px; cursor: pointer; font-family: inherit; color: var(--text); background: transparent; border: 1px solid var(--line);
    transition: filter .15s, border-color .15s, transform .15s;
}
.btn:hover, button:hover { border-color: var(--violet); }
.btn-discord { background: var(--discord); border-color: var(--discord); color: #fff; }
.btn-discord:hover { filter: brightness(1.1); border-color: var(--discord); }
.btn-violet, button.solid { background: linear-gradient(135deg, var(--violet), var(--glow)); border-color: transparent; color: #fff; box-shadow: 0 0 24px rgba(84, 66, 230, .45); }
.btn-violet:hover, button.solid:hover { filter: brightness(1.1); border-color: transparent; }
button.pay { width: 100%; background: #ffc439; border-color: #ffc439; color: #111; font-size: 15px; min-height: 48px; }
button.pay:hover { filter: brightness(1.05); border-color: #ffc439; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Alerts and badges */
.alert { border: 1px solid; border-radius: 12px; padding: 12px 16px; margin-top: 18px; background: var(--bg2); font-size: 15px; }
.alert.ok { border-color: rgba(134, 239, 172, .4); color: var(--ok); }
.alert.error { border-color: rgba(252, 165, 165, .4); color: var(--err); }
.alert.small { padding: 8px 12px; margin-top: 8px; font-size: 13px; }
.badge { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--violet2); }
.pill { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(105, 83, 207, .15); color: var(--violet2); border: 1px solid rgba(105, 83, 207, .35); white-space: nowrap; }
.pill.ok { background: rgba(134, 239, 172, .1); color: var(--ok); border-color: rgba(134, 239, 172, .35); }
.pill.error { background: rgba(252, 165, 165, .1); color: var(--err); border-color: rgba(252, 165, 165, .35); }

/* Logo intro (first visit) */
.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); transition: opacity .6s ease; cursor: pointer; }
.intro[hidden] { display: none; }
.intro.out { opacity: 0; pointer-events: none; }
.intro canvas { width: min(420px, 72vmin); height: min(420px, 72vmin); }
.intro .skip { position: absolute; right: 24px; bottom: 24px; min-height: 36px; padding: 6px 14px; font-size: 13px; color: var(--muted); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding: 80px 0 50px; }
.tag { display: inline-block; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--violet2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--violet2); text-shadow: 0 0 30px rgba(105, 83, 207, .7); }
.hero p { color: var(--muted); font-size: 17px; margin: 20px 0 28px; max-width: 540px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.logo-big { justify-self: center; width: min(320px, 80%); height: auto; border-radius: 22%; filter: drop-shadow(0 0 40px rgba(84, 66, 230, .55)); animation: pulse 4s ease-in-out infinite; }
@keyframes pulse { 50% { filter: drop-shadow(0 0 60px rgba(105, 83, 207, .8)); } }

/* Sections */
section { padding: 46px 0; }
.sec-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.sec-title h2 { font-size: 34px; }
.sec-title p { color: var(--muted); font-size: 14px; }

/* Products */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: linear-gradient(180deg, var(--card), var(--bg2)); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.card:hover { border-color: var(--violet); transform: translateY(-3px); box-shadow: 0 10px 40px rgba(84, 66, 230, .18); }
.card.bundle { border-color: rgba(105, 83, 207, .6); box-shadow: 0 0 30px rgba(84, 66, 230, .2); }
.card.owned { opacity: .85; }
.card-top { display: flex; align-items: center; gap: 14px; }
.ico { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(105, 83, 207, .12); border: 1px solid rgba(105, 83, 207, .35); color: var(--violet2); }
.ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 22px; line-height: 1.1; }
.card p { color: var(--muted); font-size: 14px; }
.card .pills { display: flex; gap: 6px; flex-wrap: wrap; }
.card .grow { flex: 1; }
.buyrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.price { font-family: Rajdhani; font-size: 30px; font-weight: 700; }
.old-price { font-size: .6em; color: var(--muted); font-weight: 500; margin-right: 4px; }
.sale-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 18px 0 0; padding: 14px 18px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(109, 91, 240, .28), rgba(255, 196, 57, .18)); border: 1px solid rgba(255, 196, 57, .45); font-size: 15px; }
.sale-banner strong { font-family: Rajdhani; font-size: 22px; letter-spacing: .5px; }
.sale-pct { background: #ffc439; color: #111; font-weight: 700; border-radius: 8px; padding: 2px 10px; }
.buyrow form { margin: 0; }

/* Cart */
.cart-box { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; background: linear-gradient(180deg, var(--card), var(--bg2)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.cart-box > div { padding: 24px; }
.cart-box > div + div { border-left: 1px solid var(--line); }
.cart-box table td.num { text-align: right; white-space: nowrap; }
details.name-check { margin-top: 6px; }
details.name-check summary { cursor: pointer; }
details.name-check form { margin-top: 8px; max-width: 320px; }
.cart-box td.del { width: 36px; text-align: right; }
.cart-box button.x { min-height: 0; width: 28px; height: 28px; padding: 0; border-radius: 8px; font-size: 18px; line-height: 1; color: var(--muted); }
.cart-box button.x:hover { color: var(--err); border-color: rgba(252, 165, 165, .4); }
.cart-box button.clear-cart { margin-top: 14px; font-size: 13px; color: var(--muted); }
.cart-box button.clear-cart:hover { color: var(--err); border-color: rgba(252, 165, 165, .4); }
.cart-box tr.total td { font-family: Rajdhani; font-size: 24px; font-weight: 700; border-top: 1px solid var(--line); border-bottom: 0; padding-top: 14px; }
.terms { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.terms input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--violet); }
form.inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--bg2); position: relative; }
.step::before { counter-increment: s; content: counter(s); font-family: Rajdhani; font-weight: 700; font-size: 40px; color: var(--violet); opacity: .5; position: absolute; top: 8px; right: 16px; }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; }

/* Customer panel (downloads, orders) */
.panel { border: 1px solid var(--line); border-radius: 16px; background: var(--bg2); overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-body { padding: 20px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--discord), var(--violet)); display: grid; place-items: center; font-weight: 700; }
.roles { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 20px; border-bottom: 1px solid var(--line); }
td { padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.cart-box td, .cart-box th { padding: 10px 0; }
.dl-cell { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 30px 0; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer .credit { justify-content: flex-end; margin-top: 10px; font-size: 11px; opacity: .6; }
footer .credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
footer .credit a:hover { color: var(--violet2); }

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding-top: 50px; text-align: center; }
    .hero p { margin-inline: auto; }
    .cta { justify-content: center; }
    .logo-big { width: 200px; grid-row: 1; }
    .grid { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .cart-box { grid-template-columns: 1fr; }
    .cart-box > div + div { border-left: 0; border-top: 1px solid var(--line); }
    .links { margin-left: 0; }
}
@media (max-width: 600px) {
    .grid, .steps { grid-template-columns: 1fr; }
    th, td { padding: 10px 12px; }
    .hide-s { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Language menu */
details.lang { position: relative; }
details.lang summary { list-style: none; cursor: pointer; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text); }
details.lang summary::-webkit-details-marker { display: none; }
details.lang[open] summary { border-color: var(--violet); }
details.lang div { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: flex; flex-direction: column; min-width: 140px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
details.lang div a { padding: 8px 10px; border-radius: 6px; color: var(--muted); }
details.lang div a:hover, details.lang div a[aria-current] { background: rgba(105, 83, 207, .15); color: var(--text); }

/* Licence portal */
.page-head { padding: 44px 0 6px; }
.page-head h1 { font-family: Rajdhani, sans-serif; font-size: clamp(34px, 5vw, 50px); line-height: 1; margin-bottom: 10px; }
.box { background: linear-gradient(180deg, var(--card), var(--bg2)); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin: 18px 0; }
.box h2 { font-size: 24px; margin-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.box h3 { font-size: 18px; margin-bottom: 6px; }
.box p { color: #cfcbea; }
.box .table-wrap { margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; }
.box code { color: var(--violet2); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
form.stack { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
input, select { font: inherit; font-size: 14px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); min-width: 0; min-height: 42px; }
input:focus, select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(105, 83, 207, .25); }
form.inline input { flex: 1 1 200px; }
main > .alert { margin: 14px 0; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* Setup guide */
  .guide { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; padding: 40px 0 20px; }
  .toc { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
  .toc a { color: var(--muted); padding: 6px 10px; border-left: 2px solid var(--line); }
  .toc a:hover { color: var(--text); border-left-color: var(--violet); }
  .doc h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1; margin-bottom: 12px; }
  .doc .lead { color: var(--muted); font-size: 17px; max-width: 720px; }
  .doc section { padding: 34px 0 10px; border-top: 1px solid var(--line); margin-top: 34px; }
  .doc h2 { font-size: 28px; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
  .doc h2 .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(105, 83, 207, .15); border: 1px solid rgba(105, 83, 207, .35); color: var(--violet2); font-size: 18px; }
  .doc h3 { font-size: 19px; margin: 22px 0 8px; }
  .doc p, .doc li { color: #cfcbea; font-size: 15px; line-height: 1.65; }
  .doc ol, .doc ul { padding-left: 22px; display: grid; gap: 6px; }
  .doc code { background: var(--bg2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 13px; color: var(--violet2); }
  .doc pre { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-size: 13px; color: #d8d4ff; margin: 10px 0; }
  .note { border: 1px solid rgba(105, 83, 207, .4); background: rgba(105, 83, 207, .08); border-radius: 12px; padding: 12px 16px; margin: 14px 0; font-size: 14px; color: #d8d4ff; }
  .warn { border-color: rgba(252, 165, 165, .4); background: rgba(252, 165, 165, .06); color: #fcd2d2; }
  .doc table { margin: 10px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  .doc td, .doc th { padding: 10px 14px; font-size: 14px; }
  .doc td code { white-space: nowrap; }
  .guide.legal { grid-template-columns: 1fr; max-width: 860px; }
  .legal .doc h2 { font-size: 21px; margin: 30px 0 10px; }
  .legal .doc p { margin-bottom: 10px; }
  @media (max-width: 900px) { .guide { grid-template-columns: 1fr; } .toc { position: static; flex-direction: row; flex-wrap: wrap; } }

/* "Classic" colours (◐ menu in the header; Neon stays the default): light, or dark when the computer is in dark mode */
:root[data-theme="classic"] {
    --bg: #f3f4f7; --bg2: #f7f8fa; --card: #ffffff; --line: #e1e4ea; --text: #1b1d22; --muted: #6b7280;
    --violet: #4b5ec8; --violet2: #4b5ec8; --glow: #3d4fb0; --ok: #1f7a45; --err: #b3261e;
    --tint: rgba(75, 94, 200, .1); --tint-line: rgba(75, 94, 200, .35); --body-text: #374151;
}
@media (prefers-color-scheme: dark) {
    :root[data-theme="classic"] {
        --bg: #14161a; --bg2: #1a1d22; --card: #1d2026; --line: #2e323a; --text: #e7e9ee; --muted: #9aa1ad;
        --violet: #5b6ed6; --violet2: #8c9cf0; --glow: #4b5ec8; --ok: #5cc28a; --err: #f08a80;
        --tint: rgba(140, 156, 240, .12); --tint-line: rgba(140, 156, 240, .35); --body-text: #c9ced8;
    }
}
[data-theme="classic"] body::before { display: none; }
[data-theme="classic"] header { background: var(--card); backdrop-filter: none; }
[data-theme="classic"] .btn-violet, [data-theme="classic"] button.solid { background: var(--violet); box-shadow: none; }
[data-theme="classic"] .hero h1 em { text-shadow: none; }
[data-theme="classic"] .logo-big { filter: none; animation: none; }
[data-theme="classic"] .card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
[data-theme="classic"] .card.bundle { border-color: var(--tint-line); box-shadow: none; }
[data-theme="classic"] .pill, [data-theme="classic"] .ico, [data-theme="classic"] .doc h2 .num { background: var(--tint); border-color: var(--tint-line); color: var(--violet2); }
[data-theme="classic"] .pill.ok { background: transparent; color: var(--ok); border-color: var(--ok); }
[data-theme="classic"] .pill.error { background: transparent; color: var(--err); border-color: var(--err); }
[data-theme="classic"] .alert.ok { border-color: var(--ok); }
[data-theme="classic"] .alert.error { border-color: var(--err); }
[data-theme="classic"] details.lang div { box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
[data-theme="classic"] details.lang div a:hover, [data-theme="classic"] details.lang div a[aria-current] { background: var(--tint); }
[data-theme="classic"] input:focus, [data-theme="classic"] select:focus { box-shadow: 0 0 0 3px var(--tint); }
[data-theme="classic"] .box p, [data-theme="classic"] .doc p, [data-theme="classic"] .doc li { color: var(--body-text); }
[data-theme="classic"] .doc pre { color: var(--text); }
[data-theme="classic"] .note { border-color: var(--tint-line); background: var(--tint); color: var(--text); }
[data-theme="classic"] .warn { border-color: var(--err); background: transparent; color: var(--err); }
