/* ==========================================================================
   Nova Access - Boundless Spatial Canvas (Avant-Garde Freeform Layout)
   Zero Container Enclosure · Ethereal Ambient Glow · Dynamic Island Dock
   ========================================================================== */

:root {
  --bg-canvas: #f8fafc;
  --text-main: #0f172a;
  --text-sub: #475569;
  --text-muted: #94a3b8;

  --accent-primary: #2563eb;
  --accent-primary-hover: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.2);
  --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #2563eb 50%, #7c3aed 100%);

  /* Translucent glass surfaces without opaque box borders */
  --glass-surface: rgba(255, 255, 255, 0.65);
  --glass-surface-hover: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-dock: rgba(255, 255, 255, 0.72);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.06);
  --glass-shadow-hover: 0 14px 38px 0 rgba(37, 99, 235, 0.14);

  --green: #10b981;
  --green-bg: rgba(16, 185, 129, 0.12);
  --yellow: #f59e0b;
  --yellow-bg: rgba(245, 158, 11, 0.12);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.12);

  --radius-pill: 9999px;
  --radius-organic: 22px;
  --radius-lg: 32px;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Google Sans", sans-serif;
  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-theme {
  --bg-canvas: #07090e;
  --text-main: #f8fafc;
  --text-sub: #cbd5e1;
  --text-muted: #64748b;

  --accent-primary: #38bdf8;
  --accent-primary-hover: #7dd3fc;
  --accent-glow: rgba(56, 189, 248, 0.25);
  --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #6366f1 50%, #a855f7 100%);

  --glass-surface: rgba(26, 30, 44, 0.55);
  --glass-surface-hover: rgba(35, 41, 60, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-dock: rgba(15, 19, 32, 0.75);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  --glass-shadow-hover: 0 16px 40px 0 rgba(56, 189, 248, 0.2);

  --green: #34d399;
  --green-bg: rgba(52, 211, 153, 0.15);
  --yellow: #fbbf24;
  --yellow-bg: rgba(251, 191, 36, 0.15);
  --red: #f87171;
  --red-bg: rgba(248, 113, 113, 0.15);
}

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

html, body {
  background-color: var(--bg-canvas);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.4s ease;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select { font-family: inherit; }
a { color: var(--accent-primary); text-decoration: none; }

/* ==========================================================================
   AMBIENT GLOW AURORA LIGHTS (Boundless Visual Depth)
   ========================================================================== */
.g-ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  animation: g-drift 20s infinite alternate ease-in-out;
}
.g-ambient-glow.glow-1 {
  width: 550px;
  height: 550px;
  top: -120px;
  left: 10%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
}
.g-ambient-glow.glow-2 {
  width: 650px;
  height: 650px;
  top: 15%;
  right: -80px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22) 0%, transparent 70%);
  animation-duration: 25s;
  animation-delay: -5s;
}
.g-ambient-glow.glow-3 {
  width: 700px;
  height: 700px;
  bottom: -150px;
  left: 20%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.16) 0%, transparent 70%);
  animation-duration: 28s;
  animation-delay: -10s;
}
body.dark-theme .g-ambient-glow {
  opacity: 0.65;
}
@keyframes g-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, -20px) scale(0.95); }
}

/* ==========================================================================
   FLOATING TOP APP BAR & DYNAMIC ISLAND
   ========================================================================== */
.g-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  padding: 0 36px;
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.g-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}
.g-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  transition: var(--transition);
}
.g-brand-logo:hover {
  transform: scale(1.05) rotate(5deg);
}
.g-brand-logo svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}
.g-brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.g-brand-chip {
  font-size: 10px;
  font-weight: 800;
  background: var(--accent-gradient);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* ── The Dynamic Island Floating Dock (Center) ── */
.g-dynamic-island {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  background: var(--glass-dock);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}
.g-dynamic-island:hover {
  box-shadow: var(--glass-shadow-hover);
}

.g-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  color: var(--text-sub);
  font-size: 13.5px;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.g-nav-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.4);
}
body.dark-theme .g-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
}
.g-nav-item.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(56, 189, 248, 0.2));
  color: var(--accent-primary);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.12);
}
.g-nav-item svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex-shrink: 0;
}

.g-island-sep {
  width: 1px;
  height: 20px;
  background: rgba(148, 163, 184, 0.25);
  margin: 0 4px;
}

.g-island-key-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  background: var(--accent-gradient);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: var(--transition);
}
.g-island-key-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

/* ── Top Right Controls ── */
.g-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  justify-content: flex-end;
}

.g-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--glass-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  height: 40px;
  padding: 0 16px;
  width: 220px;
  transition: var(--transition);
}
.g-search-bar:focus-within {
  width: 280px;
  background: var(--glass-surface-hover);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.g-search-bar svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.g-search-bar input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--text-main);
  width: 100%;
}
.g-search-bar input::placeholder {
  color: var(--text-muted);
}

.g-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}
.g-icon-btn:hover {
  color: var(--text-main);
  background: var(--glass-surface-hover);
  transform: translateY(-1px);
}

.g-user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 4px;
  background: var(--glass-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}
.g-user-badge:hover {
  transform: translateY(-1px);
  box-shadow: var(--glass-shadow-hover);
}
.g-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.g-user-email {
  font-size: 13px;
  font-weight: 700;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   BOUNDLESS FREEFORM CANVAS (Zero Nested Container Feeling)
   ========================================================================== */
.g-canvas {
  position: relative;
  z-index: 10;
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 32px 100px 32px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ── DECONSTRUCTED HERO STAGE (Pure Organic Typography & Floating Beams) ── */
.g-hero-stage, .g-boundless-hero {
  position: relative;
  background: transparent; /* No box background */
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 8px 0;
}

.g-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.g-hero-badge-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.g-hero-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--green-bg);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
  backdrop-filter: blur(12px);
}
.g-hero-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.g-plan-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text-main) 60%, var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* The Grand Kinetic Data Typography */
.g-data-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 6px;
}
.g-huge-number {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -2.5px;
  line-height: 0.95;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.g-limit-sub {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-sub);
}
.g-percent-pill {
  font-size: 14px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  color: var(--accent-primary);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.1);
  margin-left: auto;
}

/* Dynamic Aurora Energy Light Beam */
.g-aurora-track {
  height: 10px;
  border-radius: var(--radius-pill);
  background: rgba(148, 163, 184, 0.16);
  position: relative;
  overflow: visible;
}
.g-aurora-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #38bdf8 0%, #3b82f6 40%, #10b981 85%, #8b5cf6 100%);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.65), 0 0 30px rgba(59, 130, 246, 0.35);
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.g-aurora-fill::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px #38bdf8, 0 0 20px #3b82f6;
}

/* Floating Context Metadata Chips */
.g-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 14px;
  color: var(--text-sub);
}
.g-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(12px);
  font-weight: 500;
}
.g-meta-tag strong {
  color: var(--text-main);
  font-weight: 700;
}

/* ── Kinetic Floating Launch Bar ── */
.g-fluid-pill-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.g-fluid-pill-bar::-webkit-scrollbar { display: none; }

.g-flow-chip {
  padding: 9px 18px;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}
.g-flow-chip:hover {
  background: var(--glass-surface-hover);
  transform: translateY(-2px) scale(1.02);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.18);
}
.g-flow-chip.primary {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}
.g-flow-chip.primary:hover {
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
  color: #fff;
}

/* ==========================================================================
   CONSTELLATION OF NODES (Spatial Floating Glass Capsules)
   ========================================================================== */
.g-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 4px;
  margin-bottom: 20px;
}
.g-section-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.g-section-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.g-nodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

/* Individual Floating Spatial Glass Capsule */
.g-node-island {
  background: var(--glass-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-organic);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.g-node-island::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 50%, rgba(56, 189, 248, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.g-node-island:hover {
  transform: translateY(-3px) scale(1.01);
  background: var(--glass-surface-hover);
  border-color: var(--accent-primary);
  box-shadow: var(--glass-shadow-hover);
}
.g-node-island:hover::before {
  opacity: 1;
}

.g-node-island-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.g-node-flag-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(56, 189, 248, 0.16));
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.g-node-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.g-node-title {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g-node-meta-line {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.g-node-island-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.g-ping-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.3px;
}
.g-ping-pill.fast {
  background: var(--green-bg);
  color: var(--green);
}
.g-ping-pill.medium {
  background: var(--yellow-bg);
  color: var(--yellow);
}
.g-ping-pill.slow {
  background: var(--red-bg);
  color: var(--red);
}

.g-action-icon-pill {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.1);
  transition: var(--transition);
}
.g-node-island:hover .g-action-icon-pill {
  color: #fff;
  background: var(--accent-primary);
  transform: rotate(-5deg) scale(1.05);
}

/* ==========================================================================
   SUB-PAGES (Boundless Open Modules: Guide, Settings, All Nodes)
   ========================================================================== */
.g-boundless-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 10;
}
.g-boundless-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
}
.g-boundless-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.6px;
}
.g-boundless-sub {
  font-size: 14px;
  color: var(--text-sub);
  margin-top: 4px;
}

/* Open Spatial Steps (Guide) */
.g-spatial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.g-spatial-step-card {
  background: var(--glass-surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-organic);
  padding: 28px;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition);
}
.g-spatial-step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--glass-shadow-hover);
  background: var(--glass-surface-hover);
}
.g-step-num {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Settings Capsules */
.g-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.g-form-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-sub);
}
.g-input {
  background: var(--glass-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 13px 20px;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}
.g-input:focus {
  background: var(--glass-surface-hover);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.g-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
}
.g-btn.filled {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}
.g-btn.filled:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.45);
}
.g-btn.tonal {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
}
.g-btn.tonal:hover {
  background: var(--glass-surface-hover);
  transform: translateY(-1px);
}
.g-btn.outlined {
  border: 1.5px solid var(--glass-border);
  color: var(--text-sub);
}
.g-btn.outlined:hover {
  color: var(--red);
  border-color: var(--red);
  background: var(--red-bg);
}

/* ==========================================================================
   BORDERLESS DIALOGS & SNACKBARS
   ========================================================================== */
.g-dialog-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 15, 26, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.g-dialog-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.g-dialog {
  background: var(--bg-canvas);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  padding: 32px;
  position: relative;
  transform: scale(0.92);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.g-dialog-backdrop.active .g-dialog {
  transform: scale(1);
}
.g-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.g-dialog-title {
  font-size: 20px;
  font-weight: 800;
}

.g-snackbar-container {
  position: fixed;
  bottom: 28px;
  left: 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 300;
  pointer-events: none;
}
.g-snackbar {
  background: #0f172a;
  color: #f8fafc;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: g-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
body.dark-theme .g-snackbar {
  background: #f8fafc;
  color: #0f172a;
}
@keyframes g-pop {
  from { opacity: 0; transform: translateY(14px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Adaptive Flow)
   ========================================================================== */
@media (max-width: 960px) {
  .g-top-bar {
    padding: 0 20px;
    height: 68px;
  }
  .g-search-bar { display: none; }
  .g-dynamic-island {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  }
  .g-canvas {
    padding: 24px 20px 100px 20px;
  }
  .g-huge-number {
    font-size: 48px;
  }
}
