/* =========================================================
   Complexity Networks Design Co. — "Chrome & Lightning"
   ========================================================= */
:root {
  --bg: #030206;
  --bg-2: #08050f;
  --panel: rgba(14, 9, 26, 0.82);
  --panel-solid: #0d0918;
  --line: rgba(160, 100, 255, 0.22);
  --line-strong: rgba(178, 120, 255, 0.6);
  --violet: #8f3dff;
  --violet-hi: #b47bff;
  --violet-deep: #4b17a8;
  --electric: #e2d0ff;
  --text: #ebe8f3;
  --muted: #a49dba;
  --dim: #6f6886;
  --ok: #5ef2b0;
  --warn: #ffcc66;
  --danger: #ff5f80;
  --chrome: linear-gradient(180deg, #ffffff 0%, #e4e4ee 30%, #9393a5 50%, #f4f4fa 66%, #b6b6c4 100%);
  --glow: 0 0 18px rgba(143, 61, 255, 0.55), 0 0 42px rgba(143, 61, 255, 0.25);
  --c: 14px; /* chamfer size */
  --radius: 6px;
  --font-display: 'Orbitron', 'Exo 2', system-ui, sans-serif;
  --font-body: 'Exo 2', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before { /* faint circuit grid */
  content: '';
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(110, 40, 220, 0.16), transparent 70%),
    linear-gradient(rgba(150, 90, 255, 0.045) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(150, 90, 255, 0.045) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.4) 60%, transparent 100%);
}
#bg-lightning { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.flash { position: fixed; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(ellipse at var(--fx, 50%) 30%, rgba(170,110,255,.18), transparent 60%); opacity: 0; transition: opacity .5s ease-out; }
.flash.on { opacity: 1; transition: none; }

main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-hi); text-decoration: none; }
a:hover { color: var(--electric); }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .02em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
.chrome-text {
  background: var(--chrome);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(143, 61, 255, .55)) drop-shadow(0 2px 0 rgba(60, 20, 120, .8));
}
.eyebrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .28em; font-size: .72rem; color: var(--violet-hi); margin-bottom: .8rem; display: inline-flex; align-items: center; gap: .6em; }
.eyebrow::before { content: ''; width: 26px; height: 2px; background: linear-gradient(90deg, transparent, var(--violet-hi)); box-shadow: var(--glow); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* ---------- chamfered surfaces (echo the logo's cut corners) ---------- */
.chamfer { clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.panel {
  position: relative;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(135deg, var(--line-strong), var(--line) 30%, var(--line) 70%, var(--line-strong)) border-box;
  border: 1px solid transparent;
  padding: 28px;
  backdrop-filter: blur(8px);
}

/* ---------- buttons ---------- */
.btn {
  --bc: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 14px 26px; border: 0; cursor: pointer; color: #fff; text-decoration: none;
  clip-path: polygon(var(--bc) 0, 100% 0, 100% calc(100% - var(--bc)), calc(100% - var(--bc)) 100%, 0 100%, 0 var(--bc));
  background: linear-gradient(180deg, #a35bff, #6a1fe0 60%, #4b13a6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
  transition: filter .2s, transform .15s;
  position: relative;
}
.btn:hover { color: #fff; filter: brightness(1.18) drop-shadow(0 0 12px rgba(160, 90, 255, .9)); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; filter: grayscale(.5); }
.btn-ghost {
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    linear-gradient(135deg, var(--violet-hi), rgba(180,120,255,.25)) border-box;
  border: 1px solid transparent; color: var(--electric);
}
.btn-ghost:hover { color: #fff; background: linear-gradient(rgba(60, 20, 120, .6), rgba(60, 20, 120, .6)) padding-box, linear-gradient(135deg, var(--violet-hi), var(--violet)) border-box; }
.btn-chrome { background: var(--chrome); color: #120a22; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.btn-chrome:hover { color: #120a22; }
.btn-danger { background: linear-gradient(180deg, #ff6f8e, #c0234a); }
.btn-sm { padding: 9px 16px; font-size: .7rem; --bc: 7px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--violet-hi); cursor: pointer; font: inherit; padding: 0; }
.link-btn:hover { color: var(--electric); text-decoration: underline; }
.link-btn.danger { color: var(--danger); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(3, 2, 6, .72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--violet-hi), transparent); opacity: .7; }
.nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand img { height: 44px; width: auto; mix-blend-mode: screen; mask-image: radial-gradient(ellipse 60% 75% at 50% 50%, #000 60%, transparent 100%); }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase; }
.brand span small { display: block; color: var(--muted); font-size: .62rem; letter-spacing: .3em; }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a { display: block; padding: 8px 14px; color: var(--muted); font-family: var(--font-display); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; position: relative; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: var(--violet-hi); box-shadow: var(--glow); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; color: var(--text); background: rgba(143, 61, 255, .08); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.icon-btn:hover { color: #fff; border-color: var(--violet-hi); box-shadow: var(--glow); }
.icon-btn svg { width: 20px; height: 20px; }
.badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--violet); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; box-shadow: var(--glow); }
.menu-toggle { display: none; }

@media (max-width: 920px) {
  .brand span { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 12px 16px 20px; background: #05030a; box-shadow: 0 20px 40px rgba(0,0,0,.6); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .2s, opacity .2s, visibility .2s; margin: 0; }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 14px 8px; border-bottom: 1px solid rgba(160,100,255,.08); }
  .nav-links a.active::after { display: none; }
  .nav-actions { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100vh - 72px); display: grid; place-items: center; text-align: center; padding: 10px 0 64px; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; } /* no z-index: keeps the logo's screen blend working */
.hero-logo {
  width: min(780px, 94vw); margin: -3% auto -2%; mix-blend-mode: screen; animation: logo-in 1.1s cubic-bezier(.2,.8,.2,1) both;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 5%, #000 95%, transparent);
  mask-composite: intersect;
}
@keyframes logo-in { from { opacity: 0; transform: scale(.94); filter: brightness(2.5) blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hero h1 { font-size: clamp(1.3rem, 2.8vw, 2rem); margin: 0 auto .6rem; max-width: 820px; }
.hero .lead { margin: 0 auto 2rem; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-tags { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }
.tag { font-family: var(--font-display); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; padding: 6px 12px; border: 1px solid var(--line); color: var(--muted); background: rgba(143, 61, 255, .06); }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; z-index: 1; color: var(--dim); font-size: .7rem; letter-spacing: .3em; font-family: var(--font-display); animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head p { margin: 0; }
.page-hero { padding: 72px 0 28px; }
.page-hero .lead { margin-top: 0; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); border: 0; margin: 0; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* service cards */
.service-card { display: flex; flex-direction: column; gap: 12px; transition: transform .25s, filter .25s; color: var(--text); }
.service-card:hover { transform: translateY(-4px); filter: drop-shadow(0 0 18px rgba(143, 61, 255, .45)); color: var(--text); }
.service-icon { width: 54px; height: 54px; display: grid; place-items: center; color: var(--electric); background: radial-gradient(circle, rgba(143, 61, 255, .35), rgba(143, 61, 255, .05) 70%); border: 1px solid var(--line-strong); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.service-icon svg { width: 26px; height: 26px; filter: drop-shadow(0 0 6px rgba(190, 140, 255, .9)); }
.service-card p { color: var(--muted); margin: 0; flex: 1; }
.service-card .more { font-family: var(--font-display); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--violet-hi); }

/* product cards */
.product-card { display: flex; flex-direction: column; gap: 14px; }
.product-card h3 { margin: 0; }
.product-top { display: flex; align-items: center; gap: 14px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; }
.price small { font-size: .62rem; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; display: block; font-weight: 600; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--muted); font-size: .93rem; }
.features li { display: flex; gap: 10px; align-items: baseline; }
.features li::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 2px; background: var(--violet-hi); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); box-shadow: var(--glow); }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.meta { font-size: .82rem; color: var(--dim); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.chip { font-family: var(--font-display); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; padding: 9px 16px; border: 1px solid var(--line); background: rgba(143, 61, 255, .05); color: var(--muted); cursor: pointer; }
.chip:hover { color: #fff; border-color: var(--violet-hi); }
.chip.active { color: #fff; background: linear-gradient(180deg, rgba(163, 91, 255, .5), rgba(106, 31, 224, .5)); border-color: var(--violet-hi); box-shadow: var(--glow); }

/* portfolio */
.work-card { position: relative; overflow: hidden; cursor: zoom-in; background: var(--panel-solid); border: 1px solid var(--line); aspect-ratio: 3 / 2; padding: 0; color: inherit; font: inherit; text-align: left; width: 100%; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .4s; }
.work-card:hover img { transform: scale(1.05); filter: brightness(1.12) saturate(1.15); }
.work-card .work-info { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(3, 2, 6, .95)); }
.work-card h3 { margin: 4px 0 0; font-size: 1rem; }
.work-card .cat { font-family: var(--font-display); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--violet-hi); }
.work-card:hover { border-color: var(--violet-hi); box-shadow: var(--glow); }

.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(2, 1, 5, .92); backdrop-filter: blur(6px); }
.lightbox-inner { max-width: 1100px; width: 100%; }
.lightbox img { width: 100%; max-height: 72vh; object-fit: contain; border: 1px solid var(--line-strong); box-shadow: var(--glow); background: #000; }
.lightbox .close { position: absolute; top: 18px; right: 18px; }

/* process steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 52px; }
.step::before { counter-increment: step; content: '0' counter(step); position: absolute; top: 18px; left: 28px; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step p { color: var(--muted); margin: 0; }

.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item svg { flex: none; width: 28px; height: 28px; color: var(--violet-hi); filter: drop-shadow(0 0 6px rgba(160, 90, 255, .8)); }
.trust-item p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }

.cta-band { text-align: center; padding: 56px 28px; overflow: hidden; }
.cta-band canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cta-band > *:not(canvas) { position: relative; }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.field { display: grid; gap: 7px; }
.field label, .label { font-family: var(--font-display); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.field .hint { font-size: .8rem; color: var(--dim); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: rgba(5, 3, 12, .85); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 130px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--violet-hi) 50%), linear-gradient(135deg, var(--violet-hi) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
select option { background: var(--panel-solid); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet-hi); box-shadow: 0 0 0 3px rgba(143, 61, 255, .25), var(--glow); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--violet); padding: 0; margin: 0; flex: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.alert { padding: 14px 16px; border: 1px solid; border-radius: var(--radius); font-size: .95rem; }
.alert-error { border-color: rgba(255, 95, 128, .5); background: rgba(255, 95, 128, .08); color: #ffc2cf; }
.alert-ok { border-color: rgba(94, 242, 176, .45); background: rgba(94, 242, 176, .07); color: #c4ffe6; }
.alert-info { border-color: var(--line-strong); background: rgba(143, 61, 255, .08); color: var(--electric); }
.demo-banner { text-align: center; font-size: .82rem; padding: 7px 16px; background: linear-gradient(90deg, rgba(255, 204, 102, .1), rgba(255, 204, 102, .18), rgba(255, 204, 102, .1)); color: var(--warn); border-bottom: 1px solid rgba(255, 204, 102, .25); }

/* ---------- auth / account ---------- */
.auth-wrap { max-width: 480px; margin: 0 auto; }
.tabs { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { font-family: var(--font-display); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; background: none; border: 0; color: var(--muted); padding: 14px 18px; cursor: pointer; position: relative; white-space: nowrap; }
.tab:hover { color: #fff; }
.tab.active { color: #fff; }
.tab.active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--violet-hi); box-shadow: var(--glow); }

.account-grid { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.side-nav { display: grid; gap: 4px; position: sticky; top: 96px; }
.side-nav button { text-align: left; font-family: var(--font-display); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; background: none; border: 1px solid transparent; color: var(--muted); padding: 13px 16px; cursor: pointer; }
.side-nav button:hover { color: #fff; background: rgba(143, 61, 255, .06); }
.side-nav button.active { color: #fff; border-color: var(--line-strong); background: linear-gradient(90deg, rgba(143, 61, 255, .22), transparent); box-shadow: inset 3px 0 0 var(--violet-hi); }
@media (max-width: 820px) { .account-grid { grid-template-columns: 1fr; } .side-nav { position: static; grid-auto-flow: column; overflow-x: auto; } .side-nav button { white-space: nowrap; } }

.card-list { display: grid; gap: 12px; }
.pay-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); background: rgba(5, 3, 12, .6); border-radius: var(--radius); }
.pay-card.selectable { cursor: pointer; }
.pay-card.selected, .pay-card.selectable:hover { border-color: var(--violet-hi); box-shadow: var(--glow); }
.card-brand { font-family: var(--font-display); font-weight: 700; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: 8px 10px; min-width: 64px; text-align: center; background: var(--chrome); color: #120a22; border-radius: 4px; }
.pay-card .grow { flex: 1; }
.pill { display: inline-block; font-family: var(--font-display); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; padding: 4px 9px; border: 1px solid var(--line-strong); color: var(--electric); border-radius: 20px; }
.status { display: inline-block; font-family: var(--font-display); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 20px; border: 1px solid; white-space: nowrap; }
.status-paid, .status-processing { color: #c4b5ff; border-color: rgba(180, 140, 255, .5); }
.status-in_progress { color: var(--warn); border-color: rgba(255, 204, 102, .5); }
.status-delivered { color: var(--ok); border-color: rgba(94, 242, 176, .5); }
.status-cancelled, .status-refunded { color: var(--danger); border-color: rgba(255, 95, 128, .5); }
.status-pending_payment { color: var(--muted); border-color: var(--line); }

.order { border: 1px solid var(--line); background: rgba(5, 3, 12, .5); border-radius: var(--radius); }
.order summary { list-style: none; cursor: pointer; display: flex; gap: 16px; align-items: center; padding: 16px 18px; flex-wrap: wrap; }
.order summary::-webkit-details-marker { display: none; }
.order[open] summary { border-bottom: 1px solid var(--line); }
.order .order-body { padding: 16px 18px; display: grid; gap: 14px; }
.order h4 { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.pre { white-space: pre-wrap; word-break: break-word; margin: 0; }

/* ---------- cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-line { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); }
.qty button { background: none; border: 0; color: var(--text); width: 34px; height: 34px; cursor: pointer; font-size: 1.1rem; }
.qty button:hover { color: var(--violet-hi); }
.qty span { min-width: 26px; text-align: center; font-weight: 600; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--muted); }
.summary-row.total { color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; }
.sticky { position: sticky; top: 96px; }
.step-title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.step-num { width: 30px; height: 30px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .8rem; background: var(--violet); box-shadow: var(--glow); clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.step-title h2 { font-size: 1.1rem; margin: 0; }
#payment-element { padding: 16px; background: rgba(5, 3, 12, .85); border: 1px solid var(--line); border-radius: var(--radius); min-height: 60px; }
.secure-note { display: flex; gap: 10px; align-items: center; font-size: .82rem; color: var(--dim); }
.secure-note svg { width: 16px; height: 16px; color: var(--ok); flex: none; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty svg { width: 48px; height: 48px; color: var(--violet-hi); margin: 0 auto 12px; filter: drop-shadow(0 0 8px rgba(160, 90, 255, .8)); }

/* ---------- admin ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat .num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; }
.stat .label { display: block; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-display); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.thumb { width: 64px; height: 44px; object-fit: cover; border: 1px solid var(--line); }
.row-actions { display: flex; gap: 12px; }
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(2, 1, 5, .85); backdrop-filter: blur(4px); overflow-y: auto; }
.modal .panel { width: 100%; max-width: 680px; max-height: calc(100vh - 40px); overflow-y: auto; }
.upload-preview { width: 100%; max-height: 220px; object-fit: contain; background: #000; border: 1px solid var(--line); }

/* ---------- legal pages ---------- */
.legal { padding-bottom: 80px; }
.legal h2 { font-size: 1.25rem; margin-top: 2.4em; padding-top: .6em; border-top: 1px solid var(--line); }
.legal h3 { font-size: 1rem; margin-top: 1.6em; color: var(--electric); }
.legal p, .legal li { color: #cfc9de; }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: .4em; }
.legal .updated { color: var(--muted); font-size: .9rem; }
.legal .toc { columns: 2 220px; font-size: .92rem; padding-left: 1.2em; }
.legal table { margin: 1em 0; }
.legal .callout { border-left: 3px solid var(--violet-hi); padding: 12px 18px; background: rgba(143, 61, 255, .07); margin: 1.4em 0; }
.legal strong { color: var(--text); }

/* ---------- footer ---------- */
.site-footer { margin-top: 60px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(10, 5, 20, .6), #020104); padding: 56px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand img { width: 200px; mix-blend-mode: screen; margin-bottom: 10px; mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 60%, transparent 100%); }
.footer-brand p { color: var(--muted); max-width: 320px; }
.site-footer h4 { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #cfc9de; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--dim); font-size: .82rem; }

/* ---------- cookie banner & toast ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 720px; margin: 0 auto; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 18px 22px; }
.cookie-banner p { margin: 0; flex: 1 1 320px; font-size: .9rem; color: var(--muted); }
.cookie-banner .actions { display: flex; gap: 10px; }
.toast-zone { position: fixed; right: 18px; bottom: 18px; z-index: 120; display: grid; gap: 10px; max-width: 360px; }
.toast { padding: 14px 18px; background: var(--panel-solid); border: 1px solid var(--line-strong); box-shadow: var(--glow); font-size: .93rem; animation: toast-in .25s ease-out; }
.toast.error { border-color: rgba(255, 95, 128, .6); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

.spinner { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { min-height: 220px; background: linear-gradient(90deg, rgba(143, 61, 255, .04), rgba(143, 61, 255, .12), rgba(143, 61, 255, .04)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -200% 0; } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .panel { padding: 20px; }
  .cart-line { grid-template-columns: 1fr auto; }
  .cart-line .service-icon { display: none; }
}
#site-header { min-height: 72px; display: block; }
