/* ================================================================
   HISAB — AI FINANCIAL OPERATING SYSTEM
   Cinematic UI · Glassmorphic · Neural-aesthetic
   ================================================================ */

:root {
  /* core palette */
  --bg-0: #05070f;
  --bg-1: #0a0e1f;
  --bg-2: #0f1330;
  --surface: rgba(18, 22, 48, 0.55);
  --surface-2: rgba(30, 35, 70, 0.45);
  --surface-3: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* text */
  --text: #e8ecff;
  --text-2: #b0b6d8;
  --text-3: #6b7299;
  --text-mute: #4a5078;

  /* accents */
  --cyan: #6ee7ff;
  --violet: #a78bfa;
  --pink: #ff6b9d;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #ef4444;

  /* gradients */
  --grad-primary: linear-gradient(135deg, #6ee7ff 0%, #a78bfa 50%, #ff6b9d 100%);
  --grad-aurora: linear-gradient(135deg, #6ee7ff, #a78bfa);
  --grad-pro: linear-gradient(135deg, #fbbf24, #ff6b9d, #a78bfa);
  --grad-glow: radial-gradient(circle at 30% 30%, rgba(110, 231, 255, 0.4), rgba(167, 139, 250, 0.2) 50%, transparent 80%);

  /* shadows */
  --glow-cyan: 0 0 24px rgba(110, 231, 255, 0.45);
  --glow-violet: 0 0 32px rgba(167, 139, 250, 0.45);
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  --shadow-deep: 0 40px 80px rgba(0, 0, 0, 0.55);

  /* sizing */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-0);
  color: var(--text);
  font-size: 14px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  outline: none;
}
input, select {
  font-family: inherit;
  border: none;
  outline: none;
  background: transparent;
  color: inherit;
}

/* ============ ANIMATED BACKGROUND ============ */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at top, #0f1330 0%, #05070f 60%);
  pointer-events: none;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  mix-blend-mode: screen;
  animation: float 20s ease-in-out infinite;
}
.aurora-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #6ee7ff 0%, transparent 70%);
  top: -200px;
  left: -100px;
  animation-delay: 0s;
}
.aurora-2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #a78bfa 0%, transparent 70%);
  bottom: -200px;
  right: -150px;
  animation-delay: -7s;
}
.aurora-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #ff6b9d 0%, transparent 70%);
  top: 40%;
  right: 30%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.1); }
  66% { transform: translate(-50px, 30px) scale(0.95); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(110, 231, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 231, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ============ BOOT SCREEN ============ */
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-0);
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}
.boot-screen.hide {
  opacity: 0;
  visibility: hidden;
}
.boot-core {
  text-align: center;
  position: relative;
}
.boot-orb {
  width: 140px;
  height: 140px;
  position: relative;
  margin: 0 auto 32px;
}
.boot-orb::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--grad-primary);
  filter: blur(40px);
  opacity: 0.7;
  animation: pulse 2s ease-in-out infinite;
}
.boot-ring {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  border-top-color: var(--cyan);
  animation: spin 2s linear infinite;
}
.boot-ring.r2 {
  inset: 14px;
  border-top-color: var(--violet);
  animation-duration: 3s;
  animation-direction: reverse;
}
.boot-ring.r3 {
  inset: 28px;
  border-top-color: var(--pink);
  animation-duration: 1.5s;
}
.boot-pulse {
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  background: var(--grad-primary);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.85); opacity: 0.6; }
}
.boot-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 12px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.boot-tag {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--text-3);
  margin-top: 8px;
}
.boot-loading {
  margin-top: 32px;
  display: flex;
  gap: 8px;
  justify-content: center;
}
.boot-loading span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: bounce 1.4s ease-in-out infinite;
}
.boot-loading span:nth-child(2) { animation-delay: 0.2s; background: var(--violet); }
.boot-loading span:nth-child(3) { animation-delay: 0.4s; background: var(--pink); }
@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.5); opacity: 0.4; }
  40% { transform: scale(1.2); opacity: 1; }
}
.boot-status {
  margin-top: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 1px;
}

/* ============ APP SHELL ============ */
.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px 1fr;
  height: 100vh;
  opacity: 0;
  animation: fadeIn 1s var(--ease) forwards;
  animation-delay: 2.5s;
}
@keyframes fadeIn { to { opacity: 1; } }

/* ============ SIDE NAV ============ */
.sidenav {
  background: linear-gradient(180deg, rgba(15, 19, 48, 0.7) 0%, rgba(10, 14, 31, 0.5) 100%);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  position: relative;
}
.brand-orb {
  width: 100%;
  height: 100%;
  background: var(--grad-primary);
  border-radius: 12px;
  position: relative;
  animation: brandPulse 3s ease-in-out infinite;
  box-shadow: 0 0 24px rgba(110, 231, 255, 0.4);
}
.brand-orb::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--bg-1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-orb::before {
  content: 'H';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: white;
  z-index: 2;
}
@keyframes brandPulse {
  0%, 100% { box-shadow: 0 0 24px rgba(110, 231, 255, 0.4); }
  50% { box-shadow: 0 0 36px rgba(167, 139, 250, 0.6); }
}
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
}
.brand-sub {
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--text-3);
}

.nav-groups {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-mute);
  padding: 0 12px 8px;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  position: relative;
  transition: all 0.3s var(--ease);
}
.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.nav-item:hover {
  background: var(--surface-3);
  color: var(--text);
}
.nav-item.active {
  background: linear-gradient(90deg, rgba(110, 231, 255, 0.12) 0%, rgba(167, 139, 250, 0.06) 100%);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(110, 231, 255, 0.2);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  bottom: 25%;
  width: 3px;
  background: var(--grad-aurora);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 12px var(--cyan);
}
.badge-pulse {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.user-card {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.1) 0%, rgba(110, 231, 255, 0.05) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.user-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-glow);
  opacity: 0.3;
  pointer-events: none;
}
.user-avatar {
  width: 40px;
  height: 40px;
  position: relative;
  flex-shrink: 0;
}
.avatar-ring {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--grad-pro);
  animation: spin 3s linear infinite;
}
.avatar-img {
  position: absolute;
  inset: 0;
  background: var(--bg-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  margin: 2px;
}
.avatar-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--bg-1);
  box-shadow: 0 0 6px var(--green);
}
.user-info { flex: 1; min-width: 0; position: relative; z-index: 1; }
.user-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-plan {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}
.plan-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber);
}
.user-menu {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: all 0.2s var(--ease);
  position: relative;
  z-index: 1;
}
.user-menu:hover { background: var(--surface-3); color: var(--text); }
.user-menu svg { width: 16px; height: 16px; }

/* ============ MAIN CONTENT ============ */
.main-content {
  overflow-y: auto;
  padding: 24px 32px 40px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}

/* TOPBAR */
.topbar {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding: 8px 0;
}
.greeting-time {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 1px;
}
.greeting-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin-top: 2px;
}
.wave {
  display: inline-block;
  animation: wave 2s ease-in-out infinite;
  transform-origin: 70% 70%;
}
@keyframes wave {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(15deg); }
  75% { transform: rotate(-10deg); }
}

.search-pod {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  transition: all 0.3s var(--ease);
}
.search-pod:focus-within {
  border-color: rgba(110, 231, 255, 0.3);
  box-shadow: 0 0 0 4px rgba(110, 231, 255, 0.08);
}
.search-icon {
  width: 16px;
  height: 16px;
  color: var(--text-3);
  flex-shrink: 0;
}
.search-pod input {
  flex: 1;
  font-size: 13px;
  color: var(--text);
}
.search-pod input::placeholder { color: var(--text-mute); }
.search-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
  padding: 4px 8px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  position: relative;
  transition: all 0.2s var(--ease);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.dot-alert {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 8px var(--pink);
}
.ripple {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1px solid var(--cyan);
  opacity: 0;
  animation: ripple 2s ease-out infinite;
}
@keyframes ripple {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 0; }
}

.ai-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 100px;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--green);
}
.ai-status-orb {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 1.2s ease-in-out infinite;
}

/* VIEWS */
.views { position: relative; }
.view {
  display: none;
  animation: viewIn 0.6s var(--ease);
}
.view.active { display: block; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ HERO AI CARD ============ */
.hero-ai-card {
  position: relative;
  background: linear-gradient(135deg, rgba(110, 231, 255, 0.08) 0%, rgba(167, 139, 250, 0.06) 50%, rgba(255, 107, 157, 0.06) 100%);
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 28px;
  overflow: hidden;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
}
.hero-ai-glow {
  position: absolute;
  inset: -50%;
  background: var(--grad-glow);
  opacity: 0.6;
  animation: heroGlow 12s linear infinite;
  pointer-events: none;
}
@keyframes heroGlow {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}
.hero-ai-content {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
}

.hero-ai-orb {
  width: 160px;
  height: 160px;
  position: relative;
}
.orb-core {
  position: absolute;
  inset: 30px;
  background: var(--grad-primary);
  border-radius: 50%;
  filter: blur(2px);
  animation: orbCore 4s ease-in-out infinite;
  box-shadow: 0 0 60px rgba(167, 139, 250, 0.6), inset 0 0 40px rgba(255,255,255,0.3);
}
@keyframes orbCore {
  0%, 100% { transform: scale(1); filter: blur(2px) hue-rotate(0deg); }
  50% { transform: scale(1.1); filter: blur(4px) hue-rotate(30deg); }
}
.orb-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(110, 231, 255, 0.25);
  border-radius: 50%;
  animation: spin 12s linear infinite;
}
.orb-ring.r1 { border-top-color: var(--cyan); border-right-color: rgba(110, 231, 255, 0.4); }
.orb-ring.r2 { inset: 12px; border-bottom-color: var(--violet); animation-duration: 8s; animation-direction: reverse; }
.orb-ring.r3 { inset: 22px; border-left-color: var(--pink); animation-duration: 6s; }

.orb-particles {
  position: absolute;
  inset: 0;
}
.orb-particles::before, .orb-particles::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.orb-particles::before {
  top: 10%;
  left: 50%;
  animation: orbParticle1 4s linear infinite;
}
.orb-particles::after {
  bottom: 10%;
  right: 30%;
  background: var(--pink);
  box-shadow: 0 0 8px var(--pink);
  animation: orbParticle2 5s linear infinite;
}
@keyframes orbParticle1 {
  0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
  50% { transform: translateY(20px) scale(1.5); opacity: 0.5; }
}
@keyframes orbParticle2 {
  0%, 100% { transform: translateX(0) scale(1); opacity: 1; }
  50% { transform: translateX(-20px) scale(1.3); opacity: 0.6; }
}

.hero-ai-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(110, 231, 255, 0.1);
  border: 1px solid rgba(110, 231, 255, 0.2);
  border-radius: 100px;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 16px;
}
.ai-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  animation: blink 1s ease-in-out infinite;
}

.hero-ai-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.grad-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-ai-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 640px;
}

.hero-ai-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.btn-primary, .btn-ghost, .btn-soft {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s var(--ease);
  cursor: pointer;
}
.btn-primary {
  background: var(--grad-aurora);
  color: var(--bg-0);
  box-shadow: 0 8px 24px rgba(110, 231, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(167, 139, 250, 0.4);
}
.btn-primary svg { width: 16px; height: 16px; }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.btn-ghost:hover { border-color: var(--border-strong); }
.btn-ghost svg { width: 16px; height: 16px; }
.btn-soft {
  background: var(--surface-3);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-soft:hover { color: var(--text); background: var(--surface-2); }
.btn-primary.full, .btn-ghost.full { width: 100%; justify-content: center; }

.hero-ai-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 11px;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
}
.meta-chip span { font-size: 12px; }

/* ============ METRIC CARDS ============ */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.metric-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s var(--ease);
}
.metric-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}
.metric-glow {
  position: absolute;
  inset: -50%;
  opacity: 0.4;
  pointer-events: none;
  filter: blur(50px);
  transition: opacity 0.3s;
}
.mc-balance .metric-glow { background: radial-gradient(circle, rgba(110, 231, 255, 0.3), transparent 60%); }
.mc-spending .metric-glow { background: radial-gradient(circle, rgba(255, 107, 157, 0.3), transparent 60%); }
.mc-savings .metric-glow { background: radial-gradient(circle, rgba(52, 211, 153, 0.3), transparent 60%); }
.mc-prediction .metric-glow { background: radial-gradient(circle, rgba(167, 139, 250, 0.3), transparent 60%); }

.metric-card > * { position: relative; }
.metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.metric-label {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.metric-trend {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
}
.metric-trend.up {
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
}
.metric-trend.down {
  background: rgba(255, 107, 157, 0.12);
  color: var(--pink);
}
.metric-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.metric-cents {
  font-size: 16px;
  color: var(--text-3);
}
.metric-spark, .metric-forecast {
  height: 40px;
  width: 100%;
}
.metric-spark svg, .metric-forecast svg {
  width: 100%;
  height: 100%;
}
.metric-progress { display: flex; flex-direction: column; gap: 6px; }
.progress-track {
  height: 6px;
  background: var(--surface-3);
  border-radius: 100px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 100px;
  position: relative;
  animation: progressShine 2s linear infinite;
}
@keyframes progressShine {
  0%, 100% { box-shadow: 0 0 12px rgba(167, 139, 250, 0.6); }
  50% { box-shadow: 0 0 20px rgba(110, 231, 255, 0.8); }
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-3);
}

.metric-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 40px;
}
.metric-bars .bar {
  flex: 1;
  background: linear-gradient(to top, rgba(52, 211, 153, 0.4), rgba(52, 211, 153, 0.15));
  border-radius: 3px;
  transition: all 0.3s var(--ease);
}
.metric-bars .bar.active {
  background: linear-gradient(to top, var(--green), rgba(52, 211, 153, 0.6));
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.5);
}

/* ============ WIDGET GRID ============ */
.widget-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.widget-feed { grid-row: span 2; }
.widget-categories { grid-column: 2; grid-row: span 2; }
.widget-future { }
.widget-behavior { }
.widget-goals { grid-column: span 2; }
.widget-emotion { }

.widget-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}
.widget-head h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.widget-head p {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}
.widget-action {
  font-size: 11px;
  color: var(--text-2);
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  transition: all 0.2s var(--ease);
}
.widget-action:hover { background: var(--surface-2); color: var(--text); }
.widget-tag {
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(167, 139, 250, 0.15);
  color: var(--violet);
  border: 1px solid rgba(167, 139, 250, 0.3);
}
.widget-tag.pro-glow {
  background: var(--grad-pro);
  color: var(--bg-0);
  border-color: transparent;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

/* FEED */
.feed-list { display: flex; flex-direction: column; gap: 12px; }
.feed-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.25s var(--ease);
}
.feed-item:hover { background: var(--surface-2); border-color: var(--border-strong); }
.feed-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.feed-icon.ic-warn { background: rgba(251, 191, 36, 0.15); color: var(--amber); }
.feed-icon.ic-good { background: rgba(52, 211, 153, 0.15); color: var(--green); }
.feed-icon.ic-ai { background: rgba(167, 139, 250, 0.15); color: var(--violet); }
.feed-icon.ic-future { background: rgba(110, 231, 255, 0.15); color: var(--cyan); }
.feed-body { flex: 1; }
.feed-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}
.feed-text {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 8px;
}
.feed-actions {
  display: flex;
  gap: 6px;
}
.feed-actions button {
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 8px;
  background: var(--grad-aurora);
  color: var(--bg-0);
}
.feed-actions button.ghost {
  background: transparent;
  color: var(--text-3);
  border: 1px solid var(--border);
}

/* RADAR */
.radar-wrap {
  display: flex;
  justify-content: center;
  margin: -10px 0;
}
.radar { width: 220px; height: 220px; }
.radar-stats {
  display: flex;
  justify-content: space-around;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.rs {
  text-align: center;
  display: flex;
  flex-direction: column;
}
.rs span {
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.rs strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* FUTURE PLANNER WIDGET */
.future-scenario { display: flex; flex-direction: column; gap: 18px; }
.scenario-input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--surface-3);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.scenario-label {
  font-size: 12px;
  color: var(--text-3);
}
.scenario-slider { flex: 1; position: relative; }
.scenario-slider input[type=range] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--surface-2);
  border-radius: 2px;
}
.scenario-slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--grad-aurora);
  border-radius: 50%;
  border: 2px solid var(--bg-1);
  box-shadow: 0 0 12px rgba(110, 231, 255, 0.6);
  cursor: pointer;
}
.slider-value {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

.scenario-result { display: flex; flex-direction: column; gap: 8px; }
.sr-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.06), transparent);
  border: 1px solid rgba(52, 211, 153, 0.15);
  border-radius: 10px;
}
.sr-icon { font-size: 22px; }
.sr-info { flex: 1; }
.sr-title { font-size: 12.5px; font-weight: 600; }
.sr-time { font-size: 11px; color: var(--green); margin-top: 1px; }

/* CATEGORIES */
.categories-list { display: flex; flex-direction: column; gap: 14px; }
.cat-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 8px 12px;
  padding: 4px 0;
}
.cat-info {
  display: flex;
  align-items: center;
  gap: 12px;
  grid-column: 1;
}
.cat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.cat-name { font-size: 13px; font-weight: 600; }
.cat-meta { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.cat-amt {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  align-self: center;
}
.cat-bar {
  grid-column: 1 / -1;
  height: 4px;
  background: var(--surface-3);
  border-radius: 100px;
  overflow: hidden;
}
.cat-bar div {
  height: 100%;
  border-radius: 100px;
  animation: catGrow 1.2s var(--ease);
  transform-origin: left;
}
@keyframes catGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* GOALS WIDGET */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.goal-card {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.goal-card:hover {
  background: var(--surface-2);
  transform: translateY(-3px);
  border-color: var(--border-strong);
}
.goal-emoji { font-size: 28px; }
.goal-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.goal-progress-ring {
  position: relative;
  width: 70px;
  height: 70px;
  margin: 4px 0;
}
.goal-progress-ring svg {
  width: 100%;
  height: 100%;
}
.goal-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}
.goal-amount {
  font-size: 10px;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
}
.goal-card.add-goal {
  border: 1px dashed var(--border-strong);
  justify-content: center;
}
.add-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 300;
  color: var(--text-3);
}

/* EMOTION WIDGET */
.emotion-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.emotion-orb {
  width: 100px;
  height: 100px;
  position: relative;
  margin-bottom: 4px;
}
.eo-core {
  position: absolute;
  inset: 18px;
  background: radial-gradient(circle at 30% 30%, var(--green), rgba(52, 211, 153, 0.4));
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(52, 211, 153, 0.6);
  animation: emoBreathe 4s ease-in-out infinite;
}
.eo-wave {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(52, 211, 153, 0.4);
  border-radius: 50%;
  animation: emoWave 3s ease-out infinite;
}
@keyframes emoBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
@keyframes emoWave {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}
.emotion-state {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
}
.emotion-meta { font-size: 12px; color: var(--text-3); }
.emotion-meta strong { color: var(--text); }
.emotion-quote {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.6;
  font-style: italic;
  padding: 10px 8px;
  border-left: 2px solid var(--green);
  background: rgba(52, 211, 153, 0.05);
  border-radius: 0 8px 8px 0;
  margin-top: 4px;
  text-align: left;
}
.emotion-actions { display: flex; gap: 8px; }

/* ============ AI ASSISTANT VIEW ============ */
.ai-stage {
  position: relative;
  height: 320px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(110, 231, 255, 0.08), rgba(167, 139, 250, 0.06), rgba(255, 107, 157, 0.04));
  border: 1px solid rgba(167, 139, 250, 0.15);
}
.ai-stage-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(110, 231, 255, 0.2), transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(167, 139, 250, 0.2), transparent 50%);
  animation: heroGlow 20s linear infinite;
}
.ai-mega-orb {
  width: 220px;
  height: 220px;
  position: relative;
  z-index: 2;
}
.mo-core {
  position: absolute;
  inset: 50px;
  background: var(--grad-primary);
  border-radius: 50%;
  filter: blur(2px);
  box-shadow: 0 0 80px rgba(167, 139, 250, 0.7), inset 0 0 60px rgba(255,255,255,0.4);
  animation: moCore 5s ease-in-out infinite;
}
@keyframes moCore {
  0%, 100% { transform: scale(1); filter: blur(2px) hue-rotate(0); }
  33% { transform: scale(1.1); filter: blur(4px) hue-rotate(20deg); }
  66% { transform: scale(0.95); filter: blur(3px) hue-rotate(-20deg); }
}
.mo-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(110, 231, 255, 0.2);
  border-radius: 50%;
  animation: spin 14s linear infinite;
}
.mo-ring.r1 { border-top-color: var(--cyan); }
.mo-ring.r2 { inset: 18px; border-bottom-color: var(--violet); animation-duration: 11s; animation-direction: reverse; }
.mo-ring.r3 { inset: 30px; border-left-color: var(--pink); animation-duration: 8s; }
.mo-ring.r4 { inset: 42px; border-right-color: var(--amber); animation-duration: 6s; animation-direction: reverse; }

.ai-stage-info {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 3;
}
.ai-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 4px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ai-mood {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 1px;
  margin-top: 4px;
}
.ai-eq {
  display: flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  height: 24px;
}
.ai-eq span {
  width: 3px;
  background: linear-gradient(to top, var(--cyan), var(--violet));
  border-radius: 100px;
  animation: eq 1s ease-in-out infinite;
}
.ai-eq span:nth-child(1) { animation-delay: 0s; height: 30%; }
.ai-eq span:nth-child(2) { animation-delay: 0.1s; height: 60%; }
.ai-eq span:nth-child(3) { animation-delay: 0.2s; height: 80%; }
.ai-eq span:nth-child(4) { animation-delay: 0.3s; height: 50%; }
.ai-eq span:nth-child(5) { animation-delay: 0.4s; height: 90%; }
.ai-eq span:nth-child(6) { animation-delay: 0.5s; height: 40%; }
.ai-eq span:nth-child(7) { animation-delay: 0.6s; height: 70%; }
.ai-eq span:nth-child(8) { animation-delay: 0.7s; height: 55%; }
.ai-eq span:nth-child(9) { animation-delay: 0.8s; height: 85%; }
.ai-eq span:nth-child(10) { animation-delay: 0.9s; height: 35%; }
.ai-eq span:nth-child(11) { animation-delay: 1s; height: 65%; }
.ai-eq span:nth-child(12) { animation-delay: 1.1s; height: 45%; }

@keyframes eq {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.ai-chat-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}
.ai-chat {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 480px;
  overflow-y: auto;
}
.msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.msg-user { justify-content: flex-end; }
.msg-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.ma-orb {
  width: 100%;
  height: 100%;
  background: var(--grad-primary);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.4);
  animation: pulse 3s ease-in-out infinite;
}
.msg-bubble {
  max-width: 70%;
  padding: 14px 18px;
  border-radius: 18px;
}
.msg-ai .msg-bubble {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-top-left-radius: 4px;
}
.msg-user .msg-bubble {
  background: linear-gradient(135deg, rgba(110, 231, 255, 0.15), rgba(167, 139, 250, 0.1));
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-top-right-radius: 4px;
}
.msg-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
}
.msg-meta {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-size: 10px;
  color: var(--text-mute);
}
.msg-model {
  color: var(--violet);
  font-family: 'JetBrains Mono', monospace;
}

.msg-card {
  margin-top: 12px;
  background: rgba(167, 139, 250, 0.06);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 12px;
  padding: 14px;
}
.msg-card-title {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 10px;
  font-weight: 600;
}
.msc-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 12.5px;
  border-bottom: 1px dashed var(--border);
}
.msc-row.total {
  border-bottom: none;
  border-top: 1px solid var(--border-strong);
  margin-top: 4px;
  padding-top: 8px;
  font-weight: 700;
}
.msc-val {
  color: var(--green);
  font-family: 'JetBrains Mono', monospace;
}
.msc-btn {
  margin-top: 10px;
  width: 100%;
  padding: 8px;
  background: var(--grad-aurora);
  color: var(--bg-0);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.ai-input-bar {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-3);
}
.ai-input-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s var(--ease);
}
.ai-input-btn:hover { color: var(--text); }
.ai-input-btn svg { width: 18px; height: 18px; }
.ai-input-btn.primary {
  background: var(--grad-aurora);
  color: var(--bg-0);
  border-color: transparent;
}
.ai-input-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ai-input-field input {
  padding: 11px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--text);
  transition: border-color 0.2s var(--ease);
}
.ai-input-field input:focus { border-color: rgba(110, 231, 255, 0.4); }
.ai-suggest-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.suggest-chip {
  padding: 6px 12px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 11.5px;
  color: var(--text-2);
  transition: all 0.2s var(--ease);
}
.suggest-chip:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: rgba(110, 231, 255, 0.3);
}

/* ============ PAGE HEAD ============ */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
}
.page-head.center {
  justify-content: center;
  text-align: center;
  margin-bottom: 40px;
}
.page-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--violet);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.page-title.big-title {
  font-size: 42px;
}
.page-sub {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 4px;
}
.page-toggle {
  display: flex;
  background: var(--surface);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.page-toggle button {
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 8px;
  color: var(--text-3);
  transition: all 0.2s var(--ease);
}
.page-toggle button.active {
  background: var(--grad-aurora);
  color: var(--bg-0);
}

/* ============ INSIGHTS GRID ============ */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.insight-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s var(--ease);
}
.insight-tile:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.insight-tile.big {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(110, 231, 255, 0.06));
  border-color: rgba(167, 139, 250, 0.2);
}
.it-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 600;
  background: var(--surface-3);
  color: var(--cyan);
  border: 1px solid rgba(110, 231, 255, 0.2);
  margin-bottom: 12px;
}
.insight-tile h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.insight-tile.big h3 { font-size: 22px; }
.insight-tile p {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.6;
}
.it-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.it-actions button {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 10px;
  background: var(--grad-aurora);
  color: var(--bg-0);
}
.it-actions button.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
}

/* ============ GOALS UNIVERSE ============ */
.goals-universe {
  position: relative;
  height: 540px;
  background: radial-gradient(circle at center, rgba(110, 231, 255, 0.05), transparent 70%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}
.goal-orb {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  background: var(--surface);
  border: 2px solid;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: orbFloat 8s ease-in-out infinite;
}
.goal-orb.center {
  width: 160px;
  height: 160px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--grad-primary);
  border: 2px solid white;
  box-shadow: 0 0 60px rgba(167, 139, 250, 0.5);
  animation: none;
}
.goal-orb.center .g-name {
  font-size: 20px;
  letter-spacing: 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
}
.goal-orb.center .g-sub { font-size: 11px; color: rgba(255,255,255,0.7); }
.goal-orb.home { top: 10%; left: 18%; border-color: var(--cyan); box-shadow: 0 0 30px rgba(110, 231, 255, 0.3); animation-delay: 0s; }
.goal-orb.car { top: 12%; right: 20%; border-color: var(--pink); box-shadow: 0 0 30px rgba(255, 107, 157, 0.3); animation-delay: -1.5s; }
.goal-orb.travel { bottom: 18%; left: 14%; border-color: var(--green); box-shadow: 0 0 30px rgba(52, 211, 153, 0.3); animation-delay: -3s; }
.goal-orb.retire { bottom: 12%; right: 16%; border-color: var(--amber); box-shadow: 0 0 30px rgba(251, 191, 36, 0.3); animation-delay: -4.5s; }
.goal-orb.edu { top: 50%; right: 4%; border-color: var(--violet); box-shadow: 0 0 30px rgba(167, 139, 250, 0.3); transform: translateY(-50%); animation-delay: -2s; }
.goal-orb:hover { transform: scale(1.1); }
.goal-orb.center:hover, .goal-orb.edu:hover {
  transform: translate(-50%, -50%) scale(1.05);
}
.goal-orb.edu:hover { transform: translateY(-50%) scale(1.1); }
@keyframes orbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.g-emoji { font-size: 32px; margin-bottom: 4px; }
.g-name { font-size: 12px; font-weight: 600; }
.g-pct {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
}

/* connecting lines using pseudo */
.goals-universe::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(110, 231, 255, 0.4) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.15;
  pointer-events: none;
}

/* ============ PLANNER VIEW ============ */
.planner-stage {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.planner-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.ctrl-card {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}
.ctrl-card label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-3);
  display: block;
  margin-bottom: 10px;
}
.ctrl-input {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ctrl-input span {
  font-size: 16px;
  color: var(--text-3);
}
.ctrl-input input {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  width: 100%;
}
.ctrl-slider { display: flex; align-items: center; gap: 12px; }
.ctrl-slider input[type=range] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--surface-2);
  border-radius: 2px;
}
.ctrl-slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--grad-aurora);
  border-radius: 50%;
  cursor: pointer;
}
.cs-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--cyan);
}
.ctrl-mix { display: flex; gap: 6px; flex-wrap: wrap; }
.mix-pill {
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-3);
}
.mix-pill.active {
  background: rgba(110, 231, 255, 0.15);
  color: var(--cyan);
  border-color: rgba(110, 231, 255, 0.3);
}
.ctrl-card select {
  width: 100%;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.ctrl-card select option {
  background: var(--bg-1);
  color: var(--text);
}

.planner-graph {
  position: relative;
  height: 360px;
  background: linear-gradient(180deg, rgba(110, 231, 255, 0.03), transparent);
  border-radius: 16px;
  overflow: visible;
}
.planner-graph svg {
  width: 100%;
  height: 100%;
}
.graph-tags {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.gt {
  position: absolute;
  bottom: 60%;
  transform: translateX(-50%);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 6px 10px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.gt span {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--text-3);
  text-transform: uppercase;
}
.gt strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ BEHAVIOR VIEW ============ */
.behavior-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.bx-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.bx-card.wide {
  grid-column: span 3;
  text-align: left;
}
.bx-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 56px;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.bx-label {
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
  letter-spacing: 1px;
}
.bx-desc {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
}
.bx-card.wide h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  margin-bottom: 12px;
}
.bx-list { list-style: none; }
.bx-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
  color: var(--text-2);
  position: relative;
  padding-left: 24px;
}
.bx-list li::before {
  content: '◈';
  position: absolute;
  left: 0;
  color: var(--violet);
}
.bx-list li:last-child { border-bottom: none; }

/* ============ EMOTION FULL VIEW ============ */
.emotion-stage {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.08), rgba(110, 231, 255, 0.06));
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: var(--radius-xl);
  padding: 50px;
  min-height: 400px;
}
.emotion-big-orb {
  width: 280px;
  height: 280px;
  position: relative;
}
.ebo-core {
  position: absolute;
  inset: 60px;
  background: radial-gradient(circle at 30% 30%, var(--green), rgba(52, 211, 153, 0.4));
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(52, 211, 153, 0.5);
  animation: emoBreathe 4s ease-in-out infinite;
}
.ebo-ring {
  position: absolute;
  inset: 30px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 50%;
  border-top-color: var(--green);
  animation: spin 14s linear infinite;
}
.ebo-wave {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(52, 211, 153, 0.3);
  border-radius: 50%;
  animation: emoWave 4s ease-out infinite;
}
.et-state {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 16px;
}
.et-quote {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
  margin-bottom: 24px;
  max-width: 580px;
}
.et-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============ PLANS COMPARE ============ */
.plan-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}
.plan-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  transition: all 0.4s var(--ease);
}
.plan-card.free:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.plan-card.pro {
  border-color: rgba(167, 139, 250, 0.3);
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.08), rgba(110, 231, 255, 0.04));
}
.plan-card.pro:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(167, 139, 250, 0.25);
}
.plan-glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.4), transparent 60%);
  opacity: 0.5;
  pointer-events: none;
  animation: heroGlow 14s linear infinite;
}
.plan-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px 12px;
  background: var(--grad-pro);
  color: var(--bg-0);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  z-index: 1;
}
.plan-head { position: relative; margin-bottom: 24px; }
.plan-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 6px;
}
.plan-card.free .plan-name { color: var(--text-2); }
.plan-card.pro .plan-name {
  background: var(--grad-pro);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.plan-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 800;
  margin-top: 8px;
}
.plan-price span {
  font-size: 16px;
  color: var(--text-3);
  font-weight: 500;
}
.plan-tag {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
}
.plan-orb-mini {
  width: 100px;
  height: 100px;
  margin: 24px 0;
  position: relative;
}
.po-core {
  position: absolute;
  inset: 25px;
  background: var(--text-3);
  border-radius: 50%;
}
.free-orb .po-core {
  background: linear-gradient(135deg, var(--text-2), var(--text-3));
  box-shadow: 0 0 24px rgba(176, 182, 216, 0.3);
}
.pro-orb .po-core {
  background: var(--grad-pro);
  box-shadow: 0 0 36px rgba(251, 191, 36, 0.5), inset 0 0 24px rgba(255,255,255,0.2);
  animation: pulse 2.5s ease-in-out infinite;
}
.pro-orb .po-ring,
.pro-orb .po-ring2 {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 50%;
  border-top-color: var(--amber);
  animation: spin 4s linear infinite;
}
.pro-orb .po-ring2 {
  inset: 12px;
  border-bottom-color: var(--pink);
  animation-direction: reverse;
  animation-duration: 6s;
}
.plan-feel {
  font-style: italic;
  font-size: 15px;
  color: var(--text-2);
  border-left: 3px solid var(--violet);
  padding-left: 14px;
  margin-bottom: 24px;
}
.plan-card.free .plan-feel { border-left-color: var(--cyan); }
.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-2);
  position: relative;
}
.plan-features li.muted { color: var(--text-mute); }
.plan-features li span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.plan-card.free .plan-features li span {
  background: rgba(110, 231, 255, 0.15);
  color: var(--cyan);
}
.plan-card.pro .plan-features li span {
  background: var(--grad-pro);
  color: var(--bg-0);
}
.plan-card.free .plan-features li.muted span {
  background: var(--surface-3);
  color: var(--text-mute);
}
.plan-trust {
  text-align: center;
  font-size: 11px;
  color: var(--text-3);
  margin-top: 12px;
}

.plan-feature-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.pft-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  font-size: 13px;
}
.pft-row:last-child { border-bottom: none; }
.pft-row > div:nth-child(2) { color: var(--text-3); }
.pft-row .pro-cell {
  color: var(--violet);
  font-weight: 600;
}
.pft-head {
  background: var(--surface-3);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.pft-head > div:nth-child(2) { color: var(--text-2); }
.pft-head > div:nth-child(3) {
  background: var(--grad-pro);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ ADMIN VIEW ============ */
.admin-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--green);
  font-weight: 600;
}
.adm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 1.5s ease-in-out infinite;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.as-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.as-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-3);
}
.as-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin: 6px 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.as-trend {
  font-size: 11px;
  color: var(--green);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}
.as-spark { height: 30px; }
.as-spark svg { width: 100%; height: 100%; }

.admin-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
.adm-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.adm-panel.routing { grid-row: span 2; }
.adm-panel.themes { grid-column: span 2; }
.adm-panel.campaigns, .adm-panel.monitor { grid-column: span 1; }
.adm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.adm-head h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
}
.adm-tag {
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text-3);
}
.adm-tag.live {
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.3);
}
.adm-tag.pro {
  background: var(--grad-pro);
  color: var(--bg-0);
  border-color: transparent;
}
.adm-mini-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  background: var(--grad-aurora);
  color: var(--bg-0);
  border-radius: 8px;
}

.routing-rows { display: flex; flex-direction: column; gap: 12px; }
.rr {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.rr.pro-row {
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.08), transparent);
  border-color: rgba(167, 139, 250, 0.25);
}
.rr-tag {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  background: var(--surface-2);
  color: var(--text-2);
}
.rr-tag.pro { background: var(--grad-pro); color: var(--bg-0); }
.rr-tag.emo { background: rgba(255, 107, 157, 0.15); color: var(--pink); }
.rr-tag.fall { background: rgba(251, 191, 36, 0.15); color: var(--amber); }
.rr-arrow {
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
}
.rr-model {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 10px;
}
.rr-model select {
  padding: 8px 4px;
  width: 100%;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}
.rr-model select option {
  background: var(--bg-1);
}
.rr-meta {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: var(--text-3);
  align-items: center;
}
.rr-meta strong {
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  margin-left: 4px;
}

.knob-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}
.knob-row:last-child { border-bottom: none; }
.knob-row label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
}
.knob-slider input[type=range] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--surface-2);
  border-radius: 2px;
}
.knob-slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: var(--grad-aurora);
  border-radius: 50%;
  cursor: pointer;
}
.knob-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
  white-space: nowrap;
}

.flags-list { display: flex; flex-direction: column; }
.flag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
  font-weight: 500;
}
.flag:last-child { border-bottom: none; }
.toggle {
  width: 44px;
  height: 24px;
  border-radius: 100px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.toggle .thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-3);
  transition: all 0.3s var(--ease);
}
.toggle.on {
  background: var(--grad-aurora);
  border-color: transparent;
}
.toggle.on .thumb {
  left: 22px;
  background: white;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.theme-tile {
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-align: center;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-2);
}
.theme-tile.active .tt-preview {
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(110, 231, 255, 0.4);
}
.tt-preview {
  height: 70px;
  border-radius: 12px;
  border: 2px solid var(--border);
  margin-bottom: 8px;
  transition: all 0.2s var(--ease);
}
.theme-tile:hover .tt-preview { transform: scale(1.05); }

.campaign-list { display: flex; flex-direction: column; gap: 10px; }
.cmp {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface-3);
  border-radius: 10px;
  font-size: 12.5px;
}
.cmp-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cmp-status.live { background: var(--green); box-shadow: 0 0 6px var(--green); }
.cmp-status.sched { background: var(--cyan); }
.cmp-status.draft { background: var(--text-mute); }

.monitor-list { display: flex; flex-direction: column; gap: 10px; }
.mon {
  display: grid;
  grid-template-columns: 130px 1fr 40px;
  gap: 12px;
  align-items: center;
  font-size: 12.5px;
}
.mon-bar {
  height: 6px;
  background: var(--surface-3);
  border-radius: 100px;
  overflow: hidden;
}
.mon-bar div {
  height: 100%;
  border-radius: 100px;
  transition: width 1s var(--ease);
}
.mon strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-align: right;
}

/* ============ FLOATING AI BUTTON ============ */
.float-ai {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 100;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(167, 139, 250, 0.4);
}
.float-ai:hover {
  transform: scale(1.1);
  box-shadow: 0 16px 48px rgba(167, 139, 250, 0.6);
}
.fa-orb {
  position: relative;
  width: 40px;
  height: 40px;
}
.fa-core {
  position: absolute;
  inset: 6px;
  background: var(--grad-primary);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.6);
  animation: pulse 2s ease-in-out infinite;
}
.fa-ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  animation: spin 4s linear infinite;
  border-top-color: transparent;
  border-right-color: transparent;
}
.fa-tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-1);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}
.float-ai:hover .fa-tip { opacity: 1; }

/* ============ SCROLLBARS ============ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.12); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1280px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .widget-grid { grid-template-columns: 1fr 1fr; }
  .widget-feed { grid-row: span 1; grid-column: span 2; }
  .widget-categories { grid-column: span 1; grid-row: span 1; }
  .widget-goals { grid-column: span 2; }
  .insights-grid { grid-template-columns: repeat(2, 1fr); }
  .insight-tile.big { grid-column: span 2; }
  .planner-controls { grid-template-columns: 1fr 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: 1fr; }
  .adm-panel.routing { grid-row: auto; }
  .adm-panel.themes { grid-column: auto; }
  .theme-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 88px 1fr; }
  .sidenav { padding: 24px 12px; }
  .nav-item span:not(.badge-pulse), .brand-text, .user-info, .user-menu, .nav-label { display: none; }
  .nav-item { justify-content: center; padding: 12px; }
  .user-card { padding: 8px; justify-content: center; }
  .topbar { grid-template-columns: 1fr; gap: 12px; }
  .plan-compare { grid-template-columns: 1fr; }
  .emotion-stage { grid-template-columns: 1fr; text-align: center; padding: 30px; }
  .emotion-big-orb { margin: 0 auto; }
  .behavior-grid { grid-template-columns: 1fr; }
  .bx-card.wide { grid-column: span 1; }
}
