@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* =========================================================
     BOTYASA MASTER NEO-FINTECH DESIGN SYSTEM
     Electric Royal Sapphire & Titanium Slate Palette
  ========================================================= */
  --bg-dark: #060911;
  --bg-surface: #0e1422;
  --bg-surface-elevated: #151c2e;
  --bg-card: rgba(14, 20, 34, 0.85);
  --bg-card-hover: rgba(21, 28, 46, 0.95);
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-glow: rgba(37, 99, 235, 0.45);
  
  /* Brand Accents */
  --primary: #2563eb;
  --primary-bright: #3b82f6;
  --primary-deep: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.4);
  
  --secondary: #0284c7;
  --cyan: #38bdf8;
  --sky: #60a5fa;
  --emerald: #10b981;
  --emerald-subtle: rgba(16, 185, 129, 0.12);
  --amber: #f59e0b;
  --amber-subtle: rgba(245, 158, 11, 0.12);
  --rose: #f43f5e;
  --rose-subtle: rgba(244, 63, 94, 0.12);
  --violet: #8b5cf6;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-full: 9999px;
  
  --shadow-subtle: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-floating: 0 20px 60px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 35px var(--primary-glow);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(2, 132, 199, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 50% 35%, rgba(56, 189, 248, 0.08) 0%, transparent 55%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(37, 99, 235, 0.4); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-bright); }

/* Layout Frame */
.app-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem 1.5rem;
}

/* Glassmorphism Elements */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
  border-color: var(--border-strong);
}

.glass-card {
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
}

/* Modern Top Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.9rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(6, 9, 17, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary-deep), var(--cyan));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 14px var(--primary-glow);
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 2px 10px var(--primary-glow);
}

/* Button Component Suite */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  box-shadow: 0 4px 18px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-strong);
}

.btn-danger {
  background: var(--rose-subtle);
  color: var(--rose);
  border: 1px solid var(--rose);
}

/* Hero Section */
.hero-wrapper {
  padding: 3rem 0 2.5rem 0;
  text-align: center;
  position: relative;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.95rem;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-headline {
  font-size: 2.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  max-width: 860px;
  margin: 0 auto 1.1rem auto;
}

.hero-subhead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

/* Live Telemetry Ticker Bar */
.telemetry-ticker-bar {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  max-width: 960px;
  margin: 0 auto;
}

.telemetry-ticker-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.telemetry-ticker-item strong {
  color: var(--cyan);
  font-size: 1.05rem;
}

/* Section Common Headings */
.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.25rem;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.bot-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.bot-item-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.bot-card-lead {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bot-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
}

/* Template Select Cards */
.template-select-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.template-select-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.template-select-card.active {
  background: rgba(37, 99, 235, 0.12);
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}

/* Virtual Telegram Phone Mockup */
.phone-mockup {
  background: #0d1322;
  border: 10px solid #1e293b;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-floating);
  display: flex;
  flex-direction: column;
  height: 580px;
  position: relative;
}

.phone-header {
  background: #151d30;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.bot-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
}

.bot-info-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.bot-info-status {
  font-size: 0.72rem;
  color: var(--cyan);
}

.phone-body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 16px 16px;
}

.chat-bubble {
  max-width: 85%;
  padding: 0.85rem 1rem;
  border-radius: 14px 14px 14px 4px;
  font-size: 0.82rem;
  line-height: 1.45;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.chat-bubble.bot {
  background: #1a233a;
  color: #f1f5f9;
  border: 1px solid rgba(255,255,255,0.06);
}

.chat-bubble.user {
  background: var(--primary);
  color: #fff;
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
}

.chat-inline-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.chat-inline-btn {
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #fff;
  padding: 0.5rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 0.76rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chat-inline-btn:hover {
  background: var(--primary);
  transform: translateY(-1px);
}

.phone-input-bar {
  background: #151d30;
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
}

.phone-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 0.55rem 0.95rem;
  color: #fff;
  font-size: 0.82rem;
  outline: none;
}

.phone-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Toast Container */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.toast {
  background: #0f172a;
  border: 1px solid var(--primary);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: toastIn 0.25s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .navbar { padding: 0.85rem 1rem; }
  .nav-links { display: none; }
  .hero-headline { font-size: 2.1rem; }
  .telemetry-ticker-bar { border-radius: var(--radius-md); }
}
