/* Diamond Dragon Live Hub - look and structure modeled on Diamond Tech Hub (dark, magenta/gold, pill buttons, cards). */
:root {
  --bg: #050407; --card: #0e0c12; --line: rgba(229, 108, 255, .22); --text: #fff; --muted: rgba(246, 240, 230, .72);
  --accent: #e0b45a; --magenta: #e56cff; --danger: #e25c5c; --ok: #4ade80; --warn: #e0b45a;
  --font-s: "Manrope", "Segoe UI", system-ui, sans-serif; font-family: var(--font-s);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); min-height: 100%; }
.hidden, [hidden] { display: none !important; }
.screen { min-height: 100vh; }
.eyebrow { letter-spacing: .16em; text-transform: uppercase; font-size: .72rem; color: var(--accent); margin: 0 0 .4rem; }
h1 { font-weight: 800; letter-spacing: -.04em; margin: 0 0 .6rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
h2 { font-size: 1rem; margin: 0 0 .75rem; font-weight: 700; }
.gate { display: grid; place-items: center; padding: 2rem; text-align: center; position: relative; }
.gate-inner { display: flex; flex-direction: column; align-items: center; }
.gate-logo { width: 84px; height: auto; margin-bottom: 1rem; filter: drop-shadow(0 0 18px rgba(229,108,255,.35)); }
.return-home { position: absolute; top: 1.35rem; left: 1.35rem; color: var(--accent); font-size: .92rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.return-home:hover, .return-home:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.return-home-app { position: static; letter-spacing: .08em; font-size: .82rem; }
.gate h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -.05em; line-height: .95; margin: 0 0 1.8rem; }
.otp-form { display: flex; flex-direction: column; align-items: center; width: min(22rem, 100%); margin-top: .6rem; }
.otp-form label { margin: 0 0 .55rem; color: rgba(246, 240, 230, .86); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.otp-form input { width: 100%; min-height: 3.05rem; margin: 0 0 1rem; padding: .7rem 1.15rem; border: 1px solid rgba(229, 108, 255, .3); border-radius: 999px;
  background: rgba(5, 4, 7, .42); color: #fff; font-family: var(--font-s); font-size: 1rem; font-weight: 600; text-align: center; }
.otp-form input:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 18px rgba(229, 108, 255, .35); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 3.2rem; padding: .4rem .45rem .4rem 1.4rem;
  border: 2px solid transparent; border-radius: 999px; color: #fff; font-family: var(--font-s); font-size: .92rem; font-weight: 800; letter-spacing: .08em; cursor: pointer;
  background: linear-gradient(rgba(5,4,7,.48), rgba(5,4,7,.48)) padding-box, linear-gradient(90deg, #7c3aed, #e56cff, #f472b6) border-box;
  box-shadow: 0 0 18px rgba(229, 108, 255, .2); transition: transform .22s ease, box-shadow .22s ease, background .22s ease; }
.icon-btn .btn-go { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; font-size: 1.35rem;
  background: linear-gradient(135deg, rgba(232,121,249,.92), rgba(244,114,182,.92)); }
.icon-btn:hover, .icon-btn:focus-visible { transform: translateY(-1px); background: linear-gradient(90deg, rgba(124,58,237,.86), rgba(192,38,211,.86) 52%, rgba(244,114,182,.86)); }
.icon-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.note { color: var(--muted); font-size: .88rem; margin: .4rem 0 0; max-width: 22rem; line-height: 1.45; }
.note.warn { color: var(--warn); }
.error { color: var(--danger); margin-top: .6rem; font-size: .9rem; }
button.ghost, .seg button, .mini { appearance: none; border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 999px;
  padding: .45rem .9rem; font-family: var(--font-s); font-weight: 600; cursor: pointer; font-size: .85rem; }
.mini { padding: .3rem .7rem; font-size: .78rem; }
.mini.on, .seg button.active { border-color: var(--magenta); color: var(--magenta); }
.mini.off { border-color: rgba(226,92,92,.6); color: #ff9b9b; }
.mini:disabled, button.ghost:disabled { opacity: .45; cursor: not-allowed; }
#app { padding: 2rem clamp(1.2rem, 4vw, 3rem) 4rem; }
.top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 1.2rem; flex-wrap: wrap; }
.top-actions { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin: 1.2rem 0 1.4rem; }
.status { color: var(--muted); margin: 0; font-size: .9rem; }
.pill { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem; font-weight: 800; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.pill::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--muted); }
.pill.live { border-color: rgba(226,92,92,.7); color: #ff8a8a; } .pill.live::before { background: #ff4d4d; box-shadow: 0 0 10px #ff4d4d; }
.pill.ok::before { background: var(--ok); } .pill.warn::before { background: var(--warn); } .pill.err { color: #ff9b9b; } .pill.err::before { background: var(--danger); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.25rem; }
.card h2 { font-size: 1.1rem; margin-bottom: .2rem; }
.domain, .meta { color: var(--muted); font-size: .8rem; line-height: 1.45; margin: 0 0 .9rem; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin: 0; }
.metric dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.metric dd { margin: .15rem 0 0; font-size: 1.35rem; font-variant-numeric: tabular-nums; font-weight: 700; }
.seg { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .8rem; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .6rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rows li:last-child { border-bottom: 0; }
.rows .name { font-weight: 700; } .rows .tags { color: var(--muted); font-size: .78rem; } .rows .btns { display: flex; gap: .35rem; flex-wrap: wrap; }
.rows .empty { color: var(--muted); font-size: .85rem; justify-content: flex-start; }
.badge { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(224,180,90,.4); border-radius: 999px; padding: .1rem .5rem; margin-left: .4rem; }
.wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
