/* ============================================================
   Bectr — Restaurant CRM stylesheet
   Premium light-orange / white skin.
   Every class name below matches the original file exactly —
   this is a drop-in replacement, no HTML or JS changes needed.
   ============================================================ */

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

:root {
  --cream-bg: #fff8f1;
  --cream-card: #ffffff;
  --warm-border: #f0e3cf;
  --orange: #ff7a29;
  --orange-light: #ffb27a;
  --orange-dark: #ee600d;
  --orange-pale: #ffe3c4;
  --ink: #1e140a;
  --muted: #8a7a66;
  --link-color: #b06a2e;
  --soft-shadow: 0 10px 30px -16px rgba(180, 100, 40, 0.22);
  --card-shadow: 0 18px 44px -24px rgba(180, 100, 40, 0.28);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background: var(--cream-bg);
  color: var(--ink);
}

.hidden {
  display: none !important;
}

/* ---------- Auth pages (login/signup) ---------- */

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 178, 122, 0.28), transparent 42%),
    radial-gradient(circle at 88% 90%, rgba(255, 122, 41, 0.14), transparent 46%),
    var(--cream-bg);
}

.auth-wrapper::before,
.auth-wrapper::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.auth-wrapper::before {
  width: 380px;
  height: 380px;
  top: -120px;
  left: -110px;
  background: radial-gradient(circle at 30% 30%, var(--orange-light), transparent 70%);
}

.auth-wrapper::after {
  width: 300px;
  height: 300px;
  bottom: -100px;
  right: -90px;
  background: radial-gradient(circle at 30% 30%, var(--orange-pale), transparent 70%);
}

.auth-card {
  position: relative;
  z-index: 1;
  background: var(--cream-card);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  padding: 38px 34px 32px;
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--warm-border);
  animation: auth-card-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes auth-card-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
}

.auth-card::after {
  content: "";
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  box-shadow: 0 10px 22px -8px rgba(255, 122, 41, 0.55);
}

.auth-title {
  text-align: center;
  font-family: "Fraunces", serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--orange-dark);
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--warm-border);
  margin-bottom: 20px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.auth-tab:hover { color: var(--orange-dark); }

.auth-tab.active {
  color: var(--orange);
  border-bottom: 2px solid var(--orange);
  font-weight: 600;
}

.auth-form.hidden { display: none; }

.auth-form label,
.settings-form label {
  display: block;
  font-size: 13px;
  margin-top: 12px;
  margin-bottom: 4px;
  color: var(--muted);
  font-weight: 600;
}

.auth-form input,
.settings-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--warm-border);
  border-radius: 10px;
  font-size: 14px;
  background: #fffdfa;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-form input:hover,
.settings-form input:hover { border-color: #ecd6b8; }

.auth-form input:focus,
.settings-form input:focus {
  outline: none;
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 122, 41, 0.14);
}

.auth-form input:disabled,
.settings-form input:disabled {
  background: #f3ede3;
  color: #a99;
}

.auth-submit {
  width: 100%;
  margin-top: 20px;
  padding: 13px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 28px -14px rgba(255, 122, 41, 0.6);
  transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.auth-submit:hover {
  opacity: 0.94;
  transform: translateY(-1px);
  box-shadow: 0 18px 32px -14px rgba(255, 122, 41, 0.65);
}

.auth-submit:active { transform: translateY(0); }

.auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-submit.loading { color: transparent; pointer-events: none; }

.auth-submit.loading::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}

.auth-message {
  min-height: 18px;
  font-size: 13px;
  text-align: center;
  margin: 8px 0;
}

.auth-message.error { color: #c0392b; }
.auth-message.success { color: #27ae60; }

.auth-subtext {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  text-align: center;
  line-height: 1.4;
}

.auth-link-btn {
  width: 100%;
  margin-top: 10px;
  background: none;
  border: none;
  color: var(--orange);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.auth-link-btn:hover { color: var(--orange-dark); }

#otp-code {
  text-align: center;
  letter-spacing: 14px;
  font-size: 20px;
  font-weight: 700;
  padding-left: 24px;
  color: var(--ink);
  background-image: repeating-linear-gradient(
    to right, transparent 0, transparent 38px,
    var(--warm-border) 38px, var(--warm-border) calc(38px + 1px)
  );
  background-position: 10px 0;
  background-repeat: repeat-x;
  background-size: 39px 100%;
}

#otp-code:focus { box-shadow: 0 0 0 4px rgba(255, 122, 41, 0.14); }

/* ============================================================
   DASHBOARD LAYOUT (sidebar + main panel)
   ============================================================ */

.app-layout {
  display: flex;
  min-height: 100vh;
  background: var(--cream-bg);
}

/* ---------- Sidebar — light paper, not a solid orange block ---------- */

.sidebar {
  width: 230px;
  background: #fff3e6;
  border-right: 1px solid var(--warm-border);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  flex-shrink: 0;
}

.sidebar-restaurant-name {
  font-family: "Fraunces", serif;
  font-size: 17px;
  font-weight: 700;
  padding: 0 4px 20px 4px;
  border-bottom: 1px solid var(--warm-border);
  margin-bottom: 16px;
  word-break: break-word;
  color: var(--ink);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav-item {
  background: none;
  border: none;
  color: var(--muted);
  text-align: left;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-nav-item:hover {
  background: rgba(255, 122, 41, 0.1);
  color: var(--orange-dark);
}

.sidebar-nav-item.active {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 22px -10px rgba(255, 122, 41, 0.65);
}

.sidebar-nav-gap {
  flex-grow: 1;
  min-height: 20px;
}

/* ---------- Main panel ---------- */

.main-panel {
  flex-grow: 1;
  padding: 32px 40px;
  max-width: 1000px;
}

.dashboard-section.hidden { display: none; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: "Fraunces", serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
}

.section-note {
  font-size: 13.5px;
  color: var(--muted);
  margin: 12px 0 16px 0;
  line-height: 1.5;
}

/* ---------- Buttons ---------- */

.primary-btn {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  border: none;
  padding: 11px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 24px -12px rgba(255, 122, 41, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px -12px rgba(255, 122, 41, 0.6);
}

.secondary-btn {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--warm-border);
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.secondary-btn:hover {
  background: var(--cream-bg);
  border-color: #e7d2b3;
}

.danger-outline {
  background: white;
  color: #c0392b;
  border: 1px solid #c0392b;
}

.danger-outline:hover { background: #fdeaea; }

.inline-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.inline-form input {
  flex: 1;
  padding: 10px;
  border: 1.5px solid var(--warm-border);
  border-radius: 10px;
  font-size: 14px;
}

.inline-form input:focus {
  outline: none;
  border-color: var(--orange);
}

/* ---------- Tables grid ---------- */

.tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.table-card {
  background: var(--cream-card);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--soft-shadow);
  border: 1px solid var(--warm-border);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.table-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -20px rgba(180, 100, 40, 0.3);
}

.table-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.table-card-name {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}

.status-badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 700;
}

.status-badge.active { background: #e6f7ec; color: #27ae60; }
.status-badge.inactive { background: #fdeaea; color: #c0392b; }

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

.link-btn {
  background: none;
  border: none;
  color: var(--link-color);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.link-btn:hover { text-decoration: underline; }
.link-btn:disabled { color: #ccc; cursor: default; }
.link-btn.danger { color: #c0392b; }

.empty-state {
  color: var(--muted);
  font-size: 14px;
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
}

/* ---------- Categories list ---------- */

.categories-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-row {
  background: var(--cream-card);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--soft-shadow);
  border: 1px solid var(--warm-border);
}

.category-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.category-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

/* ---------- QR Modal ---------- */

.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(30, 20, 10, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  overflow-y: auto;
  padding: 30px 0;
}

.modal-box {
  background: var(--cream-card);
  border-radius: 18px;
  padding: 26px;
  text-align: center;
  position: relative;
  max-width: 360px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 30px 70px -20px rgba(30, 20, 10, 0.35);
  border: 1px solid var(--warm-border);
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  background: var(--cream-card);
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--muted);
  z-index: 5;
  margin-top: 4px;
}

.qr-image {
  width: 220px;
  height: 220px;
  margin: 16px auto;
  display: block;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* ---------- Notification bell ---------- */

.notification-btn {
  position: fixed;
  top: 20px;
  right: 30px;
  background: white;
  border: 1px solid var(--warm-border);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--soft-shadow);
  z-index: 200;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #c0392b;
  color: white;
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-panel {
  position: fixed;
  top: 70px;
  right: 30px;
  background: var(--cream-card);
  border-radius: 16px;
  box-shadow: 0 20px 44px -16px rgba(30, 20, 10, 0.3);
  padding: 16px;
  width: 260px;
  z-index: 200;
  border: 1px solid var(--warm-border);
}

.notification-panel h4 {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--ink);
}

.notification-empty {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Phone mockup (User Interface preview) ---------- */

.phone-mockup-wrapper {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.phone-frame {
  width: 280px;
  height: 560px;
  background: var(--ink);
  border-radius: 36px;
  padding: 14px;
  box-shadow: 0 30px 60px -20px rgba(30, 20, 10, 0.4);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 18px;
  background: var(--ink);
  border-radius: 0 0 12px 12px;
  z-index: 2;
}

.phone-screen {
  background: #fff;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow-y: auto;
  padding-top: 30px;
}

.preview-restaurant-header {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  padding: 20px 16px;
  text-align: center;
}

.preview-restaurant-name {
  font-size: 18px;
  font-weight: 700;
}

.preview-categories-list { padding: 16px; }

.preview-category-item {
  background: var(--cream-bg);
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
}

.preview-empty {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 30px 0;
}

/* ---------- Settings ---------- */

.settings-form {
  background: var(--cream-card);
  border-radius: 16px;
  padding: 24px;
  max-width: 480px;
  box-shadow: var(--soft-shadow);
  border: 1px solid var(--warm-border);
}

.settings-form button { margin-top: 20px; }

.settings-logout-row {
  margin-top: 24px;
  max-width: 480px;
}

/* ---------- Menu Builder (categories + item cards) ---------- */

.small-btn { padding: 6px 12px !important; font-size: 12px !important; }

.menu-builder {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.menu-category-block {
  background: var(--cream-card);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: var(--soft-shadow);
  border: 1px solid var(--warm-border);
}

.menu-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--warm-border);
}

.menu-category-title {
  font-family: "Fraunces", serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.menu-category-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.empty-state-small {
  color: var(--muted);
  font-size: 13px;
  grid-column: 1 / -1;
  padding: 16px 0;
}

/* ---------- Item cards ---------- */

.item-card {
  border: 1px solid var(--warm-border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  background: var(--cream-card);
}

.item-card:hover {
  box-shadow: 0 16px 34px -16px rgba(180, 100, 40, 0.32);
  transform: translateY(-2px);
}

.item-card-unavailable { opacity: 0.5; }

.item-card-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  background: var(--cream-bg);
}

.item-card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d9c3a5;
  font-size: 12px;
  background: var(--cream-bg);
  height: 120px;
}

.item-card-body { padding: 12px 14px; }

.item-card-name {
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}

.item-card-price { font-size: 13px; margin-bottom: 8px; }

.price-strike {
  text-decoration: line-through;
  color: #d9c3a5;
  margin-right: 4px;
}

.price-discount { color: var(--orange-dark); font-weight: 700; }
.price-normal { color: var(--ink); font-weight: 700; }

.item-card-actions {
  display: flex;
  gap: 10px;
  font-size: 12px;
  flex-wrap: wrap;
}

/* ---------- Item Modal ---------- */

.item-modal-box {
  max-width: 420px;
  text-align: left;
  max-height: 90vh;
  overflow-y: auto;
}

.item-modal-box h3 {
  font-family: "Fraunces", serif;
  margin-bottom: 16px;
  text-align: center;
  color: var(--ink);
}

.item-modal-box label {
  display: block;
  font-size: 13px;
  margin-top: 12px;
  margin-bottom: 4px;
  color: var(--muted);
  font-weight: 600;
}

.item-modal-box input[type="text"],
.item-modal-box input[type="number"],
.item-modal-box textarea {
  width: 100%;
  padding: 10px;
  border: 1.5px solid var(--warm-border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fffdfa;
}

.item-modal-box input:focus,
.item-modal-box textarea:focus {
  outline: none;
  border-color: var(--orange);
}

.item-modal-box textarea { resize: vertical; min-height: 60px; }

.image-upload-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.item-image-preview {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--cream-bg);
}

.price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.item-modal-submit { width: 100%; margin-top: 18px; }

/* ---------- User Interface Preview: menu items ---------- */

.preview-category-block { margin-bottom: 18px; }

.preview-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--warm-border);
}

.preview-item-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.preview-item-img-placeholder { background: var(--cream-bg); }

.preview-item-info { flex-grow: 1; }
.preview-item-name { font-size: 13px; font-weight: 600; }
.preview-item-price { font-size: 12px; margin-top: 2px; }
.preview-price-strike { text-decoration: line-through; color: #d9c3a5; }
.preview-price-discount { color: var(--orange-dark); font-weight: 700; }

/* ---------- QR link row ---------- */

.qr-link-row {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.qr-link-row input {
  flex: 1;
  padding: 9px;
  border: 1.5px solid var(--warm-border);
  border-radius: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Settings select ---------- */

.settings-form select {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--warm-border);
  border-radius: 10px;
  font-size: 14px;
  background: #fffdfa;
}

.settings-form select:focus { outline: none; border-color: var(--orange); }

.subsection-title {
  font-family: "Fraunces", serif;
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 12px 0;
  color: var(--ink);
}

/* ---------- Bill modal / item selector ---------- */

.bill-modal-box {
  max-width: 440px;
  text-align: left;
  max-height: 90vh;
  overflow-y: auto;
}

.bill-modal-box h3 { font-family: "Fraunces", serif; color: var(--ink); }

.bill-modal-box label {
  display: block;
  font-size: 13px;
  margin-top: 12px;
  margin-bottom: 4px;
  color: var(--muted);
  font-weight: 600;
}

.bill-modal-box input,
.bill-modal-box select {
  width: 100%;
  padding: 10px;
  border: 1.5px solid var(--warm-border);
  border-radius: 10px;
  font-size: 14px;
  background: #fffdfa;
}

.bill-item-selector {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--warm-border);
  border-radius: 12px;
  margin-top: 8px;
}

.bill-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--warm-border);
}

.bill-item-row:last-child { border-bottom: none; }

.bill-item-info { display: flex; flex-direction: column; }
.bill-item-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.bill-item-price { font-size: 12px; color: var(--muted); }

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--warm-border);
  background: white;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.qty-btn:hover { background: var(--cream-bg); border-color: var(--orange-light); }

.qty-value { min-width: 18px; text-align: center; font-size: 14px; font-weight: 700; }

.bill-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 800;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--warm-border);
  color: var(--ink);
}

/* ---------- Receipt (kept monospace — this is a printed document, not app UI) ---------- */

.receipt-content {
  font-family: "Courier New", monospace;
  font-size: 13px;
  text-align: left;
  margin: 16px 0;
}

.receipt-header { text-align: center; font-weight: 700; margin-bottom: 8px; }
.receipt-line { margin-bottom: 4px; }
.receipt-row { display: flex; justify-content: space-between; padding: 3px 0; }
.receipt-total { font-weight: 700; font-size: 14px; }

/* ---------- Publish/Pause status row ---------- */

.status-row { display: flex; gap: 10px; align-items: center; }
.status-row input { flex: 1; }

/* ---------- Notification items (realtime) ---------- */

.notification-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--warm-border);
  font-size: 12.5px;
}

.notification-item:last-child { border-bottom: none; }

.notification-time {
  font-size: 10.5px;
  color: #d9c3a5;
  margin-top: 2px;
}

/* ---------- Table orders modal ---------- */

.order-block {
  border: 1px solid var(--warm-border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.order-block-header {
  background: var(--cream-bg);
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* ---------- History ---------- */

.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-row {
  background: var(--cream-card);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--soft-shadow);
  border: 1px solid var(--warm-border);
  cursor: default;
}

.history-row-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--ink);
}

.history-table-name { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.history-total { color: var(--orange-dark); }

.history-row-sub {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.history-items-summary {
  font-size: 12px;
  color: #a08d78;
  border-top: 1px solid var(--warm-border);
  padding-top: 6px;
}

/* ---------- Open Orders (flat grid, Bill section) ---------- */

.bill-header-actions { display: flex; gap: 10px; }

.open-orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.order-card {
  background: var(--cream-card);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--soft-shadow);
  border: 2px solid var(--warm-border);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.order-card-selected { border: 2px solid var(--orange); }

.order-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.order-card-checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.order-card-checkbox input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--orange); }

.order-card-table {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-card-number { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.order-card-items { font-size: 12px; color: var(--muted); margin-bottom: 10px; line-height: 1.4; }

.order-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--warm-border);
  padding-top: 10px;
  flex-wrap: wrap;
  row-gap: 8px;
}

.order-card-total { font-weight: 800; color: var(--orange-dark); font-size: 15px; }

.order-card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 6px;
  justify-content: flex-end;
}

.order-card-actions button { white-space: nowrap; }

/* ---------- Invoice-style receipt (screen view in modal) ---------- */

.receipt-doc { font-family: "Courier New", monospace; font-size: 12px; text-align: left; }
.receipt-shop-name { text-align: center; font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.receipt-shop-line { text-align: center; font-size: 11px; color: #555; margin-bottom: 1px; }
.receipt-meta { margin: 10px 0; font-size: 11.5px; }
.receipt-meta div, .receipt-summary div { display: flex; justify-content: space-between; margin-bottom: 3px; }
.receipt-dashed { border-top: 1px dashed #bbb; margin: 8px 0; }
.receipt-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.receipt-table th { text-align: left; border-bottom: 1px dashed #bbb; padding-bottom: 4px; font-size: 11px; color: #666; }
.receipt-table td { padding: 4px 0; vertical-align: top; }
.receipt-table .col-qty { text-align: center; }
.receipt-table .col-rate, .receipt-table .col-total { text-align: right; }
.receipt-table th.col-qty { text-align: center; }
.receipt-table th.col-rate, .receipt-table th.col-total { text-align: right; }
.receipt-summary { margin-top: 8px; font-size: 11.5px; }
.receipt-grand-total { font-weight: 700; font-size: 15px; border-top: 1px dashed #bbb; padding-top: 6px; margin-top: 6px; }
.receipt-payment-method { text-align: center; margin-top: 8px; font-size: 11px; color: #888; text-transform: capitalize; }
.receipt-footer { text-align: center; margin-top: 16px; font-size: 12px; font-weight: 700; color: var(--orange-dark); }

/* ---------- Clickable notifications ---------- */

.notification-clickable {
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.notification-clickable:hover { background: var(--cream-bg); }

/* ---------- Order card highlight (jumped to from a notification) ---------- */

.order-card-highlight { animation: order-highlight-flash 2.5s ease; }

@keyframes order-highlight-flash {
  0% { box-shadow: 0 0 0 4px rgba(255, 122, 41, 0.55); }
  70% { box-shadow: 0 0 0 4px rgba(255, 122, 41, 0.55); }
  100% { box-shadow: none; }
}

/* ---------- Analytics ---------- */

.analytics-range-toggle { display: flex; gap: 8px; flex-wrap: wrap; }

.range-btn {
  background: #fff3e6;
  border: 1px solid var(--warm-border);
  padding: 9px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.range-btn:hover { color: var(--orange-dark); }

.range-btn.active {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  border-color: transparent;
}

.analytics-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin: 20px 0 28px 0;
}

.summary-card {
  background: var(--cream-card);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--soft-shadow);
  border: 1px solid var(--warm-border);
}

.summary-card-label { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.summary-card-value { font-family: "Fraunces", serif; font-size: 26px; font-weight: 700; color: var(--ink); }

.analytics-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.analytics-block {
  background: var(--cream-card);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--soft-shadow);
  border: 1px solid var(--warm-border);
}

/* ---------- Top Selling Items ---------- */

.top-item-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.top-item-row:last-child { margin-bottom: 0; }

.top-item-rank {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cream-bg);
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.top-item-info { flex-grow: 1; }
.top-item-name-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.top-item-name { font-weight: 700; color: var(--ink); }
.top-item-qty { color: var(--muted); font-size: 12px; }

.top-item-bar-track {
  background: var(--orange-pale);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
  margin-bottom: 4px;
}

.top-item-bar-fill {
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
  height: 100%;
  border-radius: 4px;
}

.top-item-revenue { font-size: 11px; color: #c9b09a; }

/* ---------- Sales Trend (CSS bar chart) ---------- */

.analytics-trend-chart { overflow-x: auto; }

.trend-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-height: 180px;
  padding-top: 20px;
}

.trend-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 32px;
}

.trend-bar-value { font-size: 9.5px; color: var(--muted); margin-bottom: 4px; white-space: nowrap; }

.trend-bar-track {
  width: 100%;
  max-width: 28px;
  height: 120px;
  background: var(--cream-bg);
  border: 1px solid var(--warm-border);
  border-radius: 4px 4px 0 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.trend-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, var(--orange-light), var(--orange));
  border-radius: 4px 4px 0 0;
  min-height: 2px;
  transition: height 0.3s ease, filter 0.15s ease;
}

.trend-bar-col:hover .trend-bar-fill { filter: brightness(1.08); }

.trend-bar-label { font-size: 9.5px; color: var(--muted); margin-top: 6px; white-space: nowrap; }

/* ---------- Tax/Discount inputs on bill modals ---------- */

.tax-discount-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.tax-discount-row input {
  width: 100%;
  padding: 10px;
  border: 1.5px solid var(--warm-border);
  border-radius: 10px;
  font-size: 14px;
}

.tax-discount-row-label {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.tax-discount-row-label input {
  width: 100%;
  padding: 10px;
  border: 1.5px solid var(--warm-border);
  border-radius: 10px;
  font-size: 14px;
}

.bill-breakdown {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--warm-border);
  font-size: 13px;
}

.breakdown-row { display: flex; justify-content: space-between; margin-bottom: 4px; color: var(--muted); }
.breakdown-discount span:last-child { color: #27ae60; }

/* ---------- Billing Defaults form (Settings) ---------- */

.billing-defaults-form { margin-top: 20px; }

/* ---------- Offline Mode (kept as an alert red — this is a warning state, not brand) ---------- */

.offline-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #c0392b;
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pending-sync-badge {
  background: rgba(255, 255, 255, 0.25);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
}

.offline-toggle-btn {
  display: block;
  width: 100%;
  margin: 8px 0 0 0;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  color: white;
  text-align: center;
}

.offline-toggle-btn.offline-active { background: #c0392b; color: white; border-color: #c0392b; }

body:has(.offline-banner:not(.hidden)) .app-layout { margin-top: 42px; }

/* ============================================================
   Super Admin — kept as its own darker, internal-tool theme
   (intentionally distinct from the restaurant-facing app so the
   two audiences don't get confused with each other), reharmonized
   to the new orange values.
   ============================================================ */

.admin-restaurants-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-restaurant-row {
  background: white;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  border: 1px solid #f4f4f4;
  flex-wrap: wrap;
}

.admin-restaurant-row:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
  transform: translateY(-1px);
}

.admin-restaurant-main { flex-grow: 1; }

.admin-restaurant-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  align-items: center;
  padding-top: 2px;
}

/* ---- Login page ---- */

.admin-login-body {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-login-wrapper { padding: 20px; }

.admin-login-card {
  background: white;
  border-radius: 16px;
  padding: 40px 36px;
  width: 380px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.admin-login-badge {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px auto;
}

.admin-login-title { font-size: 22px; font-weight: 800; color: #1a1a1a; margin-bottom: 4px; }
.admin-login-subtitle { font-size: 12.5px; color: #999; margin-bottom: 24px; }
.admin-login-form { text-align: left; }

.admin-login-form label {
  display: block;
  font-size: 12.5px;
  color: #555;
  margin-top: 14px;
  margin-bottom: 5px;
  font-weight: 600;
}

.admin-login-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #eee;
  border-radius: 10px;
  font-size: 14px;
  transition: border-color 0.15s ease;
}

.admin-login-form input:focus { outline: none; border-color: var(--orange); }

.admin-login-submit {
  width: 100%;
  margin-top: 22px;
  padding: 13px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.15s ease;
}

.admin-login-submit:hover { opacity: 0.92; }
.admin-login-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.admin-login-step-icon { font-size: 32px; text-align: center; margin-bottom: 8px; }
.admin-login-subtext { text-align: center; font-size: 13px; color: #666; margin-bottom: 16px; }
.admin-totp-input { text-align: center; font-size: 24px; letter-spacing: 8px; font-weight: 700; }

/* ---- Loading spinner (used inside buttons everywhere) ---- */

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ---- Skeleton loading rows ---- */

.admin-skeleton-row {
  height: 88px;
  border-radius: 12px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.dashboard-topbar { background: linear-gradient(135deg, #1a1a1a 0%, #262626 100%); }

.admin-restaurant-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: white;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-restaurant-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.admin-restaurant-title-row strong { font-size: 15px; }

.admin-currency-badge {
  background: #f4f5f7;
  color: #666;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

.admin-restaurant-meta { font-size: 12px; color: #888; margin-bottom: 2px; }
.admin-restaurant-link a { font-size: 12px; color: #2980b9; text-decoration: none; }
.admin-restaurant-link a:hover { text-decoration: underline; }

.admin-top-row { align-items: center; }
.admin-top-rank { font-size: 26px; width: 44px; text-align: center; flex-shrink: 0; }
.admin-top-total { font-weight: 800; color: var(--orange-dark); font-size: 17px; flex-shrink: 0; }

.analytics-range-toggle .admin-range-btn {
  background: #eee;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  margin-left: 6px;
}

.admin-range-btn.active { background: var(--orange); color: white; }

/* ---------- Settings: multi-column grid layout ---------- */

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  align-items: start;
}

.settings-grid .settings-form,
.settings-grid .logo-upload-box { margin-top: 0; height: 100%; }

.logo-upload-box { text-align: center; }

.logo-upload-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.logo-preview-img {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--warm-border);
}

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

#section-settings {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

#section-settings > .section-header,
#section-settings > .settings-logout-row { flex-basis: 100%; width: 100%; }

#section-settings > .settings-form { flex: 1 1 340px; margin-top: 0; }

@media (max-width: 500px) { #section-settings > .settings-form { flex-basis: 100%; } }

.ui-preview-iframe { width: 100%; height: 100%; border: none; display: block; }

#ui-preview-container { position: relative; overflow: hidden; }

#ui-preview-container .preview-empty {
  padding: 30px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

#section-settings > .settings-column {
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-column .settings-form { margin-top: 0; }

.bill-item-search {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1.5px solid var(--warm-border);
  border-radius: 10px;
  font-size: 14px;
  box-sizing: border-box;
  background: #fffdfa;
}

.bill-item-search:focus { outline: none; border-color: var(--orange); }

.receipt-modal-logo {
  display: block;
  max-width: 160px;
  max-height: 80px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.generate-bill-order-block {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--warm-border);
}

.generate-bill-order-block:last-child { border-bottom: none; }

.generate-bill-items-list {
  margin-top: 4px;
  padding-left: 4px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.generate-bill-item-line { margin-bottom: 1px; }

.receipt-logo {
  display: block;
  max-width: 120px;
  max-height: 70px;
  margin: 0 auto 8px;
  object-fit: contain;
}

#receipt-modal .receipt-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: 10px;
  padding-bottom: 4px;
}

.table-card-code {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 8px;
  font-family: monospace;
  letter-spacing: 1px;
}

.table-card-code strong { color: var(--orange-dark); font-size: 15px; }

.table-card-code-off {
  color: #d9c3a5;
  font-style: italic;
  font-family: inherit;
  letter-spacing: normal;
}
/* ============================================================
   Login page — split layout (form left, explainer right)
   Additive only: does not modify any existing rule above.
   ============================================================ */

.auth-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 880px;
  width: 100%;
  background: var(--cream-card);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--warm-border);
  overflow: hidden;
  animation: auth-card-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* the form card now sits inside the split, not centered on its own */
.auth-split .auth-card {
  box-shadow: none;
  border: none;
  border-radius: 0;
  animation: none;
  padding: 44px 40px;
}

.auth-split .auth-card::before,
.auth-split .auth-card::after {
  display: none; /* the split wrapper already carries the top accent + brand feel */
}

/* ---------- Right panel ---------- */

.auth-info {
  background:
    radial-gradient(circle at 85% 0%, rgba(255, 178, 122, 0.35), transparent 55%),
    linear-gradient(165deg, #fff3e6, #ffe6cc);
  padding: 44px 40px;
  border-left: 1px solid var(--warm-border);
  display: flex;
  flex-direction: column;
}

.auth-info-eyebrow {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-dark);
}

.auth-info-title {
  font-family: "Fraunces", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 12px 0 28px;
}

.auth-step {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}

.auth-step-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px -8px rgba(255, 122, 41, 0.55);
}

.auth-step-body h4 {
  font-family: "Fraunces", serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.auth-step-body p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.auth-info-divider {
  height: 1px;
  background: var(--warm-border);
  margin: 8px 0 24px;
}

.auth-newuser {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--warm-border);
  border-radius: 14px;
  padding: 20px;
}

.auth-newuser h4 {
  font-family: "Fraunces", serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.auth-newuser p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 14px;
}

.auth-newuser-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 12px 24px -12px rgba(255, 122, 41, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-newuser-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px -12px rgba(255, 122, 41, 0.6);
}

/* ---------- Responsive: stack on smaller screens ---------- */

@media (max-width: 820px) {
  .auth-split {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
  .auth-info {
    border-left: none;
    border-top: 1px solid var(--warm-border);
  }
  .auth-split .auth-card {
    padding: 38px 32px 30px;
  }
  .auth-info {
    padding: 32px;
  }
}

/* Add to dashboard.css — hourly line chart drill-down + export row */

.analytics-export-row {
  display: flex;
  gap: 10px;
  margin: 10px 0 20px;
}

.hourly-block {
  margin-top: 24px;
}

.hourly-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.hourly-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hourly-date-label {
  font-weight: 700;
  font-size: 13px;
  min-width: 110px;
  text-align: center;
}

.hourly-line-chart {
  width: 100%;
  height: auto;
  display: block;
}

.hourly-area {
  fill: rgba(211, 84, 0, 0.08);
}

.hourly-line {
  stroke: #d35400;
  stroke-width: 2.5;
}

.hourly-dot {
  fill: #d35400;
  cursor: pointer;
}

.hourly-dot-peak {
  fill: #ff8c3a;
  stroke: #fff;
  stroke-width: 2;
}

.hourly-axis-label {
  font-size: 9px;
  fill: #999;
}

.hourly-peak-note {
  text-align: center;
  font-size: 13px;
  color: #555;
  margin-top: 8px;
}
/* ============================================================
   Rooms (optional Room Management module)
   ============================================================ */

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.room-card {
  position: relative;
  overflow: hidden;
}

.room-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--orange-light);
}

.room-card-type {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.room-card-guest {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--cream-bg);
  border: 1px solid var(--warm-border);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 12px;
}

.status-badge.cleaning { background: #fff3d6; color: #b8860b; }

.room-cleaning-countdown {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 20px;
  color: #b8860b;
  background: #fff8e8;
  border: 1px dashed #f0d896;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  margin-bottom: 12px;
}

.bill-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px dashed var(--warm-border);
}

.bill-breakdown-row:last-child { border-bottom: none; }
.bill-breakdown-row span:last-child { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* ---------- Guest-count / stay-duration chip pickers (Book Room modal) ---------- */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 4px;
}

.chip-btn {
  flex: 1 1 auto;
  min-width: 44px;
  padding: 10px 14px;
  border: 1.5px solid var(--warm-border);
  border-radius: 10px;
  background: var(--cream-bg);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.chip-btn:hover { border-color: var(--orange-light); }

.chip-btn.active {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  border-color: var(--orange-dark);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(238, 96, 13, 0.5);
}

#book-stay-type-chip-row .chip-btn { flex: 1 1 30%; }

.date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.date-row input[type="date"] {
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--warm-border);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: var(--cream-card);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.date-row input[type="date"]:hover,
.date-row input[type="date"]:focus {
  border-color: var(--orange);
  outline: none;
}

.date-row input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(48%) sepia(90%) saturate(1000%) hue-rotate(1deg);
  cursor: pointer;
  padding: 4px;
}

#book-check-out-wrap.hidden { display: none; }

.room-price-preview {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--orange-pale);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--orange-dark);
  display: flex;
  justify-content: space-between;
}

.room-checkout-countdown {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-dark);
  background: var(--orange-pale);
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  margin-bottom: 12px;
}

.additional-guests-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 4px;
}

.additional-guest-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--warm-border);
  border-radius: 10px;
  font-size: 14px;
  background: var(--cream-card);
}

/* ---------- Room form modal (Add/Edit Room) -- proper polish, matches item-modal-box quality ---------- */

.room-form-modal-box {
  text-align: left;
}

.room-form-modal-box h3 {
  text-align: center;
  margin-bottom: 20px;
}

.form-field-group {
  margin-bottom: 16px;
}

.form-field-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.form-field-group input[type="text"],
.form-field-group input[type="number"],
.form-field-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--warm-border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: #fffdfa;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field-group input[type="text"]:focus,
.form-field-group input[type="number"]:focus,
.form-field-group select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(238, 96, 13, 0.12);
}

.form-field-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23cc7a3a' stroke-width='2' fill='none' fill-rule='evenodd' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}

.room-form-modal-box .item-modal-submit { margin-top: 6px; width: 100%; }

/* Guest-pair rows in the Book Room modal (name + ID per extra guest) */
.additional-guest-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 8px;
}

/* ---------- Room Analytics (simple, separate from full Analytics tab) ---------- */

.room-analytics-panel {
  background: var(--cream-card);
  border: 1px solid var(--warm-border);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 16px 0;
}

.room-analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.room-analytics-body {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.room-analytics-stat {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--orange-dark);
}

.room-analytics-stat-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

.room-analytics-top-list {
  flex: 1 1 240px;
  min-width: 220px;
}

.room-analytics-top-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px dashed var(--warm-border);
}
.room-analytics-top-row:last-child { border-bottom: none; }
.room-analytics-top-row span:last-child { font-weight: 700; color: var(--orange-dark); }

/* ---------- Rooms toolbar: search + status filter ---------- */

.rooms-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.rooms-search-input {
  flex: 1 1 220px;
  padding: 11px 14px;
  border: 1.5px solid var(--warm-border);
  border-radius: 10px;
  font-size: 14px;
  background: var(--cream-card);
}
.rooms-search-input:focus { outline: none; border-color: var(--orange); }

#rooms-status-filter-row { margin: 0; flex: 0 0 auto; }
#rooms-status-filter-row .chip-btn { flex: none; padding: 9px 16px; }

/* ---------- Room code-lock badge + controls on each room card ---------- */

.room-card-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 8px;
}

.room-code-badge {
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--cream-bg);
}
.room-code-badge.on { color: #1f8a4c; background: #e6f6ec; }
.room-code-badge.off { color: var(--muted); }

/* ---------- Occupied room card: inline guest details ---------- */

.room-card-guest-details {
  font-size: 13px;
  color: var(--muted);
  background: var(--cream-bg);
  border: 1px solid var(--warm-border);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
  line-height: 1.6;
}
.room-card-guest-details strong { color: var(--ink); }

/* Same visual style as .range-btn, separate class so the main Analytics
   tab's global ".range-btn" click handler never touches these. */
.room-range-btn {
  background: #fff3e6;
  border: 1px solid var(--warm-border);
  padding: 9px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.room-range-btn:hover { color: var(--orange-dark); }
.room-range-btn.active {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  border-color: transparent;
}

/* ---------- Checkout modal: separate Room Bill / Food Bill sections ---------- */

.checkout-modal-box {
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
}

.checkout-bill-section {
  border: 1.5px solid var(--warm-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 16px 0;
  background: var(--cream-card);
}

.checkout-bill-section-title {
  margin: 0 0 10px;
  font-family: "Fraunces", serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.checkout-grand-total-row {
  background: var(--orange-pale);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
}

#folio-guest-summary {
  margin-bottom: 10px;
}

.receipt-cut-divider {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  margin: 18px 0;
  border-top: 1px dashed var(--warm-border);
  padding-top: 10px;
}

.receipt-section-label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin: 10px 0 4px;
  padding-top: 8px;
  border-top: 1px dashed var(--warm-border);
}

/* ---------- Room History ---------- */

.room-history-row {
  background: var(--cream-card);
  border: 1px solid var(--warm-border);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 12px;
}

.room-history-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.room-history-row-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

.room-history-extra-guests {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.room-history-row-footer {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--warm-border);
}

.admin-restaurant-limits {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 6px 0;
  font-size: 13px;
  color: var(--muted);
}

.admin-restaurant-limits label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-limit-input {
  width: 64px;
  padding: 4px 8px;
  border: 1px solid var(--warm-border);
  border-radius: 6px;
  font-size: 13px;
}

/* ---------- Shared button-loading spinner (window.setButtonLoading) ---------- */

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 8px;
  animation: btn-spinner-rotate 0.7s linear infinite;
}

/* On light/outline buttons (secondary-btn, link-btn) the spinner needs a
   dark-tinted color instead of the white built for orange-filled buttons */
.secondary-btn .btn-spinner,
.link-btn .btn-spinner {
  border: 2px solid rgba(120, 90, 60, 0.25);
  border-top-color: var(--orange-dark);
}

@keyframes btn-spinner-rotate {
  to { transform: rotate(360deg); }
}