/* ============================================
   BOOSTPANEL — Premium Dark Theme
   ============================================ */

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

:root {
  --bg-void: #070709;
  --bg-deep: #0d0d12;
  --bg-panel: #111118;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --bg-input: #0f0f17;
  --border: rgba(255,255,255,0.07);
  --border-bright: rgba(255,255,255,0.13);
  --accent: #7c5cfc;
  --accent-2: #5c8dff;
  --accent-glow: rgba(124,92,252,0.35);
  --accent-mid: #9d7fff;
  --text-primary: #f0eeff;
  --text-secondary: #9b98b8;
  --text-muted: #5a5878;
  --success: #3ecf8e;
  --danger: #f04e4e;
  --warning: #f5a623;
  --info: #5c8dff;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 32px rgba(0,0,0,0.5);
  --shadow-accent: 0 0 40px rgba(124,92,252,0.2);
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* === BACKGROUND GRID === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,92,252,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,92,252,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* === NAVBAR === */
.navbar {
  background: rgba(7,7,9,0.85) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary) !important;
  letter-spacing: -0.02em;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.navbar-brand .brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  display: inline-block;
}

.navbar-brand img {
  height: 32px;
  width: auto;
}

.navbar .nav-link {
  color: var(--text-secondary) !important;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 1.25rem 1rem !important;
  transition: color var(--transition);
  position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link.active-nav {
  color: var(--text-primary) !important;
}

.navbar .nav-link.active-nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}

.navbar-toggler {
  border: 1px solid var(--border-bright);
  padding: 0.4rem 0.6rem;
  color: var(--text-primary);
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* === MOTD BANNER === */
.motd-banner {
  background: linear-gradient(90deg, rgba(124,92,252,0.15), rgba(92,141,255,0.15));
  border-bottom: 1px solid rgba(124,92,252,0.25);
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--accent-mid);
}

/* === HERO === */
.hero {
  position: relative;
  padding: 7rem 0 5rem;
  text-align: center;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(124,92,252,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(124,92,252,0.1);
  border: 1px solid rgba(124,92,252,0.3);
  color: var(--accent-mid);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #f0eeff 0%, #9d7fff 50%, #5c8dff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, #7c5cfc, #5c8dff);
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(124,92,252,0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(124,92,252,0.55);
  background: linear-gradient(135deg, #8d70ff, #6b9aff);
  color: #fff;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--text-primary) !important;
}

.btn-outline:hover {
  background: var(--bg-card);
  border-color: var(--accent);
  color: var(--text-primary);
}

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary) !important;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.09);
  color: var(--text-primary) !important;
}

.btn-success {
  background: rgba(62,207,142,0.15);
  color: var(--success) !important;
  border: 1px solid rgba(62,207,142,0.3);
}
.btn-success:hover { background: rgba(62,207,142,0.25); color: var(--success) !important; }

.btn-danger {
  background: rgba(240,78,78,0.15);
  color: var(--danger) !important;
  border: 1px solid rgba(240,78,78,0.3);
}
.btn-danger:hover { background: rgba(240,78,78,0.25); color: var(--danger) !important; }

.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-md { padding: 0.65rem 1.4rem; font-size: 0.9rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* === CARDS === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: var(--border-bright);
}

.card-header {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card-header .card-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: rgba(124,92,252,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--accent-mid);
}

.card-body {
  padding: 1.5rem;
}

/* === STAT CARDS === */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity var(--transition);
}

.stat-card:hover::before { opacity: 1; }

.stat-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* === FEATURE CARDS === */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: rgba(124,92,252,0.3);
  box-shadow: 0 8px 40px rgba(124,92,252,0.1);
  transform: translateY(-3px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124,92,252,0.2), rgba(92,141,255,0.2));
  border: 1px solid rgba(124,92,252,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent-mid);
  margin-bottom: 1.25rem;
}

.feature-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

/* === FORMS === */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
  letter-spacing: 0.02em;
}

.form-control,
.form-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,92,252,0.15);
  background: var(--bg-input);
  color: var(--text-primary);
}

.form-control::placeholder { color: var(--text-muted); }

.form-control[type="checkbox"] {
  width: auto;
  accent-color: var(--accent);
}

.form-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* === ALERTS === */
.alert {
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.2rem;
  font-size: 0.875rem;
  border: 1px solid;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.alert-danger {
  background: rgba(240,78,78,0.1);
  border-color: rgba(240,78,78,0.3);
  color: #f87171;
}

.alert-success {
  background: rgba(62,207,142,0.1);
  border-color: rgba(62,207,142,0.3);
  color: #6ee7b7;
}

.alert-primary {
  background: rgba(124,92,252,0.1);
  border-color: rgba(124,92,252,0.3);
  color: var(--accent-mid);
}

.alert-warning {
  background: rgba(245,166,35,0.1);
  border-color: rgba(245,166,35,0.3);
  color: #fbbf24;
}

/* === TABLES === */
.table-responsive { overflow-x: auto; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table thead th {
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.table tbody tr:last-child { border-bottom: none; }
.table tbody tr:hover { background: rgba(255,255,255,0.02); }

.table tbody td {
  padding: 0.85rem 1rem;
  color: var(--text-secondary);
  vertical-align: middle;
}

.table tbody td:first-child { color: var(--text-primary); font-weight: 500; }

.table .table-danger td { color: var(--danger); opacity: 0.8; }

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.badge-success { background: rgba(62,207,142,0.15); color: var(--success); border: 1px solid rgba(62,207,142,0.25); }
.badge-danger { background: rgba(240,78,78,0.15); color: var(--danger); border: 1px solid rgba(240,78,78,0.25); }
.badge-warning { background: rgba(245,166,35,0.15); color: var(--warning); border: 1px solid rgba(245,166,35,0.25); }
.badge-info { background: rgba(92,141,255,0.15); color: var(--info); border: 1px solid rgba(92,141,255,0.25); }
.badge-purple { background: rgba(124,92,252,0.15); color: var(--accent-mid); border: 1px solid rgba(124,92,252,0.25); }

/* === TABS === */
.tabs-bar {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color var(--transition);
  text-decoration: none;
  display: inline-block;
}

.tab-btn:hover { color: var(--text-primary); }

.tab-btn.active {
  color: var(--text-primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}

/* === SECTION LAYOUTS === */
.section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.section-sm { padding: 3rem 0; }

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-mid);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 300;
  max-width: 480px;
  margin-bottom: 3rem;
}

/* === DIVIDER === */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* === ACCORDION / FAQ === */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.25rem 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--accent-mid); }

.faq-question .faq-chevron {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-question.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 0 0 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
}

.faq-answer.open { display: block; }

/* === FOOTER === */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  position: relative;
  z-index: 1;
}

footer a { color: var(--text-secondary); transition: color var(--transition); }
footer a:hover { color: var(--accent-mid); }

/* === PRICE CALCULATOR === */
.price-display {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-mid);
  text-align: right;
}

.service-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* === SIDEBAR LAYOUT === */
.panel-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 64px);
}

@media (max-width: 768px) {
  .panel-layout { grid-template-columns: 1fr; }
}

/* === ADMIN GRID === */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

/* === INLINE CHECKBOX === */
.check-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.check-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.check-group label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  margin: 0;
}

/* === CONTAINER === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 600px; margin: 0 auto; padding: 0 1.5rem; }

/* === UTILITIES === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.pt-2 { padding-top: 1rem; }
.pb-5 { padding-bottom: 3rem; }
.w-100 { width: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}

/* === DATATABLE OVERRIDES === */
.dataTables_wrapper .dataTables_filter input {
  background: var(--bg-input) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.4rem 0.75rem !important;
}

.dataTables_wrapper .dataTables_info {
  color: var(--text-muted) !important;
  font-size: 0.8rem !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  color: var(--text-secondary) !important;
  border-radius: var(--radius-sm) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: rgba(124,92,252,0.2) !important;
  border: 1px solid rgba(124,92,252,0.4) !important;
  color: var(--accent-mid) !important;
}

/* === FUND BUTTONS GRID === */
.fund-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
}

.fund-btn {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition);
  display: block;
}

.fund-btn:hover {
  border-color: var(--accent);
  background: rgba(124,92,252,0.1);
  color: var(--accent-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124,92,252,0.2);
  text-decoration: none;
}

/* === SETTINGS SECTIONS === */
.settings-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.settings-section-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-section-header i { color: var(--accent-mid); }

.settings-section-body { padding: 1.5rem; }

/* === SCROLL BAR === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* === LOADING SPINNER === */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* === NOTIFICATION DOT === */
.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
  margin-left: 4px;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
