@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');.nozzle-scanner-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 16px;
  background: rgba(2, 6, 12, 0.85);
}

.nozzle-scanner-dialog {
  width: 100%;
  max-width: 780px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.nozzle-scanner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nozzle-scanner-header h3 {
  margin: 0;
  font-size: 18px;
}

.nozzle-scanner-help,
.nozzle-scanner-warning {
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--text-muted);
}

.nozzle-scanner-warning {
  color: #fbbf24;
}

.nozzle-scanner-image {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border);
  touch-action: none;
  cursor: crosshair;
}

.nozzle-scanner-image canvas {
  display: block;
  width: 100%;
  height: auto;
}

.nozzle-scanner-selection {
  position: absolute;
  border: 2px solid #2dd4bf;
  background: rgba(45, 212, 191, 0.04);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.nozzle-scanner-controls,
.nozzle-scanner-crop-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.nozzle-scanner-controls label,
.nozzle-scanner-crop-controls label {
  display: grid;
  align-content: start;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  min-width: 0;
}

.nozzle-scanner-dialog input[type="range"] {
  width: 100%;
  min-width: 0;
  accent-color: var(--teal);
}

.nozzle-scanner-crop-preview {
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.nozzle-scanner-crop-preview img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0b1018;
}

.nozzle-scanner-review {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.nozzle-scanner-summary {
  display: grid;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
}

.nozzle-scanner-summary strong {
  color: var(--text);
}

.nozzle-scanner-confirm {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.nozzle-scanner-confirm input {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--teal);
}

.nozzle-scanner-dialog .btn {
  min-width: 0;
  justify-content: center;
  white-space: normal;
}

@media (max-width: 600px) {
  .nozzle-scanner-backdrop { padding: 8px; }
  .nozzle-scanner-dialog { padding: 16px; max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  .nozzle-scanner-header h3 { font-size: 16px; }
}
.compliance-page { display: grid; gap: 20px; }
.compliance-page h1 { margin: 0 0 6px; font-size: 28px; }
.compliance-section-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.compliance-section-header h2, .compliance-section-header h3 { margin: 0; overflow-wrap: anywhere; }
.compliance-section-header h2 { font-size: 21px; }
.compliance-muted { color: var(--text-muted); font-size: 13px; line-height: 1.6; margin: 0; }
.compliance-error, .compliance-text-expired { color: #fda4af; font-size: 13px; line-height: 1.6; }
.compliance-text-expiring { color: #fbbf24; font-size: 13px; }
.compliance-text-valid { color: var(--teal); font-size: 13px; }
.compliance-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.compliance-summary-card { display: grid; gap: 10px; min-width: 0; }
.compliance-summary-card svg { color: var(--text-muted); }
.compliance-summary-card span { color: var(--text-muted); font-size: 12px; }
.compliance-summary-card strong { font-size: 26px; }
.compliance-skeleton { height: 30px; width: 60%; border-radius: 8px; background: var(--line); animation: compliance-pulse 1.4s ease-in-out infinite; }
.compliance-filters { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.compliance-filters label, .compliance-form label { display: grid; align-content: start; gap: 7px; min-width: 0; font-size: 13px; color: var(--text-muted); }
.compliance-page .input, .compliance-modal .input { min-width: 0; font-size: 14px; }
.compliance-empty { padding: 24px 0; text-align: center; color: var(--text-muted); font-size: 14px; }
.compliance-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.compliance-table th { color: var(--text-muted); font-size: 12px; text-align: left; font-weight: 600; padding: 10px 8px; }
.compliance-table td { border-top: 1px solid var(--border); padding: 14px 8px; font-size: 13px; overflow-wrap: anywhere; vertical-align: middle; }
.compliance-table th:first-child { width: 22%; }
.compliance-table th:last-child { width: 26%; }
.compliance-document-number { display: block; color: var(--text-muted); font-size: 12px; margin-top: 4px; }
.compliance-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.compliance-actions .btn, .compliance-section-header > .btn { white-space: normal; justify-content: center; }
.compliance-actions .btn { padding: 9px 12px; font-size: 12px; }
.compliance-delete { color: #fda4af; }
.compliance-status { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 700; background: var(--line); color: var(--text-muted); }
.compliance-status-valid { color: #5eead4; background: rgba(45, 212, 191, 0.12); }
.compliance-status-expiring { color: #fbbf24; background: rgba(251, 191, 36, 0.12); }
.compliance-status-expired { color: #fda4af; background: rgba(251, 113, 133, 0.12); }
.compliance-mobile-documents { display: none; }
.compliance-mobile-document { display: grid; gap: 12px; border: 1px solid var(--border); padding: 14px; border-radius: 14px; min-width: 0; }
.compliance-mobile-document h3 { font-size: 15px; }
.compliance-modal-backdrop { position: fixed; inset: 0; z-index: 350; padding: 16px; background: rgba(2, 6, 12, 0.82); display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; }
.compliance-modal { width: 100%; max-width: 600px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; display: grid; gap: 16px; min-width: 0; }
.compliance-modal-wide { max-width: 850px; }
.compliance-form, .compliance-form-grid { display: grid; gap: 16px; }
.compliance-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compliance-form fieldset { border: 0; padding: 0; min-width: 0; }
.compliance-full-width { grid-column: 1 / -1; }
.compliance-form textarea { resize: vertical; }
.compliance-upload-progress { display: grid; gap: 6px; font-size: 13px; }
.compliance-upload-progress progress { width: 100%; accent-color: var(--teal); }
.compliance-details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.compliance-details-grid dt { color: var(--text-muted); font-size: 12px; margin-bottom: 4px; }
.compliance-details-grid dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.compliance-remarks { font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.compliance-file-section { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.compliance-file-section h3 { margin: 0; font-size: 16px; }
.compliance-file-section .btn { justify-self: start; white-space: normal; overflow-wrap: anywhere; }
.compliance-image-preview { width: 100%; max-height: 500px; object-fit: contain; border-radius: 12px; background: var(--bg); }
.compliance-pdf-preview { width: 100%; height: 450px; border: 1px solid var(--border); border-radius: 12px; }
.compliance-history-item { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; overflow-wrap: anywhere; font-size: 13px; }
.compliance-history-item p { margin: 6px 0 0; color: var(--text-muted); font-size: 12px; }
.compliance-reminder-list { display: grid; gap: 12px; }
.compliance-reminder-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; }
.compliance-reminder-item strong { overflow-wrap: anywhere; }
.compliance-reminder-item p { margin: 6px 0; font-size: 13px; color: var(--text-muted); }
.compliance-reminder-item .btn { flex-shrink: 0; }
.compliance-desktop-indicator { display: flex; justify-content: flex-end; margin-bottom: 12px; min-height: 40px; }
.compliance-bell { position: relative; }
.compliance-bell-button { position: relative; display: flex; align-items: center; gap: 8px; min-height: 40px; }
.compliance-bell-count { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--amber); color: #081019; font-size: 10px; font-weight: 800; }
.compliance-bell-dropdown { position: absolute; top: calc(100% + 8px); right: 0; z-index: 180; width: min(360px, calc(100vw - 28px)); max-height: min(65vh, 500px); overflow-y: auto; display: grid; gap: 12px; }
.compliance-bell-dropdown h3 { font-size: 16px; margin: 0; }
.compliance-alert-link { display: grid; text-align: left; gap: 6px; background: transparent; border: 0; border-bottom: 1px solid var(--border); padding: 8px 0 12px; cursor: pointer; color: var(--text); font: inherit; overflow-wrap: anywhere; }
.compliance-alert-link strong { font-size: 13px; }
.compliance-topbar-actions { display: flex; align-items: center; gap: 8px; }
.mobile-topbar.has-compliance { grid-template-columns: 48px minmax(0, 1fr) 94px; }
.mobile-topbar .compliance-bell-label { display: none; }
.mobile-topbar .compliance-bell-button { width: 42px; height: 42px; min-height: 42px; padding: 8px; justify-content: center; }
.mobile-topbar .compliance-bell-count { position: absolute; top: -4px; right: -4px; }
.mobile-topbar .compliance-bell-dropdown { right: -50px; }
@keyframes compliance-pulse { 50% { opacity: 0.4; } }
@media (max-width: 980px) { .compliance-desktop-indicator { display: none; } }
@media (max-width: 900px) {
  .compliance-table { display: none; }
  .compliance-mobile-documents { display: grid; gap: 12px; }
  .compliance-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .compliance-page h1 { font-size: 24px; }
  .compliance-filters, .compliance-form-grid { grid-template-columns: minmax(0, 1fr); }
  .compliance-modal-backdrop { padding: 8px; }
  .compliance-modal { padding: 16px; max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  .compliance-section-header h2 { font-size: 18px; }
  .compliance-reminder-item { align-items: flex-start; flex-direction: column; }
  .compliance-reminder-item .btn { width: 100%; justify-content: center; }
  .compliance-summary-card { padding: 16px; }
  .compliance-actions .btn { flex: 1 1 auto; }
  .compliance-pdf-preview { height: 320px; }
}
.app-shell {
  min-height: 100vh;
  background:
    radial-gradient(1000px 420px at 82% -8%, rgba(255, 158, 27, 0.10) 0%, transparent 56%),
    radial-gradient(820px 320px at 0% 8%, rgba(32, 201, 151, 0.08) 0%, transparent 52%),
    linear-gradient(180deg, #090d12 0%, #0b0f14 100%);
}

.app-main {
  margin-left: 280px;
  min-height: 100vh;
  padding: 88px 24px 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 158, 27, 0.05), transparent 28%),
    radial-gradient(circle at bottom left, rgba(32, 201, 151, 0.04), transparent 30%);
}

.app-content-frame {
  width: min(100%, 1440px);
  margin: 0 auto;
}

.mobile-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 130;
  height: 64px;
  padding: 0 14px 0 12px;
  background: linear-gradient(180deg, rgba(11, 15, 20, 0.96) 0%, rgba(11, 15, 20, 0.82) 100%);
  border-bottom: 1px solid rgba(36, 46, 56, 0.9);
  backdrop-filter: blur(16px);
}

.mobile-topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  transform: translateX(-12px);
}

.mobile-topbar-logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 158, 27, 0.22) 0%, rgba(255, 184, 84, 0.9) 100%);
  color: #10161d;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(255, 158, 27, 0.18);
}

.mobile-topbar-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text);
  white-space: nowrap;
}

.mobile-topbar-action {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(36, 46, 56, 0.9);
  background: rgba(20, 27, 34, 0.94);
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(2, 8, 23, 0.18);
}

.mobile-back-btn,
.mobile-refresh-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(36, 46, 56, 0.9);
  background: rgba(20, 27, 34, 0.94);
  color: var(--text);
  box-shadow: 0 8px 18px rgba(2, 8, 23, 0.18);
}

.mobile-back-btn:disabled,
.mobile-refresh-btn:disabled {
  opacity: 0.45;
}

.mobile-topbar-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.mobile-topbar-spacer {
  width: 40px;
  flex: 0 0 auto;
}

.mobile-menu-btn {
  display: none;
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  left: 14px;
  z-index: 140;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(36, 46, 56, 0.95);
  background: rgba(20, 27, 34, 0.96);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 10px 24px rgba(2, 8, 23, 0.28);
}

.sidebar-close {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(36, 46, 56, 0.9);
  background: rgba(20, 27, 34, 0.94);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  padding: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 3px;
  background: var(--amber);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3, 6, 11, 0.58);
  backdrop-filter: blur(2px);
}

.sidebar {
  width: 280px;
  min-height: 100vh;
  height: auto;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid rgba(36, 46, 56, 0.95);
  background: linear-gradient(180deg, #0b0f14 0%, #10161d 100%);
  color: var(--text);
  box-shadow: 14px 0 40px rgba(2, 8, 23, 0.28);
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.012) 0%, rgba(255, 255, 255, 0) 35%);
}

.sidebar > * {
  position: relative;
  z-index: 1;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 18px 18px;
  border-bottom: 1px solid rgba(36, 46, 56, 0.95);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.nayara-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 158, 27, 0.2) 0%, rgba(255, 184, 84, 0.9) 100%);
  box-shadow: 0 12px 24px rgba(255, 158, 27, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nayara-mark span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0b0f14 0%, #1f2933 100%);
}

.brand-title {
  font-size: 15px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text);
}

.brand-subtitle {
  color: var(--muted);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px 14px;
}

.nav-group + .nav-group {
  margin-top: 12px;
}

.nav-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(36, 46, 56, 0.95);
  background: rgba(20, 27, 34, 0.94);
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
}

.nav-group-toggle:hover {
  color: var(--text);
  border-color: rgba(255, 158, 27, 0.18);
}

.nav-group-items {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(36, 46, 56, 0.95);
  background: rgba(16, 22, 28, 0.96);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.sidebar-link:hover {
  transform: translateX(2px);
  border-color: rgba(255, 158, 27, 0.22);
  background: rgba(24, 30, 38, 0.98);
}

.sidebar-link.active {
  padding-left: 12px;
  border-left: 2px solid var(--amber);
  border-color: rgba(255, 158, 27, 0.22);
  background: linear-gradient(90deg, rgba(255, 158, 27, 0.14) 0%, rgba(24, 30, 38, 0.98) 42%, rgba(16, 22, 28, 0.98) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 158, 27, 0.06);
}

.sidebar-link-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.sidebar-link.active .sidebar-link-icon {
  background: rgba(255, 158, 27, 0.14);
  color: var(--amber-glow);
}

.sidebar-footer {
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(36, 46, 56, 0.95);
  background: rgba(11, 15, 20, 0.96);
  color: var(--muted);
}

.btn {
  border-radius: 14px;
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber) 0%, #e8890d 100%);
  color: #0b0f14;
  border: 1px solid rgba(255, 184, 84, 0.25);
  font-weight: 700;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffad36 0%, var(--amber) 100%);
}

.btn-outline {
  background: rgba(20, 27, 34, 0.96);
  border: 1px solid rgba(36, 46, 56, 0.95);
  color: var(--text);
}

.btn-outline:hover {
  border-color: rgba(255, 158, 27, 0.22);
  color: #fff;
}

.card {
  background: linear-gradient(180deg, rgba(20, 27, 34, 0.96) 0%, rgba(16, 22, 28, 0.98) 100%);
  border-radius: 20px;
  border: 1px solid rgba(36, 46, 56, 0.95);
  box-shadow: 0 16px 32px rgba(2, 8, 23, 0.24);
  backdrop-filter: blur(16px);
}

.input {
  background: rgba(16, 22, 28, 0.96);
  border: 1px solid rgba(36, 46, 56, 0.95);
  color: var(--text);
  border-radius: 14px;
}

.input:focus {
  border-color: rgba(255, 158, 27, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 158, 27, 0.12);
}

.label {
  font-weight: 600;
  color: var(--muted);
}

.badge,
.tag-auto {
  border-radius: 999px;
}

.expenses-table th {
  color: #c3cfdb;
}

.expenses-table th,
.expenses-table td {
  border-bottom-color: rgba(36, 46, 56, 0.85);
}

.app-main > div {
  width: 100%;
}

@media (max-width: 980px) {
  .app-main {
    margin-left: 0;
    padding-top: 72px;
    padding-inline: 12px;
  }

  .mobile-topbar {
    display: flex;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar {
    transform: translateX(-102%);
    transition: transform 0.22s ease;
    width: min(88vw, 340px);
    border-right: 1px solid rgba(36, 46, 56, 0.95);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-backdrop.show {
    display: block;
  }
}

@media (max-width: 640px) {
  .app-main {
    padding-inline: 10px;
  }

  .card {
    border-radius: 16px;
  }
}
.landing-page,
.auth-page {
  min-height: 100vh;
  position: relative;
  overflow: auto;
  padding-bottom: env(safe-area-inset-bottom, 0);
  background:
    radial-gradient(900px 360px at 88% -8%, rgba(255, 158, 27, 0.12) 0%, transparent 56%),
    radial-gradient(760px 300px at 0% 12%, rgba(32, 201, 151, 0.08) 0%, transparent 54%),
    linear-gradient(180deg, #090d12 0%, #0b0f14 100%);
  color: var(--text);
}

.landing-page::before,
.landing-page::after,
.auth-page::before,
.auth-page::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.42;
  pointer-events: none;
}

.landing-page::before,
.auth-page::before {
  width: 320px;
  height: 320px;
  right: -110px;
  top: 120px;
  background: rgba(255, 158, 27, 0.12);
}

.landing-page::after,
.auth-page::after {
  width: 220px;
  height: 220px;
  left: -70px;
  top: 560px;
  background: rgba(32, 201, 151, 0.1);
}

.landing-nav,
.landing-main,
.landing-footer,
.auth-shell {
  position: relative;
  z-index: 1;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(18px, 4vw, 48px);
}

.landing-brand,
.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.landing-logo,
.auth-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(20, 27, 34, 0.96);
  border: 1px solid rgba(36, 46, 56, 0.95);
  box-shadow: 0 12px 24px rgba(2, 8, 23, 0.25);
}

.landing-brand-name,
.auth-brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.landing-brand-sub,
.auth-brand-sub {
  font-size: 12px;
  color: var(--muted);
}

.landing-login-btn {
  min-width: 110px;
}

.landing-main {
  padding: 18px clamp(18px, 4vw, 48px) 56px;
  display: grid;
  gap: 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
  padding: 18px 0 12px;
}

.hero-copy h1 {
  margin: 14px 0 16px;
  max-width: 12ch;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  color: var(--text);
}

.hero-copy p {
  max-width: 62ch;
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.7;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

.landing-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 158, 27, 0.22);
  background: rgba(20, 27, 34, 0.92);
  color: #ffd9a1;
  font-size: 13px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn.btn-secondary {
  background: rgba(20, 27, 34, 0.92);
  border: 1px solid rgba(36, 46, 56, 0.95);
  color: var(--text);
}

.btn.btn-secondary:hover {
  border-color: rgba(255, 158, 27, 0.22);
}

.hero-preview {
  display: flex;
  justify-content: center;
}

.preview-window {
  width: min(100%, 560px);
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(36, 46, 56, 0.95);
  background: linear-gradient(180deg, rgba(20, 27, 34, 0.96) 0%, rgba(16, 22, 28, 0.98) 100%);
  box-shadow: 0 22px 48px rgba(2, 8, 23, 0.26);
}

.preview-topbar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.preview-topbar span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(124, 136, 150, 0.3);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.preview-card,
.feature-card,
.benefit-item,
.auth-card {
  border: 1px solid rgba(36, 46, 56, 0.95);
  background: rgba(20, 27, 34, 0.94);
  box-shadow: 0 18px 36px rgba(2, 8, 23, 0.16);
  backdrop-filter: blur(14px);
}

.preview-card {
  border-radius: 18px;
  padding: 16px;
}

.preview-label {
  color: var(--muted);
  font-size: 12px;
}

.preview-value {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.preview-chart {
  margin-top: 14px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(36, 46, 56, 0.95);
  background: rgba(16, 22, 28, 0.96);
}

.preview-chart-title {
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
}

.preview-bars {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  height: 180px;
}

.preview-bars span {
  display: block;
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, var(--amber) 0%, #e96f00 100%);
  box-shadow: 0 16px 28px rgba(255, 158, 27, 0.18);
}

.section {
  padding: 4px 0 0;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.65;
}

.feature-grid,
.benefit-grid {
  display: grid;
  gap: 14px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  border-radius: 18px;
  padding: 18px;
}

.feature-card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 18px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.benefit-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  color: var(--text);
  font-weight: 600;
}

.benefit-item span:first-child {
  color: var(--teal);
  font-size: 18px;
  line-height: 1;
}

.landing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 4vw, 48px) 28px;
  border-top: 1px solid rgba(36, 46, 56, 0.95);
}

.footer-company {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.footer-text {
  margin-top: 6px;
  color: var(--muted);
}

.footer-contact {
  margin-top: 10px;
  display: grid;
  gap: 4px;
  color: var(--muted);
}

.auth-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-shell {
  width: 100%;
  max-width: 480px;
}

.auth-back {
  margin-bottom: 12px;
  border: 1px solid rgba(36, 46, 56, 0.95);
  background: rgba(20, 27, 34, 0.92);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
}

.auth-card {
  border-radius: 28px;
  padding: 26px;
  display: grid;
  gap: 14px;
}

.auth-title {
  margin: 2px 0 0;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}

.auth-copy {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.65;
}

.auth-message {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
}

.auth-message.error {
  background: rgba(255, 84, 104, 0.08);
  color: #ffb8c2;
  border: 1px solid rgba(255, 84, 104, 0.18);
}

.auth-message.success {
  background: rgba(32, 201, 151, 0.08);
  color: #9ff0da;
  border: 1px solid rgba(32, 201, 151, 0.18);
}

.auth-submit,
.auth-forgot {
  width: 100%;
  justify-content: center;
}

.auth-forgot {
  margin-top: 2px;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .benefit-grid {
    grid-template-columns: 1fr 1fr;
  }

  .landing-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .landing-nav,
  .landing-main,
  .landing-footer {
    padding-inline: 12px;
  }

  .landing-main {
    padding-top: 12px;
    gap: 22px;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.2rem, 12vw, 3.5rem);
  }

  .preview-grid,
  .feature-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .auth-card {
    border-radius: 22px;
    padding: 22px;
  }
}


/* src/index.css */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body, #root {
  min-height: 100%;
  height: auto;
}
html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
:root {
  --bg: #06090f;
  --panel: rgba(15, 22, 32, 0.94);
  --panel-hi: rgba(20, 28, 40, 0.96);
  --line: rgba(255, 255, 255, 0.08);
  --amber: #ff8c2f;
  --amber-glow: rgba(255, 140, 47, 0.18);
  --teal: #2dd4bf;
  --teal-glow: rgba(45, 212, 191, 0.18);
  --flare: #ff6d2d;
  --text: #f8fbff;
  --muted: #97a4b6;
  --muted-2: #6e7b8f;
  --dark: var(--bg);
  --card: rgba(18, 24, 34, 0.94);
  --card-soft: rgba(22, 30, 42, 0.96);
  --border: rgba(255, 255, 255, 0.08);
  --accent: var(--amber);
  --accent-dark: #d7731f;
  --text-muted: var(--muted);
  --green: var(--teal);
  --blue: #60a5fa;
  --yellow: #f9b249;
  --red: #f97316;
  --purple: #8b5cf6;
  --font-sans: 'Inter', sans-serif;
  --font-heading: 'Manrope', sans-serif;
}
body {
  font-family: var(--font-sans);
  background:
    radial-gradient(900px 360px at 90% -10%, rgba(255, 140, 47, 0.10) 0%, transparent 56%),
    radial-gradient(900px 360px at 0% 8%, rgba(45, 212, 191, 0.08) 0%, transparent 54%),
    linear-gradient(180deg, #04070b 0%, #06090f 100%);
  color: var(--text);
  min-height: 100vh;
  overscroll-behavior: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6,
.font-display,
.ui-nav-label,
.sidebar-link,
.sidebar-brand,
.nav-group-toggle,
.mobile-topbar-title,
.mobile-menu-title,
.brand-title,
.brand-subtitle,
.login-brand-name,
.login-brand-sub {
  font-family: var(--font-heading);
}
.mono-number,
.dispenser-readout__value,
.stat-card .stat-card-value,
.panel .panel-value,
[data-numeric="true"] {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.02em;
}
code, pre, kbd, samp {
  font-family: 'JetBrains Mono', monospace;
}
.app-shell { display: flex; min-height: 100vh; background: linear-gradient(180deg, #05070f 0%, #06090f 100%); }
.app-main {
  margin-left: 280px;
  flex: 1;
  min-height: 100vh;
  padding: 48px 24px 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 140, 47, 0.05), transparent 28%),
    radial-gradient(circle at bottom left, rgba(45, 212, 191, 0.04), transparent 30%);
}
.mobile-back-btn,
.mobile-refresh-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 19, 30, 0.94);
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}
.mobile-back-btn:disabled,
.mobile-refresh-btn:disabled {
  opacity: 0.55;
}
.mobile-topbar-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.mobile-topbar-spacer {
  width: 40px;
}
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  left: 14px;
  z-index: 140;
  border: 1px solid var(--border);
  background: rgba(14, 18, 26, 0.96);
  color: var(--text);
  border-radius: 14px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}
.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 3px;
  background: var(--amber);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 11, 0.58);
  z-index: 90;
  backdrop-filter: blur(2px);
}
.sidebar {
  width: 280px;
  min-height: 100vh;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #080d16 0%, #0d1421 100%);
  color: var(--text);
  box-shadow: 14px 0 40px rgba(0, 0, 0, 0.32);
}
.sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.012) 0%, rgba(255, 255, 255, 0) 35%);
}
.sidebar > * {
  position: relative;
  z-index: 1;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 18px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nayara-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 140, 47, 0.18) 0%, rgba(255, 188, 114, 0.96) 100%);
  box-shadow: 0 12px 24px rgba(255, 140, 47, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.nayara-mark span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0b0f14 0%, #1f2933 100%);
}
.brand-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}
.brand-subtitle {
  color: var(--muted);
}
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px 14px;
}
.nav-group + .nav-group {
  margin-top: 12px;
}
.nav-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 28, 38, 0.92);
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
}
.nav-group-toggle:hover {
  color: var(--text);
  border-color: rgba(255, 140, 47, 0.18);
}
.nav-group-items {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 24, 33, 0.95);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.sidebar-link:hover {
  transform: translateX(2px);
  border-color: rgba(255, 140, 47, 0.22);
  background: rgba(26, 32, 42, 0.98);
}
.sidebar-link.active {
  padding-left: 12px;
  border-left: 2px solid var(--amber);
  border-color: rgba(255, 140, 47, 0.22);
  background: linear-gradient(90deg, rgba(255, 140, 47, 0.14) 0%, rgba(24, 30, 38, 0.98) 42%, rgba(18, 24, 33, 0.98) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 140, 47, 0.08);
}
.sidebar-link-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.05);
}
.sidebar-link.active .sidebar-link-icon {
  background: rgba(255, 140, 47, 0.16);
}
.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 16px;
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
  background: rgba(14, 18, 26, 0.92);
}
.btn {
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 700;
  border-radius: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--text);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--amber), #ff7635);
  color: #fff;
  padding: 12px 24px;
  font-size: 15px;
  box-shadow: 0 12px 28px rgba(255, 140, 47, 0.16);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ff9f50, #ee6c26);
}
.btn-secondary {
  background: rgba(30, 40, 52, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  padding: 12px 22px;
}
.btn-secondary:hover {
  border-color: rgba(255, 140, 47, 0.18);
  color: var(--amber);
}
.btn-sm {
  padding: 10px 16px;
  font-size: 13px;
  border-radius: 12px;
  min-height: 40px;
}
.btn-outline {
  background: rgba(20, 28, 38, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--text);
  padding: 10px 20px;
}
.btn-outline:hover {
  border-color: rgba(45, 212, 191, 0.24);
  color: var(--teal);
}
.btn-green {
  background: var(--teal);
  color: #061117;
}
.btn-red {
  background: var(--red);
  color: #fff;
}
.contact-grid {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px 12px;
  align-items: center;
}
.contact-label {
  color: #B8C9E8;
}
.contact-whatsapp {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  line-height: 1;
}
.card {
  background: var(--card);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
}
.input {
  width: 100%;
  background: rgba(12, 18, 30, 0.94);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 52px;
  max-width: 100%;
}
.input:focus {
  border-color: rgba(45, 212, 191, 0.28);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}
.input::placeholder {
  color: var(--text-muted);
}
.input[type="date"],
.input[type="month"] {
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
}
.input[type="date"]::-webkit-calendar-picker-indicator,
.input[type="month"]::-webkit-calendar-picker-indicator {
  margin: 0;
  padding: 0;
  cursor: pointer;
}
textarea.input {
  min-height: 110px;
  padding-top: 14px;
}
.label {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
  font-weight: 600;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.auth-page,
.landing-page {
  min-height: 100vh;
  position: relative;
  overflow: auto;
  background:
    radial-gradient(900px 360px at 88% -8%, rgba(255, 140, 47, 0.12) 0%, transparent 56%),
    radial-gradient(760px 300px at 0% 12%, rgba(45, 212, 191, 0.08) 0%, transparent 54%),
    linear-gradient(180deg, #04070b 0%, #06090f 100%);
  color: var(--text);
  padding-bottom: env(safe-area-inset-bottom);
}
.auth-shell,
.landing-main {
  position: relative;
  z-index: 1;
}
.auth-card,
.auth-shell .auth-card,
.landing-page .preview-window,
.feature-card,
.benefit-item,
.auth-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 24, 33, 0.96);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.32);
}
.auth-card {
  width: 100%;
  max-width: 480px;
  margin: 32px auto;
  border-radius: 24px;
  overflow: hidden;
}
.auth-back {
  background: rgba(20, 28, 38, 0.96);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 18px;
  margin-bottom: 20px;
}
.auth-back:hover {
  border-color: rgba(255, 140, 47, 0.18);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-start;
  padding: 24px 24px 14px;
}
.auth-logo,
.landing-logo {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
}
.auth-brand-name,
.auth-brand-sub,
.landing-brand-name,
.landing-brand-sub {
  color: var(--text);
}
.auth-title,
.hero-copy h1,
.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3.4rem);
  margin: 0;
  color: var(--text);
  line-height: 1.05;
}
.auth-copy,
.landing-copy,
.hero-copy p,
.section-heading p,
.footer-text,
.footer-company {
  color: var(--muted);
  margin: 0;
}
.auth-body,
.landing-main {
  padding: 24px;
}
.auth-message {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
}
.auth-message.error {
  background: rgba(249, 115, 22, 0.12);
  color: #ffcb9a;
}
.auth-message.success {
  background: rgba(45, 212, 191, 0.12);
  color: #a6f0e1;
}
.landing-nav,
.landing-footer {
  position: relative;
  z-index: 1;
}
.landing-nav,
.landing-footer,
.hero-preview,
.preview-window,
.feature-grid,
.benefit-grid {
  width: 100%;
}
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(18px, 4vw, 48px);
}
.landing-brand,
.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.landing-brand-name,
.auth-brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.landing-brand-sub,
.auth-brand-sub {
  font-size: 12px;
  color: var(--muted);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
  padding: 18px 0 12px;
}
.hero-copy .landing-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 140, 47, 0.12);
  color: #ffd9a1;
  font-size: 13px;
  font-weight: 600;
}
.hero-copy p {
  max-width: 62ch;
  margin: 18px 0 24px;
  line-height: 1.75;
  font-size: clamp(1rem, 1.4vw, 1.06rem);
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.preview-window {
  width: min(100%, 560px);
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 24, 33, 0.96);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
}
.preview-topbar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.preview-topbar span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.preview-card,
.feature-card,
.benefit-item {
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 24, 33, 0.95);
}
.preview-label,
.feature-card h3,
.benefit-item span:last-child {
  color: var(--muted);
}
.preview-value,
.feature-card h3 {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.preview-chart {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 22, 31, 0.95);
}
.preview-chart-title {
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--muted);
}
.preview-bars {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  height: 180px;
}
.preview-bars span {
  display: block;
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, var(--amber) 0%, #e96f00 100%);
  box-shadow: 0 16px 28px rgba(255, 140, 47, 0.18);
}
.section {
  padding: 4px 0 0;
}
.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.section-heading p {
  margin: 0;
  color: var(--muted);
}
.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.benefit-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.benefit-item span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(45, 212, 191, 0.16);
  color: var(--teal);
}
.landing-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 48px);
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-company,
.footer-text,
.footer-contact div {
  color: var(--muted);
}
.footer-company {
  font-size: 13px;
  font-weight: 700;
}
.footer-contact div {
  font-size: 13px;
}
.page-shell {
  padding: 26px;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-menu-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-menu-title {
  font-size: 20px;
  font-weight: 800;
}
.mobile-menu-sub {
  font-size: 12px;
  color: #A7B7DA;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.mobile-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.mobile-menu-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 12px;
  border-radius: 16px;
  text-decoration: none;
  color: #E6EDFF;
  background: linear-gradient(180deg, rgba(13, 38, 110, 0.92) 0%, rgba(9, 31, 92, 0.95) 100%);
  border: 1px solid rgba(64, 106, 190, 0.6);
  box-shadow: 0 10px 22px rgba(5, 21, 58, 0.28);
  text-align: center;
  font-weight: 700;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.mobile-menu-tile:hover {
  background: linear-gradient(180deg, rgba(23, 74, 190, 0.92) 0%, rgba(16, 54, 140, 0.96) 100%);
  border-color: rgba(132, 178, 255, 0.8);
  box-shadow: 0 14px 28px rgba(8, 30, 86, 0.38);
  transform: translateY(-2px);
}
.mobile-menu-tile.active {
  background: rgba(255, 140, 47, 0.14);
  color: var(--text);
  border-color: rgba(255, 140, 47, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 140, 47, 0.08), 0 14px 28px rgba(0, 0, 0, 0.28);
}
.mobile-menu-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #F8FBFF;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.mobile-menu-tile.active .mobile-menu-icon {
  background: #D8E5FF;
  color: #123C9E;
}
.mobile-menu-label {
  font-size: 13px;
}
.attendance-month-card {
  padding: 12px;
  min-width: 0;
  width: 100%;
  max-width: 220px;
}
.attendance-month-label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
}
.attendance-month-input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 13px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 > *,
.grid-3 > *,
.grid-4 > * {
  min-width: 0;
}
.closing-entry-page {
  width: 100%;
}
.closing-top-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.closing-chip {
  background: #0E285E;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.closing-chip-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.closing-chip strong {
  font-size: 14px;
  color: var(--text);
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.closing-chip .input {
  width: 100%;
  min-width: 0 !important;
  font-size: 14px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.owner-shift-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-weight: 700;
  flex-wrap: wrap;
}
.owner-shift-list {
  display: grid;
  gap: 10px;
}
.owner-shift-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
}
.owner-shift-action {
  display: flex;
  align-items: end;
}
.owner-shift-remove {
  white-space: nowrap;
  min-width: 100px;
}
.owner-shift-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.owner-employee-list {
  display: grid;
  gap: 10px;
}
.owner-employee-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.owner-employee-remove {
  min-width: 100px;
  white-space: nowrap;
}
.attendance-history-list {
  display: grid;
  gap: 8px;
}
.attendance-history-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.4fr) repeat(3, minmax(70px, 0.7fr)) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(8, 15, 24, 0.6);
}
.attendance-history-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.attendance-history-row span {
  color: #94A3B8;
  font-size: 12px;
}
.attendance-history-row strong {
  color: var(--text);
  font-size: 14px;
}
.attendance-history-status {
  border-radius: 999px;
  padding: 6px 9px;
  white-space: nowrap;
  font-weight: 700;
}
.attendance-history-status.done {
  color: #86EFAC;
  background: rgba(34, 197, 94, 0.12);
}
.attendance-history-status.present {
  color: #FCD34D;
  background: rgba(245, 158, 11, 0.12);
}
.attendance-history-status.not-marked {
  color: #94A3B8;
  background: rgba(148, 163, 184, 0.12);
}
.closing-chip.ok {
  border-color: #22c55e66;
  background: #f0fff4;
}
.closing-chip.warn {
  border-color: #ef444466;
  background: #fff5f5;
}
.closing-card {
  border-radius: 18px;
}
.closing-breakdown-row {
  align-items: end;
}
.udhari-breakdown-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.udhari-breakdown-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.udhari-row-wrap {
  border: 1px solid #D8E2EE;
  border-radius: 12px;
  background: #0F285E;
  margin-bottom: 10px;
}
.udhari-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.udhari-row:hover {
  background: #14346F;
}
.udhari-row-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  font-size: 12px;
  color: #C0D2EF;
  padding: 0 12px 12px;
}
@media (max-width: 1024px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .app-main {
    margin-left: 0;
    padding-top: 36px;
    padding-bottom: 20px;
    width: 100%;
    overflow-x: hidden;
  }
  .app-main > div {
    padding: 16px !important;
    max-width: 100% !important;
  }
  .page-shell {
    padding: 16px;
  }
  .mobile-menu-btn { display: inline-flex; }
  .mobile-menu-btn.open {
    opacity: 0;
    pointer-events: none;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    padding-top: calc(56px + env(safe-area-inset-top));
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.show { display: block; }
  .card {
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  }
  .dashboard-kpi {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 160px;
    padding: 28px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(16, 22, 30, 0.96);
    box-shadow: none;
    color: var(--text);
  }
  .dashboard-kpi-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
  }
  .dashboard-kpi-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
  }
  .dashboard-kpi-heading {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
    font-weight: 700;
  }
  .dashboard-kpi-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .dashboard-kpi-value {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.04;
    color: var(--text);
  }
  .dashboard-kpi-value {
    font-size: clamp(1.55rem, 2.7vw, 2.1rem);
    font-weight: 900;
    line-height: 1.04;
    color: var(--text);
  }
  .dashboard-kpi-meta,
  .dashboard-kpi-delta {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
  }
  .dashboard-kpi-meta {
    margin-top: 6px;
  }
  .dashboard-kpi-delta {
    margin-top: 4px;
  }
  .dashboard-kpi.kpi-cash,
  .dashboard-kpi.kpi-udhari {
    border-color: rgba(249, 115, 22, 0.24);
    border-left: 4px solid #f97316;
  }
  .dashboard-kpi.kpi-cash .dashboard-kpi-icon,
  .dashboard-kpi.kpi-udhari .dashboard-kpi-icon {
    background: rgba(249, 115, 22, 0.16);
    color: #f97316;
  }
  .dashboard-kpi.kpi-cash .dashboard-kpi-value,
  .dashboard-kpi.kpi-udhari .dashboard-kpi-value {
    color: #f97316;
  }
  .dashboard-kpi.kpi-upi {
    border-color: rgba(45, 212, 191, 0.24);
    border-left: 4px solid var(--teal);
  }
  .dashboard-kpi.kpi-upi .dashboard-kpi-icon {
    background: rgba(45, 212, 191, 0.16);
    color: var(--teal);
  }
  .dashboard-kpi.kpi-upi .dashboard-kpi-value {
    color: var(--teal);
  }
  .dashboard-kpi.kpi-sales {
    border-color: rgba(34, 197, 94, 0.24);
    border-left: 4px solid #22c55e;
  }
  .dashboard-kpi.kpi-sales .dashboard-kpi-icon {
    background: rgba(34, 197, 94, 0.14);
    color: #22c55e;
  }
  .dashboard-kpi.kpi-sales .dashboard-kpi-value {
    color: #22c55e;
  }
  .dashboard-kpi.kpi-cash .dashboard-kpi-meta,
  .dashboard-kpi.kpi-upi .dashboard-kpi-meta,
  .dashboard-kpi.kpi-sales .dashboard-kpi-meta,
  .dashboard-kpi.kpi-udhari .dashboard-kpi-meta {
    color: var(--muted);
  }
  .input {
    min-height: 44px;
  }
  .expenses-table { min-width: 760px; }

  .landing-nav,
  .landing-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .landing-nav {
    padding-top: 20px;
    padding-bottom: 16px;
  }
  .landing-footer {
    padding-top: 22px;
    padding-bottom: 22px;
  }
  .landing-brand,
  .auth-brand {
    flex-wrap: wrap;
    justify-content: center;
  }
  .landing-brand-name,
  .auth-brand-name {
    font-size: 14px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .preview-grid,
  .feature-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }
  .preview-window,
  .auth-card {
    width: 100%;
    max-width: 100%;
  }
  .preview-window {
    margin: 0 auto;
  }
  .auth-card {
    margin: 28px 18px 32px;
  }
  .auth-body {
    padding: 20px;
  }
  .auth-back {
    width: auto;
  }
  .hero-copy p {
    margin: 16px 0 20px;
  }
  .preview-bars {
    height: 140px;
  }

  .closing-top-chips {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .udhari-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .udhari-row-detail {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 860px) {
  .closing-top-chips {
    grid-template-columns: 1fr;
  }

  .owner-shift-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .owner-shift-action {
    justify-content: stretch;
  }

  .owner-shift-remove {
    width: 100%;
  }

  .owner-shift-actions .btn {
    width: 100%;
  }

  .owner-employee-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .owner-employee-remove {
    width: 100%;
  }

  .attendance-history-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .attendance-history-row > div:first-child {
    grid-column: 1 / -1;
  }

  .attendance-history-status {
    justify-self: start;
  }
}
@media (max-width: 640px) {
  .landing-nav,
  .landing-footer {
    padding-left: 14px;
    padding-right: 14px;
  }
  .landing-nav {
    gap: 14px;
  }
  .landing-footer {
    gap: 14px;
    text-align: center;
  }
  .landing-brand,
  .auth-brand {
    justify-content: center;
  }
  .landing-login-btn,
  .hero-actions .btn {
    width: 100%;
  }
  .hero-copy h1 {
    font-size: 2.2rem;
  }
  .preview-window {
    padding: 18px;
  }
  .preview-grid {
    gap: 10px;
  }
  .feature-grid,
  .benefit-grid {
    gap: 14px;
  }
  .auth-card {
    margin: 20px 14px 24px;
  }
  .auth-body {
    padding: 18px;
  }
  .auth-brand {
    gap: 10px;
    text-align: center;
  }
  .auth-brand > div {
    width: 100%;
  }
  .auth-title {
    font-size: 2rem;
  }
}
.comparison-table-head,
.comparison-table-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 12px;
  align-items: center;
}
.comparison-table-row {
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.comparison-segment {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-soft);
  margin-bottom: 14px;
}
.comparison-page .card,
.expenses-page .card {
  padding: 18px;
}
.comparison-page .form-group,
.expenses-page .form-group {
  gap: 7px;
}
.comparison-range-text {
  margin-top: 4px;
  font-size: 12px;
  color: #64748B;
}
.comparison-coverage {
  border: 1px solid #93C5FD66;
  background: #0E2A63;
  color: #D9E8FF;
}
.dssr-top-controls {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}
.dssr-control {
  grid-column: span 3;
  min-width: 0;
}
.dssr-control-sm {
  grid-column: span 2;
}
.dssr-auto-date {
  grid-column: span 4;
  align-self: end;
  white-space: normal;
}
.dssr-form-grid {
  align-items: end;
}
.dssr-actions {
  align-items: center;
}
@media (max-width: 640px) {
  .mobile-menu-btn {
    top: calc(10px + env(safe-area-inset-top));
    left: 10px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .sidebar {
    width: min(88vw, 320px);
  }

  .app-main > div {
    padding: 12px !important;
  }

  .card {
    padding: 14px;
    border-radius: 14px;
  }

  .closing-entry-page h1,
  .comparison-page h1,
  .expenses-page h1 {
    font-size: 24px !important;
    line-height: 1.15;
  }

  .closing-top-chips {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .owner-shift-toggle {
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
  }

  .owner-shift-row .label {
    font-size: 12px;
  }

  .owner-shift-row .input {
    font-size: 14px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .owner-shift-actions {
    gap: 8px;
  }

  .closing-breakdown-row > :last-child {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .dssr-top-controls {
    gap: 6px !important;
  }

  .dssr-control-sm,
  .dssr-control-sm + .dssr-control {
    width: 100%;
  }

  .dashboard-header-row {
    flex-direction: column;
    align-items: stretch !important;
  }

  .dashboard-header-meta {
    max-width: 100%;
  }

  .dashboard-date-filter-card {
    width: 100%;
    margin-left: 0;
  }

  .dashboard-date-filter-controls {
    flex-wrap: wrap;
    gap: 8px;
  }

  .dashboard-date-filter-input {
    width: 100%;
    max-width: 100%;
  }

  .dashboard-date-filter-card .btn {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
  }

  .expenses-table {
    min-width: 620px;
  }

  .sidebar-footer {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
}
/* Splash overlay */
.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(900px 360px at 70% -8%, #2563EB44 0%, transparent 60%),
    radial-gradient(1200px 520px at 10% 0%, #0EA5E944 0%, transparent 60%),
    linear-gradient(135deg, #040E26 0%, #0A1E47 52%, #0A1637 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E9F2FF;
  overflow: hidden;
  animation: splashFade 2s ease forwards;
}
.splash-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 36px;
  background: linear-gradient(145deg, rgba(20, 52, 118, 0.78), rgba(10, 33, 80, 0.9));
  border: 1px solid rgba(104, 161, 255, 0.4);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(5, 16, 42, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}
.splash-logo {
  width: min(180px, 60vw);
  height: auto;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.35));
  display: block;
  margin: 0 auto;
}
.splash-orb {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #34D399 0%, #0EA5E9 40%, #0B3A94 90%);
  box-shadow:
    0 0 0 8px rgba(14, 165, 233, 0.2),
    0 12px 32px rgba(0, 0, 0, 0.35),
    inset 0 0 24px rgba(255, 255, 255, 0.25);
  animation: splashPulse 2s ease-in-out infinite;
  overflow: hidden;
}
.splash-orb::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.6), transparent 55%);
  filter: blur(1px);
}
.splash-nozzle {
  position: absolute;
  right: -8px;
  bottom: 18px;
  width: 60px;
  height: 16px;
  border-radius: 10px;
  background: linear-gradient(90deg, #F97316 0%, #FDBA74 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
  transform: rotate(-12deg);
}
.splash-nozzle::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 5px;
  width: 38px;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, #0EA5E9 0%, #22C55E 100%);
}
.splash-drop {
  position: absolute;
  left: 18px;
  top: 16px;
  width: 18px;
  height: 26px;
  border-radius: 10px 10px 12px 12px;
  background: linear-gradient(180deg, #A7F3D0 0%, #34D399 45%, #0EA5E9 100%);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.45);
  animation: splashDrift 1.8s ease-in-out infinite;
}
.splash-title {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow:
    0 10px 30px rgba(14, 165, 233, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.6);
}
.splash-sub {
  color: #C7DBFF;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.splash-meter {
  position: relative;
  width: min(360px, 90vw);
  height: 12px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.08));
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.splash-meter span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #22C55E 0%, #F97316 50%, #3B82F6 100%);
  background-size: 200% 100%;
  animation: splashFlow 1.1s linear infinite;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.35));
}
@keyframes splashPulse {
  0%, 100% { transform: scale(0.98); box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.18), 0 12px 32px rgba(0, 0, 0, 0.35); }
  50% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(14, 165, 233, 0.12), 0 18px 36px rgba(0, 0, 0, 0.4); }
}
@keyframes splashFlow {
  0% { transform: translateX(-40%); }
  100% { transform: translateX(40%); }
}
@keyframes splashDrift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes splashFade {
  0%, 80% { opacity: 1; }
  100% { opacity: 0; }
}
.tanker-page {
  display: grid;
  gap: 18px;
}
.tanker-page .page-heading-row,
.tanker-page .section-heading,
.tanker-entry-header,
.tanker-return-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.tanker-page .page-heading-row h1,
.tanker-page .section-heading h2,
.tanker-entry-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.tanker-page .page-heading-row p,
.tanker-entry-header p,
.muted-text {
  color: #94a3b8;
  margin: 6px 0 0;
}
.tanker-page .field {
  display: grid;
  gap: 7px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
}
.tanker-calculation {
  display: grid;
  gap: 3px;
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid #263448;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  color: #94a3b8;
}
.tanker-calculation strong {
  color: #f8fafc;
  font-size: 22px;
}
.tanker-calculation small {
  color: #64748b;
}
.tanker-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 10px;
  margin: 14px 0;
}
.tanker-entry-list {
  display: grid;
  gap: 12px;
}
.tanker-entry-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #263448;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}
.tanker-entry-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.tanker-entry-stats div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.tanker-entry-stats span,
.tanker-return-preview {
  color: #94a3b8;
  font-size: 12px;
}
.tanker-entry-stats strong,
.tanker-return-preview strong {
  color: #f8fafc;
}
.tanker-return-row {
  align-items: end;
  justify-content: flex-start;
}
.tanker-payment-grid {
  flex: 1 1 620px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.tanker-settlement {
  flex: 1 1 620px;
  display: grid;
  gap: 10px;
}
.tanker-breakdown-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #94a3b8;
}
.tanker-breakdown-heading .input {
  width: 150px;
  min-height: 40px;
}
.tanker-breakdown-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 0.45fr) 44px;
  gap: 8px;
  margin-top: 8px;
}
.tanker-breakdown-total {
  color: #22c55e;
  font-weight: 700;
  text-align: right;
}
.tanker-dashboard-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.tanker-dashboard-row {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 1fr 1fr;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}
.tanker-dashboard-row strong {
  color: var(--text);
}
.tanker-return-row .field {
  flex: 1 1 280px;
}
.tanker-return-preview {
  display: grid;
  gap: 4px;
  min-width: 130px;
  padding-bottom: 10px;
}
.tanker-returned-meta {
  color: #94a3b8;
  font-size: 13px;
}
.tanker-edit-button {
  justify-self: end;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.72);
}
.tanker-edit-modal {
  width: min(680px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  display: grid;
  gap: 16px;
}
@media (max-width: 700px) {
  .tanker-page .page-heading-row,
  .tanker-entry-header,
  .tanker-return-row {
    align-items: stretch;
    flex-direction: column;
  }

  .tanker-entry-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tanker-filters {
    grid-template-columns: 1fr;
  }

  .tanker-return-row .btn,
  .tanker-page .tanker-form-card > .btn {
    width: 100%;
    justify-content: center;
  }

  .tanker-return-preview {
    padding-bottom: 0;
  }

  .tanker-payment-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tanker-breakdown-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .tanker-breakdown-heading .input,
  .tanker-breakdown-heading .btn {
    width: 100%;
    justify-content: center;
  }

  .tanker-breakdown-row {
    grid-template-columns: 1fr 1fr 44px;
  }

  .tanker-dashboard-row {
    grid-template-columns: 1fr 1fr;
  }
}

:root {
  --bg: #081019;
  --panel: rgba(18, 25, 35, 0.96);
  --panel-hi: rgba(24, 33, 45, 0.98);
  --line: rgba(148, 163, 184, 0.14);
  --amber: #ff9e1b;
  --amber-glow: #ffbf63;
  --teal: #22d3a5;
  --teal-glow: #5eead4;
  --flare: #ff5f73;
  --text: #eef3f8;
  --muted: #97a6b8;
  --muted-2: #6d7b8f;
}

html,
body,
#root {
  min-height: 100%;
}

body {
  background:
    radial-gradient(900px 420px at 88% -8%, rgba(255, 158, 27, 0.10) 0%, transparent 60%),
    radial-gradient(760px 300px at 0% 12%, rgba(34, 211, 165, 0.08) 0%, transparent 54%),
    linear-gradient(180deg, #071019 0%, #08121b 100%);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  min-height: 100dvh;
  background:
    radial-gradient(900px 420px at 84% -8%, rgba(255, 158, 27, 0.08) 0%, transparent 56%),
    radial-gradient(900px 360px at 0% 10%, rgba(34, 211, 165, 0.06) 0%, transparent 56%),
    linear-gradient(180deg, #061018 0%, #081019 100%);
}

.app-main {
  margin-left: 280px;
  min-height: 100dvh;
  padding: 84px 22px 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 158, 27, 0.05), transparent 30%),
    radial-gradient(circle at bottom left, rgba(34, 211, 165, 0.04), transparent 32%);
}

.app-content-frame {
  width: min(100%, 1440px);
  margin: 0 auto;
}

.page-shell {
  width: 100%;
  padding: 0;
}

.card,
.preview-window,
.feature-card,
.benefit-item,
.auth-card,
.sidebar,
.closing-chip,
.dashboard-kpi,
.dashboard-date-filter-card,
.udhari-row-wrap,
.nav-group-toggle,
.sidebar-link {
  backdrop-filter: blur(16px);
}

.card,
.preview-window,
.feature-card,
.benefit-item,
.auth-card {
  background: linear-gradient(180deg, rgba(18, 25, 35, 0.98) 0%, rgba(14, 20, 29, 0.98) 100%);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 14px 34px rgba(0, 6, 18, 0.26);
  border-radius: 22px;
}

.card {
  padding: 20px;
}

.input {
  background: rgba(11, 17, 25, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--text);
  border-radius: 16px;
  min-height: 48px;
  padding: 12px 16px;
}

.input:focus {
  border-color: rgba(34, 211, 165, 0.34);
  box-shadow: 0 0 0 4px rgba(34, 211, 165, 0.10);
}

.label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.btn {
  min-height: 46px;
  border-radius: 16px;
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber) 0%, #ff7a1a 100%);
  color: #0a1118;
  border: 1px solid rgba(255, 191, 99, 0.18);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffb03f 0%, var(--amber) 100%);
}

.btn-outline,
.btn-secondary {
  background: rgba(18, 25, 35, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--text);
}

.btn-outline:hover,
.btn-secondary:hover {
  border-color: rgba(255, 158, 27, 0.20);
}

.badge {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--text);
}

.badge-red {
  background: rgba(255, 95, 115, 0.10);
  border-color: rgba(255, 95, 115, 0.20);
  color: #ffd3da;
}

.mobile-topbar {
  display: none;
  align-items: center;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 10px;
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 130;
  min-height: 68px;
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  background: rgba(8, 16, 25, 0.90);
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
  backdrop-filter: blur(18px);
}

.mobile-topbar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  transform: none;
}

.mobile-topbar-logo,
.mobile-topbar-action,
.mobile-menu-btn {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.20);
}

.mobile-topbar-logo {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 158, 27, 0.22), rgba(255, 191, 99, 0.92));
  color: #081019;
  font-weight: 900;
}

.mobile-topbar-label {
  font-size: 13px;
  letter-spacing: 0.14em;
  font-weight: 800;
  white-space: nowrap;
}

.mobile-topbar-action {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(18, 25, 35, 0.96);
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn {
  display: none;
  position: static;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(18, 25, 35, 0.96);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-btn span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--amber);
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3, 6, 11, 0.56);
  backdrop-filter: blur(3px);
}

.sidebar {
  width: 280px;
  min-height: 100dvh;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(10, 16, 24, 0.98) 0%, rgba(13, 19, 28, 0.98) 100%);
  border-right: 1px solid rgba(148, 163, 184, 0.10);
  box-shadow: 16px 0 42px rgba(0, 0, 0, 0.22);
}

.sidebar-brand,
.sidebar-footer {
  border-color: rgba(148, 163, 184, 0.10);
}

.sidebar-brand {
  padding: 22px 18px 16px;
}

.brand-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.sidebar-nav {
  padding: 12px;
}

.nav-group-toggle {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.10);
  background: rgba(18, 25, 35, 0.96);
  color: var(--muted-2);
}

.sidebar-link {
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.10);
  background: rgba(14, 20, 29, 0.96);
}

.sidebar-link.active {
  border-left-color: var(--amber);
  background: linear-gradient(90deg, rgba(255, 158, 27, 0.14) 0%, rgba(18, 25, 35, 0.98) 54%);
}

.sidebar-link-icon {
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active .sidebar-link-icon {
  background: rgba(255, 158, 27, 0.15);
  color: var(--amber-glow);
}

.sidebar-footer {
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  background: rgba(10, 16, 24, 0.96);
}

.dashboard-header-row {
  align-items: stretch !important;
}

.dashboard-header-meta h1 {
  font-size: clamp(1.6rem, 3vw, 2.35rem) !important;
  line-height: 1.05;
}

.dashboard-date-filter-card {
  padding: 16px;
  border-radius: 20px;
  background: rgba(18, 25, 35, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.dashboard-date-filter-controls {
  gap: 10px;
}

.dashboard-date-filter-input {
  max-width: 100%;
}

.grid-2,
.grid-3,
.grid-4 {
  gap: 18px;
}

.grid-2 > *,
.grid-3 > *,
.grid-4 > * {
  min-width: 0;
}

.dashboard-kpi,
.stat-card {
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(18, 25, 35, 0.98), rgba(14, 20, 29, 0.98));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.20);
  padding: 18px;
}

.dashboard-kpi-strip {
  gap: 10px;
  min-height: 48px;
  align-items: center;
}

.dashboard-kpi-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.dashboard-kpi-heading {
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
}

.dashboard-kpi-value {
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  line-height: 1.04;
}

.dashboard-kpi-meta,
.dashboard-kpi-delta {
  color: var(--muted);
  font-size: 13px;
}

.preview-window {
  width: min(100%, 560px);
  padding: 18px;
  border-radius: 26px;
}

.preview-card {
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(11, 17, 25, 0.78);
}

.preview-label,
.feature-card p,
.benefit-item span:last-child,
.footer-text,
.footer-contact div,
.auth-copy,
.auth-brand-sub,
.landing-brand-sub {
  color: var(--muted);
}

.preview-value {
  color: var(--text);
}

.preview-chart {
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(11, 17, 25, 0.76);
}

.section-heading h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.feature-grid {
  gap: 16px;
}

.feature-card {
  border-radius: 20px;
  padding: 18px;
}

.feature-card h3 {
  color: var(--text);
  font-size: 18px;
}

.benefit-grid {
  gap: 12px;
}

.benefit-item {
  border-radius: 18px;
  padding: 16px 18px;
}

.benefit-item span:first-child {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(34, 211, 165, 0.12);
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.landing-nav,
.landing-main,
.landing-footer,
.auth-page,
.auth-shell {
  position: relative;
  z-index: 1;
}

.landing-nav,
.landing-footer {
  padding-inline: clamp(16px, 4vw, 48px);
}

.landing-main {
  padding: 18px clamp(16px, 4vw, 48px) 56px;
}

.landing-logo,
.auth-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(18, 25, 35, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.auth-card {
  padding: 24px;
  border-radius: 28px;
}

.auth-title {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
}

.auth-message.error {
  background: rgba(255, 95, 115, 0.10);
  border: 1px solid rgba(255, 95, 115, 0.18);
}

.auth-message.success {
  background: rgba(34, 211, 165, 0.10);
  border: 1px solid rgba(34, 211, 165, 0.18);
}

.mobile-menu-grid {
  gap: 12px;
}

.mobile-menu-tile {
  border-radius: 18px;
}

.comparison-page .card,
.expenses-page .card {
  padding: 18px;
}

.closing-top-chips {
  gap: 12px;
}

.closing-chip {
  border-radius: 16px;
  background: rgba(18, 25, 35, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.12);
  padding: 12px 14px;
}

.udhari-row-wrap {
  background: rgba(18, 25, 35, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.udhari-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 980px) {
  .app-main {
    margin-left: 0;
    padding: 72px 12px 20px;
  }

  .mobile-topbar {
    display: grid;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .sidebar {
    width: min(88vw, 340px);
    inset: 12px auto 12px 12px;
    border-radius: 28px;
    transform: translateX(calc(-100% - 18px));
    transition: transform 0.22s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-backdrop.show {
    display: block;
  }

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

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn,
  .landing-login-btn {
    width: 100%;
  }

  .feature-grid,
  .benefit-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .landing-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-header-row {
    gap: 12px !important;
  }

  .dashboard-date-filter-card {
    width: 100%;
    margin-left: 0 !important;
  }
}

@media (max-width: 640px) {
  .app-main {
    padding-inline: 10px;
  }

  .card,
  .auth-card,
  .preview-window,
  .feature-card,
  .benefit-item {
    border-radius: 18px;
    padding: 16px;
  }

  .mobile-topbar {
    padding-inline: 10px;
  }

  .mobile-topbar-brand {
    gap: 8px;
  }

  .mobile-topbar-label {
    font-size: 12px;
  }

  .sidebar {
    width: min(90vw, 320px);
  }

  .landing-main,
  .landing-nav,
  .landing-footer {
    padding-inline: 12px;
  }

  .landing-main {
    padding-top: 10px;
    gap: 20px;
  }
}
