/* ============================================================
   KrakenBotAI — Dark Crypto Theme
   ============================================================ */

:root {
  --bg:        #0d1117;
  --bg2:       #161b22;
  --bg3:       #1f2937;
  --border:    #30363d;
  --orange:    #f7931a;
  --orange-dim:#c97615;
  --text:      #e6edf3;
  --muted:     #8b949e;
  --success:   #3fb950;
  --danger:    #f85149;
}

* { box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Colors ---- */
.text-orange  { color: var(--orange) !important; }
.bg-dark-2    { background: var(--bg2) !important; }
.font-mono    { font-family: 'Courier New', monospace; font-size: 0.85rem; }

/* ---- Navbar ---- */
#mainNav {
  background: rgba(13,17,23,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}
#mainNav .navbar-brand { font-size: 1.25rem; letter-spacing: -0.5px; }
#mainNav .nav-link { color: var(--muted) !important; font-size: 0.9rem; transition: color .2s; padding: 0.4rem 0.75rem; }
#mainNav .nav-link:hover { color: var(--text) !important; }

/* ---- Buttons ---- */
.btn-orange {
  background: var(--orange);
  border-color: var(--orange);
  color: #000;
  font-weight: 600;
  transition: all .2s;
}
.btn-orange:hover {
  background: #e8861a;
  border-color: #e8861a;
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(247,147,26,0.3);
}
.btn-outline-orange {
  border-color: var(--orange);
  color: var(--orange);
  font-weight: 500;
  transition: all .2s;
}
.btn-outline-orange:hover {
  background: var(--orange);
  color: #000;
}
.btn-xs { padding: 0.2rem 0.6rem; font-size: 0.75rem; }

/* ---- Flash ---- */
.flash-container {
  position: fixed;
  top: 70px;
  right: 1rem;
  z-index: 9999;
  width: 360px;
}

/* ---- Hero ---- */
.hero-section {
  min-height: 100vh;
  padding: 100px 0 60px;
  background: radial-gradient(ellipse at 50% 0%, rgba(247,147,26,0.06) 0%, transparent 70%);
}

.badge-pill {
  display: inline-block;
  background: rgba(247,147,26,0.12);
  border: 1px solid rgba(247,147,26,0.25);
  color: var(--orange);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---- Ticker ---- */
.ticker-bar {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 600px;
  margin: 0 auto;
}
.ticker-item { font-size: 0.9rem; font-weight: 500; }

/* ---- Stat cards ---- */
.stat-card {
  padding: 1.5rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.stat-num { font-size: 2rem; font-weight: 700; color: var(--orange); }
.stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; }

/* ---- Allocation cards ---- */
.alloc-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform .2s, border-color .2s;
}
.alloc-card:hover { transform: translateY(-3px); border-color: var(--orange); }
.alloc-card.border-fire { border-color: rgba(16,185,129,0.3); }
.alloc-card.border-rocket { border-color: rgba(167,139,250,0.3); }
.alloc-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.alloc-symbol { font-weight: 700; font-size: 1rem; }
.alloc-pct { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.alloc-label { font-size: 0.72rem; color: var(--muted); margin-top: 0.25rem; }

/* ---- Feature cards ---- */
.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  transition: border-color .2s;
}
.feature-card:hover { border-color: var(--orange); }
.feature-icon { font-size: 1.5rem; margin-bottom: 1rem; }

/* ---- Step cards ---- */
.step-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
}
.step-num {
  width: 48px; height: 48px;
  background: var(--orange);
  color: #000;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}

/* ---- Pricing ---- */
.pricing-card {
  background: var(--bg2);
  border: 2px solid var(--orange);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 1rem;
  border-radius: 100px;
}
.pricing-price { margin: 1rem 0; }
.price-num { font-size: 2.5rem; font-weight: 800; color: var(--orange); }
.pricing-features { list-style: none; padding: 0; margin: 1.5rem 0; }
.pricing-features li { padding: 0.4rem 0; font-size: 0.9rem; }

/* ---- Auth ---- */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 1rem 2rem;
  background: radial-gradient(ellipse at 50% 20%, rgba(247,147,26,0.05) 0%, transparent 60%);
}
.auth-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
}

/* ---- Forms ---- */
.form-control-dark, .form-select-dark {
  background: var(--bg3) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 8px !important;
}
.form-control-dark::placeholder { color: var(--muted) !important; }
.form-control-dark:focus, .form-select-dark:focus {
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 3px rgba(247,147,26,0.15) !important;
  background: var(--bg3) !important;
}
.form-check-input { background-color: var(--bg3); border-color: var(--border); }
.form-check-input:checked { background-color: var(--orange); border-color: var(--orange); }

/* ---- Dashboard ---- */
.dashboard-wrapper {
  padding-top: 65px;
  min-height: 100vh;
}

.kpi-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}
.kpi-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.kpi-value { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.25rem; }
.kpi-sub { font-size: 0.72rem; }

.chart-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

/* ---- Table ---- */
.table-dark-custom { color: var(--text) !important; --bs-table-bg: transparent; }
.table-dark-custom thead { border-bottom: 1px solid var(--border); }
.table-dark-custom thead th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 500; padding: 0.75rem 0.5rem; border: none; }
.table-dark-custom td { padding: 0.75rem 0.5rem; border-top: 1px solid rgba(48,54,61,0.5); font-size: 0.88rem; vertical-align: middle; }
.table-dark-custom tbody tr:hover td { background: rgba(255,255,255,0.02); }

.badge-altcoin { background: rgba(16,185,129,0.15); color: #10b981; font-size: 0.65rem; padding: 2px 6px; border-radius: 4px; }
.badge-moonbag { background: rgba(167,139,250,0.15); color: #a78bfa; font-size: 0.65rem; padding: 2px 6px; border-radius: 4px; }

/* ---- Donut legend ---- */
.donut-legend-item { display: inline-flex; align-items: center; gap: 5px; margin: 3px 8px 3px 0; font-size: 0.78rem; color: var(--muted); }
.donut-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ---- Settings ---- */
.settings-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

/* ---- Guide ---- */
.guide-wrapper { padding-top: 75px; }
.guide-cover { padding: 2rem; background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; }
.guide-toc { background: var(--bg2); border: 1px solid var(--border); border-left: 3px solid var(--orange); border-radius: 0 12px 12px 0; padding: 1.5rem; }
.guide-section { margin-bottom: 2.5rem; }
.guide-section h3 { color: var(--orange); font-weight: 700; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; margin-bottom: 1.25rem; }
.guide-section h5 { font-weight: 600; margin-bottom: 0.75rem; }
.guide-section p, .guide-section li { color: #c9d1d9; line-height: 1.7; }
.guide-section code { background: var(--bg3); color: var(--orange); padding: 2px 6px; border-radius: 4px; font-size: 0.85rem; }

.guide-info-box {
  background: rgba(247,147,26,0.08);
  border: 1px solid rgba(247,147,26,0.25);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}
.guide-warning-box {
  background: rgba(248,213,49,0.08);
  border: 1px solid rgba(248,213,49,0.25);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.steps-list { display: flex; flex-direction: column; gap: 1rem; }
.step-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; }
.step-badge { width: 32px; height: 32px; min-width: 32px; background: var(--orange); color: #000; border-radius: 50%; font-weight: 800; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; }

.faq-item { margin-bottom: 1.25rem; padding: 1.25rem; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; }
.faq-q { font-weight: 600; margin-bottom: 0.5rem; }
.faq-a { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

.border-orange { border-color: var(--orange) !important; }

/* ---- Footer ---- */
.footer-dark { background: var(--bg2); border-top: 1px solid var(--border); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-section { padding: 90px 0 40px; }
  .display-3 { font-size: 2rem; }
  .kpi-value { font-size: 1.2rem; }
}
