/* Dreamscube — site styles */
:root {
  --bg: #08080c;
  --bg-elev: #0d0d13;
  --surface: #121219;
  --surface-2: #18181f;
  --surface-3: #1f1f28;
  --line: #23232d;
  --line-strong: #2f2f3b;
  --text: #f4f4f7;
  --text-2: #c8c8d3;
  --muted: #8a8a9b;
  --brand: #7c5cff;
  --brand-hi: #9a84ff;
  --brand-soft: rgba(124, 92, 255, .13);
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, .12);
  --red: #f05252;
  --red-soft: rgba(240, 82, 82, .12);
  --yellow: #f5a524;
  --yellow-soft: rgba(245, 165, 36, .12);
  --blue: #3b82f6;
  --bbb: #2d87c3;
  --discord: #5865f2;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.6 var(--font);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--brand-hi); text-decoration: none; }
a:hover { color: #b9a9ff; }
code, .mono { font-family: var(--mono); font-size: 13px; }
code { background: var(--surface-3); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
::selection { background: rgba(124, 92, 255, .35); }
:focus-visible { outline: 2px solid var(--brand-hi); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- icons ---------- */
.ic { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: -3px; }
.ic.lg { width: 20px; height: 20px; }
.ic.xl { width: 28px; height: 28px; }
.ic-box {
  width: 38px; height: 38px; flex: none; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-hi);
  border: 1px solid rgba(124, 92, 255, .22);
}
.ic-box .ic { width: 18px; height: 18px; }
.ic-box.green { background: var(--green-soft); color: var(--green); border-color: rgba(34, 197, 94, .22); }
.ic-box.red { background: var(--red-soft); color: var(--red); border-color: rgba(240, 82, 82, .22); }
.ic-box.yellow { background: var(--yellow-soft); color: var(--yellow); border-color: rgba(245, 165, 36, .22); }
.ic-box.gray { background: var(--surface-3); color: var(--text-2); border-color: var(--line-strong); }

/* ---------- brand ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.2px; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-mark { width: 30px; height: 30px; flex: none; }
.bbb-logo { color: var(--bbb); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(8, 8, 12, .78);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.nav-left { display: flex; align-items: center; gap: 28px; }
.nav-menu { display: flex; gap: 22px; }
.nav-menu a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-menu a:hover { color: var(--text); }
.nav-links { display: flex; gap: 8px; align-items: center; }
.tag-admin { font-size: 11px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--brand-hi); background: var(--brand-soft); border: 1px solid rgba(124, 92, 255, .25); padding: 2px 8px; border-radius: 99px; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font-size: 13px; font-weight: 500; color: var(--text-2); max-width: 200px; }
.user-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-3); flex: none; object-fit: cover; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 15px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text);
  font: 500 14px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
}
.btn:hover { background: var(--surface-3); border-color: #3c3c4a; color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, 0 6px 18px rgba(124, 92, 255, .25); }
.btn.primary:hover { background: #6d4cf5; border-color: #6d4cf5; }
.btn.discord { background: var(--discord); border-color: var(--discord); color: #fff; }
.btn.discord:hover { background: #4752e0; border-color: #4752e0; }
.btn.bbb { background: rgba(45, 135, 195, .12); border-color: rgba(45, 135, 195, .4); color: #cfe7f7; }
.btn.bbb .ic { color: var(--bbb); }
.btn.bbb:hover { background: rgba(45, 135, 195, .2); border-color: var(--bbb); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); border-color: var(--line); }
.btn.danger { color: #ff8a8a; }
.btn.danger:hover { background: var(--red-soft); border-color: rgba(240, 82, 82, .45); color: #ffb0b0; }
.btn.danger-solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn.danger-solid:hover { background: #dc3f3f; border-color: #dc3f3f; }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; gap: 6px; border-radius: 7px; }
.btn.sm .ic { width: 15px; height: 15px; }
.btn.lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn.icon { width: 32px; padding: 0; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 320px at 50% -40px, rgba(124, 92, 255, .28), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: .9;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-2); padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 99px; background: rgba(18, 18, 25, .7); margin-bottom: 22px; }
.eyebrow .ic { color: var(--green); }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.05; font-weight: 800; letter-spacing: -1.6px; }
.hero h1 .grad { background: linear-gradient(92deg, #b6a6ff 0%, #7c5cff 45%, #38bdf8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--muted); font-size: 18px; max-width: 540px; margin: 20px 0 32px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; color: var(--muted); font-size: 13px; }
.hero .trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero .trust .ic { color: var(--brand-hi); }

/* console preview */
.console { background: #0a0a0f; border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .02) inset; }
.console-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.console-bar span { margin-left: 8px; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.console pre { margin: 0; padding: 18px 18px 20px; font: 12.5px/1.75 var(--mono); color: #b9b9c6; white-space: pre-wrap; word-break: break-word; }
.console .t { color: #5d5d6e; }
.console .g { color: #4ade80; }
.console .b { color: #a99bff; }
.console .y { color: #fbbf24; }

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section.alt { background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 620px; margin-bottom: 40px; }
.section-head .kicker { font-size: 13px; font-weight: 600; color: var(--brand-hi); letter-spacing: .3px; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; letter-spacing: -.6px; font-weight: 700; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 16px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; letter-spacing: -.1px; }
.card p { color: var(--muted); font-size: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h3 { margin: 0; }

.feature .ic-box { margin-bottom: 16px; }
.feature:hover { border-color: var(--line-strong); }

.step { position: relative; }
.step .num { font: 600 12px/1 var(--mono); color: var(--brand-hi); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.step .num::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.step .ic-box { margin-bottom: 14px; }

/* products */
.product { display: flex; flex-direction: column; gap: 14px; transition: border-color .15s, transform .15s; }
.product:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.product-top { display: flex; align-items: center; gap: 12px; }
.product-top b { font-size: 16px; font-weight: 600; display: block; }
.product p { flex: 1; }
.product .btn { align-self: flex-start; }
.pi { width: 42px; height: 42px; flex: none; border-radius: 10px; background: linear-gradient(140deg, #23203a, #15151d); border: 1px solid var(--line-strong); display: grid; place-items: center; font-weight: 700; color: var(--brand-hi); overflow: hidden; }
.pi img { width: 100%; height: 100%; object-fit: cover; }
.ver { display: inline-flex; align-items: center; gap: 5px; font: 500 12px/1 var(--mono); color: var(--muted); }

/* faq */
.faq { display: grid; gap: 10px; max-width: 780px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 17px 0; font-weight: 500; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--muted); transition: transform .2s; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { color: var(--muted); padding: 0 0 18px; font-size: 14px; }

.cta { text-align: center; padding: 56px 24px; background: radial-gradient(500px 200px at 50% 0%, rgba(124, 92, 255, .22), transparent 70%), var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; }
.cta h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -.5px; }
.cta p { color: var(--muted); margin: 10px auto 26px; max-width: 520px; }
.cta .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 32px 0; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
footer .logo { font-size: 15px; }
footer .logo-mark { width: 24px; height: 24px; }

/* ---------- app pages ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 36px 0 24px; }
.page-head h1 { font-size: 26px; font-weight: 700; letter-spacing: -.5px; }
.page-head p { color: var(--muted); margin-top: 4px; font-size: 14px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.linked { display: inline-flex; align-items: center; gap: 8px; }
.linked .ic { color: var(--bbb); }

.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.stat .n { font-size: 22px; font-weight: 700; letter-spacing: -.4px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: 13px; }

.claim { display: flex; gap: 10px; }
.claim input { flex: 1; font-family: var(--mono); letter-spacing: .5px; text-transform: uppercase; }
.claim input::placeholder { text-transform: none; letter-spacing: 0; }

/* license cards */
.lic { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.lic-body { padding: 20px 22px; }
.lic-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.lic-title { display: flex; align-items: center; gap: 12px; }
.lic-title b { font-size: 16px; font-weight: 600; }
.lic-reason { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--yellow-soft); color: #ffd28a; font-size: 13px; border: 1px solid rgba(245, 165, 36, .25); }
.keybox { display: flex; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 6px 6px 14px; margin: 16px 0; }
.keybox code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; background: none; border: 0; padding: 0; font-size: 13.5px; letter-spacing: .4px; color: var(--text-2); }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 20px; margin-bottom: 18px; }
.meta > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.meta > div > span { color: var(--muted); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .4px; }
.meta b { color: var(--text); font-weight: 500; font-size: 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; overflow-wrap: anywhere; }
.sub-title { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin: 18px 0 10px; }
.servers { display: grid; gap: 6px; }
.srv { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px; font-size: 13px; flex-wrap: wrap; }
.srv-l { display: flex; align-items: center; gap: 10px; }
.srv-r { display: flex; align-items: center; gap: 10px; color: var(--muted); flex-wrap: wrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4b4b5a; flex: none; }
.dot.on { background: var(--green); box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.lic-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--bg-elev); }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 500; text-transform: capitalize; border: 1px solid transparent; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.badge.nocase { text-transform: none; }
.badge.active { background: var(--green-soft); color: #4ade80; border-color: rgba(34, 197, 94, .25); }
.badge.suspended, .badge.warn { background: var(--yellow-soft); color: #fbbf24; border-color: rgba(245, 165, 36, .25); }
.badge.revoked, .badge.flag, .badge.bad { background: var(--red-soft); color: #ff8080; border-color: rgba(240, 82, 82, .25); }
.badge.gray { background: var(--surface-3); color: var(--text-2); border-color: var(--line-strong); }
.badge.brand { background: var(--brand-soft); color: var(--brand-hi); border-color: rgba(124, 92, 255, .25); }

/* forms */
input, select, textarea {
  width: 100%; background: var(--bg-elev); border: 1px solid var(--line-strong); color: var(--text);
  border-radius: var(--radius-sm); padding: 9px 12px; font: 400 14px/1.4 var(--font);
  transition: border-color .15s, box-shadow .15s;
}
input, select { height: 38px; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #5f5f70; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124, 92, 255, .2); }
input:disabled { opacity: .6; }
select { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238a8a9b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
input[type='checkbox'] { width: 16px; height: 16px; accent-color: var(--brand); vertical-align: -3px; }
label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin: 14px 0 6px; }
label.check { display: flex; align-items: center; gap: 9px; font-weight: 400; color: var(--text-2); cursor: pointer; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 150px; }
.search { position: relative; flex: 1; min-width: 200px; }
.search .ic { position: absolute; left: 11px; top: 11px; color: var(--muted); pointer-events: none; }
.search input { padding-left: 34px; }

/* tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; background: var(--bg-elev); }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--surface-2); }
td.num { font-variant-numeric: tabular-nums; }
.cell-user { display: inline-flex; align-items: center; gap: 10px; }
.cell-user .avatar { width: 24px; height: 24px; }

/* tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 11px 14px; cursor: pointer; color: var(--muted); border: 0; border-bottom: 2px solid transparent; background: none; font: 500 14px/1 var(--font); white-space: nowrap; margin-bottom: -1px; }
.tab:hover { color: var(--text-2); }
.tab.on { color: var(--text); border-bottom-color: var(--brand); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.toolbar select { width: auto; min-width: 150px; }
.toolbar .spacer { flex: 1; }
.pager { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }

/* chart */
.chart { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 18px; }
.chart .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.chart .bar i { display: block; width: 100%; max-width: 34px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--brand-hi), var(--brand)); min-height: 3px; }
.chart .bar.zero i { background: var(--surface-3); }
.chart .bar span { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-top: 8px; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(3, 3, 6, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; animation: fade .15s ease-out; }
.modal { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; width: 100%; max-width: 580px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: pop .18s ease-out; }
.modal.wide { max-width: 760px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 17px; font-weight: 600; letter-spacing: -.2px; }
.mbody { padding: 20px 22px; overflow-y: auto; }
.mbody > p:first-child { margin-top: 0; }
.mbody p { color: var(--text-2); font-size: 14px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--bg-elev); border-radius: 0 0 16px 16px; }
.changelog { white-space: pre-wrap; font-size: 14px; color: var(--text-2); background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* toast */
#toasts { position: fixed; bottom: 20px; right: 20px; display: grid; gap: 8px; z-index: 99; }
.toast { display: flex; align-items: flex-start; gap: 10px; background: var(--surface-2); border: 1px solid var(--line-strong); padding: 12px 14px; border-radius: 10px; min-width: 260px; max-width: 380px; font-size: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); animation: up .2s ease-out; }
.toast .ic { margin-top: 2px; }
.toast.ok .ic { color: var(--green); }
.toast.bad .ic { color: var(--red); }
@keyframes up { from { transform: translateY(10px); opacity: 0; } }

/* timeline */
.timeline { display: grid; }
.tl { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.tl:last-child { border-bottom: 0; }
.tl .ic-box { width: 28px; height: 28px; border-radius: 8px; }
.tl .ic-box .ic { width: 14px; height: 14px; }
.tl .when { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* misc */
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty .ic-box { width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 16px; }
.empty .ic-box .ic { width: 24px; height: 24px; }
.empty h3 { color: var(--text); font-size: 16px; margin-bottom: 6px; }
td.empty { padding: 40px 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--brand-soft); border: 1px solid rgba(124, 92, 255, .25); color: var(--text-2); font-size: 13.5px; }
.notice .ic { color: var(--brand-hi); margin-top: 2px; }
.notice.warn { background: var(--yellow-soft); border-color: rgba(245, 165, 36, .25); }
.notice.warn .ic { color: var(--yellow); }
.spinner { width: 26px; height: 26px; border: 2.5px solid var(--line-strong); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* error page */
.error-page { display: grid; place-items: center; text-align: center; padding: 120px 20px; }
.error-page .code { font: 700 14px/1 var(--mono); color: var(--brand-hi); margin-bottom: 14px; }
.error-page h1 { font-size: 32px; letter-spacing: -.6px; }
.error-page p { color: var(--muted); margin: 10px 0 26px; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-menu { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 56px 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .claim { flex-direction: column; }
  .user-chip span { display: none; }
  .user-chip { padding: 3px; }
  .hide-sm { display: none !important; }
  .lic-body, .lic-actions { padding-left: 16px; padding-right: 16px; }
  #toasts { left: 16px; right: 16px; }
  .toast { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
