/* ═══════════════════════════════════════════════════════════
   JARVIS Web — UI
   © 2025 StarkSource AI — All rights reserved
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* Renk paleti */
  --bg-0: #06080d;
  --bg-1: #0a0e16;
  --bg-2: #11161f;
  --bg-3: #1a2330;
  --bg-4: #25324a;

  --cyan:  #00d4ff;
  --cyan-glow: rgba(0, 212, 255, 0.5);
  --cyan-soft: rgba(0, 212, 255, 0.1);
  --cyan-border: rgba(0, 212, 255, 0.25);

  --green: #4ade80;
  --red:   #ff5566;
  --yellow:#fbbf24;

  --text-0: #f0f7ff;
  --text-1: #c8d8e8;
  --text-2: #8ea0b5;
  --text-3: #5a6b80;

  --shadow-1: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-2: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px var(--cyan-glow);

  --sidebar-w: 280px;
  --header-h: 56px;
}

html, body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
  min-height: calc(var(--real-vh, 1vh) * 100);
  height: 100vh;
  height: calc(var(--real-vh, 1vh) * 100);
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  background:
    radial-gradient(ellipse 800px 400px at top, var(--cyan-soft), transparent 60%),
    radial-gradient(ellipse 600px 300px at bottom right, rgba(0,212,255,0.05), transparent 50%),
    var(--bg-0);
}

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

/* ── Screens ─────────────────────────────────────────────── */
.screen { display: none; height: 100vh; }
.screen.active { display: flex; }

/* ════════════════════════════════════════════════════════════
   AUTH SCREEN — Landing Page
   ════════════════════════════════════════════════════════════ */
@keyframes gridScroll { to { background-position: 40px 40px; } }
@keyframes fadeUp { from { opacity:0;transform:translateY(16px); } to { opacity:1;transform:translateY(0); } }
@keyframes spinRing { to { transform: rotate(360deg); } }
@keyframes pulseRing {
  0%,100% { box-shadow:0 0 32px var(--cyan-glow),inset 0 0 32px rgba(0,212,255,.2); }
  50%     { box-shadow:0 0 50px var(--cyan),inset 0 0 50px var(--cyan-glow); }
}
@keyframes corePulse { 0%,100%{transform:scale(1);}50%{transform:scale(1.4);} }

#auth-screen {
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: var(--bg-0);
}

/* Animated grid background */
.auth-bg-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--cyan-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--cyan-border) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.25;
  animation: gridScroll 80s linear infinite;
}
.auth-bg-glow {
  position: absolute; pointer-events: none; z-index: 0;
  width: 60vw; height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.08) 0%, transparent 70%);
  top: -20vw; right: -10vw;
}

/* ── Top navigation ─────────────────────────────────────── */
.auth-topnav {
  position: relative; z-index: 10;
  display: flex; align-items: center; gap: 20px;
  padding: 0 32px;
  height: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.atn-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.atn-logo-orb {
  position: relative; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
}
.atn-orb-ring {
  position: absolute; inset: 0;
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan-glow);
  animation: pulseRing 3s ease-in-out infinite;
}
.atn-orb-core {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: corePulse 2s ease-in-out infinite;
}
.atn-brand {
  font-family: 'Orbitron', monospace;
  font-size: 14px; font-weight: 700;
  letter-spacing: 3px; color: var(--cyan);
}
.atn-links {
  display: flex; gap: 28px; margin-left: 20px;
  flex: 1;
}
.atn-links a {
  font-size: 13px; color: var(--text-2);
  text-decoration: none; letter-spacing: 0.3px;
  cursor: pointer; transition: color 0.15s;
}
.atn-links a:hover { color: var(--text-0); }
.atn-btns { display: flex; gap: 10px; }
.atn-login-btn {
  padding: 8px 18px;
  border: 1px solid var(--bg-3);
  border-radius: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--text-1);
  background: transparent;
  cursor: pointer; transition: all 0.15s;
}
.atn-login-btn:hover { border-color: var(--cyan-border); color: var(--cyan); }
.atn-start-btn {
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--cyan), #0099bb);
  border-radius: 8px;
  font-size: 13px; font-weight: 700;
  color: #001218; letter-spacing: 0.5px;
  cursor: pointer; transition: all 0.15s;
  box-shadow: 0 4px 16px var(--cyan-glow);
}
.atn-start-btn:hover { box-shadow: 0 6px 24px var(--cyan-glow); transform: translateY(-1px); }
.atn-start-btn span { margin-left: 4px; }

/* ── Main body: 3 columns ─────────────────────────────────── */
.auth-body {
  flex: 1;
  display: flex; align-items: center;
  gap: 0;
  position: relative; z-index: 1;
  padding: 0 24px;
  min-height: 0;
  overflow: hidden;
}

/* ── Hero (left) ────────────────────────────────────────── */
.auth-hero {
  flex: 1.2;
  display: flex; flex-direction: column;
  gap: 20px;
  padding: 20px 0;
  min-width: 0;
}
.auth-hero-tag {
  font-size: 11px; letter-spacing: 2px;
  color: var(--cyan); font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.auth-hero-tag::before {
  content: ''; display: block;
  width: 24px; height: 1px;
  background: var(--cyan);
}
.auth-hero-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800; line-height: 1.1;
  color: var(--text-0); letter-spacing: -1px;
  margin: 0;
}
.auth-gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-char="friday"] .auth-gradient-text {
  background: linear-gradient(135deg, #c084fc 0%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.auth-hero-sub {
  font-size: 15px; color: var(--text-2);
  line-height: 1.6; max-width: 420px; margin: 0;
}
.auth-connect-btns {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 4px;
}

.auth-hero-features {
  display: flex; flex-direction: column; gap: 10px;
}
.ahf-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-2);
}
.ahf-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  flex-shrink: 0;
}
.auth-hero-stats {
  display: flex; align-items: center; gap: 20px;
  margin-top: 4px;
}
.ahs-item { display: flex; flex-direction: column; gap: 2px; }
.ahs-num {
  font-size: 22px; font-weight: 800;
  color: var(--text-0); letter-spacing: -0.5px;
}
.ahs-item small { font-size: 11px; color: var(--text-3); }
.ahs-sep { width: 1px; height: 36px; background: var(--bg-3); }

/* ── Center Orb ─────────────────────────────────────────── */
.auth-orb-wrap {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  min-height: 400px;
}
.auth-orb-container {
  position: relative;
  width: 340px; height: 340px;
  display: flex; align-items: center; justify-content: center;
}
/* Rings */
.ao-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--cyan);
}
.ao-r1 { width: 120px; height: 120px; opacity:0.6; animation: aoRing1 4s ease-in-out infinite; border-color: rgba(0,212,255,0.6); }
.ao-r2 { width: 200px; height: 200px; opacity:0.35; animation: aoRing2 6s ease-in-out infinite; border-style: dashed; }
.ao-r3 { width: 280px; height: 280px; opacity:0.2; animation: aoRing3 8s ease-in-out infinite; border-style: dashed; }
.ao-r4 { width: 340px; height: 340px; opacity:0.1; }
@keyframes aoRing1 { 0%,100%{transform:scale(1) rotate(0deg);}50%{transform:scale(1.05) rotate(180deg);} }
@keyframes aoRing2 { 0%,100%{transform:rotate(0deg);}100%{transform:rotate(360deg);} }
@keyframes aoRing3 { 0%,100%{transform:rotate(0deg);}100%{transform:rotate(-360deg);} }

/* Sphere */
.ao-sphere {
  position: relative; z-index: 3;
  width: 160px; height: 160px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.35) 0%, transparent 50%),
    radial-gradient(circle at 65% 65%, rgba(0,0,0,0.25) 0%, transparent 50%),
    radial-gradient(circle at center, #0088cc 0%, #003366 50%, #001133 100%);
  box-shadow:
    0 0 60px rgba(0,180,255,0.7),
    0 0 120px rgba(0,140,255,0.3),
    inset -15px -15px 40px rgba(0,0,0,0.5),
    inset 15px 15px 40px rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  animation: aoSphereBreath 4s ease-in-out infinite;
}
.ao-sphere::before {
  content: '';
  position: absolute; inset: -4px; border-radius: 50%;
  background: conic-gradient(transparent 0deg, rgba(0,212,255,0.5) 60deg, transparent 120deg, rgba(0,180,255,0.2) 240deg, transparent 360deg);
  animation: spinRing 3s linear infinite;
}
.ao-sphere-shine {
  position: absolute; top: 15%; left: 20%;
  width: 35%; height: 35%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
}
.ao-label {
  font-family: 'Orbitron', monospace;
  font-size: 14px; font-weight: 900;
  letter-spacing: 4px; color: rgba(255,255,255,0.9);
  text-shadow: 0 0 20px rgba(0,212,255,0.8);
  z-index: 1; position: relative;
}
@keyframes aoSphereBreath {
  0%,100% { transform: scale(1); box-shadow: 0 0 60px rgba(0,180,255,0.7), 0 0 120px rgba(0,140,255,0.3), inset -15px -15px 40px rgba(0,0,0,0.5), inset 15px 15px 40px rgba(255,255,255,0.1); }
  50%     { transform: scale(1.04); box-shadow: 0 0 80px rgba(0,200,255,0.9), 0 0 160px rgba(0,180,255,0.4), inset -15px -15px 40px rgba(0,0,0,0.5), inset 15px 15px 40px rgba(255,255,255,0.1); }
}

/* Floor effect */
.ao-floor {
  position: absolute; bottom: -10px; z-index: 2;
  width: 200px; height: 30px;
  background: radial-gradient(ellipse, rgba(0,212,255,0.4) 0%, transparent 70%);
  filter: blur(8px);
}
.ao-floor-ring {
  position: absolute; bottom: -8px; z-index: 2;
  width: 220px; height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(0,212,255,0.3);
}

/* Feature labels */
.ao-feat {
  position: absolute; z-index: 4;
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text-2);
  background: rgba(10,14,22,0.8);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 5px 10px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  animation: aoFeatFloat 4s ease-in-out infinite;
}
.ao-feat span { font-size: 14px; }
.ao-feat-1 { top: 12%; left: -10%; animation-delay: 0s; }
.ao-feat-2 { top: 12%; right: -10%; animation-delay: 0.5s; }
.ao-feat-3 { top: 44%; left: -16%; animation-delay: 1s; }
.ao-feat-4 { top: 44%; right: -16%; animation-delay: 1.5s; }
.ao-feat-5 { bottom: 15%; left: -10%; animation-delay: 2s; }
.ao-feat-6 { bottom: 15%; right: -10%; animation-delay: 2.5s; }
@keyframes aoFeatFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-4px); }
}

/* Friday orb */
[data-char="friday"] .ao-sphere {
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.35) 0%, transparent 50%),
    radial-gradient(circle at center, #9933cc 0%, #550088 50%, #220044 100%);
  box-shadow:
    0 0 60px rgba(192,132,252,0.7),
    0 0 120px rgba(160,100,220,0.3),
    inset -15px -15px 40px rgba(0,0,0,0.5),
    inset 15px 15px 40px rgba(255,255,255,0.1);
}
[data-char="friday"] .ao-sphere::before {
  background: conic-gradient(transparent 0deg, rgba(192,132,252,0.6) 60deg, transparent 120deg, rgba(244,114,182,0.3) 240deg, transparent 360deg);
}

/* ── Auth form card ──────────────────────────────────────── */
.auth-form-side {
  flex: 0.9;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  padding: 20px 0;
}
.auth-card {
  display: none; flex-direction: column; gap: 12px;
  width: 100%; max-width: 360px;
  background: rgba(10,14,22,0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 28px 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: fadeUp 0.4s cubic-bezier(0.16,1,0.3,1);
}
.auth-card.active { display: flex; }
.ac-header { margin-bottom: 4px; }
.ac-header h2 {
  font-size: 20px; font-weight: 700;
  color: var(--text-0); margin: 0 0 4px; letter-spacing: -0.3px;
}
.ac-header p { font-size: 13px; color: var(--text-3); margin: 0; }
.auth-card input {
  padding: 13px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-0);
  border-radius: 12px;
  font-size: 14px;
  transition: all 0.2s;
  width: 100%; box-sizing: border-box;
}
.auth-card input:focus {
  border-color: var(--cyan);
  background: rgba(0,212,255,0.05);
  box-shadow: 0 0 0 3px var(--cyan-soft);
}
.auth-card input::placeholder { color: var(--text-3); }
.ac-forgot { text-align: right; margin-top: -4px; }
.ac-forgot a {
  font-size: 12px; color: var(--cyan);
  cursor: pointer; text-decoration: none;
  opacity: 0.8;
}
.ac-forgot a:hover { opacity: 1; }
.ac-switch {
  text-align: center; font-size: 13px;
  color: var(--text-3);
}
.ac-switch a { color: var(--cyan); cursor: pointer; text-decoration: none; font-weight: 500; }

.auth-status-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text-3);
  margin-top: 4px;
}
.auth-footer-bar {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 12px 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 11px; color: var(--text-3); letter-spacing: 0.5px;
  flex-shrink: 0;
}
.auth-footer-sep { opacity: 0.3; }

/* ── Loading card ─────────────────────────────────────── */
.llc-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
  padding: 20px 0;
}
.llc-spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid var(--bg-3);
  border-top-color: var(--cyan);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.llc-text { font-size: 14px; color: var(--text-2); letter-spacing: 0.5px; }
.llc-bar {
  width: 100%; height: 3px;
  background: var(--bg-3); border-radius: 3px; overflow: hidden;
}
.llc-bar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--cyan), #8b5cf6);
  border-radius: 3px;
  animation: llcProgress 1.5s ease-in-out infinite;
}
@keyframes llcProgress {
  0%   { width: 0; margin-left: 0; }
  50%  { width: 70%; margin-left: 0; }
  100% { width: 0; margin-left: 100%; }
}

/* ── Logged-in card ───────────────────────────────────── */
.mlc-user-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 4px;
}
.mlc-avatar {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), #0066bb);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #001218;
  flex-shrink: 0;
}
.mlc-name { font-size: 15px; font-weight: 700; color: var(--text-0); }
.mlc-status {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--green);
}
.mlc-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px var(--green);
  animation: corePulse 2s infinite;
}
.mlc-ready-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  background: rgba(0,212,255,0.06);
  border: 1px solid var(--cyan-border);
  border-radius: 10px;
  font-size: 13px; font-weight: 600; color: var(--cyan);
}
.mlc-ready-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
  animation: corePulse 1.5s infinite; flex-shrink: 0;
}
.mlc-hint {
  font-size: 12px; color: var(--text-3);
  text-align: center; margin: 0; line-height: 1.5;
}

/* Shared components */
.btn-primary {
  padding: 13px 18px;
  background: linear-gradient(135deg, var(--cyan), #0088bb);
  color: #001218;
  border-radius: 12px;
  font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 20px var(--cyan-glow);
  transition: all 0.15s;
  cursor: pointer; border: none; width: 100%;
}
.btn-primary:hover { box-shadow: 0 6px 28px var(--cyan-glow); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); }

.auth-error {
  text-align: center; font-size: 12px;
  color: var(--red); min-height: 16px;
}
.auth-copyright {
  margin-top: 10px; font-size: 10px;
  color: var(--text-3); opacity: 0.6; text-align: center;
}
.status-mini { color: var(--yellow); font-size: 14px; }
.status-mini.ok  { color: var(--green); text-shadow: 0 0 6px var(--green); }
.status-mini.err { color: var(--red); }

/* ════════════════════════════════════════════════════════════
   APP — Sidebar Layout
   ════════════════════════════════════════════════════════════ */
#app-screen {
  display: none;
  flex-direction: row;
  background: var(--bg-0);
}
#app-screen.active { display: flex; }

/* ════════════════════════════════════════════════════════════
   3-PANEL SIDEBAR — IRON MAN HUD
   ════════════════════════════════════════════════════════════ */
:root { --nav-w: 190px; --clp-w: 270px; }

.sidebar {
  width: calc(var(--nav-w) + var(--clp-w));
  display: flex; flex-direction: row;
  flex-shrink: 0;
  height: 100vh;
  padding-top: env(safe-area-inset-top);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 50;
  border-right: 1px solid rgba(0,212,255,0.08);
}

/* ── Panel 1: Nav Strip ── */
.nav-strip {
  width: var(--nav-w);
  background: rgba(4,6,12,0.97);
  border-right: 1px solid rgba(0,212,255,0.07);
  display: flex; flex-direction: column;
  padding: 16px 12px;
  gap: 12px;
  height: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

/* Logo */
.ns-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 4px 12px;
  border-bottom: 1px solid rgba(0,212,255,0.08);
  cursor: pointer;
  margin-bottom: 4px;
}
.ns-logo-orb {
  position: relative; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ns-orb-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
  animation: pulseRing 3s ease-in-out infinite;
}
.ns-orb-core {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
  animation: corePulse 2s ease-in-out infinite;
}
.ns-logo-text {
  font-family: 'Orbitron', monospace;
  font-size: 13px; font-weight: 900; letter-spacing: 2px;
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan-glow);
}

/* Premium card */
.ns-premium {
  background: linear-gradient(135deg, rgba(88,28,235,0.25), rgba(109,40,217,0.1));
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; flex-direction: column; gap: 6px;
}
.ns-premium:hover { border-color: rgba(139,92,246,0.6); box-shadow: 0 0 16px rgba(139,92,246,0.2); }
.ns-prem-icon { font-size: 16px; }
.ns-prem-title { font-size: 11px; font-weight: 700; color: #a78bfa; letter-spacing: 0.5px; }
.ns-prem-sub { font-size: 10px; color: var(--text-3); line-height: 1.3; }
.ns-prem-btn {
  background: rgba(139,92,246,0.2);
  border: 1px solid rgba(139,92,246,0.4);
  border-radius: 8px;
  color: #c4b5fd;
  font-size: 10px; font-weight: 600;
  padding: 5px 8px; cursor: pointer;
  transition: all 0.15s; text-align: center;
  margin-top: 2px;
}
.ns-prem-btn:hover { background: rgba(139,92,246,0.35); }

/* Nav items */
.ns-nav {
  display: flex; flex-direction: column; gap: 2px;
  flex: 1;
}
.ns-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px; color: var(--text-2);
  cursor: pointer; transition: all 0.15s;
  width: 100%; text-align: left;
  position: relative; border: 1px solid transparent;
}
.ns-item:hover { background: rgba(0,212,255,0.05); color: var(--text-0); }
.ns-item svg { flex-shrink: 0; opacity: 0.7; }
.ns-item-active {
  background: rgba(0,212,255,0.08) !important;
  border-color: rgba(0,212,255,0.18) !important;
  color: var(--cyan) !important;
  box-shadow: 0 0 12px rgba(0,212,255,0.06);
}
.ns-item-active svg { opacity: 1; }
.ns-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 5px var(--green);
  animation: corePulse 2s infinite;
  margin-left: auto;
}

/* User card */
.ns-user-card {
  border-top: 1px solid rgba(0,212,255,0.07);
  padding-top: 12px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  border-radius: 10px;
  padding: 10px;
  transition: all 0.15s;
}
.ns-user-card:hover { background: rgba(255,255,255,0.03); }
.ns-user-orb {
  position: relative; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ns-user-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--cyan); opacity: 0.5;
  animation: pulseRing 4s ease-in-out infinite;
}
.ns-user-av {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), #0066cc);
  color: #001218; font-weight: 700; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.ns-user-info { flex: 1; min-width: 0; }
.ns-user-name { font-size: 12px; font-weight: 600; color: var(--text-0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-user-email { font-size: 10px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Panel 2: Chat List Panel ── */
.clp {
  width: var(--clp-w);
  background: rgba(7,9,16,0.95);
  display: flex; flex-direction: column;
  height: 100%;
  border-right: 1px solid rgba(0,212,255,0.06);
}
.clp-header {
  padding: 18px 16px 10px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(0,212,255,0.06);
}
.clp-title {
  font-size: 17px; font-weight: 700; color: var(--text-0);
  letter-spacing: -0.3px;
}
.clp-btn {
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.15);
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.15s;
}
.clp-btn:hover { background: rgba(0,212,255,0.14); }
.clp-search {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 12px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  flex-shrink: 0;
}
.clp-search svg { color: var(--text-3); flex-shrink: 0; }
.clp-search input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text-0); font-size: 13px;
}
.clp-search input::placeholder { color: var(--text-3); }

/* Chat list */
.chat-list {
  flex: 1; overflow-y: auto; padding: 4px 8px 8px;
  display: flex; flex-direction: column; gap: 2px;
}

/* New HUD chat items */
.clp-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 10px;
  border-radius: 10px;
  cursor: pointer; transition: all 0.15s;
  border: 1px solid transparent;
  position: relative;
}
.clp-item:hover { background: rgba(255,255,255,0.04); }
.clp-item.active {
  background: rgba(0,212,255,0.06);
  border-color: rgba(0,212,255,0.15);
}
.clp-item.active::before {
  content: '';
  position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 2px; background: var(--cyan);
  border-radius: 2px;
  box-shadow: 0 0 6px var(--cyan);
}
/* Avatar ring for chat item */
.clpi-av {
  position: relative; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.clpi-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(0,212,255,0.4);
  animation: pulseRing 4s ease-in-out infinite;
}
.clpi-ring-inner {
  position: absolute; inset: 5px; border-radius: 50%;
  border: 1px dashed rgba(0,212,255,0.2);
  animation: spinRing 8s linear infinite;
}
.clpi-core {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,212,255,0.3), rgba(0,50,100,0.6));
  border: 1px solid rgba(0,212,255,0.3);
  color: var(--cyan);
  font-family: 'Orbitron', monospace;
  font-size: 9px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.clpi-body { flex: 1; min-width: 0; }
.clpi-row1 {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 3px;
}
.clpi-name {
  font-size: 13px; font-weight: 600; color: var(--text-0);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 130px;
}
.clpi-time { font-size: 10px; color: var(--text-3); flex-shrink: 0; margin-left: 6px; }
.clpi-row2 { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.clpi-preview {
  font-size: 12px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1;
}
.clpi-badge {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--cyan); color: #001218;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 0 6px var(--cyan-glow);
}
.clpi-del {
  display: none;
  width: 20px; height: 20px; border-radius: 4px;
  color: var(--text-3); font-size: 14px;
  align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.12s;
}
.clp-item:hover .clpi-del { display: flex; }
.clpi-del:hover { background: var(--red); color: white; }

.clp-empty {
  text-align: center; padding: 30px 20px;
  font-size: 12px; color: var(--text-3);
  font-family: 'Orbitron', monospace; letter-spacing: 1px;
}

/* System status mini panel inside clp */
.clp-sys-panel {
  border-top: 1px solid rgba(0,212,255,0.06);
  padding: 10px 14px;
  flex-shrink: 0;
}
.csp-row {
  display: flex; justify-content: space-between;
  padding: 2px 0; font-size: 10px;
}
.csp-key { color: var(--text-3); }
.csp-val { color: var(--cyan); font-weight: 500; max-width: 110px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Chat header redesign ── */
.mh-chat-info {
  display: flex; align-items: center; gap: 10px; flex: 1;
}
.mhci-orb {
  position: relative; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mhci-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--cyan); opacity: 0.6;
  animation: pulseRing 3s ease-in-out infinite;
}
.mhci-core {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), #003388);
  color: #001218;
  font-family: 'Orbitron', monospace;
  font-size: 8px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.mhci-name {
  font-size: 14px; font-weight: 700; color: var(--text-0);
  letter-spacing: 0.3px;
}
.mhci-check { color: var(--cyan); font-size: 12px; margin-left: 3px; }
.mhci-status {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--green);
}
.mhci-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 5px var(--green);
  animation: corePulse 2s infinite; flex-shrink: 0;
}

/* Friday header */
[data-char="friday"] .mhci-ring { border-color: #c084fc; }
[data-char="friday"] .mhci-core { background: linear-gradient(135deg, #c084fc, #5500aa); }
[data-char="friday"] .mhci-check { color: #c084fc; }
[data-char="friday"] .ns-orb-ring { border-color: #c084fc; box-shadow: 0 0 10px rgba(192,132,252,.4); }
[data-char="friday"] .ns-orb-core { background: #c084fc; box-shadow: 0 0 8px #c084fc; }
[data-char="friday"] .ns-logo-text { color: #c084fc; text-shadow: 0 0 8px rgba(192,132,252,.5); }
[data-char="friday"] .ns-item-active { background: rgba(192,132,252,.08) !important; border-color: rgba(192,132,252,.2) !important; color: #c084fc !important; }
[data-char="friday"] .clp-item.active { background: rgba(192,132,252,.06); border-color: rgba(192,132,252,.15); }
[data-char="friday"] .clp-item.active::before { background: #c084fc; box-shadow: 0 0 6px #c084fc; }
[data-char="friday"] .clpi-ring { border-color: rgba(192,132,252,.4); }
[data-char="friday"] .clpi-core { background: linear-gradient(135deg, rgba(192,132,252,.3), rgba(80,0,120,.6)); border-color: rgba(192,132,252,.3); color: #c084fc; }
[data-char="friday"] .clpi-badge { background: #c084fc; box-shadow: 0 0 6px rgba(192,132,252,.5); }

/* ── HUD Bottom Status Bar ── */
.hud-status-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 26px;
  background: rgba(4,6,12,0.97);
  border-top: 1px solid rgba(0,212,255,0.1);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
  font-family: 'Orbitron', monospace;
  font-size: 9px; letter-spacing: 0.8px;
  color: var(--text-3);
}
.hsb-left { display: flex; align-items: center; gap: 8px; }
.hsb-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 4px var(--green);
  animation: corePulse 2s infinite;
}
.hsb-label { color: var(--text-3); }
.hsb-val { color: var(--cyan); }
.hsb-bar {
  width: 60px; height: 3px;
  background: rgba(0,212,255,0.15); border-radius: 2px; overflow: hidden;
}
.hsb-fill {
  height: 100%; width: 87%;
  background: linear-gradient(90deg, var(--cyan), #8b5cf6);
  border-radius: 2px;
  transition: width 1s ease;
}
.hsb-mid { display: flex; align-items: center; gap: 8px; color: rgba(0,212,255,.5); }
.hsb-sep { color: rgba(0,212,255,.2); }
.hsb-right { display: flex; align-items: center; gap: 5px; color: rgba(0,212,255,.4); }
[data-char="friday"] .hud-status-bar { border-top-color: rgba(192,132,252,.1); }
[data-char="friday"] .hsb-val { color: #c084fc; }
[data-char="friday"] .hsb-fill { background: linear-gradient(90deg, #c084fc, #f472b6); }
[data-char="friday"] .hsb-dot { background: var(--green); }

/* main area: lift above status bar */
.main { padding-bottom: 26px; }

/* ── Main content ─────────────────────────────────────────── */

.sidebar-top {
  padding: 12px;
  display: flex; gap: 8px;
  border-bottom: 1px solid var(--bg-3);
}

.new-chat-btn {
  flex: 1;
  padding: 10px 14px;
  background: var(--cyan);
  color: #001218;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  display: flex; align-items: center; gap: 8px; justify-content: center;
  transition: all 0.15s;
  box-shadow: 0 2px 8px var(--cyan-soft);
}
.new-chat-btn span { font-size: 18px; line-height: 1; }
.new-chat-btn:hover { box-shadow: 0 4px 16px var(--cyan-glow); }
.new-chat-btn:active { transform: scale(0.97); }

.sidebar-toggle {
  width: 38px;
  background: var(--bg-2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: all 0.15s;
}
.sidebar-toggle:hover { background: var(--bg-3); color: var(--cyan); }

.sidebar-section-title {
  padding: 14px 16px 6px;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-3);
  text-transform: uppercase;
  font-weight: 600;
}
/* ── JARVIS Sistem Durumu Paneli ── */
.jarvis-status-panel {
  margin: 8px 8px 4px;
  background: linear-gradient(135deg, rgba(0,212,255,0.05), rgba(0,0,0,0));
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 10px;
  padding: 10px 12px;
}
.jsp-header {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 8px;
}
.jsp-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: jspPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes jspPulse {
  0%,100% { opacity: 1; box-shadow: 0 0 6px var(--green); }
  50%      { opacity: 0.5; box-shadow: 0 0 3px var(--green); }
}
.jsp-label {
  font-size: 9px; letter-spacing: 1.5px;
  color: var(--text-3); font-weight: 600;
}
.jsp-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 2px 0;
}
.jsp-key { font-size: 11px; color: var(--text-3); }
.jsp-val { font-size: 11px; color: var(--cyan); font-weight: 500; max-width: 130px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-divider {
  height: 1px; background: var(--bg-3);
  margin: 6px 0;
}
.sidebar-quick {
  padding: 7px 12px;
  display: flex; align-items: center; gap: 8px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--text-2);
  transition: all 0.12s;
  width: 100%; text-align: left;
}
.sidebar-quick:hover {
  background: rgba(0,212,255,0.07);
  color: var(--cyan);
}
.sidebar-quick span { font-size: 14px; width: 18px; text-align: center; }


.chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px 8px;
  display: flex; flex-direction: column; gap: 2px;
}

.chat-item {
  padding: 10px 12px;
  border-radius: 7px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  transition: all 0.12s;
  position: relative;
  font-size: 13px;
  color: var(--text-1);
  border: 1px solid transparent;
}
.chat-item:hover { background: var(--bg-2); }
.chat-item.active {
  background: var(--cyan-soft);
  border-color: var(--cyan-border);
  color: var(--text-0);
}

.chat-item-icon {
  width: 14px; height: 14px;
  flex-shrink: 0;
  color: var(--cyan); opacity: 0.6;
}
.chat-item-title {
  flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-item-del {
  opacity: 0;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px; color: var(--text-3);
  transition: all 0.15s;
}
.chat-item:hover .chat-item-del { opacity: 1; }
.chat-item-del:hover { background: var(--red); color: white; }

.sidebar-bottom {
  border-top: 1px solid var(--bg-3);
  padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
}

.sidebar-item {
  padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--text-1);
  transition: all 0.12s;
  width: 100%;
  text-align: left;
}
.sidebar-item:hover { background: var(--bg-2); color: var(--cyan); }
.si-icon { font-size: 16px; width: 20px; text-align: center; }
.si-text { flex: 1; }
.si-badge {
  font-size: 10px;
  padding: 1px 6px;
  background: var(--cyan);
  color: var(--bg-0);
  border-radius: 8px;
  font-weight: 600;
}
.si-badge:empty { display: none; }

.user-card {
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--bg-2);
  border-radius: 8px;
  display: flex; align-items: center; gap: 10px;
}
.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), #0099bb);
  color: var(--bg-0);
  font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px var(--cyan-soft);
}
.user-info { flex: 1; min-width: 0; }
.user-name {
  font-size: 13px; font-weight: 600;
  color: var(--text-0);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-status {
  font-size: 10px; color: var(--green);
  letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 4px;
}
.user-status.offline { color: var(--text-3); }
.user-logout {
  width: 28px; height: 28px;
  border-radius: 6px;
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: all 0.15s;
}
.user-logout:hover { background: var(--red); color: white; }

/* ── Main content ─────────────────────────────────────────── */
.main {
  flex: 1;
  display: flex; flex-direction: column;
  height: 100vh;
  min-width: 0;
  padding-top: env(safe-area-inset-top);
}

.main-header {
  height: var(--header-h);
  flex-shrink: 0;
  padding: 0 16px;
  border-bottom: 1px solid rgba(0,212,255,0.1);
  display: flex; align-items: center; gap: 12px;
  background: rgba(6,8,13,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky; top: 0; z-index: 10;
  box-shadow: 0 1px 20px rgba(0,0,0,0.4);
}
/* HUD scanning line on header bottom */
.main-header::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, var(--cyan) 30%,
    rgba(0,212,255,0.3) 50%, var(--cyan) 70%, transparent 100%
  );
  opacity: 0.3;
}
[data-char="friday"] .main-header {
  border-bottom-color: rgba(192,132,252,0.15);
}
[data-char="friday"] .main-header::after {
  background: linear-gradient(90deg,
    transparent 0%, #c084fc 30%,
    rgba(192,132,252,0.3) 50%, #c084fc 70%, transparent 100%
  );
}

.hamburger {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center; justify-content: center;
  color: var(--text-1);
  transition: all 0.15s;
}
.hamburger:hover { background: var(--bg-2); color: var(--cyan); }

.header-title { flex: 1; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.ht-name {
  font-family: 'Orbitron', monospace;
  font-size: 15px; font-weight: 700;
  letter-spacing: 2px;
  color: var(--cyan);
}
.ht-model {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.header-actions { display: flex; gap: 4px; }
.hdr-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-1);
  transition: all 0.15s;
}
.hdr-btn:hover { background: var(--cyan-soft); color: var(--cyan); }
.hdr-btn:active { transform: scale(0.92); }

/* ── Views ───────────────────────────────────────────────── */
.content-view {
  flex: 1;
  display: none;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.content-view.active { display: flex; }

.view-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--bg-2);
  display: flex; align-items: center; gap: 12px;
}
.view-header h2 {
  font-size: 18px; flex: 1;
  color: var(--text-0); font-weight: 600;
}
.view-header input {
  padding: 8px 14px;
  background: var(--bg-2);
  border: 1px solid var(--bg-3);
  color: var(--text-1);
  border-radius: 18px;
  font-size: 13px;
  max-width: 240px;
}

/* ── Chat log ────────────────────────────────────────────── */
.chat-log {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column;
  scroll-behavior: smooth;
}

/* ── HUD Welcome Screen — Iron Man Initialization ─ */
.welcome-screen {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 20px;
  text-align: center;
  animation: hudInit 0.6s cubic-bezier(0.16,1,0.3,1);
  position: relative;
}
@keyframes hudInit {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
/* Subtle grid behind welcome */
.welcome-screen::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 50%,
    rgba(0,212,255,0.04) 0%, transparent 70%);
}

/* ── HUD Ring System (Iron Man welcome) ─ */
.hud-ring-system {
  position: relative;
  width: 140px; height: 140px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.hud-ring {
  position: absolute; border-radius: 50%;
}
.hr1 {
  inset: 0;
  border: 1.5px solid var(--cyan);
  opacity: 0.7;
  animation: hudRing1 8s linear infinite;
  box-shadow: 0 0 20px rgba(0,212,255,0.2), inset 0 0 20px rgba(0,212,255,0.05);
}
.hr2 {
  inset: 14px;
  border: 1px dashed rgba(0,212,255,0.4);
  animation: hudRing1 5s linear infinite reverse;
}
.hr3 {
  inset: 28px;
  border: 1px solid rgba(0,212,255,0.2);
  animation: hudRing1 12s linear infinite;
}
@keyframes hudRing1 { to { transform: rotate(360deg); } }

/* Status ticks */
.hud-tick {
  position: absolute;
  width: 4px; height: 10px;
  background: var(--cyan);
  border-radius: 2px;
  box-shadow: 0 0 6px var(--cyan);
  animation: tickBlink 2s ease-in-out infinite;
}
.t1 { top: -2px; left: 50%; margin-left: -2px; animation-delay: 0s; }
.t2 { right: -2px; top: 50%; margin-top: -2px; transform: rotate(90deg); animation-delay: 0.5s; }
.t3 { bottom: -2px; left: 50%; margin-left: -2px; animation-delay: 1s; }
.t4 { left: -2px; top: 50%; margin-top: -2px; transform: rotate(90deg); animation-delay: 1.5s; }
@keyframes tickBlink {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.2; }
}

.hud-core {
  position: relative;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.hud-core-inner {
  width: 32px; height: 32px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.3), transparent 50%),
              radial-gradient(circle, var(--cyan), #0044aa);
  box-shadow: 0 0 30px var(--cyan-glow), 0 0 60px rgba(0,212,255,0.2);
  animation: corePulse 2s ease-in-out infinite;
}
.hud-core-pulse {
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(0,212,255,0.3);
  animation: orbPulseRing 2s ease-out infinite;
}

/* FRIDAY ring system */
[data-char="friday"] .hr1 { border-color: #c084fc; box-shadow: 0 0 20px rgba(192,132,252,0.2); }
[data-char="friday"] .hr2 { border-color: rgba(192,132,252,0.4); }
[data-char="friday"] .hr3 { border-color: rgba(192,132,252,0.2); }
[data-char="friday"] .hud-tick { background: #c084fc; box-shadow: 0 0 6px #c084fc; }
[data-char="friday"] .hud-core-inner {
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.3), transparent 50%),
              radial-gradient(circle, #c084fc, #5500aa);
  box-shadow: 0 0 30px rgba(192,132,252,0.6), 0 0 60px rgba(192,132,252,0.2);
}
[data-char="friday"] .hud-core-pulse { border-color: rgba(192,132,252,0.3); }
[data-char="friday"] .welcome-screen::before {
  background: radial-gradient(ellipse 80% 60% at 50% 50%,
    rgba(192,132,252,0.04) 0%, transparent 70%);
}

.hud-system-label {
  font-family: 'Orbitron', monospace;
  font-size: 9px; font-weight: 700;
  letter-spacing: 4px; color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan-glow);
  margin-bottom: 10px; opacity: 0.8;
  animation: thinkFade 3s ease-in-out infinite;
}
[data-char="friday"] .hud-system-label { color: #c084fc; text-shadow: 0 0 10px rgba(192,132,252,0.5); }

.welcome-title {
  font-size: 24px; font-weight: 700;
  color: var(--text-0); margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.welcome-hello { color: var(--text-2); font-weight: 400; margin-right: 6px; }
.welcome-user-name { color: var(--cyan); }
[data-char="friday"] .welcome-user-name { color: #c084fc; }

.welcome-sub {
  font-size: 13px; color: var(--text-3); margin-bottom: 24px;
  font-family: 'Orbitron', monospace; font-size: 10px;
  letter-spacing: 1px; opacity: 0.7;
}

/* New welcome orb (backward compat) */
.welcome-orb {
  position: relative;
  width: 80px; height: 80px;
  margin-bottom: 24px;
  display: flex; align-items: center; justify-content: center;
}
.wo-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--cyan);
}
.wo-r1 { inset: 0; opacity: 0.7; animation: pulseRing 2.5s ease-in-out infinite; box-shadow: 0 0 20px var(--cyan-glow); }
.wo-r2 { inset: -12px; opacity: 0.3; animation: pulseRing 2.5s ease-in-out infinite 0.8s; border-style: dashed; }
.wo-core {
  width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.3), transparent 50%),
              radial-gradient(circle, var(--cyan), #0066cc);
  box-shadow: 0 0 20px var(--cyan), 0 0 40px var(--cyan-glow);
  animation: corePulse 2s ease-in-out infinite;
}
/* Keep old .wl-ring .wl-core for history rendering compatibility */
.wl-ring { position:absolute;inset:0;border:2px solid var(--cyan);border-radius:50%;box-shadow:0 0 24px var(--cyan-glow);animation:pulseRing 2.5s ease-in-out infinite; }
.wl-core { position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:12px;height:12px;background:var(--cyan);border-radius:50%;box-shadow:0 0 16px var(--cyan);animation:corePulse 2s infinite; }
.welcome-logo { position:relative;width:80px;height:80px;margin-bottom:24px; }

.welcome-title {
  font-size: 28px; color: var(--text-0);
  font-weight: 700; margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.welcome-title span { color: var(--cyan); }
.welcome-sub {
  font-size: 14px; color: var(--text-2); margin-bottom: 28px;
}

.welcome-suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%; max-width: 520px;
}
/* HUD Command Tiles */
.welcome-suggestions button {
  padding: 12px 14px;
  background: rgba(0,212,255,0.03);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-1);
  text-align: left;
  transition: all 0.2s;
  cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  position: relative;
  overflow: hidden;
}
/* Corner bracket on HUD tiles */
.welcome-suggestions button::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 8px; height: 8px;
  border-top: 1px solid rgba(0,212,255,0.4);
  border-left: 1px solid rgba(0,212,255,0.4);
}
.welcome-suggestions button:nth-child(1) { animation-delay: 0.05s; }
.welcome-suggestions button:nth-child(2) { animation-delay: 0.1s; }
.welcome-suggestions button:nth-child(3) { animation-delay: 0.15s; }
.welcome-suggestions button:nth-child(4) { animation-delay: 0.2s; }
.ws-icon { font-size: 18px; flex-shrink: 0; opacity: 0.8; }
.ws-text { display: flex; flex-direction: column; gap: 2px; }
.ws-text strong {
  font-family: 'Orbitron', monospace;
  font-size: 11px; font-weight: 700;
  color: var(--text-0); letter-spacing: 0.5px;
}
.ws-text small { font-size: 10px; color: var(--text-3); font-weight: 400; letter-spacing: 0.3px; }
.welcome-suggestions button:hover {
  background: rgba(0,212,255,0.08);
  border-color: rgba(0,212,255,0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,212,255,0.1), -2px 0 0 var(--cyan);
}
.welcome-suggestions button:active { transform: translateY(0) scale(0.98); }
[data-char="friday"] .welcome-suggestions button {
  background: rgba(192,132,252,0.03);
  border-color: rgba(192,132,252,0.12);
}
[data-char="friday"] .welcome-suggestions button::before {
  border-color: rgba(192,132,252,0.4);
}
[data-char="friday"] .welcome-suggestions button:hover {
  background: rgba(192,132,252,0.08);
  border-color: rgba(192,132,252,0.3);
  box-shadow: 0 4px 20px rgba(192,132,252,0.1), -2px 0 0 #c084fc;
}

/* ════════════════════════════════════════════════════════════
   CHAT — Futuristic Message Design
   ════════════════════════════════════════════════════════════ */
/* ════════════════════════════════════════════════════════════
   JARVIS HUD — IRON MAN LEVEL CHAT DESIGN
   ════════════════════════════════════════════════════════════ */

/* Chat log: holographic hex grid background */
.chat-log {
  background:
    radial-gradient(ellipse 60% 40% at 85% 15%, rgba(0,212,255,0.04), transparent 55%),
    radial-gradient(ellipse 40% 50% at 5% 85%, rgba(0,100,255,0.03), transparent 50%),
    var(--bg-0);
  position: relative;
}

/* Subtle scan line */
.chat-log::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(0,212,255,0.012) 3px,
    rgba(0,212,255,0.012) 4px
  );
}

/* ── Message animation ─ */
@keyframes msgIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes msgInUser {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.msg-wrap {
  padding: 10px 20px;
  display: flex; gap: 12px;
  position: relative; z-index: 1;
  border-bottom: 1px solid rgba(0,212,255,0.04);
}
.msg-wrap.bot  { animation: msgIn 0.3s cubic-bezier(0.16,1,0.3,1); }
.msg-wrap.user { animation: msgInUser 0.3s cubic-bezier(0.16,1,0.3,1); flex-direction: row-reverse; }

/* ── HUD Avatar ─ */
.msg-avatar {
  width: 36px; height: 36px;
  flex-shrink: 0; position: relative;
  display: flex; align-items: center; justify-content: center;
  margin-top: 4px;
}

.msg-wrap.bot .msg-avatar {
  background: transparent;
  border: 1px solid var(--cyan);
  border-radius: 6px;
  color: var(--cyan);
  font-family: 'Orbitron', monospace;
  font-size: 9px; font-weight: 900; letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(0,212,255,0.3), inset 0 0 10px rgba(0,212,255,0.06);
}
/* Corner brackets on avatar */
.msg-wrap.bot .msg-avatar::before {
  content: '';
  position: absolute; top: -3px; left: -3px;
  width: 8px; height: 8px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
}
.msg-wrap.bot .msg-avatar::after {
  content: '';
  position: absolute; bottom: -3px; right: -3px;
  width: 8px; height: 8px;
  border-bottom: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
}
/* Blinking status dot */
.msg-wrap.bot .msg-avatar .hud-dot {
  display: none; /* added via JS if needed */
}

.msg-wrap.user .msg-avatar {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: var(--text-2);
  font-size: 13px; font-weight: 700;
}

/* ── Message body ─ */
.msg-body { flex: 1; min-width: 0; max-width: 82%; }
.msg-wrap.user .msg-body { display: flex; flex-direction: column; align-items: flex-end; }

/* Author label — Orbitron style */
.msg-author {
  font-family: 'Orbitron', monospace;
  font-size: 8px; font-weight: 700;
  letter-spacing: 2.5px; color: var(--cyan);
  margin-bottom: 6px; opacity: 0.65;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
}
.msg-wrap.user .msg-author { color: rgba(255,255,255,0.3); justify-content: flex-end; }
.msg-author::before {
  content: '//';
  opacity: 0.5; font-size: 9px;
}

/* ── JARVIS Bot message — HUD Panel ─ */
.msg-wrap.bot .msg-content {
  background: linear-gradient(135deg,
    rgba(0,212,255,0.05) 0%,
    rgba(0,50,100,0.04) 50%,
    rgba(0,0,0,0) 100%
  );
  border: 1px solid rgba(0,212,255,0.18);
  border-left: 2px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  position: relative;
  box-shadow:
    -4px 0 20px rgba(0,212,255,0.08),
    inset 0 1px 0 rgba(0,212,255,0.06);
}
/* Top-right corner bracket */
.msg-wrap.bot .msg-content::before {
  content: '';
  position: absolute; top: -1px; right: -1px;
  width: 14px; height: 14px;
  border-top: 1px solid rgba(0,212,255,0.5);
  border-right: 1px solid rgba(0,212,255,0.5);
  border-radius: 0 6px 0 0;
}
/* Bottom-right corner bracket */
.msg-wrap.bot .msg-content::after {
  content: '';
  position: absolute; bottom: -1px; right: -1px;
  width: 14px; height: 14px;
  border-bottom: 1px solid rgba(0,212,255,0.3);
  border-right: 1px solid rgba(0,212,255,0.3);
  border-radius: 0 0 6px 0;
}

/* ── User message — compact arc panel ─ */
.msg-wrap.user .msg-content {
  background: rgba(0,212,255,0.07);
  border: 1px solid rgba(0,212,255,0.22);
  border-right: 2px solid var(--cyan);
  border-radius: 8px 0 0 8px;
  padding: 12px 16px;
  box-shadow: 4px 0 16px rgba(0,212,255,0.07);
}

/* ── Content text ─ */
.msg-content {
  color: var(--text-0);
  line-height: 1.75;
  font-size: 14px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.msg-content.streaming::after {
  content: '▊';
  color: var(--cyan);
  animation: caret 0.5s steps(1) infinite;
  margin-left: 2px;
  font-size: 14px;
  text-shadow: 0 0 8px var(--cyan);
}
@keyframes caret { 0%,100%{opacity:1;}50%{opacity:0;} }

.msg-content img {
  max-width: 380px; max-height: 380px;
  border-radius: 6px; margin-top: 10px;
  border: 1px solid rgba(0,212,255,0.2);
  display: block;
  box-shadow: 0 0 20px rgba(0,212,255,0.1);
}

/* ── FRIDAY HUD — Purple/Magenta theme ─ */
[data-char="friday"] .msg-wrap.bot .msg-avatar {
  border-color: #c084fc;
  color: #c084fc;
  box-shadow: 0 0 10px rgba(192,132,252,0.3), inset 0 0 10px rgba(192,132,252,0.06);
}
[data-char="friday"] .msg-wrap.bot .msg-avatar::before {
  border-color: #c084fc;
}
[data-char="friday"] .msg-wrap.bot .msg-avatar::after {
  border-color: rgba(192,132,252,0.6);
}
[data-char="friday"] .msg-wrap.bot .msg-content {
  background: linear-gradient(135deg, rgba(192,132,252,0.06) 0%, rgba(80,0,120,0.03) 100%);
  border-color: rgba(192,132,252,0.2);
  border-left-color: #c084fc;
  box-shadow: -4px 0 20px rgba(192,132,252,0.08), inset 0 1px 0 rgba(192,132,252,0.06);
}
[data-char="friday"] .msg-wrap.bot .msg-content::before {
  border-color: rgba(192,132,252,0.5);
}
[data-char="friday"] .msg-wrap.bot .msg-content::after {
  border-color: rgba(192,132,252,0.3);
}
[data-char="friday"] .msg-author { color: #c084fc; }
[data-char="friday"] .msg-wrap.user .msg-content {
  background: rgba(192,132,252,0.07);
  border-color: rgba(192,132,252,0.22);
  border-right-color: #c084fc;
}
[data-char="friday"] .msg-content.streaming::after {
  color: #c084fc; text-shadow: 0 0 8px rgba(192,132,252,0.8);
}
[data-char="friday"] .chat-log {
  background:
    radial-gradient(ellipse 60% 40% at 85% 15%, rgba(192,132,252,0.04), transparent 55%),
    radial-gradient(ellipse 40% 50% at 5% 85%, rgba(120,0,180,0.03), transparent 50%),
    var(--bg-0);
}
[data-char="friday"] .chat-log::before {
  background: repeating-linear-gradient(
    0deg,
    transparent 0px, transparent 3px,
    rgba(192,132,252,0.01) 3px, rgba(192,132,252,0.01) 4px
  );
}

.msg-sys {
  text-align: center; padding: 6px 20px;
  color: var(--green); font-size: 11px;
  opacity: 0.8; letter-spacing: 0.5px;
  font-family: 'Orbitron', monospace;
}

/* ── HUD Input ──────────────────────────────────────────── */
.chat-input-wrap {
  flex-shrink: 0;
  padding: 10px 16px env(safe-area-inset-bottom, 10px);
  background: linear-gradient(0deg, rgba(6,8,13,0.98) 0%, rgba(6,8,13,0.6) 100%);
  position: relative;
  border-top: 1px solid rgba(0,212,255,0.08);
}
/* HUD corner decoration on input wrap */
.chat-input-wrap::before {
  content: '';
  position: absolute; top: -1px; left: 20px;
  width: 60px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0.4;
}

.chat-input-box {
  max-width: 820px; margin: 0 auto;
  background: rgba(6,10,18,0.9);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 8px;
  display: flex; align-items: flex-end;
  gap: 4px; padding: 8px;
  transition: all 0.2s;
  box-shadow: 0 0 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(0,212,255,0.06);
  backdrop-filter: blur(16px);
  position: relative;
}
.chat-input-box:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(0,212,255,0.15), 0 0 30px rgba(0,212,255,0.08), inset 0 1px 0 rgba(0,212,255,0.1);
}
/* HUD corner accents on input box */
.chat-input-box::before {
  content: '';
  position: absolute; top: -1px; left: -1px;
  width: 16px; height: 16px;
  border-top: 1px solid var(--cyan);
  border-left: 1px solid var(--cyan);
  border-radius: 6px 0 0 0;
  opacity: 0.7;
  pointer-events: none;
}
.chat-input-box::after {
  content: '';
  position: absolute; bottom: -1px; right: -1px;
  width: 16px; height: 16px;
  border-bottom: 1px solid var(--cyan);
  border-right: 1px solid var(--cyan);
  border-radius: 0 0 6px 0;
  opacity: 0.4;
  pointer-events: none;
}

#chat-input {
  flex: 1;
  padding: 10px 12px;
  font-size: 14.5px;
  color: var(--text-0);
  resize: none;
  max-height: 200px; min-height: 24px;
  line-height: 1.5;
  scrollbar-width: none;
  font-family: inherit;
}
#chat-input::-webkit-scrollbar { display: none; }
#chat-input::placeholder {
  color: rgba(0,212,255,0.25);
  font-family: 'Orbitron', monospace;
  font-size: 11px; letter-spacing: 1px;
}
[data-char="friday"] #chat-input::placeholder { color: rgba(192,132,252,0.25); }

.ci-btn {
  width: 36px; height: 36px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  transition: all 0.15s;
  flex-shrink: 0;
  border: 1px solid transparent;
}
.ci-btn:hover { background: rgba(0,212,255,0.06); color: var(--cyan); border-color: rgba(0,212,255,0.15); }
.ci-btn:active { transform: scale(0.9); }

.ci-mic.recording {
  background: rgba(255,85,102,0.15); color: var(--red);
  border-color: rgba(255,85,102,0.3);
  animation: micPulse 1s infinite;
}
@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,85,102,0.4); }
  50%      { box-shadow: 0 0 0 6px transparent; }
}

.ci-send {
  background: linear-gradient(135deg, var(--cyan), #0088cc);
  color: #001218;
  border-color: transparent !important;
  box-shadow: 0 0 16px rgba(0,212,255,0.3);
}
.ci-send:hover { background: var(--cyan); color: var(--bg-0); box-shadow: 0 0 12px var(--cyan-glow); }
.ci-send:disabled { opacity: 0.4; cursor: not-allowed; }

.ci-hint {
  text-align: center;
  font-size: 10px;
  color: var(--text-3);
  margin-top: 6px;
  letter-spacing: 0.3px;
}

/* ── WhatsApp ────────────────────────────────────────────── */
.wa-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.wa-contact {
  background: var(--bg-1);
  border: 1px solid var(--bg-3);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.wa-contact:hover { border-color: var(--cyan-border); background: var(--bg-2); }
.wa-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-4), var(--bg-3));
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: var(--cyan);
  flex-shrink: 0;
  border: 1px solid var(--cyan-border);
}
.wa-name { flex: 1; font-size: 14px; color: var(--text-0); }
.wa-arrow { color: var(--cyan); font-size: 18px; opacity: 0.6; }

/* ── Memory ──────────────────────────────────────────────── */
.mem-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.mem-item {
  background: var(--bg-1);
  border: 1px solid var(--bg-3);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex; gap: 12px; align-items: flex-start;
}
.mem-content {
  flex: 1;
  font-size: 14px;
  color: var(--text-0);
  line-height: 1.5;
}
.mem-cat {
  display: inline-block; margin-top: 8px;
  font-size: 9px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--cyan);
  padding: 2px 8px;
  background: var(--cyan-soft);
  border: 1px solid var(--cyan-border);
  border-radius: 6px;
  font-weight: 600;
}
.mem-del {
  background: transparent;
  color: var(--red);
  font-size: 22px;
  width: 30px; height: 30px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.mem-del:hover { background: var(--red); color: white; }

/* ── Settings ────────────────────────────────────────────── */
.settings-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  max-width: 720px; margin: 0 auto; width: 100%;
}
.section-title {
  font-size: 11px; letter-spacing: 2px;
  color: var(--cyan); text-transform: uppercase;
  margin: 14px 4px 4px; font-weight: 700;
}
.setting-row {
  background: var(--bg-1);
  border: 1px solid var(--bg-3);
  border-radius: 12px;
  padding: 14px 16px;
}
.setting-row label {
  display: block;
  font-size: 11px; letter-spacing: 1.2px;
  color: var(--text-2);
  margin-bottom: 8px;
  text-transform: uppercase;
  font-weight: 600;
}
.setting-row input,
.setting-row select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-0);
  border: 1px solid var(--bg-3);
  color: var(--text-0);
  border-radius: 8px;
  font-size: 14px;
}
.setting-row input:focus,
.setting-row select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px var(--cyan-soft);
}
.setting-row.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
}
.setting-row.toggle-row label {
  margin: 0; font-size: 14px; text-transform: none;
  letter-spacing: 0; color: var(--text-0); font-weight: 500;
}
.toggle-switch {
  position: relative;
  width: 48px; height: 26px;
  background: var(--bg-3);
  border-radius: 13px;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  background: var(--text-2);
  border-radius: 50%;
  top: 3px; left: 3px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.toggle-switch.on { background: var(--cyan); }
.toggle-switch.on::after {
  background: var(--bg-0); left: 25px;
}

/* ── Empty states ────────────────────────────────────────── */
.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.7;
}
.empty .icon {
  display: block;
  font-size: 40px;
  margin-bottom: 10px;
  opacity: 0.4;
}

/* ════════════════════════════════════════════════════════════
   VOICE OVERLAY (konuşma modu)
   ════════════════════════════════════════════════════════════ */
.voice-overlay {
  position: fixed; inset: 0;
  background: radial-gradient(circle at center, var(--bg-1), var(--bg-0));
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  z-index: 200;
  padding: 20px;
}
.voice-overlay.active { display: flex; animation: fadeIn 0.3s; }

.voice-bg-ripple {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at center, var(--cyan-soft) 0%, transparent 50%);
  animation: bgPulse 4s ease-in-out infinite;
}
@keyframes bgPulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

.voice-close {
  position: absolute; top: 20px; right: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--text-1);
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  padding-top: env(safe-area-inset-top);
  margin-top: env(safe-area-inset-top);
}
.voice-close:hover { background: var(--red); color: white; }

.voice-content {
  display: flex; flex-direction: column; align-items: center; gap: 30px;
  z-index: 1;
}

.voice-orb {
  position: relative;
  width: 300px; height: 300px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* Canvas tam orb alanını kaplar — particles + wave buraya */
#voice-wave {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}

.voice-orb-core {
  position: absolute;
  width: 90px; height: 90px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.4) 0%, transparent 50%),
    radial-gradient(circle at 65% 65%, rgba(0,0,0,0.3) 0%, transparent 50%),
    radial-gradient(circle at 30% 30%, #00f0ff, #0066cc 60%, #003399);
  box-shadow:
    0 0 40px rgba(0,212,255,0.8),
    0 0 80px rgba(0,212,255,0.4),
    inset -8px -8px 20px rgba(0,0,0,0.4),
    inset 8px 8px 20px rgba(255,255,255,0.15);
  animation: orbBreathe 3s ease-in-out infinite;
  z-index: 3;
  transition: background 0.5s, box-shadow 0.5s;
}
.voice-orb-core::before {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    transparent 0deg,
    rgba(0,212,255,0.6) 60deg,
    transparent 120deg,
    rgba(0,212,255,0.3) 200deg,
    transparent 300deg
  );
  animation: orbRotate 2s linear infinite;
  z-index: -1;
}
.voice-orb-core::after {
  content: '';
  position: absolute; inset: -16px;
  border-radius: 50%;
  border: 1px solid rgba(0,212,255,0.25);
  animation: orbPulseRing 2.5s ease-out infinite;
}
@keyframes orbRotate { to { transform: rotate(360deg); } }
@keyframes orbPulseRing {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Listening state */
.voice-orb-core.listening {
  animation: orbListen 0.6s ease-in-out infinite;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.4) 0%, transparent 50%),
    radial-gradient(circle at 30% 30%, #00ff88, #00aa55 60%, #006633);
  box-shadow:
    0 0 50px rgba(0,255,136,0.9),
    0 0 100px rgba(0,255,136,0.4),
    inset -8px -8px 20px rgba(0,0,0,0.3),
    inset 8px 8px 20px rgba(255,255,255,0.2);
}
.voice-orb-core.listening::before {
  background: conic-gradient(
    transparent 0deg,
    rgba(0,255,136,0.7) 60deg,
    transparent 120deg,
    rgba(0,255,136,0.4) 200deg,
    transparent 300deg
  );
  animation: orbRotate 0.8s linear infinite;
}
@keyframes orbListen {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}

/* Thinking state */
.voice-orb-core.thinking {
  animation: orbThink 1.2s ease-in-out infinite;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.4) 0%, transparent 50%),
    radial-gradient(circle at 30% 30%, #ffcc00, #ff8800 60%, #cc4400);
  box-shadow:
    0 0 50px rgba(255,200,0,0.9),
    0 0 100px rgba(255,150,0,0.4),
    inset -8px -8px 20px rgba(0,0,0,0.4),
    inset 8px 8px 20px rgba(255,255,255,0.15);
}
.voice-orb-core.thinking::before {
  background: conic-gradient(
    transparent 0deg,
    rgba(255,200,0,0.7) 60deg,
    transparent 120deg
  );
  animation: orbRotate 0.5s linear infinite;
}
@keyframes orbThink {
  0%, 100% { transform: scale(1) rotate(0deg); box-shadow: 0 0 50px rgba(255,200,0,0.8); }
  25%      { transform: scale(1.1) rotate(5deg); }
  75%      { transform: scale(1.1) rotate(-5deg); }
}

/* Speaking state */
.voice-orb-core.speaking {
  animation: orbSpeak 0.3s ease-in-out infinite;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.4) 0%, transparent 50%),
    radial-gradient(circle at 30% 30%, #cc88ff, #8844cc 60%, #441188);
  box-shadow:
    0 0 50px rgba(180,100,255,0.9),
    0 0 100px rgba(150,80,255,0.5),
    inset -8px -8px 20px rgba(0,0,0,0.3),
    inset 8px 8px 20px rgba(255,255,255,0.2);
}
.voice-orb-core.speaking::before {
  background: conic-gradient(
    transparent 0deg,
    rgba(200,100,255,0.8) 60deg,
    transparent 120deg,
    rgba(180,80,255,0.5) 200deg,
    transparent 300deg
  );
  animation: orbRotate 0.3s linear infinite;
}
@keyframes orbSpeak {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}

@keyframes orbBreathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(0,212,255,0.8), 0 0 80px rgba(0,212,255,0.4), inset -8px -8px 20px rgba(0,0,0,0.4), inset 8px 8px 20px rgba(255,255,255,0.15); }
  50%      { transform: scale(1.06); box-shadow: 0 0 60px rgba(0,212,255,1), 0 0 120px rgba(0,212,255,0.5), inset -8px -8px 20px rgba(0,0,0,0.4), inset 8px 8px 20px rgba(255,255,255,0.15); }
}

/* Halka animasyonları */
.voice-orb-ring {
  position: absolute;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  opacity: 0;
  z-index: 2;
  animation: ringPulse 3s ease-out infinite;
}
.voice-orb-ring.r1 { width: 130px; height: 130px; animation-delay: 0s; border-color: rgba(0,212,255,0.6); }
.voice-orb-ring.r2 { width: 190px; height: 190px; animation-delay: 1s; border-color: rgba(0,212,255,0.4); }
.voice-orb-ring.r3 { width: 260px; height: 260px; animation-delay: 2s; border-color: rgba(0,212,255,0.2); }
@keyframes ringPulse {
  0%   { transform: scale(0.7); opacity: 0.7; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* Friday voice orb renkleri */
[data-char="friday"] .voice-orb-core {
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.4) 0%, transparent 50%),
    radial-gradient(circle at 30% 30%, #f0aaff, #9933cc 60%, #660099);
  box-shadow:
    0 0 40px rgba(192,132,252,0.8),
    0 0 80px rgba(192,132,252,0.4),
    inset -8px -8px 20px rgba(0,0,0,0.4),
    inset 8px 8px 20px rgba(255,255,255,0.15);
}
[data-char="friday"] .voice-orb-core::before {
  background: conic-gradient(
    transparent 0deg,
    rgba(192,132,252,0.7) 60deg,
    transparent 120deg,
    rgba(244,114,182,0.4) 200deg,
    transparent 300deg
  );
}
[data-char="friday"] .voice-orb-ring {
  border-color: rgba(192,132,252,0.5);
}

.voice-status {
  font-size: 14px;
  color: var(--text-2);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.voice-transcript {
  font-size: 18px;
  color: var(--text-0);
  text-align: center;
  max-width: 600px;
  min-height: 60px;
  line-height: 1.5;
  padding: 0 20px;
}

.voice-controls {
  display: flex; gap: 16px;
  margin-top: 10px;
}
.voice-mic-btn {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--bg-0);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 30px var(--cyan-glow);
  transition: all 0.2s;
}
.voice-mic-btn:active { transform: scale(0.92); }
.voice-mic-btn.recording {
  background: var(--red);
  box-shadow: 0 4px 30px rgba(255,85,102,0.6);
  animation: micPulse 1s infinite;
}

/* ════════════════════════════════════════════════════════════
   MODALS
   ════════════════════════════════════════════════════════════ */
.modal {
  position: fixed; inset: 0;
  background: rgba(6, 8, 13, 0.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 300; padding: 20px;
}
.modal.active { display: flex; }

.modal-card {
  background: var(--bg-1);
  border: 1px solid var(--cyan);
  border-radius: 14px;
  padding: 22px;
  max-width: 440px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 30px var(--cyan-glow);
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-card h3 {
  font-family: 'Orbitron', monospace;
  font-size: 13px; letter-spacing: 2px;
  color: var(--cyan); margin-bottom: 16px;
}

.modal-card textarea,
.modal-card input,
.modal-card select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-0);
  border: 1px solid var(--bg-3);
  color: var(--text-0);
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 10px;
  resize: vertical;
}

.modal-actions { display: flex; gap: 8px; margin-top: 4px; }
.modal-actions button { flex: 1; padding: 11px; }
.btn-cancel {
  background: var(--bg-3);
  color: var(--text-1);
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
}
.btn-cancel:hover { background: var(--bg-4); }

/* ════════════════════════════════════════════════════════════
   Sidebar backdrop (mobile only)
   ════════════════════════════════════════════════════════════ */
.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(6, 8, 13, 0.7);
  backdrop-filter: blur(4px);
  z-index: 40;
}

/* ════════════════════════════════════════════════════════════
   Scrollbars
   ════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--bg-4); }

/* ════════════════════════════════════════════════════════════
   SIDEBAR — gizlenebilir (her boyutta)
   ════════════════════════════════════════════════════════════ */
.sidebar.collapsed {
  width: 0;
  border-right: none;
  overflow: hidden;
}

/* ════════════════════════════════════════════════════════════
   HOME / ANA MENÜ VIEW — Auth screen gibi 3 kolon layout
   ════════════════════════════════════════════════════════════ */
.home-view-inner {
  flex: 1; position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.home-bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--cyan-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--cyan-border) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.12;
  animation: gridScroll 80s linear infinite;
}
/* 3 kolon: hero | orb | panel */
.home-body {
  flex: 1;
  position: relative; z-index: 1;
  display: flex; align-items: center;
  padding: 0 20px;
  gap: 0;
  min-height: 0; overflow: hidden;
}

/* Sol kolon: Hero */
.home-hero-col {
  flex: 1.2;
  display: flex; flex-direction: column;
  gap: 18px;
  padding: 20px 0;
  min-width: 0;
}
.home-hero-title {
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 800; line-height: 1.15;
  color: var(--text-0); letter-spacing: -0.5px;
  margin: 0;
}
.home-hero-sub {
  font-size: 14px; color: var(--text-2);
  line-height: 1.6; max-width: 380px; margin: 0;
}
.home-connect-row {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.home-feats-list {
  display: flex; flex-direction: column; gap: 8px;
}
.hfl-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-2);
}

/* Orta kolon: Orb */
.home-orb-col {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  min-height: 300px;
}

/* Sağ kolon: Panel */
.home-panel-col {
  flex: 0.85;
  display: flex; align-items: center; justify-content: center;
  padding: 20px 0;
}
.home-panel-card {
  width: 100%; max-width: 320px;
  background: rgba(10,14,22,0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  display: flex; flex-direction: column; gap: 10px;
}
.hp-user-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 4px;
}
.hp-start-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 18px;
  background: linear-gradient(135deg, var(--cyan), #0088bb);
  color: #001218;
  border-radius: 12px;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 4px 20px var(--cyan-glow);
  cursor: pointer; border: none; width: 100%;
  transition: all .2s;
}
.hp-start-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 28px var(--cyan-glow); }
[data-char="friday"] .hp-start-btn {
  background: linear-gradient(135deg, #c084fc, #a855f7);
  color: #0f0020;
  box-shadow: 0 4px 20px rgba(192,132,252,.4);
}
.hp-divider { height: 1px; background: rgba(255,255,255,.07); margin: 4px 0; }
.hp-action-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  font-size: 13px; color: var(--text-2);
  cursor: pointer; transition: all .15s; width: 100%; text-align: left;
}
.hp-action-btn:hover { background: rgba(255,255,255,.07); color: var(--text-0); }
.hp-logout:hover { border-color: rgba(255,85,102,.3); color: var(--red); }

/* Mobil: tek kolon */
@media (max-width: 900px) {
  .home-orb-col { display: none; }
  .home-hero-col { display: none; }
  .home-body { justify-content: center; }
  .home-panel-col { flex: 1; max-width: 400px; padding: 20px; }
}
@media (max-width: 1100px) {
  .home-hero-title { font-size: 24px; }
  .ao-feat { display: none; }
}

/* Orb */
.home-orb-wrap { position: relative; }
.home-orb {
  position: relative; width: 160px; height: 160px;
  display: flex; align-items: center; justify-content: center;
}
.home-orb-r1,.home-orb-r2,.home-orb-r3 { position: absolute; border-radius: 50%; border: 1px solid var(--cyan); }
.home-orb-r1 { inset: 0; opacity: .6; animation: pulseRing 3s ease-in-out infinite; }
.home-orb-r2 { inset: -16px; opacity: .3; animation: pulseRing 3s ease-in-out infinite 1s; border-style: dashed; }
.home-orb-r3 { inset: -32px; opacity: .15; animation: pulseRing 3s ease-in-out infinite 2s; }
.home-orb-sphere {
  width: 80px; height: 80px; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,.3) 0%, transparent 50%),
    radial-gradient(circle, var(--cyan), #003388);
  box-shadow: 0 0 40px var(--cyan-glow), 0 0 80px rgba(0,212,255,.2);
  display: flex; align-items: center; justify-content: center;
  position: relative; animation: aoSphereBreath 4s ease-in-out infinite;
}
.home-orb-sphere::before {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(transparent, rgba(0,212,255,.5) 60deg, transparent 120deg);
  animation: spinRing 3s linear infinite;
}
.home-orb-shine {
  position: absolute; top: 15%; left: 18%;
  width: 32%; height: 32%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.4), transparent 70%);
}
.home-orb-sphere span {
  font-family: 'Orbitron', monospace;
  font-size: 9px; font-weight: 900;
  letter-spacing: 2px; color: rgba(255,255,255,.9);
  text-shadow: 0 0 10px var(--cyan); z-index: 1;
}
.home-orb-floor {
  position: absolute; bottom: -8px;
  width: 100px; height: 16px;
  background: radial-gradient(ellipse, var(--cyan-glow), transparent 70%);
  filter: blur(6px);
}

/* Text */
.home-text { text-align: center; }
.home-tag {
  font-size: 10px; letter-spacing: 2px; color: var(--cyan);
  font-weight: 600; margin-bottom: 8px;
}
.home-title {
  font-size: 28px; font-weight: 800;
  color: var(--text-0); letter-spacing: -0.5px;
  margin: 0 0 8px;
}
.home-gradient-text {
  background: linear-gradient(135deg, var(--cyan), #8b5cf6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.home-sub { font-size: 13px; color: var(--text-2); margin: 0 0 16px; }
.home-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
/* Bağlan butonları */
.home-btn-jarvis, .home-btn-friday {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 28px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.3px;
  cursor: pointer; border: none; transition: all .25s;
  position: relative; overflow: hidden;
}
.home-btn-jarvis {
  background: linear-gradient(135deg, #00d4ff, #0088cc);
  color: #001218;
  box-shadow: 0 4px 20px rgba(0,212,255,0.5);
}
.home-btn-jarvis:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(0,212,255,0.7); }
.home-btn-friday {
  background: linear-gradient(135deg, #c084fc, #a855f7);
  color: #0f0020;
  box-shadow: 0 4px 20px rgba(192,132,252,0.5);
}
.home-btn-friday:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(192,132,252,0.7); }
.hba-orb {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  animation: corePulse 1.5s ease-in-out infinite;
}
.hba-orb-j { background: rgba(0,40,80,0.6); box-shadow: 0 0 6px rgba(0,40,80,0.8); }
.hba-orb-f { background: rgba(40,0,80,0.6); box-shadow: 0 0 6px rgba(40,0,80,0.8); }
.hba-arrow { margin-left: 2px; font-size: 14px; }

.home-btn-primary {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 22px;
  background: linear-gradient(135deg, var(--cyan), #0088bb);
  color: #001218; border-radius: 24px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
  box-shadow: 0 4px 16px var(--cyan-glow);
  cursor: pointer; border: none; transition: all .2s;
}
.home-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px var(--cyan-glow); }
.home-btn-sec {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 20px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text-1); border-radius: 24px;
  font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .2s;
}
.home-btn-sec:hover { border-color: var(--cyan-border); color: var(--cyan); }

/* Feature cards */
.home-features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; width: 100%; max-width: 480px;
}
.home-feat-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px; padding: 14px 12px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; transition: all .2s;
}
.home-feat-card:hover {
  background: var(--cyan-soft); border-color: var(--cyan-border);
  transform: translateY(-2px);
}
.hfc-icon { font-size: 20px; flex-shrink: 0; }
.home-feat-card strong { display: block; font-size: 12px; color: var(--text-0); font-weight: 600; }
.home-feat-card small { display: block; font-size: 10px; color: var(--text-3); margin-top: 2px; }

/* User row */
.home-user-row {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; padding: 12px 16px;
  width: 100%; max-width: 480px;
}
.home-user-avatar {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), #0066bb);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #001218;
  flex-shrink: 0;
}
.home-user-name { font-size: 14px; font-weight: 600; color: var(--text-0); }
.home-user-sub { font-size: 11px; color: var(--text-3); }
.home-logout-btn {
  margin-left: auto; padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.1); border-radius: 10px;
  color: var(--text-2); font-size: 12px;
  cursor: pointer; transition: all .15s;
  background: transparent;
}
.home-logout-btn:hover { border-color: var(--red); color: var(--red); }

/* Home mobil */
@media (max-width: 480px) {
  .home-features { grid-template-columns: repeat(2, 1fr); }
  .home-title { font-size: 22px; }
}

/* ── Auth mobil ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .atn-links { display: none; }
  .auth-orb-wrap { display: none; }
  .auth-hero { display: none; }
  .auth-body { justify-content: center; }
  .auth-form-side { flex: 1; max-width: 400px; padding: 20px; }
  .auth-card { max-width: 100%; }
  .atn-start-btn span { display: none; }
}
@media (max-width: 1100px) {
  .auth-hero-title { font-size: 32px; }
  .ao-feat { display: none; }
  .auth-orb-wrap { flex: 0.7; }
}

@media (max-width: 900px) {
  :root { --nav-w: 160px; --clp-w: 220px; }
}
@media (max-width: 768px) {
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    transform: translateX(-100%);
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
    width: calc(var(--nav-w) + var(--clp-w));
    will-change: transform;
    -webkit-overflow-scrolling: touch;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar.collapsed { transform: translateX(-100%); }

  .sidebar-backdrop.show {
    display: block;
    animation: fadeIn 0.2s;
  }

  .ht-model { display: none; }
  .welcome-suggestions { grid-template-columns: 1fr; }
  .welcome-screen h2 { font-size: 22px; }
  .welcome-screen p { font-size: 13px; }
  .msg-content { font-size: 14.5px; }

  /* Mobil: model dropdown yukarı aç, tam genişlik */
  .model-dropdown {
    left: 0; right: 0;
    max-width: 100%;
    border-radius: 14px 14px 0 0;
    bottom: 100%;
  }

  /* Mobil: chat input klavye kaydırması */
  .chat-input-wrap { padding-bottom: env(safe-area-inset-bottom, 8px); }

  /* Mobil: mesaj input daha büyük dokunma alanı */
  .ci-btn { width: 40px; height: 40px; }
  .ci-model { max-width: 80px; }

  /* Mobil: sidebar item büyük dokunma alanı */
  .sidebar-item, .sidebar-quick { min-height: 44px; }

  /* Mobil: plan cards dikey */
  .plan-cards { grid-template-columns: 1fr; }
}

@media (min-width: 769px) {
  .sidebar-backdrop { display: none !important; }
}

/* ── Sohbette resim ──────────────────────────────────────── */
.msg-image-wrap {
  margin-top: 10px;
}
.msg-image-wrap img {
  max-width: 320px;
  max-height: 320px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--bg-3);
  display: block;
  cursor: zoom-in;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--bg-2);
}
.msg-image-wrap img.expanded {
  max-width: 100%;
  max-height: 600px;
  cursor: zoom-out;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

/* ════════════════════════════════════════════════════════════
   KUPON ANALIZ
   ════════════════════════════════════════════════════════════ */
.kupon-tab-btn {
  padding: 6px 12px;
  background: var(--bg-2);
  border: 1px solid var(--bg-3);
  color: var(--text-2);
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.kupon-tab-btn.active {
  background: var(--cyan-soft);
  border-color: var(--cyan);
  color: var(--cyan);
}
.kupon-tab-btn:active { transform: scale(0.95); }

.league-filter {
  padding: 8px 16px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex-wrap: nowrap;
  border-bottom: 1px solid var(--bg-2);
  scrollbar-width: none;
}
.league-filter::-webkit-scrollbar { display: none; }
.league-btn {
  flex-shrink: 0;
  padding: 5px 11px;
  background: var(--bg-2);
  border: 1px solid var(--bg-3);
  color: var(--text-2);
  border-radius: 14px;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.league-btn.active {
  background: var(--cyan-soft);
  border-color: var(--cyan);
  color: var(--cyan);
}

.kupon-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.match-card {
  background: var(--bg-1);
  border: 1px solid var(--bg-3);
  border-radius: 14px;
  padding: 14px 16px;
  transition: all 0.15s;
}
.match-card:hover { border-color: var(--cyan-border); }

.match-league {
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.match-team {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-0);
  text-align: center;
}
.match-team.home { text-align: right; }
.match-team.away { text-align: left; }

.match-score {
  flex-shrink: 0;
  padding: 6px 14px;
  background: var(--bg-2);
  border: 1px solid var(--bg-3);
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-0);
  text-align: center;
  min-width: 60px;
  font-family: 'SF Pro Display', monospace;
}
.match-score.live {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 8px rgba(255,85,86,0.3);
}

.match-time {
  font-size: 11px;
  color: var(--text-3);
  text-align: center;
  margin-bottom: 8px;
}
.match-time.live { color: var(--red); font-weight: 600; }

.match-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.match-actions button {
  flex: 1;
  padding: 8px;
  background: var(--bg-2);
  border: 1px solid var(--bg-3);
  color: var(--text-1);
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.match-actions button:hover { border-color: var(--cyan); color: var(--cyan); }
.match-actions button.analyze-btn {
  background: rgba(0,212,255,0.08);
  border-color: var(--cyan-border);
  color: var(--cyan);
}
.match-actions button.analyze-btn:active { transform: scale(0.97); }

.analysis-box {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--cyan-border);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-1);
  line-height: 1.6;
  white-space: pre-wrap;
  animation: fadeIn 0.3s;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.standings-table th {
  padding: 8px 6px;
  text-align: left;
  color: var(--text-3);
  font-weight: 600;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--bg-2);
}
.standings-table td {
  padding: 9px 6px;
  color: var(--text-1);
  border-bottom: 1px solid var(--bg-2);
}
.standings-table tr:hover td { background: var(--bg-2); }
.standings-table .pos { color: var(--text-3); font-size: 11px; width: 24px; }
.standings-table .team-name { font-weight: 500; color: var(--text-0); }
.standings-table .pts { font-weight: 700; color: var(--cyan); }
.standings-table tr.top-4 td { border-left: 2px solid var(--cyan); }
.standings-table tr.relegation td { border-left: 2px solid var(--red); }

.kupon-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-3);
  font-size: 13px;
}
.kupon-loading::after {
  content: '';
  display: block;
  width: 32px; height: 32px;
  border: 2px solid var(--bg-3);
  border-top-color: var(--cyan);
  border-radius: 50%;
  margin: 14px auto 0;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Admin kullanıcı yönetimi */
.user-manage-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-3);
}
.user-manage-row:last-child { border-bottom: none; }
.um-name { flex: 1; font-size: 13px; color: var(--text-0); }
.um-badges { display: flex; gap: 4px; flex-wrap: wrap; }
.um-badge {
  font-size: 9px; padding: 2px 6px;
  border-radius: 6px; font-weight: 700;
  letter-spacing: 0.5px;
}
.um-badge.admin { background: rgba(251,191,36,0.15); color: var(--yellow); }
.um-badge.verified { background: rgba(74,222,128,0.15); color: var(--green); }
.um-badge.kupon { background: rgba(0,212,255,0.15); color: var(--cyan); }
.um-toggle {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: all 0.15s;
  border: 1px solid;
}
.um-toggle.give { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-soft); }
.um-toggle.revoke { border-color: var(--red); color: var(--red); background: rgba(255,85,86,0.08); }

/* ═══════════════════════════════════════════════════════
   JARVIS v2 — YENİ STİLLER
   ═══════════════════════════════════════════════════════ */

/* ── Gelişmiş animasyonlar ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(0,212,255,0.4); }
  70%  { box-shadow: 0 0 0 10px rgba(0,212,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,212,255,0); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.msg-wrap { animation: fadeInUp 0.25s ease both; }
.content-view.active { animation: fadeIn 0.2s ease both; }

/* ── Typing dots animasyonu ── */
@keyframes blink {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}
.typing-dots { display: inline-flex; gap: 4px; align-items: center; padding: 4px 0; }
.typing-dots span {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--cyan);
  animation: blink 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

/* ── JARVIS Thinking / Loading Indicator ── */
.jarvis-thinking {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.thinking-dots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.thinking-dots span {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: thinkPulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(0, 212, 255, 0.5);
}
.thinking-dots span:nth-child(2) { animation-delay: 0.2s; background: rgba(0,212,255,0.75); }
.thinking-dots span:nth-child(3) { animation-delay: 0.4s; background: rgba(0,212,255,0.5); }
@keyframes thinkPulse {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.75); }
  40%            { opacity: 1;    transform: scale(1.15);  }
}
.thinking-label {
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.5px;
  animation: thinkFade 2s ease-in-out infinite;
}
@keyframes thinkFade {
  0%, 100% { opacity: 0.45; }
  50%       { opacity: 1;    }
}

/* ── Mesaj animasyonu geliştirildi ── */
.msg-content { line-height: 1.65; }
.msg-wrap.bot .msg-content { color: var(--text-1); }
.msg-wrap.user .msg-body { background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(0,212,255,0.04)); border: 1px solid rgba(0,212,255,0.15); border-radius: 12px 12px 2px 12px; padding: 10px 14px; }

/* ── Kod Bloğu (ChatGPT tarzı) ── */
.code-block {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  margin: 10px 0;
  overflow: hidden;
  font-size: 13px;
  animation: fadeIn 0.2s ease;
}
.cb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cb-lang {
  font-size: 11px;
  color: var(--text-3);
  font-family: monospace;
  letter-spacing: 0.5px;
  text-transform: lowercase;
}
.cb-copy {
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  color: var(--text-2);
  font-size: 11px;
  padding: 3px 9px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.cb-copy:hover { background: rgba(255,255,255,0.07); color: var(--text-0); }
.cb-pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
  font-size: 12.5px;
  line-height: 1.6;
  color: #e6edf3;
  tab-size: 2;
}
.cb-pre code { background: none; padding: 0; font-size: inherit; }

/* Syntax highlight renkleri */
.sh-kw     { color: #ff7b72; }   /* keyword - kırmızı */
.sh-str    { color: #a5d6ff; }   /* string - mavi */
.sh-comment{ color: #6e7681; font-style: italic; }
.sh-num    { color: #79c0ff; }   /* number - açık mavi */
.sh-const  { color: #e3b341; }   /* constant - sarı */
.sh-fn     { color: #d2a8ff; }   /* function - mor */

.inline-code {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: monospace;
  font-size: 0.88em;
  color: #a5d6ff;
}

/* ── Model Dropdown — chat input üstünden açılır ── */
.chat-input-wrap { position: relative; }
.model-dropdown {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  background: var(--bg-2);
  border: 1px solid var(--bg-3);
  border-radius: 14px;
  min-width: 270px;
  max-width: 340px;
  max-height: 420px;
  overflow-y: auto;
  z-index: 300;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
  animation: slideUpIn 0.18s cubic-bezier(0.16,1,0.3,1);
}
@keyframes slideUpIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Model Pill (mic yanı küçük buton) ── */
.ci-model {
  display: flex; align-items: center; gap: 3px;
  padding: 0 9px;
  height: 36px;
  width: auto; min-width: 48px; max-width: 110px;
  background: var(--bg-2);
  border: 1px solid var(--bg-3);
  border-radius: 10px;
  font-size: 11px; font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.2px;
  white-space: nowrap; overflow: hidden;
  flex-shrink: 0;
  transition: all 0.15s;
}
.ci-model:hover { background: var(--bg-3); color: var(--cyan); border-color: var(--cyan-border); }
.ci-model:active { transform: scale(0.95); }
#model-pill-label {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 80px;
}
.mpill-arrow { font-size: 8px; opacity: 0.45; flex-shrink: 0; margin-left: 1px; }

/* Friday pill */
[data-char="friday"] .ci-model { border-color: rgba(192,132,252,0.2); border-radius: 14px; }
[data-char="friday"] .ci-model:hover { border-color: rgba(192,132,252,0.4); color: var(--cyan); background: rgba(192,132,252,0.08); }
[data-char="friday"] .model-dropdown { border-color: rgba(192,132,252,0.2); border-radius: 18px; }

/* Premium lock badge */
.md-item-locked {
  opacity: 0.5; cursor: not-allowed;
}
.md-item-locked:hover { background: transparent !important; }
.md-lock-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 9px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--yellow);
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: 8px;
  padding: 1px 6px;
  margin-left: 6px;
}
.md-free-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 9px; font-weight: 600;
  color: var(--green);
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.25);
  border-radius: 8px;
  padding: 1px 6px;
  margin-left: 6px;
}
.md-item {
  padding: 11px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--bg-3);
  transition: background 0.12s;
}
.md-item:last-child { border-bottom: none; }
.md-item:hover { background: rgba(0,212,255,0.06); }
.md-item.active { background: rgba(0,212,255,0.08); }
.md-name { font-size: 13px; font-weight: 600; color: var(--text-0); }
.md-item.active .md-name { color: var(--cyan); }
.md-desc { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* ── Dosya Preview ── */
.file-preview {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(0,212,255,0.07);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 8px;
  font-size: 12px;
  color: var(--cyan);
  margin: 6px 8px 0;
  animation: fadeIn 0.15s ease;
}
#file-preview-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Görsel Genişleme ── */
.msg-image-wrap {
  margin: 10px 0;
  border-radius: 10px;
  overflow: hidden;
  display: inline-block;
  max-width: 100%;
}
.msg-image-wrap img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 10px;
  cursor: zoom-in;
  transition: all 0.25s ease;
  display: block;
}
.msg-image-wrap img.expanded {
  max-height: 90vh;
  cursor: zoom-out;
}

/* ── Auth screen animasyonları ── */
.auth-logo { animation: fadeInUp 0.5s ease both; }
/* auth-form display:none ve animation zaten yukarıda tanımlı — çakışma önlemek için burada tekrar yok */
.logo-ring {
  animation: pulseRing 3s ease-in-out infinite;
}

/* ── Sidebar item hover glow ── */
.sidebar-item:hover {
  background: rgba(0,212,255,0.06);
  border-left: 2px solid var(--cyan);
  padding-left: 12px;
  transition: all 0.15s ease;
}
.sidebar-item { transition: all 0.15s ease; border-left: 2px solid transparent; }

/* ── Mesaj streaming cursor ── */
.streaming::after {
  content: '▋';
  display: inline-block;
  animation: blink 0.8s infinite;
  color: var(--cyan);
  margin-left: 2px;
}

/* ── Kart hover efektleri ── */
.setting-row { transition: border-color 0.2s ease, background 0.2s ease; }
.setting-row:hover { background: rgba(255,255,255,0.015); }

/* ── Header title tıklanabilir ── */
.header-title:hover .ht-model { color: var(--cyan); }
.header-title { transition: opacity 0.15s; user-select: none; }

/* ── Welcome suggestions animasyon ── */
.welcome-suggestions button {
  transition: all 0.15s ease;
  animation: fadeInUp 0.3s ease both;
}
.welcome-suggestions button:nth-child(1) { animation-delay: 0.05s; }
.welcome-suggestions button:nth-child(2) { animation-delay: 0.1s; }
.welcome-suggestions button:nth-child(3) { animation-delay: 0.15s; }
.welcome-suggestions button:nth-child(4) { animation-delay: 0.2s; }
.welcome-suggestions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,212,255,0.15);
}

/* ── PC Durumu paneli glow ── */
.jarvis-status-panel { transition: all 0.2s ease; }
.jsp-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  display: inline-block;
  animation: pulse-ring 2s infinite;
}

/* ── Copyright ── */
.auth-copyright {
  margin-top: 10px;
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.8px;
  opacity: 0.6;
  text-align: center;
}
.sidebar-copyright {
  text-align: center;
  font-size: 9px;
  color: var(--text-3);
  letter-spacing: 0.8px;
  opacity: 0.45;
  padding: 8px 0 4px;
}

/* ── Scroll bar güzelleştir ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ════════════════════════════════════════════════════════════
   PREMIUM PANEL
   ════════════════════════════════════════════════════════════ */
.sidebar-item-premium {
  border-top: 1px solid rgba(251,191,36,0.15);
  margin-top: 4px;
}
.sidebar-item-premium:hover {
  background: rgba(251,191,36,0.07) !important;
  border-left-color: var(--yellow) !important;
}
.si-badge-premium {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #000;
  font-size: 9px; font-weight: 700;
  padding: 2px 6px; border-radius: 8px;
  letter-spacing: 0.5px;
}
[data-char="friday"] .si-badge-premium {
  background: linear-gradient(135deg, #c084fc, #a855f7);
  color: #fff;
}
.tier-badge-header {
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  padding: 4px 12px; border-radius: 20px;
}

.premium-content {
  flex: 1; overflow-y: auto;
  padding: 24px 20px;
  display: flex; flex-direction: column; gap: 24px;
}

.premium-hero {
  text-align: center; padding: 16px 0;
}
.premium-hero h3 {
  font-family: 'Orbitron', monospace;
  font-size: 18px; letter-spacing: 3px;
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan-glow);
  margin-bottom: 8px;
}
.premium-hero p { font-size: 13px; color: var(--text-2); line-height: 1.6; }

.plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.plan-card {
  background: var(--bg-1);
  border: 1px solid var(--bg-3);
  border-radius: 18px;
  padding: 24px 20px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
  transition: all 0.25s;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.plan-card.plan-current {
  border-color: var(--green);
  background: linear-gradient(135deg, rgba(74,222,128,0.05), var(--bg-1));
}
.plan-card.plan-popular {
  border-color: var(--cyan);
  background: linear-gradient(135deg, rgba(0,212,255,0.06), var(--bg-1));
}
.plan-card.plan-enterprise {
  border-color: rgba(251,191,36,0.4);
  background: linear-gradient(135deg, rgba(251,191,36,0.04), var(--bg-1));
}
[data-char="friday"] .plan-card.plan-popular {
  border-color: var(--cyan);
  background: linear-gradient(135deg, rgba(192,132,252,0.07), var(--bg-1));
}

.plan-badge {
  display: inline-block;
  font-size: 9px; font-weight: 700; letter-spacing: 1px;
  padding: 3px 10px; border-radius: 20px;
  align-self: flex-start;
  text-transform: uppercase;
}
.plan-badge-free    { background: rgba(74,222,128,0.15); color: var(--green); border: 1px solid rgba(74,222,128,0.3); }
.plan-badge-popular { background: rgba(0,212,255,0.12);  color: var(--cyan);  border: 1px solid var(--cyan-border); }
.plan-badge-ent     { background: rgba(251,191,36,0.12); color: var(--yellow);border: 1px solid rgba(251,191,36,0.3); }
[data-char="friday"] .plan-badge-popular { background: rgba(192,132,252,0.12); color: #c084fc; border-color: rgba(192,132,252,0.3); }

.plan-name {
  font-family: 'Orbitron', monospace;
  font-size: 14px; font-weight: 700; letter-spacing: 2px;
  color: var(--text-0);
}
.plan-price {
  display: flex; align-items: baseline; gap: 4px;
}
.plan-price-num {
  font-size: 32px; font-weight: 900;
  color: var(--text-0); letter-spacing: -1px;
}
.plan-price-unit { font-size: 12px; color: var(--text-3); }
.plan-price-free    { font-size: 22px; font-weight: 700; color: var(--green); }
.plan-price-contact { font-size: 18px; font-weight: 700; color: var(--yellow);
                      letter-spacing: 0.5px; }

.plan-features {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.plan-features li {
  font-size: 12px; color: var(--text-2);
  display: flex; align-items: flex-start; gap: 8px;
  line-height: 1.4;
}
.plan-features li::before {
  content: '✓';
  color: var(--green); font-weight: 700;
  flex-shrink: 0; margin-top: 1px;
}
.plan-card.plan-popular .plan-features li::before { color: var(--cyan); }
.plan-card.plan-enterprise .plan-features li::before { color: var(--yellow); }

.plan-btn {
  margin-top: 4px;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; border: none;
  transition: all 0.2s;
}
.plan-btn-free    { background: var(--bg-3); color: var(--text-2); cursor: default; }
.plan-btn-premium { background: linear-gradient(135deg, var(--cyan), #0099bb); color: #001218;
                    box-shadow: 0 4px 16px var(--cyan-glow); }
.plan-btn-premium:hover { box-shadow: 0 6px 24px var(--cyan-glow); transform: scale(1.02); }
.plan-btn-ent     { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1a0800;
                    box-shadow: 0 4px 16px rgba(251,191,36,0.3); }
.plan-btn-ent:hover { box-shadow: 0 6px 24px rgba(251,191,36,0.45); transform: scale(1.02); }

[data-char="friday"] .plan-btn-premium {
  background: linear-gradient(135deg, #c084fc, #a855f7);
  color: #0f0020;
  box-shadow: 0 4px 16px rgba(192,132,252,0.4);
}

.plan-contact {
  text-align: center; font-size: 11px; color: var(--text-3);
  padding: 8px 0;
}
.plan-contact a { color: var(--cyan); text-decoration: none; }

/* Admin fiyat düzenleme */
.plan-admin-edit {
  background: rgba(251,191,36,0.06);
  border: 1px dashed rgba(251,191,36,0.25);
  border-radius: 12px;
  padding: 16px;
}
.plan-admin-edit h4 {
  font-size: 11px; letter-spacing: 1px; color: var(--yellow);
  margin-bottom: 12px; text-transform: uppercase;
}
.plan-price-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.plan-price-row label { font-size: 12px; color: var(--text-2); min-width: 80px; }
.plan-price-row input {
  padding: 7px 10px; background: var(--bg-2);
  border: 1px solid var(--bg-3); border-radius: 8px;
  color: var(--text-0); font-size: 13px; width: 100px;
}

/* ════════════════════════════════════════════════════════════
   FRIDAY THEME — Mor/Rose Gold, Glassmorphism, Akıcı Animasyon
   ════════════════════════════════════════════════════════════ */
[data-char="friday"] {
  --bg-0: #07040f;
  --bg-1: #0e0920;
  --bg-2: #160e32;
  --bg-3: #201445;
  --bg-4: #2e1d60;

  --cyan:        #c084fc;
  --cyan-glow:   rgba(192, 132, 252, 0.55);
  --cyan-soft:   rgba(192, 132, 252, 0.09);
  --cyan-border: rgba(192, 132, 252, 0.22);

  --green:  #34d399;
  --red:    #fb7185;
  --yellow: #f9a8d4;

  --shadow-glow: 0 0 40px rgba(192,132,252,0.35);

  /* Friday'e özel: rose gold tonu */
  --fri-rose:    #f472b6;
  --fri-emerald: #34d399;
}

/* Friday body arkaplanı — dalgalı morumsu */
[data-char="friday"] body {
  background:
    radial-gradient(ellipse 900px 500px at 20% 0%, rgba(192,132,252,0.07), transparent 65%),
    radial-gradient(ellipse 600px 400px at 80% 100%, rgba(244,114,182,0.05), transparent 55%),
    radial-gradient(ellipse 500px 300px at 50% 50%, rgba(52,211,153,0.02), transparent 60%),
    var(--bg-0);
}

/* Friday auth background — yumuşak mesh */
[data-char="friday"] .auth-grid {
  background-image:
    linear-gradient(var(--cyan-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--cyan-border) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Friday sidebar — cam efekti */
[data-char="friday"] .sidebar {
  background: rgba(14, 9, 32, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right-color: rgba(192,132,252,0.14);
}

/* Friday header — cam */
[data-char="friday"] .main-header {
  background: rgba(14, 9, 32, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(192,132,252,0.12);
}

/* Friday chat input — yuvarlak cam */
[data-char="friday"] .chat-input-box {
  border-radius: 28px;
  background: rgba(22, 14, 50, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(192,132,252,0.2);
}
[data-char="friday"] .chat-input-box:focus-within {
  border-color: var(--fri-rose);
  box-shadow: 0 0 0 3px rgba(244,114,182,0.12), 0 8px 32px rgba(0,0,0,0.4);
}

/* Friday butonlar — oval kenar */
[data-char="friday"] .btn-primary {
  border-radius: 20px;
  background: linear-gradient(135deg, #c084fc, #a855f7);
  box-shadow: 0 4px 20px rgba(192,132,252,0.4);
}
[data-char="friday"] .btn-primary:hover {
  box-shadow: 0 6px 28px rgba(192,132,252,0.55), 0 0 18px var(--cyan);
}
[data-char="friday"] .new-chat-btn {
  border-radius: 20px;
  background: linear-gradient(135deg, #c084fc, #a855f7);
  color: #0f0020;
  box-shadow: 0 2px 12px rgba(192,132,252,0.3);
}
[data-char="friday"] .new-chat-btn:hover {
  box-shadow: 0 4px 20px rgba(192,132,252,0.5);
}
[data-char="friday"] .ci-send {
  border-radius: 50%;
  background: linear-gradient(135deg, #f472b6, #c084fc);
  color: #0f0020;
}
[data-char="friday"] .ci-send:hover {
  box-shadow: 0 0 16px rgba(244,114,182,0.6);
}
[data-char="friday"] .ci-btn { border-radius: 12px; }
[data-char="friday"] .hamburger, [data-char="friday"] .hdr-btn { border-radius: 12px; }

/* Friday sidebar item hover */
[data-char="friday"] .sidebar-item:hover {
  background: rgba(192,132,252,0.07);
  border-left-color: var(--fri-rose);
}

/* Friday jarvis-status-panel cam */
[data-char="friday"] .jarvis-status-panel {
  background: linear-gradient(135deg, rgba(192,132,252,0.06), rgba(0,0,0,0));
  border-color: rgba(192,132,252,0.14);
  border-radius: 16px;
}

/* Friday mesaj bot balonu */
[data-char="friday"] .msg-wrap.bot {
  background: rgba(192,132,252,0.025);
}
[data-char="friday"] .msg-wrap.bot .msg-avatar {
  background: linear-gradient(135deg, #c084fc, #f472b6);
  box-shadow: 0 2px 12px rgba(192,132,252,0.35);
}
[data-char="friday"] .msg-wrap.user .msg-body {
  background: linear-gradient(135deg, rgba(192,132,252,0.08), rgba(192,132,252,0.04));
  border-color: rgba(192,132,252,0.16);
  border-radius: 12px 12px 2px 12px;
}

/* Friday streaming cursor rengi */
[data-char="friday"] .msg-content.streaming::after { color: var(--fri-rose); }
[data-char="friday"] .streaming::after { color: var(--fri-rose); }

/* Friday thinking dots */
[data-char="friday"] .thinking-dots span {
  background: var(--cyan);
  box-shadow: 0 0 6px rgba(192,132,252,0.5);
}
[data-char="friday"] .thinking-dots span:nth-child(2) { background: rgba(192,132,252,0.75); }
[data-char="friday"] .thinking-dots span:nth-child(3) { background: rgba(192,132,252,0.5); }

/* Friday welcome suggestions */
[data-char="friday"] .welcome-suggestions button {
  border-radius: 16px;
}
[data-char="friday"] .welcome-suggestions button:hover {
  background: rgba(192,132,252,0.08);
  border-color: rgba(192,132,252,0.25);
  box-shadow: 0 4px 16px rgba(192,132,252,0.15);
}

/* Friday modal */
[data-char="friday"] .modal-card {
  border-radius: 20px;
  background: rgba(22,14,50,0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(192,132,252,0.2);
}

/* Friday dalga animasyonu — auth screen */
@keyframes fridayWave {
  0%   { transform: scale(1) rotate(0deg); opacity: 0.6; }
  50%  { transform: scale(1.08) rotate(180deg); opacity: 0.9; }
  100% { transform: scale(1) rotate(360deg); opacity: 0.6; }
}
@keyframes fridayPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(192,132,252,0.4), inset 0 0 30px rgba(192,132,252,0.15); }
  50%       { box-shadow: 0 0 55px var(--cyan), inset 0 0 55px rgba(192,132,252,0.3); }
}
[data-char="friday"] .logo-ring {
  animation: fridayPulse 3s ease-in-out infinite;
  border-color: var(--cyan);
}
[data-char="friday"] .auth-form h2 { color: var(--cyan); }
[data-char="friday"] .ht-name { color: var(--cyan); }

/* Settings'teki karakter switch butonu */
.cc-switch-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid var(--cyan-border);
  background: var(--cyan-soft);
  color: var(--cyan);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
}
.cc-switch-btn:hover {
  background: rgba(0,212,255,0.14);
  box-shadow: 0 0 12px var(--cyan-glow);
}
[data-char="friday"] .cc-switch-btn {
  border-color: rgba(192,132,252,0.25);
  background: rgba(192,132,252,0.09);
  color: var(--cyan);
}

/* ════════════════════════════════════════════════════════════
   CHARACTER SELECTION SCREEN
   ════════════════════════════════════════════════════════════ */
#char-screen {
  position: fixed; inset: 0; z-index: 9000;
  align-items: center; justify-content: center;
  background: var(--bg-0);
  flex-direction: column;
  overflow: hidden;
}
#char-screen.active { display: flex; }

.char-bg-mesh {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,212,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  animation: gridScroll 80s linear infinite;
}

.char-select-wrap {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 40px;
  padding: 20px;
  width: 100%; max-width: 860px;
}

.char-select-header { text-align: center; }
.char-select-title {
  font-family: 'Orbitron', monospace;
  font-size: 11px; letter-spacing: 6px;
  color: var(--cyan); text-transform: uppercase;
  margin-bottom: 8px;
  text-shadow: 0 0 10px var(--cyan-glow);
}
.char-select-sub {
  font-size: 22px; font-weight: 700;
  color: var(--text-0);
  letter-spacing: -0.3px;
}

.char-cards {
  display: flex; gap: 24px; justify-content: center;
  flex-wrap: wrap; width: 100%;
}

.char-card {
  flex: 1; min-width: 260px; max-width: 340px;
  background: var(--bg-1);
  border: 1px solid var(--bg-3);
  border-radius: 20px;
  padding: 32px 24px;
  display: flex; flex-direction: column; align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  position: relative;
  overflow: hidden;
}
.char-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.04), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.char-card:hover {
  border-color: var(--cyan-border);
  box-shadow: 0 0 0 1px var(--cyan-border), 0 16px 48px rgba(0,0,0,0.5);
  transform: translateY(-6px);
}
.char-card:hover::before { opacity: 1; }

.char-card-friday {
  background: rgba(14,9,32,0.9);
  border-color: rgba(192,132,252,0.18);
}
.char-card-friday::before {
  background: linear-gradient(135deg, rgba(192,132,252,0.06), rgba(244,114,182,0.03) 60%);
}
.char-card-friday:hover {
  border-color: rgba(192,132,252,0.4);
  box-shadow: 0 0 0 1px rgba(192,132,252,0.3), 0 16px 48px rgba(0,0,0,0.5);
}

/* Character orb */
.cc-orb {
  width: 100px; height: 100px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.cc-orb-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 28px var(--cyan-glow), inset 0 0 28px rgba(0,212,255,0.15);
  animation: pulseRing 3s ease-in-out infinite;
}
.cc-orb-ring::before {
  content: ''; position: absolute; inset: 12px;
  border: 1px dashed rgba(0,212,255,0.35);
  border-radius: 50%;
  animation: spinRing 12s linear infinite;
}
.cc-orb-core {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 20px var(--cyan), 0 0 40px var(--cyan-glow);
  animation: corePulse 2s ease-in-out infinite;
}
.cc-orb-scan {
  position: absolute; inset: 0;
  border-radius: 50%;
  overflow: hidden;
}
.cc-orb-scan::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.2), transparent);
  animation: scanLine 3s linear infinite;
}
@keyframes scanLine {
  to { left: 200%; }
}

/* Friday orb */
.cc-orb-friday .cc-orb-ring {
  border-color: #c084fc;
  box-shadow: 0 0 28px rgba(192,132,252,0.5), inset 0 0 28px rgba(192,132,252,0.15);
  animation: fridayPulse 3s ease-in-out infinite;
}
.cc-orb-friday .cc-orb-ring::before {
  border-color: rgba(192,132,252,0.35);
}
.cc-orb-friday .cc-orb-core {
  background: linear-gradient(135deg, #c084fc, #f472b6);
  box-shadow: 0 0 20px #c084fc, 0 0 40px rgba(192,132,252,0.5);
}
.cc-orb-wave {
  position: absolute; inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(192,132,252,0.2);
  animation: waveExpand 3s ease-out infinite;
}
@keyframes waveExpand {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

.cc-name {
  font-family: 'Orbitron', monospace;
  font-size: 17px; font-weight: 900;
  letter-spacing: 4px;
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan-glow);
}
.cc-name-friday { color: #c084fc; text-shadow: 0 0 10px rgba(192,132,252,0.5); }

.cc-title {
  font-size: 9px; letter-spacing: 1.2px;
  color: var(--text-3);
  text-align: center; line-height: 1.5;
  text-transform: uppercase;
  max-width: 200px;
}
.cc-desc {
  font-size: 13px; color: var(--text-2);
  text-align: center;
  letter-spacing: 0.3px;
}

.cc-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: center;
}
.cc-tag {
  padding: 3px 10px;
  border: 1px solid var(--cyan-border);
  border-radius: 20px;
  background: var(--cyan-soft);
  color: var(--cyan);
  font-size: 10px; letter-spacing: 0.5px;
  font-weight: 500;
}
.cc-tag-fri {
  border-color: rgba(192,132,252,0.25);
  background: rgba(192,132,252,0.08);
  color: #c084fc;
}

.cc-select-btn {
  margin-top: 8px;
  padding: 11px 32px;
  background: linear-gradient(180deg, var(--cyan), #0099bb);
  color: #001218;
  border-radius: 12px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 2px;
  box-shadow: 0 4px 20px var(--cyan-glow);
  transition: all 0.2s;
  cursor: pointer; border: none;
}
.cc-select-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 28px var(--cyan-glow);
}
.cc-select-btn-fri {
  background: linear-gradient(135deg, #c084fc, #a855f7);
  color: #0f0020;
  box-shadow: 0 4px 20px rgba(192,132,252,0.4);
}
.cc-select-btn-fri:hover {
  box-shadow: 0 6px 28px rgba(192,132,252,0.55);
}

.char-select-note {
  font-size: 11px; color: var(--text-3);
  letter-spacing: 0.5px;
}

/* Karakter geçiş animasyonu */
@keyframes charThemeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
html.char-transitioning * { animation-play-state: paused !important; }
html { transition: background 0.4s ease, color 0.2s ease; }

