/* ── Reset & Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0f1117;
  --panel:    #1a1d27;
  --card:     #22263a;
  --border:   #2e3250;
  --green:    #00c896;
  --red:      #ff4d6d;
  --yellow:   #f5c542;
  --blue:     #4a9eff;
  --purple:   #a78bfa;
  --text:     #e0e4f0;
  --subtext:  #7a80a0;
  --radius:   12px;
  --radius-lg:20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

code, pre {
  font-family: 'JetBrains Mono', monospace;
}

a { text-decoration: none; color: inherit; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: #3a8ef0; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 10px; }

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue);
  white-space: nowrap;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  flex: 1;
}
.nav-links a {
  color: var(--subtext);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 140px 0 0;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(74,158,255,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(167,139,250,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.badge {
  display: inline-block;
  background: rgba(74,158,255,0.12);
  border: 1px solid rgba(74,158,255,0.3);
  color: var(--blue);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  max-width: 600px;
  margin: 0 auto 36px;
  color: var(--subtext);
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
}
.stat-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--blue);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--subtext);
  margin-top: 2px;
}
.stat-div {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ── Ticker ───────────────────────────────────────────────────────────── */
.ticker-bar {
  overflow: hidden;
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 12px 0;
}
.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: ticker 20s linear infinite;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tick {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 6px;
}
.tick.buy  { color: var(--green); background: rgba(0,200,150,0.1); }
.tick.sell { color: var(--red);   background: rgba(255,77,109,0.1); }
.tick.hold { color: var(--yellow);background: rgba(245,197,66,0.1); }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-dark { background: var(--panel); }
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.section-header p {
  color: var(--subtext);
  font-size: 1rem;
}

/* ── Features Grid ────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}
.card-icon { font-size: 2rem; margin-bottom: 16px; }
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.card p  { color: var(--subtext); font-size: 0.9rem; line-height: 1.6; }
.card code {
  background: rgba(74,158,255,0.12);
  color: var(--blue);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.82rem;
}

/* ── Steps ────────────────────────────────────────────────────────────── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.step {
  flex: 1;
  min-width: 200px;
  max-width: 240px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.step-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue);
  opacity: 0.4;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 12px;
}
.step-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step-body p  { color: var(--subtext); font-size: 0.88rem; }
.step-arrow {
  font-size: 1.5rem;
  color: var(--border);
  align-self: center;
  padding-top: 0;
}

/* ── Indicators ───────────────────────────────────────────────────────── */
.indicators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.ind-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s;
}
.ind-card:hover { border-color: var(--purple); }
.ind-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.ind-num {
  width: 32px; height: 32px;
  background: rgba(167,139,250,0.15);
  color: var(--purple);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.ind-card h3 { font-size: 1rem; font-weight: 700; }
.ind-card p  { color: var(--subtext); font-size: 0.88rem; margin-bottom: 14px; }
.ind-tag {
  display: inline-block;
  background: rgba(74,158,255,0.1);
  color: var(--blue);
  border: 1px solid rgba(74,158,255,0.25);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ── Risk ─────────────────────────────────────────────────────────────── */
.risk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.risk-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.risk-icon { font-size: 2rem; margin-bottom: 14px; }
.risk-icon.red    { filter: drop-shadow(0 0 8px rgba(255,77,109,0.4)); }
.risk-icon.green  { filter: drop-shadow(0 0 8px rgba(0,200,150,0.4)); }
.risk-icon.yellow { filter: drop-shadow(0 0 8px rgba(245,197,66,0.4)); }
.risk-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.risk-card p  { color: var(--subtext); font-size: 0.88rem; margin-bottom: 14px; }
.risk-card strong { color: var(--text); }
.risk-config code {
  background: rgba(15,17,23,0.8);
  color: var(--green);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  display: block;
  border: 1px solid var(--border);
}

/* ── Symbols ──────────────────────────────────────────────────────────── */
.symbols-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.symbol-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  text-align: center;
  min-width: 200px;
  transition: border-color 0.2s, transform 0.2s;
}
.symbol-card:hover { border-color: var(--green); transform: translateY(-4px); }
.symbol-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
  display: block;
}
.symbol-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.symbol-card p  { color: var(--subtext); font-size: 0.85rem; margin-bottom: 12px; }
.symbol-source {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--blue);
  background: rgba(74,158,255,0.1);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
}

/* ── CTA ──────────────────────────────────────────────────────────────── */
.section-cta {
  background: linear-gradient(135deg, rgba(74,158,255,0.08) 0%, rgba(167,139,250,0.08) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.section-cta h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.section-cta > .container > p { color: var(--subtext); margin-bottom: 40px; }
.cta-steps {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.cta-step {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 500;
}
.cta-step span {
  width: 24px; height: 24px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}
.code-block {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}
.code-block pre { overflow-x: auto; }
.code-block code {
  color: var(--green);
  font-size: 0.88rem;
  line-height: 1.8;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer {
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-note {
  max-width: 600px;
  color: var(--yellow);
  font-size: 0.82rem;
  background: rgba(245,197,66,0.07);
  border: 1px solid rgba(245,197,66,0.2);
  padding: 12px 20px;
  border-radius: 8px;
}
.footer-copy { color: var(--subtext); font-size: 0.8rem; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .stat { padding: 0 16px; }
  .stat-val { font-size: 1.4rem; }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* PAGE SYSTEM                                                             */
/* ═══════════════════════════════════════════════════════════════════════ */
.page { display: none; }
.page.active { display: block; }

/* ── Nav right (auth buttons / user info) ─────────────────────────────── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.btn-sm { padding: 7px 16px; font-size: 0.82rem; border-radius: 7px; }
.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-points {
  background: rgba(74,158,255,0.12);
  color: var(--blue);
  border: 1px solid rgba(74,158,255,0.25);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
}
.user-name {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
}
.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════════ */
/* SHOP PAGE                                                               */
/* ═══════════════════════════════════════════════════════════════════════ */
.shop-section { padding-top: 100px; }

/* Points bar */
.points-bar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-bottom: 48px;
}
.points-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--subtext);
}
.points-bar-inner strong { color: var(--blue); font-size: 1.1rem; }
.points-bar-sub { color: var(--subtext); font-size: 0.8rem; }

/* Packages grid */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.pkg-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
}
.pkg-card:hover { border-color: var(--blue); transform: translateY(-4px); }

.pkg-popular {
  border-color: var(--blue);
  background: linear-gradient(160deg, rgba(74,158,255,0.07) 0%, var(--card) 60%);
}
.pkg-deal {
  border-color: var(--green);
  background: linear-gradient(160deg, rgba(0,200,150,0.07) 0%, var(--card) 60%);
}
.pkg-deal:hover { border-color: var(--green); }

.pkg-badge-top {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.pkg-badge-top.discount { background: var(--green); color: #0f1117; }

.pkg-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pkg-icon { font-size: 1.8rem; }
.pkg-header h3 { font-size: 1rem; font-weight: 700; }

.pkg-points {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.pkg-pts-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--blue);
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
}
.pkg-pts-label {
  font-size: 0.85rem;
  color: var(--subtext);
}

.pkg-desc {
  font-size: 0.85rem;
  color: var(--subtext);
  flex: 1;
}

.pkg-price-old {
  font-size: 0.85rem;
  color: var(--subtext);
  text-decoration: line-through;
}
.pkg-price {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.pkg-price span { font-size: 1rem; font-weight: 500; color: var(--subtext); }

.pkg-btn { width: 100%; justify-content: center; margin-top: 4px; }

/* Points info box */
.points-info-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}
.points-info-box h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.points-info-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.points-info-box li {
  color: var(--subtext);
  font-size: 0.9rem;
  padding-left: 20px;
  position: relative;
}
.points-info-box li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* MODAL                                                                   */
/* ═══════════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  z-index: 201;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: transparent;
  border: none;
  color: var(--subtext);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.modal-close:hover { color: var(--text); background: var(--card); }

.modal-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 20px;
}
.modal-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.modal-sub { color: var(--subtext); font-size: 0.9rem; margin-bottom: 28px; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--subtext);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group input {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus { border-color: var(--blue); }
.form-group input::placeholder { color: var(--subtext); }

.form-error {
  background: rgba(255,77,109,0.1);
  border: 1px solid rgba(255,77,109,0.3);
  color: var(--red);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.btn-full { width: 100%; justify-content: center; padding: 13px; font-size: 0.95rem; }

.modal-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--subtext);
}
.modal-switch a { color: var(--blue); font-weight: 600; }
.modal-switch a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════ */
/* TOAST                                                                   */
/* ═══════════════════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.success { border-color: var(--green); color: var(--green); }
.toast.error   { border-color: var(--red);   color: var(--red); }

/* ═══════════════════════════════════════════════════════════════════════ */
/* RESPONSIVE ADDITIONS                                                    */
/* ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .modal { padding: 32px 20px; max-width: calc(100vw - 32px); }
  .packages-grid { grid-template-columns: 1fr; }
  .nav-right .user-name { display: none; }
}


/* ═══════════════════════════════════════════════════════════════════════ */
/* BOT PANEL                                                               */
/* ═══════════════════════════════════════════════════════════════════════ */
.bot-section { padding-top: 80px; height: calc(100vh - 80px); overflow: hidden; }

.container-bot {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
}

/* Login required */
.bot-login-required {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}
.bot-login-card {
  text-align: center;
  max-width: 500px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
}
.bot-icon { font-size: 4rem; margin-bottom: 20px; }
.bot-login-card h2 { font-size: 1.8rem; margin-bottom: 12px; }
.bot-login-card p { color: var(--subtext); margin-bottom: 32px; }

/* Bot panel layout */
.bot-panel {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
  height: calc(100vh - 96px);
  overflow: hidden;
}

/* Sidebar */
.bot-sidebar {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.bot-sidebar-header h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 2px;
}

.bot-sidebar-header p {
  font-size: 0.75rem;
  color: var(--subtext);
  margin-bottom: 8px;
}

.bot-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s infinite;
}

/* Status colors */
.bot-status-badge.stopped .status-dot { 
  background: var(--red); 
}

.bot-status-badge.analyzing .status-dot { 
  background: var(--yellow);
  animation: pulse-fast 1s infinite;
}

.bot-status-badge.trading .status-dot { 
  background: var(--green); 
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes pulse-fast {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.btn-full {
  width: 100%;
  justify-content: center;
  height: 36px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Mode select */
.bot-mode-select {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bot-mode-select label {
  font-size: 0.75rem;
  color: var(--subtext);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.bot-select {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.bot-select:hover {
  border-color: var(--blue);
}

.bot-select:focus {
  border-color: var(--blue);
}

/* Stats sidebar */
.bot-stats-sidebar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-top: auto;
}

.bot-stats-sidebar h3 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--subtext);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-row .stat-label {
  font-size: 0.75rem;
  color: var(--subtext);
}

.stat-row .stat-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
}

.stat-row .stat-value.positive { color: var(--green); }
.stat-row .stat-value.negative { color: var(--red); }

/* Main content */
.bot-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

/* Symbol cards */
.bot-symbol-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.symbol-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s;
}

.symbol-card:hover {
  border-color: var(--blue);
}

.symbol-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue);
  text-align: center;
  margin-bottom: 2px;
}

.symbol-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
}

.symbol-signal {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  margin: 0 auto;
  background: var(--border);
  color: #fff;
}

.symbol-signal.BUY { background: var(--green); color: #000; }
.symbol-signal.SELL { background: var(--red); }
.symbol-signal.HOLD { background: var(--border); color: var(--subtext); }

.symbol-ai {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0;
}

.ai-confidence {
  font-size: 0.75rem;
  color: var(--subtext);
  display: flex;
  justify-content: space-between;
}

.ai-confidence span {
  font-weight: 600;
}

.ai-confidence.high span { color: var(--green); }
.ai-confidence.medium span { color: var(--yellow); }
.ai-confidence.low span { color: var(--subtext); }

.symbol-indicators {
  display: flex;
  justify-content: space-between;
  gap: 2px;
  padding: 4px 0;
}

.symbol-indicators .ind {
  font-size: 0.65rem;
  color: var(--subtext);
  text-align: center;
  flex: 1;
}

.symbol-indicators .ind.buy { color: var(--green); }
.symbol-indicators .ind.sell { color: var(--red); }

.symbol-reason {
  font-size: 0.7rem;
  color: var(--subtext);
  text-align: center;
  min-height: 32px;
  padding: 6px;
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
  line-height: 1.3;
}

.symbol-position {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.pos-label {
  font-size: 0.65rem;
  color: var(--subtext);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.pos-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
}

.pos-value.buy { color: var(--green); }
.pos-value.sell { color: var(--red); }
.pos-value.positive { color: var(--green); }
.pos-value.negative { color: var(--red); }

/* Bottom section */
.bot-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

/* Logs panel */
.bot-logs-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.bot-logs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.bot-logs-header h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.bot-logs {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  flex: 1;
  overflow-y: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  min-height: 0;
}

.log-entry {
  padding: 3px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}

.log-entry:last-child { border-bottom: none; }
.log-time { color: var(--subtext); margin-right: 6px; font-size: 0.7rem; }
.log-level { font-weight: 600; margin-right: 6px; }
.log-info { color: var(--text); }
.log-info .log-level { color: var(--blue); }
.log-error { color: var(--red); }
.log-error .log-level { color: var(--red); }
.log-success { color: var(--green); }
.log-success .log-level { color: var(--green); }
.log-trade { color: var(--blue); font-weight: 600; }
.log-trade .log-level { color: var(--purple); }

/* Responsive */
@media (max-width: 1200px) {
  .bot-panel {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .bot-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  
  .bot-stats-sidebar {
    margin-top: 0;
    flex: 1;
  }
  
  .bot-section {
    height: auto;
    overflow: visible;
  }
}

@media (max-width: 900px) {
  .bot-symbol-cards {
    grid-template-columns: 1fr;
  }
}
