/* Self-hosted fonts (no Google Fonts requests, so visitors aren't tracked by a third party). SIL OFL 1.1. */
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/cinzel-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 700; font-display: swap; src: url('/static/fonts/cinzel-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 800; font-display: swap; src: url('/static/fonts/cinzel-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Exo 2'; font-style: normal; font-weight: 500; font-display: swap; src: url('/static/fonts/exo-2-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Exo 2'; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/exo-2-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Exo 2'; font-style: normal; font-weight: 700; font-display: swap; src: url('/static/fonts/exo-2-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/static/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/static/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/static/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }

:root {
  /* AegisGrid theme, taken from the logo: deep navy, antique gold (the classical shield) and electric cyan (the grid). */
  --bg: #0a0e18; --bg-2: #0e1420; --panel: #111826; --panel-2: #172133; --line: #222f45; --line-2: #2d3d57;
  --text: #ece6d8; --muted: #8f9bb0; --dim: #5d6a80;
  --gold: #c9965a; --gold-hi: #f0cf8e; --gold-lo: #8a5c2c; --gold-ink: #1c1309;
  --cyan: #22d3d0; --cyan-hi: #94fff7; --cyan-lo: #0f5f66; --cyan-glow: rgba(34, 211, 208, .35);
  --ember: var(--gold); --ember-2: var(--gold-hi); --ember-ink: #2a1c0c;   /* old names kept so every page follows the theme */
  --ok: #3fc58a; --warn: #e9b44c; --err: #e5594f;
  --r: 14px; --r-sm: 9px;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;          /* the "AEGIS" lettering */
  --tech: "Exo 2", "Rajdhani", "Inter", system-ui, sans-serif;  /* the "GRID" lettering */
  --body: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --meander: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cpath d='M0 11h4V3h8v6H8V6' fill='none' stroke='%23c9965a' stroke-width='1.4'/%3E%3Cpath d='M12 11h4V3h8' fill='none' stroke='%23c9965a' stroke-width='1.4'/%3E%3Cpath d='M0 11.3h24' stroke='%23c9965a' stroke-width='.8'/%3E%3C/svg%3E");
  --gridbg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%2322d3d0' stroke-opacity='.07' stroke-width='1'%3E%3Cpath d='M0 40h160M0 120h160M40 0v160M120 0v160M40 40l80 80M120 40l-80 80'/%3E%3C/g%3E%3Cg fill='%2322d3d0' fill-opacity='.14'%3E%3Ccircle cx='40' cy='40' r='2'/%3E%3Ccircle cx='120' cy='40' r='2'/%3E%3Ccircle cx='40' cy='120' r='2'/%3E%3Ccircle cx='120' cy='120' r='2'/%3E%3Ccircle cx='80' cy='80' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--ember-2); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 4vw, 40px); } h2 { font-size: 22px; } h3 { font-size: 17px; }
p { margin: 0 0 1em; } .muted { color: var(--muted); } code, .mono { font-family: var(--mono); font-size: .88em; }
code { background: var(--panel-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 12px 24px;
  background: rgba(10,14,24,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 700 18px var(--display); }
.brand:hover { text-decoration: none; }
.brand img, .brand .mark { width: 32px; height: 32px; border-radius: 9px; }
.brand .mark { display: grid; place-items: center; background: var(--ember); color: #fff; font-size: 18px; }
.top .spacer { flex: 1; }
.me { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.me img { width: 30px; height: 30px; border-radius: 50%; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--panel-2); color: var(--text); font: 600 14px var(--body); cursor: pointer; text-decoration: none !important; transition: .15s; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--ember); border-color: var(--ember); color: #fff; }
.btn.primary:hover { background: var(--ember-2); border-color: var(--ember-2); }
.btn.small { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn.danger { color: #ff8b80; } .btn.danger:hover { border-color: var(--err); }
.btn.big { padding: 14px 26px; font-size: 16px; border-radius: 12px; }

/* ---------- layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 32px 24px 80px; }
.guild > * { min-width: 0; }
.guild { display: grid; grid-template-columns: 240px 1fr; gap: 28px; max-width: 1240px; margin: 0 auto; padding: 28px 24px 80px; }
.side { position: sticky; top: 76px; align-self: start; }
.side .ghead { display: flex; align-items: center; gap: 12px; padding: 4px 4px 18px; }
.side .ghead img, .gicon { width: 44px; height: 44px; border-radius: 12px; background: var(--panel-2); display: grid; place-items: center; font: 700 16px var(--display); color: var(--muted); object-fit: cover; }
.side .ghead strong { display: block; line-height: 1.2; } .side .ghead small { color: var(--muted); }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--muted); font-weight: 500; }
.side nav a:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.side nav a.on { background: var(--panel-2); color: var(--text); box-shadow: inset 3px 0 0 var(--ember); }
.side nav .grp { margin: 14px 12px 4px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 18px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card .sub { color: var(--muted); margin: -4px 0 18px; font-size: 14px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.head p { color: var(--muted); margin: 0; max-width: 640px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > span { font-weight: 600; font-size: 13.5px; } .field small { color: var(--muted); font-size: 12.5px; }
input[type=text], input[type=number], input[type=url], select, textarea {
  width: 100%; padding: 10px 12px; background: var(--bg); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font: 14px var(--body); outline: none; transition: border-color .15s; }
textarea { min-height: 84px; resize: vertical; font-family: var(--body); }
input:focus, select:focus, textarea:focus { border-color: var(--ember); box-shadow: 0 0 0 3px var(--cyan-glow); }
.actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; padding-top: 6px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 16px; }
.inline { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; } .inline .field { margin: 0; flex: 1; min-width: 160px; }

/* toggles */
.toggle { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 10px 0; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .track { flex: none; width: 40px; height: 23px; border-radius: 99px; background: var(--line-2); position: relative; transition: .2s; margin-top: 1px; }
.toggle .thumb { position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: .2s; }
.toggle input:checked + .track { background: var(--ember); } .toggle input:checked + .track .thumb { left: 20px; }
.toggle input:focus-visible + .track { box-shadow: 0 0 0 3px var(--cyan-glow); }
.toggle .tl { display: flex; flex-direction: column; } .toggle small { color: var(--muted); font-size: 12.5px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 220px; overflow: auto; padding: 2px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--bg); font-size: 13px; color: var(--muted); transition: .12s; }
.chip span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--dim)); }
.chip input:checked + span { border-color: var(--ember); color: var(--text); background: rgba(201,150,90,.12); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--cyan-glow); }

/* flash + notices */
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; border: 1px solid; font-weight: 500; }
.flash.ok { background: rgba(63,182,122,.1); border-color: rgba(63,182,122,.4); color: #8fe0b5; }
.flash.err { background: rgba(226,72,61,.1); border-color: rgba(226,72,61,.45); color: #ff9d94; }
.notice { padding: 14px 16px; border-radius: 10px; background: rgba(229,169,59,.08); border: 1px solid rgba(229,169,59,.35); color: #f1cd8a; font-size: 14px; margin-bottom: 18px; }
.tip { font-size: 13px; color: var(--muted); background: var(--panel-2); border-radius: 9px; padding: 10px 12px; }

/* tables / lists */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--panel-2); border: 1px solid var(--line-2); }
.pill.live { background: rgba(226,72,61,.15); border-color: var(--ember); color: #ff9d94; }
.pill.twitch { color: #b9a3ff; } .pill.youtube { color: #ff8585; } .pill.kick { color: #8af56a; }
.empty { text-align: center; padding: 26px; color: var(--muted); }

/* stats */
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.stat b { display: block; font: 700 30px var(--display); } .stat span { color: var(--muted); font-size: 13px; }

/* servers */
.servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.server { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 24px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); transition: .15s; color: var(--text); }
.server:hover { border-color: var(--line-2); transform: translateY(-2px); text-decoration: none; }
.server .gicon { width: 72px; height: 72px; border-radius: 20px; font-size: 24px; }
.server.off { opacity: .72; } .server strong { font-size: 15px; }

/* landing */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 64px 0 40px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1; }
.hero h1 em { font-style: normal; color: var(--ember); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 520px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.heads { display: grid; gap: 14px; max-width: 440px; justify-self: center; width: 100%; }
.heads .h { position: relative; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); padding: 18px; width: 62%; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.heads .h b { font-family: var(--display); font-size: 18px; display: block; margin-bottom: 4px; }
.heads .h span { color: var(--muted); font-size: 13.5px; }
.heads .h i { font-style: normal; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ember-ink); color: var(--ember-2); margin-bottom: 10px; font-size: 18px; }
.heads .h1 { margin-right: 26%; } .heads .h2 { margin-left: 26%; border-color: rgba(201,150,90,.5); } .heads .h3 { margin: 0 13%; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.feature h3 { margin-bottom: 6px; } .feature p { color: var(--muted); font-size: 14px; margin: 0; }
footer.foot { border-top: 1px solid var(--line); padding: 28px 24px; color: var(--dim); font-size: 13px; text-align: center; }
footer.foot a { color: var(--muted); margin: 0 8px; }
.prose { max-width: 760px; } .prose h2 { margin-top: 1.6em; } .prose li { margin-bottom: .4em; color: #d8d3cc; }

@media (max-width: 900px) {
  .guild { grid-template-columns: 1fr; padding-top: 16px; }
  .side { position: static; }
  .side nav { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 6px; }
  .side nav a { white-space: nowrap; } .side nav .grp { display: none; }
  .side nav a.on { box-shadow: inset 0 -3px 0 var(--ember); }
  .grid2, .grid3, .features, .hero { grid-template-columns: 1fr; }
  .heads { max-width: 340px; }
  .top { padding: 10px 16px; gap: 8px; } .wrap { padding: 24px 16px 60px; } .me { display: none; }
  .top .btn.small { padding: 6px 10px; white-space: nowrap; } .brand { font-size: 0; gap: 0; } .guild { padding: 16px 16px 60px; }
  .card { padding: 18px 16px; } .heads .h { width: auto; }
}

/* features page */
.feat { display: flex; align-items: center; gap: 12px; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 4px 0; }
.feat:last-child { border-bottom: 0; }
.feat .toggle { flex: 1; }
.card.locked .toggle { cursor: default; } .card.locked .track { opacity: .75; }
.side nav a.off { color: var(--dim); }
.offtag { margin-left: auto; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--dim); }

/* rating board */
.gicon.sm { width: 32px; height: 32px; border-radius: 9px; font-size: 12px; flex: none; }
.gicon.big { width: 72px; height: 72px; border-radius: 20px; font-size: 24px; flex: none; }
.board td { padding: 10px; } .board .rank { width: 44px; font: 700 18px var(--display); color: var(--muted); }
.board tr.first .rank { color: var(--ember-2); } .board .score { font: 700 16px var(--display); }
.board .acts { display: flex; gap: 6px; justify-content: flex-end; }
.srv { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; } .srv:hover { text-decoration: none; color: var(--ember-2); }
.topserver { display: flex; align-items: center; gap: 18px; color: var(--text); border-color: rgba(201,150,90,.55); background: linear-gradient(120deg, rgba(201,150,90,.12), var(--panel) 60%); position: relative; }
.topserver:hover { text-decoration: none; } .topserver h2 { margin: 0; } .topserver .score { color: var(--ember-2); }
.crown { position: absolute; top: 12px; right: 16px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ember-2); }
.srvhead { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.bigscore { text-align: right; } .bigscore span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.bigscore b { display: block; font: 800 38px var(--display); line-height: 1.1; } .bigscore small { color: var(--muted); }
@media (max-width: 900px) { .board .acts { flex-direction: column; } .bigscore { text-align: left; } .top > .btn.small[href="/rankings"] { order: 2; } }
@media (max-width: 900px) {
  .top { flex-wrap: wrap; row-gap: 8px; } .top .spacer { display: none; } .top .brand { margin-right: auto; }
  .card table { display: block; overflow-x: auto; }
  .board th:nth-child(3), .board td:nth-child(3) { display: none; }
  .topserver { flex-wrap: wrap; } .crown { position: static; width: 100%; }
}

/* ---------- premium ---------- */
.tierpill { padding: 2px 10px; border-radius: 99px; border: 1px solid var(--line-2); }
.tierpill.t-shield { border-color: var(--gold); color: var(--gold-hi); } .tierpill.t-grid { border-color: var(--cyan); color: var(--cyan-hi); box-shadow: 0 0 10px -2px var(--cyan-glow); }
table.tiers td:not(:first-child), table.tiers th:not(:first-child) { text-align: center; width: 92px; }
table.tiers td:not(:first-child) { color: #8fe0b5; font-weight: 700; } table.tiers small { color: var(--muted); font-weight: 400; }
.lockcard { text-align: center; padding: 40px 24px; } .lockicon { font-size: 38px; margin-bottom: 8px; }
.side nav a .lock { margin-left: auto; font-size: 12px; opacity: .7; }
.card h3 { margin-top: 8px; } .card > h3:first-child { margin-top: 0; }

/* ---------- analytics ---------- */
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 18px; }
.kpis .stat b { font-size: 26px; } .kpis .stat span { font-size: 12.5px; }
svg.chart { width: 100%; height: auto; display: block; overflow: visible; }
svg.chart .gl { stroke: #26262d; stroke-width: 1; } svg.chart .zero { stroke: #3a3a44; stroke-width: 1; }
svg.chart .ax { fill: #8e8a96; font: 19px var(--body); }
svg.chart.heat .ax { font: 11px var(--body); }
.tscroll { overflow-x: auto; max-width: 100%; }
svg.chart .hit { outline: none; cursor: default; }
svg.chart .hit .xh { stroke: #8e8a96; stroke-width: 1; opacity: 0; } svg.chart .hit .dot { opacity: 0; stroke: var(--panel); stroke-width: 2; }
svg.chart .hit.hov .xh, svg.chart .hit:focus .xh { opacity: .6; } svg.chart .hit.hov .dot, svg.chart .hit:focus .dot { opacity: 1; }
svg.chart g.hit.hov rect[fill]:not([fill="transparent"]), svg.chart rect.cell.hov { filter: brightness(1.25); }
svg.chart rect.cell:focus { stroke: #ece7e1; stroke-width: 1.5; }
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 34%) 1fr 70px; align-items: center; gap: 10px; font-size: 13.5px; outline: none; }
.hbar .hl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.hbar .ht { height: 14px; background: transparent; } .hbar .hf { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.hbar .hv { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.hbar.hov .hf, .hbar:focus .hf { filter: brightness(1.25); }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin: -4px 0 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.ramp { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.ramp i { display: block; width: 140px; height: 8px; border-radius: 4px; }
.rdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }
.vtip { position: fixed; z-index: 50; pointer-events: none; background: #0f0f13; border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 10px; opacity: 0; transition: opacity .1s; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.vtip.on { opacity: 1; } .vtip b { display: block; font-size: 14px; color: var(--text); border-left: 3px solid var(--k); padding-left: 7px; } .vtip span { display: block; font-size: 12px; color: var(--muted); padding-left: 10px; }
details summary { cursor: pointer; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, 1fr); } .hbar { grid-template-columns: 38% 1fr 58px; } }
.grid2 > *, .grid > * { min-width: 0; }
/* server picker + switcher */
.pick-h { font: 700 17px var(--display); margin: 26px 0 12px; } .pick-h .muted { font-weight: 500; }
.gsearch { width: 100%; max-width: 420px; margin: 6px 0 4px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; }
.gswitch { display: block; margin: 10px 0 2px; } .gswitch select { width: 100%; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; font-size: 13px; }
.allsrv { display: block; font-size: 12px; color: var(--muted); margin: 6px 0 4px; } .allsrv:hover { color: var(--text); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.feat-h { font: 700 15px var(--display); margin: 22px 0 10px; color: var(--muted); text-transform: none; }
.featbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; } .featbar .muted { font-size: 13px; }
/* analytics filters + download dialog */
.afilter { padding: 14px 16px; }
.afrow { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.afrow label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.afrow select, .afrow input { min-width: 0; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; font-size: 13px; }
.afrow input[type=number] { width: 92px; } .afrow input[type=text] { width: 180px; }
.afbtn { display: flex; gap: 8px; }
.tlink { color: inherit; text-decoration: underline dotted; }
.dlg { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); padding: 22px; width: min(520px, calc(100vw - 32px)); }
.dlg::backdrop { background: rgba(0,0,0,.6); }
.dlg h3 { margin: 0 0 12px; font: 700 18px var(--display); }
.dlg fieldset { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 12px; padding: 10px 12px; }
.dlg legend { font-size: 12px; color: var(--muted); padding: 0 6px; }
.dlg .radio, .dlg .check { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 4px 0; }
.dlg select { padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; }
.dlsets { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.dlact { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
@media (max-width: 560px) { .dlsets { grid-template-columns: 1fr; } .afrow input[type=text] { width: 100%; } .afrow label { flex: 1 1 140px; } }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 6px; }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--panel-2); }
.plan h3 { margin: 0 0 4px; font: 700 17px var(--display); } .plan form { margin: 0; } .plan .btn { width: 100%; justify-content: center; }
.notice.ok { border-color: #2e7d4f; } .warn { color: #e8a33d; }


/* ======================================================================
   AEGISGRID THEME — classical gold shield × electric cyan grid
   ====================================================================== */
html, body { background: var(--bg); }
body {
  background:
    radial-gradient(1100px 560px at 50% -10%, rgba(45, 63, 84, .55), transparent 70%),
    radial-gradient(700px 500px at 100% 20%, rgba(34, 211, 208, .06), transparent 70%),
    radial-gradient(700px 500px at 0% 60%, rgba(201, 150, 90, .05), transparent 70%),
    var(--gridbg), linear-gradient(180deg, var(--bg-2), var(--bg) 600px);
  background-attachment: fixed, fixed, fixed, fixed, scroll;
}
a { color: var(--cyan); } a:hover { color: var(--cyan-hi); text-decoration: none; text-shadow: 0 0 12px var(--cyan-glow); }
::selection { background: rgba(34, 211, 208, .3); color: #fff; }

/* headings: classical capitals in gold */
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: .02em; color: var(--gold-hi);
  background: linear-gradient(180deg, #f6dfa6 0%, #d6a663 55%, #a87437 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
h1 { font-size: clamp(28px, 3.6vw, 40px); } h2 { font-size: 21px; }
h3 { font-family: var(--tech); font-weight: 700; letter-spacing: .02em; font-size: 17px; color: var(--text); }
.card > h2:first-child, .card h2 { font-size: 19px; }

/* top bar with a Greek-key border */
.top { background: rgba(10, 14, 24, .9); border-bottom: 0; }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px; background: var(--meander) repeat-x; background-size: 24px 12px; opacity: .55; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.brand { gap: 10px; font: 700 20px var(--display); letter-spacing: .06em; }
.brand img.mark-img { width: 38px; height: 38px; border-radius: 0; filter: drop-shadow(0 0 6px rgba(34, 211, 208, .25)); }
.brand .wm-aegis { color: var(--gold-hi); background: linear-gradient(180deg, #f6dfa6, #c48a4c 60%, #8a5c2c); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand .wm-grid { font-family: var(--tech); font-weight: 700; color: var(--cyan-hi); letter-spacing: .08em; text-shadow: 0 0 10px rgba(34, 211, 208, .65), 0 0 22px rgba(34, 211, 208, .3); }
.brand:hover .wm-grid { text-shadow: 0 0 12px rgba(34, 211, 208, .9), 0 0 28px rgba(34, 211, 208, .45); }

/* buttons: gold for the main action, cyan glow on hover for the rest */
.btn { font-family: var(--tech); font-weight: 600; letter-spacing: .02em; background: linear-gradient(180deg, #1a2436, #141c2b); border-color: var(--line-2); }
.btn:hover { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(34, 211, 208, .25), 0 0 14px -4px var(--cyan-glow); color: #fff; }
.btn.primary { background: linear-gradient(180deg, #ecc98a 0%, #c9965a 52%, #a06a34 100%); border-color: #d9ad6f; color: var(--gold-ink);
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, .55), 0 6px 18px -8px rgba(201, 150, 90, .7); text-shadow: 0 1px 0 rgba(255, 235, 190, .35); }
.btn.primary:hover { background: linear-gradient(180deg, #f6dca6 0%, #d7a668 52%, #ad773e 100%); border-color: var(--gold-hi); color: var(--gold-ink); box-shadow: inset 0 1px 0 rgba(255, 245, 215, .7), 0 0 18px -4px rgba(240, 207, 142, .55); }
.btn.danger { color: #ff9a90; } .btn.danger:hover { border-color: var(--err); box-shadow: 0 0 14px -4px rgba(229, 89, 79, .5); }

/* panels: dark glass with a faint gold edge */
.card, .stat, .feature, .server, .heads .h {
  background: linear-gradient(180deg, rgba(23, 33, 51, .92), rgba(15, 22, 35, .92)); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(240, 207, 142, .07), 0 18px 40px -28px rgba(0, 0, 0, .9); }
.card { position: relative; }
.card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(201, 150, 90, .45), transparent 28%, transparent 72%, rgba(34, 211, 208, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.server:hover { border-color: var(--cyan-lo); box-shadow: 0 0 0 1px rgba(34, 211, 208, .2), 0 0 24px -10px var(--cyan-glow); }
.server .gicon, .side .ghead .gicon, .gicon { background: linear-gradient(160deg, #1d2a40, #121a29); color: var(--gold); font-family: var(--display); border: 1px solid var(--line-2); }

/* sidebar */
.side nav a { font-weight: 500; }
.side nav a:hover { background: rgba(34, 211, 208, .06); color: var(--text); }
.side nav a.on { background: linear-gradient(90deg, rgba(201, 150, 90, .16), rgba(201, 150, 90, .02)); color: var(--gold-hi); box-shadow: inset 3px 0 0 var(--gold); }
.side nav .grp { font-family: var(--tech); color: var(--cyan-lo); letter-spacing: .16em; filter: brightness(1.6); }
.gswitch select { border-color: var(--line-2); }

/* forms */
input[type=text], input[type=number], input[type=url], input[type=search], select, textarea { background: #0b111c; border-color: var(--line-2); }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 208, .18), 0 0 16px -6px var(--cyan-glow); }
.toggle .track { background: #263349; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); }
.toggle .thumb { background: #e9e4d6; }
.toggle input:checked + .track { background: linear-gradient(90deg, #12898a, var(--cyan)); box-shadow: 0 0 12px -2px var(--cyan-glow); }
.toggle input:checked + .track .thumb { background: #fff; }
.chip input:checked + span { border-color: var(--cyan); background: rgba(34, 211, 208, .1); box-shadow: 0 0 10px -4px var(--cyan-glow); }

/* numbers and tables */
.stat b { font-family: var(--tech); font-weight: 700; color: var(--cyan-hi); text-shadow: 0 0 14px rgba(34, 211, 208, .35); }
th { font-family: var(--tech); letter-spacing: .1em; color: var(--gold); opacity: .85; }
td { border-bottom-color: rgba(34, 47, 69, .8); }
.pill.live { background: rgba(229, 89, 79, .15); border-color: var(--err); color: #ff9a90; }
.notice { background: rgba(201, 150, 90, .08); border-color: rgba(201, 150, 90, .38); color: #f0d6a6; }
.notice.ok { background: rgba(63, 197, 138, .08); border-color: rgba(63, 197, 138, .4); color: #9fe6c3; }
.tip { background: rgba(34, 211, 208, .05); border: 1px solid rgba(34, 211, 208, .14); }
.offtag { font-family: var(--tech); }
.vtip { background: #0b111c; border-color: var(--cyan-lo); box-shadow: 0 0 18px -6px var(--cyan-glow); }
.dlg { background: linear-gradient(180deg, #172133, #10172a); border-color: var(--line-2); box-shadow: 0 0 0 1px rgba(201, 150, 90, .2), 0 30px 80px -20px #000; }
.dlg::backdrop { background: rgba(5, 8, 14, .72); backdrop-filter: blur(3px); }
.plan { background: linear-gradient(180deg, #172133, #111826); }
.plan.p-shield { border-color: rgba(201, 150, 90, .5); } .plan.p-grid { border-color: rgba(34, 211, 208, .45); box-shadow: 0 0 24px -14px var(--cyan-glow); }
.plan h3 { font-family: var(--display); }
.plan.p-shield h3 { color: var(--gold-hi); } .plan.p-grid h3 { color: var(--cyan-hi); text-shadow: 0 0 12px rgba(34, 211, 208, .4); }
.board .rank { font-family: var(--tech); } .board tr.first .rank { color: var(--gold-hi); } .board .score { font-family: var(--tech); color: var(--cyan-hi); }
.bigscore b { font-family: var(--tech); color: var(--cyan-hi); text-shadow: 0 0 16px rgba(34, 211, 208, .35); }
.crown { color: var(--gold-hi); font-family: var(--tech); }
footer.foot { border-top: 1px solid var(--line); position: relative; }
footer.foot::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 12px; background: var(--meander) repeat-x; background-size: 24px 12px; opacity: .35; transform: scaleY(-1);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }
.foot .fmark { width: 18px; height: 18px; vertical-align: -4px; margin-right: 6px; opacity: .8; }

/* landing hero with the full logo */
.hero h1 em { color: var(--cyan-hi); -webkit-text-fill-color: var(--cyan-hi); background: none; font-family: var(--tech); font-style: normal; letter-spacing: .04em; text-shadow: 0 0 18px rgba(34, 211, 208, .55); }
.hero-logo { justify-self: center; width: min(440px, 100%); aspect-ratio: 1; border-radius: 28px; overflow: hidden; position: relative;
  box-shadow: 0 0 0 1px rgba(201, 150, 90, .25), 0 40px 90px -30px #000, 0 0 80px -30px var(--cyan-glow); }
.hero-logo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.heads .h i { background: rgba(201, 150, 90, .14); color: var(--gold-hi); }
.heads .h2 { border-color: rgba(34, 211, 208, .45); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 900px) {
  .brand .wm-aegis, .brand .wm-grid { display: none; } .brand { font-size: 20px; }
  .top::after { opacity: .4; }
  .side nav a.on { box-shadow: inset 0 -3px 0 var(--gold); }
}
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.pillar { padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(23, 33, 51, .9), rgba(15, 22, 35, .9)); }
.pillar i { font-style: normal; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(201, 150, 90, .14); margin-bottom: 8px; }
.pillar:nth-child(2) i { background: rgba(34, 211, 208, .12); }
.pillar b { display: block; font: 700 18px var(--display); color: var(--gold-hi); letter-spacing: .04em; margin-bottom: 2px; }
.pillar:nth-child(2) b { font-family: var(--tech); color: var(--cyan-hi); text-shadow: 0 0 12px rgba(34, 211, 208, .4); }
.pillar span { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } .hero-logo { width: min(320px, 100%); } }
.brand .wm { display: inline-flex; align-items: baseline; gap: 0; } .brand .wm-grid { margin-left: 1px; }
@media (max-width: 900px) { .brand .wm { display: none; } }

/* v1.2 What's new page */
.cl-toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.cl-toc a { padding: 3px 11px; border-radius: 99px; border: 1px solid var(--line-2); font: 600 13px var(--tech); color: var(--cyan-hi); text-decoration: none; }
.cl-toc a:hover { border-color: var(--cyan); }
.cl-ver { margin-bottom: 16px; scroll-margin-top: 80px; }
.cl-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cl-top h2 { margin: 0; font-family: var(--tech); color: var(--gold-hi); }
.cl-head { font-weight: 600; margin: 10px 0 6px; }
.cl-ver ul { padding-left: 20px; margin: 8px 0 0; }
@media (max-width: 640px) { .hide-sm { display: none; } }

/* Landing page (v1.2) */
.lp-note { color: var(--dim); font-size: 13px; margin-top: 12px; } .lp-note.center { text-align: center; }
.lp-eyebrow { font: 700 12px var(--tech); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); margin: 0 0 8px; }
.lp h2 { font-size: clamp(26px, 3.4vw, 36px); color: var(--gold-hi); }
.lp-intro { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; padding: 48px 0 24px; border-top: 1px solid var(--line); }
.lp-intro-text p { color: #d8d3cc; font-size: 16px; line-height: 1.7; max-width: 640px; }
.lp-intro-text strong { color: var(--cyan-hi); font-weight: 600; }
.lp-glance { padding: 22px 24px; border-radius: var(--r); border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(23, 33, 51, .9), rgba(15, 22, 35, .9)); }
.lp-glance h3 { font: 700 13px var(--tech); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.lp-glance ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lp-glance li { display: grid; grid-template-columns: 78px 1fr; gap: 12px; align-items: baseline; }
.lp-glance b { font: 700 20px var(--tech); color: var(--gold-hi); }
.lp-glance span { color: #d8d3cc; font-size: 14px; }
.lp-sechead { max-width: 680px; margin: 0 0 22px; }
.lp-sechead p:not(.lp-eyebrow) { color: var(--muted); }
.lp-overview, .lp-steps, .lp-plans { padding: 44px 0 8px; }
.lp-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-cat { padding: 22px 22px 18px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(23, 33, 51, .9), rgba(15, 22, 35, .9)); }
.lp-cat-trust { border-color: rgba(34, 211, 208, .45); box-shadow: 0 0 24px -12px rgba(34, 211, 208, .6); }
.lp-cat-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.lp-cat-top i { font-style: normal; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(201, 150, 90, .14); }
.lp-cat-trust .lp-cat-top i { background: rgba(34, 211, 208, .14); }
.lp-cat-top h3 { margin: 0; font: 700 18px var(--tech); color: var(--text); letter-spacing: .01em; flex: 1; }
.lp-cat .tierpill { font: 600 11px var(--tech); padding: 1px 8px; white-space: nowrap; vertical-align: 1px; }
.lp-lede { color: var(--gold-hi); font-size: 14px; margin: 4px 0 10px; }
.lp-cat ul { margin: 0; padding-left: 18px; color: #cfcac2; font-size: 14px; }
.lp-cat li { margin-bottom: 6px; } .lp-cat li::marker { color: var(--cyan); }
.lp-steps ol { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-steps li { counter-increment: s; padding: 20px 22px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(15, 22, 35, .7); }
.lp-steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; margin-bottom: 10px; font: 700 15px var(--tech); color: var(--ember-ink); background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }
.lp-steps b { display: block; font: 700 17px var(--tech); margin-bottom: 4px; }
.lp-steps span { color: var(--muted); font-size: 14px; }
.lp-plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-plan { padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(15, 22, 35, .7); }
.lp-plan h3 { font: 700 20px var(--display); color: var(--text); margin-bottom: 4px; }
.lp-plan-shield { border-color: var(--gold); } .lp-plan-shield h3 { color: var(--gold-hi); }
.lp-plan-grid-tier { border-color: var(--cyan); box-shadow: 0 0 24px -12px rgba(34, 211, 208, .6); } .lp-plan-grid-tier h3 { color: var(--cyan-hi); font-family: var(--tech); }
.lp-price { font: 700 24px var(--tech); margin: 0; } .lp-year { margin: 0 0 8px; font-size: 13px; }
.lp-plan p:last-child { color: #cfcac2; font-size: 14px; margin-bottom: 0; }
.lp-final { text-align: center; padding: 48px 20px 56px; margin-top: 36px; border-top: 1px solid var(--line); }
.lp-final p { color: var(--muted); font-size: 16px; }
.lp-final .cta { justify-content: center; }
@media (max-width: 980px) { .lp-cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .lp-intro, .lp-cats, .lp-steps ol, .lp-plan-grid { grid-template-columns: 1fr; } .lp-intro { gap: 24px; } }

/* Tickets page: types and panels (v1.2) */
.tk-types { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 16px; }
.tk-chip { display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(15, 22, 35, .7); color: var(--text); text-decoration: none; }
.tk-chip:hover { border-color: var(--cyan); text-decoration: none; }
.tk-chip small { display: block; color: var(--muted); font-size: 12px; }
.tk-chip.locked { opacity: .6; }
.tk-emoji { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(201, 150, 90, .14); font-size: 17px; flex: none; }
.tk-new { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.tk-new .field { margin: 0; }
details.tk-type > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 600 17px var(--tech); }
details.tk-type > summary::-webkit-details-marker { display: none; }
details.tk-type > summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .15s; }
details.tk-type[open] > summary::after { transform: rotate(180deg); }
details.tk-type[open] > summary { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
details.tk-type .tk-sum { font: 400 13px var(--body); }
details.tk-type:target, details.tk-type:focus-within { border-color: var(--line-2); }
.tk-h { font: 700 15px var(--tech); color: var(--gold-hi); margin: 22px 0 10px; letter-spacing: .02em; }
.tk-actions { margin-top: 18px; }
.tk-styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tk-style { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(15, 22, 35, .6); cursor: pointer; }
.tk-style:has(input:checked) { border-color: var(--cyan); box-shadow: 0 0 18px -10px rgba(34, 211, 208, .8); }
.tk-style input { margin-top: 4px; accent-color: var(--cyan); }
.tk-style small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.chip.off { opacity: .45; }
@media (max-width: 760px) { .tk-styles { grid-template-columns: 1fr; } }

/* Site-wide polish to match the home page (v1.2) */
.page-eyebrow { margin: 4px 0 6px; }
.head .lp-eyebrow, .prose > .lp-eyebrow { margin-bottom: 6px; }
.prose > .lp-eyebrow { margin-top: 36px; }
.card h2, .card > h2:first-child { font: 700 18px var(--tech); letter-spacing: .01em; color: var(--text); background: none; -webkit-text-fill-color: currentColor; text-transform: none; }
.card h2 + .sub { margin-top: 2px; }
.prose h2 { font-size: 22px; margin-top: 1.8em; }
.prose ul { padding-left: 20px; } .prose li::marker { color: var(--cyan); }
.board tr.first td { color: var(--gold-hi); }
.notice { border-radius: 12px; }
details.tk-type > summary .tierpill { font: 600 11px var(--tech); padding: 1px 8px; }

/* Features page: the always-on card has no switch */
.always-on .ao-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; font: 600 16px var(--tech); }
.ao-badge { padding: 3px 11px; border-radius: 99px; border: 1px solid var(--cyan); color: var(--cyan-hi); font: 700 12px var(--tech); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 0 12px -4px var(--cyan-glow); }
.always-on p { color: #d8d3cc; font-size: 14px; margin: 0 0 12px; }
.ao-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }

/* ===================== v1.3: languages, Easy mode, D&D ===================== */
/* Other scripts: our self-hosted fonts are Latin only, so the browser borrows the system's font for those letters.
   Letter-spacing and capitals are switched off for scripts where they break the joined-up writing. */
:root { --display: "Cinzel", "Trajan Pro", Georgia, "Noto Serif", "Noto Serif SC", "Noto Serif Devanagari", "Noto Naskh Arabic", serif;
  --tech: "Exo 2", "Rajdhani", "Inter", system-ui, "Noto Sans", "Noto Sans SC", "Noto Sans Devanagari", "Noto Sans Bengali", "Noto Sans Arabic", sans-serif;
  --body: "Inter", system-ui, -apple-system, Segoe UI, "Noto Sans", "Noto Sans SC", "Microsoft YaHei", "Noto Sans Devanagari", "Nirmala UI", "Noto Sans Bengali", "Noto Sans Arabic", "Segoe UI", sans-serif; }
html:lang(ur) body { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Noto Naskh Arabic", var(--body); line-height: 1.9; }
html:lang(ar) body { font-family: "Noto Naskh Arabic", "Segoe UI", "Tahoma", var(--body); }
html:lang(ar) *, html:lang(ur) *, html:lang(hi) *, html:lang(bn) *, html:lang(zh-Hans) * { letter-spacing: 0 !important; }
html:lang(hi) h1, html:lang(bn) h1, html:lang(zh-Hans) h1, html:lang(ar) h1, html:lang(ur) h1,
html:lang(hi) h2, html:lang(bn) h2, html:lang(zh-Hans) h2, html:lang(ar) h2, html:lang(ur) h2 { font-family: var(--tech); font-weight: 700; }
.brand .wm, .brand .wm * { letter-spacing: .06em !important; } /* the logo lettering stays Latin */
.lp-eyebrow { text-transform: uppercase; }

/* Language menu in the header */
.langpick { position: relative; }
.langpick summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #1a2436, #141c2b); font: 600 13px var(--tech); color: var(--text); white-space: nowrap; }
.langpick summary::-webkit-details-marker { display: none; }
.langpick summary:hover, .langpick[open] summary { border-color: var(--cyan); }
.langpick summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.langmenu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 40; width: 260px; padding: 6px; border-radius: 12px; border: 1px solid var(--line-2);
  background: #0f1624; box-shadow: 0 14px 40px rgba(0, 0, 0, .55); display: grid; gap: 1px; }
.langmenu a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--text); }
.langmenu a small { color: var(--dim); font-size: 11.5px; white-space: nowrap; }
.langmenu a:hover { background: rgba(34, 211, 208, .08); text-decoration: none; }
.langmenu a.on { background: rgba(201, 150, 90, .14); color: var(--gold-hi); }

/* Home page: Easy mode band and languages card */
.lp-easy { margin-top: 56px; }
.lp-easy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-easy-card { padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(23, 33, 51, .9), rgba(15, 22, 35, .9)); }
.lp-easy-card i { font-style: normal; font-size: 26px; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 10px;
  background: rgba(34, 211, 208, .08); border: 1px solid rgba(34, 211, 208, .25); }
.lp-easy-card p { color: #cfcac2; font-size: 14.5px; margin: 0; }
.lp-langs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.lp-langs span { padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 13.5px; color: #d9d3c8; background: rgba(15, 22, 35, .6); }

/* Overview: Easy mode call-out */
.easy-cta { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-color: rgba(34, 211, 208, .35); }
.easy-cta h2 { margin-bottom: 4px; } .easy-cta p { margin: 0; }
.easy-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* Setup Wizard */
.wiz-steps { list-style: none; margin: 0 0 18px; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.wiz-steps li a { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; font-size: 13px; }
.wiz-steps li a:hover { text-decoration: none; border-color: var(--line-2); color: var(--text); }
.wiz-steps li span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--panel-2); font: 700 12px var(--tech); }
.wiz-steps li b { font-weight: 500; }
.wiz-steps li.done span { background: rgba(63, 197, 138, .18); color: var(--ok); }
.wiz-steps li.on a { border-color: var(--gold); color: var(--gold-hi); background: rgba(201, 150, 90, .1); }
.wiz-steps li.on span { background: var(--gold); color: var(--gold-ink); }
.wiz-steps li:not(.on) b { display: none; }
.wiz-card h2 { font-size: 26px; }
.wiz-explain { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 6px 0 18px; }
.wiz-explain > div { padding: 14px 16px; border-radius: 12px; background: rgba(15, 22, 35, .6); border: 1px solid var(--line); }
.wiz-explain h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--cyan); margin-bottom: 6px; }
.wiz-explain p { margin: 0; color: #d6d0c4; font-size: 14.5px; }
.wiz-q { padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(201, 150, 90, .35); background: rgba(201, 150, 90, .06); margin-bottom: 16px; }
.wiz-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.wiz-actions .spacer { flex: 1; }
.wiz-plans { grid-template-columns: 1fr 1fr; margin-bottom: 12px; }

/* Easy Build */
.eb-tpls { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 18px; }
.eb-tpl { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 12px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(15, 22, 35, .6); cursor: pointer; min-height: 132px; }
.eb-tpl input { position: absolute; opacity: 0; pointer-events: none; }
.eb-tpl:has(input:checked) { border-color: var(--gold); background: rgba(201, 150, 90, .1); box-shadow: 0 0 22px -12px rgba(201, 150, 90, .9); }
.eb-tpl:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }
.eb-tpl .eb-emoji { font-size: 26px; line-height: 1; }
.eb-tpl b { font: 700 14.5px var(--tech); color: var(--text); }
.eb-tpl small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.eb-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chip.eb-feat { display: flex; }
.chip.eb-feat span { display: flex; flex-wrap: wrap; align-items: center; width: 100%; padding: 9px 12px; border-radius: 10px; color: var(--text); font-size: 14px; }
.chip.eb-feat small { flex-basis: 100%; color: var(--muted); font-size: 12px; padding-inline-start: 14px; }
.eb-preview { border-color: rgba(201, 150, 90, .45); }
.eb-cols { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 16px; }
.eb-list { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow: auto; font-size: 14px; }
.eb-list li { padding: 4px 0; border-bottom: 1px solid rgba(34, 47, 69, .6); }
.eb-list li.skip { color: var(--dim); text-decoration: line-through; }
.eb-list li small { text-decoration: none; display: inline-block; color: var(--dim); margin-inline-start: 6px; }
.eb-log { columns: 2; font-size: 14px; } .eb-log li { break-inside: avoid; }
.dnd-cmds td:first-child { white-space: nowrap; width: 1%; padding-inline-end: 18px; }

/* Right-to-left (Arabic, Urdu) */
[dir=rtl] .side nav a.on { box-shadow: inset -3px 0 0 var(--gold); }
[dir=rtl] .side nav a .lock { margin-left: 0; margin-right: auto; }
[dir=rtl] .lp-cat ul, [dir=rtl] .prose ul, [dir=rtl] .cl-ver ul { padding-left: 0; padding-right: 18px; }
[dir=rtl] .toggle .tl { text-align: right; }
[dir=rtl] .wiz-steps li a { padding: 6px 6px 6px 10px; }
[dir=rtl] code, [dir=rtl] .mono, [dir=rtl] input[type=number] { direction: ltr; unicode-bidi: isolate; }

@media (max-width: 980px) { .eb-tpls { grid-template-columns: repeat(3, 1fr); } .lp-easy-grid { grid-template-columns: 1fr; } .eb-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .eb-tpls { grid-template-columns: 1fr 1fr; } .eb-feats { grid-template-columns: 1fr; } .eb-cols { grid-template-columns: 1fr; } .eb-log { columns: 1; }
  .wiz-explain { grid-template-columns: 1fr; } .wiz-plans { grid-template-columns: 1fr; }
  .langpick .lp-cur { display: none; }
}

/* My plan (v1.3) */
.plan-sum > div:first-child { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.plan-meter { height: 10px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; margin: 10px 0 6px; max-width: 420px; }
.plan-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan-lo), var(--cyan)); }
