/* ===========================================================
   90 Gün Oyun Planı — Brand Identity
   Base: OneTeam navy | Accent: amber (progress/motivation)
   =========================================================== */

:root {
  /* Core palette */
  --g90-bg: #F8FAFC;
  --g90-surface: #FFFFFF;
  --g90-surface-2: #F1F5F9;
  --g90-border: #E2E8F0;
  --g90-border-strong: #CBD5E1;

  /* Text */
  --g90-text: #0F172A;
  --g90-text-muted: #64748B;
  --g90-text-soft: #94A3B8;

  /* Brand */
  --g90-primary: #0F172A;          /* Navy — OneTeam temeli */
  --g90-primary-2: #1E293B;
  --g90-accent: #F59E0B;           /* Amber — progress, ateş */
  --g90-accent-hot: #EF4444;       /* Vurgu, milestone, streak */
  --g90-accent-glow: #FBBF24;

  /* Stage / Feedback */
  --g90-success: #10B981;
  --g90-warning: #F59E0B;
  --g90-danger: #EF4444;
  --g90-info: #3B82F6;

  /* Kategori renkleri */
  --g90-cat-ust-profil: #3B82F6;   /* Mavi */
  --g90-cat-musteri: #10B981;      /* Yeşil */
  --g90-cat-is-ortagi: #F59E0B;    /* Amber */
  --g90-cat-dormant: #8B5CF6;      /* Mor */
  --g90-cat-taze: #64748B;         /* Gri */
  --g90-cat-referans: #F97316;     /* Turuncu */

  /* Funnel aşama renkleri (soldan sağa ısınma) */
  --g90-stage-havuz: #94A3B8;
  --g90-stage-davet: #60A5FA;
  --g90-stage-gorusme: #3B82F6;
  --g90-stage-takip: #8B5CF6;
  --g90-stage-karar: #F59E0B;
  --g90-stage-kayit: #10B981;
  --g90-stage-aktif: #059669;
  --g90-stage-kapali: #CBD5E1;

  /* Geometry */
  --g90-radius: 12px;
  --g90-radius-sm: 8px;
  --g90-radius-lg: 16px;

  /* Elevation */
  --g90-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --g90-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  --g90-shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);

  /* Motion */
  --g90-ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Gradient — motivasyon başlıkları için */
  --g90-gradient: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
  --g90-gradient-cool: linear-gradient(135deg, #3B82F6 0%, #0F172A 100%);
}

/* ========== Reset & Base ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto',
    system-ui, sans-serif;
  color: var(--g90-text);
  background: var(--g90-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  line-height: 1.5;
}

a {
  color: var(--g90-info);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ========== Layout ========== */
.g90-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.g90-topbar {
  background: var(--g90-primary);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--g90-shadow);
  position: sticky;
  top: 0;
  z-index: 40;
}

.g90-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 18px;
}

.g90-brand .logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--g90-gradient);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  font-size: 13px;
  letter-spacing: -0.5px;
}

.g90-topnav {
  display: flex;
  gap: 4px;
}

.g90-topnav button {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.75);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s var(--g90-ease);
}

.g90-topnav button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.g90-topnav button.active {
  color: var(--g90-accent);
  background: rgba(245, 158, 11, 0.12);
}

.g90-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.g90-user-chip .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--g90-accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--g90-primary);
  font-size: 12px;
}

.g90-main {
  flex: 1;
  padding: 24px 20px 40px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* ========== Kart & Yüzey ========== */
.g90-card {
  background: var(--g90-surface);
  border: 1px solid var(--g90-border);
  border-radius: var(--g90-radius);
  padding: 20px;
  box-shadow: var(--g90-shadow-sm);
}

.g90-card-lg {
  padding: 24px;
  border-radius: var(--g90-radius-lg);
  box-shadow: var(--g90-shadow);
}

.g90-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--g90-text-muted);
  margin: 0 0 12px;
}

/* ========== Button ========== */
.g90-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--g90-radius-sm);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s var(--g90-ease);
  background: var(--g90-surface-2);
  color: var(--g90-text);
}

.g90-btn:hover {
  background: var(--g90-border);
}

.g90-btn-primary {
  background: var(--g90-primary);
  color: #fff;
  border-color: var(--g90-primary);
}

.g90-btn-primary:hover {
  background: var(--g90-primary-2);
}

.g90-btn-accent {
  background: var(--g90-gradient);
  color: #fff;
  border: 0;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.g90-btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.45);
}

.g90-btn-ghost {
  background: transparent;
  color: var(--g90-text-muted);
  border-color: var(--g90-border);
}

.g90-btn-ghost:hover {
  background: var(--g90-surface-2);
  color: var(--g90-text);
}

.g90-btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

/* ========== Form ========== */
.g90-input,
.g90-select,
.g90-textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--g90-text);
  background: var(--g90-surface);
  border: 1px solid var(--g90-border-strong);
  border-radius: var(--g90-radius-sm);
  transition: border-color 0.15s var(--g90-ease), box-shadow 0.15s var(--g90-ease);
}

.g90-input:focus,
.g90-select:focus,
.g90-textarea:focus {
  outline: none;
  border-color: var(--g90-info);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.g90-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--g90-text);
  display: block;
  margin-bottom: 6px;
}

/* ========== Etiket ========== */
.g90-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--g90-surface-2);
  color: var(--g90-text-muted);
  border: 1px solid var(--g90-border);
}

.g90-tag-ust-profil { background: #EBF2FF; color: var(--g90-cat-ust-profil); border-color: #BFDBFE; }
.g90-tag-musteri    { background: #ECFDF5; color: var(--g90-cat-musteri);    border-color: #A7F3D0; }
.g90-tag-is-ortagi  { background: #FEF3C7; color: #92400E;                   border-color: #FDE68A; }
.g90-tag-dormant    { background: #F3E8FF; color: var(--g90-cat-dormant);    border-color: #DDD6FE; }
.g90-tag-taze       { background: var(--g90-surface-2); color: var(--g90-text-muted); }
.g90-tag-referans   { background: #FFEDD5; color: #9A3412;                   border-color: #FED7AA; }

/* ========== Progress bar (rank) ========== */
.g90-progress {
  height: 10px;
  background: var(--g90-border);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.g90-progress-fill {
  height: 100%;
  background: var(--g90-gradient);
  border-radius: 999px;
  transition: width 0.6s var(--g90-ease);
  position: relative;
}

.g90-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: g90-shimmer 2.4s infinite;
}

@keyframes g90-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ========== Auth ekranı ========== */
.g90-auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(ellipse at top, #1E293B 0%, #0F172A 70%);
}

.g90-auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--g90-surface);
  border-radius: var(--g90-radius-lg);
  padding: 36px 32px;
  box-shadow: var(--g90-shadow-lg);
  text-align: center;
}

.g90-auth-card .hero-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--g90-gradient);
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -1px;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

.g90-auth-card h1 {
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.g90-auth-card .subtitle {
  color: var(--g90-text-muted);
  margin: 0 0 24px;
  font-size: 14px;
}

.g90-auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.g90-auth-footer {
  margin-top: 24px;
  font-size: 12px;
  color: var(--g90-text-soft);
}

/* ========== Yardımcı ========== */
.g90-row { display: flex; gap: 12px; align-items: center; }
.g90-col { display: flex; flex-direction: column; gap: 12px; }
.g90-grid { display: grid; gap: 16px; }
.g90-grid-2 { grid-template-columns: repeat(2, 1fr); }
.g90-grid-3 { grid-template-columns: repeat(3, 1fr); }
.g90-grid-4 { grid-template-columns: repeat(4, 1fr); }

.g90-text-muted { color: var(--g90-text-muted); }
.g90-text-accent { color: var(--g90-accent); }
.g90-text-success { color: var(--g90-success); }
.g90-text-lg { font-size: 16px; }
.g90-text-xl { font-size: 20px; }
.g90-text-2xl { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }

.g90-gap-sm { gap: 8px; }
.g90-mt-1 { margin-top: 8px; }
.g90-mt-2 { margin-top: 16px; }
.g90-mt-3 { margin-top: 24px; }

/* ========== Loader ========== */
.g90-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--g90-border);
  border-top-color: var(--g90-accent);
  border-radius: 50%;
  animation: g90-spin 0.8s linear infinite;
}

@keyframes g90-spin {
  to { transform: rotate(360deg); }
}

.g90-loader-wrap {
  display: grid;
  place-items: center;
  padding: 80px 20px;
  gap: 14px;
  color: var(--g90-text-muted);
}

/* ========== Boş durum ========== */
.g90-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--g90-text-muted);
}

.g90-empty .emoji {
  font-size: 48px;
  margin-bottom: 12px;
  filter: grayscale(0.3);
}

/* ========== Kontak Havuzu ========== */
.g90-contacts-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.g90-filter-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 10px;
  align-items: center;
}

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

.g90-contact-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  background: var(--g90-surface);
  border: 1px solid var(--g90-border);
  border-radius: var(--g90-radius);
  padding: 14px 16px;
  box-shadow: var(--g90-shadow-sm);
  transition: transform 0.1s var(--g90-ease), box-shadow 0.15s var(--g90-ease);
}

.g90-contact-card:hover {
  box-shadow: var(--g90-shadow);
  transform: translateY(-1px);
}

.g90-contact-card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--g90-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.5px;
}

.g90-contact-card .row1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.g90-contact-card .name {
  font-weight: 600;
  font-size: 15px;
  color: var(--g90-text);
}

.g90-contact-card .row2 {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.g90-contact-card .row3 {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--g90-text-muted);
  font-size: 12px;
}

.g90-contact-card .right {
  display: flex;
  gap: 6px;
}

/* Kategori picker (form içi) */
.g90-cat-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.g90-cat-chip {
  cursor: pointer;
  user-select: none;
}

.g90-cat-chip input {
  display: none;
}

.g90-cat-chip .g90-tag {
  opacity: 0.55;
  transition: opacity 0.15s var(--g90-ease), transform 0.1s var(--g90-ease);
  border-width: 2px;
}

.g90-cat-chip:hover .g90-tag { opacity: 0.8; }
.g90-cat-chip input:checked + .g90-tag { opacity: 1; transform: scale(1.04); }

/* ========== Funnel Kanban ========== */
.g90-funnel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.g90-kanban-scroll {
  overflow-x: auto;
  padding-bottom: 8px;
  margin-left: -4px;
  margin-right: -4px;
}

.g90-kanban-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 280px;
  gap: 12px;
  padding: 4px;
  min-height: 420px;
}

.g90-kanban-col {
  display: flex;
  flex-direction: column;
  background: var(--g90-surface-2);
  border: 1px solid var(--g90-border);
  border-top: 3px solid var(--col, var(--g90-border));
  border-radius: var(--g90-radius);
  min-height: 400px;
}

.g90-kanban-col-head {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--g90-border);
  background: var(--g90-surface);
  border-radius: var(--g90-radius) var(--g90-radius) 0 0;
}

.g90-kanban-col-head .label {
  font-weight: 700;
  font-size: 13px;
  color: var(--col, var(--g90-text));
}

.g90-kanban-col-head .count {
  background: var(--g90-surface-2);
  color: var(--g90-text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
}

.g90-kanban-col-body {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 60px;
  transition: background 0.15s var(--g90-ease);
}

.g90-kanban-col-body.drag-over {
  background: rgba(245, 158, 11, 0.08);
  outline: 2px dashed var(--g90-accent);
  outline-offset: -4px;
  border-radius: 0 0 var(--g90-radius) var(--g90-radius);
}

.g90-kanban-empty {
  color: var(--g90-text-soft);
  text-align: center;
  padding: 24px 8px;
  font-size: 12px;
}

.g90-kanban-card {
  background: var(--g90-surface);
  border: 1px solid var(--g90-border);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: var(--g90-shadow-sm);
  cursor: grab;
  transition: transform 0.1s var(--g90-ease), box-shadow 0.15s var(--g90-ease);
  user-select: none;
}

.g90-kanban-card:hover {
  box-shadow: var(--g90-shadow);
  transform: translateY(-1px);
}

.g90-kanban-card:active {
  cursor: grabbing;
}

.g90-kanban-card.dragging {
  opacity: 0.4;
  transform: scale(0.97);
}

.g90-kc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.g90-kc-head .avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--g90-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

.g90-kc-head .name {
  font-weight: 600;
  font-size: 13px;
  color: var(--g90-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.g90-kc-cats {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.g90-kanban-card .apt {
  font-size: 11px;
  color: var(--g90-info);
  background: #EBF2FF;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 4px;
  display: inline-block;
}

.g90-kc-note {
  color: var(--g90-text-muted);
  font-size: 11px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--g90-border);
  line-height: 1.4;
}

.g90-kanban-closed {
  border-top: 1px solid var(--g90-border);
  padding-top: 16px;
}

.g90-kanban-closed-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  background: var(--g90-surface-2);
  border-radius: var(--g90-radius);
  min-height: 80px;
  transition: background 0.15s var(--g90-ease);
}

.g90-kanban-closed-list.drag-over {
  background: rgba(245, 158, 11, 0.08);
  outline: 2px dashed var(--g90-accent);
  outline-offset: -4px;
}

/* ========== Günlük Pano ========== */
.g90-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  padding: 4px;
}

.g90-counter-card {
  background: var(--g90-surface);
  border: 1px solid var(--g90-border);
  border-radius: var(--g90-radius-lg);
  padding: 20px 22px;
  box-shadow: var(--g90-shadow-sm);
  position: relative;
  transition: border-color 0.2s var(--g90-ease);
}

.g90-counter-card.done {
  border-color: var(--g90-success);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.04), var(--g90-surface) 40%);
}

.g90-counter-card .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.g90-counter-card .label {
  font-weight: 700;
  font-size: 14px;
  color: var(--g90-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.g90-counter-card .pct {
  font-weight: 700;
  font-size: 14px;
  color: var(--g90-accent);
}

.g90-counter-card.done .pct {
  color: var(--g90-success);
}

.g90-counter-card .body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.g90-counter-card .actual {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.g90-counter-card .target {
  font-size: 18px;
  font-weight: 500;
  color: var(--g90-text-muted);
}

.g90-counter-card .controls {
  display: flex;
  gap: 6px;
}

.g90-counter-card .badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--g90-success);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.g90-suggest-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.1s var(--g90-ease);
}

.g90-suggest-row:hover {
  background: var(--g90-surface-2);
}

.g90-suggest-row .avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--g90-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.g90-suggest-row .name {
  font-weight: 600;
  font-size: 14px;
}

.g90-suggest-row .meta {
  margin-top: 2px;
  display: flex;
  align-items: center;
}

/* ========== Haftalık Planlayıcı ========== */
.g90-week-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.g90-week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.g90-week-day {
  background: var(--g90-surface);
  border: 1px solid var(--g90-border);
  border-radius: var(--g90-radius);
  padding: 14px 12px;
  box-shadow: var(--g90-shadow-sm);
}

.g90-week-day.today {
  border-color: var(--g90-accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.g90-week-day.past {
  background: var(--g90-surface-2);
  opacity: 0.9;
}

.g90-week-day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.g90-week-day-head .title {
  font-weight: 700;
  font-size: 13px;
}

.g90-week-day-head .today-badge {
  background: var(--g90-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
}

.g90-week-day .mini-label {
  display: block;
  font-size: 11px;
  color: var(--g90-text-muted);
  margin-bottom: 4px;
}

.g90-week-day .g90-input.mini {
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
}

.g90-week-day .actual-line {
  font-size: 11px;
  color: var(--g90-text-muted);
  margin-top: 3px;
}

.g90-week-day .actual-line strong {
  color: var(--g90-success);
}

/* ========== Analitik ========== */
.g90-stat-hot {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(239, 68, 68, 0.06));
  border-color: rgba(245, 158, 11, 0.3);
}

.g90-chart-bars {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 4px;
  margin-top: 12px;
  align-items: end;
  height: 180px;
}

.g90-chart-bars .bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.g90-chart-bars .bar-track {
  flex: 1;
  width: 100%;
  position: relative;
  background: var(--g90-surface-2);
  border-radius: 4px;
  overflow: hidden;
  min-height: 4px;
}

.g90-chart-bars .bar-planned {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--g90-border);
  transition: height 0.3s var(--g90-ease);
}

.g90-chart-bars .bar-actual {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--g90-gradient);
  transition: height 0.4s var(--g90-ease);
  border-radius: 3px 3px 0 0;
}

.g90-chart-bars .bar-label {
  font-size: 10px;
  color: var(--g90-text-muted);
  font-weight: 600;
}

.g90-chart-bars .bar-val {
  font-size: 10px;
  color: var(--g90-text);
  font-weight: 700;
}

.g90-chart-legend {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 14px;
  font-size: 12px;
  color: var(--g90-text-muted);
}

.g90-chart-legend .swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: middle;
}

.g90-chart-legend .swatch.actual { background: var(--g90-gradient); }
.g90-chart-legend .swatch.planned { background: var(--g90-border); }

.g90-funnel-chart {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.funnel-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 10px;
}

.funnel-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--g90-text);
}

.funnel-bar-wrap {
  background: var(--g90-surface-2);
  border-radius: 6px;
  overflow: hidden;
  height: 28px;
  position: relative;
}

.funnel-bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
  border-radius: 6px;
  transition: width 0.5s var(--g90-ease);
  min-width: 28px;
}

.funnel-bar-val {
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.g90-cat-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.cat-row {
  display: grid;
  grid-template-columns: 160px 1fr 100px;
  align-items: center;
  gap: 10px;
}

.cat-bar-wrap {
  height: 14px;
  background: var(--g90-surface-2);
  border-radius: 7px;
  overflow: hidden;
}

.cat-bar {
  height: 100%;
  background: var(--g90-gradient);
  border-radius: 7px;
  transition: width 0.5s var(--g90-ease);
}

.cat-val {
  font-size: 12px;
  color: var(--g90-text-muted);
  text-align: right;
}

/* ========== Onboarding Wizard ========== */
.g90-ob-wrap {
  max-width: 720px;
  margin: 20px auto;
  background: var(--g90-surface);
  border: 1px solid var(--g90-border);
  border-radius: var(--g90-radius-lg);
  padding: 32px 28px;
  box-shadow: var(--g90-shadow);
}

.g90-ob-header {
  margin-bottom: 24px;
}

.g90-ob-step {
  font-size: 12px;
  font-weight: 700;
  color: var(--g90-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.g90-ob-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.g90-ob-subtitle {
  font-size: 14px;
  color: var(--g90-text-muted);
  margin-top: 4px;
}

.g90-ob-body {
  padding: 20px 0;
  min-height: 200px;
}

.g90-ob-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--g90-border);
}

.g90-ob-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.g90-ob-chip {
  padding: 10px 18px;
  background: var(--g90-surface);
  border: 2px solid var(--g90-border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--g90-text-muted);
  transition: all 0.15s var(--g90-ease);
}

.g90-ob-chip:hover {
  border-color: var(--g90-border-strong);
  color: var(--g90-text);
}

.g90-ob-chip.active {
  border-color: var(--g90-accent);
  color: var(--g90-accent);
  background: rgba(245, 158, 11, 0.08);
}

.g90-ob-motcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.g90-ob-motcard {
  padding: 18px 14px;
  background: var(--g90-surface);
  border: 2px solid var(--g90-border);
  border-radius: var(--g90-radius);
  text-align: center;
  cursor: pointer;
  transition: all 0.15s var(--g90-ease);
}

.g90-ob-motcard:hover {
  border-color: var(--g90-border-strong);
  transform: translateY(-2px);
}

.g90-ob-motcard.active {
  border-color: var(--g90-accent);
  background: rgba(245, 158, 11, 0.05);
}

.g90-ob-motcard .emoji {
  font-size: 32px;
  margin-bottom: 8px;
}

.g90-ob-motcard .label {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.g90-ob-motcard .desc {
  font-size: 11px;
  color: var(--g90-text-muted);
  line-height: 1.4;
}

.g90-ob-scenarios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.g90-ob-scen {
  padding: 20px 18px;
  background: var(--g90-surface);
  border: 2px solid var(--g90-border);
  border-radius: var(--g90-radius-lg);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s var(--g90-ease);
  --accent: var(--g90-accent);
}

.g90-ob-scen:hover {
  transform: translateY(-3px);
  box-shadow: var(--g90-shadow);
}

.g90-ob-scen.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.g90-ob-scen .scen-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.g90-ob-scen .scen-head .emoji {
  font-size: 28px;
}

.g90-ob-scen .scen-head .title {
  font-weight: 800;
  font-size: 16px;
  color: var(--accent);
}

.g90-ob-scen .scen-head .subtitle {
  font-size: 11px;
  color: var(--g90-text-muted);
  line-height: 1.4;
  margin-top: 3px;
}

.g90-ob-scen .scen-body .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 13px;
}

.g90-ob-scen .scen-body .k {
  color: var(--g90-text-muted);
}

.g90-ob-scen .scen-body .v {
  font-weight: 700;
  color: var(--g90-text);
}

.g90-ob-scen .scen-body .v.accent {
  color: var(--accent);
}

.g90-ob-scen .scen-sep {
  height: 1px;
  background: var(--g90-border);
  margin: 8px 0;
}

@media (max-width: 640px) {
  .g90-ob-motcards,
  .g90-ob-scenarios {
    grid-template-columns: 1fr;
  }
  .g90-ob-wrap {
    padding: 22px 16px;
  }
}

/* ========== Modal ========== */
.g90-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: grid;
  place-items: center;
  z-index: 500;
  padding: 20px;
  backdrop-filter: blur(2px);
}

.g90-modal {
  background: var(--g90-surface);
  border-radius: var(--g90-radius-lg);
  padding: 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--g90-shadow-lg);
}

.g90-modal h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
}

/* ========== Koç FAB + Panel ========== */
#g90-coach-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--g90-gradient);
  color: #fff;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
  z-index: 400;
  transition: transform 0.15s var(--g90-ease);
}

#g90-coach-fab:hover {
  transform: scale(1.08);
}

#g90-coach-panel {
  position: fixed;
  right: 16px;
  bottom: 90px;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 120px));
  background: var(--g90-surface);
  border-radius: var(--g90-radius-lg);
  border: 1px solid var(--g90-border);
  box-shadow: var(--g90-shadow-lg);
  display: flex;
  flex-direction: column;
  z-index: 401;
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s var(--g90-ease), opacity 0.2s var(--g90-ease);
}

#g90-coach-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.g90-coach-head {
  padding: 14px 16px;
  background: var(--g90-primary);
  color: #fff;
  border-radius: var(--g90-radius-lg) var(--g90-radius-lg) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.g90-coach-title {
  font-weight: 700;
  font-size: 16px;
}

.g90-coach-sub {
  font-size: 12px;
  opacity: 0.75;
}

.g90-coach-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.g90-coach-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.g90-coach-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.g90-msg {
  display: flex;
}

.g90-msg-user {
  justify-content: flex-end;
}

.g90-msg-assistant {
  justify-content: flex-start;
}

.g90-msg .bubble {
  max-width: 85%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
}

.g90-msg-user .bubble {
  background: var(--g90-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.g90-msg-assistant .bubble {
  background: var(--g90-surface-2);
  color: var(--g90-text);
  border-bottom-left-radius: 4px;
}

.g90-msg .bubble.typing {
  display: flex;
  gap: 4px;
  padding: 12px 14px;
}

.g90-msg .bubble.typing span {
  width: 6px;
  height: 6px;
  background: var(--g90-text-soft);
  border-radius: 50%;
  animation: g90-typing 1.1s infinite;
}

.g90-msg .bubble.typing span:nth-child(2) { animation-delay: 0.15s; }
.g90-msg .bubble.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes g90-typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.g90-coach-quick {
  padding: 8px 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.g90-coach-chip {
  background: var(--g90-surface-2);
  border: 1px solid var(--g90-border);
  color: var(--g90-text);
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.1s var(--g90-ease);
}

.g90-coach-chip:hover {
  background: var(--g90-border);
}

.g90-coach-form {
  padding: 10px 12px 12px;
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--g90-border);
}

.g90-coach-input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--g90-border-strong);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.g90-coach-input:focus {
  border-color: var(--g90-info);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.g90-coach-send {
  padding: 0 16px;
  background: var(--g90-gradient);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .g90-topbar {
    padding: 10px 14px;
  }

  .g90-topnav button {
    padding: 6px 10px;
    font-size: 13px;
  }

  .g90-main {
    padding: 16px 14px 32px;
  }

  .g90-grid-2,
  .g90-grid-3,
  .g90-grid-4 {
    grid-template-columns: 1fr;
  }

  .g90-auth-card {
    padding: 28px 22px;
  }

  .g90-filter-row {
    grid-template-columns: 1fr;
  }

  .g90-contact-card {
    grid-template-columns: auto 1fr;
  }

  .g90-contact-card .right {
    grid-column: 1 / -1;
    justify-content: flex-end;
    margin-top: 4px;
  }

  .g90-week-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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