/* ═══════════════════════════════════════════════════════
   YouBudget — Fintech Premium Theme v6
   Light Lavender · Glassmorphism · Indigo-Purple
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── 1. Design Tokens ──────────────────────────────── */
:root, [data-theme="light"] {
  /* Fon: görseldeki açık lavanta-mavi arka plan */
  --bg:      #eef0fb;
  --bg2:     #e4e7f8;
  --panel:   rgba(255, 255, 255, 0.98);
  --panel2:  rgba(240, 242, 255, 0.96);
  --glass:   rgba(255, 255, 255, 0.80);
  --line:    rgba(99, 91, 220, 0.15);
  --line2:   rgba(99, 91, 220, 0.07);
  --fg:      #16125a;
  --muted:   #6b67a8;

  /* Palette — görseldeki indigo-violet tonları */
  --neon:        #5b5bd6;
  --neon-light:  #8b85f0;
  --neon-dark:   #3730a3;
  --ok:          #059669;
  --ok-light:    rgba(5, 150, 105, 0.12);
  --bad:         #be123c;
  --bad-light:   rgba(190, 18, 60, 0.12);
  --warn:        #7c3aed;

  --alex-purple:  #5b5bd6;
  --alex-blue:    #3730a3;
  --alex-red:     #be123c;
  --alex-magenta: #9d174d;

  /* Gradients — görseldeki koyu mor-lacivert geçişi */
  --grad-primary:  linear-gradient(135deg, #3730a3 0%, #5b5bd6 50%, #7c3aed 100%);
  --grad-danger:   linear-gradient(135deg, #be123c 0%, #9d174d 45%, #5b5bd6 100%);
  --grad-soft:     linear-gradient(135deg, rgba(55,48,163,.30) 0%, rgba(91,91,214,.30) 100%);
  --alex-gradient: var(--grad-primary);

  /* Radii */
  --radius:  24px;
  --radius2: 16px;
  --radius3: 10px;

  /* Shadows */
  --shadow:        0 4px 24px rgba(91, 91, 214, 0.14);
  --shadow-lg:     0 20px 60px rgba(91, 91, 214, 0.22);
  --shadow-danger: 0 0 32px rgba(190, 18, 60, 0.38), 0 4px 20px rgba(157, 23, 77, 0.28);
}

[data-theme="dark"] {
  --bg:    #050210;
  --bg2:   #0c0620;
  --panel: rgba(14, 7, 36, 0.94);
  --panel2:rgba(20, 10, 52, 0.90);
  --glass: rgba(22, 8, 60, 0.80);
  --line:  rgba(167, 139, 250, 0.20);
  --line2: rgba(167, 139, 250, 0.10);
  --fg:    #f0eaff;
  --muted: #b8a4f8;

  --neon:       #a78bfa;
  --neon-light: #c4b5fd;
  --neon-dark:  #7c3aed;
  --ok:         #10b981;
  --ok-light:   rgba(16, 185, 129, 0.12);
  --bad:        #f43f5e;
  --bad-light:  rgba(244, 63, 94, 0.12);

  --alex-purple:  #a78bfa;
  --alex-blue:    #818cf8;
  --alex-red:     #f43f5e;
  --alex-magenta: #e879a0;

  --grad-primary:  linear-gradient(135deg, #818cf8 0%, #a78bfa 55%, #e879a0 100%);
  --grad-danger:   linear-gradient(135deg, #f43f5e 0%, #e879a0 45%, #a78bfa 100%);
  --shadow:        0 4px 28px rgba(129, 140, 248, 0.22);
  --shadow-lg:     0 20px 64px rgba(129, 140, 248, 0.30);
  --shadow-danger: 0 0 44px rgba(244, 63, 94, 0.42), 0 4px 24px rgba(232, 121, 160, 0.32);
}

/* ── 2. Base Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0 auto;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  /* Görseldeki dalgalı mor-beyaz arka plan efekti */
  background-image:
    radial-gradient(ellipse at 10% 0%,   rgba(91,91,214,.13) 0px, transparent 50%),
    radial-gradient(ellipse at 90% 5%,   rgba(124,58,237,.10) 0px, transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(55,48,163,.08)  0px, transparent 60%),
    radial-gradient(ellipse at 0%  60%,  rgba(91,91,214,.06)  0px, transparent 40%);
  background-attachment: fixed;
  color: var(--fg);
  max-width: 1200px;
  padding: 14px 14px 40px 14px;
  line-height: 1.5;
  font-size: 11px;
}
/* â”€â”€ 3. Typography â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.page-title {
  font-size: 19px;
  font-weight: 900;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.label {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.big {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--fg);
}

.tiny {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.4;
}

.hint {
  font-size: 8px;
  color: var(--muted);
  opacity: 0.7;
}

.sub {
  font-size: 8px;
  color: var(--muted);
}

.name {
  font-weight: 700;
  font-size: 11px;
  color: var(--fg);
}

.remain {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.ok {
  background: var(--ok-light);
  color: var(--ok);
  border: 1px solid rgba(5, 150, 105, .2);
  padding: 8px 12px;
  border-radius: var(--radius3);
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 11px;
}

.err {
  background: var(--bad-light);
  color: var(--bad);
  border: 1px solid rgba(190, 18, 60, .2);
  padding: 8px 12px;
  border-radius: var(--radius3);
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 11px;
}

.guide-box {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid var(--line);
  border-left: 4px solid var(--alex-blue);
  padding: 22px;
  border-radius: var(--radius2);
  margin-bottom: 34px;
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow);
  color: var(--fg);
  text-align: left;
}

.guide-box i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--grad-primary);
  color: #fff;
  border-radius: 10px;
  font-size: 16px;
  font-style: normal;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.guide-box b {
  color: var(--alex-blue);
  font-weight: 900;
  text-decoration: underline decoration-thickness(2px) underline-offset(4px) rgba(79, 70, 229, 0.3);
}

[data-theme="dark"] .guide-box {
  background: rgba(20, 10, 52, 0.6);
  border-color: rgba(167, 139, 250, 0.15);
  border-left-color: var(--neon);
}

[data-theme="dark"] .guide-box i {
  background: var(--grad-primary);
  box-shadow: 0 4px 15px rgba(167, 139, 250, 0.4);
}

[data-theme="dark"] .guide-box b {
  color: var(--neon);
  text-decoration-color: rgba(167, 139, 250, 0.3);
}

.grad-alex {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* â”€â”€ 4. Page Header â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

/* â”€â”€ 5. Logo: Transparent System â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* 
  System uses transparent_logo.png globally.
  No boxy borders or backgrounds allowed.
*/

.logo-theme-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible;
}

.dynamic-logo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  transition: opacity 0.25s;
}

.nav-logo-img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.nav-logo-img:hover {
  transform: scale(1.1);
}

.logo-nav {
  width: 32px;
  height: 32px;
}

.logo-auth {
  width: 240px;
  height: auto;
}

.logo-wrap {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent !important;
  border: none !important;
}

.logo-wrap .logo-auth {
  margin: 0 auto;
}





/* â”€â”€ 6. Main Grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 700px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* â”€â”€ 7. Greeting Card â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.greetingCard {
  background: var(--grad-primary);
  border-radius: var(--radius);
  padding: 22px 28px;
  margin-bottom: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.greetingCard::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.greetingCard::after {
  content: '';
  position: absolute;
  bottom: -70px;
  left: -25px;
  width: 240px;
  height: 240px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

.greetingCard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.greetingCard-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.greetingCard-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.greetingCard-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #fff !important;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  flex-shrink: 0;
}

/* â”€â”€ 8. Summary Row â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.summaryRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

@media (max-width: 380px) {
  .summaryRow {
    grid-template-columns: 1fr;
  }
}

.summaryBox {
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: var(--radius2);
  padding: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 12px rgba(124, 58, 237, .07);
}

[data-theme="dark"] .summaryBox {
  background: rgba(14, 7, 36, 0.95);
  border-color: rgba(129, 140, 248, 0.18);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .45);
}

.summaryBox:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* HESABIM â€” silik, sakin, arka planda */
.summaryBox--muted {
  opacity: 0.68;
  filter: saturate(0.6) brightness(0.96);
}

.summaryBox--muted .big {
  font-size: 16px;
  color: var(--muted);
}

/* BORÃ‡ â€” rahatsÄ±z edici, parlak, nabÄ±z */
.summaryBox--danger {
  background: linear-gradient(140deg, rgba(190, 18, 60, .10) 0%, rgba(157, 23, 77, .13) 100%);
  border: 1px solid rgba(190, 18, 60, .40);
  box-shadow: var(--shadow-danger);
  animation: debtPulse 3.5s ease-in-out infinite;
}

.summaryBox--danger .big {
  background: var(--grad-danger);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 24px;
}

.summaryBox--danger .label {
  color: var(--bad);
}

.summaryBox--danger .tiny {
  color: var(--bad);
  opacity: 0.75;
}

@keyframes debtPulse {

  0%,
  100% {
    box-shadow: var(--shadow-danger);
  }

  50% {
    box-shadow: 0 0 56px rgba(190, 18, 60, .54), 0 6px 36px rgba(157, 23, 77, .38);
  }
}

.accountTop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

/* â”€â”€ 9. Buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.btnMini {
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: var(--radius3);
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s;
  white-space: nowrap;
}

.btnMini:hover {
  border-color: var(--neon);
  color: var(--neon);
  background: rgba(124, 58, 237, .08);
}

.btnGhost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: var(--radius3);
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}

.btnGhost:hover {
  border-color: var(--neon);
  color: var(--neon);
}

.btn-action {
  background: var(--grad-primary);
  border: none;
  border-radius: var(--radius2);
  padding: 9px 18px;
  font-weight: 800;
  color: #fff !important;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 20px rgba(124, 58, 237, .30);
  font-size: 11px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}

.btn-action:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, .42);
}

.btn-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btnGold,
.grad-bg {
  background: var(--grad-primary) !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .15);
  border: none;
  font-weight: 800;
}

.btn-danger {
  background: linear-gradient(135deg, #be123c, #9d174d) !important;
  color: #fff !important;
  border: none;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius3);
  cursor: pointer;
  font-size: 12px;
  transition: 0.25s;
}

.btn-danger:hover {
  filter: brightness(1.12);
}

/* â”€â”€ 10. CTA Wrap â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ctaWrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.btnGold {
  flex: 1;
  min-width: 120px;
  padding: 10px 16px;
  border-radius: var(--radius2);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 22px rgba(124, 58, 237, .32);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btnGold:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(124, 58, 237, .44);
}

.voiceBtn {
  padding: 10px 16px;
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  transition: 0.3s;
  white-space: nowrap;
}

.voiceBtn:hover {
  border-color: var(--neon);
  color: var(--neon);
  background: rgba(124, 58, 237, .07);
}

/* â”€â”€ 11. Footer Nav â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.footerNav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* â”€â”€ Items Section (full-width card below balance) â”€â”€â”€â”€â”€ */
.itemsSection {
  margin-top: 20px;
}

/* â”€â”€ 12. Pill â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-weight: 700;
  font-size: 9px;
  text-decoration: none;
  transition: 0.25s;
  cursor: pointer;
  white-space: nowrap;
}

.pill:hover {
  border-color: var(--neon);
  color: var(--neon);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(124, 58, 237, .14);
}

/* â”€â”€ 13. Card / Right Panel â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.card {
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

[data-theme="dark"] .card {
  background: rgba(14, 7, 36, 0.96);
  border-color: rgba(129, 140, 248, 0.20);
  box-shadow: 0 4px 32px rgba(0, 0, 0, .40);
}

.rightCard {
  min-height: 200px;
}

.sectionTitle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.sectionTitle h2 {
  font-size: 12px;
  font-weight: 800;
  color: var(--fg);
  margin: 0;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 10px 0;
}

.toggleAll {
  text-align: center;
  margin-bottom: 8px;
}

/* â”€â”€ 14. Item List â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.item {
  display: block;
  padding: 5px 10px;
  border-radius: var(--radius2);
  border: 1.5px solid var(--line);
  background: var(--panel2);
  text-decoration: none;
  transition: 0.25s;
  color: var(--fg);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.item:hover {
  transform: translateX(3px);
  border-color: var(--neon);
}

/* Street Fighter Style Budget Bar */
.item-bar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--progress, 100%);
  z-index: -1;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s;
  opacity: 0.9;
  border-right: 2px solid rgba(255, 255, 255, 0.2);
}

.item-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, transparent 50%, rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
}

/* Alexandrite Premium Gradients */
.alex-blue .item-bar {
  background: linear-gradient(90deg, #1e40af 0%, #3b82f6 100%);
  box-shadow: inset 0 0 15px rgba(59, 130, 246, 0.4);
}

.alex-purple .item-bar {
  background: linear-gradient(90deg, #5b21b6 0%, #8b5cf6 100%);
  box-shadow: inset 0 0 15px rgba(139, 92, 246, 0.4);
}

.alex-red .item-bar {
  background: linear-gradient(90deg, #991b1b 0%, #ef4444 100%);
  box-shadow: inset 0 0 15px rgba(239, 68, 68, 0.5);
  animation: alex-pulse 2s infinite ease-in-out;
}

@keyframes alex-pulse {
  0% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.2) saturate(1.2);
  }

  100% {
    filter: brightness(1);
  }
}

.item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.item .name {
  font-weight: 700;
  font-size: 10px;
  color: #fff;
  /* Force white for maximum contrast on dark bars */
}

.item .remain {
  font-weight: 800;
  font-size: 11px;
  color: #fff;
}

.item .sub {
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
}

.item.alex-blue {
  border-color: rgba(37, 99, 235, 0.4);
}

.item.alex-purple {
  border-color: rgba(124, 58, 237, 0.4);
}

.item.alex-red {
  border-color: rgba(220, 38, 38, 0.4);
}

.pinnedRow {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.pinnedGlow {
  border-color: var(--pinBorder, var(--line)) !important;
  box-shadow: var(--pinShadow, none) !important;
  transition: 0.3s;
}

.pinnedGlow:hover {
  box-shadow: var(--pinShadow, none), 0 4px 20px rgba(124, 58, 237, .15) !important;
}

.pinBtn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius3);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-shrink: 0;
}

.pinBtn:hover {
  border-color: var(--neon);
  color: var(--neon);
}

.pinBtn.pinOn {
  border-color: var(--neon);
  color: var(--neon);
  background: rgba(124, 58, 237, .12);
}

.pinMini {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

/* â”€â”€ 15. Premium Cards & Tables â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.premium-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.premium-card:hover {
  border-color: var(--neon-light);
  transform: translateY(-2px);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 20px;
  border-bottom: 3px solid var(--neon);
  transition: 0.3s;
}

.stat-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.premium-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  overflow: hidden;
  background: var(--panel);
  margin-top: 16px;
}

.premium-table {
  width: 100%;
  border-collapse: collapse;
}

.premium-table th {
  padding: 13px 16px;
  background: var(--panel2);
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.premium-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line2);
  color: var(--fg);
  font-size: 14px;
}

.premium-table tr:last-child td {
  border-bottom: none;
}

.premium-table tr:hover td {
  background: rgba(124, 58, 237, .04);
}

/* â”€â”€ 16. Modals â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.modalBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 4, 20, 0.72);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  width: min(500px, 100%);
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.90) translateY(12px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modalTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.modalTitle {
  font-size: 14px;
  font-weight: 900;
  color: var(--fg);
  margin: 0;
}

.modalBody {
  font-size: 11px;
  color: var(--fg);
  line-height: 1.6;
}

.modalActions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* â”€â”€ 17. Forms / Inputs â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius3);
  background: var(--panel);
  color: var(--fg);
  font-size: 11px;
  font-family: inherit;
  outline: none;
  transition: 0.25s;
  appearance: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

/* Dark theme: inputs as bright panels against deep bg */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: rgba(28, 12, 68, 0.98);
  border-color: rgba(129, 140, 248, 0.28);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .30), inset 0 1px 0 rgba(255, 255, 255, .04);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .18);
  background: var(--panel);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
  background: rgba(28, 12, 68, 1);
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, .22);
}

input::placeholder {
  color: var(--muted);
  opacity: 0.65;
}

/* â”€â”€ 18. Authentication â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.auth-wrap {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  width: min(420px, 100%);
  padding: 40px 36px;
  text-align: center;
}

.auth-card .page-title {
  font-size: 22px;
  margin-bottom: 6px;
}

.login-input-group {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.login-input-group input {
  flex: 1;
  margin: 0;
}

.login-submit-btn {
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  border-radius: var(--radius3);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  transition: 0.3s;
  flex-shrink: 0;
}

.login-submit-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.05);
}

.login-full-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  margin-top: 16px;
  background: var(--grad-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius2);
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 22px rgba(124, 58, 237, .30);
  letter-spacing: 0.02em;
  font-family: inherit;
  text-align: center;
}

.login-full-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(124, 58, 237, .44);
}

/* â”€â”€ 19. Insights Section â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.insightsSection {
  margin-top: 24px;
}

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

.insightsSection-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.insightsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.insightCard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 18px;
  border-top: 3px solid var(--alex-purple);
  transition: 0.3s;
}

.insightCard:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.insightCard--info {
  border-top-color: var(--alex-blue);
}

.insightCard--warning {
  border-top-color: var(--alex-purple);
}

.insightCard--critical {
  border-top-color: var(--alex-red);
  box-shadow: 0 0 24px rgba(190, 18, 60, .13);
}

.insightCard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.insightCard-title {
  font-weight: 800;
  font-size: 14px;
  color: var(--fg);
  margin-bottom: 6px;
}

.insightCard-message {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.insightCard-time {
  font-size: 11px;
  color: var(--muted);
  opacity: 0.6;
  margin-top: 8px;
}

.severityBadge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.severityBadge--info {
  background: rgba(79, 70, 229, .12);
  color: var(--alex-blue);
}

.severityBadge--warning {
  background: rgba(124, 58, 237, .12);
  color: var(--alex-purple);
}

.severityBadge--critical {
  background: rgba(190, 18, 60, .12);
  color: var(--alex-red);
}

.btnDismiss {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: 0.2s;
  line-height: 1;
}

.btnDismiss:hover {
  background: var(--bad-light);
  color: var(--bad);
}

/* â”€â”€ 20. Floating AI: Speech Bubble + Large Button â”€â”€â”€ */

/* Bubble color constants â€” match chatBot bubble exactly */
:root {
  --bubble-bg-from: #0369a1;
  --bubble-bg-to: #2563eb;
  --bubble-tail: #1d4ed8;
  /* matches gradient end for tail triangle */
}

[data-theme="dark"] {
  --bubble-bg-from: #0369a1;
  --bubble-bg-to: #2563eb;
  --bubble-tail: #1d4ed8;
}

.ai-speech-bubble {
  position: fixed;
  /* Adjusted for smaller icon and compact design */
  bottom: 150px;
  right: 15px;
  /* Match chatBot bubble gradient */
  background: linear-gradient(135deg, var(--bubble-bg-from) 0%, var(--bubble-bg-to) 100%);
  border-radius: 14px 14px 14px 4px;
  /* sharp only bottom-right = tail side */
  padding: 8px 12px;
  font-size: 10px;
  color: #ffffff;
  max-width: 200px;
  z-index: 198;
  box-shadow: 0 4px 20px rgba(37, 99, 235, .55),
    0 1px 0 rgba(255, 255, 255, .10) inset;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: opacity 0.45s ease, transform 0.45s ease;
  line-height: 1.4;
  pointer-events: none;
}

/* Tail: points down-right toward the bot button */
.ai-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 16px;
  /* aligns over the button centre */
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 0px solid transparent;
  border-top: 8px solid var(--bubble-tail);
  filter: drop-shadow(0 2px 4px rgba(37, 99, 235, .40));
}

.ai-bubble-name {
  font-weight: 900;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.70);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.ai-bubble-msg {
  font-size: 10px;
  color: #ffffff;
  line-height: 1.4;
  font-weight: 500;
}

/* Smooth fade for rotating bubble content */
@keyframes bubbleFadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#aiSpeechMsg {
  animation: bubbleFadeIn 0.4s ease;
}

.ai-bubble-hidden {
  opacity: 0;
  transform: translateY(10px) scale(0.94);
}

/* Floating AI Wrapper (button + name label) */
.ai-float-wrap {
  position: fixed;
  bottom: 85px;
  right: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 200;
}

.ai-float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--grad-primary);
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(124, 58, 237, .52);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: floatPulse 4s ease-in-out infinite;
}

.ai-float-btn:hover {
  transform: scale(1.12) rotate(-6deg);
  box-shadow: 0 10px 32px rgba(124, 58, 237, .68);
}

/* Dynamic bot name tag below button */
.ai-float-label {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: #4f46e5;
  text-align: center;
  pointer-events: none;
  user-select: none;
  text-shadow: 0 1px 4px rgba(79, 70, 229, .22);
  white-space: nowrap;
}

[data-theme="dark"] .ai-float-label {
  color: #818cf8;
  text-shadow: 0 0 8px rgba(129, 140, 248, .40);
}

@keyframes floatPulse {

  0%,
  100% {
    box-shadow: 0 8px 36px rgba(124, 58, 237, .52);
  }

  50% {
    box-shadow: 0 8px 56px rgba(124, 58, 237, .72), 0 0 0 12px rgba(124, 58, 237, .08);
  }
}

/* â”€â”€ 21. AI: Semi-Full-Screen Center Modal â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* Slide-up entry animation */
@keyframes slideUp {
  from {
    transform: translateY(60px) scale(0.96);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Backdrop: HIDDEN by default. Shown only when .ai-visible is added. */
.ai-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 1, 14, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 300;
  display: none;
  /* <-- KEY FIX: default hidden */
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ai-modal-backdrop.ai-visible {
  display: flex;
}

.ai-modal-backdrop.ai-hidden {
  display: none;
}

.ai-modal-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: min(720px, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: slideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ai-modal-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 28px 24px;
  background: var(--grad-primary);
  color: #fff;
  flex-shrink: 0;
}

.ai-modal-hero-emoji {
  font-size: 52px;
  line-height: 1;
}

.ai-modal-hero-name {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
}

.ai-modal-hero-greet {
  font-size: 13px;
  color: rgba(255, 255, 255, .78);
  margin-top: 4px;
}

.ai-modal-close {
  margin-left: auto;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  flex-shrink: 0;
}

.ai-modal-close:hover {
  background: rgba(255, 255, 255, .32);
  transform: scale(1.1);
}

.ai-modal-insights {
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  flex-shrink: 0;
}

.ai-modal-insights-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 2px;
}

.ai-modal-strip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius3);
  border-left: 4px solid var(--neon);
  background: rgba(124, 58, 237, .07);
  transition: 0.2s;
}

.ai-modal-strip:hover {
  background: rgba(124, 58, 237, .13);
}

.ai-modal-strip.ai-strip-critical {
  border-left-color: var(--alex-red);
  background: rgba(190, 18, 60, .09);
}

.ai-modal-strip.ai-strip-warning {
  border-left-color: var(--alex-purple);
  background: rgba(124, 58, 237, .09);
}

.ai-modal-strip.ai-strip-info {
  border-left-color: var(--alex-blue);
  background: rgba(79, 70, 229, .07);
}

.ai-strip-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.ai-strip-body {
  flex: 1;
}

.ai-strip-title {
  font-weight: 800;
  font-size: 13px;
  color: var(--fg);
  margin-bottom: 3px;
}

.ai-strip-msg {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.ai-modal-divider {
  height: 1px;
  background: var(--line);
  flex-shrink: 0;
}

.ai-panel-send {
  padding: 9px 14px;
  background: var(--grad-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius3);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: 0.25s;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
}

.ai-panel-send:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* â”€â”€ 21. Settings & Theme Toggle Buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.settings-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
  flex-shrink: 0;
}

.settings-btn:hover {
  border-color: var(--neon);
  color: var(--neon);
  background: rgba(124, 58, 237, .09);
}

#themeToggle:hover {
  transform: rotate(20deg);
}

.settings-btn.settings-gear:hover {
  transform: rotate(45deg);
}

/* â•â• 22. Chat Bubbles â€” iMessage Style (Alexandrite) â•â• */

/* Critical pulse glow */
@keyframes criticalGlow {

  0%,
  100% {
    box-shadow: 0 2px 16px rgba(190, 18, 60, .50);
  }

  50% {
    box-shadow: 0 4px 40px rgba(190, 18, 60, .85), 0 0 0 3px rgba(190, 18, 60, .28);
  }
}

/* Messages container â€” very dark so bubbles pop */
.ai-modal-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 120px;
  background: #06020f;
  scroll-behavior: smooth;
}

/* â”€â”€ Base bubble â”€â”€ */
.chatMsg {
  max-width: 72%;
  padding: 12px 18px;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
  position: relative;
  font-family: inherit;
  /* tail created via ::after */
}

/* â”€â”€ BOT (AI) â€” LEFT â€” Alexandrite Sapphire Blue â”€â”€ */
.chatMsg.chatBot {
  align-self: flex-start;
  background: linear-gradient(135deg, #0369a1 0%, #2563eb 100%);
  color: #ffffff;
  border-radius: 20px 20px 20px 4px;
  /* sharp bottom-left = tail origin */
  box-shadow: 0 4px 20px rgba(37, 99, 235, .50),
    0 1px 0 rgba(255, 255, 255, .08) inset;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .30);
}

/* Left tail â€” points down-left */
.chatMsg.chatBot::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 14px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 0px solid transparent;
  border-top: 9px solid #1d4ed8;
  /* matches gradient end */
}

/* â”€â”€ USER â€” RIGHT â€” Alexandrite Deep Purple â”€â”€ */
.chatMsg.chatUser {
  align-self: flex-end;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  border-radius: 20px 20px 4px 20px;
  /* sharp bottom-right = tail origin */
  box-shadow: 0 4px 20px rgba(124, 58, 237, .55),
    0 1px 0 rgba(255, 255, 255, .10) inset;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

/* Right tail â€” points down-right */
.chatMsg.chatUser::after {
  content: '';
  position: absolute;
  bottom: -9px;
  right: 14px;
  width: 0;
  height: 0;
  border-left: 0px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid #6d28d9;
  /* matches gradient end */
}

/* â”€â”€ BOT INFO â€” soft indigo-violet â”€â”€ */
.chatMsg.chatBot.ai-info {
  background: linear-gradient(135deg, #3730a3 0%, #4338ca 100%);
  box-shadow: 0 4px 18px rgba(67, 56, 202, .48);
}

.chatMsg.chatBot.ai-info::after {
  border-top-color: #3730a3;
}

/* â”€â”€ BOT WARNING â€” deep violet â”€â”€ */
.chatMsg.chatBot.ai-warning {
  background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%);
  box-shadow: 0 4px 20px rgba(124, 58, 237, .50);
}

.chatMsg.chatBot.ai-warning::after {
  border-top-color: #4c1d95;
}

/* â”€â”€ CRITICAL â€” Dark Ruby + pulse â”€â”€ */
.chatMsg.chatBot.ai-critical,
.chatMsg.ai-critical {
  background: linear-gradient(135deg, #7f1d1d 0%, #be123c 100%);
  color: #ffffff;
  border-radius: 20px 20px 20px 4px;
  animation: criticalGlow 2.2s ease-in-out infinite;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}

.chatMsg.chatBot.ai-critical::after,
.chatMsg.ai-critical::after {
  border-top-color: #9f1239;
}

/* â”€â”€ LOADING â€” ghost pill â”€â”€ */
.chatMsg.chatBot.loading {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .50);
  box-shadow: none;
  font-style: italic;
  animation: none;
  align-self: flex-start;
  border-radius: 20px 20px 20px 4px;
}

.chatMsg.chatBot.loading::after {
  display: none;
}

/* â”€â”€ CONFIRM â€” success blue â”€â”€ */
.chatConfirm {
  align-self: flex-start;
  background: linear-gradient(135deg, #164e63 0%, #0e7490 100%);
  color: #ffffff;
  border-radius: 20px 20px 20px 4px;
  padding: 12px 18px;
  font-size: 14px;
  box-shadow: 0 3px 16px rgba(14, 116, 144, .42);
  max-width: 72%;
  word-break: break-word;
}

.chatConfirm::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 14px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 0 solid transparent;
  border-top: 9px solid #0e7490;
}

/* â”€â”€ AI Modal input row â”€â”€ */
.ai-modal-input-row {
  display: flex;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: #0c0618;
  flex-shrink: 0;
  align-items: center;
}

.ai-modal-input-row input {
  flex: 1;
  border-radius: var(--radius2);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
}

.ai-modal-input-row input::placeholder {
  color: rgba(255, 255, 255, .35);
}

.ai-modal-mic-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .55);
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-modal-mic-btn:hover {
  border-color: #60a5fa;
  color: #60a5fa;
}

.ai-modal-mic-btn.recording {
  border-color: var(--bad);
  color: var(--bad);
  animation: criticalGlow 1.5s infinite;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   22+. AI SIDEBAR â€” Desktop (â‰¥1024px) SaÄŸ Panel
   KullanÄ±cÄ± bÃ¼tÃ§eyi gÃ¶rÃ¼rken asistanla konuÅŸabilir.
   Mobilde modal tercih edilir (sidebar gizlenir).
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* SaÄŸ paneli aÃ§Ä±nca body'ye eklenen class â€” iÃ§eriÄŸin kaymasÄ±nÄ± engeller */
body.ai-sidebar-open {
  overflow: hidden;
}

/* YarÄ± ÅŸeffaf overlay â€” tÄ±klayÄ±nca sidebar kapanÄ±r */
.ai-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 1, 14, 0.60);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 290;
}

.ai-sidebar-overlay.active {
  display: block;
}

/* Sidebar Ana Panel */
.ai-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  background: #0a0518;
  border-left: 1px solid rgba(167, 139, 250, 0.22);
  box-shadow: -8px 0 48px rgba(124, 58, 237, 0.28);
  z-index: 295;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.32, 0, 0.22, 1);
  overflow: hidden;
}

.ai-sidebar.open {
  transform: translateX(0);
}

/* Sidebar Hero BaÅŸlÄ±k */
.ai-sidebar-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 16px;
  background: var(--grad-primary);
  color: #fff;
  flex-shrink: 0;
}

.ai-sidebar-hero-emoji {
  font-size: 36px;
  line-height: 1;
}

.ai-sidebar-hero-name {
  font-size: 17px;
  font-weight: 900;
  color: #fff;
}

.ai-sidebar-hero-greet {
  font-size: 11px;
  color: rgba(255, 255, 255, .75);
  margin-top: 2px;
}

.ai-sidebar-close {
  margin-left: auto;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  flex-shrink: 0;
}

.ai-sidebar-close:hover {
  background: rgba(255, 255, 255, .32);
  transform: scale(1.1);
}

/* Engine indicator â€” hangi AI motorunun Ã§alÄ±ÅŸtÄ±ÄŸÄ±nÄ± gÃ¶sterir */
.ai-engine-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: 9px;
  color: rgba(255, 255, 255, .55);
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}

.ai-engine-badge .engine-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: enginePulse 2.5s ease-in-out infinite;
}

.ai-engine-badge .engine-dot.fallback {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

@keyframes enginePulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }
}

/* Sidebar mesajlar alanÄ± â€” aynÄ± chatBot stillerini miras alÄ±r */
.ai-sidebar-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #06020f;
  scroll-behavior: smooth;
}

/* Sidebar input satÄ±rÄ± */
.ai-sidebar-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: #0c0618;
  flex-shrink: 0;
  align-items: center;
}

.ai-sidebar-input-row input {
  flex: 1;
  border-radius: var(--radius2);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 13px;
  padding: 9px 14px;
}

.ai-sidebar-input-row input::placeholder {
  color: rgba(255, 255, 255, .35);
}

.ai-sidebar-input-row input:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, .25);
  background: rgba(255, 255, 255, .10);
}

/* â”€â”€ Responsive: Sidebar sadece desktop'ta, modal sadece mobilde â”€â”€ */
@media (min-width: 1024px) {

  /* Desktop: Sidebar aktif, merkez modal gizli */
  #aiCenterModal {
    display: none !important;
  }

  .ai-sidebar {
    display: flex;
  }

  /* yapÄ±yÄ± koru, transform ile gizle */
}

@media (max-width: 1023px) {

  /* Mobil: Sidebar tamamen kaldırıldı, modal aktif */
  .ai-sidebar {
    display: none !important;
  }

  .ai-sidebar-overlay {
    display: none !important;
  }

  /* Shift float button up to avoid bottom tab bar overlap */
  .ai-float-wrap {
    /* removed */
  }

  /* Shift speech bubble up accordingly */
  .ai-speech-bubble {
    /* removed */
  }
}