@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand & Signature Colors (harmonized with Login Page) */
  --brand: #ffd64f;
  --brand-hover: #f4c92d;
  --brand-dark: #24271f;
  --brand-deep: #171a14;
  --brand-accent: #ffda58;
  --brand-kicker: #ffe786;
  --brand-gold-glow: rgba(255, 214, 79, 0.28);

  /* Eyebrows & Badges */
  --gold-badge-bg: #fff0b3;
  --gold-badge-text: #665714;
  --gold-badge-border: #f0dc83;

  /* Neutrals & Surfaces */
  --ink: #1e221b;
  --ink-secondary: #454a42;
  --muted: #72776e;
  --line: #e6e4dc;
  --line-subtle: #f0ede5;
  --soft: #f8f7f1;
  --bg-page: #f4f3ec;
  --surface: #ffffff;
  --surface-warm: #fbfaf6;

  /* Sidebar Dark Identity (matches Login visual panel) */
  --sidebar: #1a1d17;
  --sidebar-border: #282c22;
  --sidebar-hover: #262a22;
  --sidebar-active: #2b3026;
  --sidebar-accent: #ffda58;
  --sidebar-text: #c4c8bf;
  --sidebar-width: 268px;
  --sidebar-small: 84px;

  /* Semantic Feedback */
  --success: #1b7a43;
  --success-bg: #eaf5ed;
  --success-border: #bce2cb;
  --warning: #b54708;
  --warning-bg: #fef4e8;
  --warning-border: #fed8bf;
  --danger: #b42318;
  --danger-bg: #fdeced;
  --danger-border: #fecdca;
  --info: #745b08;
  --info-bg: #fff9e6;
  --info-border: #fae69e;

  /* Geometry & Shadows */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 4px 14px rgba(31, 35, 28, 0.04);
  --shadow-md: 0 8px 28px rgba(36, 39, 31, 0.06);
  --shadow-lg: 0 18px 45px rgba(36, 39, 31, 0.12);
  --shadow-gold: 0 10px 26px rgba(220, 173, 10, 0.22);
}

* {
  box-sizing: border-box;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

*::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

html {
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body {
  margin: 0;
  background: radial-gradient(circle at 85% 5%, rgba(255, 214, 79, 0.09), transparent 38%), var(--bg-page);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

button, a, input, select, textarea {
  transition: border-color .18s, box-shadow .18s, background-color .18s, color .18s, transform .18s;
  font-family: inherit;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* App Shell */
.app-shell {
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar);
  color: #fff;
  padding: 22px 16px;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: width .22s cubic-bezier(0.4, 0, 0.2, 1), transform .22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 10px 0 35px rgba(20, 23, 17, 0.25);
  border-right: 1px solid var(--sidebar-border);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 4px 8px 22px;
  min-height: 64px;
}

.brand-mark {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #24271f;
  color: #ffda58;
  border: 1px solid rgba(255, 218, 88, 0.22);
  display: grid;
  place-items: center;
  font-weight: 850;
  font-size: 15px;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.brand-copy {
  min-width: 0;
}

.brand strong {
  display: block;
  font-size: 15px;
  font-weight: 750;
  color: #ffffff;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand small {
  display: block;
  color: #9aa095;
  font-size: 11.5px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-close {
  display: none !important;
  margin-left: auto;
  color: #fff !important;
}

.sidebar nav {
  display: grid;
  gap: 4px;
}

.sidebar nav a {
  color: var(--sidebar-text);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 550;
  min-height: 44px;
  white-space: nowrap;
}

.sidebar nav a i {
  font-size: 17px;
  width: 22px;
  text-align: center;
  flex: 0 0 22px;
  color: #9aa095;
  transition: color .18s;
}

.sidebar nav a:hover {
  background: var(--sidebar-hover);
  color: #ffffff;
}

.sidebar nav a:hover i {
  color: #ffd64f;
}

.sidebar nav a.active {
  background: var(--sidebar-active);
  color: #ffffff;
  font-weight: 700;
  box-shadow: inset 4px 0 0 #ffda58;
}

.sidebar nav a.active i {
  color: #ffda58;
}

/* Nav Categorization & Submenus */
.nav-section {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-section-title {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8c9287;
  padding: 6px 14px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-section-title.admin-title {
  color: #ffda58;
}

.nav-group-header {
  color: var(--sidebar-text);
  padding: 10px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  transition: background .18s, color .18s;
}

.nav-group-header:hover {
  background: var(--sidebar-hover);
  color: #ffffff;
}

.nav-group-header i.group-icon {
  font-size: 17px;
  width: 22px;
  text-align: center;
  color: #9aa095;
  margin-right: 12px;
}

.nav-group-header:hover i.group-icon {
  color: #ffd64f;
}

.nav-group-header .chevron-icon {
  font-size: 12px;
  transition: transform .2s ease;
  color: #8c9287;
}

.nav-group-header[aria-expanded="true"] .chevron-icon {
  transform: rotate(180deg);
  color: #ffd64f;
}

.nav-sublinks {
  display: grid;
  gap: 2px;
  padding-left: 28px;
  margin-top: 2px;
}

.nav-sublinks a {
  font-size: 13px !important;
  min-height: 38px !important;
  padding: 7px 12px !important;
  color: #b0b5aa !important;
}

.nav-sublinks a:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.nav-sublinks a.active {
  color: #ffda58 !important;
  background: rgba(255, 218, 88, 0.12) !important;
  box-shadow: inset 3px 0 0 #ffda58 !important;
}

/* Gold Button & Surface Utilities */
.btn-gold {
  background: #ffd64f;
  color: #1a1d17;
  font-weight: 700;
  border: 1px solid #f4c92d;
  box-shadow: 0 4px 12px rgba(255, 214, 79, 0.25);
}

.btn-gold:hover, .btn-gold:focus {
  background: #ffda58;
  color: #000000;
  border-color: #ffd64f;
  transform: translateY(-1px);
}

.bg-surface {
  background: #ffffff !important;
}

.text-ink {
  color: #1e221b !important;
}

.fs-7 { font-size: 0.875rem !important; }
.fs-8 { font-size: 0.8125rem !important; }
.fs-9 { font-size: 0.75rem !important; }

.sidebar-footer {
  margin-top: auto;
  padding: 18px 8px 0;
  border-top: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-footer .user-avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #24271f;
  color: #ffda58;
  border: 1px solid rgba(255, 218, 88, 0.25);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}

.user-copy {
  min-width: 0;
  flex: 1;
}

.user-copy span {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-copy small {
  display: block;
  font-size: 11px;
  color: #9aa095;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-footer > a {
  color: #ffda58;
  font-size: 20px;
  padding: 6px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}

.sidebar-footer > a:hover {
  background: var(--sidebar-hover);
  color: #ffffff;
}

/* Sidebar Collapsed State */
.sidebar-backdrop {
  display: none;
}

.sidebar-collapsed .sidebar {
  width: var(--sidebar-small);
}

.sidebar-collapsed .main-content {
  margin-left: var(--sidebar-small);
  width: calc(100% - var(--sidebar-small));
}

.sidebar-collapsed .brand-copy,
.sidebar-collapsed .sidebar nav span,
.sidebar-collapsed .user-copy {
  display: none;
}

.sidebar-collapsed .brand {
  padding-inline: 6px;
  justify-content: center;
}

.sidebar-collapsed .sidebar nav a {
  justify-content: center;
  padding-inline: 8px;
}

.sidebar-collapsed .sidebar-footer {
  padding-inline: 4px;
  justify-content: center;
}

.sidebar-collapsed .sidebar-footer > a {
  display: none;
}

/* Main Content Area */
.main-content {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
  padding: 30px 36px;
  transition: margin-left .22s cubic-bezier(0.4, 0, 0.2, 1), width .22s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-header {
  display: none;
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}

.page-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.topbar h1 {
  font-size: clamp(23px, 2.4vw, 30px);
  line-height: 1.15;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.topbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  padding: 0;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(36, 39, 31, 0.04);
}

.icon-btn:hover {
  background: var(--surface-warm);
  color: var(--ink);
  border-color: #d2cebf;
  transform: translateY(-1px);
}

/* Cards & Surfaces */
.card-clean {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 6px 24px rgba(36, 39, 31, 0.04);
  position: relative;
}

.stat-card {
  padding: 20px 22px;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-top: 3.5px solid var(--brand);
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-top: 6px;
  line-height: 1.1;
}

.section-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Tables */
.table {
  --bs-table-bg: transparent;
  margin-bottom: 0;
}

.table thead th {
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  color: #555c50;
  background: #f8f7f2;
  border-bottom: 1px solid var(--line);
  padding: 13px 16px;
  white-space: nowrap;
}

.table td {
  vertical-align: middle;
  border-color: var(--line-subtle);
  padding: 13px 16px;
  color: var(--ink);
  font-size: 13.5px;
}

.table-hover tbody tr:hover > * {
  --bs-table-bg-state: #fbfaf5;
}

.card-clean.overflow-hidden {
  overflow-x: auto !important;
}

.card-clean.overflow-hidden > .table {
  min-width: 680px;
}

/* Badges & Chips */
.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--gold-badge-bg);
  color: var(--gold-badge-text);
  border: 1px solid var(--gold-badge-border);
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-gold {
  background: var(--gold-badge-bg);
  color: var(--gold-badge-text);
  border: 1px solid var(--gold-badge-border);
}

.badge-success, .text-success {
  color: var(--success) !important;
}

/* Avatar Elements */
.avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: #24271f;
  color: #ffda58;
  display: grid;
  place-items: center;
  font-weight: 850;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(36, 39, 31, 0.12);
}

/* Form Controls */
.form-label {
  font-weight: 650;
  font-size: 13px;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}

.form-control, .form-select {
  border-color: var(--line);
  background-color: #ffffff;
  color: var(--ink);
  border-radius: var(--radius-md);
  height: 46px;
  padding: 0 16px;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(31, 35, 28, 0.03);
}

textarea.form-control {
  height: auto;
  padding: 12px 16px;
}

.form-control:focus, .form-select:focus {
  border-color: #e0b922;
  box-shadow: 0 0 0 4px rgba(255, 210, 51, 0.2);
  outline: none;
}

.form-control-lg, .form-select-lg {
  height: 52px;
  border-radius: 16px;
  font-size: 15px;
}

.form-control-sm, .form-select-sm {
  height: 38px;
  border-radius: 10px;
  font-size: 13px;
}

/* Button System (Signature Gold & Obsidian Dark) */
.btn {
  border-radius: var(--radius-md);
  font-weight: 700;
  padding: 9px 18px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-dark);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--brand-hover) !important;
  border-color: var(--brand-hover) !important;
  color: var(--brand-deep) !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(220, 173, 10, 0.3);
}

.btn-dark {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #ffda58;
  box-shadow: 0 8px 20px rgba(36, 39, 31, 0.16);
}

.btn-dark:hover, .btn-dark:focus {
  background: var(--brand-deep) !important;
  border-color: var(--brand-deep) !important;
  color: #ffe786 !important;
  transform: translateY(-1px);
}

.btn-outline-primary {
  border: 1.5px solid #d4b533;
  color: #665714;
  background: #fffdf5;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-dark);
  transform: translateY(-1px);
}

.btn-outline-secondary {
  border: 1.5px solid #d8d4c7;
  color: #4b5247;
  background: #ffffff;
}

.btn-outline-secondary:hover, .btn-outline-secondary:focus {
  background: #f4f3ec;
  border-color: #c4bfaf;
  color: var(--ink);
}

.btn-outline-success {
  border: 1.5px solid var(--success);
  color: var(--success);
  background: #f4fbf6;
}

.btn-outline-success:hover, .btn-outline-success:focus {
  background: var(--success);
  border-color: var(--success);
  color: #ffffff;
}

.btn-success {
  background: var(--success);
  border-color: var(--success);
  color: #ffffff;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 10px;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 15.5px;
  border-radius: 16px;
}

/* Modals */
.modal-content {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: 0 24px 75px rgba(26, 29, 23, 0.22);
  background: #ffffff;
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid var(--line-subtle);
  padding: 20px 26px;
  background: #fbfaf6;
}

.modal-header h5, .modal-title {
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}

.modal-body {
  padding: 26px;
}

.modal-footer {
  border-top: 1px solid var(--line-subtle);
  padding: 18px 26px;
  background: #fbfaf6;
}

/* Progress Bars */
.progress {
  height: 9px;
  background: #ebe8dc;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, #f4c92d, #ffd64f);
  border-radius: 999px;
}

/* Alerts */
.alert {
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 13.5px;
  border: 1px solid transparent;
}

.alert-info {
  background: var(--info-bg);
  color: var(--info);
  border-color: var(--info-border);
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border-color: var(--success-border);
}

.alert-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger-border);
}

.alert-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: var(--warning-border);
}

/* Status Indicators */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: #ffda58;
  box-shadow: 0 0 0 3px rgba(255, 218, 88, 0.25);
  margin-right: 6px;
}

.sticky-actions {
  position: sticky;
  bottom: 10px;
}

/* Discovery Agent Component */
.discovery-person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 14px;
  border-bottom: 1px solid var(--line-subtle);
}

.discovery-person:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.discovery-person:first-of-type {
  padding-top: 0;
}

.discovery-person small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.discovery-person:hover {
  background: var(--surface-warm);
  color: var(--ink);
}

.discovery-person:hover .avatar {
  background: #ffd64f;
  color: #24271f;
}

/* Public Registration & Pass Layout (Harmonized with Login Aesthetic) */
.public-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 50px);
  background: radial-gradient(circle at 12% 15%, rgba(255, 214, 79, 0.18), transparent 45%), radial-gradient(circle at 88% 85%, rgba(36, 39, 31, 0.95), #181b15);
}

.public-card {
  max-width: 760px;
  width: 100%;
  background: #fbfaf6;
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4.5vw, 44px);
  box-shadow: 0 28px 85px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.45);
  position: relative;
  overflow: hidden;
}

.public-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold-badge-text);
  background: var(--gold-badge-bg);
  border: 1px solid var(--gold-badge-border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.public-card h1 {
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #1e221b;
  margin: 14px 0 6px;
}

.ticket-card {
  background: #ffffff;
  border: 2px dashed #dedad0;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 10px 32px rgba(36, 39, 31, 0.05);
  position: relative;
}

/* Gate Validation Results */
.gate-scanner-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ffffff;
}

/* Powered by Footer */
.login-powered-by {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .01em;
}

.login-powered-by strong {
  color: var(--brand-dark);
  font-weight: 750;
}

.login-powered-by small {
  font-size: 12px;
  color: #475467;
}

/* Dedicated Login Screen Styles (Preserved & Enhanced) */
.login-screen {
  min-height: 100vh;
  padding: clamp(12px, 2.2vw, 30px);
  display: grid;
  place-items: center;
  background: #cfd4d8;
}

.login-shell {
  width: min(1180px, 100%);
  min-height: min(760px, calc(100vh - 40px));
  display: grid;
  grid-template-columns: minmax(360px, 43%) minmax(0, 57%);
  overflow: hidden;
  border-radius: 32px;
  background: #f8f3dc;
  box-shadow: 0 28px 75px rgba(16, 24, 40, .22);
}

.login-form-panel {
  min-width: 0;
  padding: clamp(24px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 100% 100%, rgba(255, 214, 79, .2), transparent 42%), #f8f7f1;
}

.login-brand {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #22251f;
  text-decoration: none;
}

.login-brand-mark {
  width: 43px;
  height: 43px;
  border-radius: 14px;
  background: #24271f;
  color: #ffda58;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 8px 20px rgba(36, 39, 31, .15);
}

.login-brand span:last-child {
  display: grid;
  line-height: 1.12;
}

.login-brand strong {
  font-size: 15px;
}

.login-brand small {
  color: #7c8178;
  font-size: 11px;
  margin-top: 4px;
}

.login-form-wrap {
  width: min(390px, 100%);
  margin: auto;
}

.login-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #665714;
  background: #fff0b3;
  border: 1px solid #f0dc83;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.login-form-wrap h1 {
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.03;
  letter-spacing: -.045em;
  margin: 18px 0 12px;
  color: #22251f;
}

.login-intro {
  max-width: 350px;
  color: #72776e;
  line-height: 1.65;
  margin-bottom: 28px;
}

.login-form {
  display: grid;
  gap: 18px;
}

.login-form .form-label {
  color: #454a42;
  margin: 0 0 8px;
}

.login-input-wrap {
  position: relative;
}

.login-input-wrap > i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: #92968f;
}

.login-input-wrap .form-control {
  height: 54px;
  border-radius: 15px;
  padding: 0 48px 0 46px;
  background: #fff;
  border: 1px solid #e4e4dc;
  box-shadow: 0 7px 22px rgba(31, 35, 28, .045);
}

.login-input-wrap .form-control:focus {
  border-color: #e0b922;
  box-shadow: 0 0 0 4px rgba(255, 210, 51, .18);
}

.login-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #777c74;
  display: grid;
  place-items: center;
}

.login-password-toggle:hover {
  background: #f5f3e8;
  color: #22251f;
}

.login-submit {
  height: 56px;
  margin-top: 4px;
  border-radius: 16px;
  border: 0;
  background: #ffd64f;
  color: #24271f;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 12px 28px rgba(220, 173, 10, .24);
}

.login-submit:hover, .login-submit:focus {
  background: #f4c92d;
  color: #171a14;
  transform: translateY(-1px);
}

.login-form-panel > .login-powered-by {
  margin-top: auto;
  border-color: #dfdfd5;
}

.login-form-panel > .login-powered-by strong {
  color: #24271f;
}

.login-visual {
  position: relative;
  min-height: 620px;
  margin: 16px 16px 16px 0;
  border-radius: 26px;
  overflow: hidden;
  background: #282b23;
}

.login-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-visual-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 22, 17, .24), transparent 40%, rgba(17, 20, 15, .75));
}

.login-visual-top {
  position: absolute;
  inset: 24px 24px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.login-visual-top > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  color: #252820;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
}

.login-visual-top .login-live {
  background: rgba(30, 34, 25, .72);
  color: #fff;
}

.login-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffda58;
  box-shadow: 0 0 0 4px rgba(255, 218, 88, .18);
}

.login-visual-copy {
  position: absolute;
  left: clamp(24px, 4vw, 52px);
  right: clamp(24px, 4vw, 52px);
  bottom: clamp(28px, 5vw, 58px);
  color: #fff;
}

.login-visual-kicker {
  display: block;
  margin-bottom: 12px;
  color: #ffe786;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.login-visual-copy h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: .97;
  letter-spacing: -.045em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .2);
}

.login-visual-copy p {
  max-width: 500px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: 15px;
  line-height: 1.6;
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
  .main-content {
    padding: 22px;
  }
  .topbar-actions .btn {
    font-size: 0;
    padding: 9px 12px;
  }
  .topbar-actions .btn i {
    font-size: 16px;
    margin: 0;
  }
  .card-clean.p-4 {
    padding: 1.25rem !important;
  }
}

@media (max-width: 900px) {
  body.sidebar-open {
    overflow: hidden;
  }
  .sidebar {
    width: min(86vw, 300px);
    transform: translateX(-105%);
    box-shadow: 16px 0 45px rgba(16, 24, 40, .28);
  }
  .sidebar-open .sidebar {
    transform: translateX(0);
  }
  .sidebar-close {
    display: grid !important;
  }
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 40, .48);
    z-index: 1035;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s, visibility .22s;
  }
  .sidebar-open .sidebar-backdrop {
    opacity: 1;
    visibility: visible;
  }
  .main-content, .sidebar-collapsed .main-content {
    margin-left: 0;
    width: 100%;
    padding: 0 18px 24px;
  }
  .mobile-header {
    height: 64px;
    margin: 0 -18px 20px;
    padding: 0 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1020;
  }
  .sidebar-collapse {
    display: none;
  }
  .topbar {
    align-items: flex-start;
  }
  .sidebar-collapsed .sidebar {
    width: min(86vw, 300px);
  }
  .sidebar-collapsed .brand-copy,
  .sidebar-collapsed .sidebar nav span,
  .sidebar-collapsed .user-copy {
    display: block;
  }
  .sidebar-collapsed .sidebar nav a {
    justify-content: flex-start;
    padding-inline: 12px;
  }
  .sidebar-collapsed .sidebar-footer {
    padding-inline: 8px;
  }
  .sidebar-collapsed .sidebar-footer > a {
    display: block;
  }

  .login-screen {
    padding: 0;
    background: #f8f7f1;
  }
  .login-shell {
    min-height: 100vh;
    grid-template-columns: 1fr;
    border-radius: 0;
    box-shadow: none;
  }
  .login-visual {
    grid-row: 1;
    min-height: 300px;
    margin: 12px 12px 0;
    border-radius: 22px;
  }
  .login-visual-copy {
    bottom: 26px;
  }
  .login-visual-copy h2 {
    font-size: 42px;
  }
  .login-visual-copy p {
    display: none;
  }
  .login-form-panel {
    grid-row: 2;
    padding: 28px 24px;
  }
  .login-form-wrap {
    margin: 42px auto;
  }
  .login-form-panel > .login-powered-by {
    margin-top: 14px;
  }
}

@media (max-width: 576px) {
  .main-content, .sidebar-collapsed .main-content {
    padding: 0 14px 20px;
  }
  .mobile-header {
    margin: 0 -14px 18px;
    padding: 0 14px;
  }
  .topbar {
    margin-bottom: 20px;
  }
  .topbar-actions {
    display: none;
  }
  .topbar h1 {
    font-size: 22px;
  }
  .topbar p {
    font-size: 13px;
  }
  .card-clean {
    border-radius: 16px;
  }
  .card-clean.p-4 {
    padding: 1.1rem !important;
  }
  .public-wrap {
    padding: 14px;
  }
  .public-card {
    padding: 22px 18px;
    border-radius: 20px;
  }
  .ticket-card {
    padding: 18px;
  }
  .modal-dialog {
    margin: .5rem;
  }
  .table td, .table th {
    padding: .75rem;
  }
}

@media (max-width: 520px) {
  .login-visual {
    min-height: 235px;
  }
  .login-visual-top {
    inset: 16px 16px auto;
    justify-content: flex-end;
  }
  .login-visual-top > span:first-child {
    display: none;
  }
  .login-visual-copy {
    left: 22px;
    right: 22px;
    bottom: 22px;
  }
  .login-visual-copy h2 {
    font-size: 34px;
  }
  .login-visual-kicker {
    font-size: 10px;
  }
  .login-form-panel {
    padding: 24px 18px;
  }
  .login-form-wrap {
    margin: 32px auto;
  }
  .login-form-wrap h1 {
    font-size: 38px;
  }
  .login-intro {
    font-size: 14px;
    margin-bottom: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
