/* =========================
   THEME.CSS — GLOBAL DESIGN SYSTEM
   ========================= */

/* 1) Theme tokens */
:root{
  /* background */
  --bg0: #0b0c10;
  --bg1: #10121a;

  /* text */
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);

  /* glass surfaces */
  --glass: rgba(255,255,255,0.07);
  --glass2: rgba(255,255,255,0.11);

  /* accents (match your cyber/blue profile) */
  --accent: #2aa6ff;
  --accent2: #5ee7ff;
  --steel: rgba(220,230,255,0.22);

  /* borders */
  --border: rgba(255,255,255,0.12);
  --border2: rgba(255,255,255,0.18);

  /* rings */
  --ring: rgba(42,166,255,0.22);
  --ringSoft: rgba(42,166,255,0.10);

  /* glow & shadows */
  --glow: 0 0 28px rgba(42,166,255,0.35);
  --shadow: 0 22px 70px rgba(0,0,0,0.62);

  /* radii */
  --radius: 26px;
  --radiusSm: 14px;
  --pill: 999px;

  /* typography */
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

/* 2) Base page */
html, body{
  height: 100%;
}

body{
  margin:0;
  min-height:100svh;
  background:
    radial-gradient(900px 600px at 50% 20%, rgba(42,166,255,0.16), transparent 60%),
    radial-gradient(900px 600px at 85% 80%, rgba(94,231,255,0.10), transparent 60%),
    radial-gradient(900px 600px at 15% 85%, rgba(220,230,255,0.06), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  font-family: var(--font);
  color: var(--text);
}

/* 3) Reusable components */

/* Panel (glass card) */
.dh-panel{
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Pill button base */
.dh-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  cursor:pointer;
  user-select:none;

  height: 46px;
  padding: 0 14px;
  border-radius: var(--pill);

  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text);

  font-weight: 700;
  letter-spacing: 0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.dh-btn:hover{
  background: rgba(42,166,255,0.10);
  border-color: rgba(42,166,255,0.30);
  box-shadow: 0 0 0 1px rgba(42,166,255,0.10), var(--glow);
  transform: translateY(-1px);
}

.dh-btn.is-active,
.dh-btn[aria-current="true"]{
  background: rgba(42,166,255,0.16);
  border-color: rgba(42,166,255,0.42);
  box-shadow: 0 0 0 1px rgba(42,166,255,0.14), var(--glow);
}

/* Link tile */
.dh-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;

  padding: 11px 12px;
  border-radius: var(--radiusSm);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  text-decoration:none;
  color: var(--text);

  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.dh-link:hover{
  background: rgba(42,166,255,0.10);
  border-color: rgba(42,166,255,0.26);
  box-shadow: 0 0 0 1px rgba(42,166,255,0.10);
  transform: translateY(-1px);
}

/* Small close button */
.dh-icon-btn{
  border: 0;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor:pointer;
  transition: background 140ms ease;
}

.dh-icon-btn:hover{
  background: rgba(255,255,255,0.12);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{
    transition: none !important;
    scroll-behavior: auto !important;
  }
}