:root {
  --backdrop: #070609;
  --frame-bg: rgba(48, 43, 52, 0.78);
  --frame-border: rgba(255, 255, 255, 0.09);
  --obsidian: #0c0a0f;
  --obsidian-2: #120f16;
  --obsidian-3: #18141e;
  --surface-hover: #1e1925;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(207, 168, 203, 0.28);
  --text: #f3eef5;
  --text-soft: #cdc4d3;
  --muted: #93889c;
  --mauve: #cfa8cb;
  --mauve-strong: #b683b1;
  --mauve-deep: #7a5277;
  --mauve-glow: rgba(196, 152, 192, 0.34);
  --mauve-soft: rgba(196, 152, 192, 0.14);
  --success: #5ad69c;
  --success-soft: rgba(90, 214, 156, 0.14);
  --warn: #f0b96e;
  --warn-soft: rgba(240, 185, 110, 0.14);
  --danger: #f0708a;
  --danger-soft: rgba(240, 112, 138, 0.15);
  --radius-frame: 26px;
  --radius-card: 20px;
  --radius-sub: 14px;
  --radius-pill: 999px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(60% 45% at 50% 0%, rgba(164, 112, 160, 0.16), transparent 70%),
    radial-gradient(45% 40% at 85% 95%, rgba(122, 82, 119, 0.12), transparent 65%),
    var(--backdrop);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }
.mono { font-family: var(--mono); }
.tabular { font-variant-numeric: tabular-nums; }

button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--mauve);
  outline-offset: 2px;
}

/* Outer Shell (Helios Frosted Frame) */
.viewport-wrap {
  min-height: 100vh;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.app-frame {
  width: 100%;
  max-width: 1440px;
  background: linear-gradient(160deg, rgba(66, 59, 71, 0.72) 0%, rgba(44, 39, 48, 0.82) 55%, rgba(36, 32, 40, 0.88) 100%);
  border: 1px solid var(--frame-border);
  border-radius: var(--radius-frame);
  padding: 16px;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 18px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
}

/* Sidebar */
.sidebar {
  background: var(--obsidian);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.sidebar::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(182, 131, 177, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 8px 14px;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(207, 168, 203, 0.28), rgba(122, 82, 119, 0.18));
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--mauve);
  flex-shrink: 0;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 13px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}

.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }

.nav-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
  color: var(--text);
  font-weight: 600;
  background: linear-gradient(90deg, rgba(207, 168, 203, 0.42) 0%, rgba(140, 100, 138, 0.18) 65%, rgba(12, 10, 15, 0) 100%);
  border-color: rgba(215, 178, 212, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.nav-badge {
  margin-left: auto;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
}

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

/* Main Content Area */
.main-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.greeting-wrap { display: flex; align-items: center; gap: 12px; }

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--obsidian);
  color: var(--text);
  place-items: center;
}

.greeting-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.greeting-title .accent { color: var(--mauve); font-weight: 500; }

.greeting-sub {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--text-soft);
  opacity: 0.78;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--obsidian);
  color: var(--text-soft);
  display: grid;
  place-items: center;
  position: relative;
  transition: border-color 180ms var(--ease), color 180ms var(--ease), background 180ms var(--ease);
}

.icon-circle:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--obsidian-3);
}

.icon-circle svg { width: 17px; height: 17px; }

.status-dot {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mauve);
  box-shadow: 0 0 8px var(--mauve);
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 6px;
  border-radius: var(--radius-pill);
  background: rgba(12, 10, 15, 0.55);
  border: 1px solid var(--border);
}

.avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #e0c0dd, #7a5277);
  color: #0e0a12;
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
}

.profile-meta { display: flex; flex-direction: column; line-height: 1.2; }
.profile-name { font-size: 13px; font-weight: 600; color: var(--text); }
.profile-sub { font-size: 11px; color: var(--muted); }

/* Sub-Header Pills + Search */
.subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pill-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-tab {
  min-height: 38px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--obsidian);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
  transition: all 180ms var(--ease);
}

.pill-tab:hover { border-color: var(--border-strong); color: var(--text); }

.pill-tab.active {
  color: var(--text);
  font-weight: 600;
  background: linear-gradient(135deg, rgba(196, 152, 192, 0.44), rgba(110, 74, 110, 0.32));
  border-color: rgba(215, 178, 212, 0.42);
  box-shadow: 0 6px 20px rgba(182, 131, 177, 0.22);
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 240px;
  flex: 0 1 310px;
  height: 40px;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  background: rgba(12, 10, 15, 0.85);
  border: 1px solid var(--border);
  color: var(--muted);
}

.search-pill svg { width: 15px; height: 15px; flex-shrink: 0; }

.search-pill input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  outline: none;
}

.search-pill input::placeholder { color: var(--muted); }

/* Views */
.view-panel { display: none; flex-direction: column; gap: 16px; }
.view-panel.active { display: flex; }

/* Bento Dashboard Grid (Exact Helios Layout) */
.bento-top {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(270px, 1.05fr) minmax(280px, 1.15fr);
  gap: 16px;
}

.bento-col-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: var(--obsidian);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Card 1: KPI Glow Card (like Total Holding) */
.kpi-card {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kpi-card::before {
  content: "";
  position: absolute;
  bottom: -45px;
  left: -35px;
  width: 240px;
  height: 170px;
  background: radial-gradient(ellipse at center, rgba(196, 152, 192, 0.36) 0%, rgba(122, 82, 119, 0.12) 48%, transparent 72%);
  pointer-events: none;
}

.kpi-value {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.kpi-sub {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 4px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Card 2: Aurora Action Card (like Decisions Powered by Data) */
.aurora-card {
  flex: 1;
  min-height: 174px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 22px 20px;
}

.aurora-card::before {
  content: "";
  position: absolute;
  bottom: -65px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 175px;
  background: radial-gradient(ellipse at center, rgba(214, 173, 210, 0.56) 0%, rgba(145, 98, 142, 0.24) 48%, transparent 74%);
  pointer-events: none;
}

.aurora-card h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.aurora-card p {
  margin: 0;
  max-width: 235px;
  font-size: 12px;
  color: var(--text-soft);
  opacity: 0.85;
  position: relative;
  z-index: 1;
}

/* Card 3: Watchlist */
.watchlist-pills {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.mini-pill {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  transition: all 160ms var(--ease);
}

.mini-pill:hover { color: var(--text); border-color: var(--border-strong); }

.mini-pill.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(196, 152, 192, 0.34), rgba(110, 74, 110, 0.24));
  border-color: rgba(215, 178, 212, 0.4);
}

.watchlist-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.watch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 160ms var(--ease);
}

.watch-row:hover { background: rgba(255, 255, 255, 0.045); }

.watch-left { display: flex; align-items: center; gap: 10px; min-width: 0; }

.watch-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--obsidian-3);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--mauve);
  flex-shrink: 0;
}

.watch-icon svg { width: 14px; height: 14px; }
.watch-name { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.watch-sub { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.watch-right { text-align: right; flex-shrink: 0; }
.watch-val { font-size: 12px; font-weight: 600; color: var(--text); }
.watch-delta { font-size: 11px; font-weight: 600; }
.watch-delta.ok { color: var(--success); }
.watch-delta.warn { color: var(--warn); }
.watch-delta.danger { color: var(--danger); }

/* Card 4: 2x2 Sub-Cards Grid (like My Portfolio) */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sub-tile {
  background: var(--obsidian-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sub);
  padding: 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 112px;
  transition: border-color 180ms var(--ease), transform 180ms var(--ease);
}

.sub-tile:hover {
  border-color: var(--border-strong);
  background: var(--obsidian-3);
}

.sub-tile-val { font-size: 18px; font-weight: 700; color: var(--text); }
.sub-tile-delta { font-size: 11px; color: var(--success); font-weight: 600; }
.sub-tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11px; color: var(--muted); }
.sub-tile-name { color: var(--text-soft); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Card 5: Performance Area Chart */
.chart-card { padding: 18px 20px 14px; }

.chart-ranges { display: flex; align-items: center; gap: 6px; }

.range-pill {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  transition: all 160ms var(--ease);
}

.range-pill:hover { color: var(--text); border-color: var(--border-strong); }

.range-pill.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(196, 152, 192, 0.38), rgba(110, 74, 110, 0.26));
  border-color: rgba(215, 178, 212, 0.45);
}

.chart-host {
  position: relative;
  width: 100%;
  height: 215px;
}

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(24, 20, 30, 0.94);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 9px 12px;
  min-width: 132px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  z-index: 5;
  transition: left 120ms var(--ease), top 120ms var(--ease), opacity 140ms var(--ease);
}

.chart-tooltip-date { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.chart-tooltip-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 700; color: var(--text); }

/* Shared Buttons, Badges, Inputs, Tables */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--obsidian-3);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  transition: all 160ms var(--ease);
}

.btn svg { width: 14px; height: 14px; }
.btn:hover:not(:disabled) { border-color: var(--border-strong); background: var(--surface-hover); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, #cfa8cb 0%, #9f709c 100%);
  border-color: rgba(235, 205, 232, 0.5);
  color: #110c14;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 8px 24px rgba(196, 152, 192, 0.34);
}

.btn-danger {
  background: var(--danger-soft);
  border-color: rgba(240, 112, 138, 0.35);
  color: var(--danger);
}

.btn-sm { min-height: 30px; padding: 5px 11px; font-size: 11.5px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
}

.badge-ok { background: var(--success-soft); color: var(--success); border-color: rgba(90, 214, 156, 0.28); }
.badge-mauve { background: var(--mauve-soft); color: var(--mauve); border-color: rgba(207, 168, 203, 0.32); }
.badge-warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(240, 185, 110, 0.28); }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(240, 112, 138, 0.3); }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 11.5px; font-weight: 600; color: var(--text-soft); }

.field input, .field select, .field textarea {
  background: var(--obsidian-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 9px 12px;
  font-size: 13px;
}

.field textarea { resize: vertical; min-height: 160px; font-family: var(--mono); font-size: 12px; line-height: 1.5; }

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 12.5px;
  cursor: pointer;
  user-select: none;
}

.check-row input { accent-color: var(--mauve); width: 15px; height: 15px; }

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  vertical-align: middle;
}

tr:hover td { background: rgba(255, 255, 255, 0.02); }

.action-group { display: flex; flex-wrap: wrap; gap: 6px; }

/* Obfuscator Embedded Layout */
.obf-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 16px;
}

.obf-editors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.code-card {
  background: var(--obsidian);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 440px;
}

.code-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: var(--obsidian-2);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
}

.code-card textarea {
  flex: 1;
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  padding: 14px;
  background: var(--obsidian);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
}

.preset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }

.stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.stat-pill {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--obsidian-2);
  border: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--muted);
}

.stat-pill strong { color: var(--text); }

/* Scripts Grid & Code Blocks */
.scripts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.code-box {
  background: var(--obsidian-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-soft);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Modals & Auth Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 5, 8, 0.84);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}

.modal-card {
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--obsidian);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-card { max-width: 390px; }

/* Toast */
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: rgba(20, 16, 26, 0.96);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 11px 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  z-index: 150;
  max-width: 360px;
}

.toast.error { border-color: rgba(240, 112, 138, 0.55); color: var(--danger); }
.toast.ok { border-color: rgba(90, 214, 156, 0.48); color: var(--success); }

/* Top Country Execute & Executor Execute Cards */
.analytics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bar-list { display: flex; flex-direction: column; gap: 11px; }
.bar-row { display: flex; flex-direction: column; gap: 5px; }
.bar-row-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.bar-label { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
.bar-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.bar-meta strong { color: var(--text); }
.bar-track { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #9f709c 0%, #dfc0dc 100%);
  box-shadow: 0 0 12px rgba(207, 168, 203, 0.35);
}
.bar-fill-alt { background: linear-gradient(90deg, #6d89c8 0%, #cfa8cb 100%); }
.code-pill {
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  background: var(--obsidian-3);
  border: 1px solid var(--border-strong);
  color: var(--mauve);
}
.exec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mauve); box-shadow: 0 0 8px var(--mauve); }
.empty-hint { color: var(--muted); font-size: 12.5px; padding: 12px 2px; }

/* Live Heartbeat Players Grid */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 14px;
}
.player-card { display: flex; flex-direction: column; gap: 13px; }
.player-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; }
.pulse-dot.online { background: var(--success); box-shadow: 0 0 10px var(--success); }
.pulse-dot.idle { background: var(--warn); }
.profile-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile-box {
  background: var(--obsidian-2);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.profile-box-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); }
.profile-box-row { display: flex; align-items: center; gap: 9px; min-width: 0; }
.profile-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border-strong); }
.profile-avatar.fallback {
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  color: #100c14;
  background: linear-gradient(135deg, #e0c0dd, #8b5d88);
}
.profile-avatar.fallback.discord { background: linear-gradient(135deg, #9fb0ff, #5865f2); color: #fff; }
.profile-title { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-subline { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-link { font-size: 11px; color: var(--mauve); text-decoration: none; font-weight: 600; }
.profile-link:hover { text-decoration: underline; }
.player-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 11.5px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}
.player-meta-strip strong { color: var(--text-soft); }

/* Responsive */
@media (max-width: 1180px) {
  .bento-top { grid-template-columns: 1fr 1fr; }
  .bento-top > :last-child { grid-column: span 2; }
  .obf-grid { grid-template-columns: 1fr; }
  .analytics-row { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .viewport-wrap { padding: 10px; }
  .app-frame { grid-template-columns: 1fr; padding: 12px; border-radius: 20px; }
  .mobile-menu-btn { display: grid; }
  .sidebar {
    display: none;
    position: fixed;
    inset: 12px auto 12px 12px;
    width: 244px;
    z-index: 90;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  }
  .sidebar.open { display: flex; }
  .bento-top { grid-template-columns: 1fr; }
  .bento-top > :last-child { grid-column: auto; }
  .obf-editors { grid-template-columns: 1fr; }
  .players-grid { grid-template-columns: 1fr; }
  .profile-pair { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
