:root {
  --navy: #13294B;
  --navy-2: #1E3A5F;
  --orange: #FF7A1A;
  --orange-hover: #E66A0F;
  --orange-soft: #FFF3E8;
  --bg: #F7F8FA;
  --white: #FFFFFF;
  --text: #13294B;
  --text-muted: #64748B;
  --border: #E5E9F0;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(19, 41, 75, 0.05);
  --shadow: 0 2px 10px rgba(19, 41, 75, 0.06);
  --shadow-lg: 0 12px 32px rgba(19, 41, 75, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.flex { display: flex; align-items: center; gap: 8px; }
.text-muted { color: var(--text-muted); }
.text-right { text-align: right; }
.hidden { display: none !important; }
.mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, Menlo, Consolas, monospace; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
  border: 1.5px solid transparent; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-hover); }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: var(--navy-2); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-outline:hover { background: var(--white); border-color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: rgba(19,41,75,.06); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--navy); margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, .12);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-error {
  font-size: 13px; color: var(--danger);
  background: #FEF2F2; padding: 10px 12px;
  border-radius: var(--radius-sm); margin-bottom: 12px;
  border: 1px solid #FECACA;
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* Badges */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.badge-pending { background: #FEF3C7; color: #92400E; }
.badge-processing { background: #DBEAFE; color: #1E40AF; }
.badge-ready { background: #E0E7FF; color: #3730A3; }
.badge-completed { background: #D1FAE5; color: #065F46; }
.badge-cancelled { background: #FEE2E2; color: #991B1B; }
.badge-paid { background: #D1FAE5; color: #065F46; }
.badge-unpaid { background: #FEE2E2; color: #991B1B; }
.badge-partial { background: #FEF3C7; color: #92400E; }

/* Brand */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-hover) 100%);
  color: #fff; font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: .02em;
}
.brand-text { line-height: 1.15; }
.brand-text strong { display: block; font-size: 14px; color: var(--navy); }
.brand-text small { color: var(--text-muted); font-size: 11px; }

/* Pill */
.pill {
  display: inline-block; padding: 5px 12px; border-radius: 20px;
  background: var(--orange-soft); color: var(--orange-hover);
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
}

/* Empty states */
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state .empty-icon { font-size: 44px; margin-bottom: 12px; }
.empty-state h3 { color: var(--navy); margin-bottom: 6px; font-size: 17px; }
.empty-state p { color: var(--text-muted); font-size: 14px; }

/* =========================================================
   Shared: Mobile Drawer / Sidebar
   Used by landing + future pages (login, register, dashboard)
   ========================================================= */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8,19,39,.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 90;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(340px, 92vw);
  background: #fff;
  box-shadow: -12px 0 40px rgba(15,26,44,.18);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.22,1,.36,1);
  z-index: 100;
  display: flex;
  flex-direction: column;
}
.drawer.is-open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #E4E8EF;
}
.drawer-close {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid #E4E8EF;
  background: #fff;
  color: #13294B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease;
}
.drawer-close:hover { background: #F6F8FB; }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  -webkit-overflow-scrolling: touch;
}

.drawer-group { display: grid; gap: 10px; margin-bottom: 22px; }
.drawer-group:last-child { margin-bottom: 0; }

.drawer-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #5A6472;
  font-weight: 700;
  padding: 0 4px;
  margin-bottom: 2px;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  color: #0F1A2C;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease;
}
.drawer-item:hover { background: #F6F8FB; border-color: #E4E8EF; }

.drawer-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,122,26,.12);
  color: #E5690E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drawer-item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.drawer-item-text strong { font-size: .95rem; font-weight: 600; }
.drawer-item-text small {
  font-size: .8rem;
  color: #5A6472;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-foot {
  padding: 16px 20px;
  border-top: 1px solid #E4E8EF;
  color: #5A6472;
  font-size: .8rem;
  text-align: center;
}

.btn-block { width: 100%; display: flex; }