@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Rajdhani:wght@500;600;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg-main: #060911;
  --bg-card: rgba(15, 22, 36, 0.75);
  --bg-card-hover: rgba(22, 32, 53, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-color: rgba(0, 240, 255, 0.15);
  --border-glow: rgba(0, 240, 255, 0.4);
  --cyan: #00f0ff;
  --cyan-dim: #00b4d8;
  --purple: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.4);
  --green: #10b981;
  --green-glow: rgba(16, 185, 129, 0.4);
  --amber: #f59e0b;
  --red: #ef4444;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-display: 'Orbitron', sans-serif;
  --font-heading: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-cyber: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.12);
  --shadow-neon: 0 0 25px rgba(0, 240, 255, 0.35);
}

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

html, body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Cyber ambient grid */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: 
    radial-gradient(circle at 15% 20%, rgba(0, 240, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 45%),
    linear-gradient(rgba(0, 240, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--cyan);
}

/* Typography */
h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  font-weight: 700;
}
.font-display {
  font-family: var(--font-display);
  letter-spacing: 1px;
}
.font-mono {
  font-family: var(--font-mono);
}

/* Layout Containers */
.app-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 9, 17, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1.5px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-neon);
  position: relative;
  overflow: hidden;
}

.brand-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
}

.nav-link.active {
  border-bottom: 2px solid var(--cyan);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Balances widget in header */
.balances-pill {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 4px 6px;
  gap: 8px;
}

.balance-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.balance-item.real {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.balance-item.demo {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--cyan);
}

.balance-label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  opacity: 0.8;
}

.balance-val {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.btn-cyan {
  background: linear-gradient(135deg, #00f0ff, #0284c7);
  color: #040914;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}
.btn-cyan:hover {
  color: #040914;
  box-shadow: 0 6px 25px rgba(0, 240, 255, 0.6);
  transform: translateY(-2px);
}

.btn-purple {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #fff;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.35);
}
.btn-purple:hover {
  color: #fff;
  box-shadow: 0 6px 25px rgba(168, 85, 247, 0.65);
  transform: translateY(-2px);
}

.btn-green {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.btn-green:hover {
  color: #fff;
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.6);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 18px;
  border-radius: var(--radius-md);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.8);
}

/* Cards & Glass panels */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-cyber);
  position: relative;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.card-title {
  font-size: 20px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
}

.badge-cyan { background: rgba(0, 240, 255, 0.15); color: var(--cyan); border: 1px solid rgba(0, 240, 255, 0.3); }
.badge-green { background: rgba(16, 185, 129, 0.15); color: var(--green); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-amber { background: rgba(245, 158, 11, 0.15); color: var(--amber); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-purple { background: rgba(139, 92, 246, 0.15); color: var(--purple); border: 1px solid rgba(139, 92, 246, 0.3); }
.badge-red { background: rgba(239, 68, 68, 0.15); color: var(--red); border: 1px solid rgba(239, 68, 68, 0.3); }

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(11, 17, 30, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  transition: all 0.25s;
}

.form-control:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  background: rgba(15, 23, 42, 0.95);
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-addon {
  position: absolute;
  right: 14px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Flash alerts */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.alert-success { background: rgba(16, 185, 129, 0.15); border: 1px solid var(--green); color: #6ee7b7; }
.alert-error { background: rgba(239, 68, 68, 0.15); border: 1px solid var(--red); color: #fca5a5; }
.alert-info { background: rgba(0, 240, 255, 0.15); border: 1px solid var(--cyan); color: #bae6fd; }

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 14px;
  color: var(--text-main);
}

.data-table tr:hover td {
  background: rgba(0, 240, 255, 0.02);
}

/* Single Screen Landing Page (Module 1) */
.landing-hero-screen {
  min-height: calc(100vh - 70px);
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  position: relative;
  overflow: hidden;
}

.landing-content {
  flex: 1;
  max-width: 600px;
  z-index: 2;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 50px;
  color: var(--cyan);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.hero-title {
  font-size: 52px;
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 40%, var(--cyan) 80%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 26px;
  line-height: 1.6;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.hero-stat-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--cyan);
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.landing-bot-showcase {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* AI Bot Canvas and Container */
.ai-bot-wrapper {
  position: relative;
  width: 440px;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bot-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
  z-index: 2;
  filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.4));
}

.bot-ambient-ring {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 2px dashed rgba(0, 240, 255, 0.25);
  animation: botSpin 25s linear infinite;
  z-index: 1;
}

.bot-ambient-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.2) 0%, rgba(139, 92, 246, 0.1) 60%, transparent 80%);
  filter: blur(40px);
  z-index: 0;
  animation: botPulse 4s ease-in-out infinite;
}

.bot-speech-bubble {
  position: absolute;
  bottom: -15px;
  background: rgba(11, 18, 32, 0.95);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  padding: 10px 18px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #fff;
  z-index: 10;
  max-width: 320px;
  text-align: center;
  animation: floatUpDown 3s ease-in-out infinite;
}

.bot-speech-bubble::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 8px 8px 8px;
  border-style: solid;
  border-color: transparent transparent var(--cyan) transparent;
}

@keyframes botSpin {
  100% { transform: rotate(360deg); }
}

@keyframes botPulse {
  0%, 100% { transform: scale(0.95); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}

@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Trading Module Interface */
.trading-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  margin-top: 20px;
  align-items: stretch;
}

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

.trade-mode-toggle {
  display: flex;
  background: rgba(11, 17, 30, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 20px;
}

.trade-mode-btn {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
}

.trade-mode-btn.active.mode-demo {
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.trade-mode-btn.active.mode-real {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.timer-display {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  color: var(--cyan);
  text-align: center;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
  margin: 15px 0;
  letter-spacing: 2px;
}

.timer-sub {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Captcha Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(4, 7, 14, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #0d1525;
  border: 1px solid var(--border-glow);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-md);
  width: 90%;
  max-width: 480px;
  padding: 28px;
  position: relative;
  animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
}
.modal-close:hover { color: #fff; }

.captcha-box {
  background: rgba(6, 10, 20, 0.9);
  border: 1px dashed var(--cyan);
  padding: 16px;
  border-radius: var(--radius-sm);
  text-align: center;
  margin: 18px 0;
}

.captcha-question {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 3px;
  user-select: none;
}

/* Crypto Deposit Cards (Plinko style) */
.crypto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.crypto-card {
  background: rgba(14, 21, 35, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.crypto-card:hover, .crypto-card.selected {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
}

.crypto-icon {
  font-size: 24px;
  margin-bottom: 6px;
}

.crypto-symbol {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}

.crypto-network {
  font-size: 11px;
  color: var(--text-muted);
}

.qr-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius-sm);
  width: 180px;
  height: 180px;
  margin: 0 auto 16px;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glow);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.pulse-anim {
  animation: buttonPulse 1.8s infinite;
}
@keyframes buttonPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 14px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
