/*
 * Eski arayüzün (ZTrade.Web artifacts/boex, Tailwind) renk ve ölçüleri düz CSS'e çevrildi.
 * Değerler src/index.css'teki tema değişkenleriyle aynıdır.
 */
:root {
  --background: hsl(222 28% 7%);
  --foreground: hsl(210 20% 92%);
  --border: hsl(220 20% 16%);
  --input: hsl(220 20% 18%);
  --ring: hsl(173 80% 45%);
  --card: hsl(222 24% 10%);
  --sidebar: hsl(222 28% 6%);
  --sidebar-foreground: hsl(210 20% 85%);
  --sidebar-border: hsl(220 20% 14%);
  --sidebar-accent: hsl(222 24% 13%);
  --primary: hsl(173 80% 45%);
  --primary-foreground: hsl(222 28% 7%);
  --secondary: hsl(222 24% 14%);
  --secondary-foreground: hsl(210 20% 85%);
  --muted: hsl(222 20% 14%);
  --muted-foreground: hsl(210 15% 55%);
  --accent: hsl(173 60% 14%);
  --accent-border: hsl(173 60% 6%);
  --accent-foreground: hsl(173 80% 65%);
  --destructive: hsl(0 72% 51%);
  --telegram: #229ed9;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', Menlo, monospace;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-2xl: 16px;
  --shadow-sm: 0 2px 8px 0 rgba(0, 0, 0, .4);
  --shadow-lg: 0 8px 24px 0 rgba(0, 0, 0, .5);
  --glow-primary: 0 0 20px hsl(173 80% 45% / .3);
  color-scheme: dark;
}

* { box-sizing: border-box; border-color: var(--border); }

/*
 * İnce, koyu temaya uygun kaydırma çubuğu, oksuz. Chrome/Edge/Safari ::-webkit-scrollbar
 * kullanır; standart scrollbar-width orada bu stili ezip oklu sistem çubuğunu getirdiği için
 * yalnızca ::-webkit-scrollbar'ı tanımayan tarayıcıya (Firefox) verilir.
 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: hsl(220 15% 32%); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; min-height: 40px; }
::-webkit-scrollbar-thumb:hover { background: hsl(173 50% 35%); background-clip: padding-box; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: hsl(220 15% 26%) transparent; }
}

html, body { height: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
.icon { flex-shrink: 0; display: block; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--primary-foreground);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xl);
}
.logo.sm { width: 28px; height: 28px; border-radius: var(--radius-lg); }
.logo.lg { width: 56px; height: 56px; border-radius: var(--radius-2xl); box-shadow: var(--glow-primary); margin-bottom: 16px; }

/* ---------- Uygulama iskeleti ---------- */
.shell { display: flex; width: 100%; height: 100vh; height: 100dvh; overflow: hidden; background: var(--background); }

.sidebar { display: none; }
.main-col { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.content { flex: 1; overflow-y: auto; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }

.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  flex-shrink: 0;
}
.mobile-header .brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.mobile-header .right { display: flex; align-items: center; gap: 8px; }
.mobile-header .balance { text-align: right; }
.mobile-header .balance p:first-child { font-size: 12px; color: var(--muted-foreground); }
.mobile-header .balance p:last-child { font-size: 14px; font-weight: 700; color: var(--primary); }

/* Mobilde menü her zaman ekranın altındadır */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav .items { display: flex; align-items: center; justify-content: space-around; padding: 4px 8px; }
.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 56px;
  padding: 8px 16px;
  border-radius: var(--radius-xl);
  color: var(--muted-foreground);
  transition: color .15s;
}
.bn-item span { font-size: 10px; font-weight: 500; line-height: 1; white-space: nowrap; }
.bn-item.active { color: var(--primary); }
.bn-item.active .icon { filter: drop-shadow(0 0 8px hsl(173 80% 45%)); }
.bn-item .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--primary); margin-top: 2px; }
.bn-item.disabled { opacity: .35; pointer-events: none; }

@media (min-width: 768px) {
  .mobile-header, .bottom-nav { display: none; }
  .content { padding-bottom: 0; }

  .sidebar {
    display: flex;
    flex-direction: column;
    width: 256px;
    flex-shrink: 0;
    background: var(--sidebar);
    border-right: 1px solid var(--border);
  }
}

.sb-brand { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--sidebar-border); }
.sb-brand .name { font-size: 18px; font-weight: 700; letter-spacing: -.025em; line-height: 1.4; }
.sb-brand .sub { font-size: 12px; color: var(--muted-foreground); }

.sb-user { padding: 16px; border-bottom: 1px solid var(--sidebar-border); }
.user-chip { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-xl); background: var(--sidebar-accent); }
.user-chip .info { min-width: 0; }
.user-chip .info p:first-child { font-size: 14px; font-weight: 500; }
.user-chip .info p:last-child { font-size: 12px; color: var(--muted-foreground); }
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.balance-box { margin-top: 12px; padding: 8px 12px; border-radius: var(--radius-lg); background: var(--accent); border: 1px solid var(--accent-border); }
.balance-box p:first-child { font-size: 12px; color: hsl(173 80% 65% / .7); }
.balance-box p:last-child { font-size: 18px; font-weight: 700; color: var(--primary); }
.sb-lang { display: flex; justify-content: flex-end; margin-top: 8px; }

.sb-nav { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-xl);
  color: var(--sidebar-foreground);
  font-size: 14px;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--sidebar-accent); color: var(--foreground); }
.nav-item.active { background: var(--primary); color: var(--primary-foreground); font-weight: 500; box-shadow: var(--shadow-sm); }
.nav-item .plus { margin-left: auto; font-size: 12px; background: hsl(173 80% 45% / .2); color: var(--primary); padding: 2px 6px; border-radius: 999px; line-height: 1.33; }
.nav-item.active .plus { color: var(--primary-foreground); }
.nav-item.disabled { opacity: .35; pointer-events: none; }

.sb-logout { padding: 0 12px 16px; }
.sb-logout button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-xl);
  color: var(--muted-foreground);
  font-size: 14px;
  transition: background .15s, color .15s;
}
.sb-logout button:hover { background: hsl(0 72% 51% / .1); color: var(--destructive); }

/* ---------- Dil seçici ---------- */
.lang { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: hsl(222 24% 10% / .8);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, background .15s;
}
.lang-btn:hover { border-color: hsl(173 80% 45% / .4); background: var(--sidebar-accent); }
.lang-btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 0; }
.lang-btn .globe { color: var(--primary); }
.lang-btn .chev { color: var(--muted-foreground); transition: transform .15s; }
.lang-btn .chev.open { transform: rotate(180deg); }
.lang.compact .lang-btn { height: 36px; padding: 0 10px; }
.lang.compact .lang-btn .label { font-size: 12px; font-weight: 600; }
.lang-menu {
  position: absolute;
  right: 0;
  z-index: 50;
  margin-top: 8px;
  width: 176px;
  padding: 6px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-lg);
}
.lang-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  color: var(--muted-foreground);
  text-align: left;
  transition: background .15s, color .15s;
}
.lang-menu button:hover { background: hsl(173 60% 14% / .4); color: var(--foreground); }
.lang-menu button.selected { background: hsl(173 60% 14% / .3); color: var(--accent-foreground); }
.lang-menu .code { display: inline-block; width: 24px; margin-right: 12px; font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--muted-foreground); }

/* ---------- Giriş / kayıt ---------- */
.auth-wrap { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.auth-wrap > .lang { position: absolute; top: 16px; right: 16px; z-index: 20; }
.auth-box { width: 100%; max-width: 384px; }
.auth-head { text-align: center; margin-bottom: 32px; }
.auth-head h1 { font-size: 24px; font-weight: 700; line-height: 1.33; }
.auth-head p { margin-top: 4px; font-size: 14px; color: var(--muted-foreground); }
.auth-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-2xl); padding: 24px; box-shadow: var(--shadow-lg); }

.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.input-wrap { position: relative; }
.input-wrap > .icon:first-child { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-foreground); pointer-events: none; }
.input-wrap input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background: var(--background);
  border: 1px solid var(--input);
  border-radius: var(--radius-xl);
  font-size: 14px;
  transition: box-shadow .15s;
}
.input-wrap input.has-toggle { padding-right: 40px; }
.input-wrap input::placeholder { color: var(--muted-foreground); }
.input-wrap input:focus { outline: none; box-shadow: 0 0 0 2px var(--ring); }
.input-wrap .toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-foreground); }
.input-wrap .toggle:hover { color: var(--foreground); }

.alert-error { background: hsl(0 72% 51% / .1); border: 1px solid hsl(0 72% 51% / .3); color: var(--destructive); font-size: 14px; border-radius: var(--radius-xl); padding: 8px 12px; }
.alert-success { text-align: center; font-size: 14px; color: var(--primary); }

.btn-primary {
  width: 100%;
  padding: 10px 16px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  border-radius: var(--radius-xl);
  box-shadow: var(--glow-primary);
  transition: opacity .15s;
}
.btn-primary:hover { opacity: .9; }
.btn-primary:active { opacity: .8; }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-primary .busy { display: flex; align-items: center; justify-content: center; gap: 8px; }
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid hsl(222 28% 7% / .3);
  border-top-color: var(--primary-foreground);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.auth-links { margin-top: 16px; text-align: center; font-size: 14px; color: var(--muted-foreground); }
.link { color: var(--primary); font-weight: 500; }
.link:hover { text-decoration: underline; }

/* ---------- Sayfalar ---------- */
.page { padding: 16px; max-width: 672px; margin: 0 auto; }
.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: 20px; font-weight: 700; line-height: 1.4; }
.page-head p { margin-top: 4px; font-size: 14px; color: var(--muted-foreground); }
@media (min-width: 768px) {
  .page { padding: 24px; }
  .page-head h1 { font-size: 24px; line-height: 1.33; }
}

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-2xl); }
.card.pad { padding: 20px; }
.stack { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }

.profile { display: flex; align-items: center; gap: 16px; }
.avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-2xl);
  background: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}
.profile h2 { font-size: 18px; font-weight: 700; }
.profile p { font-size: 14px; color: var(--muted-foreground); overflow-wrap: anywhere; }
.badge { display: inline-block; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: hsl(173 80% 45% / .15); color: var(--primary); white-space: nowrap; }
.badge.secondary { background: var(--secondary); color: var(--secondary-foreground); font-weight: 400; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); text-align: center; }
.stats .value { font-size: 20px; font-weight: 700; }
.stats .label { font-size: 12px; color: var(--muted-foreground); display: flex; align-items: center; justify-content: center; gap: 4px; }

.card.list { overflow: hidden; }
.list-title { font-size: 12px; font-weight: 600; color: var(--muted-foreground); padding: 12px 16px 8px; text-transform: uppercase; letter-spacing: .05em; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; width: 100%; text-align: left; }
.list-row + .list-row { border-top: 1px solid var(--border); }
button.list-row { transition: background .15s; }
button.list-row:hover { background: var(--accent); }
.list-row .body { flex: 1; min-width: 0; }
.list-row .body .label { font-size: 12px; color: var(--muted-foreground); }
.list-row .body .value { font-size: 14px; font-weight: 500; }
.list-row .body .title { font-size: 14px; font-weight: 500; }
.list-row .end { display: flex; align-items: center; gap: 8px; flex-shrink: 0; color: var(--muted-foreground); }
.row-icon { width: 32px; height: 32px; border-radius: var(--radius-lg); background: var(--muted); color: var(--muted-foreground); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tg-icon { width: 40px; height: 40px; border-radius: var(--radius-xl); background: rgb(34 158 217 / .15); color: var(--telegram); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.list-note { padding: 0 16px 12px; font-size: 12px; }
.list-note.warn { color: var(--accent-foreground); }
.list-note.error { color: var(--destructive); }

.btn-danger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: hsl(0 72% 51% / .1);
  border: 1px solid hsl(0 72% 51% / .3);
  color: var(--destructive);
  font-weight: 600;
  border-radius: var(--radius-xl);
  transition: background .15s;
}
.btn-danger:hover { background: hsl(0 72% 51% / .2); }
.footnote { text-align: center; font-size: 12px; color: var(--muted-foreground); margin-top: 16px; }

.gate { border-color: hsl(173 80% 45% / .4); background: var(--accent); padding: 16px; margin-bottom: 16px; }
.gate h2 { font-size: 14px; font-weight: 600; color: var(--accent-foreground); margin-bottom: 4px; }
.gate p { font-size: 13px; color: var(--secondary-foreground); }

.loading-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; }

.loading-text { font-size: 12px; font-weight: 500; color: var(--primary); }
.mb16 { margin-bottom: 16px; }

/* --- Cüzdan (eski Wallet.tsx) --- */
.small { font-size: 12px; }
.mt12 { margin-top: 12px; }
.center-pad { display: flex; align-items: center; justify-content: center; padding: 16px 0; }
.spinner.primary { width: 20px; height: 20px; border-color: var(--primary); border-top-color: transparent; }

.balance-card { position: relative; overflow: hidden; padding: 24px; margin-bottom: 16px; }
.balance-card .deco { position: absolute; border-radius: 50%; background: hsl(173 80% 45% / .05); }
.balance-card .deco.a { top: 0; right: 0; width: 128px; height: 128px; transform: translate(50%, -50%); }
.balance-card .deco.b { bottom: 0; left: 0; width: 96px; height: 96px; transform: translate(-50%, 50%); }
.balance-card .inner { position: relative; }
.balance-card .label-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.balance-card .label-row p { font-size: 14px; font-weight: 500; color: var(--muted-foreground); }
.balance-card .amount { display: flex; align-items: flex-end; gap: 8px; }
.balance-card .amount .value { font-size: 36px; line-height: 40px; font-weight: 700; }
.balance-card .amount .unit { font-size: 18px; line-height: 28px; color: var(--muted-foreground); margin-bottom: 2px; }

.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.mini-stats .card { border-radius: var(--radius-xl); padding: 12px; text-align: center; }
.mini-stats .value { font-size: 24px; line-height: 32px; font-weight: 700; }
.mini-stats .label { font-size: 12px; color: var(--muted-foreground); margin-top: 2px; }

.section { margin-bottom: 24px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-head .left { display: flex; align-items: center; gap: 8px; }
.section-head h2 { font-size: 14px; font-weight: 600; }

.card.deposit { border-radius: var(--radius-xl); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.net-row { display: flex; align-items: center; gap: 8px; }
.net-btn { display: flex; align-items: center; gap: 6px; padding: 16px; border-radius: var(--radius-lg); font-size: 12px; font-weight: 500; background: var(--muted); color: var(--muted-foreground); transition: all .15s; }
.net-btn.active { background: var(--primary); color: var(--primary-foreground); cursor: default; }
.address-box { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: hsl(222 20% 14% / .5); }
.address-box code { flex: 1; font-family: var(--font-mono); font-size: 12px; word-break: break-all; }
.copy-btn { width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--card); color: var(--muted-foreground); transition: all .15s; }
.copy-btn:hover { background: hsl(173 80% 45% / .1); color: var(--primary); }
.qr-box { margin-top: 4px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-2xl); background: var(--card); text-align: center; }
.qr-box img { display: block; width: 160px; height: 160px; margin: 0 auto; border-radius: 4px; }
.qr-box p { font-size: 12px; color: var(--muted-foreground); margin-top: 12px; }
.note { display: flex; align-items: flex-start; gap: 8px; padding: 12px; border-radius: var(--radius-lg); border: 1px solid; }
.note .icon { margin-top: 2px; }
.note p { font-size: 12px; line-height: 1.6; color: hsl(210 20% 92% / .8); }
.note.warn { background: rgb(234 179 8 / .1); border-color: rgb(234 179 8 / .2); }
.note.warn .icon { color: #eab308; }
.note.success { background: hsl(173 80% 45% / .1); border-color: hsl(173 80% 45% / .25); }
.note.success .icon { color: var(--primary); }
.check-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted-foreground); }
.check-line.error { color: var(--destructive); }
.check-line .link { font-size: 12px; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: pulse 2s ease-in-out infinite; flex-shrink: 0; }
@keyframes pulse { 50% { opacity: .3; } }

.tx-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.tx-head h2 { font-size: 14px; font-weight: 600; }
.card.list:has(.tx-head) { border-radius: var(--radius-xl); }
.empty { padding: 32px 0; text-align: center; font-size: 14px; color: var(--muted-foreground); }
.tx-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.tx-row + .tx-row { border-top: 1px solid var(--border); }
.tx-row .body { flex: 1; min-width: 0; }
.tx-row .title { font-size: 14px; font-weight: 500; }
.tx-row .date { font-size: 12px; color: var(--muted-foreground); }
.tx-icon { width: 36px; height: 36px; border-radius: var(--radius-xl); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tx-icon.credit { background: hsl(173 80% 45% / .15); color: var(--primary); }
.tx-icon.debit { background: hsl(0 72% 51% / .15); color: var(--destructive); }
.tx-amount { font-size: 14px; font-weight: 700; flex-shrink: 0; }
.tx-amount.credit { color: var(--primary); }
.tx-amount.debit { color: var(--destructive); }

/* --- Botlarım ve Bot Ekle (eski Bots.tsx, AddBot.tsx) --- */
.page.wide { max-width: 896px; }
.page-head.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.min0 { min-width: 0; }
.ml-auto { margin-left: auto; }
.mt24 { margin-top: 24px; }
.strong { font-weight: 600; }
.bold { font-weight: 700; }
.faint { color: hsl(210 15% 55% / .7); }
.text-danger { color: var(--destructive); }
.price-up { color: hsl(142 70% 50%); }
.price-down { color: hsl(0 72% 58%); }
.sm-up { display: none; }
@media (min-width: 640px) { .sm-up { display: inline; } }

.btn-add { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--primary); color: var(--primary-foreground); font-size: 14px; font-weight: 500; border-radius: var(--radius-xl); box-shadow: var(--glow-primary); transition: opacity .15s; }
.btn-add:hover { opacity: .9; }
.btn-add.lg { padding: 12px 24px; font-size: 16px; font-weight: 600; }

.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 0; text-align: center; }
.empty-state .big-icon { width: 80px; height: 80px; border-radius: var(--radius-2xl); background: var(--accent); color: var(--accent-foreground); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.empty-state h2 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--muted-foreground); margin-bottom: 24px; max-width: 320px; }

.bot-list { display: flex; flex-direction: column; gap: 12px; }
.bot-card { padding: 16px; transition: border-color .15s; }
.bot-card:hover { border-color: hsl(173 80% 45% / .3); }
.bot-card .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bot-card .ident { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bot-icon { position: relative; width: 40px; height: 40px; border-radius: var(--radius-xl); display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--muted); color: var(--muted-foreground); }
.bot-icon.on { background: hsl(173 80% 45% / .15); color: var(--primary); }
.bot-icon .ping { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: pulse 2s ease-in-out infinite; }
.name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.name-row .pair { font-weight: 600; }
.name-row .tf { font-size: 12px; font-family: var(--font-mono); background: var(--secondary); color: var(--secondary-foreground); padding: 2px 8px; border-radius: 999px; }
.name-row .status { font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: var(--muted); color: var(--muted-foreground); }
.name-row .status.running { background: hsl(173 80% 45% / .15); color: var(--primary); }
.name-row .status.expired { background: hsl(0 72% 51% / .15); color: var(--destructive); }
.bot-card .actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.btn-edit { font-size: 12px; padding: 6px 8px; background: var(--secondary); color: var(--secondary-foreground); border-radius: var(--radius-lg); transition: background .15s; }
.btn-edit:hover { background: hsl(222 24% 14% / .8); }
.btn-restart { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: var(--radius-xl); background: hsl(173 80% 45% / .15); color: var(--primary); font-size: 12px; font-weight: 600; transition: background .15s; }
.btn-restart:hover { background: hsl(173 80% 45% / .25); }
.btn-restart:disabled { opacity: .5; cursor: not-allowed; }
.btn-icon { padding: 8px; border-radius: var(--radius-xl); background: var(--secondary); color: var(--secondary-foreground); transition: background .15s, color .15s; }
.btn-icon.go { background: hsl(173 80% 45% / .15); color: var(--primary); }
.btn-icon.go:hover { background: hsl(173 80% 45% / .25); }
.btn-icon.trash { background: none; color: var(--muted-foreground); }
.btn-icon.trash:hover { background: hsl(0 72% 51% / .1); color: var(--destructive); }
.btn-icon:disabled, .btn-edit:disabled { opacity: .5; cursor: default; }
.confirm, .edit-actions { display: flex; align-items: center; gap: 4px; }
button.sm { font-size: 12px; padding: 4px 8px; border-radius: var(--radius-lg); background: var(--secondary); color: var(--secondary-foreground); }
button.sm.primary { background: var(--primary); color: var(--primary-foreground); font-weight: 500; }
button.sm.danger { background: var(--destructive); color: #fff; }
button.sm:disabled { opacity: .5; cursor: default; }
.edit-actions { gap: 8px; }
.edit-actions button.sm { font-size: 14px; padding: 8px 12px; font-weight: 500; }

.edit { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.edit-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .edit-grid { grid-template-columns: 1fr 1fr; } }
.edit label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-foreground); margin-bottom: 6px; }
.edit select { width: 100%; border: 1px solid var(--input); background: var(--background); border-radius: var(--radius-xl); padding: 8px 12px; font-size: 14px; }
.edit select:focus { outline: none; box-shadow: 0 0 0 2px var(--ring); }

.remaining { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 8px 12px; border-radius: var(--radius-lg); background: hsl(222 24% 14% / .5); color: var(--muted-foreground); }
.remaining.over { background: hsl(0 72% 51% / .1); color: var(--destructive); }
.remaining .end { margin-left: auto; text-align: right; }
.renew-row { margin-top: 8px; display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: var(--radius-lg); border: 1px solid var(--border); cursor: pointer; }
.renew-row .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12px; }
.renew-row .hint { color: var(--muted-foreground); }
.switch { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 36px; height: 20px; margin: 0; border-radius: 999px; background: var(--input); position: relative; cursor: pointer; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--foreground); transition: transform .15s; }
.switch:checked { background: var(--primary); }
.switch:checked::after { transform: translateX(16px); background: var(--primary-foreground); }
.switch:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.switch:disabled { opacity: .5; }
.card-error { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--destructive); }
.bot-stats { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.bot-stats .label { font-size: 12px; color: var(--muted-foreground); }
.bot-stats .value { font-size: 14px; font-weight: 600; }
.bot-stats .value.small { font-size: 12px; font-weight: 500; }

.steps { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.step { display: flex; align-items: center; gap: 8px; }
.step .num { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; background: var(--muted); color: var(--muted-foreground); transition: all .15s; }
.step .num.done, .step .num.current { background: var(--primary); color: var(--primary-foreground); }
.step .num.current { box-shadow: 0 0 0 4px hsl(173 80% 45% / .3); }
.step .lbl { display: none; font-size: 12px; color: var(--muted-foreground); }
.step .lbl.current { color: var(--foreground); font-weight: 500; }
@media (min-width: 640px) { .step .lbl { display: block; } }
.step .sep { color: var(--border); }
.sec-title { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.sec-title h2 { font-size: 16px; font-weight: 600; }
.search { position: relative; margin-bottom: 16px; }
.search > .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-foreground); pointer-events: none; }
.search input { width: 100%; padding: 10px 36px; background: var(--background); border: 1px solid var(--input); border-radius: var(--radius-xl); font-size: 14px; }
.search input::placeholder { color: var(--muted-foreground); }
.search input:focus { outline: none; box-shadow: 0 0 0 2px var(--ring); }
.search .clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-foreground); }
.search .clear:hover { color: var(--foreground); }
.loading-block { text-align: center; padding: 48px 0; font-size: 14px; color: var(--muted-foreground); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.spinner.lg { width: 32px; height: 32px; }
.pick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .pick-grid { grid-template-columns: repeat(3, 1fr); } }
.pick-grid.scroll { max-height: 60vh; overflow-y: auto; padding-right: 8px; }
.pick { display: flex; flex-direction: column; align-items: flex-start; padding: 12px; border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--card); text-align: left; transition: all .15s; }
.pick:hover { border-color: hsl(173 80% 45% / .4); }
.pick.active { background: hsl(173 80% 45% / .15); border-color: var(--primary); }
.pick-top { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 4px; }
.pick .sym { font-size: 14px; font-weight: 600; }
.pick .tfv { font-size: 16px; font-weight: 700; }
.pick.active .sym, .pick.active .tfv { color: var(--primary); }
.pick .px { font-size: 12px; font-family: var(--font-mono); }
.btn-primary.lg { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; }
.btn-secondary { display: flex; align-items: center; gap: 8px; padding: 12px 20px; background: var(--secondary); color: var(--secondary-foreground); font-weight: 500; border-radius: var(--radius-xl); transition: background .15s; }
.btn-secondary:hover { background: hsl(222 24% 14% / .8); }
.nav-row { display: flex; gap: 12px; margin-top: 24px; }
.nav-row .grow { flex: 1; width: auto; }
.card.summary { padding: 20px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 12px; }
.summary h3 { font-size: 14px; font-weight: 500; color: var(--muted-foreground); }
.sum-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.sum-row.sep { padding-top: 12px; border-top: 1px solid var(--border); }
.started { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.started .ring { width: 80px; height: 80px; border-radius: 50%; background: hsl(173 80% 45% / .15); border: 2px solid var(--primary); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; box-shadow: var(--glow-primary); }
.started h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }

/* --- Parite seçim penceresi --- */
.pair-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--input); background: var(--background); border-radius: var(--radius-xl); padding: 8px 12px; font-size: 14px; text-align: left; }
.pair-trigger:hover { border-color: hsl(173 80% 45% / .4); }
.pair-trigger:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--ring); }
.pair-trigger .icon { color: var(--muted-foreground); }
.modal-back { position: fixed; inset: 0; z-index: 60; background: rgb(0 0 0 / .7); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; padding: 0; }
@media (min-width: 640px) { .modal-back { align-items: center; padding: 16px; } }
.modal { width: 100%; max-width: 640px; max-height: 85vh; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-2xl) var(--radius-2xl) 0 0; padding: 20px 20px max(env(safe-area-inset-bottom), 12px); box-shadow: var(--shadow-lg); }
@media (min-width: 640px) { .modal { border-radius: var(--radius-2xl); padding-bottom: 12px; } }
.modal-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.modal-head h3 { font-size: 18px; font-weight: 700; }
.modal .search { margin-bottom: 8px; }
/* Pencere içindeki kutular, Bot Ekle sihirbazındaki .pick-grid ile aynı */
.modal-grid { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 8px 2px 2px; align-content: start; }
.modal-foot { display: flex; justify-content: flex-end; padding-top: 12px; }
.link-btn { font-size: 14px; font-weight: 600; color: var(--muted-foreground); padding: 6px 8px; }
.link-btn:hover { color: var(--foreground); }

/* --- Canlı fiyat (eski Bots.tsx) --- */
.sm-up-block { display: none; }
@media (min-width: 640px) { .sm-up-block { display: block; } }
.live { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; }
.live.on { color: var(--primary); }
.live.off { color: var(--destructive); }
.price-line { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.price-line .px { font-size: 14px; font-family: var(--font-mono); font-weight: 600; }
.price-line .chg, .ov-item .chg { font-size: 12px; font-weight: 500; display: flex; align-items: center; gap: 2px; }
.bot-card .range { text-align: right; margin-right: 8px; }
.overview { margin-top: 32px; }
.overview h2 { font-size: 14px; font-weight: 600; color: var(--muted-foreground); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.ov-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 640px) { .ov-grid { grid-template-columns: 1fr 1fr; } }
.ov-item { display: flex; align-items: center; justify-content: space-between; border-radius: var(--radius-xl); padding: 10px 12px; }
.ov-item .sym { font-size: 14px; font-weight: 500; }
.ov-item .right { text-align: right; }
.ov-item .px { font-size: 14px; font-family: var(--font-mono); font-weight: 600; }
.ov-item .chg { justify-content: flex-end; }
