:root {
  --brand-navy: #003366;
  --brand-orange: #e67e22;
  --brand-orange-dark: #c76613;
  --bg-soft: #eef3f8;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-border: rgba(255, 255, 255, 0.45);
  --text-main: #15263a;
  --text-muted: #607085;
  --admin-bg: #081522;
  --admin-surface: rgba(11, 30, 47, 0.9);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(230, 126, 34, 0.16), transparent 28%),
    linear-gradient(135deg, #f4f7fb 0%, #e7edf5 48%, #dbe5f0 100%);
}

.auth-body,
.app-body {
  min-height: 100vh;
}

.auth-card,
.onboarding-card,
.glass-card {
  border: 1px solid var(--surface-border);
  border-radius: 28px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  background: var(--surface);
}

.brand-panel {
  padding: 2.5rem;
  background:
    linear-gradient(180deg, rgba(0, 51, 102, 0.94), rgba(0, 35, 70, 0.98)),
    var(--brand-navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
}

.section-kicker {
  color: var(--brand-orange);
  margin-bottom: 0.65rem;
}

.brand-title {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  margin: 0 0 1rem;
  font-weight: 800;
}

.brand-copy,
.text-secondary {
  color: var(--text-muted) !important;
}

.brand-panel .brand-copy {
  color: rgba(255, 255, 255, 0.74) !important;
}

.form-control,
.form-select,
textarea.form-control {
  border-radius: 16px;
  border-color: rgba(0, 51, 102, 0.12);
  padding: 0.9rem 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(230, 126, 34, 0.6);
  box-shadow: 0 0 0 0.25rem rgba(230, 126, 34, 0.15);
}

.btn-accent {
  background: linear-gradient(135deg, var(--brand-orange), #f39c12);
  border: 0;
  border-radius: 18px;
  color: #fff;
  font-weight: 700;
}

.btn-accent:hover,
.btn-accent:focus {
  background: linear-gradient(135deg, var(--brand-orange-dark), #dd8a0d);
  color: #fff;
}

.btn-outline-primary {
  color: var(--brand-navy);
  border-color: rgba(0, 51, 102, 0.3);
}

.btn-outline-primary:hover {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
}

.topbar,
.admin-topbar {
  background: linear-gradient(180deg, rgba(0, 51, 102, 0.96), rgba(0, 51, 102, 0.78));
  backdrop-filter: blur(10px);
}

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

.data-grid,
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.status-card,
.quote-card,
.address-card,
.timeline-card,
.confirmation-card {
  border-radius: 22px;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 51, 102, 0.08);
}

.status-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.quote-card strong,
.status-card strong {
  display: block;
  font-size: 1.3rem;
}

.admin-body {
  min-height: 100vh;
  color: #eff5fb;
  background:
    radial-gradient(circle at top right, rgba(230, 126, 34, 0.14), transparent 24%),
    linear-gradient(160deg, #07111d 0%, #0d1f32 44%, #091521 100%);
}

.admin-shell {
  border-radius: 28px;
  background: var(--admin-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.admin-table {
  --bs-table-bg: transparent;
  --bs-table-border-color: rgba(255, 255, 255, 0.08);
  --bs-table-color: #eff5fb;
}

.admin-table thead th {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.admin-chip {
  min-width: 120px;
  border-radius: 20px;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.admin-chip span {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.admin-chip strong {
  font-size: 1.75rem;
}

.notification-list {
  display: grid;
  gap: 0.9rem;
}

.notification-item {
  border-radius: 18px;
  padding: 1rem 1.1rem;
  background: rgba(0, 51, 102, 0.04);
  border: 1px solid rgba(0, 51, 102, 0.08);
}

.notification-item p {
  color: var(--text-muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-pill.pending {
  background: rgba(230, 126, 34, 0.16);
  color: #ffbe84;
}

.status-pill.active {
  background: rgba(46, 204, 113, 0.14);
  color: #7ef0a8;
}

.timeline-card {
  display: grid;
  gap: 1rem;
}

.timeline-step {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(0, 51, 102, 0.04);
}

.timeline-step span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 51, 102, 0.1);
  color: var(--brand-navy);
  font-weight: 800;
}

.timeline-step strong,
.timeline-step small {
  display: block;
}

.timeline-step small {
  color: var(--text-muted);
}

.timeline-step.is-active {
  background: rgba(230, 126, 34, 0.12);
}

.timeline-step.is-active span {
  background: var(--brand-orange);
  color: #fff;
}

.confirmation-shell {
  overflow: visible;
}

.confirmation-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-main);
}

.confirmation-list li + li {
  margin-top: 0.7rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
}

.table-input {
  min-width: 130px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.table-input:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 991.98px) {
  .brand-panel {
    min-height: 220px;
  }
}

@media (max-width: 767.98px) {
  .auth-card,
  .onboarding-card,
  .glass-card,
  .admin-shell {
    border-radius: 22px;
  }

  .brand-panel {
    padding: 2rem;
  }

  .topbar .container,
  .admin-topbar .container {
    gap: 1rem;
  }
}
