:root {
  --ocean: #0a4f6e;
  --ocean-mid: #0d6b96;
  --ocean-light: #1a8fc4;
  --teal: #0e9f8e;
  --teal-light: #13c4b0;
  --sand: #f5f0e8;
  --sand-dark: #e8e0cc;
  --coral: #e8614a;
  --gold: #d4a017;
  --gold-light: #f0c040;
  --bg: #0b1e2d;
  --panel: #102636;
  --card: #163347;
  --border: #1e4a68;
  --text: #e8f4fc;
  --muted: #6a9ab8;
  --green: #2ec27e;
  --red: #e8614a;
  --yellow: #f0c040;
  --purple: #8b5cf6;
  --font-head: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

:root[data-theme='light'] {
  --bg: #f4f8fc;
  --panel: #ffffff;
  --card: #ffffff;
  --border: #d6e2ee;
  --text: #1a2a3a;
  --muted: #5a738c;
  --shadow: 0 4px 18px rgba(11, 30, 45, 0.12);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  min-height: 100vh;
}
#root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Login */
.login-page {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: var(--bg);
  background-image: linear-gradient(rgba(11, 30, 45, 0.58), rgba(11, 30, 45, 0.58)), var(--login-bg-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.login-theme-row {
  position: absolute;
  top: 18px;
  right: 18px;
}
.login-theme-toggle {
  backdrop-filter: blur(4px);
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px 32px;
  box-shadow: var(--shadow);
}
.login-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.login-logo {
  height: 72px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.login-title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}
.login-hint {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.4;
}
.login-form .fgroup {
  margin-bottom: 14px;
}
.login-error {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  background: rgba(232, 97, 74, 0.12);
  border: 1px solid rgba(232, 97, 74, 0.35);
  color: var(--coral);
}
.login-submit {
  margin-top: 8px;
}
.tb-logout {
  cursor: pointer;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.85);
}
.tb-logout:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.topbar {
  background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-mid) 100%);
  padding: 8px 24px;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand.brand-logo-only {
  gap: 0;
}
.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--teal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.brand-icon-fallback {
  width: 80px;
  height: 80px;
  font-size: 40px;
}
.brand-logo {
  display: block;
  height: 80px;
  width: auto;
  max-width: min(520px, 65vw);
  object-fit: contain;
  object-position: left center;
  border-radius: 6px;
  flex-shrink: 0;
  background: transparent;
  border: none;
}
.brand-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.brand-name span {
  color: var(--gold-light);
}
.brand-sub {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.topbar-right {
  display: flex;
  gap: 10px;
  align-items: center;
}
.tb-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}
.tb-chip.live {
  border-color: var(--teal);
  color: var(--teal);
}
.tb-clock {
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.tb-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.72rem;
  transition: all 0.18s ease;
}
.tb-theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.16);
}
.tb-theme-icon {
  font-size: 0.8rem;
  line-height: 1;
}
.tb-theme-label {
  min-width: 34px;
  text-align: left;
  font-weight: 600;
}
.tb-theme-knob {
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  flex-shrink: 0;
}
.tb-theme-knob::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
}
.tb-theme-knob.on::after {
  transform: translateX(14px);
}

:root[data-theme='light'] .topbar {
  background: linear-gradient(135deg, #dff0fb 0%, #c4e6f8 100%);
}
:root[data-theme='light'] .tb-chip {
  background: rgba(11, 30, 45, 0.06);
  border-color: rgba(11, 30, 45, 0.12);
  color: #24435f;
}
:root[data-theme='light'] .tb-chip.live {
  border-color: rgba(14, 159, 142, 0.45);
  color: #0e9f8e;
}
:root[data-theme='light'] .tb-theme-toggle {
  border-color: rgba(11, 30, 45, 0.2);
  background: rgba(11, 30, 45, 0.06);
  color: #24435f;
}
:root[data-theme='light'] .tb-theme-toggle:hover {
  border-color: rgba(11, 30, 45, 0.34);
  background: rgba(11, 30, 45, 0.1);
}
:root[data-theme='light'] .tb-theme-knob {
  background: rgba(11, 30, 45, 0.08);
  border-color: rgba(11, 30, 45, 0.2);
}
:root[data-theme='light'] .tb-theme-knob::after {
  background: #1b344d;
}
:root[data-theme='light'] .tb-logout:hover {
  color: var(--coral);
}

.app-body {
  display: flex;
  flex: 1;
  min-height: 0;
}
.sidebar {
  width: 220px;
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex-shrink: 0;
}
.sidebar-section {
  padding: 12px 0;
}
.sidebar-label {
  font-size: 0.62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 18px 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--muted);
  transition: all 0.15s;
  border-left: 3px solid transparent;
  user-select: none;
  background: none;
  border-right: none;
  border-top: none;
  border-bottom: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.nav-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.nav-item.active {
  color: var(--teal-light);
  border-left-color: var(--teal);
  background: rgba(14, 159, 142, 0.08);
}
.nav-item .ni-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.page {
  display: none;
}
.page.active {
  display: block;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.page-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
}
.page-title span {
  color: var(--teal-light);
}
.page-sub {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.stat.ocean::before {
  background: var(--ocean-light);
}
.stat.teal::before {
  background: var(--teal);
}
.stat.gold::before {
  background: var(--gold);
}
.stat.coral::before {
  background: var(--coral);
}
.stat.purple::before {
  background: var(--purple);
}
.stat.green::before {
  background: var(--green);
}
.stat-label {
  font-size: 0.68rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.stat-val {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
}
.stat-val.ocean {
  color: var(--ocean-light);
}
.stat-val.teal {
  color: var(--teal-light);
}
.stat-val.gold {
  color: var(--gold-light);
}
.stat-val.coral {
  color: var(--coral);
}
.stat-val.green {
  color: var(--green);
}
.stat-sub {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 3px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title .ct-icon {
  font-size: 1rem;
}

.g2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.g3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.mb16 {
  margin-bottom: 16px;
}
.mb8 {
  margin-bottom: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.form-row.r3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.form-row.r1 {
  grid-template-columns: 1fr;
}
.fgroup {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
label.lbl {
  font-size: 0.68rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}
input,
select,
textarea {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: 6px;
  outline: none;
  transition: border 0.15s;
  width: 100%;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
}
select option {
  background: var(--panel);
}

.btn {
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background: var(--teal-light);
}
.btn-ocean {
  background: var(--ocean-mid);
  color: #fff;
}
.btn-gold {
  background: var(--gold);
  color: #0b1e2d;
}
.btn-coral {
  background: var(--coral);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}
.btn-ghost:hover:not(:disabled) {
  border-color: var(--teal);
  color: var(--teal);
}
.btn-success {
  background: var(--green);
  color: #0b1e2d;
}
.btn-sm {
  padding: 5px 10px;
  font-size: 0.73rem;
}
.btn-xs {
  padding: 3px 8px;
  font-size: 0.68rem;
}

.tbl-wrap {
  overflow-x: auto;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.tbl th {
  text-align: left;
  padding: 10px 12px;
  font-size: 0.66rem;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  background: var(--panel);
}
.tbl td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(30, 74, 104, 0.5);
  vertical-align: middle;
}
.tbl tr:hover td {
  background: rgba(14, 159, 142, 0.05);
}
.tbl tr:last-child td {
  border-bottom: none;
}
.tbl .mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.65rem;
  letter-spacing: 0.3px;
  font-weight: 500;
}
.pill-green {
  background: rgba(46, 194, 126, 0.15);
  color: var(--green);
}
.pill-red {
  background: rgba(232, 97, 74, 0.15);
  color: var(--coral);
}
.pill-yellow {
  background: rgba(240, 192, 64, 0.15);
  color: var(--yellow);
}
.pill-blue {
  background: rgba(26, 143, 196, 0.15);
  color: var(--ocean-light);
}
.pill-teal {
  background: rgba(14, 159, 142, 0.15);
  color: var(--teal-light);
}
.pill-gray {
  background: rgba(106, 154, 184, 0.15);
  color: var(--muted);
}
.pill-purple {
  background: rgba(139, 92, 246, 0.15);
  color: var(--purple);
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.room-card {
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.room-card:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}
.room-card.available {
  border-color: var(--green);
  background: rgba(46, 194, 126, 0.06);
}
.room-card.occupied {
  border-color: var(--coral);
  background: rgba(232, 97, 74, 0.06);
}
.room-card.maintenance {
  border-color: var(--yellow);
  background: rgba(240, 192, 64, 0.06);
}
.room-card.blocked {
  border-color: var(--muted);
  background: rgba(106, 154, 184, 0.06);
}
.room-card.picked {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(14, 159, 142, 0.35);
}
.room-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.room-choice-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}
.room-choice-card.picked {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(14, 159, 142, 0.22);
}
.room-choice-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
}
.room-choice-title {
  font-weight: 600;
  font-size: 0.92rem;
}
.room-choice-subtitle {
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 2px;
}
.room-select-btn {
  width: 100%;
  justify-content: center;
}
.room-choice-meta {
  color: var(--muted);
  font-size: 0.68rem;
  margin-top: 8px;
}
.rc-num {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
}
.rc-type {
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 2px;
}
.rc-status {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 10px;
}
.room-card.available .rc-status {
  background: rgba(46, 194, 126, 0.2);
  color: var(--green);
}
.room-card.occupied .rc-status {
  background: rgba(232, 97, 74, 0.2);
  color: var(--coral);
}
.room-card.maintenance .rc-status {
  background: rgba(240, 192, 64, 0.2);
  color: var(--yellow);
}
.room-card.blocked .rc-status {
  background: rgba(106, 154, 184, 0.2);
  color: var(--muted);
}

/* Room Map page: white cards for clarity */
.room-map-page .room-card {
  background: #ffffff !important;
  color: #1a2530;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.room-map-page .room-card:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}
.room-map-page .room-card.available,
.room-map-page .room-card.occupied,
.room-map-page .room-card.maintenance,
.room-map-page .room-card.blocked {
  background: #ffffff !important;
}
.room-map-page .room-card .rc-num {
  color: #0b1e2d;
}
.room-map-page .room-card .rc-type {
  color: #5a6d7e;
}
.room-map-page .room-card .rc-booking-ref {
  font-size: 0.6rem;
  color: #5a6d7e;
  margin-top: 4px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.overlay.open {
  display: flex;
}
.modal {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  width: min(640px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.modal-lg {
  width: min(820px, 100%);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.modal-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
}
.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px;
}
.modal-close:hover {
  color: var(--coral);
}
.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.invoice {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
  font-size: 0.8rem;
}
.inv-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.inv-logo {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
}
.inv-logo span {
  color: var(--gold-light);
}
.inv-meta {
  text-align: right;
  font-size: 0.72rem;
  color: var(--muted);
}
.inv-divider {
  border: none;
  border-top: 1px dashed var(--border);
  margin: 12px 0;
}
.inv-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
}
.inv-row.total {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--gold-light);
  border-top: 2px solid var(--border);
  padding-top: 8px;
  margin-top: 6px;
}
.inv-row.sub {
  color: var(--muted);
  font-size: 0.75rem;
}
.inv-section-title {
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

/* Step 6 summary readability upgrade */
.invoice-summary-clear {
  background: #f8fbff;
  border: 1px solid #d7e3f3;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(16, 41, 71, 0.08);
}
.invoice-summary-clear .text-muted {
  color: #5d6f85;
}
.invoice-summary-clear .inv-section-title {
  color: #3d5879;
  font-size: 0.72rem;
}
.invoice-summary-clear .inv-row {
  color: #13253a;
  padding: 7px 0;
  font-size: 0.86rem;
}
.invoice-summary-clear .inv-row.sub {
  color: #4f6480;
  font-size: 0.8rem;
}
.invoice-summary-clear .inv-divider {
  border-top: 1px solid #d4dfed;
}
.invoice-summary-clear .inv-row-total-clear {
  margin-top: 12px;
  border-top: 0;
  background: #1f4f7a;
  border-radius: 10px;
  padding: 12px 14px;
  color: #eaf2fb;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0;
}
.invoice-summary-clear .inv-row-total-clear span:first-child {
  color: #d6e5f5;
  font-weight: 600;
}
.invoice-summary-clear .inv-row-total-clear span:last-child {
  font-size: 1.38rem;
  line-height: 1.1;
  color: #ffffff;
  font-weight: 800;
  font-family: var(--font-head);
}

.stepper {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.step {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-label {
  font-size: 0.72rem;
  color: var(--muted);
}
.step.active .step-num {
  background: var(--teal);
  color: #fff;
}
.step.active .step-label {
  color: var(--teal-light);
}
.step.done .step-num {
  background: var(--green);
  color: #0b1e2d;
}
.step.done .step-label {
  color: var(--green);
}
.step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  min-width: 20px;
}
.step.done + .step-line {
  background: var(--green);
}

.legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.7rem;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.progress-bar {
  background: var(--border);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--ocean-light));
  border-radius: 4px;
  transition: width 0.3s;
}

.alert {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-bottom: 12px;
}
.alert-info {
  background: rgba(26, 143, 196, 0.15);
  border: 1px solid rgba(26, 143, 196, 0.3);
  color: var(--ocean-light);
}
.alert-warn {
  background: rgba(240, 192, 64, 0.12);
  border: 1px solid rgba(240, 192, 64, 0.3);
  color: var(--yellow);
}
.alert-success {
  background: rgba(46, 194, 126, 0.12);
  border: 1px solid rgba(46, 194, 126, 0.3);
  color: var(--green);
}

.pos-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  min-height: calc(100vh - 140px);
}
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.cat-tab {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text);
  font-family: inherit;
}
.cat-tab.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.item-btn {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  color: inherit;
}
.item-btn:hover {
  border-color: var(--teal);
  background: rgba(14, 159, 142, 0.08);
}
.item-name {
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 6px;
}
.item-price {
  font-size: 0.7rem;
  color: var(--gold-light);
  margin-top: 2px;
}
.pos-cart {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cart-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(30, 74, 104, 0.5);
  gap: 8px;
}
.cart-item:last-child {
  border-bottom: none;
}
.cart-item-name {
  font-size: 0.78rem;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qty-btn {
  background: var(--border);
  border: none;
  color: var(--text);
  width: 22px;
  height: 22px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-footer {
  background: var(--panel);
  padding: 14px;
  border-top: 1px solid var(--border);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  font-size: 0.82rem;
}

.cart-total-row.big {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--gold-light);
}
.activity-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(30, 74, 104, 0.4);
}
.activity-item:last-child {
  border-bottom: none;
}
.act-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.act-body {
  flex: 1;
}
.act-title {
  font-size: 0.8rem;
  font-weight: 500;
}
.act-sub {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 2px;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.flex {
  display: flex;
}
.gap8 {
  gap: 8px;
}
.ac {
  align-items: center;
}
.jb {
  justify-content: space-between;
}
.text-muted {
  color: var(--muted);
}
.text-gold {
  color: var(--gold-light);
}
.text-teal {
  color: var(--teal-light);
}
.text-coral {
  color: var(--coral);
}
.text-green {
  color: var(--green);
}
.fw6 {
  font-weight: 600;
}
.mono {
  font-family: var(--font-mono);
}
.mt8 {
  margin-top: 8px;
}
.mt12 {
  margin-top: 12px;
}
.mt16 {
  margin-top: 16px;
}
.w100 {
  width: 100%;
}
.text-center {
  text-align: center;
}
.section-label {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.ml8 {
  margin-left: 8px;
}

.pos-cat-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
