/**
 * BIST Analyzer — terminal / işlem ekranı estetiği
 * Özel imleç: cursor-borsa.svg (mum + trend)
 */

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  --bg-deep: #080b10;
  --bg: #0c1018;
  --panel: #121a26;
  --panel-elevated: #161f2e;
  --text: #e6edf3;
  --muted: #8b9eb0;
  --border: #243044;
  --border-glow: rgba(212, 175, 55, 0.22);
  --gold: #d4af37;
  --gold-dim: rgba(212, 175, 55, 0.15);
  --up: #26a69a;
  --down: #ef5350;
  --accent: #3d7dd6;
  --err: #ff7b72;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.2, 0.64, 1);
  /* Özel imleç: 4,4 = mum köşesi (tıklama hissi) */
  --cursor-borsa: url("/static/cursor-borsa.svg") 4 4, crosshair;
  --cursor-pointer: url("/static/cursor-borsa.svg") 4 4, pointer;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  font-feature-settings: "kern" 1, "liga" 1, "tnum" 1;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    linear-gradient(180deg, rgba(212, 175, 55, 0.04) 0%, transparent 38%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 40px,
      rgba(36, 48, 68, 0.35) 40px,
      rgba(36, 48, 68, 0.35) 41px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 40px,
      rgba(36, 48, 68, 0.22) 40px,
      rgba(36, 48, 68, 0.22) 41px
    );
  background-attachment: fixed;
  cursor: var(--cursor-borsa);
}

::selection {
  background: var(--gold-dim);
  color: var(--text);
}

a {
  color: var(--gold);
  cursor: var(--cursor-pointer);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
}

/* Üst şerit — borsa ticker hissi */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.65rem 0 1.1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
  position: relative;
}

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

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--panel-elevated), var(--panel));
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px var(--border-glow), var(--shadow);
}

.brand-mark svg {
  width: 28px;
  height: 28px;
}

.brand-text h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-text h1 .accent {
  color: var(--gold);
}

.brand-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ultra-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0a0e14;
  background: linear-gradient(135deg, #e8c547 0%, #b8860b 45%, #7fd4ff 100%);
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 20px rgba(127, 212, 255, 0.15);
}

.sub {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 52ch;
}

.ticker-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(22, 31, 46, 0.95), rgba(12, 16, 24, 0.88));
  border: 1px solid rgba(36, 48, 68, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ticker-strip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 8px var(--up);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-strip .dot {
    animation: none;
  }
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: border-color 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.45;
}

.row {
  margin-bottom: 0.95rem;
}

.row:last-of-type {
  margin-bottom: 0.35rem;
}

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

.stock-list-hint {
  margin: 0.45rem 0 0;
  max-width: 52rem;
  line-height: 1.45;
}

select,
input[type="text"] {
  width: 100%;
  max-width: 440px;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: var(--cursor-pointer);
}

select:hover,
input[type="text"]:hover {
  border-color: rgba(212, 175, 55, 0.35);
}

select:focus,
input[type="text"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.btn {
  margin-top: 0.65rem;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: var(--cursor-pointer);
  color: #0a0e14;
  background: linear-gradient(180deg, #e8c547 0%, var(--gold) 55%, #b8962e 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 4px 14px rgba(212, 175, 55, 0.25);
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 6px 20px rgba(212, 175, 55, 0.32);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.3);
}

.err {
  color: var(--err);
  font-size: 0.875rem;
  margin-top: 0.85rem;
}

.result {
  margin-top: 1.25rem;
}

.meta {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(18, 26, 38, 0.6);
  border-left: 3px solid var(--gold);
}

.chart-shell {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1.35rem;
  box-shadow: var(--shadow);
}

.chart-shell-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: linear-gradient(180deg, var(--panel-elevated), var(--panel));
  border-bottom: 1px solid var(--border);
}

.chart-shell-bar .tag {
  color: var(--gold);
}

.source-badge {
  margin-left: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  vertical-align: middle;
}

.source-badge.src-eodhd {
  color: #1a2f1a;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.45), rgba(39, 174, 96, 0.25));
  border: 1px solid rgba(46, 204, 113, 0.45);
}

.source-badge.src-yahoo {
  color: #e8d5b0;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.source-note {
  margin: 0 0 0.75rem 0;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  border-left: 2px solid rgba(212, 175, 55, 0.45);
  background: rgba(18, 26, 38, 0.45);
  font-size: 0.95rem;
  line-height: 1.55;
}

.ultra-inline-badge {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.14rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  vertical-align: middle;
  color: #0a0e14;
  background: linear-gradient(135deg, #e8c547, #7fd4ff);
  border-radius: 4px;
}

.chart-box {
  background: var(--bg-deep);
  padding: 0.75rem 0.5rem 0.5rem;
  position: relative;
}

.chart-box--history {
  min-height: 320px;
  height: 36vh;
  max-height: 520px;
  margin-bottom: 0.65rem;
}

.chart-box--forecast {
  min-height: 440px;
  height: 48vh;
  max-height: 640px;
}

.chart-shell--ai {
  margin-top: 0.75rem;
}

.chart-shell--ai .chart-shell-bar {
  margin-bottom: 0.35rem;
}

.ai-chart-head {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.ai-chart-meta {
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.ai-chart-note {
  margin: 0 0 0.5rem;
  line-height: 1.55;
  font-size: 0.95rem;
}

.chart-shell--ai .ai-chart-note p {
  font-size: inherit;
  line-height: inherit;
}

.chart-box--ai {
  min-height: 340px;
  height: 42vh;
  max-height: 560px;
}

.chart-box canvas {
  cursor: crosshair;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

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

  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-right {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  transition: border-color 0.15s ease;
}

.card:hover {
  border-color: rgba(212, 175, 55, 0.2);
}

.card.wide {
  grid-column: 1 / -1;
}

.news-panel h3,
.extras-panel h3 {
  margin-top: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.news-bullets {
  margin: 0.4rem 0 0.35rem 1.1rem;
  padding: 0;
  list-style: disc;
}

.news-items {
  margin: 0.5rem 0 0;
  padding-left: 0;
  list-style: none;
}

.news-items .news-item-line {
  margin-bottom: 0.45rem;
  line-height: 1.4;
  font-size: 0.875rem;
}

.news-items a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.news-items a:hover {
  text-decoration: underline;
}

.news-foot {
  margin-top: 0.65rem;
}

.extras-panel .extras-line {
  margin: 0.35rem 0;
  font-size: 0.875rem;
  line-height: 1.45;
}

.extras-panel .extras-lines {
  margin: 0.25rem 0 0;
}

.signal-card.signal--al {
  border-left: 3px solid rgba(46, 204, 113, 0.65);
}

.signal-card.signal--alma {
  border-left: 3px solid rgba(231, 76, 60, 0.55);
}

.signal-verdict {
  margin: 0.4rem 0 0.35rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.signal-card.signal--al .signal-verdict {
  color: #6fcf97;
}

.signal-card.signal--alma .signal-verdict {
  color: #f1948a;
}

.signal-future {
  margin: 0;
  line-height: 1.45;
}

.signal-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.25rem;
}

.signal-card-head h3 {
  margin: 0;
}

.signal-meta {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.signal-headline {
  margin: 0.15rem 0 0.35rem;
  line-height: 1.35;
}

.signal-detail {
  margin: 0.5rem 0 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text, #c8d4e0);
}

.signal-bullets {
  margin: 0 0 0.75rem 1rem;
  padding: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}

.signal-bullets li {
  margin-bottom: 0.25rem;
}

.signal-factors-title {
  margin: 0 0 0.4rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.signal-factors-wrap {
  margin-top: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.signal-factors {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}

.signal-factors th,
.signal-factors td {
  padding: 0.35rem 0.4rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.signal-factors th {
  color: var(--muted);
  font-weight: 600;
}

.signal-factors td:nth-child(2) {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.signal-factors .impact-pos {
  color: #6fcf97;
}

.signal-factors .impact-neg {
  color: #f1948a;
}

.card h3 {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.big {
  font-size: 1.65rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin: 0;
  color: var(--up);
  letter-spacing: -0.02em;
}

.muted {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0.4rem 0 0;
  line-height: 1.5;
}

#bullets,
.scenario-bullets {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text);
  line-height: 1.55;
  font-size: 0.9rem;
}

#bullets li::marker,
.scenario-bullets li::marker {
  color: var(--gold);
}

.disclaimer {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 1.35rem;
  line-height: 1.55;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

.scenario-head {
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 0.4rem;
  color: var(--text);
}

.small {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--panel-elevated);
  color: var(--gold);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.noscript-banner {
  margin: 0;
  padding: 0.75rem 1rem;
  text-align: center;
  background: rgba(239, 83, 80, 0.2);
  border-bottom: 1px solid rgba(239, 83, 80, 0.45);
  color: #ffb4b0;
  font-size: 0.875rem;
}

.site-footer {
  margin-top: 2.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer--compact {
  margin-top: 1.75rem;
  padding-top: 1.1rem;
}

.site-footer .footer-legal {
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 auto 0.85rem;
  max-width: 52rem;
}

.site-footer .footer-copy {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  opacity: 0.92;
}

.footer-note {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2rem;
  opacity: 0.75;
}

.header-right {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
}

/* Dil — segment kontrol (native button beyazını tamamen sök) */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  padding: 4px;
  border-radius: 999px;
  color-scheme: dark;
  background:
    linear-gradient(180deg, rgba(6, 9, 14, 0.98) 0%, rgba(18, 26, 38, 0.95) 100%),
    linear-gradient(145deg, rgba(212, 175, 55, 0.08), transparent 55%);
  border: 1px solid rgba(36, 48, 68, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 4px 14px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(212, 175, 55, 0.06);
  isolation: isolate;
}

.top-bar button.lang-btn {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  margin: 0;
  min-width: 3.25rem;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-feature-settings: "tnum" 1;
  line-height: 1.2;
  cursor: var(--cursor-pointer);
  -webkit-appearance: none;
  appearance: none;
  -moz-appearance: none;
  background-image: none;
  -webkit-tap-highlight-color: transparent;
  /* Windows Chrome varsayılan beyaz arka planı kır */
  color: #a8b8c8;
  background-color: rgba(12, 16, 24, 0.92);
  background: linear-gradient(180deg, rgba(18, 26, 38, 0.95) 0%, rgba(8, 11, 16, 0.92) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    color 0.22s var(--ease-out),
    background 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-out),
    transform 0.18s var(--ease-spring);
}

.top-bar button.lang-btn:hover:not(.lang-btn--active) {
  color: var(--text);
  background: linear-gradient(180deg, rgba(28, 38, 54, 0.98) 0%, rgba(14, 18, 26, 0.95) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.top-bar button.lang-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.top-bar button.lang-btn:focus {
  outline: none;
}

.top-bar button.lang-btn:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.75);
  outline-offset: 3px;
}

.top-bar button.lang-btn.lang-btn--active {
  color: #0a0c10;
  background: linear-gradient(
    165deg,
    #f0d875 0%,
    #d4af37 38%,
    #b8962e 72%,
    #9a7b1e 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 -1px 0 rgba(0, 0, 0, 0.2) inset,
    0 4px 14px rgba(212, 175, 55, 0.38),
    0 0 24px rgba(212, 175, 55, 0.12);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.top-bar button.lang-btn.lang-btn--active:hover {
  filter: brightness(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .top-bar button.lang-btn {
    transition: none;
  }
  .top-bar button.lang-btn:active:not(:disabled) {
    transform: none;
  }
}

@media (forced-colors: active) {
  .top-bar button.lang-btn {
    border: 1px solid CanvasText;
    forced-color-adjust: none;
  }
  .top-bar button.lang-btn.lang-btn--active {
    background: Highlight;
    color: HighlightText;
  }
}

.auth-bar {
  font-size: 0.8125rem;
  color: var(--muted);
}

.auth-bar a {
  font-weight: 600;
}

.auth-bar .sep {
  opacity: 0.5;
  margin: 0 0.25rem;
}

.nav-coin-buy {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: linear-gradient(180deg, rgba(24, 32, 46, 0.75), rgba(10, 14, 20, 0.65));
  transition:
    border-color 0.2s var(--ease-out),
    background 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}

.nav-coin-buy:hover {
  border-color: rgba(212, 175, 55, 0.55);
  background: var(--gold-dim);
  text-decoration: none;
}

.user-email {
  color: var(--text);
  margin-right: 0.75rem;
  font-weight: 500;
}

.link-btn {
  background: linear-gradient(180deg, rgba(18, 26, 38, 0.6), rgba(8, 11, 16, 0.5));
  border: 1px solid rgba(212, 175, 55, 0.28);
  color: var(--gold);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: var(--cursor-pointer);
  transition:
    border-color 0.2s var(--ease-out),
    background 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    transform 0.15s var(--ease-out);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.link-btn:hover {
  border-color: rgba(212, 175, 55, 0.55);
  background: var(--gold-dim);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.12);
}

.link-btn:active {
  transform: translateY(1px);
}

.auth-page .auth-wrap {
  max-width: 520px;
}

.auth-page.coins-page .auth-wrap {
  max-width: 640px;
}

.coins-page-header-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
}

.coins-steps {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--text);
  line-height: 1.55;
}

.coins-steps li {
  margin-bottom: 0.5rem;
}

.coins-contact-block {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: linear-gradient(165deg, rgba(18, 26, 38, 0.55), rgba(8, 11, 16, 0.4));
}

.coins-contact-label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.coins-email {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  word-break: break-all;
}

.coins-email a {
  color: var(--gold);
  text-decoration: none;
}

.coins-email a:hover {
  text-decoration: underline;
}

.coins-copy-btn {
  margin-top: 0.25rem;
}

.coins-disclaimer {
  margin-top: 1rem;
}

.auth-panel .auth-title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.auth-form {
  margin-top: 0.5rem;
}

.auth-switch {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.auth-back {
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.auth-back:hover {
  text-decoration: underline;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  max-width: 440px;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: var(--cursor-pointer);
}

input[type="email"]:hover,
input[type="password"]:hover {
  border-color: rgba(212, 175, 55, 0.35);
}

input[type="email"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.coin-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--gold-dim);
  margin-right: 0.5rem;
}

a.coin-badge {
  display: inline-block;
  text-decoration: none;
  cursor: var(--cursor-pointer);
  transition:
    filter 0.15s ease,
    box-shadow 0.15s ease;
}

a.coin-badge:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.35);
}

a.coin-badge:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.75);
  outline-offset: 2px;
}

.leaderboard-panel {
  margin-bottom: 1.25rem;
}

.lb-title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.lb-sub {
  margin: 0 0 0.75rem;
}

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

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

.lb-table th,
.lb-table td {
  padding: 0.45rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.lb-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-shell .admin-dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.admin-search {
  width: min(220px, 70vw);
}

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

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.admin-table th,
.admin-table td {
  padding: 0.4rem 0.45rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.admin-inp {
  width: 4.5rem;
  padding: 0.25rem 0.35rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text);
  font-family: inherit;
}

.admin-sel {
  padding: 0.25rem 0.35rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text);
  font-family: inherit;
  font-size: 0.8rem;
}

/* ========== Ultra gelişmiş vitrin + canlı motor özeti ========== */
.ultra-showcase {
  margin-bottom: 1.35rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(212, 175, 55, 0.28);
  background:
    linear-gradient(145deg, rgba(22, 31, 46, 0.97) 0%, rgba(8, 11, 16, 0.92) 50%, rgba(18, 26, 38, 0.95) 100%),
    radial-gradient(ellipse 90% 60% at 10% 0%, rgba(127, 212, 255, 0.09), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(212, 175, 55, 0.12), transparent 50%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 16px 48px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.ultra-showcase-inner {
  padding: 1.25rem 1.1rem 1.35rem;
}

.ultra-showcase-head {
  margin-bottom: 1.1rem;
  text-align: center;
}

.ultra-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c8e8ff;
  background: rgba(61, 125, 214, 0.18);
  border: 1px solid rgba(127, 212, 255, 0.35);
  border-radius: 6px;
}

.ultra-badge--xl {
  font-size: 0.62rem;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.2), rgba(61, 125, 214, 0.22));
  border-color: rgba(212, 175, 55, 0.4);
  color: var(--text);
}

.ultra-showcase-head h2 {
  margin: 0.65rem 0 0.35rem;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--text) 0%, #a8d4ff 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ultra-showcase-lead {
  margin: 0 auto;
  max-width: 40rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--muted);
}

.ultra-feature-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.ultra-card {
  position: relative;
  padding: 0.85rem 0.9rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(36, 48, 68, 0.9);
  background: linear-gradient(160deg, rgba(18, 26, 38, 0.9), rgba(8, 11, 16, 0.65));
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ultra-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .ultra-card:hover {
    transform: none;
  }
}

.ultra-card-icon {
  font-size: 1.15rem;
  line-height: 1;
  margin-bottom: 0.35rem;
  color: var(--gold);
  opacity: 0.95;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.35));
}

.ultra-card-icon--cyan {
  color: #7fd4ff;
  filter: drop-shadow(0 0 8px rgba(127, 212, 255, 0.35));
}

.ultra-card-icon--gold {
  color: #f0d78c;
}

.ultra-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.ultra-card p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}

.ultra-engine-panel {
  margin: 0 0 1rem;
  padding: 1rem 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(127, 212, 255, 0.22);
  background:
    linear-gradient(165deg, rgba(18, 28, 42, 0.95), rgba(8, 11, 16, 0.88)),
    radial-gradient(ellipse 80% 80% at 0% 50%, rgba(61, 125, 214, 0.12), transparent 55%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.ultra-engine-head {
  text-align: center;
  margin-bottom: 0.85rem;
}

.ultra-engine-title {
  margin: 0.45rem 0 0.15rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.ultra-engine-sub {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.ultra-metric-row {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
}

.ultra-metric-card {
  padding: 0.65rem 0.7rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(8, 11, 16, 0.55);
  min-height: 5.5rem;
}

.ultra-metric-card--gold {
  border-color: rgba(212, 175, 55, 0.35);
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.1), rgba(8, 11, 16, 0.6));
}

.ultra-metric-card--cyan {
  border-color: rgba(127, 212, 255, 0.35);
  background: linear-gradient(160deg, rgba(61, 125, 214, 0.14), rgba(8, 11, 16, 0.55));
}

.ultra-metric-card--up {
  border-color: rgba(38, 166, 154, 0.45);
  background: linear-gradient(160deg, rgba(38, 166, 154, 0.12), rgba(8, 11, 16, 0.55));
}

.ultra-metric-card--down {
  border-color: rgba(239, 83, 80, 0.4);
  background: linear-gradient(160deg, rgba(239, 83, 80, 0.1), rgba(8, 11, 16, 0.55));
}

.ultra-metric-card--muted {
  opacity: 0.92;
}

.ultra-metric-label {
  margin: 0 0 0.25rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.ultra-metric-value {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1.2;
}

.ultra-metric-sub {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--muted);
}

@media (max-width: 520px) {
  .ultra-showcase-inner {
    padding: 1rem 0.75rem;
  }

  .ultra-metric-row {
    grid-template-columns: 1fr 1fr;
  }
}
