﻿:root {
  --bg: #070b14;
  --bg-2: #0b1120;
  --card: rgba(13, 19, 34, 0.86);
  --card-border: rgba(96, 140, 255, 0.12);
  --line: rgba(255, 255, 255, 0.07);
  --text: #e6ebf5;
  --muted: #8a94ab;
  --accent: #4a8af4;
  --accent-2: #6aa3ff;
  --accent-glow: rgba(74, 138, 244, 0.35);
  --ok: #34d399;
  --warn: #f5b82e;
  --bad: #f87171;
  --radius: 12px;
  --head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 15px/1.6 Inter, system-ui, sans-serif;
  background-image: radial-gradient(1200px 600px at 70% -10%, rgba(74, 138, 244, 0.14), transparent 60%),
    radial-gradient(800px 500px at -10% 30%, rgba(74, 138, 244, 0.07), transparent 60%);
  background-attachment: fixed;
}
main { flex: 1; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #9cc0ff; }
img { max-width: 100%; }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 640px; padding-top: 64px; }
.stack > * + * { margin-top: 28px; }
.stack { padding-bottom: 72px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, Consolas, monospace; }

/* Announcement bar */
.announce {
  position: relative; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap;
  padding: 7px 44px; font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(90deg, #2f6fe0, #4a8af4 50%, #2f6fe0);
}
.announce a { color: #fff; background: rgba(255, 255, 255, 0.18); padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.announce-close { position: absolute; right: 12px; background: none; border: 0; color: #fff; cursor: pointer; font-size: 15px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(9, 13, 23, 0.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 9px; color: #fff; font: 800 24px/1 var(--head); letter-spacing: 0.04em; }
/* logo.webp has lots of padding and the symbol is off-centre; enlarge it and clip to the symbol so it sits centred at 28x28 */
.brand img { display: block; flex-shrink: 0; width: 56.4px; height: 52.6px; max-width: none; margin: -10.9px -15.1px -13.7px -13.3px; clip-path: circle(14px at 27.3px 24.9px); }
.brand span { display: block; line-height: 28px; }
.brand b { color: var(--accent); }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-link { color: var(--muted); padding: 6px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 500; display: flex; align-items: center; gap: 7px; }
.nav-link i { font-size: 12px; }
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.nav-link.active { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav-user { display: flex; align-items: center; gap: 8px; }
.nav-user form { margin: 0; }
.user-chip { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 13.5px; max-width: 180px; }
.user-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip img { width: 30px; height: 30px; border-radius: 8px; }
.nav-burger { display: none; color: #fff; font-size: 20px; cursor: pointer; margin-left: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  padding: 11px 20px; border-radius: 9px; font: 600 14px/1 Inter, sans-serif; border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 24px var(--accent-glow); border-color: rgba(255, 255, 255, 0.12); }
.btn-primary:hover { color: #fff; background: var(--accent-2); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: rgba(255, 255, 255, 0.1); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
}
.hero-bg { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: 520px; opacity: 0.22; pointer-events: none; }
.hero-bg img { width: 100%; border-radius: 50%; mix-blend-mode: screen; filter: blur(1px); animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-inner { position: relative; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px;
  border: 1px solid rgba(74, 138, 244, 0.35); background: rgba(74, 138, 244, 0.08);
  color: var(--accent-2); font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
h1, h2, h3 { font-family: var(--head); font-weight: 800; letter-spacing: 0.01em; line-height: 1; margin: 0; }
.hero h1 { font-size: clamp(52px, 9vw, 92px); margin: 18px 0 16px; }
.accent { color: var(--accent); text-shadow: 0 0 40px var(--accent-glow); }
.lead { color: #b9c2d6; max-width: 520px; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-actions.center { justify-content: center; }

/* Page header */
.page-head { padding: 56px 0 36px; }
.page-head h1 { font-size: clamp(44px, 7vw, 68px); margin: 14px 0 10px; }
.profile-head { display: flex; align-items: center; gap: 22px; }
.avatar { width: 96px; height: 96px; border-radius: 16px; border: 2px solid rgba(74, 138, 244, 0.4); box-shadow: 0 0 30px var(--accent-glow); }

/* Cards */
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 22px; margin-bottom: 16px; }
.card-cta { text-align: center; padding: 36px 26px; margin-top: 40px; border-top: 2px solid var(--accent); }
.card-cta h2 { font-size: 28px; margin-bottom: 10px; }
.card-cta p { color: #b9c2d6; max-width: 440px; margin: 0 auto 20px; }
.big-icon { font-size: 44px; color: var(--accent); margin-bottom: 16px; }
.section-title { font-size: 26px; margin-top: 48px !important; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px !important; }
.quick-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 26px 14px;
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); color: var(--text); transition: transform 0.15s, border-color 0.15s;
}
.quick-card:hover { transform: translateY(-3px); border-color: rgba(74, 138, 244, 0.45); color: var(--text); }
.quick-card i { font-size: 28px; margin-bottom: 8px; }
.quick-card span { color: var(--muted); font-size: 12.5px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 18px; text-align: center; }
.stat b { display: block; font: 800 32px/1.1 var(--head); color: #fff; }
.stat span, .stat-grid span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 14px; }
.stat-grid b { display: block; font: 800 24px/1.1 var(--head); }
.row-line { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.online { color: var(--ok); font-weight: 600; }

/* Store */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.product {
  position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 26px 22px;
}
.product.featured { border-color: rgba(74, 138, 244, 0.6); box-shadow: 0 0 0 1px rgba(74, 138, 244, 0.2), 0 12px 40px rgba(74, 138, 244, 0.15); }
.ribbon { position: absolute; top: -11px; left: 22px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; padding: 3px 10px; border-radius: 999px; }
.product h3 { font-size: 28px; }
.product > .muted { margin: 4px 0 14px; font-size: 13px; }
.price { font: 800 36px/1 var(--head); color: #fff; margin-bottom: 18px; }
.price small { font: 500 14px Inter, sans-serif; color: var(--muted); }
.product ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.product li { display: flex; gap: 10px; padding: 5px 0; font-size: 13.5px; color: #c6cede; }
.product li i { color: var(--accent); margin-top: 4px; font-size: 12px; }
.product form, .product .btn { width: 100%; }
.qty-form { display: flex; gap: 8px; align-items: center; }
.qty-form label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.qty-form input { width: 64px; padding: 9px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(0, 0, 0, 0.3); color: #fff; font: inherit; }
.qty-form .btn { flex: 1; width: auto; }
.small-print ul { margin: 0; padding-left: 18px; color: #b9c2d6; }
.small-print li { margin: 6px 0; }

/* Tables, badges, flash */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr.highlight td { background: rgba(245, 184, 46, 0.06); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.badge-ok { background: rgba(52, 211, 153, 0.12); color: var(--ok); }
.badge-warn { background: rgba(245, 184, 46, 0.12); color: var(--warn); }
.badge-bad { background: rgba(248, 113, 113, 0.12); color: var(--bad); }
.flash { margin-top: 20px; padding: 12px 16px; border-radius: 10px; font-size: 14px; border: 1px solid; }
.flash-info { background: rgba(74, 138, 244, 0.08); border-color: rgba(74, 138, 244, 0.3); color: #b9cffb; }
.prose h2 { font-size: 26px; margin: 26px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin: 6px 0; color: #c6cede; }
.prose h2 { display: flex; align-items: center; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.prose h2:first-of-type { border-top: 0; padding-top: 0; }
.prose h2 i { color: var(--accent); font-size: 20px; width: 24px; text-align: center; }
.prose ol { padding-left: 22px; margin: 0; }
.prose ol li { padding-left: 6px; line-height: 1.6; }
.prose ol li::marker { color: var(--accent-2); font-weight: 700; }
.prose strong { color: #fff; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; text-align: center; font-size: 13px; background: rgba(5, 8, 15, 0.6); }
.footer p { margin: 6px 0; }
.footer-links { display: flex; gap: 20px; justify-content: center; margin-bottom: 10px; }
.footer-links a { color: var(--muted); }

@media (max-width: 860px) {
  .nav-inner { flex-wrap: wrap; gap: 12px; }
  .nav-burger { display: block; }
  .nav-links { display: none; order: 3; flex-basis: 100%; flex-direction: column; }
  #nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-user { order: 2; }
  .quick { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-bg { width: 340px; right: -120px; opacity: 0.14; }
}
@media (max-width: 520px) {
  .stat-row, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .user-chip span { display: none; }
  .profile-head { flex-direction: column; align-items: flex-start; }
}
