/* =====================================================================
   AYBARION TRADE — Premium Tasarım Sistemi
   Tüm sayfaların ortak stili. Bölümler:
   01 Değişkenler · 02 Temel · 03 Arka plan · 04 Kabuk (kenar çubuğu, üst çubuk)
   05 Sayfa başlığı · 06 Izgara · 07 Kart · 08 KPI · 09 Düğme · 10 Form
   11 Sekme/Çip/Rozet · 12 Tablo · 13 Liste · 14 İlerleme · 15 Avatar/Bayrak
   16 Grafik · 17 Harita · 18 Çekmece/Modal/Palet · 19 Bildirim · 20 Zaman çizelgesi
   21 Sohbet · 22 Takvim/Kanban · 23 Hareket · 24 Duyarlı düzen
   ===================================================================== */

/* ---------------------------------------------------------- 01 Değişkenler */
:root {
  color-scheme: dark;
  --bg-0: #010510;
  --bg-1: #030a1a;
  --bg-2: #061228;
  --bg-3: #0a1a36;
  --bg-4: #0f2447;
  --panel: linear-gradient(180deg, rgba(11, 27, 56, 0.82) 0%, rgba(5, 14, 32, 0.9) 100%);
  --panel-solid: #071530;
  --panel-hi: rgba(18, 42, 84, 0.65);
  --glass: rgba(6, 16, 36, 0.72);

  --line: rgba(64, 120, 214, 0.2);
  --line-2: rgba(70, 135, 240, 0.34);
  --line-3: rgba(80, 160, 255, 0.6);

  --text: #eef4ff;
  --text-2: #b4c3dd;
  --text-3: #7c8fb0;
  --text-4: #56688a;

  --blue: #1f7bff;
  --blue-2: #3b95ff;
  --blue-3: #7cc0ff;
  --blue-deep: #0a4fd8;
  --cyan: #2fd4f0;
  --teal: #19c6a5;
  --green: #2edb87;
  --green-2: #64d84b;
  --red: #ff4f61;
  --amber: #f6b324;
  --orange: #ff8a3d;
  --violet: #8f6bff;
  --pink: #f05ec4;
  --gold: #f4c95d;

  --obs: #29a7ff; /* Gözlenen  */
  --der: #aa54f5; /* Türetilmiş */
  --pre: #f1a72d; /* Tahmin     */

  --grad-brand: linear-gradient(135deg, #8fd0ff 0%, #2f86ff 45%, #0b3fbf 100%);
  --grad-btn: linear-gradient(180deg, #2b8bff 0%, #1366f0 55%, #0b52d6 100%);
  --grad-active: linear-gradient(90deg, rgba(31, 123, 255, 0.24) 0%, rgba(31, 123, 255, 0.08) 70%, rgba(31, 123, 255, 0.02) 100%);

  --glow-blue: 0 0 0 1px rgba(64, 150, 255, 0.3), 0 3px 10px rgba(18, 104, 255, 0.16);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-2: 0 4px 14px rgba(0, 0, 0, 0.24);
  --shadow-3: 0 14px 40px rgba(0, 0, 0, 0.4);

  --r-xs: 5px;
  --r-sm: 7px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 999px;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Exo 2', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --sidebar-w: 228px;
  --sidebar-w-collapsed: 64px;
  --topbar-h: 52px;
  --pubbar-h: 60px;

  /* Type scale: one place for the whole interface (compact data product) */
  --fs-2xs: 10px;
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-base: 13px;
  --fs-md: 14px;
  --fs-lg: 16px;
  --fs-xl: 18px;
  --fs-h1: 22px;
  --fs-kpi: 20px;
  --fs-stat: 17px;
  --lh-base: 1.5;
  --lh-tight: 1.2;

  /* Spacing and control scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --card-pad: 14px;
  --gap: 14px;
  --ctl-h: 32px;
  --ctl-h-sm: 28px;
  --ctl-h-xs: 24px;
  --ctl-h-lg: 38px;
  --nav-h: 32px;
  --icon-tile: 34px;

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0, 0, 0, 1);
  --ease-spring: linear(0, 0.35, 0.85, 1.05, 0.99, 1);
  --t-fast: 140ms;
  --t-base: 220ms;
  --t-slow: 420ms;
}

/* ---------------------------------------------------------- 02 Temel */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* decorative background marks reach past the right edge; clip (unlike hidden) keeps the sticky header working */
  overflow-x: clip;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
[hidden] {
  display: none !important;
}
img,
svg {
  display: block;
}
h1,
h2,
h3,
h4,
h5,
p {
  margin: 0;
}
::selection {
  background: rgba(47, 134, 255, 0.45);
}
:focus-visible {
  outline: 2px solid var(--blue-2);
  outline-offset: 2px;
  border-radius: 6px;
}
.num,
.tabular {
  font-variant-numeric: tabular-nums;
}
.mono {
  font-family: var(--font-mono);
}
.muted {
  color: var(--text-3);
}
.dim {
  color: var(--text-2);
}
.up {
  color: var(--green);
}
.down {
  color: var(--red);
}
.warn {
  color: var(--amber);
}
.accent {
  color: var(--blue-2);
}
.nowrap {
  white-space: nowrap;
}
.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  transition: top var(--t-base) var(--ease);
}
.skip-link:focus {
  top: 12px;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: rgba(70, 120, 200, 0.28);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(90, 150, 240, 0.45);
}
::-webkit-scrollbar-track {
  background: transparent;
}

.ic {
  width: 16px;
  height: 16px;
  flex: none;
  stroke-width: 1.8;
}
.ic-sm {
  width: 14px;
  height: 14px;
}
.ic-xs {
  width: 13px;
  height: 13px;
}
.ic-lg {
  width: 20px;
  height: 20px;
}

/* ---------------------------------------------------------- 03 Arka plan */
.ayb-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1200px 560px at 62% -180px, rgba(29, 108, 255, 0.13), transparent 70%),
    radial-gradient(900px 600px at -10% 20%, rgba(14, 64, 170, 0.08), transparent 70%),
    radial-gradient(800px 600px at 110% 90%, rgba(70, 40, 190, 0.06), transparent 70%),
    linear-gradient(180deg, #020819 0%, #010510 55%, #01040d 100%);
}
.ayb-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(80, 140, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 140, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}
.ayb-particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}

/* ---------------------------------------------------------- 04 Kabuk */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns var(--t-slow) var(--ease);
}
.app.is-collapsed {
  grid-template-columns: var(--sidebar-w-collapsed) minmax(0, 1fr);
}

/* Kenar çubuğu */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(5, 14, 32, 0.94) 0%, rgba(3, 9, 22, 0.96) 100%);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(16px);
  z-index: 120;
}
.sidebar::after {
  content: '';
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(60, 150, 255, 0.4) 30%, transparent 70%);
  opacity: 0.3;
}
.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  min-height: var(--topbar-h);
}
.sidebar__scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 12px 10px;
  scrollbar-width: thin;
}
.nav-group {
  margin-top: 4px;
}
.nav-group__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 8px 4px;
  font-size: var(--fs-2xs);
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-4);
}
.nav-group__title .ic {
  width: 13px;
  height: 13px;
  transition: transform var(--t-base) var(--ease);
}
.nav-group.is-closed .nav-group__title .ic {
  transform: rotate(-90deg);
}
.nav-group.is-closed .nav-group__items {
  display: none;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  height: var(--nav-h);
  padding: 0 9px;
  margin: 1px 0;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  color: var(--text-2);
  font-size: var(--fs-base);
  font-weight: 500;
  white-space: nowrap;
  transition:
    background var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}
.nav-item .ic {
  color: var(--text-3);
  transition: color var(--t-fast) var(--ease), transform var(--t-base) var(--ease);
}
.nav-item:hover {
  color: var(--text);
  background: rgba(40, 90, 180, 0.14);
}
.nav-item:hover .ic {
  color: var(--blue-3);
}
.nav-item.is-active {
  color: #fff;
  background: var(--grad-active);
  border-color: rgba(70, 150, 255, 0.28);
  box-shadow: none;
}
.nav-item.is-active::before {
  content: '';
  position: absolute;
  left: -13px;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--blue-2);
}
.nav-item.is-active .ic {
  color: #fff;
}
.nav-item__label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-item__badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: var(--fs-2xs);
  font-weight: 700;
  display: grid;
  place-items: center;
}
.nav-item__new {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 5px;
  border-radius: 4px;
  color: #06142c;
  background: var(--cyan);
}
.sidebar__foot {
  padding: 8px 12px 10px;
  border-top: 1px solid var(--line);
}
.plan-card {
  position: relative;
  overflow: hidden;
  padding: 9px 10px;
  margin-bottom: 6px;
  border-radius: var(--r-md);
  border: 1px solid rgba(244, 201, 93, 0.22);
  background: linear-gradient(135deg, rgba(244, 201, 93, 0.07), rgba(31, 123, 255, 0.04));
}
.plan-card__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  font-size: var(--fs-sm);
  color: var(--gold);
}
.plan-card p {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-3);
}
.app.is-collapsed .nav-item__label,
.app.is-collapsed .nav-item__badge,
.app.is-collapsed .nav-item__new,
.app.is-collapsed .nav-group__title span,
.app.is-collapsed .plan-card,
.app.is-collapsed .brand-lockup__text {
  display: none;
}
.app.is-collapsed .nav-item {
  justify-content: center;
  padding: 0;
}
.app.is-collapsed .nav-group__title {
  justify-content: center;
}
.app.is-collapsed .nav-group.is-closed .nav-group__items {
  display: block;
}

/* Marka */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 30px;
  height: auto;
  filter: drop-shadow(0 0 4px rgba(47, 134, 255, 0.22));
}
.brand-lockup__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.brand-lockup__word {
  height: 10px;
  width: auto;
  color: #f4f8ff;
}
.brand-lockup__trade {
  height: 7px;
  width: auto;
  color: var(--blue-2);
}
.brand-mark .shine {
  animation: ayb-shine 14s var(--ease) infinite;
}

/* Üst çubuk */
.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 110;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  background: rgba(2, 8, 20, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%);
}
.icon-btn {
  position: relative;
  width: var(--ctl-h);
  height: var(--ctl-h);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  color: var(--text-2);
  border: 1px solid transparent;
  transition: all var(--t-fast) var(--ease);
}
.icon-btn:hover {
  color: #fff;
  background: rgba(40, 90, 180, 0.18);
  border-color: var(--line);
}
.icon-btn__dot {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 750;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px var(--bg-1);
}
.topbar__search {
  flex: 1;
  max-width: 560px;
  position: relative;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--ctl-h);
  padding: 0 10px;
  border-radius: var(--r-sm);
  background: rgba(8, 20, 44, 0.85);
  border: 1px solid var(--line);
  color: var(--text-3);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.search:focus-within {
  border-color: var(--line-3);
  box-shadow: 0 0 0 2px rgba(31, 123, 255, 0.16);
}
.search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--text);
}
.search input::placeholder {
  color: var(--text-4);
}
.kbd {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.03);
}
.topbar__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--ctl-h);
  padding: 0 9px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-weight: 550;
}
.lang-btn:hover {
  background: rgba(40, 90, 180, 0.18);
  color: #fff;
}
.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  font-size: var(--fs-2xs);
  font-weight: 650;
  letter-spacing: 0.07em;
  color: var(--amber);
  background: rgba(246, 179, 36, 0.07);
  border: 1px solid rgba(246, 179, 36, 0.26);
  white-space: nowrap;
}
.demo-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}
.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 6px 2px 2px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  text-align: left;
}
.user-btn .avatar {
  width: 28px;
  height: 28px;
  font-size: 10.5px;
}
.user-btn:hover {
  background: rgba(40, 90, 180, 0.16);
  border-color: var(--line);
}
.user-btn__name {
  font-weight: 600;
  font-size: var(--fs-sm);
  line-height: 1.2;
}
.user-btn__role {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: var(--gold);
}

/* Açılır menüler */
.popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 300;
  width: 340px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(10, 25, 52, 0.98), rgba(4, 12, 28, 0.98));
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-3);
  backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.popover.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.popover__head {
  padding: 12px 14px 8px;
  border-bottom: 1px solid var(--line);
}
.popover__body {
  max-height: 380px;
  overflow: auto;
  padding: 6px;
}
.popover__foot {
  padding: 8px 14px;
  border-top: 1px solid var(--line);
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 9px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  text-align: left;
}
.menu-item:hover {
  background: rgba(40, 90, 180, 0.2);
  color: #fff;
}
.eyebrow {
  font-size: var(--fs-2xs);
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--blue-2);
}

/* ---------------------------------------------------------- 05 Sayfa */
.page {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 18px 24px 40px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.page-head__title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-head__icon {
  width: var(--icon-tile);
  height: var(--icon-tile);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad-btn);
  box-shadow: var(--glow-blue);
}
.page-head__icon .ic {
  width: 17px;
  height: 17px;
}
.page-head h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: var(--lh-tight);
}
.page-head h1 small {
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--text-3);
  margin-left: 6px;
}
.page-head__sub {
  margin-top: 2px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--blue-2);
}
.page-head__desc {
  margin-top: 4px;
  color: var(--text-2);
  max-width: 760px;
}
.page-head__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.crumbs a:hover {
  color: var(--text);
}
.crumbs .ic {
  width: 12px;
  height: 12px;
}
.guardrail {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 12px;
  margin-bottom: 14px;
  border-radius: var(--r-md);
  border: 1px solid rgba(41, 167, 255, 0.2);
  background: linear-gradient(90deg, rgba(41, 167, 255, 0.06), rgba(41, 167, 255, 0.01));
  color: var(--text-2);
  font-size: 12px;
}
.guardrail strong {
  color: var(--text);
}
.guardrail__chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}
.check-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: 11px;
  color: #9fe7c4;
  background: rgba(46, 219, 135, 0.08);
  border: 1px solid rgba(46, 219, 135, 0.25);
}
.check-chip .ic {
  width: 12px;
  height: 12px;
}

/* ---------------------------------------------------------- 06 Izgara */
.grid {
  display: grid;
  gap: var(--gap);
}
.g-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.g-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.g-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.g-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.g-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.g-auto {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.g-12 {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.s-2 { grid-column: span 2; }
.s-3 { grid-column: span 3; }
.s-4 { grid-column: span 4; }
.s-5 { grid-column: span 5; }
.s-6 { grid-column: span 6; }
.s-7 { grid-column: span 7; }
.s-8 { grid-column: span 8; }
.s-9 { grid-column: span 9; }
.s-12 { grid-column: span 12; }
.r-2 { grid-row: span 2; }
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.wrap {
  flex-wrap: wrap;
}
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 18px; }
.gap-1 { gap: 6px; }
.gap-2 { gap: 12px; }
.grow { flex: 1; min-width: 0; }

/* ---------------------------------------------------------- 07 Kart */
.card {
  position: relative;
  min-width: 0;
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(140, 190, 255, 0.05), var(--shadow-2);
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.card::before {
  /* üst kenar parıltısı */
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110, 180, 255, 0.45), transparent);
  opacity: 0.25;
  pointer-events: none;
}
.card.is-hover:hover,
.card.hoverable:hover {
  border-color: var(--line-2);
  box-shadow: inset 0 1px 0 rgba(140, 190, 255, 0.07), 0 8px 22px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(60, 140, 255, 0.08);
}
.card.hoverable:hover {
  transform: translateY(-1px);
}
.card--glow {
  border-color: rgba(70, 150, 255, 0.32);
  box-shadow: inset 0 0 18px rgba(31, 123, 255, 0.05), 0 0 14px rgba(31, 123, 255, 0.08);
}
.card--flat {
  background: rgba(7, 18, 40, 0.6);
  box-shadow: none;
}
.card__head {
  display: flex;
  flex-wrap: wrap; /* on narrow cards the tools (evidence, buttons) move under the title instead of sticking out */
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px var(--card-pad) 0;
  min-height: 40px;
}
.card__title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--text);
}
.card__title small {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
}
.card__title .ic {
  align-self: center;
  color: var(--blue-2);
}
.card__tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
.card__body {
  padding: 12px var(--card-pad) var(--card-pad);
}
.card__body--flush {
  padding: 8px 0 4px;
}
.card__foot {
  padding: 9px var(--card-pad) 11px;
  border-top: 1px solid var(--line);
}
/* footer rows (source note + evidence buttons) wrap on narrow cards instead of pushing buttons out */
.card__foot.row-between,
.card__foot > .row,
.card__foot .row-between {
  flex-wrap: wrap;
  row-gap: 6px;
}
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--blue-2);
  white-space: nowrap;
}
.link-more:hover {
  color: var(--blue-3);
}
.link-more .ic {
  width: 13px;
  height: 13px;
  transition: transform var(--t-fast);
}
.link-more:hover .ic {
  transform: translateX(3px);
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 12px 0;
}
.sweep-border {
  position: relative;
  isolation: isolate;
}
.sweep-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--ayb-angle, 0deg), transparent 0deg, rgba(90, 170, 255, 0.4) 40deg, transparent 90deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: ayb-sweep 12s linear infinite;
}
@property --ayb-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ---------------------------------------------------------- 08 KPI */
.kpi {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: var(--card-pad);
  overflow: hidden;
}
.kpi__icon {
  position: relative;
  width: var(--icon-tile);
  height: var(--icon-tile);
  border-radius: var(--r-md);
  flex: none;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, rgba(60, 150, 255, 0.85), rgba(10, 70, 210, 0.85));
  box-shadow: 0 0 0 1px rgba(120, 190, 255, 0.25), 0 3px 10px rgba(18, 104, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.kpi__icon .ic {
  width: 17px;
  height: 17px;
}
.kpi__icon--green {
  background: linear-gradient(145deg, #2fe3a0, #0f9a62);
  box-shadow: 0 0 0 1px rgba(120, 255, 200, 0.22), 0 3px 10px rgba(20, 200, 120, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.kpi__icon--red {
  background: linear-gradient(145deg, #ff6b7c, #c81e38);
  box-shadow: 0 0 0 1px rgba(255, 140, 150, 0.22), 0 3px 10px rgba(240, 50, 80, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.kpi__icon--amber {
  background: linear-gradient(145deg, #ffc94d, #d9840b);
  box-shadow: 0 0 0 1px rgba(255, 210, 120, 0.22), 0 3px 10px rgba(240, 160, 30, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.kpi__icon--violet {
  background: linear-gradient(145deg, #a98bff, #5a35d6);
  box-shadow: 0 0 0 1px rgba(190, 170, 255, 0.22), 0 3px 10px rgba(120, 80, 240, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.kpi__icon--cyan {
  background: linear-gradient(145deg, #4fe6ff, #0d8fb8);
  box-shadow: 0 0 0 1px rgba(120, 230, 255, 0.22), 0 3px 10px rgba(20, 180, 230, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.kpi__icon--gold {
  background: linear-gradient(145deg, #ffe08a, #c48a12);
}
.kpi__body {
  min-width: 0;
  flex: 1;
}
.kpi__body {
  container-type: inline-size;
}
.kpi__value {
  /* long values (e.g. "€263.65/kg") scale down in narrow KPI cards instead of being cut off */
  font-size: min(var(--fs-kpi), 17cqi);
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: var(--lh-tight);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.kpi__label {
  margin-top: 2px;
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.kpi__delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 3px;
  font-size: var(--fs-xs);
  font-weight: 600;
}
.kpi__delta span {
  color: var(--text-3);
  font-weight: 500;
}
.kpi__spark {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 80px;
  height: 28px;
  opacity: 0.7;
}
.kpi--tint-red {
  background: linear-gradient(135deg, rgba(120, 20, 40, 0.3), rgba(40, 8, 20, 0.6));
  border-color: rgba(255, 80, 100, 0.26);
}
.kpi--tint-amber {
  background: linear-gradient(135deg, rgba(110, 72, 8, 0.3), rgba(40, 26, 4, 0.6));
  border-color: rgba(246, 179, 36, 0.26);
}
.kpi--tint-green {
  background: linear-gradient(135deg, rgba(10, 90, 60, 0.28), rgba(4, 34, 24, 0.6));
  border-color: rgba(46, 219, 135, 0.24);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat__value {
  font-size: var(--fs-stat);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: var(--fs-xs);
  color: var(--text-3);
}

/* ---------------------------------------------------------- 09 Düğme */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: var(--ctl-h);
  padding: 0 12px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: var(--fs-sm);
  white-space: nowrap;
  border: 1px solid var(--line-2);
  background: rgba(10, 26, 56, 0.7);
  color: var(--text);
  overflow: hidden;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-fast), background var(--t-fast);
}
/* a button never grows wider than its container: a long label wraps onto a second line instead of being cut */
.btn {
  max-width: 100%;
  min-width: min-content; /* never squeezed narrower than its longest word */
}
.btn:not(.btn--icon) {
  height: auto;
  min-height: var(--ctl-h);
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  padding-block: 4px;
}
.btn--xs:not(.btn--icon) {
  min-height: var(--ctl-h-xs);
  padding-block: 2px;
}
.btn--sm:not(.btn--icon) {
  min-height: var(--ctl-h-sm);
  padding-block: 3px;
}
.btn--lg:not(.btn--icon) {
  min-height: var(--ctl-h-lg);
}
/* rows that end in an evidence button wrap on narrow cards so the button stays inside */
.row-between:has(.evidence) {
  flex-wrap: wrap;
  row-gap: 6px;
}
.btn:hover {
  border-color: var(--line-3);
  background: rgba(20, 50, 100, 0.7);
}
.btn:active {
  transform: scale(0.98);
}
.btn .ic {
  width: 14px;
  height: 14px;
}
.btn--primary {
  border-color: rgba(120, 190, 255, 0.4);
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 2px 8px rgba(18, 104, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn--primary:hover {
  background: linear-gradient(180deg, #46a0ff 0%, #1f76ff 55%, #0e5ae6 100%);
  box-shadow: 0 3px 12px rgba(18, 104, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn--success {
  border-color: rgba(46, 219, 135, 0.6);
  background: linear-gradient(180deg, #27c97a, #129358);
  color: #fff;
}
.btn--danger {
  border-color: rgba(255, 79, 97, 0.5);
  background: rgba(255, 79, 97, 0.12);
  color: #ffb3bc;
}
.btn--ghost {
  border-color: transparent;
  background: transparent;
  color: var(--text-2);
}
.btn--ghost:hover {
  background: rgba(40, 90, 180, 0.16);
  color: #fff;
}
.btn--gold {
  border-color: rgba(244, 201, 93, 0.6);
  background: linear-gradient(180deg, #ffd977, #d59a1b);
  color: #1f1300;
}
.btn--sm {
  height: var(--ctl-h-sm);
  padding: 0 10px;
  font-size: var(--fs-xs);
  border-radius: var(--r-sm);
}
.btn--xs {
  height: var(--ctl-h-xs);
  padding: 0 8px;
  font-size: var(--fs-xs);
  border-radius: 6px;
}
.btn--lg {
  height: var(--ctl-h-lg);
  padding: 0 16px;
  font-size: 13px;
  border-radius: var(--r-sm);
}
.btn--block {
  width: 100%;
}
.btn--icon {
  width: var(--ctl-h);
  padding: 0;
}
.btn[disabled],
.btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-group {
  display: inline-flex;
  flex-wrap: wrap; /* many filters on a narrow card wrap instead of sticking out */
  max-width: 100%;
  padding: 2px;
  gap: 2px;
  border-radius: var(--r-sm);
  background: rgba(6, 16, 36, 0.8);
  border: 1px solid var(--line);
}
.btn-group button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: var(--ctl-h-xs);
  padding: 0 9px;
  border-radius: 6px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-3);
  transition: all var(--t-fast);
}
.btn-group button:hover {
  color: #fff;
}
.btn-group button.is-active {
  color: #fff;
  background: var(--grad-btn);
  box-shadow: 0 1px 4px rgba(18, 104, 255, 0.22);
}

/* ---------------------------------------------------------- 10 Form */
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.field > label,
.field__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-3);
}
.input,
.select,
.textarea {
  width: 100%;
  height: var(--ctl-h);
  padding: 0 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(5, 14, 32, 0.85);
  color: var(--text);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.textarea {
  height: auto;
  min-height: 76px;
  padding: 8px 10px;
  resize: vertical;
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--line-3);
  box-shadow: 0 0 0 2px rgba(31, 123, 255, 0.14);
}
.input::placeholder,
.textarea::placeholder {
  color: var(--text-4);
}
.select {
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c8fb0' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  cursor: pointer;
}
.select option {
  background: #071530;
}
.select--sm,
.input--sm {
  height: var(--ctl-h-sm);
  font-size: var(--fs-xs);
  border-radius: var(--r-sm);
}
.input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--ctl-h);
  padding: 0 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(5, 14, 32, 0.85);
}
.input-group input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
}
.input-group:focus-within {
  border-color: var(--line-3);
}
.filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filters .select,
.filters .input {
  width: auto;
  min-width: 140px;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-2);
}
.check input {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1px solid var(--line-2);
  background: rgba(5, 14, 32, 0.9);
  display: grid;
  place-items: center;
  flex: none;
  cursor: pointer;
}
.check input:checked {
  background: var(--blue);
  border-color: var(--blue-2);
}
.check input:checked::after {
  content: '';
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.switch {
  position: relative;
  width: 36px;
  height: 20px;
  flex: none;
  border-radius: 999px;
  background: rgba(60, 90, 140, 0.45);
  border: 1px solid var(--line);
  transition: background var(--t-base);
  cursor: pointer;
}
.switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #cfe0ff;
  transition: transform var(--t-base) var(--ease-spring);
}
.switch.is-on {
  background: var(--blue);
}
.switch.is-on::after {
  transform: translateX(16px);
  background: #fff;
}
.range {
  width: 100%;
  accent-color: var(--blue);
}

/* ---------------------------------------------------------- 11 Sekme · çip · rozet */
.tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--text-2);
  border: 1px solid var(--line);
  background: rgba(6, 16, 36, 0.6);
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap;
}
.tab:hover {
  color: #fff;
  border-color: var(--line-2);
}
.tab.is-active {
  color: #fff;
  border-color: rgba(120, 190, 255, 0.42);
  background: var(--grad-btn);
  box-shadow: 0 1px 6px rgba(18, 104, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.tab__count {
  font-size: var(--fs-2xs);
  font-weight: 650;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}
.tab.is-active .tab__count {
  background: rgba(0, 0, 0, 0.25);
}
.tabs--line {
  gap: 2px;
  border-bottom: 1px solid var(--line);
}
.tabs--line .tab {
  border: 0;
  border-radius: 0;
  background: none;
  height: 34px;
  box-shadow: none;
  position: relative;
}
.tabs--line .tab.is-active {
  background: none;
  color: #fff;
}
.tabs--line .tab.is-active::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-2);
}
.tab-panel[hidden] {
  display: none !important;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: var(--fs-xs);
  font-weight: 550;
  line-height: 1.3;
  color: var(--text-2);
  background: rgba(40, 80, 150, 0.2);
  border: 1px solid var(--line);
  white-space: nowrap;
  max-width: 100%;
}
/* a chip longer than its container (long codes, source names) wraps instead of sticking out */
.chip {
  white-space: normal;
  overflow-wrap: anywhere;
}
.chip .ic {
  width: 12px;
  height: 12px;
}
.chip--blue {
  color: #9ccaff;
  background: rgba(31, 123, 255, 0.16);
  border-color: rgba(70, 150, 255, 0.35);
}
.chip--gold {
  color: var(--gold);
  background: rgba(244, 201, 93, 0.12);
  border-color: rgba(244, 201, 93, 0.35);
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 20px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  border: 1px solid transparent;
  max-width: 100%;
}
/* long pill texts (codes, notes) wrap inside their container instead of sticking out */
.pill {
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}
/* inside tables the column sizes itself to the badge: keep badges and chips on one line there */
table .pill,
table .chip {
  white-space: nowrap;
  overflow-wrap: normal;
}
.pill .ic {
  width: 12px;
  height: 12px;
}
.pill--green {
  color: #7ff0b6;
  background: rgba(46, 219, 135, 0.14);
  border-color: rgba(46, 219, 135, 0.38);
}
.pill--red {
  color: #ff9aa6;
  background: rgba(255, 79, 97, 0.15);
  border-color: rgba(255, 79, 97, 0.4);
}
.pill--amber {
  color: #ffd27a;
  background: rgba(246, 179, 36, 0.14);
  border-color: rgba(246, 179, 36, 0.38);
}
.pill--blue {
  color: #9ccaff;
  background: rgba(31, 123, 255, 0.18);
  border-color: rgba(70, 150, 255, 0.42);
}
.pill--violet {
  color: #c9b6ff;
  background: rgba(143, 107, 255, 0.16);
  border-color: rgba(143, 107, 255, 0.4);
}
.pill--cyan {
  color: #8cecff;
  background: rgba(47, 212, 240, 0.13);
  border-color: rgba(47, 212, 240, 0.38);
}
.pill--gray {
  color: var(--text-2);
  background: rgba(120, 140, 180, 0.12);
  border-color: rgba(120, 140, 180, 0.3);
}
.pill--solid-green {
  color: #04140c;
  background: var(--green);
}
.pill--solid-red {
  color: #fff;
  background: var(--red);
}
.pill--solid-amber {
  color: #1d1300;
  background: var(--amber);
}
.pill--solid-blue {
  color: #fff;
  background: var(--blue);
}
.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(46, 219, 135, 0.35);
  animation: ayb-live 4s infinite;
  flex: none;
}
.score {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  font-weight: 700;
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
  color: #04140c;
  background: linear-gradient(180deg, #4ff0a4, #1fbf73);
  box-shadow: none;
}
.score--mid {
  background: linear-gradient(180deg, #ffe07a, #e5a514);
  box-shadow: none;
  color: #1d1300;
}
.score--low {
  background: linear-gradient(180deg, #ff8291, #e23048);
  box-shadow: none;
  color: #fff;
}
.evidence {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid currentColor;
  background: transparent;
  transition: background var(--t-fast);
}
.evidence:hover {
  background: rgba(255, 255, 255, 0.06);
}
.evidence--obs {
  color: var(--obs);
}
.evidence--der {
  color: var(--der);
}
.evidence--pre {
  color: var(--pre);
  border-style: dashed;
}
.evidence .ic {
  width: 11px;
  height: 11px;
}
.tag-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------- 12 Tablo */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
}
.table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  background: rgba(6, 16, 36, 0.92);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table th.sortable {
  cursor: pointer;
  user-select: none;
}
.table th.sortable:hover {
  color: var(--text);
}
.table th .ic {
  display: inline-block;
  vertical-align: -2px;
  width: 12px;
  height: 12px;
  margin-left: 3px;
}
.table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(64, 120, 214, 0.1);
  vertical-align: middle;
}
.table tbody tr {
  transition: background var(--t-fast);
}
.table tbody tr:hover {
  background: rgba(31, 123, 255, 0.07);
}
.table tbody tr.is-selected {
  background: rgba(31, 123, 255, 0.14);
  box-shadow: inset 3px 0 0 var(--blue-2);
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table .r {
  text-align: right;
}
.table .c {
  text-align: center;
}
.table--compact td {
  padding: 6px 10px;
}
.table--compact th {
  padding: 7px 10px;
}
.cell-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.cell-main__title {
  font-weight: 600;
  color: var(--text);
}
.cell-main__sub {
  font-size: 11px;
  color: var(--text-3);
}
.thumb {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex: none;
  overflow: hidden;
  border: 1px solid var(--line);
}
.thumb svg {
  width: 100%;
  height: 100%;
}

/* ---------------------------------------------------------- 13 Liste */
.list {
  display: flex;
  flex-direction: column;
}
.list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px var(--card-pad);
  border-bottom: 1px solid rgba(64, 120, 214, 0.1);
  transition: background var(--t-fast);
}
.list-item:last-child {
  border-bottom: 0;
}
.list-item:hover {
  background: rgba(31, 123, 255, 0.06);
}
.list-item.is-active {
  background: var(--grad-active);
  box-shadow: inset 3px 0 0 var(--blue-2);
}
.list-item__icon {
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  flex: none;
  display: grid;
  place-items: center;
  color: var(--blue-3);
  background: rgba(31, 123, 255, 0.14);
  border: 1px solid rgba(70, 150, 255, 0.3);
}
.list-item__icon .ic {
  width: 15px;
  height: 15px;
}
.list-item__title {
  font-weight: 600;
  font-size: 12.5px;
}
.list-item__sub {
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.list-item__meta {
  margin-left: auto;
  text-align: right;
  font-size: 11.5px;
  color: var(--text-3);
  white-space: nowrap;
}
.side-list .list-item {
  padding: 8px 12px;
  margin: 1px 8px;
  border-radius: 9px;
  border-bottom: 0;
}
.count {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.legend--row {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 14px;
}
.legend__item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere; /* long names wrap, the value keeps its place on the right */
  font-size: 12px;
  color: var(--text-2);
}
.legend__swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: none;
}
.legend__value {
  flex: none;
  margin-left: auto;
  font-weight: 650;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  font-size: 12.5px;
}
.kv dt {
  color: var(--text-3);
}
.kv dd {
  margin: 0;
  min-width: 0;
  text-align: right;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------- 14 İlerleme */
.bar {
  position: relative;
  height: 8px;
  border-radius: 99px;
  background: rgba(70, 110, 180, 0.2);
  overflow: hidden;
}
.bar > span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #1561ff, #3fb2ff);
  box-shadow: 0 0 4px rgba(63, 178, 255, 0.22);
  transition: width 1.2s var(--ease-out);
}
.bar--green > span {
  background: linear-gradient(90deg, #12a565, #44f0a0);
  box-shadow: 0 0 4px rgba(46, 219, 135, 0.2);
}
.bar--amber > span {
  background: linear-gradient(90deg, #d98a0b, #ffd060);
}
.bar--red > span {
  background: linear-gradient(90deg, #c51d36, #ff7385);
}
.bar--violet > span {
  background: linear-gradient(90deg, #5a35d6, #b09bff);
}
.bar--lg {
  height: 12px;
}
.bar--sm {
  height: 5px;
}
.stepper {
  display: flex;
  align-items: flex-start;
}
.step {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-3);
}
.step::before {
  content: '';
  position: absolute;
  top: 13px;
  left: calc(-50% + 16px);
  right: calc(50% + 16px);
  height: 2px;
  background: rgba(70, 110, 180, 0.3);
}
.step:first-child::before {
  display: none;
}
.step.is-done::before,
.step.is-current::before {
  background: linear-gradient(90deg, var(--green), var(--blue-2));
}
.step__dot {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--text-3);
  background: rgba(8, 20, 44, 0.95);
  border: 2px solid rgba(80, 120, 190, 0.45);
}
.step.is-done .step__dot {
  color: #04140c;
  background: var(--green);
  border-color: var(--green);
}
.step.is-current .step__dot {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue-3);
  box-shadow: 0 0 0 4px rgba(31, 123, 255, 0.16);
}
.step__label {
  font-weight: 650;
  color: var(--text-2);
}
.step.is-current .step__label,
.step.is-done .step__label {
  color: var(--text);
}

/* ---------------------------------------------------------- 15 Avatar · bayrak */
.avatar {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-weight: 650;
  font-size: var(--fs-xs);
  color: #fff;
  background: linear-gradient(135deg, var(--a1, #3a8dff), var(--a2, #6b3bff));
  box-shadow: 0 0 0 2px rgba(5, 14, 32, 0.9), 0 0 0 3px rgba(80, 150, 255, 0.22);
  overflow: hidden;
}
.avatar--sm {
  width: 26px;
  height: 26px;
  font-size: 10px;
}
.avatar--lg {
  width: 46px;
  height: 46px;
  font-size: 15px;
}
.avatar--xl {
  width: 68px;
  height: 68px;
  font-size: 21px;
}
.avatar--sq {
  border-radius: 12px;
}
.avatar__status {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--bg-1);
}
.avatar-stack {
  display: flex;
}
.avatar-stack .avatar {
  margin-left: -8px;
}
.avatar-stack .avatar:first-child {
  margin-left: 0;
}
.avatar-stack__more {
  margin-left: 6px;
  align-self: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
}
.flag {
  width: 22px;
  height: 16px;
  flex: none;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 2px 6px rgba(0, 0, 0, 0.4);
}
.flag--round {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}
.flag--lg {
  width: 30px;
  height: 22px;
}
.logo-tile {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--a1, #1b3c74), var(--a2, #0b1a36));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---------------------------------------------------------- 16 Grafik */
.chart {
  position: relative;
  width: 100%;
}
.chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart .axis text {
  fill: var(--text-4);
  font-size: 10.5px;
  font-family: var(--font);
}
.chart .grid-line {
  stroke: rgba(90, 130, 200, 0.12);
  stroke-dasharray: 3 4;
}
.chart .series-line {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart .is-drawing {
  animation: ayb-draw 1.8s var(--ease-out) forwards;
}
.chart .bar-rect {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: ayb-grow-y 1s var(--ease-out) both;
}
.chart .bar-rect-h {
  transform-box: fill-box;
  transform-origin: left;
  animation: ayb-grow-x 1s var(--ease-out) both;
}
.chart .area {
  opacity: 0;
  animation: ayb-fade 1.2s 0.5s var(--ease) forwards;
}
.chart .dot-end {
  animation: ayb-pop 0.5s 1.6s var(--ease-spring) both;
}
.chart-tip {
  position: fixed;
  z-index: 500;
  pointer-events: none;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 11.5px;
  background: rgba(4, 12, 28, 0.96);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2);
  opacity: 0;
  transform: translate(-50%, calc(-100% - 12px));
  transition: opacity var(--t-fast);
  white-space: nowrap;
}
.chart-tip.is-on {
  opacity: 1;
}
.chart-tip b {
  font-variant-numeric: tabular-nums;
}
.donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  pointer-events: none;
}
.donut-center__value {
  font-size: var(--fs-kpi);
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.donut-center__label {
  font-size: 11px;
  color: var(--text-3);
}
.spark {
  width: 100%;
  height: 32px;
}

/* ---------------------------------------------------------- 17 Harita */
.map {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-md);
}
.map svg {
  width: 100%;
  height: auto;
}
.map .land {
  fill: rgba(30, 70, 140, 0.32);
  stroke: rgba(90, 150, 240, 0.28);
  stroke-width: 0.5;
  transition: fill var(--t-base);
}
.map .land:hover {
  fill: rgba(60, 130, 255, 0.5);
}
.map .land.is-hot {
  stroke: rgba(150, 200, 255, 0.5);
}
.map .dotland {
  fill: rgba(80, 150, 255, 0.55);
}
.map .arc {
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 5 7;
  animation: ayb-dash 3.2s linear infinite;
}
.map .arc-glow {
  fill: none;
  stroke-width: 4;
  opacity: 0.18;
  filter: blur(2px);
}
.map .hub {
  animation: ayb-hub 5s var(--ease-out) infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.map-label {
  position: absolute;
  transform: translate(-50%, -100%);
  pointer-events: none;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(3, 10, 24, 0.85);
  border: 1px solid var(--line-2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.map-label small {
  display: block;
  font-weight: 500;
  color: var(--text-3);
}
.map-overlay {
  position: absolute;
  z-index: 2;
}
.globe {
  width: 100%;
  height: 100%;
  display: block;
}
.scale-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-3);
}
.scale-legend__bar {
  width: 140px;
  height: 8px;
  border-radius: 99px;
}

/* ---------------------------------------------------------- 18 Çekmece · modal · palet */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(1, 5, 14, 0.66);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease);
}
.scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 410;
  width: min(680px, 94vw);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #071733 0%, #030b1d 100%);
  border-left: 1px solid var(--line-2);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5), inset 2px 0 0 rgba(47, 134, 255, 0.4);
  transform: translateX(105%);
  transition: transform var(--t-slow) var(--ease);
}
.drawer.is-open {
  transform: none;
}
.drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 12, 28, 0.6);
  backdrop-filter: blur(10px);
}
.drawer__body {
  flex: 1;
  overflow: auto;
  padding: 14px 18px 24px;
}
.drawer h2 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  margin-top: 2px;
}
.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 420;
  width: min(560px, 92vw);
  max-height: 88vh;
  overflow: auto;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, #0a1c3d 0%, #040d22 100%);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-3), 0 0 24px rgba(31, 123, 255, 0.08);
  transform: translate(-50%, -46%) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: all var(--t-base) var(--ease);
}
.modal.is-open {
  transform: translate(-50%, -50%);
  opacity: 1;
  pointer-events: auto;
}
.modal__head {
  padding: 16px 18px 4px;
}
.modal__body {
  padding: 10px 18px 16px;
}
.modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--line);
}
.palette {
  top: 14vh;
  transform: translate(-50%, -8px) scale(0.98);
  width: min(720px, 94vw);
  padding: 0;
}
.palette.is-open {
  transform: translate(-50%, 0);
}
.palette__input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.palette__input input {
  flex: 1;
  border: 0;
  outline: 0;
  background: none;
  font-size: var(--fs-md);
}
.palette__results {
  max-height: 52vh;
  overflow: auto;
  padding: 8px;
}
.palette__section {
  padding: 10px 10px 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-4);
}
.palette__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  text-align: left;
  color: var(--text-2);
}
.palette__item.is-active,
.palette__item:hover {
  background: var(--grad-active);
  color: #fff;
}
.palette__item small {
  margin-left: auto;
  color: var(--text-4);
}
.palette__foot {
  display: flex;
  gap: 14px;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--text-4);
}
.ask-answer {
  margin: 8px;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid rgba(70, 150, 255, 0.26);
  background: linear-gradient(135deg, rgba(31, 123, 255, 0.07), rgba(143, 107, 255, 0.04));
}
.typing {
  display: inline-flex;
  gap: 4px;
}
.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-3);
  animation: ayb-typing 1.2s infinite;
}
.typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.typing i:nth-child(3) {
  animation-delay: 0.3s;
}

/* ---------------------------------------------------------- 19 Bildirim · ipucu */
.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 340px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(6, 18, 40, 0.97);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-3);
  animation: ayb-toast-in 0.45s var(--ease-spring) both;
}
.toast.is-leaving {
  animation: ayb-toast-out 0.3s var(--ease) forwards;
}
.toast .ic {
  color: var(--green);
}
.tip {
  position: fixed;
  z-index: 700;
  max-width: 280px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  background: rgba(3, 10, 24, 0.97);
  border: 1px solid var(--line-2);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-fast);
}
.tip.is-on {
  opacity: 1;
}
.empty {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 24px 16px;
  text-align: center;
  color: var(--text-3);
}
.empty .ic {
  width: 24px;
  height: 24px;
  color: var(--blue-2);
}
.notice {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--text-2);
  background: rgba(31, 123, 255, 0.06);
  border: 1px solid rgba(70, 150, 255, 0.28);
}
.notice .ic {
  color: var(--blue-2);
  margin-top: 1px;
}
.notice--amber {
  background: rgba(246, 179, 36, 0.08);
  border-color: rgba(246, 179, 36, 0.3);
}
.notice--amber .ic {
  color: var(--amber);
}
.notice--green {
  background: rgba(46, 219, 135, 0.08);
  border-color: rgba(46, 219, 135, 0.3);
}
.notice--green .ic {
  color: var(--green);
}
.lock-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-3);
}
.lock-note .ic {
  width: 13px;
  height: 13px;
  color: var(--amber);
}

/* ---------------------------------------------------------- 20 Zaman çizelgesi */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 4px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue-2), rgba(46, 219, 135, 0.6), rgba(70, 110, 180, 0.2));
}
.tl-item {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 8px 0;
}
.tl-item__dot {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(8, 20, 44, 0.95);
  border: 2px solid var(--blue-2);
  box-shadow: 0 0 5px rgba(59, 149, 255, 0.2);
}
.tl-item__dot .ic {
  width: 13px;
  height: 13px;
}
.tl-item__dot--green {
  border-color: var(--green);
  box-shadow: 0 0 5px rgba(46, 219, 135, 0.2);
}
.tl-item__dot--amber {
  border-color: var(--amber);
  box-shadow: 0 0 5px rgba(246, 179, 36, 0.2);
}
.tl-item__dot--red {
  border-color: var(--red);
  box-shadow: 0 0 5px rgba(255, 79, 97, 0.2);
}
.tl-item__time {
  font-size: 11px;
  color: var(--text-3);
}
.route-progress {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 4px;
}
.route-progress::before {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 2px;
  background: rgba(70, 110, 180, 0.3);
}
.route-progress__fill {
  position: absolute;
  left: 6px;
  top: 50%;
  height: 2px;
  width: var(--p, 50%);
  background: linear-gradient(90deg, var(--green), var(--cyan));
}
.route-progress__node {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(110, 150, 220, 0.6);
  background: var(--bg-2);
}
.route-progress__node.is-done {
  border-color: var(--cyan);
  background: var(--cyan);
}
.route-progress__node.is-current {
  border-color: #fff;
  background: var(--cyan);
}

/* ---------------------------------------------------------- 21 Sohbet */
.chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  overflow: auto;
}
.msg {
  display: flex;
  gap: 10px;
  max-width: 88%;
  animation: ayb-fade-up 0.45s var(--ease-out) both;
}
.msg--me {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.msg__bubble {
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.55;
  background: rgba(14, 34, 70, 0.9);
  border: 1px solid var(--line);
}
.msg--me .msg__bubble {
  background: linear-gradient(135deg, rgba(31, 123, 255, 0.45), rgba(15, 80, 210, 0.45));
  border-color: rgba(90, 160, 255, 0.45);
}
.msg--ai .msg__bubble {
  border-color: rgba(70, 150, 255, 0.28);
}
.msg__time {
  margin-top: 6px;
  font-size: 10.5px;
  color: var(--text-4);
}
.msg ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.msg li {
  display: flex;
  gap: 7px;
}
.msg li .ic {
  width: 15px;
  height: 15px;
  color: var(--green);
  margin-top: 1px;
}
.composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------- 22 Takvim · kanban */
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-size: 11.5px;
}
.calendar__dow {
  padding: 4px;
  text-align: center;
  font-weight: 600;
  color: var(--text-4);
}
.calendar__day {
  position: relative;
  min-height: 34px;
  padding: 5px;
  border-radius: 7px;
  text-align: center;
  color: var(--text-2);
  background: rgba(8, 20, 44, 0.5);
  border: 1px solid transparent;
}
.calendar__day.is-muted {
  color: var(--text-4);
  background: transparent;
}
.calendar__day.is-event {
  border-color: rgba(70, 150, 255, 0.45);
  background: rgba(31, 123, 255, 0.18);
  color: #fff;
}
.calendar__day.is-today {
  background: var(--grad-btn);
  color: #fff;
}
.calendar__day i {
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--cyan);
}
.kanban {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.kanban__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: var(--r-md);
  background: rgba(6, 16, 36, 0.6);
  border: 1px solid var(--line);
  min-height: 200px;
}
.kanban__col.is-over {
  border-color: var(--line-3);
  background: rgba(31, 123, 255, 0.1);
}
.kanban__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 6px;
  font-weight: 650;
}
.kanban-card {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(14, 32, 66, 0.9);
  border: 1px solid var(--line);
  cursor: grab;
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.kanban-card:hover {
  border-color: var(--line-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}
.kanban-card.is-dragging {
  opacity: 0.5;
}
.tile-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.tile-media svg {
  width: 100%;
  height: 100%;
  transition: transform 0.8s var(--ease);
}
.hoverable:hover .tile-media svg,
.tile-media:hover svg {
  transform: scale(1.03);
}
.media-card {
  overflow: hidden;
}
.media-card__img {
  height: 104px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.media-card__img svg {
  width: 100%;
  height: 100%;
  transition: transform 0.8s var(--ease);
}
.media-card:hover .media-card__img svg {
  transform: scale(1.03);
}
.code {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: #cfe0ff;
  background: rgba(2, 8, 20, 0.9);
  border: 1px solid var(--line);
  overflow-x: auto;
  white-space: pre;
}
.code .k {
  color: #7cc0ff;
}
.code .s {
  color: #7ff0b6;
}
.code .c {
  color: var(--text-4);
}
.code .n {
  color: #ffd27a;
}

/* ---------------------------------------------------------- 23 Hareket */
@keyframes ayb-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes ayb-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes ayb-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes ayb-grow-y {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
@keyframes ayb-grow-x {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes ayb-pop {
  from { opacity: 0; transform: scale(0.2); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes ayb-ring {
  0% { opacity: 0.7; transform: scale(0.92); }
  70%, 100% { opacity: 0; transform: scale(1.18); }
}
@keyframes ayb-live {
  0% { box-shadow: 0 0 0 0 rgba(46, 219, 135, 0.6); }
  70% { box-shadow: 0 0 0 5px rgba(46, 219, 135, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 219, 135, 0); }
}
@keyframes ayb-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes ayb-pulse-soft {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}
@keyframes ayb-dash {
  to { stroke-dashoffset: -24; }
}
@keyframes ayb-hub {
  0% { opacity: 0.85; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(3); }
}
@keyframes ayb-sweep {
  to { --ayb-angle: 360deg; }
}
@keyframes ayb-shine {
  0%, 70% { transform: translateX(-140%); }
  100% { transform: translateX(160%); }
}
@keyframes ayb-btn-shine {
  0%, 70% { left: -60%; }
  100% { left: 130%; }
}
@keyframes ayb-edge {
  from { background-position: 0 0; }
  to { background-position: 0 200%; }
}
@keyframes ayb-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
@keyframes ayb-toast-in {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes ayb-toast-out {
  to { opacity: 0; transform: translateX(30px); }
}
@keyframes ayb-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes ayb-spin {
  to { transform: rotate(360deg); }
}
@keyframes ayb-flash-up {
  0% { background: rgba(46, 219, 135, 0.35); }
  100% { background: transparent; }
}
@keyframes ayb-flash-down {
  0% { background: rgba(255, 79, 97, 0.35); }
  100% { background: transparent; }
}
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.float {
  animation: ayb-float 9s ease-in-out infinite;
}
.spin {
  animation: ayb-spin 0.9s linear infinite;
}
.flash-up {
  animation: ayb-flash-up 1.2s var(--ease);
}
.flash-down {
  animation: ayb-flash-down 1.2s var(--ease);
}
.shimmer-text {
  background: linear-gradient(90deg, #8fd0ff 0%, #ffffff 30%, #3b95ff 60%, #8fd0ff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ayb-text-shimmer 14s linear infinite;
}
@keyframes ayb-text-shimmer {
  to { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .ayb-particles,
  .sweep-border::after,
  .kpi__icon::after,
  .btn--primary::after {
    display: none !important;
  }
  .float,
  .shimmer-text,
  .dot-live,
  .map .arc,
  .map .hub,
  .aybi__halo,
  .aybi-figure img,
  .aybi-figure::after {
    animation: none !important;
  }
}

/* ---------------------------------------------------------- 24 Duyarlı düzen */
@media (max-width: 1500px) {
  .g-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1280px) {
  .app { grid-template-columns: var(--sidebar-w-collapsed) minmax(0, 1fr); }
  .app .nav-item__label,
  .app .nav-item__badge,
  .app .nav-item__new,
  .app .nav-group__title span,
  .app .plan-card,
  .app .brand-lockup__text { display: none; }
  .app .nav-item { justify-content: center; padding: 0; }
  .app .nav-group.is-closed .nav-group__items { display: block; }
  .app.is-expanded { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .app.is-expanded .nav-item__label,
  .app.is-expanded .brand-lockup__text,
  .app.is-expanded .nav-group__title span { display: initial; }
  .app.is-expanded .nav-item { justify-content: flex-start; padding: 0 9px; }
  .g-12 > [class*='s-'] { grid-column: span 12; }
  .g-12 > .s-3,
  .g-12 > .s-4 { grid-column: span 6; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .app,
  .app.is-collapsed { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed;
    left: 0;
    width: var(--sidebar-w);
    transform: translateX(-102%);
    transition: transform var(--t-slow) var(--ease);
  }
  .app.is-mobile-open .sidebar { transform: none; }
  .app .nav-item__label,
  .app .nav-item__badge,
  .app .brand-lockup__text,
  .app .nav-group__title span,
  .app .plan-card { display: initial; }
  .app .nav-item { justify-content: flex-start; padding: 0 9px; }
  .topbar { padding: 0 14px; }
  .user-btn__text,
  .demo-pill,
  .lang-btn span { display: none; }
  .page { padding: 14px 16px 32px; }
  .g-2,
  .g-3,
  .g-4,
  .g-5,
  .g-6 { grid-template-columns: minmax(0, 1fr); }
  .g-12 > [class*='s-'] { grid-column: span 12; }
  .page-head h1 { font-size: 20px; }
}
@media (min-width: 901px) {
  .only-mobile { display: none !important; }
}

/* ---------------------------------------------------------- 25 Açılış · favori · herkese açık kabuk */
body:not(.ayb-ready) #main,
body:not(.ayb-ready) .pub-main {
  opacity: 0;
}
html.i18n-hold body:not(.ayb-ready) {
  opacity: 0;
}
body.ayb-ready #main,
body.ayb-ready .pub-main {
  animation: ayb-fade 0.35s var(--ease-out);
}
[data-fav].is-fav,
[data-fav].is-fav .ic {
  color: var(--gold);
  fill: var(--gold);
}
.pub-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(2, 8, 20, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%);
}
.pub-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1360px;
  height: var(--pubbar-h);
  margin: 0 auto;
  padding: 0 24px;
}
.pub-header .brand-mark {
  width: 34px;
}
.pub-header .brand-lockup__word {
  height: 12px;
}
.pub-header .brand-lockup__trade {
  height: 8px;
}
.pub-header .brand-lockup,
.pub-nav,
.pub-actions {
  flex: none;
}
.pub-nav {
  display: flex;
  gap: 4px;
  margin-right: auto;
}
.pub-nav a {
  padding: 6px 10px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-weight: 500;
  font-size: var(--fs-base);
  white-space: nowrap;
}
.pub-nav a:hover,
.pub-nav a[aria-current='page'] {
  color: #fff;
  background: rgba(40, 90, 180, 0.16);
}
.pub-actions {
  margin-left: auto;
}
.pub-actions .btn {
  flex: none;
}
.pub-burger {
  display: none;
}
/* measured states set by fitPublicHeader() in core.js */
.pub-header.is-tight .pub-header__inner {
  gap: 14px;
  padding: 0 18px;
}
.pub-header.is-tight .pub-nav {
  gap: 0;
}
.pub-header.is-tight .pub-nav a {
  padding: 6px 8px;
  font-size: 12.5px;
}
.pub-header.is-tight .pub-actions {
  gap: 6px;
}
.pub-header.is-collapsed .pub-nav,
.pub-header.is-collapsed .pub-signup {
  display: none;
}
.pub-header.is-collapsed .pub-burger {
  display: inline-flex;
}
.pub-header.is-mini .pub-signin,
.pub-header.is-mini .pub-demo,
.pub-header.is-mini .brand-lockup__text {
  display: none;
}
.pub-burger path {
  transition: transform 0.2s var(--ease), opacity 0.2s;
  transform-origin: 12px 12px;
}
.pub-header.is-menu-open .pub-burger__l1 {
  transform: translateY(5px) rotate(45deg);
}
.pub-header.is-menu-open .pub-burger__l2 {
  opacity: 0;
}
.pub-header.is-menu-open .pub-burger__l3 {
  transform: translateY(-5px) rotate(-45deg);
}
.pub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 12px 24px 16px;
  border-bottom: 1px solid var(--line-2);
  background: var(--bg-1);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  max-height: calc(100vh - var(--pubbar-h));
  overflow-y: auto;
}
.pub-menu[hidden] {
  display: none;
}
.pub-menu__links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 4px;
  max-width: 1312px;
  margin: 0 auto;
}
.pub-menu__links a {
  padding: 9px 12px;
  border-radius: var(--r-sm);
  color: var(--text);
  font-weight: 550;
  font-size: var(--fs-md);
}
.pub-menu__links a:hover,
.pub-menu__links a[aria-current='page'] {
  background: rgba(40, 90, 180, 0.16);
}
.pub-menu__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1312px;
  margin: 12px auto 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.pub-menu__actions .btn {
  flex: 1 1 160px;
  height: 36px;
}
@media (max-width: 560px) {
  .pub-menu {
    padding: 10px 16px 16px;
  }
  .pub-menu__links {
    grid-template-columns: 1fr;
  }
}
.pub-main {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}
.pub-footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(4, 12, 28, 0.6), rgba(1, 5, 14, 0.95));
}
.pub-footer__inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(5, 1fr);
  gap: 24px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 36px 24px 22px;
}
.pub-footer__brand .brand-mark {
  width: 40px;
}
.pub-footer__brand p {
  margin-top: 12px;
  color: var(--text-3);
  max-width: 320px;
  line-height: 1.6;
}
.pub-footer__social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.pub-footer .pub-footer__social a {
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.pub-footer .pub-footer__social a:hover {
  color: #fff;
  border-color: var(--line-3);
  background: rgba(31, 123, 255, 0.15);
}
.pub-footer h4 {
  margin: 0 0 10px;
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.pub-footer__inner a {
  display: block;
  padding: 4px 0;
  color: var(--text-3);
}
.pub-footer__inner a:hover {
  color: var(--blue-3);
}
.pub-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 1360px;
  margin: 0 auto;
  padding: 14px 24px 22px;
  border-top: 1px solid var(--line);
  color: var(--text-4);
  font-size: var(--fs-xs);
}
.pub-footer__bottom a:hover {
  color: var(--text);
}
@media (max-width: 1100px) {
  .pub-footer__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------------------------------------------------------- 26 Sayfa yardımcıları */
.demo-foot {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  color: var(--text-4);
  display: flex;
  gap: 8px;
  align-items: center;
}
.demo-foot .ic {
  width: 13px;
  height: 13px;
  color: var(--amber);
}
.ask-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 6px 0 12px;
  border-radius: var(--r-md);
  border: 1px solid rgba(80, 160, 255, 0.3);
  background: linear-gradient(90deg, rgba(14, 40, 90, 0.6), rgba(8, 22, 50, 0.7));
  box-shadow: 0 0 0 2px rgba(31, 123, 255, 0.04), 0 4px 16px rgba(18, 104, 255, 0.08);
  cursor: text;
  transition: box-shadow var(--t-base);
}
.ask-bar:hover {
  box-shadow: 0 0 0 2px rgba(31, 123, 255, 0.08), 0 4px 18px rgba(18, 104, 255, 0.14);
}
.ask-bar svg.brand-mark,
.ask-bar > svg:first-child {
  width: 22px;
}
.ask-bar__text {
  flex: 1;
  color: var(--text-3);
  font-size: var(--fs-base);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ask-bar__text b {
  color: var(--text);
  font-weight: 600;
}
.welcome h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 700;
}
.region-legend {
  position: absolute;
  right: 14px;
  top: 10px;
  z-index: 3;
  width: 180px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: rgba(3, 10, 24, 0.82);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(8px);
}
.map-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
}
.map-stats > div {
  padding: 10px 12px;
  background: rgba(5, 14, 32, 0.92);
}
.todo-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px var(--card-pad);
  border-bottom: 1px solid rgba(64, 120, 214, 0.1);
}
.todo-item:last-child {
  border-bottom: 0;
}
.todo-item__n {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex: none;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: var(--fs-xs);
  color: #fff;
  background: var(--grad-btn);
}
.funnel {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.funnel__row {
  position: relative;
  height: 30px;
  margin: 0 auto;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(90deg, rgba(31, 123, 255, 0.4), rgba(47, 212, 240, 0.22));
  border: 1px solid rgba(90, 170, 255, 0.3);
  transform-origin: center;
  animation: ayb-grow-x 0.9s var(--ease-out) both;
}
.rank {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  background: rgba(31, 123, 255, 0.2);
  color: var(--blue-3);
  border: 1px solid rgba(70, 150, 255, 0.35);
}
.rank--1 {
  background: linear-gradient(180deg, #ffe08a, #c48a12);
  color: #241600;
  border: 0;
}
.rank--2 {
  background: linear-gradient(180deg, #eef2f8, #9aa6b8);
  color: #101820;
  border: 0;
}
.rank--3 {
  background: linear-gradient(180deg, #f1b68a, #a8622a);
  color: #1e0e02;
  border: 0;
}

/* ---------------------------------------------------------- 27 Güvence şeridi · faktör · detay */
.rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.rail__item {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 12px;
  border-radius: var(--r-md);
  background: rgba(7, 18, 40, 0.65);
  border: 1px solid var(--line);
}
.rail__n {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-2);
  padding-top: 1px;
}
.rail__title {
  font-weight: 600;
  font-size: var(--fs-sm);
}
.rail__sub {
  font-size: 11px;
  color: var(--text-3);
}
.rail__item.is-locked {
  border-style: dashed;
  border-color: rgba(246, 179, 36, 0.4);
}
.rail__item.is-locked .rail__n {
  color: var(--amber);
}
.factor {
  display: grid;
  grid-template-columns: 130px 1fr 34px;
  gap: 10px;
  align-items: center;
  font-size: 11.5px;
  margin: 6px 0;
}
.factor span:first-child {
  color: var(--text-2);
}
.factor b {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.match-card {
  padding: var(--card-pad);
}
.match-card__head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
}
.section-title h2 {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
}
.section-title p {
  color: var(--text-3);
  font-size: var(--fs-sm);
  margin-top: 2px;
}
.subtabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 3px;
  border-radius: var(--r-md);
  background: rgba(5, 14, 32, 0.7);
  border: 1px solid var(--line);
  width: max-content;
  max-width: 100%;
}
.subtabs .tab {
  height: 26px;
  border: 0;
  background: transparent;
}
.subtabs .tab.is-active {
  background: var(--grad-btn);
}
.mini-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.ai-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid rgba(80, 160, 255, 0.3);
  background: linear-gradient(135deg, rgba(31, 123, 255, 0.11), rgba(143, 107, 255, 0.06));
  box-shadow: none;
}
.ai-hint__icon {
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  flex: none;
  display: grid;
  place-items: center;
  background: var(--grad-btn);
  color: #fff;
}
@media (max-width: 1280px) {
  .rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------------------------------------------------------- 28 AYBİ maskotu (sessiz, uçan) */
.aybi {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 350;
  cursor: pointer;
  will-change: transform;
  transition: opacity 0.4s var(--ease);
}
.aybi.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.aybi__body {
  position: relative;
  transform: translateY(var(--bob, 0px)) rotate(calc(var(--tilt, 0deg) + var(--sway, 0deg)));
  transform-origin: 50% 40%;
  filter: drop-shadow(0 6px 14px rgba(31, 123, 255, 0.22));
  transition: filter var(--t-base);
}
.aybi__body img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
}
.aybi__halo {
  position: absolute;
  inset: 10% -25% 20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 150, 255, 0.13), transparent 62%);
  animation: ayb-blink 6s ease-in-out infinite;
}
.aybi__thrust {
  position: absolute;
  left: 50%;
  bottom: -6%;
  width: 46%;
  height: 22%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 20%, rgba(170, 225, 255, 0.95), rgba(31, 123, 255, 0.45) 45%, transparent 72%);
  filter: blur(2px);
  opacity: 0.35;
  transition: opacity 0.3s;
}
.aybi.is-flying .aybi__thrust {
  opacity: 1;
  animation: aybi-thrust 0.12s infinite alternate;
}
@keyframes aybi-thrust {
  from { transform: translateX(-50%) scale(0.9, 0.8); }
  to { transform: translateX(-50%) scale(1.05, 1.2); }
}
.aybi:hover .aybi__body,
.aybi:focus-visible .aybi__body {
  filter: drop-shadow(0 6px 18px rgba(31, 123, 255, 0.4)) brightness(1.04);
}
.aybi__bubble {
  position: absolute;
  bottom: 62%;
  left: 100%;
  width: 250px;
  padding: 12px 14px;
  border-radius: 14px 14px 14px 4px;
  background: linear-gradient(135deg, rgba(14, 40, 90, 0.97), rgba(6, 16, 36, 0.97));
  border: 1px solid rgba(90, 170, 255, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 12px rgba(31, 123, 255, 0.1);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--text);
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  cursor: default;
}
.aybi__bubble.is-left {
  left: auto;
  right: 100%;
  border-radius: 14px 14px 4px 14px;
}
.aybi__bubble.is-on {
  opacity: 1;
  transform: none;
}
.aybi__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--blue-3);
  margin-bottom: 3px;
}
.aybi__close {
  position: absolute;
  top: 6px;
  right: 9px;
  color: var(--text-3);
  font-size: 16px;
  line-height: 1;
}
.aybi__close:hover {
  color: #fff;
}
.aybi-spark {
  position: fixed;
  z-index: 349;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a8dcff;
  box-shadow: 0 0 6px rgba(63, 178, 255, 0.5);
  pointer-events: none;
  animation: aybi-spark 0.9s ease-out forwards;
}
@keyframes aybi-spark {
  to { transform: translate(var(--dx, 0px), 38px) scale(0.2); opacity: 0; }
}
.aybi-target {
  box-shadow: 0 0 0 2px rgba(90, 170, 255, 0.55), 0 0 16px rgba(31, 123, 255, 0.2) !important;
  transition: box-shadow 0.4s;
}
.aybi.is-hero .aybi__body {
  filter: drop-shadow(0 12px 26px rgba(31, 123, 255, 0.28));
}
.aybi-figure {
  position: relative;
  display: inline-block;
}
.aybi-figure img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(31, 123, 255, 0.24));
  animation: ayb-float 8s ease-in-out infinite;
}
.aybi-figure::after {
  content: '';
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: -4%;
  height: 10%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(63, 178, 255, 0.26), transparent 70%);
  filter: blur(4px);
  animation: ayb-blink 8s ease-in-out infinite;
}
@media (max-width: 900px) {
  .aybi__bubble { width: 200px; }
}
@media print {
  .aybi, .aybi-spark { display: none !important; }
}

/* member notifications in the bell */
.menu-item.is-unread { background: rgba(31, 123, 255, .07); }

/* Phones: keep the top bar inside the viewport (no horizontal page scroll) */
@media (max-width: 560px) {
  .topbar { gap: 6px; padding: 0 10px; }
  .topbar__search { min-width: 0; }
  .topbar__search .kbd { display: none; }
  .topbar__right { gap: 2px; min-width: 0; flex: none; }
  .topbar__right > div:has(> [data-pop='region']) { display: none; }
  .topbar .lang-btn { padding: 0 8px; }
  .user-btn { padding: 0 2px; }
  .user-btn > .ic { display: none; }
}
@media (max-width: 560px) {
  .pub-header__inner > .row { gap: 6px; min-width: 0; }
  .pub-header__inner > .row .btn--primary,
  .pub-header__inner > .row .pub-signup { display: none; }
  .pub-header .brand-lockup__text { display: none; }
  .card__head { flex-wrap: wrap; }
  .card__tools { flex-wrap: wrap; max-width: 100%; }
  .card__body--flush, .card__body:has(> table) { overflow-x: auto; }
  .row { min-width: 0; }
}
/* public pages: decorative orbit/marks never widen the page */
.pub-main { overflow-x: clip; }
