/* Force Bootstrap modal above sidebar and overlays */
.modal {
  z-index: 3000 !important;
  pointer-events: auto !important;
}

.modal-backdrop {
  z-index: 2990 !important;
  pointer-events: auto !important;
}

/* Fix for Bootstrap modal being covered by sidebar or other overlays */
.modal {
  z-index: 2000 !important;
}

.modal-backdrop {
  z-index: 1990 !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   Boostify — Premium Design System
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────────── */
:root {
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Core brand colors (shared) */
  --blue: #3b82f6;
  --blue-bright: #60a5fa;
  --blue-glow: rgba(59, 130, 246, 0.35);
  --cyan: #06b6d4;
  --purple: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.3);
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.15);
  --amber: #f59e0b;
  --red: #ef4444;
  --grad-brand: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
}

/* Dark Theme (Default) */
[data-theme="dark"],
:root:not([data-theme="light"]) {
  --bg-base: #04080f;
  --bg-surface: #070d1a;
  --bg-elevated: #0c1427;
  --bg-glass: rgba(12, 20, 39, 0.6);
  --bg-deep: #060b16;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);

  --text-primary: #f0f4ff;
  --text-secondary: #8b9cc8;
  --text-muted: #4e5d82;

  --grad-card: linear-gradient(145deg, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
  --grad-glow: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59, 130, 246, 0.18) 0%, transparent 70%);

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.2);
  --shadow-purple: 0 0 40px rgba(139, 92, 246, 0.2);
}

/* Light Theme */
[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-elevated: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-deep: #f1f5f9;

  --border-subtle: rgba(0, 0, 0, 0.05);
  --border-strong: rgba(0, 0, 0, 0.1);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --grad-card: linear-gradient(145deg, rgba(255, 255, 255, 0.8) 0%, rgba(241, 245, 249, 0.5) 100%);
  --grad-glow: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59, 130, 246, 0.05) 0%, transparent 70%);

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 4px 20px rgba(59, 130, 246, 0.1);
  --shadow-purple: 0 4px 20px rgba(139, 92, 246, 0.1);
}

/* ── Reset & Base ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Ambient mesh background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 20% -5%, rgba(59, 130, 246, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 10%, rgba(139, 92, 246, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ──────────────────────────────────────────────────────── */
.main-wrapper {
  margin-left: 240px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

/* ── Typography ──────────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.display-1,
.display-2,
.display-3,
.display-4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted) !important;
}

/* ── Brand gradient (used by sidebar logo + footer) ─────────────── */
.brand-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.avatar-circle {
  width: 34px;
  height: 34px;
  background: var(--grad-brand);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* ── Sidebar ──────────────────────────────────────────────────────── */
.site-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: var(--bg-glass);
  border-right: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow-y: auto;
  max-height: 100vh;
  overflow-x: hidden;
  scrollbar-width: none;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.1rem 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.sidebar-logo-icon {
  width: 30px;
  height: 30px;
  background: var(--grad-brand);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  padding: 4px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  line-height: 1;
  transition: color var(--transition), background var(--transition);
}

.sidebar-close-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-section-label {
  padding: 0.9rem 1.1rem 0.3rem;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 0.6rem;
  flex-shrink: 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.855rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background var(--transition), color var(--transition);
  line-height: 1.4;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.sidebar-link.active {
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue-bright);
}

.sidebar-link.active .sidebar-icon {
  color: var(--blue);
}

.sidebar-icon {
  width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color var(--transition);
}

.sidebar-link:hover .sidebar-icon {
  color: var(--text-secondary);
}

.sidebar-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.6rem 1.1rem;
  flex-shrink: 0;
}

.sidebar-bottom {
  padding: 0.5rem 0.6rem 1rem;
  flex-shrink: 0;
}

.sidebar-wallet-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.6rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(34, 197, 94, 0.2);
  background: rgba(34, 197, 94, 0.07);
}

.sidebar-wallet {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(34, 197, 94, 0.07);
  padding: 0.6rem 0.8rem;
  font-size: 0.855rem;
  border-bottom: 1px solid rgba(34, 197, 94, 0.12);
}

.sidebar-wallet i {
  color: var(--green);
  font-size: 0.85rem;
}

.sidebar-wallet-label {
  color: var(--text-muted);
  font-size: 0.76rem;
  flex: 1;
}

.sidebar-wallet-amount {
  color: var(--green);
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

.sidebar-addfunds {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.6rem 0.8rem;
  background: transparent;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.sidebar-addfunds:hover {
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0.4rem 0.7rem;
  margin-bottom: 0.15rem;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 0.845rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.sidebar-signout {
  color: #f87171 !important;
}

.sidebar-signout .sidebar-icon {
  color: #f87171 !important;
}

.sidebar-signout:hover {
  background: rgba(239, 68, 68, 0.08) !important;
  color: #ef4444 !important;
}

/* Sidebar overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  z-index: 999;
}

.sidebar-overlay.visible {
  display: block;
}

/* Mobile topbar */
.mobile-topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
}

.sidebar-toggle-btn {
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 1.15rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--transition), color var(--transition);
}

.sidebar-toggle-btn:hover {
  border-color: var(--blue);
  color: var(--text-primary);
}

.mobile-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
  text-decoration: none;
  flex: 1;
}

.wallet-pill-sm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--green);
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Mobile logout icon button (shown in topbar on small screens) */
.mobile-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  color: #f87171;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  flex-shrink: 0;
}

.mobile-logout-btn:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: var(--red);
  color: #fff;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  letter-spacing: 0.01em;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 0 var(--blue-glow);
}

.btn-primary:hover {
  background: var(--blue-bright);
  border-color: var(--blue-bright);
  box-shadow: 0 4px 20px var(--blue-glow);
  transform: translateY(-1px);
}

.btn-primary:focus {
  box-shadow: 0 0 0 3px var(--blue-glow) !important;
}

.btn-gradient {
  background: var(--grad-brand);
  border: none;
  color: #fff;
  font-weight: 700;
}

.btn-gradient:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
  color: #fff;
}

.btn-outline-primary {
  color: var(--blue);
  border-color: var(--blue);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 4px 16px var(--blue-glow);
}

.btn-outline-secondary {
  color: var(--text-secondary);
  border-color: var(--border-strong);
  background: transparent;
}

.btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
}

.btn-success {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.btn-success:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
  color: #fff;
}

.btn-outline-success {
  color: var(--green);
  border-color: var(--green);
}

.btn-outline-success:hover {
  background: var(--green-dim);
  border-color: var(--green);
  color: var(--green);
}

.btn-danger,
.btn-outline-danger {
  border-radius: var(--radius-sm);
}

.btn-danger {
  background: var(--red);
  border-color: var(--red);
}

.btn-danger:hover {
  opacity: 0.88;
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-danger {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

.btn-outline-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--red);
  color: var(--red);
}

.btn-warning {
  background: var(--amber);
  border-color: var(--amber);
  color: #000;
  font-weight: 700;
}

.btn-warning:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  color: #000;
}

/* ── Cards ───────────────────────────────────────────────────────── */
.card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), 0 8px 40px rgba(59, 130, 246, 0.1);
  border-color: var(--border-strong);
}

.card-header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 1.25rem;
}

/* Glow cards */
.card-glow-blue {
  border-color: rgba(59, 130, 246, 0.25) !important;
  box-shadow: var(--shadow-card), 0 0 30px rgba(59, 130, 246, 0.1);
}

.card-glow-purple {
  border-color: rgba(139, 92, 246, 0.25) !important;
  box-shadow: var(--shadow-card), 0 0 30px rgba(139, 92, 246, 0.1);
}

.card-glow-green {
  border-color: rgba(34, 197, 94, 0.25) !important;
  box-shadow: var(--shadow-card), 0 0 30px rgba(34, 197, 94, 0.1);
}

.card-glow-blue:hover {
  box-shadow: var(--shadow-card), 0 0 50px rgba(59, 130, 246, 0.2) !important;
}

.card-glow-purple:hover {
  box-shadow: var(--shadow-card), 0 0 50px rgba(139, 92, 246, 0.2) !important;
}

.card-glow-green:hover {
  box-shadow: var(--shadow-card), 0 0 50px rgba(34, 197, 94, 0.2) !important;
}

/* Service card */
.service-card {
  background: var(--bg-glass) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.service-card:hover {
  border-color: rgba(59, 130, 246, 0.4) !important;
  background: rgba(59, 130, 246, 0.06) !important;
  transform: translateY(-4px);
}

/* ── Forms ───────────────────────────────────────────────────────── */
.form-control,
.form-select {
  background: rgba(10, 16, 30, 0.8) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-primary) !important;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus,
.form-select:focus {
  background: rgba(15, 22, 40, 0.9) !important;
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18) !important;
  color: var(--text-primary) !important;
  outline: none;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-select option {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.form-label {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.form-text {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 0.3rem;
}

/* ── Tables ──────────────────────────────────────────────────────── */
.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text-primary);
  color: var(--text-primary);
}

.table td,
.table th {
  border-color: var(--border-subtle);
  padding: 0.65rem 0.75rem;
  vertical-align: middle;
}

.table td:first-child {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 38%;
}

/* ── Badges ──────────────────────────────────────────────────────── */
.badge {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  border-radius: 6px;
  padding: 0.3em 0.65em;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.bg-primary {
  background: var(--blue) !important;
}

.bg-success {
  background: var(--green) !important;
}

.bg-danger {
  background: var(--red) !important;
}

.bg-warning {
  background: rgba(245, 158, 11, 0.2) !important;
  color: var(--amber) !important;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.bg-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border-strong);
}

.bg-info {
  background: rgba(6, 182, 212, 0.15) !important;
  color: var(--cyan) !important;
}

/* ── Alerts ──────────────────────────────────────────────────────── */
.alert {
  border-radius: var(--radius-md);
  border: 1px solid;
  font-size: 0.9rem;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(10px);
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.25);
  color: #4ade80;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.25);
  color: var(--blue-bright);
}

.alert-link {
  font-weight: 700;
  text-decoration: underline;
}

/* ── Toast Notifications ─────────────────────────────────────────── */
.toast {
  min-width: 300px;
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: var(--radius-md) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
}

.toast .toast-body {
  color: var(--text-primary) !important;
  font-weight: 500;
  font-size: 0.875rem;
}

.toast .btn-close-white {
  filter: invert(1) grayscale(1) brightness(0.6);
}

.toast.text-bg-success {
  border-color: rgba(34, 197, 94, 0.3) !important;
}

.toast.text-bg-success .toast-body {
  color: #4ade80 !important;
}

.toast.text-bg-danger {
  border-color: rgba(239, 68, 68, 0.3) !important;
}

.toast.text-bg-danger .toast-body {
  color: #f87171 !important;
}

.toast.text-bg-warning {
  border-color: rgba(245, 158, 11, 0.3) !important;
}

.toast.text-bg-warning .toast-body {
  color: #fbbf24 !important;
}

.toast.text-bg-primary {
  border-color: rgba(59, 130, 246, 0.3) !important;
}

@keyframes toast-shrink {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}

/* ── Minimal footer ──────────────────────────────────────────────── */
.site-footer-min {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 0.9rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.footer-min-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.04em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-min-links {
  display: flex;
  gap: 1.1rem;
  flex: 1;
}

.footer-min-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  transition: color var(--transition);
}

.footer-min-links a:hover {
  color: var(--text-primary);
}

.footer-min-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* ── Stat numbers ────────────────────────────────────────────────── */
.stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

/* ── Feature icon ────────────────────────────────────────────────── */
.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  font-size: 1.4rem;
}

/* ── Step circle ─────────────────────────────────────────────────── */
.step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  margin: 0 auto 1rem;
}

/* ── Divider with label ──────────────────────────────────────────── */
.divider-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.divider-label::before,
.divider-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* ── Spinner ─────────────────────────────────────────────────────── */
.spinner-border {
  color: var(--blue);
}

.spinner-grow {
  color: var(--green);
}

/* ── Scroll-reveal animation ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ── Page-level fade-in ──────────────────────────────────────────── */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeSlideIn 0.45s ease both;
}

/* ── Hero mesh ───────────────────────────────────────────────────── */
.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% -20%, rgba(59, 130, 246, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 80% 30%, rgba(139, 92, 246, 0.12) 0%, transparent 55%);
  pointer-events: none;
}

/* ── Glow ring ───────────────────────────────────────────────────── */
.glow-ring {
  position: relative;
}

.glow-ring::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--grad-brand);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition);
}

.glow-ring:hover::after {
  opacity: 0.5;
  filter: blur(8px);
}

/* ── Check list ──────────────────────────────────────────────────── */
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.check-list .check-icon {
  color: var(--green);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Pricing highlight ───────────────────────────────────────────── */
.price-tag {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
}

/* ── Navbar toggler ──────────────────────────────────────────────── */
.navbar-toggler {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.5rem;
}

.navbar-toggler-icon {
  filter: invert(1);
  opacity: 0.7;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

/* ── Misc utility ────────────────────────────────────────────────── */
.font-mono {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace !important;
}

.rounded-xl {
  border-radius: var(--radius-xl) !important;
}

.rounded-lg {
  border-radius: var(--radius-lg) !important;
}

.rounded-md {
  border-radius: var(--radius-md) !important;
}

.border-subtle {
  border-color: var(--border-subtle) !important;
}

.border-strong {
  border-color: var(--border-strong) !important;
}

.bg-elevated {
  background: var(--bg-elevated) !important;
}

.bg-surface {
  background: var(--bg-surface) !important;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .site-sidebar {
    transform: translateX(-240px);
  }

  .site-sidebar.open {
    transform: translateX(0);
  }

  .main-wrapper {
    margin-left: 0;
  }
}

@media (min-width: 992px) {
  .mobile-topbar {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .display-4 {
    font-size: 2.2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .footer-min-copy {
    margin-left: 0;
  }

  .footer-min-links {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

/* ════════════════════════════════════════════════════════════════
   Virtual Numbers page  –  all new components
   ════════════════════════════════════════════════════════════════ */

/* ── Stat chip (header row) ──────────────────────────────────────── */
.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.stat-chip i {
  font-size: 0.8rem;
  color: var(--blue);
}

/* ── Styled select wrapper ───────────────────────────────────────── */
.select-wrapper {
  position: relative;
}

.select-styled {
  background: var(--bg-base) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: var(--radius-md) !important;
  padding: 0.6rem 0.9rem !important;
  font-size: 0.875rem !important;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: auto;
}

.select-styled:focus {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18) !important;
  outline: none !important;
}

.select-styled option {
  background: #0f1523;
  color: var(--text-primary);
}

/* ── Step indicators ─────────────────────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-surface);
  border: 2px solid var(--border-strong);
  color: var(--text-muted);
  transition: all var(--transition);
  flex-shrink: 0;
}

.step-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
  white-space: nowrap;
}

.step-connector {
  flex: 1;
  height: 2px;
  background: var(--border-subtle);
  border-radius: 2px;
  margin: 0 0.5rem;
  transition: background var(--transition);
  min-width: 24px;
}

/* active step */
.step-indicator.active .step-num {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.step-indicator.active .step-label {
  color: var(--blue);
}

/* done step */
.step-indicator.done .step-num {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--green);
  color: var(--green);
}

.step-indicator.done .step-label {
  color: var(--green);
}

.step-connector.done {
  background: var(--green);
  opacity: 0.45;
}

/* ── Service cards ───────────────────────────────────────────────── */
.svc-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.875rem 0.5rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition),
    transform var(--transition), background var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  user-select: none;
}

.svc-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
}

.svc-card.selected {
  border-color: var(--blue) !important;
  background: rgba(59, 130, 246, 0.12) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 8px 24px rgba(59, 130, 246, 0.15);
}

.svc-card-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.svc-card-icon-fallback {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--blue);
  flex-shrink: 0;
}

.svc-card-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.2;
  word-break: break-word;
}

.svc-card.selected .svc-card-name {
  color: var(--text-primary);
}

.svc-card-price {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.01em;
}

/* ── Country chip buttons ────────────────────────────────────────── */
.country-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.country-chip:hover {
  border-color: rgba(6, 182, 212, 0.5);
  background: rgba(6, 182, 212, 0.08);
  color: var(--text-primary);
}

.country-chip.selected {
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

/* ── Result card ─────────────────────────────────────────────────── */
.result-card-wrap {
  animation: fadeSlideIn 0.35s ease both;
}

.result-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.08), 0 20px 60px rgba(59, 130, 246, 0.1);
}

.result-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.result-service-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.result-country {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.badge-area {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--purple);
  font-size: 0.68rem;
  font-weight: 700;
}

.result-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.result-price-block {
  padding: 1.5rem;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-price-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.result-meta {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.result-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.result-card-footer {
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

/* Unavailable & loading states */
.result-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-align: center;
}

.result-unavailable {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem;
  background: rgba(248, 113, 113, 0.06);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: var(--radius-lg);
  text-align: center;
  animation: fadeSlideIn 0.3s ease both;
}

/* Responsive result card */
@media (max-width: 576px) {
  .result-card-body {
    grid-template-columns: 1fr;
  }

  .result-price-block {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .result-price {
    font-size: 2.2rem;
  }

  .step-label {
    display: none;
  }
}

/* ════════════════════════════════════════════════════════════════
   Tom Select — dark theme overrides
   ════════════════════════════════════════════════════════════════ */

/* wrapper */
.ts-wrapper {
  width: 100%;
}

.ts-wrapper.single .ts-control {
  background: var(--bg-deep);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: #111827;
  font-weight: 700;
  padding: 0.45rem 2.2rem 0.45rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
  box-shadow: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 40px;
}

.ts-wrapper.single.focus .ts-control,
.ts-wrapper.single .ts-control:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
  outline: none;
}

/* caret */
.ts-wrapper.single .ts-control::after {
  border-color: var(--text-muted) transparent transparent !important;
  right: 0.75rem;
}

/* placeholder */
.ts-wrapper .ts-control input::placeholder {
  color: var(--text-muted) !important;
  font-size: 0.875rem;
}

.ts-wrapper .ts-control input {
  color: #111827 !important;
  font-weight: 700 !important;
  font-size: 0.875rem;
  background: transparent !important;
}

/* selected value text — all states */
.ts-wrapper .ts-control .item,
.ts-wrapper.single .ts-control .item,
.ts-wrapper.single:not(.focus) .ts-control .item,
.ts-wrapper.has-items .ts-control .item {
  color: #f1f5f9 !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  opacity: 1 !important;
}

.ts-custom-item {
  color: #111827;
  font-weight: 700;
  font-size: 0.875rem;
}

/* dropdown */
.ts-dropdown {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  z-index: 9999;
  margin-top: 3px;
}

.ts-dropdown .ts-dropdown-content {
  padding: 0.25rem;
}

/* search input inside dropdown */
.ts-dropdown input.dropdown-input {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  color: #111827;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.35rem 0.65rem;
  margin: 0.25rem;
  width: calc(100% - 0.5rem);
  outline: none;
}

.ts-dropdown input.dropdown-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
}

/* options */
.ts-dropdown .option {
  border-radius: 6px;
  padding: 0 0.25rem;
  color: #111827;
  font-weight: 700;
  transition: background var(--transition);
}

.ts-dropdown .option:hover,
.ts-dropdown .option.active {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #111827 !important;
}

.ts-dropdown .option.selected {
  background: rgba(59, 130, 246, 0.25) !important;
  color: #1e3a5f !important;
}

/* no-results */
.ts-dropdown .no-results {
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 0.6rem;
  text-align: center;
}

/* ── Custom option layout ─────────────────────────────────────────── */
.ts-custom-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.38rem 0.5rem;
  gap: 0.5rem;
  min-height: 36px;
}

.ts-option-text {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Pin star in dropdown ─────────────────────────────────────────── */
.ts-pin-btn {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, transform 0.1s;
  padding: 0;
  line-height: 1;
}

.ts-pin-btn:hover {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  transform: scale(1.2);
}

.ts-pin-btn.pinned {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

/* ── Field label ──────────────────────────────────────────────────── */
.ts-field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

/* ── Area code input matches Tom Select height ────────────────────── */
.ts-area-input {
  background: var(--bg-deep) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: var(--radius-sm) !important;
  color: #111827 !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  min-height: 40px !important;
  padding: 0.45rem 0.75rem !important;
}

.ts-area-input:focus {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18) !important;
  outline: none !important;
}

/* ════════════════════════════════════════════════════════════════
   Pinned quick-access row
   ════════════════════════════════════════════════════════════════ */
.pinned-quick-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.85rem;
  flex-wrap: wrap;
}

.pinned-quick-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f59e0b;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.pinned-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: none;
  border-radius: 999px;
  padding: 0.25rem 0.6rem 0.25rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), transform 0.1s;
}

.pinned-quick-chip--service {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
}

.pinned-quick-chip--service:hover {
  background: rgba(59, 130, 246, 0.22);
}

.pinned-quick-chip--country {
  background: rgba(6, 182, 212, 0.12);
  color: #67e8f9;
}

.pinned-quick-chip--country:hover {
  background: rgba(6, 182, 212, 0.22);
}

.pinned-quick-chip:active {
  transform: scale(0.96);
}

.pqc-unpin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.65rem;
  opacity: 0.6;
  transition: opacity 0.15s, background 0.15s;
  cursor: pointer;
}