:root {
  --bg: #0f1218;
  --bg-2: #111827;
  --panel: #151b24;
  --panel-2: #1b2330;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e6e9ef;
  --muted: #9aa4b2;
  --accent: #22d3ee;
  --accent-2: #a78bfa;
  --accent-3: #f59e0b;
  --danger: #f87171;
  --success: #34d399;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(1200px 600px at 15% -10%, rgba(34, 211, 238, 0.18), transparent 60%),
              radial-gradient(1000px 520px at 90% 0%, rgba(167, 139, 250, 0.18), transparent 65%),
              linear-gradient(180deg, #0b0f15, #0f1218 40%, #0b0f15 100%);
  font-family: "Manrope", "Segoe UI", sans-serif;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.container {
  max-width: 1100px;
}

.app-shell {
  position: relative;
  overflow-x: hidden;
}

.glow-orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.25;
  z-index: 0;
}

.glow-orb.orb-1 {
  background: radial-gradient(circle, #22d3ee, transparent 65%);
  top: -120px;
  left: -140px;
}

.glow-orb.orb-2 {
  background: radial-gradient(circle, #a78bfa, transparent 65%);
  top: 120px;
  right: -120px;
}

.main-wrapper {
  position: relative;
  z-index: 1;
  padding-bottom: 80px;
}

.navbar {
  background: rgba(15, 18, 24, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.brand span {
  color: var(--accent);
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.95rem;
}

.nav-pill:hover {
  border-color: rgba(34, 211, 238, 0.5);
  color: var(--accent);
}

.hero {
  margin-top: 40px;
  margin-bottom: 32px;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(167, 139, 250, 0.12));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero h1 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.hero p {
  color: var(--muted);
  margin: 0;
}

.card-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card-panel + .card-panel {
  margin-top: 24px;
}


.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.tag.success {
  color: var(--success);
  border-color: rgba(52, 211, 153, 0.4);
}

.tag.muted {
  color: var(--muted);
}

.tag.warn {
  color: var(--accent-3);
  border-color: rgba(245, 158, 11, 0.4);
}

.btn-primary,
.btn-outline,
.btn-danger,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #22d3ee, #38bdf8);
  color: #0b0f15;
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(34, 211, 238, 0.35);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: rgba(167, 139, 250, 0.6);
  color: var(--accent-2);
}

.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
}

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

.btn-danger {
  background: rgba(248, 113, 113, 0.15);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.btn-danger:hover {
  color: #fff;
  border-color: rgba(248, 113, 113, 0.8);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.form-control,
.form-select,
.form-check-input {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

input,
select,
textarea {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

select option,
select optgroup {
  color: #fff;
  background: var(--panel-2);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: none;
  outline: none;
}

.form-label {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-hint {
  color: var(--muted);
  font-size: 0.85rem;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.table-shell {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.table-shell table {
  margin: 0;
  color: var(--text);
}

.table-shell thead {
  background: rgba(255, 255, 255, 0.05);
}

.table-shell th,
.table-shell td {
  border-color: rgba(255, 255, 255, 0.05) !important;
}

.alert-banner {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(34, 211, 238, 0.08);
  color: var(--text);
  margin-bottom: 16px;
}

.alert-banner.success {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.3);
}

.alert-banner.warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}

.alert-banner.error {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.4);
}

.auth-shell {
  max-width: 460px;
  margin: 0 auto;
}

.auth-shell .helptext,
.auth-shell .helptext *,
.auth-shell .form-text,
.auth-shell .form-text *,
.auth-shell .text-muted,
.auth-shell .text-muted *,
.auth-shell [id^="hint_"],
.auth-shell [id^="hint_"] *,
.auth-shell .invalid-feedback,
.auth-shell .invalid-feedback *,
.auth-shell .form-text.text-muted,
.auth-shell ul,
.auth-shell li {
  color: var(--text) !important;
}

.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--single {
  height: calc(1.5em + 0.75rem + 2px) !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--text) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--text) !important;
  line-height: calc(1.5em + 0.75rem) !important;
  padding-left: 0.75rem;
  padding-right: 2rem;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--muted);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: calc(1.5em + 0.75rem + 2px) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--muted) transparent transparent transparent !important;
}

.select2-dropdown {
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border) !important;
  background: var(--panel-2) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border-radius: 10px;
  border: 1px solid var(--border) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--text) !important;
}

.select2-container--default .select2-results__option {
  color: var(--text);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: rgba(34, 211, 238, 0.25);
  color: #fff;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: none;
}

@media (max-width: 768px) {
  .hero {
    padding: 22px;
  }

  .navbar .nav-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
