:root {
  color-scheme: dark;
  --bg: #040b16;
  --panel: rgba(15, 23, 42, 0.84);
  --panel-2: rgba(17, 24, 39, 0.96);
  --border: rgba(148, 163, 184, 0.18);
  --text: #eff6ff;
  --muted: #cbd5e1;
  --brand: #38bdf8;
  --brand-2: #818cf8;
}

* { box-sizing: border-box; }
body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.07), transparent 25%),
    radial-gradient(circle at right, rgba(129, 140, 248, 0.10), transparent 20%),
    linear-gradient(135deg, #020617 0%, #07111f 45%, #111827 100%);
  min-height: 100vh;
  color: #f8fbff;
}

p, li, label, td, th, .text-muted, .small-muted, .lead {
  color: #e5eefc !important;
}

h1, h2, h3, h4, h5, h6, .text-light {
  color: #ffffff !important;
}

a { color: #dbeafe; }
a:hover { color: #ffffff; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(148,163,184,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.95));
  pointer-events: none;
  z-index: -1;
}

.navbar {
  backdrop-filter: blur(14px);
  background: rgba(2, 6, 23, 0.80) !important;
  border-bottom: 1px solid rgba(148,163,184,0.14) !important;
}

.navbar-brand, h1, h2, h3, h4 { letter-spacing: 0.02em; }

.card, .panel {
  background: linear-gradient(145deg, rgba(15,23,42,0.92), rgba(10,15,26,0.95));
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.45), inset 0 1px 0 rgba(255,255,255,0.03);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.card:hover, .panel:hover { transform: translateY(-2px); border-color: rgba(56,189,248,0.35); box-shadow: 0 24px 60px rgba(14,165,233,0.12), 0 18px 45px rgba(15,23,42,0.45); }

.badge-soft {
  background: linear-gradient(135deg, rgba(56,189,248,0.14), rgba(129,140,248,0.10));
  color: #d7f3ff;
  border: 1px solid rgba(56,189,248,0.25);
  box-shadow: 0 8px 18px rgba(56,189,248,0.08);
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #6366f1 70%, #8b5cf6);
  border: 0;
  box-shadow: 0 12px 24px rgba(56,189,248,0.18);
}
.btn-primary:hover { filter: saturate(1.08); transform: translateY(-1px); }
.btn-outline-light, .btn-outline-info { color: #eff6ff; border-color: rgba(148,163,184,0.25); }

.form-control, .form-select {
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  border-color: rgba(148,163,184,0.25);
  border-radius: 12px;
}
.form-control:focus, .form-select:focus {
  background: rgba(15, 23, 42, 1);
  color: #fff;
  border-color: rgba(56,189,248,0.55);
  box-shadow: 0 0 0 0.18rem rgba(56,189,248,0.18);
}
.form-control::placeholder { color: #94a3b8; }

.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(56,189,248,0.18), transparent 18%),
    radial-gradient(circle at top right, rgba(129,140,248,0.18), transparent 20%),
    linear-gradient(135deg, rgba(15,23,42,0.98), rgba(17,24,39,0.96));
  border: 1px solid rgba(148,163,184,0.18);
  box-shadow: 0 26px 60px rgba(15,23,42,0.45), inset 0 1px 0 rgba(255,255,255,0.04);
}
.hero-banner::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -40px;
  top: -40px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56,189,248,0.12), rgba(56,189,248,0));
  filter: blur(10px);
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .7rem;
  margin: .25rem .25rem .25rem 0;
  background: rgba(17,24,39,0.88);
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 999px;
  color: #dbeafe;
  box-shadow: 0 8px 18px rgba(2,6,23,0.25);
}

.profile-card {
  background: linear-gradient(145deg, rgba(15,23,42,0.98), rgba(2,6,23,0.98));
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(15,23,42,0.45);
}

main.theme-corporate .profile-card,
main.theme-corporate .card { border-color: rgba(56,189,248,0.22); }
main.theme-luxury .profile-card,
main.theme-luxury .card { border-color: rgba(251,191,36,0.18); }
main.theme-minimal .profile-card,
main.theme-minimal .card { border-color: rgba(226,232,240,0.16); }
main.theme-dark .profile-card,
main.theme-dark .card { border-color: rgba(56,189,248,0.24); }

main[class*="theme-"] .btn-primary {
  background: linear-gradient(135deg, var(--theme-accent), var(--theme-accent-2));
  border: 0;
}

main[class*="theme-"] .badge-soft,
main[class*="theme-"] .feature-chip {
  border-color: rgba(255,255,255,0.14);
}

.stat-card {
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(17,24,39,0.95), rgba(30,41,59,0.95));
  border: 1px solid rgba(148,163,184,0.18);
}

.cta-btn {
  background: linear-gradient(135deg, rgba(56,189,248,0.14), rgba(129,140,248,0.18));
  border: 1px solid rgba(56,189,248,0.35);
  color: #eff6ff;
}

.cta-btn:hover {
  color: #fff;
  border-color: rgba(56,189,248,0.55);
}

.alert-warning {
  background: rgba(251,191,36,0.12);
  border: 1px solid rgba(251,191,36,0.25);
  color: #fff3c4;
}

.small-muted { color: #e5eefc !important; font-size: 0.95rem; }

@keyframes floaty {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.floating-card { animation: floaty 4s ease-in-out infinite; }
