/* ============================================================
   HPGVS — Hotel & Police Guest Verification System
   app.css  |  Full design system  |  v2.0
   ============================================================ */

/* ── 1. CSS CUSTOM PROPERTIES ──────────────────────────────── */
:root {
  --ink: #1a2332;
  --muted: #64748b;
  --line: #e2e8f0;
  --canvas: #f1f5f9;
  --white: #ffffff;
  --r: 16px;
  --r-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.18), 0 8px 20px rgba(0,0,0,.08);

  /* ── Police: Assam Police ── */
  --police-dark:   #071e3d;
  --police-mid:    #1a4480;
  --police-light:  #2563eb;
  --police-accent: #c8a850;
  --police-accent-bg: rgba(200,168,80,.12);

  /* ── Hotel: Warm hospitality ── */
  --hotel-dark:   #052e2e;
  --hotel-mid:    #0d6e6e;
  --hotel-light:  #14b8a6;
  --hotel-accent: #d4913a;
  --hotel-accent-bg: rgba(212,145,58,.12);

  /* ── Admin: Slate authority ── */
  --admin-dark:   #0f172a;
  --admin-mid:    #1e293b;
  --admin-accent: #6366f1;
  --admin-accent-bg: rgba(99,102,241,.12);

  /* ── Semantic ── */
  --success: #059669;
  --success-bg: #d1fae5;
  --warning: #d97706;
  --warning-bg: #fef3c7;
  --danger:  #dc2626;
  --danger-bg: #fee2e2;
  --info:    #2563eb;
  --info-bg: #dbeafe;

  /* ── Sidebar dimensions ── */
  --sb-w: 260px;

  /* ── Transitions ── */
  --ease: cubic-bezier(.4,0,.2,1);
  --dur: 200ms;
}

/* ── 2. RESET & BASE ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* Hide the browser scrollbar while keeping the page scrollable. */
html, body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; }

h1 { font-size: 2rem;   font-weight: 800; line-height: 1.2; }
h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.15rem;font-weight: 700; }
h4 { font-size: 1rem;   font-weight: 600; }
p  { color: var(--muted); }

/* ── 3. APP SHELL ───────────────────────────────────────────── */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ── 4. SIDEBAR ─────────────────────────────────────────────── */
.sidebar {
  width: var(--sb-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  /* default fallback */
  background: linear-gradient(170deg, #0f172a 0%, #1e293b 100%);
  transition: transform var(--dur) var(--ease);
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }

/* scrollbar track invisible */
.sidebar::after {
  content: '';
  display: block;
  height: 48px; /* bottom padding space */
}

/* ── Role-based sidebar gradients ── */
.role-police    .sidebar { background: #0f172a; }
.role-hotel     .sidebar { background: #0f172a; }
.role-super_admin .sidebar { background: linear-gradient(170deg, #0f172a 0%, #1e293b 60%, #252f42 100%); }

/* Subtle texture overlay */
.sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(255,255,255,.04) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 90%, rgba(255,255,255,.03) 0%, transparent 50%);
  pointer-events: none;
}

/* ── Sidebar brand ── */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 16px;
  color: #fff;
  text-decoration: none;
  transition: opacity var(--dur);
}
.sidebar-brand:hover { opacity: .9; }

.brand-glyph {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

.role-police    .brand-glyph { background: #2563eb; }
.role-hotel     .brand-glyph { background: #2563eb; }
.role-super_admin .brand-glyph { background: linear-gradient(135deg, #6366f1, #4338ca); }
.sidebar-brand  .brand-glyph { background: linear-gradient(135deg, #6366f1, #4338ca); }

.brand-glyph.brand-logo-wrap,
.sidebar-brand .brand-glyph.brand-logo-wrap {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  overflow: visible;
}
.brand-logo-img {
  width: 100%;
  height: 100%;
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}

.sidebar-brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.sidebar-brand strong,
.sidebar-brand > span:last-child {
  font-size: .9rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .02em;
}
.sidebar-brand small {
  font-size: .68rem;
  font-weight: 400;
  color: rgba(255,255,255,.55);
  letter-spacing: .01em;
  margin-top: 1px;
}

/* ── Profile card ── */
.profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 14px 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
}

.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  font-weight: 800;
  flex-shrink: 0;
  color: #fff;
  border: 2px solid rgba(255,255,255,.25);
}

.role-police    .avatar { background: linear-gradient(135deg, #1a4480, #2563eb); }
.role-hotel     .avatar { background: linear-gradient(135deg, #0d6e6e, #14b8a6); }
.role-super_admin .avatar { background: linear-gradient(135deg, #4338ca, #6366f1); }

.profile-card > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.profile-card strong {
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-card small {
  font-size: .67rem;
  font-weight: 500;
  color: rgba(255,255,255,.5);
  text-transform: capitalize;
  margin-top: 1px;
}

/* ── Sidebar nav ── */
.side-nav {
  flex: 1;
  padding: 0 10px;
}

.nav-label {
  display: block;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: rgba(255,255,255,.35);
  padding: 2px 10px 8px;
  margin-top: 4px;
}

.side-nav a,
.side-nav .nav-link-disabled {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255,255,255,.65);
  font-size: .84rem;
  font-weight: 500;
  margin-bottom: 2px;
  transition: all var(--dur) var(--ease);
  position: relative;
  border-left: 3px solid transparent;
}
.side-nav .nav-link-disabled {
  opacity: .42;
  cursor: not-allowed;
  user-select: none;
}
.side-nav a i,
.side-nav .nav-link-disabled i {
  font-style: normal;
  font-size: 1rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease);
}
.side-nav a .nav-copy { min-width: 0; }
.nav-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: auto; padding: 0 5px; border-radius: 999px; color: #fff; background: #dc2626; font-size: .65rem; font-weight: 800; line-height: 1; }
.side-nav a.active .nav-badge { background: #fff; color: #1d4ed8; }
.side-nav a:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-left-color: rgba(255,255,255,.3);
}
.side-nav a:hover i { transform: scale(1.1); }

/* Active states per role */
.role-police .side-nav a.active {
  background: rgba(37,99,235,.24);
  color: #fff;
  border-left: none;
  font-weight: 700;
  box-shadow: inset 3px 0 #2563eb;
}
.role-hotel .side-nav a.active {
  background: rgba(37,99,235,.24);
  color: #fff;
  border-left: none;
  font-weight: 700;
  box-shadow: inset 3px 0 #2563eb;
}
.role-super_admin .side-nav a.active {
  background: rgba(99,102,241,.18);
  color: #a5b4fc;
  border-left-color: #6366f1;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(99,102,241,.25);
}

/* ── Sidebar footer ── */
.sidebar-footer {
  margin: 12px 14px 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.07);
  font-size: .72rem;
  color: rgba(255,255,255,.45);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-footer strong {
  color: rgba(255,255,255,.7);
  font-size: .75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-footer small { font-size: .66rem; }

.secure-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px rgba(52,211,153,.7);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

/* ── 5. WORKSPACE ───────────────────────────────────────────── */
.workspace {
  flex: 1;
  margin-left: var(--sb-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Workspace header ── */
.workspace-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: rgba(241,245,249,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.workspace-header > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.eyebrow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.workspace-header strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.logout {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  box-shadow: var(--shadow-sm);
}
.logout span { font-size: .9rem; color: var(--muted); }
.logout:hover {
  border-color: var(--danger);
  color: var(--danger);
  box-shadow: 0 4px 12px rgba(220,38,38,.12);
  transform: translateY(-1px);
}

/* Account actions remain available in every authenticated portal header. */
.workspace-header .workspace-actions { display: flex; flex-direction: row; align-items: center; gap: .65rem; flex: 0 0 auto; }
.workspace-header .workspace-actions form { margin: 0; }
.header-bell { position: relative; }
.header-bell summary {
  position: relative; list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.55rem; height: 2.55rem;
  border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--white); color: #334155; box-shadow: var(--shadow-sm);
  transition: all var(--dur) var(--ease);
}
.header-bell summary::-webkit-details-marker { display: none; }
.header-bell summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.header-bell summary:hover, .header-bell[open] summary { color: #1d4ed8; border-color: #93c5fd; background: #eff6ff; }
.header-bell-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: #dc2626; color: #fff;
  font-size: .66rem; font-weight: 800; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.header-bell-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 90;
  width: min(340px, calc(100vw - 24px));
  border: 1px solid #dbe4f0; border-radius: 11px; background: #fff;
  box-shadow: 0 18px 38px rgba(15,23,42,.15); overflow: hidden;
}
.header-bell-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid #e2e8f0; background: #f8fafc;
}
.header-bell-head strong { font-size: .82rem; color: #0f172a; }
.header-bell-head button {
  padding: 0; border: 0; background: transparent; color: #2563eb;
  font-size: .74rem; font-weight: 700; cursor: pointer;
}
.header-bell-head button:hover { text-decoration: underline; }
.header-bell-list { max-height: 310px; overflow-y: auto; }
.header-bell-empty { margin: 0; padding: 24px 16px; text-align: center; color: #64748b; font-size: .8rem; }
.header-bell-item {
  display: grid; gap: 3px; padding: 11px 14px;
  border-bottom: 1px solid #f1f5f9; text-decoration: none; color: inherit;
}
.header-bell-item:last-child { border-bottom: 0; }
.header-bell-item:hover { background: #f8fafc; }
.header-bell-item.is-unread { background: #eff6ff; }
.header-bell-item strong { font-size: .8rem; color: #0f172a; line-height: 1.3; }
.header-bell-item span { font-size: .74rem; color: #475569; line-height: 1.35; }
.header-bell-item time { font-size: .68rem; color: #94a3b8; }
.header-bell-foot {
  display: block; padding: 10px 14px; text-align: center;
  border-top: 1px solid #e2e8f0; background: #f8fafc;
  color: #1d4ed8; font-size: .76rem; font-weight: 700; text-decoration: none;
}
.header-bell-foot:hover { background: #eff6ff; }
.change-password-link {
  display: inline-flex; align-items: center; min-height: 2.45rem; padding: 0 .9rem;
  border: 1.5px solid var(--line); border-radius: 8px; background: var(--white);
  color: #334155; font-size: .8rem; font-weight: 650; box-shadow: var(--shadow-sm);
  transition: all var(--dur) var(--ease);
}
.change-password-link:hover { color: #1d4ed8; border-color: #93c5fd; transform: translateY(-1px); }

/* ── Main content area ── */
.main {
  flex: 1;
  padding: 28px;
}

/* ── 6. METRIC / STAT CARDS ─────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.metric-card {
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 22px 22px 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  border: 1px solid var(--line);
}
.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Left accent bar */
.metric-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
}
.metric-card.accent-police::before { background: linear-gradient(180deg, #c8a850, #1a4480); }
.metric-card.accent-hotel::before  { background: linear-gradient(180deg, #d4913a, #0d6e6e); }
.metric-card.accent-admin::before  { background: linear-gradient(180deg, #6366f1, #1e293b); }
.metric-card.accent-success::before{ background: linear-gradient(180deg, #059669, #34d399); }
.metric-card.accent-danger::before { background: linear-gradient(180deg, #dc2626, #f87171); }
.metric-card.accent-warning::before{ background: linear-gradient(180deg, #d97706, #fbbf24); }
.metric-card.accent-info::before   { background: linear-gradient(180deg, #2563eb, #60a5fa); }

/* Decorative background circle */
.metric-card::after {
  content: '';
  position: absolute;
  right: -18px; bottom: -18px;
  width: 90px; height: 90px;
  border-radius: 50%;
  opacity: .06;
}
.metric-card.accent-police::after { background: #c8a850; }
.metric-card.accent-hotel::after  { background: #d4913a; }
.metric-card.accent-admin::after  { background: #6366f1; }
.metric-card.accent-success::after{ background: #059669; }
.metric-card.accent-danger::after { background: #dc2626; }
.metric-card.accent-warning::after{ background: #d97706; }
.metric-card.accent-info::after   { background: #2563eb; }

.metric-icon {
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  margin-bottom: 4px;
}
.metric-card.accent-police .metric-icon { background: rgba(200,168,80,.12); }
.metric-card.accent-hotel  .metric-icon { background: rgba(212,145,58,.12); }
.metric-card.accent-admin  .metric-icon { background: rgba(99,102,241,.12); }
.metric-card.accent-success .metric-icon { background: rgba(5,150,105,.12); }
.metric-card.accent-danger  .metric-icon { background: rgba(220,38,38,.12); }
.metric-card.accent-warning .metric-icon { background: rgba(217,119,6,.12); }
.metric-card.accent-info    .metric-icon { background: rgba(37,99,235,.12); }

.metric-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}
.metric-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -.02em;
}
.metric-sub {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ── 7. STANDARD CARDS ──────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--r);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: box-shadow var(--dur) var(--ease);
}
.card:hover { box-shadow: var(--shadow-lg); }

.card h2, .card h3 { margin-bottom: 16px; color: var(--ink); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.card-header h2, .card-header h3 { margin-bottom: 0; }

/* ── 8. GRID HELPERS ────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ── 9. HERO SECTION (public) ───────────────────────────────── */
.public-main {
  padding: 0;
  background: var(--canvas);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 40px 80px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #071e3d 0%, #0a2342 35%, #1a4480 70%, #073b3b 100%);
}

/* Decorative background circles */
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,168,80,.2) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -60px;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,110,110,.35) 0%, transparent 70%);
  pointer-events: none;
}

.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(200,168,80,.2);
  border: 1px solid rgba(200,168,80,.4);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #f0d882;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -.03em;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero h1 span {
  background: linear-gradient(90deg, #c8a850, #f0d882);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.08rem;
  color: rgba(255,255,255,.75);
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Feature cards on public page ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding: 40px 40px 20px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--r);
  border: 1px solid var(--line);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 14px;
}

.feature-card.police .feature-icon { background: rgba(200,168,80,.12); }
.feature-card.hotel  .feature-icon { background: rgba(212,145,58,.12); }
.feature-card.admin  .feature-icon { background: rgba(99,102,241,.12); }

.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--ink); }
.feature-card p  { font-size: .88rem; color: var(--muted); line-height: 1.6; }

/* Trust / stats strip */
.trust-strip {
  display: flex;
  gap: 0;
  padding: 28px 40px;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 24px 0;
}
.trust-item {
  flex: 1;
  text-align: center;
  padding: 16px;
  border-right: 1px solid var(--line);
}
.trust-item:last-child { border-right: none; }
.trust-item strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
}
.trust-item span {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 500;
}

/* ── 10. PUBLIC HEADER ──────────────────────────────────────── */
.public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 32px;
  background: rgba(7,30,61,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(200,168,80,.2);
  position: sticky;
  top: 0;
  z-index: 200;
}
.public-header .sidebar-brand { padding: 0; }
.public-header .brand-glyph {
  width: 36px; height: 36px;
  font-size: 17px;
  background: linear-gradient(135deg, #c8a850, #a07830);
}
.public-header .sidebar-brand strong,
.public-header .sidebar-brand > span:last-child { font-size: .82rem; }

.public-header > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.public-link {
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--dur);
  border: 1px solid transparent;
}
.public-link:hover {
  color: #c8a850;
  border-color: rgba(200,168,80,.3);
  background: rgba(200,168,80,.08);
}

/* ── 11. BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: var(--r-sm);
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--dur) var(--ease);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: .01em;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  filter: brightness(1.08);
}
.btn:active {
  transform: translateY(0);
  filter: brightness(.95);
}

/* Primary – role-aware via body class */
.btn:not(.secondary):not(.success):not(.danger):not(.outline):not(.logout) {
  color: #fff;
}
.role-police    .btn:not(.secondary):not(.success):not(.danger):not(.outline):not(.logout),
.role-police    button.btn:not(.secondary):not(.danger) {
  background: linear-gradient(135deg, #1a4480, #2563eb);
}
.role-hotel     .btn:not(.secondary):not(.success):not(.danger):not(.outline):not(.logout),
.role-hotel     button.btn:not(.secondary):not(.danger) {
  background: linear-gradient(135deg, #0d6e6e, #14b8a6);
}
.role-super_admin .btn:not(.secondary):not(.success):not(.danger):not(.outline):not(.logout),
.role-super_admin button.btn:not(.secondary):not(.danger) {
  background: linear-gradient(135deg, #4338ca, #6366f1);
}

/* Public / default primary */
.public-main .btn,
body:not([class*="role-"]) .btn:not(.secondary):not(.outline) {
  background: linear-gradient(135deg, #071e3d, #1a4480);
  color: #fff;
}

/* Secondary */
.btn.secondary {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  border: 1.5px solid rgba(255,255,255,.25);
  box-shadow: none;
}
.btn.secondary:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.4);
}

/* Success */
.btn.success {
  background: linear-gradient(135deg, #047857, #059669);
  color: #fff;
}
/* Danger */
.btn.danger {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  color: #fff;
}
/* Outline */
.btn.outline {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--ink);
  box-shadow: none;
}
.btn.outline:hover {
  border-color: var(--muted);
  background: var(--canvas);
}
/* Small */
.btn.sm { padding: 7px 14px; font-size: .78rem; }
/* Large */
.btn.lg { padding: 13px 28px; font-size: .95rem; }

/* ── 12. FORMS ──────────────────────────────────────────────── */
fieldset { border: none; }

label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
  letter-spacing: .01em;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="search"],
select,
textarea {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--ink);
  font-size: .88rem;
  transition: border-color var(--dur), box-shadow var(--dur);
  outline: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--info);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.role-police input:focus,  .role-police select:focus,  .role-police textarea:focus {
  border-color: #1a4480;
  box-shadow: 0 0 0 3px rgba(26,68,128,.14);
}
.role-hotel  input:focus,  .role-hotel  select:focus,  .role-hotel  textarea:focus {
  border-color: #0d6e6e;
  box-shadow: 0 0 0 3px rgba(13,110,110,.14);
}
.role-super_admin input:focus, .role-super_admin select:focus, .role-super_admin textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.14);
}

input::placeholder, textarea::placeholder { color: #aab4c4; font-size: .84rem; }
select { cursor: pointer; }
textarea { resize: vertical; min-height: 90px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 18px; }
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  align-items: center;
}

.help { font-size: .78rem; color: var(--muted); margin-top: 20px; }
.help a { color: var(--info); text-decoration: underline; text-underline-offset: 2px; }
.muted { color: var(--muted); }

/* ── 13. TABLES ─────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
  background: var(--white);
}

thead { position: sticky; top: 0; z-index: 2; }

th {
  padding: 12px 16px;
  text-align: left;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
.role-police    th { background: rgba(26,68,128,.07); color: #0a2342; }
.role-hotel     th { background: rgba(13,110,110,.07); color: #073b3b; }
.role-super_admin th { background: rgba(99,102,241,.07); color: #1e293b; }
th { background: var(--canvas); color: var(--muted); }

td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: middle;
}

tbody tr { transition: background var(--dur); }
tbody tr:nth-child(even) { background: rgba(241,245,249,.5); }
tbody tr:hover { background: rgba(37,99,235,.04); }
tbody tr:last-child td { border-bottom: none; }

/* ── 14. BADGES ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.4;
}
.badge-active,   .badge.active   { background: #d1fae5; color: #065f46; }
.badge-pending,  .badge.pending  { background: #fef3c7; color: #92400e; }
.badge-rejected, .badge.rejected { background: #fee2e2; color: #991b1b; }
.badge-info,     .badge.info     { background: #dbeafe; color: #1e40af; }
.badge-neutral,  .badge.neutral  { background: var(--canvas); color: var(--muted); border: 1px solid var(--line); }
.badge-police  { background: rgba(200,168,80,.15); color: #7a5c10; }
.badge-hotel   { background: rgba(13,110,110,.12); color: #0d6e6e; }
.badge-admin   { background: rgba(99,102,241,.12); color: #4338ca; }

/* ── 15. NOTICE / ALERTS ────────────────────────────────────── */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-size: .86rem;
  font-weight: 500;
  margin-bottom: 16px;
  border-left: 4px solid;
  line-height: 1.5;
}
.notice.ok,
.notice.success { background: var(--success-bg); color: #064e3b; border-color: var(--success); }
.notice.error,
.notice.danger  { background: var(--danger-bg);  color: #7f1d1d; border-color: var(--danger);  }
.notice.info    { background: var(--info-bg);    color: #1e3a8a; border-color: var(--info);    }
.notice.warning { background: var(--warning-bg); color: #78350f; border-color: var(--warning); }

/* Persistent action-oriented subscription status for Hotel Panel pages. */
.hotel-subscription-alert { display:grid; grid-template-columns:30px minmax(0,1fr) auto; align-items:center; gap:11px; margin:0 0 16px; padding:11px 14px; border:1px solid; border-radius:10px; background:#fff; }
.hotel-subscription-alert-icon { display:grid; place-items:center; width:27px; height:27px; border:1.5px solid currentColor; border-radius:50%; font-size:1rem; font-weight:800; line-height:1; }
.hotel-subscription-alert p { margin:0; color:inherit; font-size:.84rem; font-weight:650; line-height:1.35; }
.hotel-subscription-alert a { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:34px; padding:0 12px; border:1px solid #cbd5e1; border-radius:8px; background:#fff; color:#0f172a; font-size:.8rem; font-weight:750; text-decoration:none; white-space:nowrap; box-shadow:0 1px 2px rgba(15,23,42,.08); transition:background .15s,border-color .15s,transform .15s; }
.hotel-subscription-alert a:hover { transform:translateY(-1px); background:#f8fafc; border-color:#94a3b8; }
.hotel-subscription-alert.tone-danger { color:#b91c1c; border-color:#fecaca; background:#fff7f7; }
.hotel-subscription-alert.tone-warning { color:#92400e; border-color:#fde68a; background:#fffbeb; }
@media (max-width:680px) { .hotel-subscription-alert { grid-template-columns:28px minmax(0,1fr); gap:9px; padding:10px 11px; }.hotel-subscription-alert-icon { width:25px; height:25px; font-size:.9rem; }.hotel-subscription-alert p { font-size:.8rem; }.hotel-subscription-alert a { grid-column:1 / -1; width:100%; } }

/* ── 16. LOGIN CARD ─────────────────────────────────────────── */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: linear-gradient(135deg, #071e3d 0%, #0a2342 50%, #073b3b 100%);
  position: relative;
  overflow: hidden;
}
.login-wrap::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,168,80,.12) 0%, transparent 65%);
}
.login-wrap::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,110,110,.18) 0%, transparent 65%);
}

.login-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 2;
}

.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
  text-align: center;
  gap: 12px;
}
.login-logo-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  background: linear-gradient(135deg, #071e3d, #1a4480);
  box-shadow: 0 8px 24px rgba(7,30,61,.35);
  margin-bottom: 4px;
}
.login-logo h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 2px;
}
.login-logo p {
  font-size: .78rem;
  color: var(--muted);
  margin: 0;
}

/* ── 17. SECTION / PAGE HEADER ──────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.page-header h2 { margin-bottom: 4px; }
.page-header p  { font-size: .85rem; }

/* ── 18. SECTION DIVIDER ────────────────────────────────────── */
.section-title {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 32px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ── 19. CAMERA CARD OVERRIDES ──────────────────────────────── */
/* (camera.css handles most, these are integration styles) */
.camera-card {
  border-color: var(--line);
}

/* ── 20. BOTTOM NAV (mobile) ────────────────────────────────── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 150;
  flex-direction: row;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}
.bottom-nav a,
.bottom-nav .nav-link-disabled {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  font-size: .62rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: color var(--dur);
  border-radius: 8px;
}
.bottom-nav .nav-link-disabled {
  opacity: .42;
  cursor: not-allowed;
  user-select: none;
}
.bottom-nav a i,
.bottom-nav .nav-link-disabled i {
  font-style: normal;
  font-size: 1.3rem;
  line-height: 1;
}
.role-police    .bottom-nav a.active { color: #c8a850; }
.role-hotel     .bottom-nav a.active { color: #d4913a; }
.role-super_admin .bottom-nav a.active { color: #6366f1; }
.bottom-nav a.active { color: var(--info); }

/* ── 21. MISCELLANEOUS UTILITY ──────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center{ align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }
.mb-1   { margin-bottom: 4px; }
.mb-2   { margin-bottom: 8px; }
.mb-3   { margin-bottom: 12px; }
.mb-4   { margin-bottom: 16px; }
.mb-6   { margin-bottom: 24px; }
.mt-4   { margin-top: 16px; }
.mt-6   { margin-top: 24px; }
.p-0    { padding: 0; }
.w-full { width: 100%; }

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  text-align: center;
  gap: 12px;
}
.empty-state .empty-icon { font-size: 3rem; opacity: .4; }
.empty-state h3 { color: var(--muted); font-weight: 600; }
.empty-state p  { font-size: .85rem; max-width: 300px; }

/* ── 22. SCROLL FADE ANIMATION ──────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.metric-card, .card, .feature-card {
  animation: fadeUp .4s var(--ease) both;
}
.stats-grid > *:nth-child(1) { animation-delay: .05s; }
.stats-grid > *:nth-child(2) { animation-delay: .10s; }
.stats-grid > *:nth-child(3) { animation-delay: .15s; }
.stats-grid > *:nth-child(4) { animation-delay: .20s; }

/* ── 23. RESPONSIVE ─────────────────────────────────────────── */

/* Tablet — collapsed sidebar */
@media (max-width: 900px) {
  :root { --sb-w: 68px; }

  .sidebar-brand > span:last-child,
  .profile-card > div,
  .nav-label,
  .side-nav a .nav-copy,
  .sidebar-footer strong,
  .sidebar-footer small { display: none; }

  .sidebar-brand { justify-content: center; padding: 18px 0; }
  .profile-card  { justify-content: center; padding: 10px; border-radius: 12px; margin: 4px 8px 12px; }
  .avatar        { width: 34px; height: 34px; font-size: .78rem; }
  .side-nav      { padding: 0 6px; }
  .side-nav a    { justify-content: center; padding: 12px; border-left: none; border-radius: 10px; }
  .side-nav a i  { width: auto; font-size: 1.1rem; }
  .sidebar-footer { margin: 8px 8px 12px; padding: 10px 8px; justify-content: center; }

  .workspace-header { padding: 12px 20px; }
  .main { padding: 20px; }

  .form-row { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 640px) {
  .sidebar    { display: none; }
  .workspace  { margin-left: 0; }
  .bottom-nav { display: flex; }

  .main { padding: 16px 14px 80px; }
  .workspace-header { padding: 10px 14px; }
  .workspace-actions { gap: .4rem; }
  .change-password-link { min-height: 2.3rem; padding: 0 .65rem; font-size: .72rem; }
  .workspace-actions .logout { padding: 8px 10px; font-size: .75rem; }

  .hero { padding: 60px 20px 50px; }
  .hero h1 { font-size: 1.9rem; }
  .feature-grid { padding: 24px 16px; }
  .trust-strip  { flex-direction: column; padding: 16px; }
  .trust-item   { border-right: none; border-bottom: 1px solid var(--line); padding: 12px 0; }
  .trust-item:last-child { border-bottom: none; }

  .public-header { padding: 12px 16px; }
  .login-card    { padding: 28px 20px; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .metric-value { font-size: 1.8rem; }

  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { text-align: center; }

  .form-row { grid-template-columns: 1fr; }
  .table-wrap { font-size: .78rem; }
  td, th { padding: 9px 10px; }
}


/* ══════════════════════════════════════════════════════════════
   AUTH SPLIT LAYOUT  —  Login / Register pages
   ══════════════════════════════════════════════════════════════ */

.auth-split {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: #081754;
  position: relative;
}

/* Dot-grid background across the entire login page */
.auth-split::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}

/* ── Left panel ─────────────────────────────────────────────── */
.auth-left {
  width: 42%;
  min-width: 340px;
  background: transparent;
  color: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  border-right: none;
}

.auth-left-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 44px 40px 36px;
  gap: 36px;
}

/* Brand block */
.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.auth-brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c8a850, #a07830);
  display: grid;
  place-items: center;
  font-size: 26px;
  box-shadow: 0 4px 18px rgba(200,168,80,.35);
  flex-shrink: 0;
}
.auth-brand-title {
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -.03em;
  color: #fff;
}
.auth-brand-sub {
  font-size: 11px;
  color: rgba(255,255,255,.55);
  margin-top: 2px;
  letter-spacing: .02em;
}

/* Headline */
.auth-headline h1 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -.04em;
  color: #fff;
  margin: 0 0 14px;
}
.auth-headline p {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255,255,255,.6);
  margin: 0;
}

/* Feature card */
.auth-feature-card {
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  padding: 20px 22px;
}
.auth-feature-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #c8a850;
  margin-bottom: 14px;
}
.auth-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-feature-list li {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

/* Left footer bar */
.auth-left-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  border-top: none;
  font-size: 11px;
  color: rgba(255,255,255,.45);
}
.auth-left-footer-code {
  font-weight: 800;
  letter-spacing: .1em;
  color: rgba(200,168,80,.7);
}

/* ── Right panel ─────────────────────────────────────────────── */
.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 40px 48px;
  position: relative;
  z-index: 1;
}

.auth-form-wrap {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.32), 0 0 0 1px rgba(255,255,255,.12);
  padding: 34px 32px 26px;
  width: 100%;
  max-width: 410px;
  position: relative;
}

/* Form header */
.auth-form-header {
  margin-bottom: 20px;
}
.auth-form-header h2 {
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: -.035em;
  color: #0a2342;
  margin: 0 0 5px;
}
.auth-form-header p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
}

/* Tabs */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  background: #f1f5f9;
  border-radius: 9px;
  padding: 3.5px;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 8px 8px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
  transition: all .2s;
}
.auth-tab:hover { color: #081754; }
.auth-tab.active {
  background: #081754;
  color: #fff;
  box-shadow: 0 2px 6px rgba(8,23,84,.25);
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.auth-field label {
  display: block;
  font-size: 11.5px;
  font-weight: 750;
  color: #334155;
  margin-bottom: 6px;
  letter-spacing: .01em;
}
.auth-field-input {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-field-icon {
  position: absolute;
  left: 12px;
  font-size: 14px;
  color: #94a3b8;
  pointer-events: none;
  line-height: 1;
}
.auth-field-input input {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px 10px 38px;
  font: inherit;
  font-size: 13px;
  color: #0f172a;
  background: #f8fafc;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.auth-field-input input::placeholder { color: #94a3b8; }
.auth-field-input input:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* Submit button — vibrant royal blue */
.auth-submit-btn {
  width: 100%;
  padding: 12px 18px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  font: 750 13.5px/1 inherit;
  letter-spacing: .02em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
  transition: transform .18s, box-shadow .18s, filter .18s;
  margin-top: 4px;
}
.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37,99,235,.45);
  filter: brightness(1.06);
}
.auth-submit-btn:active { transform: translateY(0); }

/* Footer */
.auth-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  font-size: 11.5px;
  color: #64748b;
}
.auth-form-footer a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}
.auth-form-footer a:hover { text-decoration: underline; }
.auth-version {
  font-weight: 700;
  color: #94a3b8;
  font-size: 10.5px;
}

/* Wide variant for registration forms */
.auth-form-wrap.auth-wide {
  max-width: 620px;
  padding: 34px 34px 28px;
}
.auth-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 16px;
}
.auth-span-2 {
  grid-column: span 2;
}
.auth-notice-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1e40af;
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 18px;
}
.auth-field select {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  color: #0f172a;
  background: #f8fafc;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.auth-field select:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.auth-field textarea {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  color: #0f172a;
  background: #f8fafc;
  min-height: 64px;
  resize: vertical;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.auth-field textarea:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.auth-field .help {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

/* ── Auth split responsive ───────────────────────────────────── */
@media (max-width: 860px) {
  .auth-left { width: 42%; min-width: 260px; }
  .auth-left-inner { padding: 36px 28px 28px; gap: 28px; }
  .auth-left-footer { padding: 14px 28px; }
  .auth-right { padding: 32px 24px; }
  .auth-form-wrap { padding: 36px 28px 28px; }
}
@media (max-width: 640px) {
  .auth-split { flex-direction: column; }
  .auth-left { width: 100%; min-width: unset; }
  .auth-left-inner { padding: 32px 20px 24px; gap: 20px; }
  .auth-headline h1 { font-size: 1.5rem; }
  .auth-feature-card { display: none; }
  .auth-left-footer { padding: 12px 20px; }
  .auth-right { padding: 24px 16px; align-items: flex-start; }
  .auth-form-wrap { padding: 28px 20px 24px; max-width: 100%; border-radius: 16px; }
  .auth-tabs { flex-direction: column; }
  .auth-grid-2 { grid-template-columns: 1fr; }
  .auth-span-2 { grid-column: span 1; }
}


/* ══════════════════════════════════════════════════════════════
   DIGIGO-INSPIRED HOME PAGE  —  dg-* components
   Brand: --brand-from:#579BE1  --brand-to:#0F52BA  bg:#0A1530
   ══════════════════════════════════════════════════════════════ */

/* ── Design tokens ───────────────────────────────────────────── */
:root {
  --dg-dark:    #0A1530;
  --dg-dark2:   #0f1f3d;
  --dg-mid:     #1a2e4a;
  --dg-blue:    #2563eb;
  --dg-blue-lt: #579BE1;
  --dg-blue-dk: #0F52BA;
  --dg-accent:  #60a5fa;
  --dg-text:    #0f172a;
  --dg-muted:   #64748b;
  --dg-line:    #e2e8f0;
  --dg-grad:    linear-gradient(135deg, #579BE1, #0F52BA);
  --dg-grad-h:  linear-gradient(135deg, #2563eb, #0F52BA);
  --dg-r:       14px;
}

/* ── Base / reset for home ───────────────────────────────────── */
.dg-home * { box-sizing: border-box; }
.dg-home { font-family: var(--font-google-sans, 'Inter', ui-sans-serif, system-ui, sans-serif); color: var(--dg-text); }
.dg-container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.dg-gradient-text {
  background: var(--dg-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.dg-btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px; border-radius: 10px; border: none;
  background: var(--dg-grad);
  color: #fff; font: 700 13.5px/1 inherit;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 22px -8px #0f52ba80;
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.dg-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px #0f52ba99; filter: brightness(1.08); }
.dg-btn-primary.lg    { padding: 13px 26px; font-size: 14.5px; border-radius: 11px; }

.dg-btn-outline {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px; border-radius: 10px;
  border: 1.5px solid #2563eb66;
  background: rgba(37,99,235,.06);
  color: #1a3a7a; font: 700 13.5px/1 inherit;
  text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.dg-btn-outline:hover { transform: translateY(-2px); background: rgba(37,99,235,.1); border-color: #2563eb99; box-shadow: 0 8px 22px -8px #2563eb33; }
.dg-btn-outline.lg    { padding: 13px 26px; font-size: 14.5px; border-radius: 11px; }

.dg-btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-radius: 9px; border: none;
  background: transparent; color: var(--dg-muted);
  font: 600 13px/1 inherit; text-decoration: none; cursor: pointer;
  transition: color .2s, background .2s;
}
.dg-btn-ghost:hover { color: var(--dg-blue); background: rgba(37,99,235,.06); }

.dg-btn-ghost-dark {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07); backdrop-filter: blur(8px);
  color: rgba(255,255,255,.85); font: 600 13.5px/1 inherit;
  text-decoration: none; cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s;
}
.dg-btn-ghost-dark:hover { transform: translateY(-2px); background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }
.dg-btn-ghost-dark.lg { padding: 13px 26px; font-size: 14.5px; border-radius: 11px; }

.dg-btn-outline-white {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 13px 26px; border-radius: 11px;
  border: 1.5px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); backdrop-filter: blur(8px);
  color: #fff; font: 700 14.5px/1 inherit;
  text-decoration: none; cursor: pointer;
  transition: transform .2s, background .2s;
}
.dg-btn-outline-white:hover { transform: translateY(-2px); background: rgba(255,255,255,.14); }

/* ── NAVBAR — floating card style (DigiGo exact) ─────────────── */
.dg-nav-wrap {
  position: sticky; top: 0; z-index: 100;
  background: #EEF4FF;
  padding: 12px 20px 0;
}
.dg-nav {
  background: #ffffff;
  border-radius: 16px 16px 0 0;
  display: flex; align-items: center; gap: 20px;
  padding: 0 28px; height: 64px;
  box-shadow: 0 -1px 0 rgba(37,99,235,.06) inset,
              0 2px 0 #EEF4FF,
              0 4px 20px rgba(15,23,42,.08);
}
.dg-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.dg-logo-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--dg-grad); display: grid; place-items: center;
  font-size: 18px; box-shadow: 0 4px 12px #0f52ba40;
}
.dg-logo-text { font-size: 18px; font-weight: 850; letter-spacing: -.04em; color: var(--dg-blue-dk); }
.dg-nav-links { display: flex; gap: 2px; margin-left: auto; }
.dg-nav-links a {
  padding: 8px 16px; border-radius: 8px;
  color: #374151; text-decoration: none;
  font: 500 14px/1 inherit;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.dg-nav-links a:hover { color: var(--dg-blue); background: rgba(37,99,235,.06); }
.dg-nav-cta-btn {
  display: inline-flex; align-items: center;
  padding: 10px 22px; border-radius: 999px;
  background: var(--dg-blue); color: #fff;
  font: 700 14px/1 inherit; text-decoration: none;
  box-shadow: 0 4px 14px rgba(37,99,235,.45);
  transition: transform .2s, box-shadow .2s, filter .2s;
  white-space: nowrap; flex-shrink: 0; margin-left: 12px;
}
.dg-nav-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(37,99,235,.55); filter: brightness(1.07); }

/* ── HERO ────────────────────────────────────────────────────── */
.dg-hero-wrap {
  background: #EEF4FF;
  padding: 0 20px 28px;
}
.dg-hero {
  position: relative; overflow: hidden;
  background: var(--dg-dark);
  border-radius: 0 0 28px 28px;
  min-height: 88vh;
  display: flex; align-items: center;
  padding: 70px 48px 70px;
  box-shadow: 0 20px 60px rgba(10,21,48,.2);
}
.dg-hero-content {
  max-width: 1180px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; gap: 60px; position: relative; z-index: 2;
}
.dg-hero-text { flex: 0 0 52%; max-width: 580px; }

/* Dot-grid background */
.dg-dotgrid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* Blobs */
.dg-blob {
  position: absolute; border-radius: 50%;
  filter: blur(100px); pointer-events: none; opacity: .55;
}
.dg-blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #0F52BA 0%, transparent 70%);
  top: -120px; left: -80px;
}
.dg-blob-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #579BE1 0%, transparent 70%);
  bottom: -80px; right: 10%;
}
.dg-blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #2563eb 0%, transparent 70%);
  top: 40%; left: 35%; opacity: .3;
}

.dg-hero-inner {
  position: relative; z-index: 2;
  flex: 0 0 52%; max-width: 620px;
}
.dg-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(87,155,225,.35);
  background: rgba(87,155,225,.12);
  color: #93c5fd; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  margin-bottom: 20px;
}
.dg-hero-h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 850; line-height: 1.1;
  letter-spacing: -.05em; color: #fff;
  margin: 0 0 20px;
}
.dg-hero-sub {
  font-size: 16px; line-height: 1.7;
  color: rgba(255,255,255,.58);
  margin: 0 0 36px; max-width: 540px;
}
.dg-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.dg-hero-trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 12.5px; color: rgba(255,255,255,.45);
}
.dg-trust-sep { color: rgba(255,255,255,.2); }
.dg-trust-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #579BE1; margin-right: 5px; vertical-align: middle;
}
.dg-trust-dot.green { background: #34d399; }

/* Hero mockup card */
.dg-hero-mockup {
  position: absolute; right: 4%; top: 50%;
  transform: translateY(-50%);
  z-index: 2; width: 390px;
}
.dg-mockup-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px; overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px -20px #0f52ba80, 0 0 0 1px rgba(255,255,255,.06);
}
.dg-mockup-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}
.dg-mockup-dots { display: flex; gap: 5px; }
.dg-mockup-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.dg-mockup-title { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.45); letter-spacing: .05em; }
.dg-mockup-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.dg-mockup-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  transition: background .2s;
}
.dg-mockup-row.active { background: rgba(37,99,235,.12); border-color: rgba(37,99,235,.25); }
.dg-mockup-badge {
  flex-shrink: 0; padding: 3px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: .04em;
  margin-top: 2px;
}
.dg-mockup-badge.new { background: rgba(37,99,235,.25); color: #93c5fd; }
.dg-mockup-badge.ok  { background: rgba(16,185,129,.18); color: #6ee7b7; }
.dg-mockup-row-title { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.85); margin-bottom: 2px; }
.dg-mockup-row-sub   { font-size: 11px; color: rgba(255,255,255,.4); }
.dg-mockup-stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding-top: 6px;
}
.dg-mockup-stat {
  text-align: center; padding: 10px 6px; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
}
.dg-mockup-stat-num   { display: block; font-size: 20px; font-weight: 850; color: #fff; letter-spacing: -.04em; }
.dg-mockup-stat-label { display: block; font-size: 10px; color: rgba(255,255,255,.4); margin-top: 2px; }

/* ── PARTNERS BAR ────────────────────────────────────────────── */
.dg-partners {
  background: #fff; padding: 36px 0;
  border-top: 1px solid var(--dg-line);
  border-bottom: 1px solid var(--dg-line);
}
.dg-partners-label {
  text-align: center; font-size: 12px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--dg-muted); margin-bottom: 20px;
}
.dg-partners-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 12px;
}
.dg-partner-badge {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid rgba(37,99,235,.15);
  background: rgba(37,99,235,.04);
  color: #1a3a7a; font: 700 12.5px/1 inherit;
  white-space: nowrap;
}

/* ── HOW IT WORKS ────────────────────────────────────────────── */
.dg-how { padding: 90px 0; background: #f8faff; }
.dg-section-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dg-blue);
  margin-bottom: 14px;
}
.dg-section-h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 850;
  letter-spacing: -.045em; color: var(--dg-text); margin: 0 0 12px;
}
.dg-section-sub { font-size: 15px; color: var(--dg-muted); margin: 0 0 54px; max-width: 580px; }
.dg-steps {
  display: flex; align-items: flex-start; gap: 0;
}
.dg-step {
  flex: 1; padding: 28px; border-radius: 16px;
  background: #fff; border: 1px solid rgba(37,99,235,.1);
  box-shadow: 0 4px 24px rgba(37,99,235,.07);
  transition: transform .25s, box-shadow .25s;
}
.dg-step:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(37,99,235,.13); }
.dg-step-num {
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
  color: var(--dg-blue); margin-bottom: 14px; opacity: .6;
}
.dg-step-icon { font-size: 32px; margin-bottom: 14px; }
.dg-step h3 { font-size: 16px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; }
.dg-step p  { font-size: 13.5px; color: var(--dg-muted); line-height: 1.65; margin: 0; }
.dg-step-arrow {
  flex: 0 0 auto; font-size: 24px; color: var(--dg-blue-lt);
  padding: 0 20px; margin-top: 60px; opacity: .5;
}

/* ── FEATURE CARDS ───────────────────────────────────────────── */
.dg-features { padding: 90px 0; background: #fff; }
.dg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dg-card {
  position: relative; border-radius: 18px; padding: 32px 28px;
  border: 1px solid rgba(37,99,235,.12);
  background: linear-gradient(145deg, #fff, #f0f7ff);
  box-shadow: 0 4px 24px rgba(37,99,235,.07);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s, box-shadow .25s;
  overflow: hidden;
}
.dg-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--dg-grad);
}
.dg-card.hotel::before  { background: linear-gradient(90deg, #0d6e6e, #14b8a6); }
.dg-card.police::before { background: var(--dg-grad); }
.dg-card.admin::before  { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.dg-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(37,99,235,.12); }
.dg-card.featured {
  border-color: rgba(37,99,235,.3);
  box-shadow: 0 8px 40px rgba(37,99,235,.15), 0 0 0 1px rgba(37,99,235,.12);
}
.dg-card-featured-badge {
  position: absolute; top: 18px; right: 18px;
  background: var(--dg-grad); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .05em;
  padding: 4px 10px; border-radius: 999px;
}
.dg-card-icon { font-size: 36px; }
.dg-card h3 { font-size: 18px; font-weight: 850; letter-spacing: -.03em; margin: 0; }
.dg-card p  { font-size: 13.5px; color: var(--dg-muted); line-height: 1.65; margin: 0; }
.dg-card-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 7px; flex: 1;
}
.dg-card-list li { font-size: 13px; color: var(--dg-muted); display: flex; gap: 8px; }
.dg-card-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700; color: var(--dg-blue);
  text-decoration: none; margin-top: auto; padding-top: 8px;
  transition: gap .2s, color .2s;
}
.dg-card-link:hover { color: var(--dg-blue-dk); gap: 10px; }

/* ── STATS SECTION — dark navy card ─────────────────────────── */
.dg-stats { background: #EEF4FF; padding: 0 20px 28px; }
.dg-stats-inner {
  background: var(--dg-dark);
  border-radius: 28px;
  padding: 80px 60px;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 60px rgba(10,21,48,.2);
}
.dg-stats-h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 850;
  letter-spacing: -.045em; color: #fff; margin: 0 0 12px;
}
.dg-stats-sub { font-size: 15px; color: rgba(255,255,255,.5); margin: 0 0 50px; max-width: 540px; }
.dg-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dg-stat-card {
  padding: 28px 24px; border-radius: 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  transition: transform .25s, background .25s;
}
.dg-stat-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.08); }
.dg-stat-num   { font-size: 2.4rem; font-weight: 850; letter-spacing: -.06em; background: var(--dg-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.dg-stat-label { font-size: 13px; font-weight: 750; color: rgba(255,255,255,.7); margin: 6px 0 10px; }
.dg-stat-desc  { font-size: 12.5px; color: rgba(255,255,255,.4); line-height: 1.6; }

/* ── CTA SECTION ─────────────────────────────────────────────── */
.dg-cta { padding: 90px 0; background: linear-gradient(135deg, #071e3d 0%, #0a2342 50%, #0F52BA 100%); position: relative; overflow: hidden; }
.dg-cta::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
}
.dg-cta-inner { position: relative; z-index: 1; text-align: center; max-width: 700px; margin: 0 auto; }
.dg-cta-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.75); font-size: 12px; font-weight: 700;
  margin-bottom: 24px;
}
.dg-cta-h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 850;
  letter-spacing: -.05em; color: #fff; margin: 0 0 16px; line-height: 1.15;
}
.dg-cta-sub { font-size: 15px; color: rgba(255,255,255,.58); margin: 0 0 36px; line-height: 1.65; }
.dg-cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.dg-cta-note { font-size: 12px; color: rgba(255,255,255,.35); }

/* ── FOOTER ──────────────────────────────────────────────────── */
.dg-footer { background: #060e1e; color: rgba(255,255,255,.55); padding: 60px 0 28px; }
.dg-footer-top { display: flex; gap: 60px; justify-content: space-between; margin-bottom: 44px; }
.dg-footer-brand .dg-logo-text { color: #fff; }
.dg-footer-brand p { font-size: 13px; color: rgba(255,255,255,.4); line-height: 1.65; margin-top: 12px; max-width: 260px; }
.dg-footer-links { display: flex; gap: 60px; }
.dg-footer-links > div { display: flex; flex-direction: column; gap: 10px; }
.dg-footer-col-title { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 4px; }
.dg-footer-links a { font-size: 13px; color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.dg-footer-links a:hover { color: #fff; }
.dg-footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px; color: rgba(255,255,255,.25);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .dg-hero { flex-direction: column; align-items: flex-start; min-height: auto; padding: 90px 28px 60px; }
  .dg-hero-mockup { position: relative; right: auto; top: auto; transform: none; width: 100%; max-width: 480px; margin: 40px auto 0; }
  .dg-hero-inner { max-width: 100%; }
  .dg-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .dg-cards { grid-template-columns: 1fr; gap: 14px; }
  .dg-steps { flex-direction: column; gap: 12px; }
  .dg-step-arrow { display: none; }
  .dg-footer-top { flex-direction: column; gap: 36px; }
  .dg-footer-links { flex-direction: column; gap: 28px; }
}
@media (max-width: 640px) {
  .dg-nav-links { display: none; }
  .dg-hero { padding: 80px 20px 50px; }
  .dg-hero-h1 { font-size: 2rem; }
  .dg-hero-actions { flex-direction: column; align-items: flex-start; }
  .dg-stats-grid { grid-template-columns: 1fr 1fr; }
  .dg-container { padding: 0 16px; }
  .dg-how, .dg-features, .dg-stats-inner, .dg-cta { padding: 60px 0; }
}


/* ══════════════════════════════════════════════════════════════
   HOME PAGE OVERRIDES & NEW COMPONENTS
   ══════════════════════════════════════════════════════════════ */

/* Page background override */
body:has(.dg-home) { background: #EEF4FF !important; }

/* Hero layout fix */
.dg-hero-content {
  max-width: 1180px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; gap: 60px; position: relative; z-index: 2;
}
.dg-hero-text { flex: 0 0 52%; max-width: 580px; position: relative; z-index: 2; }

/* ── PARTNERS — light blue bg ────────────────────────────────── */
.dg-partners {
  background: #EEF4FF; padding: 36px 0;
  border-top: 1px solid rgba(37,99,235,.12);
}
.dg-partners-label {
  text-align: center; font-size: 11px; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase;
  color: #6b7eac; margin-bottom: 20px;
}
.dg-partners-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 10px;
}
.dg-partner-badge {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid rgba(37,99,235,.18);
  background: rgba(255,255,255,.8); backdrop-filter: blur(4px);
  color: #1a3a7a; font: 650 12.5px/1 inherit; white-space: nowrap;
  box-shadow: 0 1px 4px rgba(37,99,235,.08);
}

/* ── HOW IT WORKS — DigiGo timeline style ───────────────────── */
.dg-how { background: #EEF4FF; padding: 60px 0 80px; }
.dg-how-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 56px 56px 48px;
  box-shadow: 0 2px 8px rgba(37,99,235,.06), 0 8px 32px rgba(37,99,235,.06);
  border: 1px solid rgba(37,99,235,.08);
}
.dg-how-h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 850;
  letter-spacing: -.05em; color: #0f172a; margin: 0 0 14px; line-height: 1.15;
}
.dg-how-sub {
  font-size: 15px; color: #64748b; line-height: 1.65;
  max-width: 540px; text-align: center; margin: 0 auto 52px;
}
.dg-blue-underline {
  color: #2563eb; position: relative;
  text-decoration: underline; text-decoration-color: #93c5fd;
  text-underline-offset: 4px; text-decoration-thickness: 2px;
}

/* Timeline wrapper */
.dg-timeline {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}

/* Dashed connecting line */
.dg-timeline-line {
  position: absolute;
  top: 20px; /* aligns with center of circles */
  left: calc(12.5% + 20px); /* starts at center of first circle */
  right: calc(12.5% + 20px); /* ends at center of last circle */
  height: 2px;
  background: none;
  border-top: 2px dashed #bfdbfe;
  z-index: 0;
}

.dg-timeline-step {
  position: relative; z-index: 1;
  padding: 0 20px 0 0; display: flex; flex-direction: column; gap: 8px;
}
.dg-timeline-step:last-child { padding-right: 0; }

.dg-timeline-circle {
  width: 40px; height: 40px; border-radius: 50%;
  background: #0F52BA; color: #fff;
  font-size: 12px; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(15,82,186,.4);
  flex-shrink: 0; margin-bottom: 10px;
}

.dg-timeline-icon {
  font-size: 22px; margin-bottom: 6px; color: #2563eb;
}

.dg-timeline-stage {
  font-size: 10px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: #6b7eac; margin-bottom: 4px;
}

.dg-timeline-title {
  font-size: 15px; font-weight: 800; color: #0f172a;
  letter-spacing: -.02em; line-height: 1.3; margin-bottom: 6px;
}

.dg-timeline-desc {
  font-size: 13px; color: #64748b; line-height: 1.65; flex: 1;
}

.dg-timeline-tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px;
}
.dg-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid #dbeafe; background: #eff6ff;
  color: #1e40af; font-size: 11px; font-weight: 600;
}

/* ── FEATURES — on light blue bg ────────────────────────────── */
.dg-features { background: #EEF4FF; padding: 70px 0 80px; }
.dg-section-h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 850;
  letter-spacing: -.045em; color: var(--dg-text); margin: 0 0 12px;
}
.dg-section-sub { font-size: 15px; color: var(--dg-muted); line-height: 1.65; max-width: 580px; }
.dg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dg-card {
  position: relative; border-radius: 20px; padding: 32px 28px;
  border: 1px solid rgba(37,99,235,.12);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(37,99,235,.06), 0 8px 32px rgba(37,99,235,.05);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s, box-shadow .25s;
  overflow: hidden;
}
.dg-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
}
.dg-card.hotel::before  { background: linear-gradient(90deg, #0d6e6e, #14b8a6); }
.dg-card.police::before { background: var(--dg-grad); }
.dg-card.admin::before  { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.dg-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(37,99,235,.14); }
.dg-card.featured {
  border-color: rgba(37,99,235,.25);
  box-shadow: 0 8px 40px rgba(37,99,235,.12), 0 0 0 1px rgba(37,99,235,.1);
}
.dg-card-featured-badge {
  position: absolute; top: 18px; right: 18px;
  background: var(--dg-grad); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .05em;
  padding: 4px 10px; border-radius: 999px;
}
.dg-card-icon { font-size: 36px; }
.dg-card h3 { font-size: 18px; font-weight: 850; letter-spacing: -.03em; margin: 0; color: #0f172a; }
.dg-card p  { font-size: 13.5px; color: #64748b; line-height: 1.65; margin: 0; }
.dg-card-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 7px; flex: 1;
}
.dg-card-list li { font-size: 13px; color: #64748b; display: flex; gap: 8px; }
.dg-card-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700; color: var(--dg-blue);
  text-decoration: none; margin-top: auto; padding-top: 8px;
  transition: gap .2s;
}
.dg-card-link:hover { gap: 10px; color: var(--dg-blue-dk); }

/* Section eyebrow */
.dg-section-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dg-blue);
  margin-bottom: 12px;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .dg-hero-content { flex-direction: column; align-items: flex-start; }
  .dg-hero-mockup  { width: 100%; max-width: 480px; }
  .dg-timeline     { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .dg-timeline-line { display: none; }
  .dg-stats-grid   { grid-template-columns: repeat(2, 1fr); }
  .dg-how-card     { padding: 40px 32px 36px; }
}
@media (max-width: 860px) {
  .dg-cards        { grid-template-columns: 1fr; }
  .dg-nav-links    { display: none; }
  .dg-footer-top   { flex-direction: column; gap: 36px; }
  .dg-footer-links { flex-direction: column; gap: 28px; }
}
@media (max-width: 640px) {
  .dg-nav-wrap     { padding: 8px 10px 0; }
  .dg-nav          { padding: 0 14px; height: 54px; border-radius: 10px 10px 0 0; }
  .dg-hero         { padding: 60px 20px 50px; min-height: auto; }
  .dg-hero-h1      { font-size: 2rem; }
  .dg-hero-actions { flex-direction: column; align-items: flex-start; }
  .dg-timeline     { grid-template-columns: 1fr; gap: 20px; }
  .dg-stats-grid   { grid-template-columns: 1fr 1fr; }
  .dg-container    { padding: 0 16px; }
  .dg-how          { padding: 40px 0 50px; }
  .dg-how-card     { padding: 28px 20px 24px; border-radius: 16px; }
  .dg-how-sub      { text-align: left; }
  .dg-features     { padding: 50px 0 60px; }
}
.app-shell .main>h1{display:none!important}
