:root {
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --primary-soft: #dbeafe;
  --primary-deep: #0f172a;

  --ink-900: #0f172a;
  --ink-800: #172033;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;

  --line: #e2e8f0;
  --line-strong: #cbd5e1;

  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-tint: #eff6ff;

  --success-soft: #ecfdf5;
  --success: #059669;
  --danger-soft: #fef2f2;
  --danger: #dc2626;

  --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 20px 60px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 28px 90px rgba(37, 99, 235, 0.12);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
}

/* =========================
   Base
========================= */

html,
body {
  min-height: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink-800);
  line-height: 1.55;
  background:
    radial-gradient(circle at top left, #f7fbff 0%, #eef4ff 32%, #f8fbff 70%, #ffffff 100%);
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.text-muted {
  color: var(--ink-500) !important;
}

::selection {
  background: rgba(37, 99, 235, 0.16);
}

/* =========================
   Global modern background
========================= */

.marketing-page,
.auth-page {
  position: relative;
  overflow-x: hidden;
}

.marketing-bg,
.auth-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
}

.bg-glow-a {
  width: 420px;
  height: 420px;
  top: -60px;
  left: -80px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.25) 0%, rgba(96, 165, 250, 0) 70%);
}

.bg-glow-b {
  width: 520px;
  height: 520px;
  right: -120px;
  top: 120px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0) 72%);
}

.bg-glow-c {
  width: 440px;
  height: 440px;
  right: -100px;
  bottom: 40px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.14) 0%, rgba(14, 165, 233, 0) 72%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.09) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), rgba(0,0,0,.15));
}

/* =========================
   Page structure
========================= */

.marketing-wrap,
.auth-wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 28px 0 40px;
}

.marketing-topbar,
.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 22px;
}

.brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
  font-weight: 600;
}

.brand-mini img {
  width: 18px;
  height: 18px;
}

.brand-mini-dark {
  color: var(--ink-800);
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(203, 213, 225, 0.85);
}

.hero-stage,
.auth-stage {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
}

/* =========================
   Landing page panels
========================= */

.hero-panel-main {
  height: 100%;
  padding: 42px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 25px 80px rgba(15, 23, 42, 0.28);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-panel-main::before {
  content: "";
  position: absolute;
  right: -100px;
  top: -120px;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.28) 0%, rgba(96, 165, 250, 0) 72%);
}

.hero-chip,
.auth-showcase-chip,
.auth-form-kicker,
.side-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-chip {
  background: rgba(219, 234, 254, 0.14);
  color: #bfdbfe;
  border: 1px solid rgba(191, 219, 254, 0.18);
  margin-bottom: 20px;
}

.hero-logo-wrap {
  margin-bottom: 18px;
}

.hero-logo-main {
  width: 180px;
  max-width: 100%;
  filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.14));
}

.hero-heading {
  font-size: clamp(2.5rem, 4vw, 4.3rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
  color: #ffffff;
}

.hero-copy {
  max-width: 640px;
  font-size: 1.06rem;
  color: rgba(226, 232, 240, 0.86);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-btn-primary,
.modern-submit-btn {
  min-height: 56px;
  border-radius: 16px;
  padding: 0 22px;
  font-weight: 700;
  font-size: 1rem;
}

.hero-btn-secondary {
  min-height: 56px;
  border-radius: 16px;
  padding: 0 22px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  background: rgba(255,255,255,0.04);
}

.hero-btn-secondary:hover {
  color: #fff;
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.30);
}

.hero-feature-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hero-feature-box {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.10);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  flex-shrink: 0;
}

.hero-feature-box h3 {
  margin: 2px 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.hero-feature-box p {
  margin: 0;
  color: rgba(226, 232, 240, 0.76);
  font-size: 0.93rem;
}

.hero-panel-side {
  height: 100%;
  padding: 34px;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(203, 213, 225, 0.85);
  box-shadow: var(--shadow-md);
}

.side-panel-header h2 {
  margin: 10px 0 10px;
  font-size: 2rem;
  line-height: 1.02;
  font-weight: 800;
  color: var(--ink-900);
}

.side-panel-header p {
  margin: 0 0 24px;
  color: var(--ink-500);
}

.side-kicker {
  background: var(--surface-tint);
  color: var(--primary-strong);
}

.feature-stack {
  display: grid;
  gap: 14px;
}

.feature-stack-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--line);
}

.feature-stack-no {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
  flex-shrink: 0;
}

.feature-stack-content h3 {
  margin: 2px 0 6px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink-900);
}

.feature-stack-content p {
  margin: 0;
  color: var(--ink-500);
}

.side-highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.side-stat-card {
  padding: 18px;
  border-radius: 20px;
  background: #f8fbff;
  border: 1px solid var(--line);
}

.side-stat-card span {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-strong);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.side-stat-card strong {
  display: block;
  line-height: 1.35;
  color: var(--ink-900);
  font-size: 1rem;
}

/* =========================
   Login page
========================= */

.auth-showcase-panel {
  padding: 38px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(155deg, rgba(255,255,255,0.92), rgba(248,250,252,0.92));
  border: 1px solid rgba(203, 213, 225, 0.85);
  box-shadow: var(--shadow-md);
  height: 100%;
}

.auth-showcase-chip {
  background: var(--surface-tint);
  color: var(--primary-strong);
  margin-bottom: 18px;
}

.auth-showcase-logo {
  width: 190px;
  margin-bottom: 20px;
}

.auth-showcase-title {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 3.4vw, 3.5rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink-900);
}

.auth-showcase-copy {
  margin: 0 0 26px;
  max-width: 560px;
  font-size: 1.04rem;
  color: var(--ink-500);
}

.auth-benefits {
  display: grid;
  gap: 16px;
}

.auth-benefit {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.auth-benefit:first-child {
  border-top: 0;
  padding-top: 0;
}

.auth-benefit-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--success-soft);
  color: var(--success);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.auth-benefit strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-900);
  font-size: 1rem;
  font-weight: 700;
}

.auth-benefit p {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.95rem;
}

.auth-form-panel {
  max-width: 520px;
  margin-left: auto;
  padding: 34px;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: var(--shadow-lg);
}

.auth-form-head h2 {
  margin: 10px 0 10px;
  font-size: 2rem;
  line-height: 1.02;
  font-weight: 800;
  color: var(--ink-900);
}

.auth-form-head p {
  margin: 0 0 24px;
  color: var(--ink-500);
}

.auth-form-kicker {
  background: var(--surface-tint);
  color: var(--primary-strong);
}

.modern-auth-form .form-label {
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: 8px;
}

.modern-input,
.form-control,
.form-select {
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--ink-900);
  font-size: 0.98rem;
  padding-left: 16px;
  padding-right: 16px;
}

.modern-input::placeholder,
.form-control::placeholder {
  color: #94a3b8;
}

.modern-input:focus,
.form-control:focus,
.form-select:focus {
  background: #ffffff;
  border-color: #93c5fd;
  box-shadow: 0 0 0 0.24rem rgba(37, 99, 235, 0.12);
}

.modern-ghost-btn {
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink-900);
  font-weight: 700;
}

.modern-ghost-btn:hover {
  background: #f8fafc;
  color: var(--ink-900);
  border-color: var(--line-strong);
}

.auth-form-tip {
  margin-top: 18px;
  color: var(--ink-500);
  font-size: 0.92rem;
}

.modern-alert {
  border-radius: 16px;
  border: 1px solid rgba(220, 38, 38, 0.14);
  background: var(--danger-soft);
  color: var(--danger);
}

/* =========================
   Generic site styling
========================= */

.navbar {
  background: linear-gradient(90deg, var(--primary), var(--primary-strong));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.navbar .navbar-brand,
.navbar .nav-link {
  color: #fff !important;
  font-weight: 500;
}

.navbar .nav-link:hover {
  text-decoration: underline;
}

.navbar-toggler {
  border-color: rgba(255,255,255,0.4);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.card + .card {
  margin-top: 1rem;
}

.card h5,
.card h6 {
  font-weight: 700;
}

.card.stat {
  text-align: center;
}

.card.stat .stat-value {
  font-size: 2rem;
  font-weight: 800;
}

.btn {
  border-radius: 14px;
  font-weight: 700;
  transition: all 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  border-color: transparent;
  transform: translateY(-1px);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: #fff;
}

.btn-outline-secondary {
  color: var(--ink-900);
  border-color: var(--line);
}

.btn-outline-secondary:hover {
  background-color: #eef4ff;
}

.badge {
  border-radius: 999px;
  padding: 0.4em 0.7em;
  font-weight: 600;
}

.badge-soft {
  background-color: var(--primary-soft);
  color: var(--primary-strong);
}

.badge.text-bg-success {
  background-color: #22c55e !important;
}

.badge.text-bg-danger {
  background-color: #ef4444 !important;
}

.badge.text-bg-warning {
  background-color: #f59e0b !important;
}

.badge.text-bg-info {
  background-color: #0ea5e9 !important;
}

.page-title {
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.table {
  margin-bottom: 0;
}

.table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-500);
  border-bottom: 1px solid var(--line);
}

.table tbody tr:hover {
  background-color: #f8fbff;
}

.table td,
.table th {
  vertical-align: middle;
}

.list-group-item {
  border-color: var(--line);
}

.list-group-item:hover {
  background-color: #f8fbff;
}

.form-label {
  font-weight: 600;
}

.container-narrow {
  max-width: 720px;
}

.shadow-soft {
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

img.rounded-thumb {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

/* =========================
   APP SHELL / NAVBAR / DASHBOARDS
========================= */

.app-body {
  background:
    radial-gradient(circle at top left, #f8fbff 0%, #eef4ff 35%, #f8fbff 70%, #ffffff 100%);
  color: #172033;
  min-height: 100vh;
}

.app-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(203, 213, 225, 0.75);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}

.app-navbar-inner {
  padding-top: 12px;
  padding-bottom: 12px;
}

.app-navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #0f172a !important;
  font-weight: 800;
}

.app-navbar-brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  padding: 7px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.35);
}

.app-navbar-brand span {
  display: block;
  line-height: 1.1;
  font-size: 0.98rem;
}

.app-navbar-brand small {
  display: block;
  color: #64748b;
  font-weight: 600;
  font-size: 0.75rem;
  margin-top: 2px;
}

.app-navbar .nav-link {
  color: #334155 !important;
  font-weight: 700;
  padding: 10px 14px !important;
  border-radius: 12px;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link.active {
  color: #1d4ed8 !important;
  background: #eff6ff;
}

.app-navbar-links {
  gap: 4px;
  margin-left: 24px;
}

.app-navbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.app-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  color: #0f172a;
}

.app-user-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.app-logout-btn {
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid #dbe3ef;
  color: #0f172a;
}

.app-logout-btn:hover {
  background: #f8fafc;
  color: #0f172a;
}

.app-navbar-toggler {
  border-radius: 12px;
  border-color: #dbe3ef;
}

.app-dropdown-menu {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.10);
  padding: 10px;
}

.app-dropdown-menu .dropdown-item {
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
}

.app-dropdown-menu .dropdown-item:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.app-page-shell {
  padding: 24px 0 40px;
}

.app-main {
  min-height: calc(100vh - 100px);
}

.dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 22px;
  padding: 34px;
  border-radius: 30px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.16);
}

.dashboard-hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 72%);
}

.dashboard-hero-admin {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #1d4ed8 100%);
}

.dashboard-hero-staff {
  background: linear-gradient(135deg, #0f172a 0%, #1f3b68 45%, #0ea5e9 100%);
}

.dashboard-hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
}

.dashboard-hero-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
  color: #dbeafe;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.dashboard-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.dashboard-hero p {
  margin: 0;
  max-width: 720px;
  font-size: 1.02rem;
  color: rgba(255,255,255,0.84);
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.dashboard-hero-actions .btn {
  min-height: 50px;
  border-radius: 14px;
  padding: 0 18px;
}

.dashboard-hero-side {
  position: relative;
  z-index: 2;
  width: 280px;
  display: grid;
  gap: 14px;
}

.dashboard-mini-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 22px;
  padding: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dashboard-mini-card span {
  display: block;
  color: rgba(226, 232, 240, 0.86);
  font-size: 0.86rem;
  margin-bottom: 8px;
}

.dashboard-mini-card strong {
  display: block;
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 800;
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.metric-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.metric-card-label {
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-card-value {
  margin-top: 8px;
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 800;
  color: #0f172a;
}

.metric-card-meta {
  margin-top: 10px;
  color: #64748b;
  font-size: 0.92rem;
}

.panel-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid #e2e8f0;
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.06);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.panel-head.compact {
  margin-bottom: 16px;
}

.panel-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.panel-head h2 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.05;
  font-weight: 800;
  color: #0f172a;
}

.panel-head p {
  margin: 10px 0 0;
  color: #64748b;
}

.panel-note {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

.modern-search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.modern-collapse-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px 18px;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
}

.modern-collapse-toggle:hover {
  background: #f1f5f9;
}

.modern-collapse-hint {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
}

.notification-list-modern {
  display: grid;
  gap: 14px;
}

.notification-card-modern {
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.notification-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.notification-card-top h3 {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 700;
  color: #0f172a;
}

.notification-body {
  margin: 12px 0;
  color: #475569;
}

.notification-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.notification-meta {
  color: #64748b;
  font-size: 0.9rem;
}

.action-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.action-tile-grid.single-column {
  grid-template-columns: 1fr;
}

.action-tile {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #e2e8f0;
  color: #0f172a;
  transition: all 0.18s ease;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.action-tile:hover {
  transform: translateY(-2px);
  border-color: #c7d9f8;
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.10);
  color: #0f172a;
}

.large-tile {
  min-height: 100%;
}

.action-tile-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.action-tile h3 {
  margin: 2px 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.action-tile p {
  margin: 0;
  color: #64748b;
  font-size: 0.93rem;
}

.action-stack-buttons {
  display: grid;
  gap: 10px;
}

.list-action-group {
  display: grid;
  gap: 10px;
}

.list-action-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #f8fafc;
  color: #0f172a;
  transition: all 0.18s ease;
}

.list-action-item:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.list-action-item span {
  font-weight: 700;
}

.list-action-item small {
  color: #64748b;
  font-size: 0.9rem;
}

.empty-state-box {
  border: 1px dashed #cbd5e1;
  border-radius: 20px;
  padding: 24px;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
}

.modern-table thead th {
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.modern-table tbody tr {
  border-color: #eef2f7;
}

.modern-table tbody tr:hover {
  background: #f8fbff;
}

/* =========================
   Responsive
========================= */

@media (max-width: 1199.98px) {
  .dashboard-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-hero {
    flex-direction: column;
  }

  .dashboard-hero-side {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .hero-stage,
  .auth-stage {
    min-height: auto;
  }

  .hero-panel-main,
  .hero-panel-side,
  .auth-showcase-panel,
  .auth-form-panel {
    padding: 26px;
    border-radius: 26px;
  }

  .hero-feature-row,
  .side-highlight-grid {
    grid-template-columns: 1fr;
  }

  .auth-form-panel {
    margin-left: 0;
    max-width: 100%;
  }

  .app-navbar-links {
    margin-left: 0;
    padding-top: 14px;
  }

  .app-navbar-user {
    margin-top: 14px;
    flex-wrap: wrap;
  }

  .modern-search-bar {
    grid-template-columns: 1fr;
  }

  .action-tile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .dashboard-stats-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    padding: 24px;
    border-radius: 24px;
  }

  .dashboard-hero-side {
    grid-template-columns: 1fr;
  }

  .panel-card,
  .metric-card {
    border-radius: 22px;
  }

  .notification-footer-row,
  .notification-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-user-pill {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .marketing-wrap,
  .auth-wrap {
    padding: 16px 0 28px;
  }

  .hero-panel-main,
  .hero-panel-side,
  .auth-showcase-panel,
  .auth-form-panel {
    padding: 20px;
  }

  .hero-heading,
  .auth-showcase-title {
    font-size: 2.1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-btn-primary,
  .hero-btn-secondary,
  .modern-submit-btn,
  .modern-ghost-btn {
    width: 100%;
  }

  .brand-mini {
    font-size: 0.84rem;
  }
}

/* =========================
   Print
========================= */

@media print {
  .navbar,
  .btn,
  .no-print,
  .marketing-bg,
  .auth-bg {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .card,
  .hero-panel-main,
  .hero-panel-side,
  .auth-showcase-panel,
  .auth-form-panel,
  .panel-card,
  .metric-card {
    box-shadow: none;
    border: 1px solid #ddd;
    background: #fff;
    color: #000;
  }
}

/* =========================================================
   2026-04 Minimal UI Refresh
   Goal: modern, minimal, user-friendly visual layer
   Safe CSS-only refresh to preserve workflows and markup.
========================================================= */
:root {
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --primary-soft: #e8f0ff;
  --primary-deep: #0f172a;

  --ink-900: #0f172a;
  --ink-800: #172033;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;

  --line: #e5e7eb;
  --line-strong: #d6dbe4;

  --surface: rgba(255, 255, 255, 0.94);
  --surface-soft: #f8fafc;
  --surface-tint: #f3f6fb;

  --success-soft: #edfdf3;
  --success: #15803d;
  --danger-soft: #fff1f2;
  --danger: #dc2626;

  --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 18px 50px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 26px 80px rgba(15, 23, 42, 0.10);

  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
}

body {
  color: var(--ink-800);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.06) 0%, rgba(37, 99, 235, 0) 28%),
    radial-gradient(circle at top right, rgba(15, 23, 42, 0.03) 0%, rgba(15, 23, 42, 0) 24%),
    linear-gradient(180deg, #f7f9fc 0%, #f3f6fb 55%, #eef2f7 100%);
}

.bg-grid {
  opacity: 0.28;
}

.brand-mini {
  color: var(--ink-800);
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(214, 219, 228, 0.9);
  box-shadow: var(--shadow-sm);
}

.hero-panel-main,
.hero-panel-side,
.auth-showcase-panel,
.auth-form-panel {
  border: 1px solid rgba(214, 219, 228, 0.8);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.hero-panel-main,
.auth-showcase-panel {
  color: #fff;
  background: linear-gradient(135deg, #111827 0%, #1e293b 100%);
}

.hero-panel-side,
.auth-form-panel {
  background: rgba(255,255,255,0.92);
}

.hero-feature-box,
.side-stat-card,
.auth-benefit,
.auth-contact-card,
.hero-stat-chip,
.auth-support-card {
  border: 1px solid rgba(214, 219, 228, 0.8);
  background: rgba(255,255,255,0.88);
  box-shadow: var(--shadow-sm);
}

.hero-btn-primary,
.auth-submit-btn,
.modern-submit-btn {
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.18);
}

.card,
.panel-card,
.metric-card,
.info-card,
.app-card,
.empty-state-box,
.notification-card-modern {
  border-radius: 24px;
}

.table,
.modern-table {
  --bs-table-bg: transparent;
}
