:root {
  --bg: #07090f;
  --bg-elevated: #0d1119;
  --surface: rgba(14, 18, 28, 0.82);
  --surface2: #141b28;
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.22);
  --text: #e2e8f0;
  --text-heading: #eef2f7;
  --text-body: #e2e8f0;
  --text-label: #8b9bb4;
  --muted: #9aa8bc;
  --muted-2: #7d8ba0;
  --moi: #B266FF;
  --moi-rgb: 178, 102, 255;
  --accent: var(--moi);
  --accent-light: #C989FF;
  --accent-dark: #9438F0;
  --accent-glow: rgba(178, 102, 255, 0.35);
  --hazirlik: #6b7280;
  --hazirlik-bg: rgba(107, 114, 128, 0.15);
  --baslangic: #22c55e;
  --baslangic-bg: rgba(34, 197, 94, 0.12);
  --level17: #6b7280;
  --level17-bg: rgba(107, 114, 128, 0.15);
  --pivot: #f59e0b;
  --pivot-bg: rgba(245, 158, 11, 0.12);
  --sonalis: #ec4899;
  --sonalis-bg: rgba(236, 72, 153, 0.14);
  --bv: #fbbf24;
  --bv-bg: rgba(251, 191, 36, 0.14);
  --tb: #38bdf8;
  --tb-bg: rgba(56, 189, 248, 0.14);
  --danger: #ef4444;
  --radius: 14px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  color-scheme: dark;

  /* Typography tokens */
  --type-page-title-size: 1.5rem;
  --type-page-title-weight: 600;
  --type-page-title-lh: 1.2;
  --type-page-title-tracking: -0.02em;
  --type-section-title-size: 1.0625rem;
  --type-section-title-weight: 600;
  --type-section-title-lh: 1.3;
  --type-section-title-tracking: -0.015em;
  --type-eyebrow-size: 0.6875rem;
  --type-eyebrow-weight: 600;
  --type-eyebrow-tracking: 0.14em;
  --type-eyebrow-lh: 1.3;
  --type-desc-size: 0.875rem;
  --type-desc-weight: 400;
  --type-desc-lh: 1.55;
  --type-body-size: 0.9375rem;
  --type-body-lh: 1.5;
  --type-label-size: 0.6875rem;
  --type-label-weight: 600;
  --type-label-tracking: 0.1em;
  --type-table-head-size: 0.6875rem;
  --type-table-head-weight: 600;
  --type-table-head-tracking: 0.1em;
  --type-table-cell-size: 0.875rem;
  --type-table-cell-lh: 1.45;
  --type-symbol-size: 0.875rem;
  --type-symbol-weight: 600;
  --type-symbol-sub-size: 0.8125rem;
  --type-stat-value-size: 1.25rem;
  --type-stat-label-size: 0.6875rem;
  --type-badge-size: 0.6875rem;
  --type-badge-weight: 600;
  --type-btn-size: 0.875rem;
  --type-btn-weight: 600;
  --type-num: tabular-nums;

  /* Spacing (8px grid) */
  --space-title-desc: 0.5rem;
  --space-desc-content: 1rem;
  --space-section-gap: 1rem;
  --space-card-pad: clamp(1rem, 2.5vw, 1.25rem);
}

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

body {
  font-family: var(--font);
  font-size: var(--type-body-size);
  font-weight: 400;
  line-height: var(--type-body-lh);
  background: var(--bg);
  color: var(--text-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
}

.app-toast {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-strong);
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transition: opacity 0.25s, transform 0.25s;
}

.app-toast.hidden {
  transform: translateX(-50%) translateY(-12px);
  opacity: 0;
  pointer-events: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(178, 102, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(178, 102, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 2rem) clamp(0.75rem, 3vw, 2rem) 3rem;
}

/* —— App shell (header + nav) —— */
.app-shell {
  --shell-outer-pad-top: 0.35rem;
  --shell-outer-pad-bottom: 0.65rem;
  --shell-card-py: 0.78rem;
  --shell-card-px: 1.15rem;
  --shell-card-pb: 0.68rem;
  --shell-logo: 36px;
  --shell-word: 1.05rem;
  --shell-nav-mt: 0.72rem;
  --shell-nav-pad: 0.26rem;
  --shell-tab-py: 0.52rem;
  --shell-tab-fs: 0.8rem;
  --shell-toolbar: 36px;
  --shell-avatar: 28px;
  --shell-tag-opacity: 1;
  --shell-tag-max-h: 2.5rem;
  --shell-tag-mt: 0.2rem;

  position: sticky;
  top: 0;
  z-index: 40;
  margin: -0.25rem 0 1.15rem;
  padding: var(--shell-outer-pad-top) 0 var(--shell-outer-pad-bottom);
  background: linear-gradient(
    180deg,
    rgba(7, 9, 15, 0.96) 0%,
    rgba(10, 13, 22, 0.88) 72%,
    rgba(10, 13, 22, 0.72) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    padding 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    margin 220ms ease;
}

body.is-scrolled .app-shell {
  --shell-outer-pad-top: 0.1rem;
  --shell-outer-pad-bottom: 0.35rem;
  --shell-card-py: 0.48rem;
  --shell-card-px: 1rem;
  --shell-card-pb: 0.44rem;
  --shell-logo: 30px;
  --shell-word: 0.92rem;
  --shell-nav-mt: 0.38rem;
  --shell-nav-pad: 0.2rem;
  --shell-tab-py: 0.4rem;
  --shell-tab-fs: 0.76rem;
  --shell-toolbar: 32px;
  --shell-avatar: 26px;
  --shell-tag-opacity: 0;
  --shell-tag-max-h: 0;
  --shell-tag-mt: 0;

  background: rgba(10, 13, 22, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.38);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.85rem;
}

.app-shell-card {
  position: relative;
  padding: var(--shell-card-py) var(--shell-card-px) var(--shell-card-pb);
  border-radius: 14px;
  background: rgba(10, 13, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  transition:
    padding 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.app-shell-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(178, 102, 255, 0.42) 50%,
    transparent
  );
  pointer-events: none;
}

.app-shell-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.07) 50%,
    transparent
  );
  pointer-events: none;
}

body.is-scrolled .app-shell-card {
  background: rgba(10, 13, 22, 0.86);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.app-shell-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--shell-toolbar);
}

.app-toolbar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.22rem 0.6rem 0.22rem 0.22rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  max-width: 168px;
  transition: padding 220ms ease, border-color 220ms ease, background 220ms ease;
}

body.is-scrolled .user-chip {
  padding: 0.16rem 0.5rem 0.16rem 0.16rem;
  max-width: 150px;
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--shell-avatar);
  height: var(--shell-avatar);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(178, 102, 255, 0.32), rgba(178, 102, 255, 0.1));
  border: 1px solid rgba(178, 102, 255, 0.38);
  color: #e9d5ff;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: width 220ms ease, height 220ms ease, font-size 220ms ease;
}

.user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: font-size 220ms ease;
}

body.is-scrolled .user-name {
  font-size: 0.78rem;
}

.toolbar-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 0.1rem;
  flex-shrink: 0;
}

.toolbar-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--shell-toolbar);
  height: var(--shell-toolbar);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(7, 9, 15, 0.55);
  color: #a8b4c7;
  cursor: pointer;
  overflow: visible;
  transition:
    width 220ms ease,
    height 220ms ease,
    color 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.toolbar-btn:hover {
  color: var(--text);
  border-color: rgba(178, 102, 255, 0.42);
  background: rgba(178, 102, 255, 0.1);
}

.toolbar-btn:focus-visible {
  outline: 2px solid rgba(178, 102, 255, 0.55);
  outline-offset: 2px;
}

.toolbar-btn.active {
  color: #f3e8ff;
  border-color: rgba(178, 102, 255, 0.52);
  background: linear-gradient(180deg, rgba(178, 102, 255, 0.28), rgba(178, 102, 255, 0.12));
  box-shadow:
    0 1px 6px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

a.toolbar-btn {
  text-decoration: none;
}

.toolbar-btn--ghost:hover {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.38);
  background: rgba(239, 68, 68, 0.1);
}

.toolbar-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  transition: width 220ms ease, height 220ms ease;
}

body.is-scrolled .toolbar-icon {
  width: 16px;
  height: 16px;
}

.toolbar-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fb7185 0%, #ef4444 100%);
  color: #fff;
  font-family: var(--font);
  font-size: 0.6rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
  border: 2px solid rgba(10, 13, 22, 0.95);
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(239, 68, 68, 0.35);
  pointer-events: none;
  box-sizing: border-box;
}

.toolbar-badge[data-wide="true"] {
  min-width: 21px;
  padding: 0 4px;
  font-size: 0.56rem;
}

.app-nav {
  display: flex;
  gap: 0.22rem;
  margin-top: var(--shell-nav-mt);
  padding: var(--shell-nav-pad);
  background: rgba(7, 9, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    margin 220ms ease,
    padding 220ms ease,
    background 220ms ease,
    border-color 220ms ease;
}

body.is-scrolled .app-nav {
  background: rgba(7, 9, 15, 0.82);
  border-color: rgba(255, 255, 255, 0.1);
}

.main-nav {
  margin-bottom: 0;
}

.main-nav .nav-tab.hidden {
  display: none !important;
}

.nav-tab {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 1px solid transparent;
  color: #8b9bb4;
  padding: var(--shell-tab-py) 0.65rem;
  border-radius: 9px;
  font-family: inherit;
  font-size: var(--shell-tab-fs);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  transition:
    color 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    padding 220ms ease,
    font-size 220ms ease;
  white-space: nowrap;
}

.nav-icon {
  flex-shrink: 0;
  opacity: 0.72;
  transition: opacity 220ms ease, color 220ms ease;
}

.nav-tab:hover {
  color: #dbe4f0;
  background: rgba(178, 102, 255, 0.08);
  border-color: rgba(178, 102, 255, 0.14);
}

.nav-tab:hover .nav-icon {
  opacity: 1;
}

.nav-tab:focus-visible {
  outline: 2px solid rgba(178, 102, 255, 0.5);
  outline-offset: 1px;
}

.nav-tab.active {
  background: linear-gradient(180deg, rgba(178, 102, 255, 0.24), rgba(178, 102, 255, 0.11));
  color: #f3e8ff;
  border-color: rgba(178, 102, 255, 0.38);
  box-shadow:
    0 1px 8px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.nav-tab.active .nav-icon {
  opacity: 1;
  color: #C989FF;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(178, 102, 255, 0.22);
  color: #e9d5ff;
  border: 1px solid rgba(178, 102, 255, 0.34);
  font-family: var(--font);
  font-size: 0.625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
  box-sizing: border-box;
}

.nav-badge.hidden {
  display: none;
}

.nav-badge--alert {
  background: #ef4444;
  color: #fff;
  border-color: rgba(239, 68, 68, 0.5);
}

.header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.login-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.login-glow-a {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -80px;
  background: rgba(178, 102, 255, 0.35);
  animation: floatGlow 12s ease-in-out infinite;
}

.login-glow-b {
  width: 360px;
  height: 360px;
  bottom: -100px;
  right: -60px;
  background: rgba(34, 197, 94, 0.18);
  animation: floatGlow 14s ease-in-out infinite reverse;
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, 18px) scale(1.06); }
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  overflow-y: auto;
}

.login-screen-inner {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.login-hero {
  padding: 0.5rem 0;
}

.login-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand-logo__mark {
  display: block;
  width: auto;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(178, 102, 255, 0.35));
}

.brand-logo__word {
  display: inline-flex;
  align-items: baseline;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
}

.brand-logo__moi {
  color: var(--moi);
  background: linear-gradient(135deg, var(--accent-dark), var(--moi) 55%, var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-logo__scan {
  color: #fff;
}

.brand-logo--hero {
  gap: 0.85rem;
}

.brand-logo--hero .brand-logo__mark {
  width: 52px;
  height: 52px;
}

.brand-logo--hero .brand-logo__word {
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  letter-spacing: 0.08em;
}

.brand-logo--header .brand-logo__mark {
  width: var(--shell-logo, 36px);
  height: var(--shell-logo, 36px);
  transition: width 220ms ease, height 220ms ease, filter 220ms ease;
}

.brand-logo--header .brand-logo__word {
  font-size: var(--shell-word, 1.05rem);
  transition: font-size 220ms ease;
}

body.is-scrolled .brand-logo--header .brand-logo__mark {
  filter: drop-shadow(0 0 8px rgba(178, 102, 255, 0.28));
}

.brand-logo--footer {
  gap: 0.5rem;
  opacity: 0.9;
}

.brand-logo--footer .brand-logo__mark {
  width: 28px;
  height: 28px;
}

.brand-logo--footer .brand-logo__word {
  font-size: 0.85rem;
}

.login-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(178, 102, 255, 0.12);
  color: var(--accent-light);
  font-size: 0.65rem;
  flex-shrink: 0;
}

.login-logo-slogan {
  margin-top: 0.35rem;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
  max-width: 22rem;
}

.slogan-moi,
.brand-moi {
  color: var(--moi);
  font-weight: inherit;
}

.slogan-moi {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.login-hook {
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  font-weight: 600;
  line-height: 1.5;
  color: #e9d5ff;
  max-width: 34rem;
  margin-bottom: 0.65rem;
}

.login-tagline {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.65;
  color: #c8d3e6;
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.login-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.login-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.925rem;
  color: var(--muted);
}

.feat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 12px currentColor;
}

.feat-dot.kanalbasi { background: #C989FF; color: #C989FF; }
.feat-dot.baslangic { background: var(--baslangic); color: var(--baslangic); }
.feat-dot.accent { background: var(--accent); color: var(--accent); }

.login-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(178, 102, 255, 0.18);
  box-shadow: var(--shadow);
}

.login-mode-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0.28rem;
  background: rgba(10, 14, 20, 0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.login-mode-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.login-mode-tab:hover {
  color: var(--text);
  background: rgba(178, 102, 255, 0.06);
}

.login-mode-tab.active {
  color: #e9d5ff;
  background: rgba(178, 102, 255, 0.18);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.login-card-head {
  margin-bottom: 1.25rem;
}

.login-card-head h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.login-card-head p {
  color: var(--muted);
  font-size: 0.9rem;
}

.login-screen-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.login-screen-form .field > input[type="text"],
.login-screen-form .field > input[type="email"],
.password-field input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.login-screen-form .field > input[type="text"] {
  padding: 0.85rem 1rem;
}

.login-screen-form .field > input[type="email"] {
  padding: 0.85rem 1rem;
}

.password-field input {
  padding: 0.85rem 2.75rem 0.85rem 1rem;
}

.password-field {
  position: relative;
}

.password-field input {
  display: block;
  width: 100%;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.password-toggle:hover {
  color: var(--text);
  background: rgba(178, 102, 255, 0.1);
}

.password-toggle.is-visible {
  color: #C989FF;
}

.password-toggle-icon {
  flex-shrink: 0;
}

.login-screen-form .field > input[type="text"]:focus,
.password-field input:focus,
.login-screen-form .field > input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(178, 102, 255, 0.18);
}

.btn-login-full {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.25rem;
  background: linear-gradient(135deg, var(--accent-dark), var(--moi) 55%, var(--accent-light));
  color: white;
  border: none;
  padding: 0.9rem 1.25rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 24px rgba(178, 102, 255, 0.35);
}

.btn-login-full:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 12px 28px rgba(178, 102, 255, 0.42);
}

.btn-login-full:disabled {
  opacity: 0.7;
  cursor: wait;
}

.login-foot {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

body.is-authenticated .login-glow {
  opacity: 0.15;
}

.logged-in {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-mark-read {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn-mark-read:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* —— Bildirimler sayfası —— */
.notif-page .profile-head {
  margin-bottom: 1rem;
}

.notif-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.notif-summary {
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 1.25rem;
}

.notif-summary strong {
  color: #e9d5ff;
  font-weight: 700;
}

.notif-filters {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.2rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.notif-filter {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.15s, background 0.15s;
}

.notif-filter:hover {
  color: var(--text);
}

.notif-filter.active {
  background: rgba(178, 102, 255, 0.18);
  color: #e9d5ff;
}

.notif-filter-count {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  line-height: 1.15rem;
  text-align: center;
}

.notifications-grouped {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.notif-date-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.notif-date-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 0.15rem;
}

.notif-date-items {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.notif-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.95rem 2.35rem 0.95rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface2);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(178, 102, 255, 0.15);
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  text-align: left;
}

.notif-card__delete {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s, color 0.15s, background 0.15s;
}

.notif-card__delete:hover {
  opacity: 1;
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
}

.notif-card__delete:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  opacity: 1;
}

.notif-card:hover {
  border-color: rgba(178, 102, 255, 0.35);
  background: rgba(26, 34, 48, 0.95);
}

.notif-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.notif-card.unread {
  border-left: 4px solid var(--pivot);
  background: var(--surface2);
}

.notif-card.unread:active {
  transform: scale(0.995);
  border-color: rgba(178, 102, 255, 0.45);
}

.notif-card__leading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.65rem;
  align-self: stretch;
}

.notif-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(178, 102, 255, 0.2);
  flex-shrink: 0;
}

.notif-card__dot.is-read {
  background: transparent;
  box-shadow: none;
  border: 1.5px solid var(--border);
}

.notif-card__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.notif-card__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
}

.notif-market-pill {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.18rem 0.42rem;
  border-radius: 4px;
  background: rgba(178, 102, 255, 0.14);
  color: var(--accent);
}

.notif-market-pill.binance {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
}

.notif-market-pill.us {
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
}

.notif-card__symbol {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
  line-height: 1.2;
}

.notif-card__name {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  flex: 1 1 auto;
  min-width: 0;
}

.notif-card__prices {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.82rem;
}

.notif-price-from {
  color: var(--muted);
}

.notif-price-arrow {
  color: var(--border);
  font-size: 0.75rem;
}

.notif-price-to {
  color: var(--text);
  font-weight: 600;
}

.notif-price-label {
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.85;
}

.notif-card__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}

.notif-card__pct-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
}

.notif-card__pct-badge--up {
  background: var(--baslangic-bg);
  color: var(--baslangic);
}

.notif-card__pct-badge--down {
  background: rgba(239, 68, 68, 0.12);
  color: #f472b6;
}

.notif-card__arrow {
  flex-shrink: 0;
}

.notif-card__time {
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--mono);
  white-space: nowrap;
}

.notif-pct-up {
  color: var(--baslangic);
  font-weight: 600;
}

.notif-pct-down {
  color: #f472b6;
  font-weight: 600;
}

@media (max-width: 640px) {
  .notif-card {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .notif-card__aside {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .notif-card__name {
    flex-basis: 100%;
  }

  .notif-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .notif-filters {
    justify-content: center;
  }
}

.profile {
  padding: 1.25rem 1.5rem;
}

.profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.profile-head h2 {
  font-size: 1.15rem;
  font-weight: 600;
}

.profile-sub {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.profile-count {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

.profile-sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-block {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface2);
}

.profile-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(178, 102, 255, 0.06);
}

.profile-block-head h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.profile-block-count {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--surface);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* —— Favoriler & İzleme Listesi (portfolio) —— */
.portfolio-page .profile-head {
  margin-bottom: 0.75rem;
}

.portfolio-summary {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  min-height: 1.25rem;
}

.portfolio-summary strong {
  color: #e9d5ff;
  font-weight: 700;
}

.portfolio-search {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface2);
}

.portfolio-page .profile-block {
  border-radius: 12px;
  overflow: hidden;
}

.portfolio-page .profile-block--bist {
  border-left: 3px solid var(--accent);
}

.portfolio-page .profile-block--kripto {
  border-left: 3px solid #fbbf24;
}

.portfolio-page .profile-block--binance-try {
  border-left: 3px solid #fb923c;
}

.portfolio-page .profile-block--us {
  border-left: 3px solid #38bdf8;
}

.market-pill.binance-try {
  background: rgba(251, 146, 60, 0.14);
  color: #fdba74;
}

.market-pill.us {
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
}

/* —— Skor tablosu —— */
.scoreboard-section {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.scoreboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.scoreboard-head-text {
  flex: 1;
  min-width: 200px;
}

.scoreboard-head-actions {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  flex-shrink: 0;
}

.btn-scoreboard-reset {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  align-self: flex-end;
  margin-bottom: 0.15rem;
  transition: border-color 0.15s, color 0.15s, opacity 0.15s;
}

.btn-scoreboard-reset:hover:not(:disabled) {
  border-color: #f87171;
  color: #fca5a5;
}

.btn-scoreboard-reset:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.scoreboard-threshold {
  min-width: min(100%, 220px);
  max-width: 280px;
  flex-shrink: 0;
}

.scoreboard-threshold .range-row {
  min-height: 2.5rem;
}

.scoreboard-head h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.scoreboard-sub {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (min-width: 900px) {
  .scoreboard-sub {
    white-space: nowrap;
  }
}

.scoreboard-sections {
  margin-top: 1.25rem;
}

.scoreboard-block {
  margin-top: 0;
}

.scoreboard-block .scoreboard-kpis {
  margin-top: 0.75rem;
}

.scoreboard-block-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.scoreboard-block-actions .btn-scoreboard-reset {
  margin-bottom: 0;
}

.scoreboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1.1rem 0 1rem;
}

.score-kpi {
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface2);
}

.score-kpi-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.score-kpi-value {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--mono, ui-monospace, monospace);
  letter-spacing: -0.02em;
}

.score-kpi-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.score-kpi--win .score-kpi-value { color: #86efac; }
.score-kpi--loss .score-kpi-value { color: #fca5a5; }
.score-kpi--up .score-kpi-value { color: #86efac; }
.score-kpi--down .score-kpi-value { color: #fca5a5; }
.score-kpi--flat .score-kpi-value { color: var(--muted); }

.score-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.score-pill--win {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

.score-pill--loss {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
}

.scoreboard-table-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.scoreboard-empty {
  margin-top: 0.5rem;
}

.score-duration {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.score-duration--muted {
  color: var(--muted);
  font-weight: 500;
}

.scoreboard-table thead th.sortable {
  cursor: pointer;
  user-select: none;
}

.scoreboard-table thead th.sortable:hover {
  color: var(--text);
}

.profile-block-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.profile-block-title h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0;
  text-transform: none;
}

.market-pill {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: rgba(178, 102, 255, 0.14);
  color: var(--accent);
}

.market-pill.binance {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
}

.portfolio-table thead {
  background: rgba(18, 24, 32, 0.98);
}

.portfolio-table th {
  padding: 0.75rem 1rem;
  font-size: 0.68rem;
}

.portfolio-table td {
  padding: 0.8rem 1rem;
  vertical-align: middle;
}

.portfolio-table tbody tr.portfolio-row {
  transition: background 0.12s ease;
}

.portfolio-table tbody tr.portfolio-row:hover {
  background: rgba(178, 102, 255, 0.06);
}

.portfolio-table tbody tr.portfolio-row:last-child td {
  border-bottom: none;
}

.asset-cell {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  max-width: 220px;
}

.asset-symbol {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
  line-height: 1.2;
}

.asset-name {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price-val {
  display: inline-block;
  font-size: 0.84rem;
}

.price-val--added {
  color: var(--muted);
}

.price-val--current {
  color: var(--text);
  font-weight: 600;
}

.price-val--muted,
.price-val--loading {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.78rem;
}

.price-val--stale {
  opacity: 0.82;
}

.live-refresh-status--stale {
  opacity: 0.9;
}

.skeleton-shimmer {
  position: relative;
  display: inline-block;
  min-width: 3.75rem;
  min-height: 0.95rem;
  overflow: hidden;
  border-radius: 6px;
  color: transparent !important;
  user-select: none;
}

.skeleton-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.08) 0%,
    rgba(148, 163, 184, 0.24) 50%,
    rgba(148, 163, 184, 0.08) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.15s ease-in-out infinite;
}

.chg-pill.skeleton-shimmer {
  min-width: 4.5rem;
  min-height: 1.35rem;
}

@keyframes skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.chg-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 0.28rem 0.55rem;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.chg-pill--up {
  background: var(--baslangic-bg);
  color: var(--baslangic);
}

.chg-pill--down {
  background: rgba(239, 68, 68, 0.12);
  color: #f472b6;
}

.chg-pill--flat,
.chg-pill--muted,
.chg-pill--loading {
  background: rgba(42, 53, 72, 0.5);
  color: var(--muted);
}

@keyframes chg-pill-flash-up {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    transform: scale(1);
  }
  22% {
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.55), 0 0 16px rgba(34, 197, 94, 0.5);
    transform: scale(1.05);
  }
}

@keyframes chg-pill-flash-down {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    transform: scale(1);
  }
  22% {
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.55), 0 0 16px rgba(239, 68, 68, 0.5);
    transform: scale(1.05);
  }
}

.chg-pill.chg-pill--flash-up {
  animation: chg-pill-flash-up 0.85s ease-out;
}

.chg-pill.chg-pill--flash-down {
  animation: chg-pill-flash-down 0.85s ease-out;
}

.signal-pill {
  display: inline-block;
  max-width: 140px;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid var(--border);
}

.signal-pill--kanalbasi {
  background: rgba(178, 102, 255, 0.12);
  color: #C989FF;
  border-color: rgba(178, 102, 255, 0.3);
}

.signal-pill--vurgun,
.signal-pill--hazirlik {
  background: var(--hazirlik-bg);
  color: #c4cad4;
  border-color: rgba(107, 114, 128, 0.35);
}

.signal-pill--baslangic {
  background: var(--baslangic-bg);
  color: var(--baslangic);
  border-color: rgba(34, 197, 94, 0.35);
}

.signal-pill--pivot {
  background: var(--pivot-bg);
  color: var(--pivot);
  border-color: rgba(245, 158, 11, 0.35);
}

.signal-pill--sonalis {
  background: var(--sonalis-bg);
  color: var(--sonalis);
  border-color: rgba(236, 72, 153, 0.35);
}

.signal-pill--bv {
  background: var(--bv-bg);
  color: var(--bv);
  border-color: rgba(251, 191, 36, 0.35);
}

.signal-pill--tb {
  background: var(--tb-bg);
  color: var(--tb);
  border-color: rgba(56, 189, 248, 0.35);
}

.signal-pill--neutral,
.signal-pill--muted {
  background: transparent;
  color: var(--muted);
}

.date-cell {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.col-price,
.col-current,
.col-change,
.col-signal {
  white-space: nowrap;
}

.col-added {
  min-width: 88px;
}

.btn-portfolio-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.btn-portfolio-remove:hover {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.25);
}

.portfolio-empty {
  padding: 1.5rem 1rem;
  font-size: 0.85rem;
}

.portfolio-empty-main {
  margin-top: 0.5rem;
  padding: 2.5rem 1.5rem;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: rgba(26, 34, 48, 0.35);
}

.portfolio-page .fav-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
}

.portfolio-page .fav-btn:hover {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.25);
}

.portfolio-page .fav-btn.active {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
}

.col-fav {
  width: 48px;
  min-width: 48px;
  text-align: center;
  padding-left: 0.5rem;
  padding-right: 0.35rem;
  vertical-align: middle;
}

.fav-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin: 0 auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  position: relative;
  z-index: 2;
  transition: transform 0.15s, color 0.15s, background 0.15s, border-color 0.15s;
}

.fav-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.fav-btn:hover {
  transform: scale(1.15);
  color: #fbbf24;
}

.fav-btn.active {
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.45);
}

.col-flag {
  width: 36px;
  text-align: center;
}

.flag-btn {
  display: inline-block;
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  vertical-align: middle;
  background: transparent;
  box-shadow: inset 0 0 0 2px #64748b;
  transition: box-shadow 0.15s, background 0.15s;
}

.flag-btn:hover {
  box-shadow: inset 0 0 0 2px #94a3b8;
}

.flag-btn.has-flag {
  background: var(--flag-color);
  box-shadow: none;
}

.flag-btn.has-flag:hover {
  box-shadow: 0 0 6px color-mix(in srgb, var(--flag-color) 55%, transparent);
}

.flag-picker {
  position: fixed;
  z-index: 2000;
  min-width: 220px;
  padding: 0.65rem 0.75rem;
  background: #1e2433;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.flag-picker.hidden {
  display: none;
}

.flag-picker-title {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flag-picker-colors {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.flag-color-opt {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: var(--flag-color);
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s, box-shadow 0.12s;
}

.flag-color-opt:hover {
  transform: scale(1.12);
}

.flag-color-opt.selected {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0, 0, 0, 0.35);
  transform: scale(1.08);
}

.flag-picker-clear {
  display: block;
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.35rem 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  cursor: pointer;
}

.flag-picker-clear:hover {
  color: var(--text);
  border-color: var(--muted);
}

.flag-picker-clear.hidden {
  display: none;
}

.flag-picker-error {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  color: #f87171;
  line-height: 1.35;
}

.flag-picker-error.hidden {
  display: none;
}

.col-current {
  min-width: 90px;
}

.col-change {
  min-width: 72px;
}

.fav-chg-up {
  color: var(--baslangic);
}

.fav-chg-down {
  color: #f472b6;
}

.login-error {
  font-size: 0.85rem;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
  flex: 1;
}

.brand-logo--header {
  gap: 0.55rem;
}

.brand-mark {
  font-size: 1.65rem;
  color: var(--accent);
  filter: drop-shadow(0 0 10px rgba(178, 102, 255, 0.45));
  flex-shrink: 0;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-tag {
  display: block;
  margin-top: var(--shell-tag-mt, 0.2rem);
  font-size: 0.72rem;
  font-weight: 500;
  color: #9aa8bc;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-transform: none;
  max-width: 22rem;
  opacity: var(--shell-tag-opacity, 1);
  max-height: var(--shell-tag-max-h, 2.5rem);
  overflow: hidden;
  transition:
    opacity 220ms ease,
    max-height 220ms ease,
    margin 220ms ease,
    color 220ms ease;
}

body.is-scrolled .brand-tag {
  pointer-events: none;
}

.brand-icon {
  font-size: 2rem;
  color: var(--accent);
  filter: drop-shadow(0 0 12px rgba(178, 102, 255, 0.5));
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.badge.kanalbasi {
  background: rgba(178, 102, 255, 0.12);
  color: #C989FF;
  border-color: rgba(178, 102, 255, 0.35);
}

.badge.hazirlik {
  background: var(--hazirlik-bg);
  color: #c4cad4;
  border-color: rgba(107, 114, 128, 0.4);
}

.badge.baslangic {
  background: var(--baslangic-bg);
  color: var(--baslangic);
  border-color: rgba(34, 197, 94, 0.35);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.scanner-view {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.scanner-page {
  gap: 1.1rem;
}

.scanner-hero {
  padding: clamp(1rem, 2.5vw, 1.5rem);
}

.scanner-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.scanner-head h2 {
  font-size: 1.15rem;
  font-weight: 600;
}

.scanner-search-block {
  margin-bottom: 0;
  border: none;
  padding: 0;
  background: transparent;
}

.scanner-controls {
  padding: clamp(1rem, 2vw, 1.25rem) clamp(1rem, 2.5vw, 1.5rem);
}

.scanner-summary {
  margin-bottom: 0;
  min-height: 0;
}

.scanner-summary:empty {
  display: none;
}

.live-refresh-status {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.72rem;
  color: var(--text-muted, #8b949e);
  letter-spacing: 0.02em;
}

.live-refresh-status--ok {
  color: var(--text-muted, #8b949e);
}

.live-refresh-status--error {
  color: #f85149;
}

.scan-market-tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.scan-summary-warn {
  color: #f59e0b;
  font-weight: 600;
}

.scanner-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.65rem;
  width: 100%;
}

.scanner-stat {
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--border);
  transition: border-color 0.15s, background 0.15s;
}

.scanner-stat:hover {
  background: rgba(26, 34, 48, 0.6);
}

.scanner-stat-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.scanner-stat-value {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.scanner-stat-time {
  font-size: 0.78rem;
  font-weight: 600;
}

.scanner-stat--kanalbasi {
  border-left-color: #C989FF;
}

.scanner-stat--kanalbasi .scanner-stat-value {
  color: #C989FF;
}

.scanner-stat--vurgun,
.scanner-stat--hazirlik {
  border-left-color: #94a3b8;
}

.scanner-stat--vurgun .scanner-stat-value,
.scanner-stat--hazirlik .scanner-stat-value {
  color: #c4cad4;
}

.scanner-stat--baslangic {
  border-left-color: var(--baslangic);
}

.scanner-stat--baslangic .scanner-stat-value {
  color: var(--baslangic);
}

.scanner-stat--pivot {
  border-left-color: var(--pivot);
}

.scanner-stat--pivot .scanner-stat-value {
  color: var(--pivot);
}

.scanner-stat--sonalis {
  border-left-color: var(--sonalis);
}

.scanner-stat--sonalis .scanner-stat-value {
  color: var(--sonalis);
}

.scanner-stat--bv {
  border-left-color: var(--bv);
}

.scanner-stat--bv .scanner-stat-value {
  color: var(--bv);
}

.scanner-stat--tb {
  border-left-color: var(--tb);
}

.scanner-stat--tb .scanner-stat-value {
  color: var(--tb);
}

.scanner-stat--kirilim {
  border-left-color: #22c55e;
}

.scanner-stat--kirilim .scanner-stat-value {
  color: #4ade80;
}

.scanner-stat--kirilim-touch {
  border-left-color: #14b8a6;
}

.scanner-stat--kirilim-touch .scanner-stat-value {
  color: #2dd4bf;
}

.scanner-stat--kirilim-support-break {
  border-left-color: #ef4444;
}

.scanner-stat--kirilim-support-break .scanner-stat-value {
  color: #f87171;
}

.scanner-stat--kirilim-resist-touch {
  border-left-color: #f97316;
}

.scanner-stat--kirilim-resist-touch .scanner-stat-value {
  color: #fb923c;
}

.scanner-stat--kirilim-retest-resist {
  border-left-color: #60a5fa;
}

.scanner-stat--kirilim-retest-resist .scanner-stat-value {
  color: #93c5fd;
}

.scanner-stat--kirilim-retest-support {
  border-left-color: #c084fc;
}

.scanner-stat--kirilim-retest-support .scanner-stat-value {
  color: #d8b4fe;
}

.kirilim-page .scan-table--kirilim thead th.sortable {
  cursor: pointer;
  user-select: none;
}

.kirilim-page .scan-table--kirilim thead th.sortable:hover {
  color: var(--text, #e2e8f0);
}

.kirilim-results-panel {
  overflow: visible;
  border-radius: 12px;
}

.kirilim-results-desc {
  margin: 0;
  padding: clamp(1rem, 2vw, 1.2rem) clamp(1.15rem, 2.5vw, 1.5rem) 0.85rem;
  max-width: 42rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.kirilim-page {
  --scan-tabs-sticky-top: 9rem;
  --scan-tabs-height: 3.15rem;
}

.kirilim-page .scan-result-tabs-sticky {
  position: sticky;
  top: var(--scan-tabs-sticky-top);
  z-index: 32;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 20, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.kirilim-page .scan-result-tabs-sticky .scan-result-tabs {
  position: static;
  top: auto;
  border-bottom: none;
  box-shadow: none;
  background: transparent;
}

.scan-result-tab-dot.kirilim-break {
  background: #4ade80;
}

.scan-result-tab-dot.kirilim-touch {
  background: #2dd4bf;
}

.scan-result-tab-dot.kirilim-support {
  background: #f87171;
}

.scan-result-tab-dot.kirilim-resist {
  background: #fb923c;
}

.scan-result-tab-dot.kirilim-retest-resist {
  background: #60a5fa;
}

.scan-result-tab-dot.kirilim-retest-support {
  background: #c084fc;
}

.scan-result-tab--kirilim-break.active {
  background: color-mix(in srgb, #4ade80 14%, transparent);
  border-color: color-mix(in srgb, #4ade80 35%, transparent);
}

.scan-result-tab--kirilim-touch.active {
  background: color-mix(in srgb, #2dd4bf 14%, transparent);
  border-color: color-mix(in srgb, #2dd4bf 35%, transparent);
}

.scan-result-tab--kirilim-support.active {
  background: color-mix(in srgb, #f87171 14%, transparent);
  border-color: color-mix(in srgb, #f87171 35%, transparent);
}

.scan-result-tab--kirilim-resist.active {
  background: color-mix(in srgb, #fb923c 14%, transparent);
  border-color: color-mix(in srgb, #fb923c 35%, transparent);
}

.scan-result-tab--kirilim-retest-resist.active {
  background: color-mix(in srgb, #60a5fa 14%, transparent);
  border-color: color-mix(in srgb, #60a5fa 35%, transparent);
}

.scan-result-tab--kirilim-retest-support.active {
  background: color-mix(in srgb, #c084fc 14%, transparent);
  border-color: color-mix(in srgb, #c084fc 35%, transparent);
}

.kirilim-page .scan-result-panel .scan-table--kirilim thead {
  position: sticky;
  top: calc(var(--scan-tabs-sticky-top) + var(--scan-tabs-height));
  z-index: 28;
  background: var(--surface);
}

/* Kırılım: 4 sütun — buton en sağda (tarama satırı gibi) */
@media (max-width: 900px) {
  .controls-grid.controls-grid--cols-4 {
    grid-template-columns: 1fr 1fr;
  }

  .controls-grid.controls-grid--cols-4 .control-scan {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .controls-grid.controls-grid--cols-4 {
    grid-template-columns: 1fr;
  }
}

.btn-kirilim {
  width: 100%;
}

.scanner-stat--time {
  border-left-color: var(--accent);
}

.scanner-stat--time .scanner-stat-value {
  color: #e9d5ff;
  font-size: 0.78rem;
}

.scanner-error {
  margin-bottom: 0;
}

.scanner-results {
  margin-top: 0.25rem;
}

.scan-results-panel {
  overflow: visible;
  border-radius: 12px;
}

.scanner-page {
  --scan-tabs-sticky-top: 9rem;
  --scan-tabs-height: 3.15rem;
}

.scan-result-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  padding: 0.55rem 0.65rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 20, 0.96);
  scrollbar-width: thin;
  position: sticky;
  top: var(--scan-tabs-sticky-top);
  z-index: 32;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.scan-result-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.scan-result-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.scan-result-tab.active {
  color: var(--text);
  background: rgba(178, 102, 255, 0.12);
  border-color: rgba(178, 102, 255, 0.28);
}

.scan-result-tab-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.scan-result-tab-dot.kanalbasi { background: #C989FF; }
.scan-result-tab-dot.bv { background: var(--bv); }
.scan-result-tab-dot.tb { background: var(--tb); }
.scan-result-tab-dot.vurgun,
.scan-result-tab-dot.hazirlik { background: #94a3b8; }
.scan-result-tab-dot.baslangic { background: var(--baslangic); }
.scan-result-tab-dot.pivot { background: var(--pivot); }
.scan-result-tab-dot.sonalis { background: var(--sonalis); }
.scan-result-tab-dot.bist { background: #C989FF; }
.scan-result-tab-dot.kripto { background: #fbbf24; }

.scan-result-tab-count {
  min-width: 1.35rem;
  padding: 0.08rem 0.38rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.scan-result-tab.active .scan-result-tab-count {
  background: rgba(178, 102, 255, 0.18);
  color: #e9d5ff;
}

.scan-result-tab--baslangic.active {
  background: color-mix(in srgb, var(--baslangic) 14%, transparent);
  border-color: color-mix(in srgb, var(--baslangic) 35%, transparent);
}

.scan-result-tab--bv.active {
  background: color-mix(in srgb, var(--bv) 14%, transparent);
  border-color: color-mix(in srgb, var(--bv) 35%, transparent);
}

.scan-result-tab--tb.active {
  background: color-mix(in srgb, var(--tb) 14%, transparent);
  border-color: color-mix(in srgb, var(--tb) 35%, transparent);
}

.scan-result-tab--bist.active {
  background: color-mix(in srgb, #C989FF 14%, transparent);
  border-color: color-mix(in srgb, #C989FF 35%, transparent);
}

.scan-result-tab--kripto.active {
  background: color-mix(in srgb, #fbbf24 14%, transparent);
  border-color: color-mix(in srgb, #fbbf24 35%, transparent);
}

.scan-result-tab--binance-try.active {
  background: color-mix(in srgb, #34d399 14%, transparent);
  border-color: color-mix(in srgb, #34d399 35%, transparent);
}

.scan-result-tab--us.active {
  background: color-mix(in srgb, #38bdf8 14%, transparent);
  border-color: color-mix(in srgb, #38bdf8 35%, transparent);
}

.scan-result-tab-dot.binance-try {
  background: #34d399;
}

.scan-result-tab-dot.us {
  background: #38bdf8;
}

.scan-result-panels {
  padding: 0.65rem 0.75rem 0.75rem;
}

.scan-result-panel .table-wrap {
  max-height: none;
  overflow: visible;
}

.scan-result-panel .scan-table thead {
  position: sticky;
  top: calc(var(--scan-tabs-sticky-top) + var(--scan-tabs-height));
  z-index: 28;
  background: var(--surface);
}

.scanner-page .accordion-item {
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.scanner-page .accordion-item--kanalbasi {
  border-left: 3px solid #C989FF;
}

.scanner-page .accordion-item--vurgun,
.scanner-page .accordion-item--hazirlik {
  border-left: 3px solid #94a3b8;
}

.scanner-page .accordion-item--baslangic {
  border-left: 3px solid var(--baslangic);
}

.scanner-page .accordion-item--pivot {
  border-left: 3px solid var(--pivot);
}

.scanner-page .accordion-item--sonalis {
  border-left: 3px solid var(--sonalis);
}

.scanner-page .accordion-item--bv {
  border-left: 3px solid var(--bv);
}

.scanner-page .accordion-item--tb {
  border-left: 3px solid var(--tb);
}

.panel-desc {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.kirilim-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.kirilim-pill--break {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
}

.kirilim-pill--touch {
  background: rgba(20, 184, 166, 0.18);
  color: #2dd4bf;
}

.kirilim-pill--both {
  background: rgba(250, 204, 21, 0.2);
  color: #facc15;
}

.kirilim-pill--support-break {
  background: rgba(248, 113, 113, 0.18);
  color: #f87171;
}

.kirilim-pill--resist-touch {
  background: rgba(249, 115, 22, 0.18);
  color: #fb923c;
}

.kirilim-pill--retest-resist {
  background: rgba(96, 165, 250, 0.18);
  color: #93c5fd;
}

.kirilim-pill--retest-support {
  background: rgba(192, 132, 252, 0.18);
  color: #d8b4fe;
}

.kesisim-page .scan-table--kesisim thead th.sortable {
  cursor: pointer;
  user-select: none;
}

.kesisim-page .scan-table--kesisim thead th.sortable:hover {
  color: var(--text);
}

.kesisim-results-intro {
  padding: 0 0 0.85rem;
  border-bottom: 1px solid var(--border);
}

.kesisim-results-head,
.rsi-results-head,
.ema-results-head,
.squeeze-results-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.kesisim-results-head h2,
.rsi-results-head h2,
.ema-results-head h2,
.squeeze-results-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.rsi-results-intro .panel-desc,
.ema-results-intro .panel-desc,
.squeeze-results-intro .panel-desc {
  margin: 0;
  max-width: 42rem;
}

.scanner-stat--kesisim-os .scanner-stat-value {
  color: #4ade80;
}

.scanner-stat--kesisim-ob .scanner-stat-value {
  color: #f87171;
}

.kesisim-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.kesisim-pill--bull-os {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
}

.kesisim-pill--bear-ob {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
}

.kesisim-pill--os {
  background: rgba(20, 184, 166, 0.18);
  color: #2dd4bf;
}

.kesisim-pill--ob {
  background: rgba(251, 146, 60, 0.18);
  color: #fb923c;
}

.scanner-stat--rsi-bull .scanner-stat-value {
  color: #4ade80;
}

.scanner-stat--rsi-bear .scanner-stat-value {
  color: #f87171;
}

.rsi-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.rsi-pill--bull {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
}

.rsi-pill--bear {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
}

.ema-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: normal;
  max-width: 14rem;
  line-height: 1.25;
  text-align: center;
}

.ema-pill--safety {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
}

.ema-pill--unsafety {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
}

.ema-pill--buy {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.ema-pill--sell {
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
}

.ema-pill--neutral {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
}

.btn-ema.btn-scan:not(:disabled) {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.squeeze-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.squeeze-pill--sq43,
.squeeze-pill--sq4,
.squeeze-pill--sq3 {
  background: rgba(249, 115, 22, 0.18);
  color: #fb923c;
}

.squeeze-pill--nr4,
.squeeze-pill--nr3 {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
}

.squeeze-pill--m-piv {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
}

.squeeze-pill--neutral {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
}

.squeeze-bias--up { color: #4ade80; }
.squeeze-bias--down { color: #f87171; }
.squeeze-bias--neutral { color: #facc15; }

.btn-squeeze.btn-scan:not(:disabled) {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

.col-score,
.col-spread,
.col-bias {
  font-variant-numeric: tabular-nums;
}

  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: var(--muted);
}

.accordion-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.accordion-signal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.accordion-signal-dot.kanalbasi {
  background: #C989FF;
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.2);
}

.accordion-signal-dot.vurgun,
.accordion-signal-dot.hazirlik {
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2);
}

.accordion-signal-dot.baslangic {
  background: var(--baslangic);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.accordion-signal-dot.pivot {
  background: var(--pivot);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.accordion-signal-dot.sonalis {
  background: var(--sonalis);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2);
}

.accordion-signal-dot.bv {
  background: var(--bv);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.accordion-signal-dot.tb {
  background: var(--tb);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.accordion-signal-dot.bist {
  background: #C989FF;
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.2);
}

.accordion-signal-dot.kripto {
  background: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.accordion-count {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  min-width: 1.65rem;
  height: 1.65rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  line-height: 1.65rem;
  text-align: center;
}

.scanner-page .accordion-item.open .accordion-count {
  background: rgba(178, 102, 255, 0.15);
  border-color: rgba(178, 102, 255, 0.35);
  color: #e9d5ff;
}

.scanner-page .accordion-item.open .accordion-body > .table-wrap {
  max-height: 480px;
}

.scanner-page .fav-btn:hover {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.25);
}

.scanner-page .fav-btn.active {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
}

.scanner-page .scan-table th.sortable {
  cursor: pointer;
}

.scan-sort-bar {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.scan-sort-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(10, 14, 20, 0.55);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.scan-sort-chip:hover {
  color: var(--text);
  border-color: rgba(178, 102, 255, 0.35);
}

.scan-sort-chip.is-active {
  color: #e9d5ff;
  border-color: rgba(178, 102, 255, 0.45);
  background: rgba(178, 102, 255, 0.14);
}

.scan-sort-chip.sort-asc::after,
.scan-sort-chip.sort-desc::after {
  font-size: 0.75em;
  color: var(--accent);
}

.scan-sort-chip.sort-asc::after {
  content: "↑";
}

.scan-sort-chip.sort-desc::after {
  content: "↓";
}

.dist-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  padding: 0.28rem 0.55rem;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.dist-pill--ok {
  background: var(--baslangic-bg);
  color: var(--baslangic);
}

.dist-pill--warn {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.dist-pill--muted {
  background: rgba(42, 53, 72, 0.5);
  color: var(--muted);
}

.col-target,
.col-dist {
  white-space: nowrap;
}

/* —— Mobil: tablolar → kart listesi (yatay scroll yok) —— */
@media (max-width: 768px) {
  .scanner-results .scan-sort-bar {
    display: flex;
    padding: 0.55rem 0;
    margin-bottom: 0.5rem;
  }

  .scan-result-tab-label {
    font-size: 0.72rem;
  }

  .scan-result-panel .table-wrap {
    max-height: none;
  }

  .table-wrap:has(.portfolio-table) {
    overflow-x: visible;
  }

  .accordion-item:not(.portfolio-accordion-item).open .accordion-body > .table-wrap:has(.portfolio-table) {
    overflow-x: visible;
    max-height: none;
  }

  .portfolio-accordion {
    --portfolio-accordion-row-h: 8.75rem;
  }

  .portfolio-page .portfolio-accordion-item.open .accordion-body > .table-wrap:has(.portfolio-table),
  .portfolio-page .portfolio-accordion-item.open .accordion-body > .accordion-panel-content .table-wrap,
  .portfolio-page .portfolio-accordion-item.open .accordion-body > .accordion-panel-content .scoreboard-table-wrap {
    overflow-y: auto;
    max-height: var(--portfolio-accordion-table-max-h);
  }

  .portfolio-page .portfolio-accordion-item.open .accordion-body > .table-wrap:has(.portfolio-table) {
    overflow-x: visible;
  }

  .portfolio-table {
    display: block;
    width: 100%;
  }

  .portfolio-table thead {
    display: none;
  }

  .portfolio-table tbody {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }

  .portfolio-table tbody tr.mobile-data-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.55rem 0.65rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface2);
  }

  .portfolio-table tbody tr.mobile-data-row:hover {
    background: rgba(26, 34, 48, 0.98);
    border-color: rgba(178, 102, 255, 0.3);
  }

  .portfolio-table tbody tr.mobile-data-row td {
    display: block;
    padding: 0;
    border: none;
  }

  .portfolio-table tbody tr.mobile-data-row td[data-label]:not([data-label=""])::before {
    content: attr(data-label);
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 0.25rem;
  }

  .portfolio-table .col-fav,
  .portfolio-table .col-action,
  .portfolio-table .col-flag {
    flex: 0 0 auto;
    align-self: flex-start;
  }

  .portfolio-table .col-fav,
  .portfolio-table .col-action:not(.col-action--end) {
    order: 1;
  }

  .portfolio-table .col-action.col-action--end {
    order: 14;
    margin-left: auto;
    align-self: flex-start;
  }

  .portfolio-table .col-flag {
    order: 2;
  }

  .portfolio-table .col-asset {
    flex: 1 1 8rem;
    min-width: 0;
    max-width: none;
    order: 3;
  }

  .portfolio-table .col-asset .asset-cell {
    max-width: none;
  }

  .portfolio-table .col-change {
    flex: 0 0 auto;
    margin-left: auto;
    align-self: flex-start;
    order: 4;
  }

  .portfolio-table .col-change::before {
    display: none !important;
  }

  .portfolio-table .col-signal {
    flex: 1 1 100%;
    order: 10;
  }

  .portfolio-table .scan-row .col-price {
    order: 11;
  }

  .portfolio-table .scan-row .col-target {
    order: 12;
  }

  .portfolio-table .scan-row .col-dist {
    order: 13;
  }

  .portfolio-table .mobile-data-row:not(.scan-row) .col-price {
    order: 11;
  }

  .portfolio-table .mobile-data-row:not(.scan-row) .col-current {
    order: 12;
  }

  .portfolio-table .mobile-data-row:not(.scan-row) .col-added {
    order: 13;
  }

  .portfolio-table .scan-row .col-price,
  .portfolio-table .scan-row .col-target,
  .portfolio-table .scan-row .col-dist,
  .portfolio-table .mobile-data-row:not(.scan-row) .col-price,
  .portfolio-table .mobile-data-row:not(.scan-row) .col-current,
  .portfolio-table .mobile-data-row:not(.scan-row) .col-added {
    flex: 1 1 calc(33.333% - 0.5rem);
    min-width: 0;
  }

  .portfolio-table .chg-pill,
  .portfolio-table .dist-pill {
    min-width: 0;
    width: 100%;
    justify-content: center;
  }

  .portfolio-table .signal-pill {
    max-width: none;
  }

  .portfolio-table .date-cell {
    font-size: 0.7rem;
    white-space: normal;
  }
}

.watchlist {
  padding: clamp(1rem, 2.5vw, 1.5rem);
}

.watchlist-sections {
  margin-top: 0;
}

.search-result-market {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: rgba(178, 102, 255, 0.12);
  color: var(--accent);
}

.search-result-market.binance {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.search-result-market.binance-try {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
}

.search-result-market.us {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}

.search-result-add {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(178, 102, 255, 0.35);
  background: rgba(178, 102, 255, 0.08);
}

.search-result-item.in-watchlist .search-result-add {
  color: var(--muted);
  border-color: var(--border);
  background: transparent;
}

.col-action {
  width: 42px;
  text-align: center;
}

.col-action--end {
  padding-left: 0.25rem;
}

.scanner-search {
  padding: 1rem clamp(1rem, 2.5vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.scanner-search-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.search-wrap-full {
  width: 100%;
}

.search-wrap-full input[type="search"] {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border-radius: 10px;
}

.controls {
  padding: clamp(1rem, 2vw, 1.25rem) clamp(1rem, 2.5vw, 1.5rem);
  width: 100%;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  align-items: stretch;
  width: 100%;
}

.controls-grid.controls-grid--cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
}

.controls-grid.controls-grid--cols-4 .control-scan {
  grid-column: auto;
}

.kirilim-controls {
  width: 100%;
  box-sizing: border-box;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.control-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  line-height: 1.2;
  min-height: 0.9rem;
}

.control-group .field-control,
.control-tolerance .range-row,
.control-scan .btn-scan {
  margin-top: auto;
}

.control-label-invisible {
  display: none;
}

.control-tolerance .range-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.5rem;
}

.control-tolerance input[type="range"] {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 6px;
  margin: 0;
  accent-color: var(--moi);
  background: transparent;
  --range-progress: 100%;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.control-tolerance input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--moi) 0%,
    var(--moi) var(--range-progress),
    var(--border) var(--range-progress),
    var(--border) 100%
  );
}

.control-tolerance input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dark), var(--moi));
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 2px rgba(178, 102, 255, 0.35);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.control-tolerance input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0 3px rgba(178, 102, 255, 0.45);
}

.control-tolerance input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  border: none;
}

.control-tolerance input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-dark), var(--moi));
  border: none;
}

.control-tolerance input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dark), var(--moi));
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 2px rgba(178, 102, 255, 0.35);
  cursor: pointer;
}

.control-scan {
  display: flex;
  flex-direction: column;
}

.btn-scan {
  width: 100%;
  justify-content: center;
  margin-left: 0;
}

input[type="search"] {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
}

input[type="range"] {
  accent-color: var(--accent);
}

input[type="search"]::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(178, 102, 255, 0.2);
}

.search-wrap {
  position: relative;
  z-index: 1;
}

.search-wrap:focus-within {
  z-index: 200;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1000;
  max-height: min(320px, 50vh);
  overflow-y: auto;
  overflow-x: hidden;
  background: #0c1019;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.35);
  isolation: isolate;
  -webkit-overflow-scrolling: touch;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(42, 53, 72, 0.65);
  transition: background 0.12s;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-item.is-active {
  background: rgba(178, 102, 255, 0.14);
}

.search-result-item.is-active {
  box-shadow: inset 3px 0 0 var(--accent);
}

.search-result-empty {
  padding: 0.85rem 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.search-result-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
}

.search-result-main .sym {
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
}

.search-result-name {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.search-dropdown .fav-btn {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-hint {
  font-size: 0.7rem;
  color: var(--muted);
}

output {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent-dark), var(--moi));
  color: white;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.hidden { display: none !important; }

/* Uzun tarama/portföy sayfalarında below-the-fold boyamayı ertele */
.scanner-view:not(.hidden),
.portfolio-view:not(.hidden) {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.stat {
  padding: 1rem 1.25rem;
}

.stat-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.stat-value {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 600;
}

.stat-time {
  font-size: 0.85rem;
}

.stat.kanalbasi .stat-value { color: #C989FF; }
.stat.level17 .stat-value { color: var(--level17); }
.stat.hazirlik .stat-value { color: #c4cad4; }
.stat.baslangic .stat-value { color: var(--baslangic); }
.stat.pivot .stat-value { color: var(--pivot); }

.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.results {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.accordion-item.open {
  border-color: rgba(178, 102, 255, 0.35);
}

.panel { overflow: hidden; }

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border: none;
  border-bottom: 1px solid transparent;
  background: var(--surface2);
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.accordion-trigger:hover {
  background: rgba(178, 102, 255, 0.08);
}

.accordion-item.open .accordion-trigger {
  border-bottom-color: var(--border);
}

.accordion-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.accordion-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.accordion-item.open .accordion-chevron {
  transform: rotate(-135deg);
  border-color: var(--accent);
}

.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}

.accordion-item.open .accordion-body {
  grid-template-rows: 1fr;
}

.accordion-body > .table-wrap,
.accordion-body > .accordion-panel-content {
  overflow: hidden;
  min-height: 0;
}

.accordion-item.open .accordion-body > .table-wrap,
.accordion-item.open .accordion-body > .accordion-panel-content .table-wrap,
.accordion-item.open .accordion-body > .accordion-panel-content .scoreboard-table-wrap {
  overflow-x: auto;
  overflow-y: auto;
}

.accordion-trigger h2,
.accordion-title-wrap h2,
.panel-head h2 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--hazirlik);
  margin-left: 0.35rem;
}

.tag.purple { color: var(--moi); }

.tag.green { color: var(--baslangic); }

.count {
  font-family: var(--mono);
  font-size: 0.85rem;
  background: var(--surface);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead {
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}

th {
  text-align: left;
  padding: 0.65rem 1rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

th.sortable:hover {
  color: var(--text, #e2e8f0);
}

th.sortable::after {
  content: " \2195";
  font-size: 0.65em;
  opacity: 0.35;
  margin-left: 0.15em;
}

th.sort-asc::after {
  content: " \2191";
  opacity: 0.95;
  color: var(--accent);
}

th.sort-desc::after {
  content: " \2193";
  opacity: 0.95;
  color: var(--accent);
}

td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(42, 53, 72, 0.6);
}

tbody tr:hover {
  background: rgba(178, 102, 255, 0.04);
}

.sym {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--accent);
}

.mono {
  font-family: var(--mono);
  font-size: 0.82rem;
}

.pct-ok { color: var(--baslangic); }
.pct-warn { color: #fbbf24; }

.chg-up { color: var(--baslangic); }
.chg-down { color: var(--danger); }

.empty {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .controls-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .control-scan {
    grid-column: 1 / -1;
  }

  .controls-grid.controls-grid--cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .controls-grid.controls-grid--cols-4 .control-scan {
    grid-column: auto;
  }

  .btn-scan {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .scoreboard-head {
    flex-direction: column;
  }

  .scoreboard-head-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .btn-scoreboard-reset {
    align-self: stretch;
    margin-bottom: 0;
  }

  .scoreboard-threshold {
    width: 100%;
    max-width: none;
  }

  .scoreboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scoreboard-block-actions {
    width: 100%;
    justify-content: space-between;
  }

  .scoreboard-block-actions .btn-scoreboard-reset {
    flex: 1 1 auto;
  }

  .login-screen-inner {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .login-hero {
    text-align: center;
  }

  .login-logo {
    align-items: center;
    text-align: center;
  }

  .login-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .login-features {
    align-items: center;
  }

  .app-shell-row {
    flex-wrap: wrap;
    row-gap: 0.65rem;
  }

  body.is-scrolled .app-shell-row {
    row-gap: 0.45rem;
  }

  .app-toolbar {
    margin-left: auto;
  }

  .user-chip {
    max-width: 130px;
  }

  .app-nav {
    flex-wrap: wrap;
  }

  .nav-tab {
    flex: 1 1 calc(50% - 0.2rem);
    min-width: calc(50% - 0.2rem);
  }

  .main-nav .nav-tab {
    flex: 1;
    min-width: 0;
  }

  .controls-grid {
    grid-template-columns: 1fr 1fr;
  }

  .controls-grid.controls-grid--cols-4 {
    grid-template-columns: 1fr 1fr;
  }

  .controls-grid.controls-grid--cols-4 .control-scan {
    grid-column: 1 / -1;
  }

  .control-tolerance {
    grid-column: 1 / -1;
  }

  .profile-head {
    flex-direction: column;
  }
}

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

  .control-scan {
    grid-column: auto;
  }

  .app-shell-card {
    padding: 0.72rem 0.85rem 0.62rem;
  }

  body.is-scrolled .app-shell-card {
    padding: 0.48rem 0.85rem 0.42rem;
  }

  .user-name {
    display: none;
  }

  .toolbar-divider {
    display: none;
  }

  .nav-tab span:not(.nav-badge) {
    font-size: 0.75rem;
  }

  .logged-in {
    flex-wrap: wrap;
  }

  .scanner-head {
    flex-direction: column;
    gap: 0.75rem;
  }

  .scanner-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scanner-stat-value {
    font-size: 1.15rem;
  }

  .login-logo {
    align-items: center;
    text-align: center;
  }
}

/* —— UI refresh: command panels, stats, tables —— */
.page-eyebrow {
  font-size: var(--type-eyebrow-size);
  font-weight: var(--type-eyebrow-weight);
  letter-spacing: var(--type-eyebrow-tracking);
  line-height: var(--type-eyebrow-lh);
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: var(--space-title-desc);
}

.scanner-command {
  padding: clamp(1.15rem, 2.5vw, 1.45rem);
  border-color: rgba(178, 102, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(178, 102, 255, 0.07) 0%, transparent 55%),
    var(--surface);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.scanner-head {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.scanner-head h2 {
  font-size: var(--type-page-title-size);
  font-weight: var(--type-page-title-weight);
  line-height: var(--type-page-title-lh);
  letter-spacing: var(--type-page-title-tracking);
  color: var(--text-heading);
}

.scanner-head__text .profile-sub {
  margin-top: var(--space-title-desc);
}

.scanner-search-block {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 120;
}

.scanner-command__grid {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.kirilim-settings {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.kirilim-settings__summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  padding: 0.1rem 0;
  border-radius: 10px;
  transition: background 0.15s;
}

.kirilim-settings__summary:hover {
  background: rgba(178, 102, 255, 0.04);
}

.kirilim-settings__summary::-webkit-details-marker {
  display: none;
}

.kirilim-settings__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: rgba(178, 102, 255, 0.12);
  border: 1px solid rgba(178, 102, 255, 0.22);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ddd6fe;
  flex-shrink: 0;
}

.kirilim-settings__head {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  flex: 1;
}

.kirilim-settings__title {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.kirilim-settings__sub {
  font-size: 0.78rem;
  color: var(--muted-2);
  line-height: 1.35;
}

.kirilim-settings__chevron {
  width: 8px;
  height: 8px;
  margin-left: 0.35rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.kirilim-settings[open] .kirilim-settings__chevron {
  transform: rotate(-135deg);
  border-color: var(--accent);
}

.rsi-settings .kirilim-settings__badge {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.28);
  color: #86efac;
}

.rsi-settings .kirilim-settings__summary:hover {
  background: rgba(34, 197, 94, 0.05);
}

.rsi-settings[open] .kirilim-settings__chevron {
  border-color: #4ade80;
}

.kirilim-settings__body {
  margin-top: 0.85rem;
}

.kirilim-settings__panel {
  padding: 1rem 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(7, 9, 15, 0.42);
}

.kirilim-settings__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 0.75rem;
}

.kirilim-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.kirilim-field--wide {
  grid-column: 1 / -1;
}

.kirilim-field label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
  line-height: 1.25;
}

.kirilim-field-hint {
  font-size: 0.72rem;
  color: var(--muted-2);
  line-height: 1.35;
  margin-top: 0.1rem;
}

.kirilim-settings__footer {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.liq-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.75rem;
}

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

.kirilim-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(14, 18, 28, 0.55);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.kirilim-toggle:hover {
  border-color: var(--border-strong);
  background: rgba(14, 18, 28, 0.72);
}

.kirilim-toggle:has(input:checked) {
  border-color: rgba(178, 102, 255, 0.35);
  background: rgba(178, 102, 255, 0.08);
}

.kirilim-toggle input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

.kirilim-toggle__copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.kirilim-toggle__copy strong {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
}

.kirilim-toggle__copy span {
  font-size: 0.74rem;
  color: var(--muted-2);
  line-height: 1.35;
}

@media (max-width: 960px) {
  .kirilim-settings__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .kirilim-settings__summary {
    align-items: flex-start;
  }

  .kirilim-settings__chevron {
    margin-top: 0.55rem;
  }

  .kirilim-settings__grid {
    grid-template-columns: 1fr;
  }

  .kirilim-field--wide {
    grid-column: auto;
  }
}

.search-wrap-full input[type="search"] {
  background: rgba(7, 9, 15, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-wrap-full input[type="search"]:focus {
  outline: none;
  border-color: rgba(178, 102, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(178, 102, 255, 0.1);
}

.scanner-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.15rem 0;
}

.scanner-summary:not(:empty)::before {
  content: none;
}

.portfolio-summary:not(:empty) {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(7, 9, 15, 0.45);
  font-size: 0.82rem;
  color: var(--muted);
}

.scanner-stat {
  position: relative;
  overflow: hidden;
  border-left: none;
  padding-top: 1rem;
}

.scanner-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--stat-accent, var(--accent));
  opacity: 0.85;
}

.scanner-stat--kanalbasi { --stat-accent: var(--accent-light); }
.scanner-stat--bv { --stat-accent: var(--bv); }
.scanner-stat--tb { --stat-accent: var(--tb); }
.scanner-stat--vurgun,
.scanner-stat--hazirlik { --stat-accent: var(--hazirlik); }
.scanner-stat--baslangic { --stat-accent: var(--baslangic); }
.scanner-stat--pivot { --stat-accent: var(--pivot); }
.scanner-stat--sonalis { --stat-accent: var(--sonalis); }
.scanner-stat--kirilim { --stat-accent: #f472b6; }
.scanner-stat--kirilim-touch { --stat-accent: #38bdf8; }
.scanner-stat--kirilim-support-break { --stat-accent: #f87171; }
.scanner-stat--kirilim-resist-touch { --stat-accent: #fb923c; }
.scanner-stat--kirilim-retest-resist { --stat-accent: #60a5fa; }
.scanner-stat--kirilim-retest-support { --stat-accent: #c084fc; }
.scanner-stat--kesisim-os { --stat-accent: #4ade80; }
.scanner-stat--kesisim-ob { --stat-accent: #f87171; }
.scanner-stat--time { --stat-accent: var(--muted-2); }

.accordion-item {
  border-color: var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.accordion-item.open {
  border-color: rgba(178, 102, 255, 0.22);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.accordion-trigger {
  transition: background 0.15s;
}

.accordion-item.open .accordion-trigger {
  background: rgba(178, 102, 255, 0.05);
}

.panel-head h2,
.kirilim-results-head h2,
.kesisim-results-head h2,
.profile-head h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.profile-head,
.kirilim-results-intro,
.kesisim-results-intro,
.rsi-results-intro,
.ema-results-intro,
.squeeze-results-intro {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.kirilim-results-panel,
.kesisim-results-panel,
.rsi-results-panel,
.ema-results-panel,
.squeeze-results-panel,
.profile.card {
  padding: clamp(1.15rem, 2.5vw, 1.45rem);
  border-color: rgba(178, 102, 255, 0.1);
}

.portfolio-table thead th {
  background: rgba(7, 9, 15, 0.45);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  color: var(--muted-2);
}

.portfolio-table tbody tr {
  transition: background 0.12s;
}

.portfolio-table tbody tr:hover {
  background: rgba(178, 102, 255, 0.04);
}

.btn-primary {
  border-radius: 12px;
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 12px 32px rgba(178, 102, 255, 0.45);
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-top: 2.5rem;
  padding: 1.5rem 0 0.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted-2);
}

.user-chip {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.toolbar-btn {
  border-radius: 10px;
  background: rgba(7, 9, 15, 0.55);
}

.notif-card {
  border-color: var(--border);
  background: rgba(14, 18, 28, 0.75);
  transition: border-color 0.15s, transform 0.15s;
}

.notif-card:hover {
  border-color: var(--border-strong);
}

.watchlist-card,
.profile-block {
  border-color: var(--border);
}

/* —— Portfolio pages (Favoriler, İzleme, Bildirimler) —— */
.portfolio-view {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  width: 100%;
}

.portfolio-command {
  border-color: rgba(178, 102, 255, 0.14);
}

.portfolio-command .scanner-head {
  margin-bottom: 0;
}

.portfolio-command__actions {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.portfolio-thresholds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 1.25rem;
  max-width: 960px;
}

.wallet-settings-panel {
  margin-bottom: 1.1rem;
  padding: clamp(1rem, 2.5vw, 1.25rem);
}

.wallet-settings-panel .kirilim-settings.wallet-settings {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.wallet-settings__badge {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.28);
  color: #fcd34d;
}

.wallet-settings .kirilim-settings__summary:hover {
  background: rgba(251, 191, 36, 0.05);
}

.wallet-settings[open] .kirilim-settings__chevron {
  border-color: #fbbf24;
}

.wallet-settings__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wallet-settings-market-tabs {
  position: static;
  top: auto;
  z-index: 1;
  margin-bottom: 1rem;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.wallet-settings-actions {
  margin-top: 0;
}

.wallet-settings-actions .portfolio-thresholds {
  max-width: none;
}

.portfolio-command__actions .portfolio-thresholds .scoreboard-threshold {
  max-width: none;
}

.threshold-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--muted-2);
  line-height: 1.35;
}

.scoreboard-threshold--stop input[type="range"] {
  accent-color: #f472b6;
}

.scoreboard-threshold--stop output {
  color: #fda4af;
}

.scoreboard-threshold--amount .trade-amount-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
}

.scoreboard-threshold--amount .trade-amount-head label {
  margin: 0;
}

.trade-amount-currency-tabs {
  display: inline-flex;
  padding: 0.15rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(7, 9, 15, 0.55);
  gap: 0.12rem;
}

.trade-amount-currency-tab {
  min-width: 1.85rem;
  padding: 0.22rem 0.45rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.trade-amount-currency-tab:hover {
  color: var(--text);
}

.trade-amount-currency-tab.active {
  background: rgba(178, 102, 255, 0.18);
  color: var(--accent-light);
  box-shadow: inset 0 0 0 1px rgba(178, 102, 255, 0.22);
}

.scoreboard-threshold--amount-try .trade-amount-prefix {
  color: #fecaca;
}

.scoreboard-threshold--amount-usd .trade-amount-prefix {
  color: #a7f3d0;
}

.scoreboard-threshold--amount .trade-amount-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.scoreboard-threshold--amount .trade-amount-prefix {
  font-size: 0.95rem;
  font-weight: 700;
}

.scoreboard-threshold--amount .field-control {
  flex: 1;
  min-width: 0;
}

.portfolio-command__actions .scoreboard-threshold {
  max-width: 320px;
}

.portfolio-head-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(7, 9, 15, 0.45);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-light);
}

.portfolio-stats {
  width: 100%;
}

.portfolio-page {
  --scan-tabs-sticky-top: 9rem;
  --scan-tabs-height: 3.15rem;
}

.portfolio-results-panel,
.portfolio-scoreboard-panel {
  padding: clamp(1rem, 2.5vw, 1.35rem);
  border-color: rgba(178, 102, 255, 0.1);
  background: var(--surface);
  overflow: visible;
}

.portfolio-results-panel .portfolio-results-intro {
  margin-bottom: 0;
  padding-bottom: 0.85rem;
}

.portfolio-page .scan-result-tabs-sticky {
  position: sticky;
  top: var(--scan-tabs-sticky-top);
  z-index: 32;
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 20, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.portfolio-page .scan-result-tabs-sticky .scan-result-tabs {
  position: static;
  top: auto;
  flex: 1;
  min-width: 0;
  border-bottom: none;
  box-shadow: none;
  background: transparent;
}

.portfolio-page .scan-result-tabs-heading {
  flex-shrink: 0;
  align-self: center;
  margin-left: auto;
  padding: 0 0.85rem 0 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  white-space: nowrap;
}

.portfolio-page .scan-result-panel .table-wrap {
  max-height: none;
  overflow: visible;
}

.portfolio-page .scan-result-panel .portfolio-table thead th {
  position: sticky;
  top: calc(var(--scan-tabs-sticky-top) + var(--scan-tabs-height));
  z-index: 28;
  background: rgba(7, 9, 15, 0.94);
  backdrop-filter: blur(6px);
}

.portfolio-results-intro {
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.portfolio-results-head h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.portfolio-results-head .panel-desc {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 62ch;
}

.portfolio-sections {
  gap: 1.25rem;
}

.portfolio-accordion {
  --portfolio-accordion-visible-rows: 10;
  --portfolio-accordion-head-h: 2.45rem;
  --portfolio-accordion-row-h: 3.05rem;
  --portfolio-accordion-table-max-h: calc(var(--portfolio-accordion-head-h) + var(--portfolio-accordion-row-h) * var(--portfolio-accordion-visible-rows));
  gap: 0.65rem;
  width: 100%;
}

.portfolio-page .portfolio-accordion-item.accordion-item {
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.portfolio-page .accordion-item--bist {
  border-left: 3px solid #C989FF;
}

.portfolio-page .accordion-item--kripto {
  border-left: 3px solid #fbbf24;
}

.portfolio-page .accordion-item.open .accordion-count {
  background: rgba(178, 102, 255, 0.15);
  border-color: rgba(178, 102, 255, 0.35);
  color: #e9d5ff;
}

.portfolio-page .accordion-item.open .accordion-body > .table-wrap,
.portfolio-page .accordion-item.open .accordion-body > .accordion-panel-content .table-wrap,
.portfolio-page .accordion-item.open .accordion-body > .accordion-panel-content .scoreboard-table-wrap {
  max-height: var(--portfolio-accordion-table-max-h);
  overscroll-behavior: contain;
}

.portfolio-page .portfolio-accordion .table-wrap {
  border-top: none;
}

.portfolio-page .portfolio-accordion .portfolio-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(7, 9, 15, 0.94);
  backdrop-filter: blur(6px);
}

.portfolio-page .portfolio-accordion .scoreboard-block-actions {
  padding: 0.85rem 1rem 0;
  justify-content: flex-end;
}

.portfolio-page .portfolio-accordion .scoreboard-block .scoreboard-kpis {
  margin: 0.75rem 1rem;
}

.portfolio-page .portfolio-accordion .scoreboard-empty,
.portfolio-page .portfolio-accordion .portfolio-empty {
  margin: 0;
}

.portfolio-page .table-wrap {
  border-top: 1px solid var(--border);
}

.portfolio-page .portfolio-empty,
.portfolio-page .portfolio-empty-main {
  padding: 1.25rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.portfolio-scoreboard-panel {
  margin-top: 0;
  overflow: visible;
}

/* —— Cüzdan demo bakiye —— */
.wallet-demo-balance {
  padding: clamp(1rem, 2.5vw, 1.35rem);
  border-color: rgba(178, 102, 255, 0.14);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(178, 102, 255, 0.08), transparent 55%),
    var(--surface);
}

.wallet-demo-balance__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.wallet-demo-balance__head-text h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.wallet-demo-balance-sub {
  margin-top: 0.35rem;
  max-width: 52ch;
}

.wallet-demo-badge {
  flex-shrink: 0;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  color: #fcd34d;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.wallet-demo-balance-panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.wallet-demo-currency-tabs {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.22rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(7, 9, 15, 0.55);
  gap: 0.2rem;
}

.wallet-demo-currency-tab {
  padding: 0.42rem 0.9rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.wallet-demo-currency-tab:hover {
  color: var(--text);
}

.wallet-demo-currency-tab.active {
  background: rgba(178, 102, 255, 0.18);
  color: var(--accent-light);
  box-shadow: inset 0 0 0 1px rgba(178, 102, 255, 0.22);
}

.wallet-demo-currency--single {
  padding: 1.15rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(7, 9, 15, 0.55);
}

.wallet-demo-currency--single.wallet-demo-currency--try {
  border-color: rgba(248, 113, 113, 0.22);
  background: linear-gradient(160deg, rgba(248, 113, 113, 0.08), rgba(7, 9, 15, 0.55));
}

.wallet-demo-currency--single.wallet-demo-currency--usd {
  border-color: rgba(52, 211, 153, 0.22);
  background: linear-gradient(160deg, rgba(52, 211, 153, 0.08), rgba(7, 9, 15, 0.55));
}

.wallet-demo-currency__equiv {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.wallet-demo-currency--try .wallet-demo-currency__amount {
  color: #fecaca;
}

.wallet-demo-currency--usd .wallet-demo-currency__amount {
  color: #a7f3d0;
}

.wallet-demo-currency__amount {
  margin: 0 0 0.45rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--text);
}

.wallet-demo-currency__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted-2);
}

.wallet-demo-currency__input {
  width: 100%;
  padding: 0.62rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(3, 5, 10, 0.65);
  color: var(--text);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.wallet-demo-currency__input:focus {
  outline: none;
  border-color: rgba(178, 102, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(178, 102, 255, 0.12);
}

.wallet-demo-actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.btn-wallet-backlog {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, opacity 0.15s;
}

.btn-wallet-backlog:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent-light);
}

.btn-wallet-backlog:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.wallet-demo-backlog-hint {
  display: block;
  max-width: 42rem;
}

.wallet-demo-rate {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.wallet-demo-rate-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.wallet-demo-rate-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted-2);
}

.wallet-demo-rate-value {
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent-light);
}

.wallet-demo-rate .threshold-hint {
  display: block;
  margin-top: 0.45rem;
}

@media (max-width: 640px) {
  .wallet-demo-balance__head {
    flex-direction: column;
  }
}

.portfolio-scoreboard-panel.scoreboard-section {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.portfolio-scoreboard-panel .scoreboard-head {
  margin-bottom: 0;
  padding-bottom: 0.85rem;
}

.portfolio-page .scan-result-panel .scoreboard-block-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0.5rem 0 0;
}

.portfolio-page .scan-result-panel .scoreboard-kpis {
  margin: 0.75rem 0;
}

.portfolio-page .scan-result-panel .scoreboard-table-wrap {
  max-height: none;
  overflow: visible;
}

.portfolio-page .scan-result-panel .scoreboard-empty {
  margin: 0;
}

.notif-command .notif-toolbar {
  margin-top: 1.1rem;
  margin-bottom: 0;
  padding-top: 1.1rem;
  padding-bottom: 0;
  border-top: 1px solid var(--border);
  border-bottom: none;
}

.notif-command .notif-summary {
  margin: 0;
  min-height: 0;
}

.notif-results-panel {
  padding-top: 1rem;
}

.notif-results-panel .notifications-grouped {
  gap: 1.5rem;
}

.notif-page .notif-card {
  border-radius: 12px;
  background: rgba(7, 9, 15, 0.45);
}

.notif-page .notif-card.unread {
  border-color: rgba(178, 102, 255, 0.28);
  background: linear-gradient(135deg, rgba(178, 102, 255, 0.08) 0%, rgba(7, 9, 15, 0.5) 55%);
}

.notif-page .notif-date-label {
  color: var(--accent-light);
}

/* —— Typography harmonization —— */
.scanner-head h2,
.profile-head h2 {
  font-size: var(--type-page-title-size);
  font-weight: var(--type-page-title-weight);
  line-height: var(--type-page-title-lh);
  letter-spacing: var(--type-page-title-tracking);
  color: var(--text-heading);
}

.portfolio-results-head h3,
.scoreboard-head h3,
.profile-block-head h3,
.profile-block-title h3,
.kirilim-results-head h2,
.kesisim-results-head h2,
.rsi-results-head h2,
.ema-results-head h2,
.squeeze-results-head h2 {
  font-size: var(--type-section-title-size);
  font-weight: var(--type-section-title-weight);
  line-height: var(--type-section-title-lh);
  letter-spacing: var(--type-section-title-tracking);
  color: var(--text-heading);
  text-transform: none;
}

.page-eyebrow,
.portfolio-page .scan-result-tabs-heading {
  font-size: var(--type-eyebrow-size);
  font-weight: var(--type-eyebrow-weight);
  letter-spacing: var(--type-eyebrow-tracking);
  line-height: var(--type-eyebrow-lh);
}

.profile-sub,
.panel-desc,
.scoreboard-sub,
.portfolio-results-head .panel-desc,
.kirilim-results-intro .panel-desc,
.rsi-results-intro .panel-desc,
.ema-results-intro .panel-desc,
.squeeze-results-intro .panel-desc {
  font-size: var(--type-desc-size);
  font-weight: var(--type-desc-weight);
  line-height: var(--type-desc-lh);
  color: var(--muted);
}

.profile-sub,
.scoreboard-sub {
  margin-top: var(--space-title-desc);
}

.panel-desc {
  margin: 0 0 var(--space-desc-content);
}

.portfolio-summary,
.scanner-summary {
  font-size: var(--type-desc-size);
  line-height: var(--type-desc-lh);
  color: var(--muted);
}

.portfolio-summary strong {
  color: var(--accent-light);
  font-weight: 600;
}

.live-refresh-status {
  font-size: var(--type-label-size);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted-2);
}

.field-label,
.scanner-search-label,
.control-group label,
.scoreboard-threshold label {
  font-size: var(--type-label-size);
  font-weight: var(--type-label-weight);
  letter-spacing: var(--type-label-tracking);
  text-transform: uppercase;
  color: var(--text-label);
  line-height: 1.35;
}

.threshold-hint {
  font-size: var(--type-label-size);
  line-height: 1.4;
  color: var(--muted-2);
}

.portfolio-table th,
.portfolio-table thead th,
.scoreboard-table thead th {
  font-size: var(--type-table-head-size);
  font-weight: var(--type-table-head-weight);
  letter-spacing: var(--type-table-head-tracking);
  text-transform: uppercase;
  color: var(--text-label);
}

.portfolio-table td {
  font-size: var(--type-table-cell-size);
  line-height: var(--type-table-cell-lh);
}

.asset-symbol {
  font-size: var(--type-symbol-size);
  font-weight: var(--type-symbol-weight);
  letter-spacing: 0.02em;
  color: var(--text-heading);
  font-variant-numeric: var(--type-num);
}

.asset-name {
  font-size: var(--type-symbol-sub-size);
  color: var(--muted);
}

.price-val,
.portfolio-table td,
.scanner-stat-value,
.score-kpi-value,
.chg-pill,
.toolbar-badge,
.nav-badge,
.scan-result-tab-count,
.portfolio-head-badge,
.profile-count,
.profile-block-count,
.accordion-count {
  font-variant-numeric: var(--type-num);
}

.price-val {
  font-size: var(--type-table-cell-size);
}

.price-val--current {
  font-weight: 600;
  color: var(--text-heading);
}

.scanner-stat-label,
.score-kpi-label {
  font-size: var(--type-stat-label-size);
  font-weight: var(--type-label-weight);
  letter-spacing: var(--type-label-tracking);
  text-transform: uppercase;
  color: var(--text-label);
}

.scanner-stat-value {
  font-size: var(--type-stat-value-size);
  font-weight: 700;
  line-height: 1.2;
}

.scanner-stat-time {
  font-size: var(--type-desc-size);
  font-weight: 500;
  color: var(--muted);
}

.score-kpi-value {
  font-size: var(--type-stat-value-size);
  font-weight: 700;
}

.scanner-stat {
  padding: 0.75rem var(--space-card-pad);
}

.chg-pill {
  font-size: var(--type-badge-size);
  font-weight: var(--type-badge-weight);
  min-width: 4.25rem;
  padding: 0.3rem 0.5rem;
}

.signal-pill {
  font-size: var(--type-badge-size);
  font-weight: var(--type-badge-weight);
}

.nav-tab,
.scan-result-tab {
  font-size: var(--type-btn-size);
  font-weight: var(--type-btn-weight);
}

.scan-result-tab-count,
.nav-badge,
.toolbar-badge {
  font-size: var(--type-badge-size);
  font-weight: var(--type-badge-weight);
  letter-spacing: 0;
}

.portfolio-head-badge {
  font-size: var(--type-desc-size);
  font-weight: var(--type-btn-weight);
  padding: 0.3rem 0.65rem;
  color: var(--accent-light);
}

.profile-count {
  font-size: var(--type-desc-size);
  color: var(--muted);
}

.portfolio-results-panel .portfolio-results-intro,
.portfolio-scoreboard-panel .scoreboard-head {
  margin-bottom: 0;
  padding-bottom: 0.75rem;
}

.portfolio-results-head .panel-desc {
  margin-top: var(--space-title-desc);
  max-width: 62ch;
}

.portfolio-command,
.scanner-command {
  padding: var(--space-card-pad);
}

.portfolio-command__actions {
  margin-top: var(--space-section-gap);
  padding-top: var(--space-section-gap);
}

.portfolio-view,
.scanner-page {
  gap: var(--space-section-gap);
}

@media (max-width: 768px) {
  .portfolio-command__actions .scoreboard-threshold {
    max-width: none;
    width: 100%;
  }

  .portfolio-head-badge {
    align-self: flex-start;
  }

  .notif-command .notif-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}
