/* ==========================================================================
   DBOPH - "Glass / Frosted Minimal" design system (2026-09-30)
   Shared by dboph.com and the account portal (account.dboph.com). Every class
   the older pages use is kept, restyled, so no page breaks.

   Palette (Harvey's brief):
     backgrounds #050A12 #071525 #0B1B2E   accent #FF9D00 #FFB800   secondary #FFD45A
     text #FFFFFF #C8D0DA #7F8A99           success #39E75F          danger #FF4D4D
     glass rgba(10,20,35,.65) + backdrop blur, thin borders, thin orange highlights
   ========================================================================== */

:root {
  --bg-0: #050A12;
  --bg-1: #071525;
  --bg-2: #0B1B2E;
  --glass: rgba(10, 20, 35, .65);
  --glass-strong: rgba(8, 16, 29, .82);
  --line: rgba(160, 190, 230, .12);
  --line-strong: rgba(160, 190, 230, .22);

  --accent: #FF9D00;
  --accent-2: #FFB800;
  --accent-3: #FFD45A;
  --accent-soft: rgba(255, 157, 0, .14);

  --text: #FFFFFF;
  --text-2: #C8D0DA;
  --text-3: #7F8A99;

  --ok: #39E75F;
  --bad: #FF4D4D;
  --warn: #FFB800;

  /* the names the older pages use */
  --bg: var(--bg-0);
  --panel: var(--glass);
  --edge: var(--line);
  --orange: var(--accent);
  --gold: var(--accent-2);
  --gold-bright: var(--accent-3);
  --dim: var(--text-2);
  --faint: var(--text-3);

  --radius: 8px;
  --radius-lg: 12px;
  --wrap: 1240px;
  --blur: blur(14px) saturate(130%);
  --shadow: 0 18px 40px rgba(0, 0, 0, .35);
  --head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 157, 0, .06), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(40, 90, 170, .10), transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 55%);
  background-attachment: fixed;
  color: var(--text-2);
  font: 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--head); color: var(--text); letter-spacing: -.01em; }
a { color: var(--accent-2); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-3); }
img { max-width: 100%; }
::selection { background: rgba(255, 157, 0, .35); color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ------------------------------------------------------------------ glass */

.glass, .card, .panel {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .04);
}
/* the thin orange highlight on top of a panel */
.glass.lit, .panel { position: relative; }
.glass.lit::before, .panel::before {
  content: ''; position: absolute; left: 22px; right: 22px; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 157, 0, .75), transparent);
}

/* ------------------------------------------------------------------ header */

/* The blur sits on a pseudo-element, NOT on the header: backdrop-filter makes an element the containing block
   for position:fixed descendants, which squeezed the full-screen mobile menu into the 64 px bar. */
header.site {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
}
header.site::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(5, 10, 18, .55);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  transition: background .3s var(--ease);
}
header.site.scrolled::before { background: rgba(5, 10, 18, .86); }
header.site .wrap { display: flex; align-items: center; gap: 22px; height: 72px; max-width: 1480px; }

.brand { display: flex; align-items: center; gap: 11px; flex: none; color: var(--text);
         font: 800 21px/1 var(--head); letter-spacing: .02em; }
.brand img { height: 38px; width: 38px; display: block; }
.brand .ph { color: var(--accent); }
.brand:hover { color: var(--text); }

nav.main { display: flex; gap: 4px; align-items: center; margin: 0 auto; }
nav.main a {
  position: relative; padding: 8px 9px; white-space: nowrap;
  color: var(--text-2); font: 600 12px/1 var(--head); letter-spacing: .08em; text-transform: uppercase;
}
nav.main a:hover { color: var(--text); }
nav.main a.on { color: var(--accent-2); }
nav.main a.on::after {
  content: ''; position: absolute; left: 9px; right: 9px; bottom: -14px; height: 2px;
  background: var(--accent); border-radius: 2px; box-shadow: 0 0 12px rgba(255, 157, 0, .6);
}

.head-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px;
  color: var(--text-2); background: transparent; border: 1px solid transparent; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, .05); border-color: var(--line); }
.icon-btn svg { width: 20px; height: 20px; }

.nav-toggle { display: none; }

/* ------------------------------------------------------------------ buttons */

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; cursor: pointer; border-radius: 8px;
  border: 1px solid rgba(255, 212, 90, .55);
  font: 800 13.5px/1 var(--head); letter-spacing: .12em; text-transform: uppercase;
  color: #1E1100;
  background: linear-gradient(180deg, #FFC43D 0%, var(--accent) 100%);
  box-shadow: 0 10px 26px rgba(255, 157, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}
.btn:hover { color: #1E1100; transform: translateY(-1px); filter: brightness(1.06);
             box-shadow: 0 14px 32px rgba(255, 157, 0, .30), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, .icon-btn:focus-visible, nav.main a:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 3px; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn.ghost {
  color: var(--text); background: rgba(255, 255, 255, .04);
  border-color: var(--line-strong); box-shadow: none;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.btn.ghost:hover { color: var(--text); border-color: rgba(255, 157, 0, .6); background: rgba(255, 157, 0, .08); }
.btn.danger { color: #fff; background: linear-gradient(180deg, #ff6a6a, #d93636); border-color: rgba(255, 120, 120, .5);
              box-shadow: 0 10px 24px rgba(255, 77, 77, .18); }
.btn.danger:hover { color: #fff; }
.btn.sm { padding: 9px 16px; font-size: 11.5px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }

/* PLAY NOW: the one prominent button in the bar - a Dragon Ball ahead of the label, no pulse */
.btn.play { padding: 11px 20px 11px 12px; gap: 11px; }
.btn.play .db, .btn.ball::after {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .9) 0 10%, rgba(255, 255, 255, 0) 40%),
    radial-gradient(circle at 50% 50%, #ffae2b 0 55%, #e06d05 100%);
  box-shadow: inset 0 0 0 1.5px rgba(40, 18, 0, .55);
  display: inline-grid; place-items: center; color: #c21b00; font-size: 9px; line-height: 1;
}
.btn.ball::after { content: ''; width: 16px; height: 16px; order: -1; }

/* ------------------------------------------------------------------ type helpers */

.eyebrow { display: flex; width: fit-content; align-items: center; gap: 12px; margin: 0 0 14px;
           font: 600 12px/1 var(--head); letter-spacing: .32em; text-transform: uppercase; color: var(--text-2); }
.eyebrow.line::before { content: ''; width: 34px; height: 2px; background: var(--accent); border-radius: 2px; }
.muted { color: var(--text-3); }
.accent { color: var(--accent-2); }

section { padding: 72px 0; }
section h2 { margin: 0 0 6px; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent-2); }
section h2 + p.sub { margin: 0 0 30px; color: var(--text-3); }
.section-title { margin: 0; font: 700 clamp(26px, 3.2vw, 38px)/1.15 var(--head); color: var(--text); letter-spacing: -.01em; text-transform: none; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.more { font: 700 12px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); white-space: nowrap; }
.more:hover { color: var(--accent-3); }

/* ------------------------------------------------------------------ hero */

.hero-g { position: relative; min-height: min(calc(100vh - 72px), 900px); min-height: min(calc(100svh - 72px), 900px);
          display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-g .bg { position: absolute; inset: -6% -3%; z-index: -3; background: #07101d center/cover no-repeat;
              transform: translate3d(0, var(--par, 0px), 0) scale(1.04); will-change: transform; }
.hero-g::before {           /* cinematic grade: dark left for the text, dusk tint, fade into the page */
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 10, 18, .94) 0%, rgba(5, 10, 18, .78) 28%, rgba(5, 10, 18, .25) 60%, rgba(5, 10, 18, .35) 100%),
    linear-gradient(180deg, rgba(7, 21, 37, .45) 0%, rgba(20, 40, 80, .25) 45%, rgba(5, 10, 18, .96) 100%),
    radial-gradient(70% 60% at 78% 20%, rgba(255, 170, 60, .16), transparent 70%);
}
.hero-g .haze {             /* slow drifting light - the only moving thing in the hero */
  position: absolute; inset: -20%; z-index: -1; pointer-events: none; opacity: .55;
  background:
    radial-gradient(40% 25% at 30% 30%, rgba(255, 255, 255, .06), transparent 70%),
    radial-gradient(35% 22% at 70% 60%, rgba(255, 190, 110, .06), transparent 70%);
  animation: drift 38s linear infinite alternate;
}
@keyframes drift { from { transform: translate3d(-4%, 0, 0); } to { transform: translate3d(4%, -2%, 0); } }
.hero-g canvas.motes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.hero-g .wrap { width: 100%; padding-top: 70px; padding-bottom: 150px; }
.hero-g h1 { margin: 0 0 22px; max-width: 14ch; font: 800 clamp(40px, 6.2vw, 76px)/1.02 var(--head); letter-spacing: -.02em; color: #fff;
             text-shadow: 0 4px 30px rgba(0, 0, 0, .45); }
.hero-g h1 .hl { color: var(--accent-2); background: linear-gradient(180deg, #FFD45A, #FF9D00); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-g .lead { max-width: 40ch; margin: 0 0 32px; color: var(--text-2); font-size: clamp(16px, 1.5vw, 19px); }
.hero-g .cta { display: flex; gap: 14px; flex-wrap: wrap; }

.status-pill, .phase {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; margin-bottom: 22px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(5, 10, 18, .5);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  font: 600 12px/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2);
}
.phase .spark { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.dot.up { background: var(--ok); box-shadow: 0 0 0 4px rgba(57, 231, 95, .15); }
.dot.down { background: var(--bad); box-shadow: 0 0 0 4px rgba(255, 77, 77, .15); }

/* the old hero (sub pages) */
.hero { position: relative; min-height: 380px; display: flex; align-items: center; background: #0a1020 center/cover no-repeat; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 10, 18, .94) 10%, rgba(5, 10, 18, .5) 60%, rgba(5, 10, 18, .9) 100%); }
.hero .wrap { position: relative; z-index: 2; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { margin: 0 0 8px; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; }
.hero h1 .ph { color: var(--accent); }
.hero p.lead { margin: 0 0 26px; max-width: 620px; color: var(--text-2); font-size: 18px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* page header band for inner pages */
.page-head { position: relative; padding: 70px 0 44px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-head .bg { position: absolute; inset: 0; z-index: -2; background: center/cover no-repeat; opacity: .5; }
.page-head::after { content: ''; position: absolute; inset: 0; z-index: -1;
                    background: linear-gradient(180deg, rgba(5, 10, 18, .55), var(--bg-0)), linear-gradient(90deg, rgba(5, 10, 18, .85), rgba(5, 10, 18, .3)); }
.page-head h1 { margin: 0 0 10px; font: 800 clamp(32px, 4.6vw, 54px)/1.05 var(--head); }
.page-head p { margin: 0; max-width: 62ch; color: var(--text-2); font-size: 17px; }

/* ------------------------------------------------------------------ stat cards */

.stat-row { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -92px; }
.stat {
  display: flex; align-items: center; gap: 18px; padding: 22px 24px;
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.stat:hover { border-color: rgba(255, 157, 0, .35); transform: translateY(-2px); }
.stat .ico { width: 58px; height: 58px; flex: none; display: grid; place-items: center; border-radius: 50%;
             border: 1px solid rgba(255, 157, 0, .35); background: radial-gradient(circle, rgba(255, 157, 0, .16), transparent 70%); color: var(--accent-2); }
.stat .ico.green { border-color: rgba(57, 231, 95, .35); background: radial-gradient(circle, rgba(57, 231, 95, .14), transparent 70%); color: var(--ok); }
.stat .ico svg { width: 30px; height: 30px; }
.stat b { display: block; font: 800 38px/1 var(--head); color: #fff; font-variant-numeric: tabular-nums; }
.stat .lbl { display: block; margin-top: 6px; font: 700 12px/1.2 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.stat .sub { display: block; margin-top: 3px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }

/* the old strip still used by some pages */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(10, 20, 35, .45); }
.stats div { padding: 26px 18px; text-align: center; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats b { display: block; font: 800 clamp(28px, 4vw, 42px)/1 var(--head); color: var(--accent-3); font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 7px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }

/* ------------------------------------------------------------------ image cards */

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 360px; overflow: hidden; border-radius: var(--radius-lg);
  border: 1px solid var(--line); color: var(--text-2); isolation: isolate;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
            transition: transform .7s var(--ease); }
.tile::after { content: ''; position: absolute; inset: 0; z-index: -1;
               background: linear-gradient(180deg, rgba(5, 10, 18, 0) 25%, rgba(5, 10, 18, .6) 55%, rgba(5, 10, 18, .95) 100%); }
.tile:hover { border-color: rgba(255, 157, 0, .5); color: var(--text-2); }
.tile:hover img { transform: scale(1.06); }
.tile .tile-in {
  margin: 10px; padding: 14px 14px 14px 16px; border-radius: 10px;
  background: rgba(8, 16, 29, .62); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto 1fr; gap: 4px 12px; align-items: start;
  min-height: 128px;
}
.tile .kind { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; font: 700 12px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.tile .kind svg { width: 20px; height: 20px; color: var(--accent-2); }
.tile h3 { margin: 6px 0 0; font-size: 17px; line-height: 1.25; }
.tile p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .go { grid-row: 2 / span 2; grid-column: 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
            border: 1px solid rgba(255, 157, 0, .55); color: var(--accent-2); transition: background .25s var(--ease), color .25s var(--ease); }
.tile:hover .go { background: var(--accent); color: #1E1100; }

/* ------------------------------------------------------------------ generic grid + cards */

.grid { display: grid; gap: 18px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.card { padding: 24px 26px; }
.card h3 { margin: 0 0 8px; font-size: 17px; color: var(--text); }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }
.card.hoverable { transition: border-color .25s var(--ease), transform .25s var(--ease); }
.card.hoverable:hover { border-color: rgba(255, 157, 0, .35); transform: translateY(-2px); }

/* news cards */
.news-card { display: flex; flex-direction: column; gap: 10px; }
.news-card .date { font: 700 11.5px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); }
.news-card h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.news-card p { color: var(--text-2); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* server status */
.server { display: grid; grid-template-columns: 1.1fr repeat(4, 1fr); gap: 0; padding: 0; overflow: hidden; }
.server > div { padding: 26px 26px; border-left: 1px solid var(--line); }
.server > div:first-child { border-left: 0; }
.server .k { display: block; font: 700 11px/1 var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.server .v { display: flex; align-items: center; gap: 10px; font: 800 26px/1 var(--head); color: #fff; font-variant-numeric: tabular-nums; }
.server .v.ok { color: var(--ok); }
.server .v.bad { color: var(--bad); }
.server .v.small { font-size: 17px; }
.server .note { margin: 8px 0 0; font-size: 12.5px; color: var(--text-3); }
.server .title { display: flex; flex-direction: column; justify-content: center; background: linear-gradient(90deg, rgba(255, 157, 0, .08), transparent); }
.server .title h3 { margin: 0 0 4px; font-size: 20px; }

/* join band */
.join { position: relative; overflow: hidden; isolation: isolate; padding: 60px 0; text-align: center; }
.join .bg { position: absolute; inset: 0; z-index: -2; background: center/cover no-repeat; opacity: .35; }
.join::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 50% 50%, rgba(5, 10, 18, .55), var(--bg-0)); }
.join h2 { margin: 0 0 12px; font: 800 clamp(28px, 3.6vw, 44px)/1.1 var(--head); letter-spacing: -.01em; text-transform: none; color: #fff; }
.join p { margin: 0 auto 28px; max-width: 52ch; color: var(--text-2); }
.join .cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.band { padding: 54px 0; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
        background: radial-gradient(900px 300px at 50% 0%, rgba(255, 157, 0, .10), transparent 70%), rgba(7, 21, 37, .6); }
.band h2 { color: #fff; font-size: clamp(22px, 3.4vw, 32px); margin: 0 0 10px; letter-spacing: 0; text-transform: none; }
.band p { color: var(--text-2); margin: 0 auto 24px; max-width: 52ch; }

/* ------------------------------------------------------------------ forms */

.panel { max-width: 460px; margin: 56px auto; padding: 36px 36px 32px; }
.panel.wide { max-width: 880px; }
.panel h1 { margin: 0 0 4px; font-size: 26px; }
.panel .sub { margin: 0 0 24px; color: var(--text-3); font-size: 14.5px; }

label { display: block; margin: 0 0 7px; font: 700 11.5px/1.2 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.field { margin-bottom: 18px; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 13px 15px; border-radius: 8px;
  background: rgba(3, 8, 15, .55); color: var(--text);
  border: 1px solid var(--line-strong); font: 15px var(--body);
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: rgba(255, 157, 0, .7); background: rgba(3, 8, 15, .75);
                                            box-shadow: 0 0 0 3px rgba(255, 157, 0, .14); }
input::placeholder, textarea::placeholder { color: var(--text-3); }
.hint { margin-top: 7px; font-size: 12.5px; color: var(--text-3); }
.check { display: flex; align-items: flex-start; gap: 10px; font: 14px/1.4 var(--body); letter-spacing: 0; text-transform: none; color: var(--text-2); cursor: pointer; }
.check input { margin-top: 2px; accent-color: var(--accent); width: 16px; height: 16px; }

.msg { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14.5px; border: 1px solid; }
.msg.error { background: rgba(255, 77, 77, .10); border-color: rgba(255, 77, 77, .4); color: #ffb9b9; }
.msg.ok { background: rgba(57, 231, 95, .08); border-color: rgba(57, 231, 95, .35); color: #b3f3c1; }
.msg.warn { background: rgba(255, 184, 0, .08); border-color: rgba(255, 184, 0, .35); color: #ffe19a; }
.msg ul { margin: 6px 0 0; padding-left: 20px; }

/* ------------------------------------------------------------------ tables, badges */

table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data th { text-align: left; padding: 12px 14px; font: 700 11px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--line); }
table.data td { padding: 14px; border-bottom: 1px solid rgba(160, 190, 230, .07); color: var(--text-2); }
table.data td.name { color: var(--text); font-weight: 600; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background .15s var(--ease); }
table.data tbody tr:hover { background: rgba(255, 255, 255, .025); }
.empty { padding: 30px; text-align: center; color: var(--text-3); }

.kv { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; font-size: 15px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; color: var(--text); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid transparent;
         font: 700 10.5px/1.2 var(--head); letter-spacing: .12em; text-transform: uppercase; }
.badge.active, .badge.completed, .badge.ok { background: rgba(57, 231, 95, .10); border-color: rgba(57, 231, 95, .3); color: var(--ok); }
.badge.block, .badge.failed, .badge.bad { background: rgba(255, 77, 77, .10); border-color: rgba(255, 77, 77, .3); color: var(--bad); }
.badge.pending { background: rgba(255, 184, 0, .10); border-color: rgba(255, 184, 0, .3); color: var(--warn); }
.badge.refunded, .badge.muted { background: rgba(127, 138, 153, .12); border-color: rgba(127, 138, 153, .3); color: var(--text-2); }
.badge.gm { background: rgba(80, 130, 255, .14); border-color: rgba(80, 130, 255, .35); color: #9bb8ff; }
.badge.demo { background: rgba(170, 120, 255, .12); border-color: rgba(170, 120, 255, .35); color: #cdb3ff; }

/* ------------------------------------------------------------------ footer */

footer.site { margin-top: 40px; border-top: 1px solid var(--line); background: rgba(3, 7, 13, .7); color: var(--text-3); font-size: 14px; }
footer.site .foot { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding: 54px 0 36px; }
footer.site h4 { margin: 0 0 14px; font: 700 12px/1 var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--text); }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
footer.site a { color: var(--text-3); }
footer.site a:hover { color: var(--accent-2); }
footer.site .brand, footer.site .brand:hover { color: var(--text); }
footer.site .about p { margin: 12px 0 0; max-width: 34ch; }
footer.site .legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0 30px; border-top: 1px solid var(--line); font-size: 13px; }

/* ------------------------------------------------------------------ search overlay */

.search-ov { position: fixed; inset: 0; z-index: 80; display: none; align-items: flex-start; justify-content: center; padding: 12vh 20px 20px;
             background: rgba(3, 7, 13, .65); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.search-ov.open { display: flex; }
.search-box { width: min(620px, 100%); padding: 18px; }
.search-box input { font-size: 17px; }
.search-box ul { list-style: none; margin: 12px 0 0; padding: 0; max-height: 50vh; overflow: auto; }
.search-box li a { display: block; padding: 11px 12px; border-radius: 8px; color: var(--text-2); }
.search-box li a:hover, .search-box li a.sel { background: rgba(255, 157, 0, .10); color: var(--text); }
.search-box li small { display: block; color: var(--text-3); font-size: 12px; }

/* ------------------------------------------------------------------ reveal + motion */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero-g .rise { opacity: 0; transform: translateY(16px); animation: rise .9s var(--ease) forwards; }
.hero-g .rise.d1 { animation-delay: .08s; } .hero-g .rise.d2 { animation-delay: .18s; } .hero-g .rise.d3 { animation-delay: .28s; } .hero-g .rise.d4 { animation-delay: .38s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-g .haze, .hero-g .rise { animation: none; opacity: 1; transform: none; }
  .hero-g .bg { transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tile img, .tile, .stat, .btn { transition: none; }
}

/* ------------------------------------------------------------------ timeline (history.php) */

.timeline { position: relative; max-width: 760px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, var(--accent), rgba(255, 157, 0, .06)); }
.tl-item { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 0 18px; }
.tl-item:not(:last-child) { padding-bottom: 30px; }
.tl-marker { position: relative; }
.tl-marker span { position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg-0); border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--bg-0); }
.tl-item:last-child .tl-marker span { background: var(--accent); }
.tl-date { margin: 0 0 2px; font: 700 12px/1.4 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.tl-title { margin: 0 0 7px; font-size: 19px; color: var(--text); }
.tl-text { margin: 0; color: var(--text-2); font-size: 15.5px; max-width: 62ch; }

/* ------------------------------------------------------------------ older front-page blocks kept for other pages */

.forms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.form { position: relative; overflow: hidden; padding: 26px 24px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg);
        background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: transform .25s var(--ease), border-color .25s var(--ease); }
.form::before { content: ''; position: absolute; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%;
                background: radial-gradient(circle, var(--aura) 0%, transparent 68%); opacity: .35; transition: opacity .3s var(--ease); }
.form:hover { transform: translateY(-2px); border-color: var(--aura); }
.form:hover::before { opacity: .6; }
.form b { position: relative; display: block; font: 700 19px/1.3 var(--head); margin-bottom: 5px; color: var(--fg, #fff); }
.form i { position: relative; display: block; font-style: normal; font: 700 11px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--aura); margin-bottom: 12px; }
.form p { position: relative; margin: 0; font-size: 14.5px; color: var(--text-2); }
.form.locked { filter: grayscale(.85); opacity: .6; }

.places { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.place { padding: 22px 20px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--glass);
         -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: border-color .25s var(--ease), transform .25s var(--ease); color: var(--text-2); }
.place:hover { border-color: rgba(255, 157, 0, .45); transform: translateY(-2px); color: var(--text-2); }
.place b { display: block; font: 700 16px/1.3 var(--head); margin-bottom: 5px; color: var(--text); }
.place span { font-size: 13.5px; color: var(--text-3); }

.hero-x { position: relative; min-height: 70vh; display: flex; align-items: center; overflow: hidden; background: #060910 center/cover no-repeat; }
.hero-x::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 10, 18, .7), rgba(5, 10, 18, .95)); }
.hero-x .wrap { position: relative; z-index: 2; text-align: center; padding: 70px 24px; }

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1320px) {
  nav.main a { padding: 8px 7px; font-size: 11.5px; letter-spacing: .05em; }
}
@media (max-width: 1180px) {
  .server { grid-template-columns: repeat(2, 1fr); }
  .server > div { border-left: 0; border-top: 1px solid var(--line); }
  .server .title { grid-column: 1 / -1; border-top: 0; }
}
@media (max-width: 1200px) {
  header.site .wrap { gap: 14px; }
  .nav-toggle { display: inline-grid; }
  nav.main {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0; z-index: 49; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 40px; overflow-y: auto;
    background: rgba(5, 10, 18, .96); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  nav.main.open { opacity: 1; transform: none; visibility: visible; }
  nav.main a { padding: 16px 6px; font-size: 14px; border-bottom: 1px solid var(--line); }
  nav.main a.on::after { display: none; }
  .head-tools { margin-left: auto; }
  .stat-row, .tiles { grid-template-columns: repeat(2, 1fr); }
  .forms, .places, .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  footer.site .foot { grid-template-columns: repeat(2, 1fr); }
  footer.site .about { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  header.site .wrap { height: 64px; }
  nav.main { top: 64px; }
  .btn.play .lbl-long { display: none; }
  .hero-g .wrap { padding-top: 40px; padding-bottom: 120px; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: -70px; }
  .stat { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  .stat .ico { width: 44px; height: 44px; } .stat .ico svg { width: 24px; height: 24px; }
  .stat b { font-size: 30px; }
  .tiles, .forms, .places, .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
  .tile { min-height: 230px; }
  .server { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 10px; }
  .panel { margin: 32px auto; padding: 28px 22px; }
  footer.site .foot { grid-template-columns: 1fr 1fr; gap: 26px; }
  section { padding: 54px 0; }
}
@media (max-width: 480px) {
  header.site .wrap { gap: 8px; }
  .brand { font-size: 18px; gap: 8px; } .brand img { width: 32px; height: 32px; }
  #search-open { display: none; }              /* search lives in the menu on phones */
  .head-tools { gap: 2px; }
  .btn.play { padding: 9px 13px 9px 9px; gap: 8px; font-size: 12px; }
  .btn.play .db { width: 22px; height: 22px; }
}
.nav-search { display: none; }
@media (max-width: 480px) { .nav-search { display: block; } }
html, body { overflow-x: clip; }
