/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --bg-deep: #040812;
  --bg-card: #080f1e;
  --bg-card2: #0c1428;
  --border: rgba(0, 212, 255, 0.12);
  --accent: #00d4ff;
  --accent2: #7b2fff;
  --accent3: #00ff87;
  --gold: #f5c518;
  --text: #e8eaf0;
  --text-muted: #6b7a99;
  --danger: #ff4d6d;
  --success: #00e676;
  --warning: #ffab40;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  --glow: 0 0 20px rgba(0, 212, 255, 0.15);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; }

/* ── Navbar ── */
.navbar-main {
  background: rgba(4, 8, 18, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text) !important;
  text-decoration: none;
}
.navbar-brand span { color: var(--accent); }
.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  transition: color 0.2s;
  padding: 6px 14px !important;
}
.nav-link:hover, .nav-link.active { color: var(--accent) !important; }

/* ── Hero ── */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,212,255,0.08) 0%, transparent 70%),
              radial-gradient(ellipse 60% 50% at 80% 80%, rgba(123,47,255,0.06) 0%, transparent 60%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 24px 0 40px;
  font-weight: 300;
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* Floating card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.floating-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  width: 340px;
  box-shadow: var(--shadow), var(--glow);
  animation: float 6s ease-in-out infinite;
  position: relative;
  z-index: 2;
}
.floating-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0,212,255,0.2), transparent, rgba(123,47,255,0.2));
  z-index: -1;
}
@keyframes float {
  0%,100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,212,255,0.1);
  animation: spin 20s linear infinite;
}
.orbit-1 { width: 420px; height: 420px; top: -40px; left: -40px; }
.orbit-2 { width: 540px; height: 540px; top: -100px; left: -100px; animation-duration: 30s; animation-direction: reverse; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ── Buttons ── */
.btn-primary-glow {
  background: linear-gradient(135deg, var(--accent), #0099cc);
  color: #000;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0,212,255,0.3);
  font-size: 0.95rem;
}
.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,212,255,0.5);
  color: #000;
}
.btn-outline-glow {
  background: transparent;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 13px 32px;
  border-radius: 50px;
  border: 1px solid var(--accent);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  font-size: 0.95rem;
}
.btn-outline-glow:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-2px);
}

/* ── Cards ── */
.card-glass {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.card-glass:hover {
  border-color: rgba(0,212,255,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow), var(--glow);
}
.card-glass::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.card-glass:hover::before { opacity: 1; }

/* ── Plan Cards ── */
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}
.plan-card.featured {
  border-color: var(--gold);
  box-shadow: 0 0 40px rgba(245,197,24,0.1);
}
.plan-card.featured::before {
  content: 'POPULAR';
  position: absolute;
  top: 18px; right: -28px;
  background: var(--gold);
  color: #000;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 36px;
  transform: rotate(45deg);
  letter-spacing: 1px;
}
.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow), 0 0 30px rgba(0,212,255,0.1);
}
.plan-icon {
  width: 70px; height: 70px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}
.plan-rate {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}
.plan-rate-unit { font-size: 1rem; color: var(--text-muted); font-family: var(--font-body); }
.plan-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}
.plan-feature { display: flex; justify-content: space-between; margin-bottom: 12px; }
.plan-feature-label { color: var(--text-muted); font-size: 0.85rem; }
.plan-feature-val { font-weight: 600; }

/* ── Dashboard ── */
.sidebar {
  width: 260px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  height: 100vh;
  position: fixed;
  left: 0; top: 0;
  z-index: 100;
  padding: 24px 0;
  transition: transform 0.3s;
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.25); border-radius: 2px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: rgba(0,212,255,0.5); }
.sidebar-menu { padding: 20px 12px; }
.sidebar-brand {
  padding: 0 24px 24px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  display: block;
}
.sidebar-brand span { color: var(--accent); }
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
  margin-bottom: 4px;
  transition: all 0.2s;
}
.sidebar-item:hover, .sidebar-item.active {
  background: rgba(0,212,255,0.08);
  color: var(--accent);
}
.sidebar-item i { width: 18px; text-align: center; }
.sidebar-section {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  padding: 16px 14px 6px;
  font-weight: 600;
}
.dash-content {
  margin-left: 260px;
  padding: 32px;
  min-height: 100vh;
}
@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .dash-content { margin-left: 0; }
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s;
}
.stat-card:hover { border-color: rgba(0,212,255,0.3); box-shadow: var(--glow); }
.stat-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-val {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Tables ── */
.table-dark-custom {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.table-dark-custom th {
  background: var(--bg-card2);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 600;
}
.table-dark-custom td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  vertical-align: middle;
  font-size: 0.9rem;
}
.table-dark-custom tr:hover td { background: rgba(0,212,255,0.03); }
.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ── Forms ── */
.form-control-dark {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 16px;
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.2s;
  outline: none;
}
.form-control-dark:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}
.form-control-dark::placeholder { color: var(--text-muted); }
.form-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; display: block; }
.form-group { margin-bottom: 20px; }

/* ── Alerts ── */
.alert { border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 16px; font-size: 0.9rem; border: 1px solid; }
.alert-success { background: rgba(0,230,118,0.1); border-color: rgba(0,230,118,0.3); color: var(--success); }
.alert-danger  { background: rgba(255,77,109,0.1); border-color: rgba(255,77,109,0.3); color: var(--danger); }
.alert-warning { background: rgba(255,171,64,0.1); border-color: rgba(255,171,64,0.3); color: var(--warning); }
.alert-info    { background: rgba(0,212,255,0.1); border-color: rgba(0,212,255,0.3); color: var(--accent); }

/* ── Badges ── */
.badge { padding: 5px 10px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; }
.bg-success { background: rgba(0,230,118,0.15) !important; color: var(--success); }
.bg-danger  { background: rgba(255,77,109,0.15) !important; color: var(--danger); }
.bg-warning { background: rgba(255,171,64,0.15) !important; color: var(--warning); }
.bg-info    { background: rgba(0,212,255,0.15) !important; color: var(--accent); }
.bg-primary { background: rgba(123,47,255,0.15) !important; color: #9b6fff; }
.bg-secondary { background: rgba(107,122,153,0.15) !important; color: var(--text-muted); }

/* ── Progress ── */
.progress-bar-custom {
  height: 6px;
  background: var(--bg-card2);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 1s ease;
}

/* ── Auth pages ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
  position: relative;
}
.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(0,212,255,0.05) 0%, transparent 70%);
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: var(--shadow);
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 40px; right: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* ── Section ── */
.section { padding: 100px 0; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }

/* ── How it works ── */
.step-card {
  text-align: center;
  position: relative;
}
.step-num {
  width: 60px; height: 60px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 auto 20px;
  position: relative;
  background: rgba(0,212,255,0.05);
}

/* ── Footer ── */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-logo { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; }
.footer-logo span { color: var(--accent); }
.footer-link { color: var(--text-muted); text-decoration: none; display: block; margin-bottom: 10px; font-size: 0.9rem; transition: color 0.2s; }
.footer-link:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 24px; color: var(--text-muted); font-size: 0.85rem; }

/* ── Ticker ── */
.ticker-wrap {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  overflow: hidden;
}
.ticker {
  display: flex;
  gap: 40px;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 500;
}
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-item { display: flex; align-items: center; gap: 8px; }
.ticker-up { color: var(--success); }
.ticker-down { color: var(--danger); }

/* ── Misc ── */
.text-accent { color: var(--accent); }
.text-gold { color: var(--gold); }
.text-muted-custom { color: var(--text-muted); }
.page-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.page-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 32px; }
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.copy-btn { cursor: pointer; color: var(--text-muted); transition: color 0.2s; }
.copy-btn:hover { color: var(--accent); }
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: #000;
  flex-shrink: 0;
}
.dot-active { width: 8px; height: 8px; background: var(--success); border-radius: 50%; display: inline-block; }

/* container override */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
[class*="col-"] { padding: 0 12px; }
.col-12 { width: 100%; }
.col-6 { width: 50%; }
.col-4 { width: 33.333%; }
.col-3 { width: 25%; }
.col-8 { width: 66.666%; }
@media (max-width: 768px) {
  .col-6, .col-4, .col-3, .col-8 { width: 100%; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .auth-card { padding: 32px 24px; }
  .dash-content { padding: 20px; }
}

/* Grid utility */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 991px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 6px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 20px; }
.mb-4 { margin-bottom: 28px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 20px; }
.mt-4 { margin-top: 28px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.fw-bold { font-weight: 700; }
.small { font-size: 0.82rem; }
.w-100 { width: 100%; }
