/* GameZone CRM — Professional Light/Dark Theme */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}

:root {
  /* Core backgrounds */
  --bg:    #f4f5f7;
  --bg2:   #ffffff;
  --bg3:   #f9fafb;
  --bg4:   #f0f2f5;
  --bg5:   #e5e8ed;

  /* Borders */
  --br:    rgba(0,0,0,0.07);
  --br2:   rgba(0,0,0,0.12);
  --br3:   rgba(0,0,0,0.18);

  /* Text */
  --t1:    #0d1117;
  --t2:    #3d4452;
  --t3:    #6b7280;
  --t4:    #9ca3af;

  /* Blue accent — the ONE color */
  --blue:       #2563eb;
  --blue-hover: #1d4ed8;
  --blue-light: #eff6ff;
  --blue-mid:   rgba(37,99,235,0.12);
  --blue-br:    rgba(37,99,235,0.25);
  --blue-text:  #1e40af;

  /* Sidebar dark */
  --sb-bg:   #0f172a;
  --sb-bg2:  #1e293b;
  --sb-br:   rgba(255,255,255,0.06);
  --sb-t1:   #f1f5f9;
  --sb-t2:   #94a3b8;
  --sb-t3:   #475569;

  /* Status colors — muted, professional */
  --green:      #16a34a;
  --green-light:#f0fdf4;
  --green-br:   rgba(22,163,74,0.2);

  --red:        #dc2626;
  --red-light:  #fef2f2;
  --red-br:     rgba(220,38,38,0.2);

  --amber:      #d97706;
  --amber-light:#fffbeb;
  --amber-br:   rgba(217,119,6,0.2);

  --violet:     #7c3aed;
  --violet-light:#f5f3ff;
  --violet-br:  rgba(124,58,237,0.2);

  --cyan:       #0891b2;
  --cyan-light: #ecfeff;
  --cyan-br:    rgba(8,145,178,0.2);

  /* Typography */
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --mono: 'DM Mono', 'JetBrains Mono', monospace;

  /* Shape */
  --r:  8px;
  --r2: 12px;
  --r3: 16px;

  /* Shadows */
  --sh:  0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.06);
  --sh2: 0 4px 16px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
  --sh3: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
}

html,body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--t1);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,input,textarea,select { font-family: var(--sans) }

::selection { background: var(--blue-mid); color: var(--blue-text) }
::-webkit-scrollbar { width: 5px; height: 5px }
::-webkit-scrollbar-track { background: transparent }
::-webkit-scrollbar-thumb { background: var(--bg5); border-radius: 4px }
::-webkit-scrollbar-thumb:hover { background: #d1d5db }

#bg-canvas { display: none }

/* ═══════════════════════════════════════
   LOGIN PAGE
═══════════════════════════════════════ */
#login-wrap {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
}

/* LEFT PANEL */
.lp-left {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(40px, 5vw, 72px);
  background: var(--sb-bg);
  overflow: hidden;
}

.lp-left::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.15), transparent 70%);
  pointer-events: none;
}
.lp-left::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.08), transparent 70%);
  pointer-events: none;
}

.lp-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.lp-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}
.lp-logo span {
  font-size: 22px;
  font-weight: 700;
  color: var(--sb-t1);
  letter-spacing: -0.3px;
}
.lp-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--blue);
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.3);
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.lp-hero {
  position: relative;
  z-index: 1;
}
.lp-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lp-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}
.lp-title {
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--sb-t1);
  margin-bottom: 22px;
}
.lp-title em {
  font-style: italic;
  color: var(--blue);
  font-weight: 400;
}
.lp-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--sb-t2);
  max-width: 380px;
}

.lp-stats {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--sb-br);
  border-radius: var(--r2);
  padding: 20px 24px;
  gap: 0;
}
.lp-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  text-align: center;
}
.lp-stat-n {
  font-size: 26px;
  font-weight: 700;
  color: var(--sb-t1);
  letter-spacing: -0.5px;
}
.lp-stat-l {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--sb-t3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.lp-stat-div {
  width: 1px;
  height: 44px;
  background: var(--sb-br);
  flex-shrink: 0;
}

.lp-footer-line {
  font-size: 13px;
  color: var(--sb-t3);
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.lp-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-green 2.5s ease-in-out infinite;
}
@keyframes pulse-green {
  0%,100% { box-shadow: 0 0 0 0 rgba(22,163,74,0.4) }
  50%      { box-shadow: 0 0 0 6px rgba(22,163,74,0) }
}
@keyframes pulse-danger {
  0%,100% { opacity: 1 }
  50%      { opacity: 0.3 }
}

/* RIGHT PANEL */
.lp-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 56px);
  background: var(--bg2);
  border-left: 1px solid var(--br);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.lp-right-inner {
  width: 100%;
  max-width: 440px;
  animation: apIn .4s ease both;
  margin: auto 0;
}
@keyframes apIn {
  from { opacity: 0; transform: translateY(16px) }
  to   { opacity: 1; transform: translateY(0) }
}

/* Auth Tabs */
.ap-tabs, .ltabs {
  display: flex;
  border-bottom: 2px solid var(--br);
  margin-bottom: 32px;
  gap: 4px;
}
.ap-tab, .ltab {
  flex: 1;
  padding: 14px 8px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--t3);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color .2s, border-color .2s;
  text-align: center;
  margin-bottom: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.ap-tab:hover, .ltab:hover { color: var(--t2) }
.ap-tab.active, .ltab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  font-weight: 600;
}
.ap-tab-admin { font-size: 13px }
.ap-tab-admin:hover, .ap-tab-admin.active { color: var(--blue) }
.ap-admin, .admin-pill { display: none !important }

.ap-head { margin-bottom: 28px }
.ap-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.ap-sub { font-size: 14px; color: var(--t3) }

.ap-form { display: flex; flex-direction: column; gap: 20px }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px }
.flex-field { display: flex; flex-direction: column; gap: 8px }

.fl-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--t3);
  transition: color .2s;
}
.flex-field:focus-within .fl-label { color: var(--blue) }

.fl-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.fl-icon {
  position: absolute;
  left: 15px;
  color: var(--t4);
  font-size: 14px;
  transition: color .2s;
  pointer-events: none;
}
.fl-input {
  width: 100%;
  padding: 14px 44px 14px 44px;
  background: var(--bg3);
  border: 1.5px solid var(--br2);
  border-radius: var(--r);
  color: var(--t1);
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.fl-input::placeholder { color: var(--t4); font-size: 14px }
.fl-input:hover { border-color: #c4c9d4; background: var(--bg2) }
.fl-input:focus {
  border-color: var(--blue);
  background: var(--bg2);
  box-shadow: 0 0 0 4px var(--blue-mid);
}
.fl-wrap:focus-within .fl-icon { color: var(--blue) }

.fl-eye {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--t4);
  cursor: pointer;
  padding: 4px;
  border-radius: 5px;
  font-size: 14px;
  transition: color .15s;
  line-height: 1;
}
.fl-eye:hover { color: var(--t2) }

.ap-submit {
  width: 100%;
  padding: 16px 24px;
  background: var(--blue);
  border: none;
  border-radius: var(--r);
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .2s, transform .15s, box-shadow .2s;
  margin-top: 4px;
  letter-spacing: 0.2px;
}
.ap-submit:hover {
  background: var(--blue-hover);
  box-shadow: 0 6px 20px rgba(37,99,235,0.28);
  transform: translateY(-1px);
}
.ap-submit:active { transform: scale(0.98); box-shadow: none }
.ap-submit i { font-size: 14px; transition: transform .2s }
.ap-submit:hover i { transform: translateX(4px) }

.ap-submit-admin {
  background: var(--bg4);
  color: var(--t2);
  border: 1.5px solid var(--br2);
}
.ap-submit-admin:hover {
  background: var(--bg5);
  color: var(--t1);
  box-shadow: var(--sh);
}

.ap-admin-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--blue-light);
  border: 1px solid var(--blue-br);
  border-radius: var(--r);
  font-size: 13px;
  color: var(--blue-text);
  margin-bottom: 8px;
  font-weight: 500;
}
.ap-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 12px;
  color: var(--t4);
}
.ap-secure-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--bg5);
}
.ap-note {
  font-size: 13px;
  color: var(--t3);
  line-height: 1.7;
  padding: 12px 14px;
  background: var(--blue-light);
  border-left: 3px solid var(--blue-br);
  border-radius: 0 var(--r) var(--r) 0;
  display: flex;
  gap: 8px;
}
.ap-note i { color: var(--blue); margin-top: 2px; flex-shrink: 0 }
#lf-alert:not(:empty) {
  padding: 12px 16px;
  border-radius: var(--r);
  background: var(--red-light);
  border: 1px solid var(--red-br);
  color: var(--red);
  font-size: 13px;
  margin-bottom: 8px;
  font-weight: 500;
}

/* ═══════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════ */
#sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 260px;
  background: linear-gradient(180deg, #090d14 0%, #0c1119 100%);
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  z-index: 50;
  overflow-y: auto;
  scrollbar-width: none;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
#sidebar::-webkit-scrollbar { display: none }

.sb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 18px 18px;
  border-bottom: 1px solid var(--sb-br);
}
.sb-brand { display: flex; align-items: center; gap: 12px }
.sb-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}
.sb-brand-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--sb-t1);
  letter-spacing: -0.2px;
}
.sb-brand-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255,255,255,0.34);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 1px;
}
.sb-close {
  background: none;
  border: none;
  color: var(--sb-t3);
  cursor: pointer;
  font-size: 16px;
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.sb-close:hover { background: rgba(255,255,255,0.06); color: #fff }

.sb-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 18px 16px;
  border-bottom: 1px solid var(--sb-br);
}
.sb-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.08));
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.sb-name { font-size: 14px; font-weight: 600; color: #fff }
.sb-role { font-size: 12px; color: rgba(255,255,255,0.52); margin-top: 1px }

#sb-nav { flex: 1; padding: 12px 10px }
.sb-section {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  padding: 18px 10px 8px;
}

.sb-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--r);
  cursor: pointer;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  font-weight: 400;
  transition: all .15s;
  margin-bottom: 2px;
}
.sb-item:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}
.sb-item.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 600;
}
.sb-item.active .sb-icon {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-color: rgba(255,255,255,0.12);
}
.sb-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.74);
  transition: all .15s;
}
.sb-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}
.sb-badge.green { background: rgba(255,255,255,0.16); color: #fff }

.sb-foot {
  padding: 12px 10px;
  border-top: 1px solid var(--sb-br);
}
.sb-logout {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.72);
  font-family: var(--sans);
  font-size: 14px;
  cursor: pointer;
  border-radius: var(--r);
  transition: all .15s;
}
.sb-logout:hover { background: rgba(220,38,38,0.1); color: #f87171 }
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 49;
  backdrop-filter: blur(2px);
}

/* ═══════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════ */
#main {
  margin-left: 260px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--br);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  height: 64px;
  box-shadow: 0 1px 0 var(--br);
}
.menu-btn {
  background: none;
  border: none;
  color: var(--t3);
  font-size: 18px;
  cursor: pointer;
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.menu-btn:hover { background: var(--bg4); color: var(--t1) }
.tb-titles { flex: 1 }
.tb-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.3px;
}
.tb-sub { font-size: 12px; color: var(--t3); margin-top: 1px }
.tb-actions { display: flex; gap: 8px }

.tb-btn {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--bg3);
  border: 1.5px solid var(--br2);
  color: var(--t2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all .15s;
  position: relative;
}
.tb-btn:hover { background: var(--bg4); color: var(--t1); border-color: #c4c9d4 }
.notif-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.content {
  flex: 1;
  padding: 28px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}
.content.anim-fade { animation: fadeUp .22s ease }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px) }
  to   { opacity: 1; transform: translateY(0) }
}

/* ═══════════════════════════════════════
   CARDS
═══════════════════════════════════════ */
.card {
  background: var(--bg2);
  border: 1.5px solid var(--br);
  border-radius: var(--r2);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: var(--sh);
}
.card:hover { border-color: var(--br2); box-shadow: var(--sh2) }

.dashboard-panel {
  position: relative;
  border-radius: 24px;
  border-color: rgba(148,163,184,0.18);
  background:
    radial-gradient(circle at top right, rgba(37,99,235,0.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
  box-shadow:
    0 20px 40px rgba(15,23,42,0.08),
    inset 0 1px 0 rgba(255,255,255,0.75);
}

.dashboard-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.34), transparent 28%);
}

.dashboard-panel-active {
  background:
    radial-gradient(circle at top right, rgba(217,119,6,0.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,249,240,0.96));
}

.dashboard-panel-chart {
  background:
    radial-gradient(circle at top right, rgba(37,99,235,0.12), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(239,246,255,0.92));
}

.dashboard-panel-bookings {
  background:
    radial-gradient(circle at top right, rgba(8,145,178,0.12), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(236,254,255,0.92));
}

.dashboard-panel-donut {
  background:
    radial-gradient(circle at top right, rgba(124,58,237,0.12), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,243,255,0.92));
}

.card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--br);
  gap: 12px;
  flex-wrap: wrap;
}
.card-h h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--t1);
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: -0.2px;
}
.card-b { padding: 20px 22px }

.dashboard-panel .card-h,
.dashboard-panel .card-b {
  position: relative;
  z-index: 1;
}

.dashboard-panel .card-h {
  padding: 20px 22px 18px;
  border-bottom-color: rgba(148,163,184,0.14);
}

.dashboard-panel .card-b {
  padding: 18px 20px 20px;
}

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

.card-chip {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.card-chip.amber { background: linear-gradient(180deg, rgba(255,247,237,0.95), rgba(255,237,213,0.92)); color: var(--amber) }
.card-chip.blue { background: linear-gradient(180deg, rgba(239,246,255,0.98), rgba(219,234,254,0.94)); color: var(--blue) }
.card-chip.cyan { background: linear-gradient(180deg, rgba(236,254,255,0.98), rgba(207,250,254,0.94)); color: var(--cyan) }
.card-chip.violet { background: linear-gradient(180deg, rgba(245,243,255,0.98), rgba(233,213,255,0.94)); color: var(--violet) }

.card-headline-copy {
  min-width: 0;
}

.card-headline-copy h3 {
  margin-bottom: 4px;
}

.card-headline-copy p {
  font-size: 12px;
  color: var(--t3);
  line-height: 1.5;
}

.card-action-pill {
  border-radius: 999px;
  padding-inline: 16px;
  background: rgba(255,255,255,0.62);
  border-color: rgba(148,163,184,0.16);
  backdrop-filter: blur(10px);
}

.dashboard-list {
  padding: 0 16px 16px;
}

.dashboard-booking-item {
  margin-top: 10px;
  padding: 16px 18px;
  border-bottom: none;
  border: 1px solid rgba(148,163,184,0.14);
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.dashboard-booking-item:hover {
  background: rgba(255,255,255,0.96);
  border-color: rgba(37,99,235,0.16);
  box-shadow: 0 12px 28px rgba(15,23,42,0.08);
  transform: translateY(-1px);
}

.dashboard-booking-item .bi-room-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.72);
}

.dashboard-booking-item .bi-meta {
  margin-top: 4px;
}

.dashboard-booking-item .bi-price {
  font-size: 15px;
}

.dashboard-empty {
  min-height: 300px;
  gap: 0;
  border-radius: 0 0 24px 24px;
  background:
    radial-gradient(circle at top center, rgba(255,255,255,0.88), transparent 36%),
    linear-gradient(180deg, rgba(248,250,252,0.7), rgba(255,255,255,0.35));
}

.dashboard-empty-compact {
  min-height: 236px;
}

.dashboard-empty .empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(241,245,249,0.9));
  box-shadow:
    0 16px 32px rgba(15,23,42,0.08),
    inset 0 1px 0 rgba(255,255,255,0.92);
}

.dashboard-empty h4 {
  margin-bottom: 10px;
}

.dashboard-empty p {
  max-width: 340px;
}

.dashboard-empty-action {
  min-height: 42px;
}

.dashboard-chart-body {
  padding-top: 12px;
}

.dashboard-chart-shell {
  min-height: 254px;
  border-radius: 22px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(241,245,249,0.52)),
    radial-gradient(circle at top left, rgba(37,99,235,0.08), transparent 38%);
  border: 1px solid rgba(148,163,184,0.14);
}

.dashboard-chart-shell-donut {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(250,245,255,0.56)),
    radial-gradient(circle at top left, rgba(124,58,237,0.08), transparent 38%);
}

.dashboard-chart {
  width: 100%;
}

/* ═══════════════════════════════════════
   PAGE HEADER
═══════════════════════════════════════ */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
}

.rooms-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.rooms-toolbar-main {
  display: flex;
  flex: 1;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  min-width: 0;
}

.rooms-control {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rooms-control-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--t3);
}

.rooms-search {
  flex: 1 1 280px;
  min-width: 220px;
}

.rooms-search .search-bar {
  width: 100%;
}

.rooms-search .search-bar input {
  width: 100%;
}

.rooms-filter-wrap {
  width: 190px;
  flex: 0 0 190px;
}

.rooms-filter {
  min-height: 46px;
}

.rooms-add-btn {
  min-height: 46px;
  padding-inline: 18px;
  box-shadow: 0 10px 24px rgba(37,99,235,0.08);
}

/* ═══════════════════════════════════════
   STAT CARDS
═══════════════════════════════════════ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.s-card {
  background: var(--bg2);
  border: 1.5px solid var(--br);
  border-radius: var(--r2);
  padding: 22px;
  transition: all .2s;
  box-shadow: var(--sh);
}
.s-card:hover { border-color: var(--br2); box-shadow: var(--sh2); transform: translateY(-1px) }

.s-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.s-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.s-icon.blue    { background: var(--blue-light); color: var(--blue) }
.s-icon.emerald { background: var(--green-light); color: var(--green) }
.s-icon.amber   { background: var(--amber-light); color: var(--amber) }
.s-icon.violet  { background: var(--violet-light); color: var(--violet) }
.s-icon.rose    { background: var(--red-light); color: var(--red) }
.s-icon.cyan    { background: var(--cyan-light); color: var(--cyan) }

.s-value {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1.2px;
  color: var(--t1);
  margin-bottom: 10px;
}

.s-trend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.s-trend.up {
  background: var(--green-light);
  color: var(--green);
}

.s-trend.down {
  background: var(--red-light);
  color: var(--red);
}

.s-trend.neutral {
  background: var(--bg4);
  color: var(--t2);
}

.room-stats {
  margin-bottom: 20px;
}

.room-stat-card {
  min-height: 170px;
}

.room-stat-card .s-sub {
  line-height: 1.5;
}

.receipt-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.receipt-stat-card {
  position: relative;
  min-height: 182px;
  overflow: hidden;
  border-radius: 22px;
  border-color: rgba(148,163,184,0.16);
  background:
    radial-gradient(circle at top right, rgba(37,99,235,0.1), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95));
  box-shadow:
    0 18px 36px rgba(15,23,42,0.08),
    inset 0 1px 0 rgba(255,255,255,0.76);
}

.receipt-stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.34), transparent 26%);
  pointer-events: none;
}

.receipt-stat-card .s-top,
.receipt-stat-card .s-value,
.receipt-stat-card .s-label,
.receipt-stat-card .s-sub {
  position: relative;
  z-index: 1;
}

.receipt-stat-card .s-top {
  margin-bottom: 16px;
}

.receipt-stat-card .s-sub {
  max-width: 18ch;
  line-height: 1.55;
}

.receipts-panel {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border-color: rgba(148,163,184,0.16);
  background:
    radial-gradient(circle at top right, rgba(59,130,246,0.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95));
  box-shadow:
    0 24px 48px rgba(15,23,42,0.08),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

.receipts-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent 28%);
  pointer-events: none;
}

.receipts-head,
.receipts-table-wrap {
  position: relative;
  z-index: 1;
}

.receipts-head {
  padding: 20px 22px 18px;
  border-bottom-color: rgba(148,163,184,0.14);
}

.receipts-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 360px;
  gap: 12px;
  flex-wrap: wrap;
}

.receipts-search {
  min-width: 280px;
  flex: 1 1 300px;
  background: rgba(255,255,255,0.82);
  border-color: rgba(148,163,184,0.16);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.74);
}

.receipts-search input {
  width: 100%;
  min-width: 0;
}

.receipts-export {
  min-height: 46px;
  padding-inline: 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.78);
  border-color: rgba(148,163,184,0.16);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.74);
}

.receipts-export:hover {
  background: rgba(255,255,255,0.96);
  border-color: rgba(37,99,235,0.18);
}

.receipts-table-wrap {
  padding: 0 18px 18px;
}

.receipts-table {
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0 12px;
}

.receipts-table thead th {
  padding: 0 16px 6px;
  background: transparent;
  border-bottom: none;
}

.receipts-table tbody td {
  padding: 16px;
  border-top: 1px solid rgba(148,163,184,0.14);
  border-bottom: 1px solid rgba(148,163,184,0.14);
  background: rgba(255,255,255,0.86);
}

.receipts-table tbody tr:last-child td {
  border-bottom: 1px solid rgba(148,163,184,0.14);
}

.receipts-table tbody tr:hover td {
  background: rgba(255,255,255,0.98);
}

.receipts-table tbody td:first-child {
  border-left: 1px solid rgba(148,163,184,0.14);
  border-radius: 18px 0 0 18px;
}

.receipts-table tbody td:last-child {
  border-right: 1px solid rgba(148,163,184,0.14);
  border-radius: 0 18px 18px 0;
}

.receipt-row-id {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--t4);
  white-space: nowrap;
}

.receipt-row-name {
  color: var(--t1);
  font-size: 14px;
  font-weight: 700;
}

.receipt-row-amount {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--t2);
  white-space: nowrap;
}

.receipts-table tbody td:nth-child(5),
.receipt-row-discount {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--red) !important;
  white-space: nowrap;
}

.receipt-row-total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--green-light);
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.receipt-row-date {
  color: var(--t3);
  font-size: 13px;
  white-space: nowrap;
}

.receipt-row-btn {
  min-height: 38px;
  border-radius: 12px;
  padding-inline: 12px;
  background: rgba(255,255,255,0.78);
}

.receipt-row-btn:hover {
  background: rgba(255,255,255,0.96);
}

.receipts-table td[colspan="8"] {
  padding: 0;
  border: none !important;
  background: transparent !important;
}

.receipts-table td[colspan="8"] .empty {
  min-height: 280px;
  border-radius: 24px;
  border: 1px dashed rgba(148,163,184,0.24);
  background:
    radial-gradient(circle at top center, rgba(37,99,235,0.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.84), rgba(248,250,252,0.7));
}

.receipts-table td[colspan="8"] .empty::before {
  content: '\f543';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  width: 66px;
  height: 66px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--blue);
  background: linear-gradient(180deg, rgba(239,246,255,0.98), rgba(219,234,254,0.92));
  box-shadow:
    0 16px 30px rgba(37,99,235,0.12),
    inset 0 1px 0 rgba(255,255,255,0.82);
}

.receipts-table td[colspan="8"] .empty p {
  margin-bottom: 0;
  font-size: 14px;
}

.expense-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.expense-stat-card {
  position: relative;
  min-height: 186px;
  overflow: hidden;
  border-radius: 22px;
  border-color: rgba(148,163,184,0.16);
  background:
    radial-gradient(circle at top right, rgba(217,119,6,0.08), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95));
  box-shadow:
    0 18px 36px rgba(15,23,42,0.08),
    inset 0 1px 0 rgba(255,255,255,0.76);
}

.expense-stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.34), transparent 28%);
  pointer-events: none;
}

.expense-stat-card .s-top,
.expense-stat-card .s-value,
.expense-stat-card .s-label,
.expense-stat-card .s-sub {
  position: relative;
  z-index: 1;
}

.expense-stat-card .s-sub {
  max-width: 22ch;
  line-height: 1.55;
}

.expenses-panel {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border-color: rgba(148,163,184,0.16);
  background:
    radial-gradient(circle at top right, rgba(217,119,6,0.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95));
  box-shadow:
    0 24px 48px rgba(15,23,42,0.08),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

.expenses-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.28), transparent 28%);
  pointer-events: none;
}

.expenses-head,
.expenses-table-wrap {
  position: relative;
  z-index: 1;
}

.expenses-head {
  padding: 20px 22px 18px;
  border-bottom-color: rgba(148,163,184,0.14);
}

.expenses-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 1 1 380px;
  flex-wrap: wrap;
}

.expenses-head-pills {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
  flex: 1 1 320px;
  flex-wrap: wrap;
}

.expense-head-pill {
  min-width: 168px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(255,255,255,0.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.76);
  backdrop-filter: blur(12px);
}

.expense-head-pill span,
.expense-overview-card span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--t4);
}

.expense-head-pill strong,
.expense-overview-card strong {
  display: block;
  color: var(--t1);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.expense-head-pill strong.danger {
  color: var(--red);
}

.expenses-add-btn {
  min-height: 46px;
  padding-inline: 18px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(220,38,38,0.12);
}

.expenses-overview {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 18px 18px;
}

.expense-overview-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(248,250,252,0.66));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.76);
}

.expense-overview-card small {
  display: block;
  margin-top: 8px;
  color: var(--t3);
  font-size: 12px;
  line-height: 1.55;
}

.expenses-table-wrap {
  padding: 0 18px 18px;
}

.expenses-table {
  min-width: 780px;
  border-collapse: separate;
  border-spacing: 0 12px;
}

.expenses-table thead th {
  padding: 0 16px 6px;
  background: transparent;
  border-bottom: none;
}

.expenses-table tbody td {
  padding: 16px;
  border-top: 1px solid rgba(148,163,184,0.14);
  border-bottom: 1px solid rgba(148,163,184,0.14);
  background: rgba(255,255,255,0.86);
}

.expenses-table tbody tr:last-child td {
  border-bottom: 1px solid rgba(148,163,184,0.14);
}

.expenses-table tbody tr:hover td {
  background: rgba(255,255,255,0.98);
}

.expenses-table tbody td:first-child {
  border-left: 1px solid rgba(148,163,184,0.14);
  border-radius: 18px 0 0 18px;
}

.expenses-table tbody td:last-child {
  border-right: 1px solid rgba(148,163,184,0.14);
  border-radius: 0 18px 18px 0;
}

.expense-row-id {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--t4);
  white-space: nowrap;
}

.expense-row-date,
.expense-row-shift {
  color: var(--t3);
  font-size: 13px;
  white-space: nowrap;
}

.expense-row-reason {
  color: var(--t1);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.expense-row-amount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--red-light);
  color: var(--red);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}

.expense-row-btn {
  min-height: 38px;
  border-radius: 12px;
  padding-inline: 12px;
  color: var(--red);
  border-color: rgba(220,38,38,0.14);
  background: rgba(254,242,242,0.7);
}

.expense-row-btn:hover {
  background: rgba(254,242,242,0.96);
  color: var(--red);
}

.expenses-table td[colspan="6"] {
  padding: 0;
  border: none !important;
  background: transparent !important;
}

.expenses-table td[colspan="6"] .empty {
  min-height: 270px;
  border-radius: 24px;
  border: 1px dashed rgba(148,163,184,0.24);
  background:
    radial-gradient(circle at top center, rgba(217,119,6,0.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.84), rgba(248,250,252,0.72));
}

.s-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.s-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.s-card-icon.blue   { background: var(--blue-light); color: var(--blue) }
.s-card-icon.green  { background: var(--green-light); color: var(--green) }
.s-card-icon.amber  { background: var(--amber-light); color: var(--amber) }
.s-card-icon.violet { background: var(--violet-light); color: var(--violet) }
.s-card-icon.red    { background: var(--red-light); color: var(--red) }
.s-card-icon.cyan   { background: var(--cyan-light); color: var(--cyan) }

.s-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--t3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.s-val {
  font-size: 30px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 8px;
}
.s-sub { font-size: 12px; color: var(--t3) }
.s-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}
.s-change.up   { background: var(--green-light); color: var(--green) }
.s-change.down { background: var(--red-light); color: var(--red) }

/* ═══════════════════════════════════════
   QUICK ACTIONS
═══════════════════════════════════════ */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.qa-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 14px;
  background: var(--bg2);
  border: 1.5px solid var(--br);
  border-radius: var(--r2);
  cursor: pointer;
  color: var(--t2);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  transition: all .18s;
  box-shadow: var(--sh);
  text-align: center;
  appearance: none;
}
.qa-btn:hover {
  border-color: var(--blue-br);
  background: var(--blue-light);
  color: var(--blue-text);
  transform: translateY(-2px);
  box-shadow: var(--sh2);
}
.qa-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.qa-text strong {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--t1);
}
.qa-text span {
  font-size: 13px;
  line-height: 1.5;
  color: var(--t3);
}
.qa-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bg4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all .18s;
}
.qa-icon.blue { background: var(--blue-light); color: var(--blue) }
.qa-icon.amber { background: var(--amber-light); color: var(--amber) }
.qa-icon.cyan { background: var(--cyan-light); color: var(--cyan) }
.qa-icon.emerald { background: var(--green-light); color: var(--green) }
.qa-btn:hover .qa-icon {
  background: var(--blue-mid);
  color: var(--blue);
}

.dashboard-actions {
  margin-bottom: 28px;
}

.dashboard-stats {
  margin-bottom: 30px;
}

.dashboard-stat-card {
  min-height: 188px;
}

.section-gap {
  margin-bottom: 26px;
}

.dashboard-primary-grid {
  margin-bottom: 8px;
}

.dashboard-secondary-grid {
  margin-top: 8px;
}

.analytics-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.analytics-stat-card {
  position: relative;
  min-height: 196px;
  overflow: hidden;
  border-radius: 24px;
  border-color: rgba(148,163,184,0.16);
  background:
    radial-gradient(circle at top right, rgba(37,99,235,0.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95));
  box-shadow:
    0 20px 38px rgba(15,23,42,0.08),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

.analytics-stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.36), transparent 30%);
  pointer-events: none;
}

.analytics-stat-card-profit {
  background:
    radial-gradient(circle at top right, rgba(37,99,235,0.1), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(239,246,255,0.92));
}

.analytics-stat-card-today {
  background:
    radial-gradient(circle at top right, rgba(8,145,178,0.11), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(236,254,255,0.92));
}

.analytics-stat-card-expense {
  background:
    radial-gradient(circle at top right, rgba(220,38,38,0.09), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(254,242,242,0.94));
}

.analytics-stat-card-bookings {
  background:
    radial-gradient(circle at top right, rgba(217,119,6,0.1), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,251,235,0.94));
}

.analytics-stat-card-bar {
  background:
    radial-gradient(circle at top right, rgba(22,163,74,0.11), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(240,253,244,0.94));
}

.analytics-stat-card-bar-orders {
  background:
    radial-gradient(circle at top right, rgba(6,182,212,0.11), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(236,254,255,0.94));
}

.analytics-stat-card .s-top,
.analytics-stat-card .s-value,
.analytics-stat-card .s-label,
.analytics-stat-card .s-sub {
  position: relative;
  z-index: 1;
}

.analytics-stat-card .s-sub {
  max-width: 24ch;
  line-height: 1.55;
}

.analytics-primary-grid {
  margin-bottom: 18px;
  gap: 18px;
}

.analytics-secondary-grid {
  gap: 18px;
  margin-top: 0;
}

.analytics-panel {
  position: relative;
  min-height: 100%;
  border-radius: 28px;
  overflow: hidden;
}

.analytics-panel-finance {
  background:
    radial-gradient(circle at top right, rgba(37,99,235,0.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(239,246,255,0.93));
}

.analytics-panel-hours {
  background:
    radial-gradient(circle at top right, rgba(217,119,6,0.14), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(255,247,237,0.94));
}

.analytics-panel-types {
  background:
    radial-gradient(circle at top right, rgba(124,58,237,0.14), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(245,243,255,0.93));
}

.analytics-panel-rooms {
  background:
    radial-gradient(circle at top right, rgba(8,145,178,0.14), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(236,254,255,0.93));
}

.analytics-panel-bar {
  background:
    radial-gradient(circle at top right, rgba(22,163,74,0.14), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(240,253,244,0.93));
}

.analytics-panel-bar-items {
  background:
    radial-gradient(circle at top right, rgba(6,182,212,0.14), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(236,254,255,0.93));
}

.analytics-panel-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.analytics-head-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(148,163,184,0.18);
  box-shadow:
    0 10px 22px rgba(15,23,42,0.06),
    inset 0 1px 0 rgba(255,255,255,0.82);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--t2);
  backdrop-filter: blur(10px);
}

.analytics-head-badge-amber {
  color: var(--amber);
  border-color: rgba(217,119,6,0.2);
  background: rgba(255,251,235,0.78);
}

.analytics-head-badge-emerald {
  color: var(--emerald);
  border-color: rgba(22,163,74,0.2);
  background: rgba(240,253,244,0.84);
}

.analytics-head-badge-cyan {
  color: var(--cyan);
  border-color: rgba(6,182,212,0.2);
  background: rgba(236,254,255,0.84);
}

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

.analytics-mini-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.84), rgba(248,250,252,0.66));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.76);
}

.analytics-mini-card span,
.analytics-highlight-card span,
.analytics-room-item small {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--t4);
}

.analytics-mini-card strong {
  display: block;
  color: var(--t1);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.analytics-pill-strong {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.analytics-mini-card strong.danger {
  color: var(--red);
}

.analytics-chart-shell {
  min-height: 292px;
  border-radius: 24px;
  border: 1px solid rgba(148,163,184,0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(248,250,252,0.66));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.82),
    0 12px 26px rgba(15,23,42,0.05);
}

.analytics-chart-shell-hours {
  min-height: 260px;
}

.analytics-chart-shell-rooms {
  min-height: 286px;
}

.analytics-highlight-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(217,119,6,0.16);
  background:
    linear-gradient(180deg, rgba(255,251,235,0.96), rgba(255,247,237,0.76));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.82),
    0 14px 28px rgba(217,119,6,0.08);
}

.analytics-highlight-card strong {
  display: block;
  color: var(--t1);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.6px;
}

.analytics-type-list {
  display: grid;
  gap: 14px;
}

.analytics-type-item {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(248,250,252,0.66));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 12px 24px rgba(15,23,42,0.05);
}

.analytics-type-top,
.analytics-type-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.analytics-type-top {
  margin-bottom: 10px;
}

.analytics-type-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--t1);
  font-size: 15px;
  font-weight: 700;
}

.analytics-type-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(148,163,184,0.16);
  font-size: 12px;
  font-weight: 700;
  color: var(--t2);
}

.analytics-type-meta {
  margin-bottom: 14px;
  color: var(--t3);
  font-size: 13px;
}

.analytics-meta-tags {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.analytics-type-meta strong {
  color: var(--t1);
  font-size: 14px;
}

.analytics-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.16);
  background: rgba(255,255,255,0.92);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.analytics-category-tag.cyan {
  color: var(--cyan);
  background: rgba(236,254,255,0.92);
}

.analytics-category-tag.emerald {
  color: var(--emerald);
  background: rgba(240,253,244,0.92);
}

.analytics-category-tag.violet {
  color: var(--violet);
  background: rgba(245,243,255,0.92);
}

.analytics-category-tag.amber {
  color: var(--amber);
  background: rgba(255,251,235,0.92);
}

.analytics-type-item .prog-bar {
  height: 8px;
  margin-top: 0;
  border-radius: 999px;
  background: rgba(148,163,184,0.14);
}

.analytics-type-item .prog-fill {
  border-radius: inherit;
  box-shadow: 0 8px 16px rgba(37,99,235,0.18);
}

.analytics-room-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: center;
}

.analytics-room-legend {
  display: grid;
  gap: 12px;
}

.analytics-room-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.84), rgba(248,250,252,0.68));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.analytics-room-item strong {
  display: block;
  color: var(--t1);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.analytics-room-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.analytics-room-dot.amber {
  background: var(--amber);
  box-shadow: 0 0 0 6px rgba(217,119,6,0.14);
}

.analytics-room-dot.emerald {
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(22,163,74,0.14);
}

.analytics-room-dot.rose {
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(220,38,38,0.14);
}

.dashboard-stat-card .s-value-tail {
  font-size: 18px;
  color: var(--t3);
  font-weight: 700;
  margin-left: 4px;
}

/* ═══════════════════════════════════════
   ROOMS / KANBAN
═══════════════════════════════════════ */
.rooms-kanban {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.r-card {
  background: var(--bg2);
  border: 1.5px solid var(--br);
  border-radius: var(--r2);
  padding: 18px;
  transition: all .2s;
  cursor: pointer;
  box-shadow: var(--sh);
}
.r-card:hover { border-color: var(--br2); box-shadow: var(--sh2) }
.r-card.available {
  border-color: rgba(22,163,74,0.12);
}
.r-card.occupied {
  border-color: var(--amber-br);
  background: linear-gradient(180deg, #fffdfa 0%, #fff8eb 100%);
}
.r-card.maintenance {
  border-color: var(--red-br);
  background: linear-gradient(180deg, #fffdfd 0%, #fff5f5 100%);
}
.r-card.dirty { border-left: 3px solid var(--amber) }

.r-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.r-type-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.r-type-badge > div:last-child {
  min-width: 0;
}

.r-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.r-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.r-icon.pc  { background: var(--blue-light); color: var(--blue) }
.r-icon.ps  { background: var(--violet-light); color: var(--violet) }
.r-icon.bi  { background: var(--green-light); color: var(--green) }
.r-icon.te  { background: var(--amber-light); color: var(--amber) }

.r-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 2px;
  line-height: 1.25;
  word-break: break-word;
}
.r-type-txt {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.r-rate { font-size: 13px; color: var(--t2); margin-bottom: 14px; display: flex; align-items: center; gap: 6px }

.r-timer {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 500;
  color: var(--bg5);
  margin-bottom: 6px;
  letter-spacing: 2px;
}
.r-timer.active { color: var(--amber) }
.r-customer { font-size: 13px; color: var(--t3); margin-bottom: 6px; display: flex; align-items: center; gap: 6px }
.r-customer.active { color: var(--t2) }
.r-earning { font-family: var(--mono); font-size: 16px; font-weight: 600; color: var(--t4); margin-bottom: 16px }
.r-earning.active { color: var(--green) }
.r-actions { display: flex; gap: 8px; flex-wrap: wrap }

/* ═══════════════════════════════════════
   BOOKING ITEM
═══════════════════════════════════════ */
.booking-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--br);
  transition: background .14s;
}
.booking-item:last-child { border-bottom: none }
.booking-item:hover { background: var(--bg3) }
.bi-room-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.bi-info { flex: 1; min-width: 0 }
.bi-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--t1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bi-meta { font-size: 12px; color: var(--t3); margin-top: 2px }
.bi-right { text-align: right; flex-shrink: 0 }
.bi-price { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--t1) }
.bi-time { font-size: 12px; color: var(--t3); margin-top: 2px }

/* ═══════════════════════════════════════
   BADGES
═══════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.b-emerald { background: var(--green-light); color: var(--green) }
.b-amber   { background: var(--amber-light); color: var(--amber) }
.b-rose    { background: var(--red-light); color: var(--red) }
.b-blue    { background: var(--blue-light); color: var(--blue-text) }
.b-violet  { background: var(--violet-light); color: var(--violet) }
.b-gray    { background: var(--bg4); color: var(--t2) }
.b-cyan    { background: var(--cyan-light); color: var(--cyan) }

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-left: 4px;
  animation: pulse-green 2.5s ease-in-out infinite;
}

/* ═══════════════════════════════════════
   TABLE
═══════════════════════════════════════ */
.tbl-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
table { width: 100%; min-width: 640px; border-collapse: collapse }
th {
  padding: 12px 18px;
  text-align: left;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--t3);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--br2);
  background: var(--bg3);
  white-space: nowrap;
}
td {
  padding: 14px 18px;
  font-size: 14px;
  color: var(--t2);
  border-bottom: 1px solid var(--br);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none }
tr:hover td { background: var(--bg3) }

/* ═══════════════════════════════════════
   PROGRESS
═══════════════════════════════════════ */
.prog-bar {
  height: 6px;
  background: var(--bg4);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 10px;
}
.prog-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .5s ease;
}

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r);
  border: 1.5px solid var(--br2);
  background: var(--bg2);
  color: var(--t2);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.1px;
}
.btn:hover { background: var(--bg3); color: var(--t1); border-color: #c4c9d4 }
.btn:active { transform: scale(0.97) }
.btn-full { width: 100% }

.btn-primary {
  background: var(--blue);
  color: #fff;
  border: none;
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--blue-hover);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}

.btn-blue    { background: var(--blue-light); color: var(--blue-text); border-color: var(--blue-br) }
.btn-blue:hover { background: rgba(37,99,235,0.15); color: var(--blue) }
.btn-emerald { background: var(--green-light); color: var(--green); border-color: var(--green-br) }
.btn-emerald:hover { background: rgba(22,163,74,0.15) }
.btn-amber   { background: var(--amber-light); color: var(--amber); border-color: var(--amber-br) }
.btn-amber:hover { background: rgba(217,119,6,0.15) }
.btn-rose    { background: var(--red-light); color: var(--red); border-color: var(--red-br) }
.btn-rose:hover { background: rgba(220,38,38,0.15) }
.btn-cyan    { background: var(--cyan-light); color: var(--cyan); border-color: var(--cyan-br) }
.btn-cyan:hover { background: rgba(8,145,178,0.15) }
.btn-violet  { background: var(--violet-light); color: var(--violet); border-color: var(--violet-br) }
.btn-violet:hover { background: rgba(124,58,237,0.15) }
.btn-ghost   { background: transparent; color: var(--t2); border-color: var(--br) }
.btn-ghost:hover { background: var(--bg3); color: var(--t1) }

.btn-sm  { padding: 8px 14px; font-size: 13px; border-radius: 7px }
.btn-xs  { padding: 5px 10px; font-size: 12px; border-radius: 6px }
.btn-lg  { padding: 14px 26px; font-size: 15px; font-weight: 600 }
.btn-icon    { padding: 8px; width: 36px; height: 36px }
.btn-icon-sm { padding: 6px; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center }

/* ═══════════════════════════════════════
   FORMS
═══════════════════════════════════════ */
.field { margin-bottom: 18px }
.field label, .fg label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 8px;
}
.field-wrap { position: relative; display: flex; align-items: center }
.field-wrap i {
  position: absolute;
  left: 14px;
  color: var(--t4);
  font-size: 13px;
  pointer-events: none;
  transition: color .2s;
}
.field-wrap input,
.field-wrap select,
.field-wrap textarea {
  width: 100%;
  padding: 12px 14px 12px 40px;
  background: var(--bg3);
  border: 1.5px solid var(--br2);
  border-radius: var(--r);
  color: var(--t1);
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field-wrap input::placeholder,
.fg input::placeholder { color: var(--t4) }
.field-wrap:focus-within i { color: var(--blue) }
.field-wrap input:focus,
.field-wrap select:focus,
.fg input:focus,
.fg select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-mid);
}

.fg { display: flex; flex-direction: column; gap: 8px }
.fg.full { grid-column: 1 / -1 }
.fg input,
.fg select,
.fg textarea,
.custom-select {
  padding: 12px 14px;
  background: var(--bg3);
  border: 1.5px solid var(--br2);
  border-radius: var(--r);
  color: var(--t1);
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
  width: 100%;
}
.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-mid);
}
textarea { resize: vertical; min-height: 120px }

select,
.field-wrap select,
.fg select,
.custom-select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-position: calc(100% - 14px) center;
  background-repeat: no-repeat;
  background-size: 12px;
  padding-right: 40px !important;
  cursor: pointer;
}
select:hover,
.field-wrap select:hover,
.fg select:hover,
.custom-select:hover { border-color: #c4c9d4; background-color: var(--bg2) }
select option { background: var(--bg2); color: var(--t1) }

/* ═══════════════════════════════════════
   BROADCAST / BANNERS
═══════════════════════════════════════ */
.broadcast-stack { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px }
.broadcast-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  border-radius: var(--r2);
  border: 1.5px solid var(--br);
  background: var(--bg2);
  box-shadow: var(--sh);
}
.broadcast-banner.info    { background: var(--blue-light); border-color: var(--blue-br) }
.broadcast-banner.success { background: var(--green-light); border-color: var(--green-br) }
.broadcast-banner.warning { background: var(--amber-light); border-color: var(--amber-br) }
.broadcast-banner.danger  { background: var(--red-light); border-color: var(--red-br) }

.broadcast-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.06);
}
.broadcast-banner.info    .broadcast-banner-icon { background: rgba(37,99,235,0.12); color: var(--blue) }
.broadcast-banner.success .broadcast-banner-icon { background: rgba(22,163,74,0.12); color: var(--green) }
.broadcast-banner.warning .broadcast-banner-icon { background: rgba(217,119,6,0.12); color: var(--amber) }
.broadcast-banner.danger  .broadcast-banner-icon { background: rgba(220,38,38,0.12); color: var(--red) }

.broadcast-banner-content { flex: 1; min-width: 0 }
.broadcast-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
.broadcast-banner-top strong { font-size: 14px; font-weight: 700; color: var(--t1) }
.broadcast-banner-top span   { font-size: 12px; color: var(--t3) }
.broadcast-banner p { font-size: 13px; line-height: 1.65; color: var(--t2) }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
.input-icon { position: relative }
.input-icon i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--t3);
  font-size: 13px;
  pointer-events: none;
}
.input-icon input { padding-left: 38px }

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg2);
  border: 1.5px solid var(--br2);
  border-radius: var(--r);
  padding: 10px 16px;
  transition: border-color .2s;
}
.search-bar:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-mid) }
.search-bar i { color: var(--t3); font-size: 14px; flex-shrink: 0 }
.search-bar input {
  background: none;
  border: none;
  outline: none;
  color: var(--t1);
  font-family: var(--sans);
  font-size: 14px;
  width: 200px;
}
.search-bar input::placeholder { color: var(--t4) }

/* ═══════════════════════════════════════
   MODAL
═══════════════════════════════════════ */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex }
.modal-backdrop.sheet {
  align-items: flex-end;
  padding: 0;
}
.modal-box {
  background: var(--bg2);
  border: 1.5px solid var(--br2);
  border-radius: var(--r3);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  animation: modalIn .25s cubic-bezier(.34,1.56,.64,1);
}
.modal-box.wide { max-width: 680px }
.modal-box.mobile-nav-modal {
  background: linear-gradient(180deg, #060911 0%, #0b1220 100%);
  border-color: rgba(255,255,255,0.08);
  color: #fff;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.95) translateY(8px) }
  to   { opacity: 1; transform: scale(1) translateY(0) }
}
.modal-box.mobile-nav-modal .modal-head {
  border-bottom-color: rgba(255,255,255,0.08);
}
.modal-box.mobile-nav-modal .modal-icon-wrap {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.1);
  color: #fff;
}
.modal-box.mobile-nav-modal .modal-title {
  color: #fff;
}
.modal-box.mobile-nav-modal .modal-close {
  color: rgba(255,255,255,0.68);
}
.modal-box.mobile-nav-modal .modal-close:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.modal-box.mobile-nav-modal .modal-body {
  padding: 20px 22px 22px;
}

.modal-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--br);
}
.modal-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--blue-light);
  border: 1px solid var(--blue-br);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 16px;
  flex-shrink: 0;
}
.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--t1);
  flex: 1;
  letter-spacing: -0.2px;
}
.modal-close {
  background: none;
  border: none;
  color: var(--t3);
  cursor: pointer;
  font-size: 17px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.modal-close:hover { background: var(--bg4); color: var(--t1) }
.modal-body { padding: 22px 24px }
.modal-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--br);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  background: var(--bg3);
}

/* ═══════════════════════════════════════
   TOAST
═══════════════════════════════════════ */
.toast-wrap {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--r2);
  background: var(--bg2);
  border: 1.5px solid var(--br2);
  box-shadow: var(--sh3);
  font-size: 14px;
  color: var(--t1);
  max-width: 340px;
  animation: toastIn .28s cubic-bezier(.34,1.56,.64,1);
}
.toast.out { animation: toastOut .25s ease forwards }
@keyframes toastIn  { from { opacity:0; transform:translateX(16px) } to { opacity:1; transform:translateX(0) } }
@keyframes toastOut { to   { opacity:0; transform:translateX(16px) } }
.toast.success { border-left: 4px solid var(--green) }
.toast.error   { border-left: 4px solid var(--red) }
.toast.warning { border-left: 4px solid var(--amber) }
.toast-icon { font-size: 16px; flex-shrink: 0 }
.toast.success .toast-icon { color: var(--green) }
.toast.error   .toast-icon { color: var(--red) }
.toast.warning .toast-icon { color: var(--amber) }
.toast.info    .toast-icon { color: var(--blue) }
.toast-msg { flex: 1; font-size: 13px; line-height: 1.5 }
.toast-close { cursor: pointer; color: var(--t3); font-size: 13px; margin-left: 4px }

/* ═══════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════ */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  text-align: center;
}
.empty-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--bg4);
  border: 1.5px solid var(--br2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--t3);
  margin-bottom: 18px;
}
.empty h4 { font-size: 17px; font-weight: 700; color: var(--t1); margin-bottom: 8px }
.empty p  { font-size: 14px; color: var(--t3); margin-bottom: 20px }

/* ═══════════════════════════════════════
   MISC
═══════════════════════════════════════ */
.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--br2);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }

.bar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 14px;
}

.bar-stats {
  margin-bottom: 18px;
}

.bar-stat-card {
  min-height: 186px;
  border-radius: 22px;
  border-color: rgba(148,163,184,0.16);
  background:
    radial-gradient(circle at top right, rgba(8,145,178,0.08), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.94));
  box-shadow:
    0 18px 34px rgba(15,23,42,0.08),
    inset 0 1px 0 rgba(255,255,255,0.78);
}

.bar-stat-card .s-sub {
  max-width: 22ch;
  line-height: 1.55;
}

.bar-layout {
  gap: 18px;
  margin-top: 16px;
}

.bar-panel {
  position: relative;
  border-radius: 24px;
  border-color: rgba(148,163,184,0.16);
  background:
    radial-gradient(circle at top right, rgba(37,99,235,0.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(248,250,252,0.95));
  box-shadow:
    0 20px 40px rgba(15,23,42,0.08),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

.bar-orders-panel {
  background:
    radial-gradient(circle at top right, rgba(8,145,178,0.1), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(236,254,255,0.93));
}

.bar-panel-head {
  gap: 14px;
}

.bar-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1 1 260px;
}

.bar-filter-select {
  min-width: 152px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.16);
  background: rgba(255,255,255,0.84);
  color: var(--t2);
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.bar-add-btn {
  min-height: 40px;
  padding-inline: 16px;
}

.bar-orders-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(148,163,184,0.16);
  color: var(--t2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.7px;
}

.bar-orders-scroll {
  max-height: 100%;
  padding: 0 14px 14px;
}

.bar-order-item {
  margin-top: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(255,255,255,0.74);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.bar-order-item:last-child {
  margin-bottom: 2px;
}
.bar-item-card {
  background: var(--bg2);
  border: 1.5px solid var(--br);
  border-radius: var(--r2);
  padding: 18px;
  text-align: center;
  transition: all .18s;
  box-shadow: var(--sh);
}
.bar-item-card:hover {
  border-color: var(--br2);
  transform: translateY(-2px);
  box-shadow: var(--sh2);
}
.bar-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin: 0 auto 12px;
}
.bar-item-name  { font-size: 14px; font-weight: 600; color: var(--t1); margin-bottom: 4px }
.bar-item-price { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--green); margin-bottom: 4px }
.bar-item-stock { font-family: var(--mono); font-size: 11px; color: var(--t3); margin-bottom: 12px }
.bar-item-actions { display: flex; gap: 6px; justify-content: center }

.receipt-card {
  background: #fff;
  color: #111;
  border-radius: var(--r2);
  padding: 24px 22px;
  text-align: center;
  border: 1.5px solid #e5e7eb;
}
.receipt-card h2 { font-size: 19px; font-weight: 700; margin-bottom: 4px }
.rc-sub { font-size: 12px; color: #6b7280; margin-bottom: 16px }
.rc-divider { border: none; border-top: 1px dashed #d1d5db; margin: 12px 0 }
.rc-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px }
.rc-total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 700; margin-top: 6px }

.plan-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px }
.plan-card {
  background: var(--bg2);
  border: 1.5px solid var(--br);
  border-radius: var(--r3);
  padding: 28px;
  position: relative;
  transition: all .2s;
  box-shadow: var(--sh);
}
.plan-card:hover { border-color: var(--br2); transform: translateY(-2px); box-shadow: var(--sh2) }
.plan-card.highlight { border-color: var(--blue-br); box-shadow: 0 4px 20px rgba(37,99,235,0.1) }
.plan-card.plan-current {
  border-color: rgba(16,185,129,0.35);
  box-shadow: 0 10px 30px rgba(16,185,129,0.12);
}
.plan-card.plan-locked {
  opacity: 0.74;
  border-color: var(--br);
  box-shadow: none;
}
.plan-card.plan-locked:hover {
  transform: none;
  border-color: var(--br);
  box-shadow: var(--sh);
}
.plan-card .btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
}
.plan-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: .5px;
}
.plan-name {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--t3);
  margin-bottom: 10px;
  margin-top: 8px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.plan-note {
  margin-top: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--t2);
  font-weight: 600;
}
.plan-price {
  font-size: 38px;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 4px;
  letter-spacing: -1.5px;
}
.plan-price sub { font-size: 15px; color: var(--t2); font-weight: 400 }
.plan-period { font-size: 12px; color: var(--t3); margin-bottom: 22px }
.plan-features { list-style: none; margin-bottom: 22px }
.plan-features li {
  font-size: 13px;
  color: var(--t2);
  padding: 7px 0;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--br);
}
.plan-features li:last-child { border-bottom: none }
.plan-features li i { color: var(--green); font-size: 12px }

.inner-scroll {
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--bg5) transparent;
}

.sub-shell,
.settings-shell {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.sub-hero,
.settings-hero {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,0.16), transparent 32%),
    linear-gradient(135deg, #0f172a 0%, #152033 55%, #1d4ed8 140%);
  color: #fff;
  box-shadow: 0 18px 38px rgba(15,23,42,0.16);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}

.hero-copy {
  max-width: 640px;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
}

.hero-stats,
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.hero-stat,
.mini-stat {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}

.hero-stat strong,
.mini-stat strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat span,
.mini-stat span {
  font-size: 12px;
  color: rgba(255,255,255,0.72);
}

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

.stack-form {
  display: grid;
  gap: 14px;
}

.field-hint {
  font-size: 12px;
  color: var(--t3);
}

.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--blue-text);
  border: 1px solid var(--blue-br);
  font-size: 12px;
  font-weight: 600;
}

.sub-request-card {
  border: 1px solid var(--br);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, var(--bg2), var(--bg3));
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.status-pill-compact {
  padding: 8px 12px;
  font-size: 11px;
}

.status-pill-success {
  background: linear-gradient(180deg, rgba(240,253,244,0.96), rgba(220,252,231,0.9));
  color: var(--green);
  border-color: var(--green-br);
}

.status-pill-warning {
  background: linear-gradient(180deg, rgba(255,251,235,0.96), rgba(254,243,199,0.9));
  color: var(--amber);
  border-color: var(--amber-br);
}

.status-pill-error {
  background: linear-gradient(180deg, rgba(254,242,242,0.96), rgba(254,226,226,0.9));
  color: var(--red);
  border-color: var(--red-br);
}

.status-pill-info {
  background: linear-gradient(180deg, rgba(239,246,255,0.96), rgba(219,234,254,0.9));
  color: var(--blue);
  border-color: var(--blue-br);
}

.sub-request-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sub-request-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sub-request-meta div,
.settings-kv {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg3);
  border: 1px solid var(--br);
}

.sub-request-meta span,
.settings-kv span {
  display: block;
  font-size: 11px;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}

.sub-request-meta strong,
.settings-kv strong {
  font-size: 13px;
  color: var(--t1);
}

.sub-request-status-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(255,255,255,0.74);
}

.sub-request-status-note i {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sub-request-status-note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--t1);
}

.sub-request-status-note span {
  display: block;
  font-size: 12px;
  line-height: 1.55;
  color: var(--t2);
}

.sub-request-status-note-success {
  background: linear-gradient(180deg, rgba(240,253,244,0.7), rgba(255,255,255,0.92));
  border-color: var(--green-br);
}

.sub-request-status-note-success i {
  background: var(--green-light);
  color: var(--green);
}

.sub-request-status-note-warning {
  background: linear-gradient(180deg, rgba(255,251,235,0.76), rgba(255,255,255,0.92));
  border-color: var(--amber-br);
}

.sub-request-status-note-warning i {
  background: var(--amber-light);
  color: var(--amber);
}

.sub-request-status-note-error {
  background: linear-gradient(180deg, rgba(254,242,242,0.76), rgba(255,255,255,0.92));
  border-color: var(--red-br);
}

.sub-request-status-note-error i {
  background: var(--red-light);
  color: var(--red);
}

.sub-request-status-note-info i {
  background: var(--blue-light);
  color: var(--blue);
}

.settings-kv-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.settings-kv-status .status-pill {
  align-self: flex-start;
}

.settings-kv-status .status-pill span {
  display: inline;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.section-note {
  font-size: 13px;
  color: var(--t2);
}

.cta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(37,99,235,0.02));
  border: 1px solid var(--blue-br);
}

.sub-plan-lock {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15,23,42,0.72);
  border: 1px solid rgba(148,163,184,0.18);
  color: rgba(255,255,255,0.84);
}
.sub-plan-lock i {
  color: #f59e0b;
  margin-top: 2px;
}

.mobile-dock {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(430px, calc(100vw - 24px));
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 60;
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 10px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(8,12,20,0.94), rgba(15,23,42,0.92));
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(24px) saturate(1.2);
  box-shadow: 0 22px 48px rgba(2,6,23,0.28);
  overflow: hidden;
}

.mobile-dock-item {
  min-width: 0;
  border: none;
  background: transparent;
  color: rgba(226,232,240,0.68);
  padding: 10px 6px 9px;
  border-radius: 18px;
  min-height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.mobile-dock-item i {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.05);
  font-size: 14px;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.mobile-dock-item:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

.mobile-dock-item.active {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.mobile-dock-item.active i {
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.1));
  border-color: rgba(255,255,255,0.12);
  color: #fff;
  box-shadow: 0 10px 18px rgba(2,6,23,0.18);
}

.mobile-dock-item span {
  width: 100%;
  min-height: 2.35em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
  letter-spacing: -0.1px;
  overflow-wrap: normal;
  word-break: keep-all;
}

.mobile-menu-sheet {
  display: grid;
  gap: 14px;
}

.mobile-menu-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.mobile-menu-avatar {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.mobile-menu-user {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.mobile-menu-user strong {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.mobile-menu-user span {
  color: rgba(255,255,255,0.72);
  font-size: 13px;
}

.mobile-menu-user small {
  color: rgba(255,255,255,0.52);
  font-size: 12px;
}

.mobile-menu-list {
  display: grid;
  gap: 8px;
}

.mobile-menu-section {
  padding: 10px 4px 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.36);
}

.mobile-menu-item {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.mobile-menu-item.active {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
}

.mobile-menu-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}

.mobile-menu-label {
  flex: 1;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.mobile-menu-arrow {
  color: rgba(255,255,255,0.38);
}

.mobile-menu-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile-menu-action {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.mobile-menu-action.danger {
  background: rgba(220,38,38,0.12);
  border-color: rgba(248,113,113,0.18);
}

/* ═══════════════════════════════════════
   GRID HELPERS
═══════════════════════════════════════ */
.grid-2  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
.grid-3  { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px }
.grid-65 { display: grid; grid-template-columns: 65fr 35fr; gap: 16px }

@media (min-width: 769px) {
  .mobile-dock {
    display: none !important;
  }
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  #login-wrap { grid-template-columns: 1fr }
  .lp-left  { display: none }
  .lp-right {
    min-height: 100vh;
    min-height: 100dvh;
    align-items: flex-start;
    justify-content: flex-start;
    padding: max(18px, env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));
  }
  .lp-right-inner {
    max-width: 520px;
    margin: 0 auto;
  }
  .stats-row   { grid-template-columns: repeat(2, 1fr) }
  .receipt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .expense-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .analytics-mini-grid { grid-template-columns: 1fr 1fr 1fr }
  .analytics-room-body { grid-template-columns: minmax(0, 1fr) 200px }
  .grid-65     { grid-template-columns: 1fr }
  .plan-grid   { grid-template-columns: 1fr }
  .settings-grid,
  .sub-grid { grid-template-columns: 1fr }
  .hero-stats,
  .mini-stats { grid-template-columns: 1fr 1fr 1fr }
  .quick-actions:not(.dashboard-actions) { grid-template-columns: repeat(2, 1fr) }
}

@media (max-width: 768px) {
  html, body {
    min-height: 100%;
  }
  #login-wrap {
    position: fixed;
    inset: 0;
    overflow: hidden;
  }
  .lp-right {
    height: 100vh;
    height: 100dvh;
    padding: max(16px, env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));
  }
  .lp-right-inner {
    padding-bottom: 8px;
  }
  .ap-tabs {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--bg2);
    padding-top: 4px;
  }
  #main { margin-left: 0 }
  #sidebar { display: none !important }
  .sb-head,
  .sb-user,
  .sb-foot { display: none !important }
  .sidebar-overlay { display: none !important }
  .sb-close { display: none !important }
  .menu-btn { display: none !important }
  .rooms-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .rooms-toolbar-main {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .rooms-search,
  .rooms-filter-wrap {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }
  .rooms-add-btn {
    width: 100%;
  }
  .room-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .room-stat-card {
    min-height: 150px;
    padding: 18px 16px;
  }
  .room-stat-card .s-top {
    margin-bottom: 14px;
  }
  .room-stat-card .s-value {
    font-size: 28px;
    margin-bottom: 8px;
  }
  .room-stat-card .s-sub {
    font-size: 12px;
  }
  .receipt-stat-card {
    min-height: 166px;
    padding: 20px 18px;
  }
  .receipt-stat-card .s-value {
    font-size: 30px;
  }
  .expense-stat-card {
    min-height: 166px;
    padding: 20px 18px;
  }
  .expense-stat-card .s-value {
    font-size: 30px;
  }
  .modal-backdrop.sheet { align-items: flex-end; padding: 0 }
  .modal-box.mobile-nav-modal {
    width: 100%;
    max-width: 100%;
    max-height: min(82vh, 760px);
    border-radius: 24px 24px 0 0;
    border-bottom: none;
    animation: mobileSheetIn .24s ease-out;
  }
  .modal-box.mobile-nav-modal .modal-head { padding: 18px 18px 14px }
  .modal-box.mobile-nav-modal .modal-body { padding: 18px 18px calc(18px + env(safe-area-inset-bottom)) }
  .mobile-menu-actions { grid-template-columns: 1fr }
  .content  { padding: 16px 16px 118px; overflow-x: auto }
  .grid-2   { grid-template-columns: 1fr }
  .form-grid { grid-template-columns: 1fr }
  .stats-row { grid-template-columns: repeat(2, 1fr) }
  .rooms-kanban { grid-template-columns: 1fr 1fr }
  .bar-grid  { grid-template-columns: repeat(2, 1fr) }
  .dashboard-actions {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 22px;
  }
  .qa-btn {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 12px;
    min-height: 88px;
    padding: 14px;
  }
  .qa-text {
    align-items: flex-start;
    text-align: left;
    flex: 1;
  }
  .qa-text strong {
    font-size: 15px;
  }
  .qa-text span {
    font-size: 12px;
  }
  .qa-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 18px;
    flex-shrink: 0;
  }
  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
  }
  .analytics-stats {
    gap: 12px;
    margin-bottom: 24px;
  }
  .analytics-stat-card {
    min-height: 172px;
    padding: 20px 18px;
    border-radius: 22px;
  }
  .analytics-stat-card .s-value {
    font-size: 30px;
  }
  .analytics-primary-grid,
  .analytics-secondary-grid {
    gap: 14px;
    margin-bottom: 0;
  }
  .analytics-panel {
    border-radius: 24px;
  }
  .analytics-panel-body {
    gap: 14px;
  }
  .analytics-head-badge {
    align-self: flex-start;
  }
  .analytics-mini-grid {
    grid-template-columns: 1fr;
  }
  .analytics-mini-card {
    padding: 13px 14px;
    border-radius: 16px;
  }
  .analytics-chart-shell {
    min-height: 248px;
  }
  .analytics-chart-shell-hours,
  .analytics-chart-shell-rooms {
    min-height: 236px;
  }
  .analytics-highlight-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .analytics-highlight-card strong {
    font-size: 22px;
  }
  .analytics-type-item {
    padding: 16px;
    border-radius: 20px;
  }
  .analytics-type-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .analytics-room-body {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .analytics-room-legend {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .analytics-room-item {
    padding: 13px 14px;
  }
  .section-gap {
    margin-bottom: 22px;
  }
  .dashboard-primary-grid {
    margin-bottom: 6px;
  }
  .dashboard-secondary-grid {
    margin-top: 6px;
  }
  .dashboard-panel .card-h {
    padding: 18px 16px 16px;
  }
  .dashboard-panel .card-b {
    padding: 14px 14px 16px;
  }
  .card-headline {
    align-items: flex-start;
    gap: 12px;
  }
  .card-chip {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 16px;
  }
  .card-headline-copy p {
    font-size: 11px;
  }
  .card-action-pill {
    width: 100%;
    justify-content: center;
  }
  .dashboard-list {
    padding: 0 12px 12px;
  }
  .dashboard-booking-item {
    padding: 14px;
    gap: 12px;
    align-items: flex-start;
  }
  .dashboard-booking-item .bi-right {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
  .dashboard-empty {
    min-height: 240px;
    border-radius: 0 0 20px 20px;
  }
  .dashboard-empty-compact {
    min-height: 220px;
  }
  .dashboard-chart-shell {
    min-height: 226px;
    padding: 10px 8px;
  }
  .receipts-panel {
    border-radius: 22px;
  }
  .receipts-head {
    padding: 18px 16px 14px;
  }
  .receipts-toolbar {
    width: 100%;
    flex: 1 1 100%;
    justify-content: stretch;
  }
  .receipts-search {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }
  .receipts-export {
    width: 100%;
  }
  .receipts-table-wrap {
    padding: 0 14px 14px;
    overflow: visible;
  }
  .receipts-table {
    min-width: 0;
    width: 100%;
    border-spacing: 0;
  }
  .receipts-table thead {
    display: none;
  }
  .receipts-table tbody {
    display: grid;
    gap: 12px;
  }
  .receipts-table tbody tr.rec-row {
    display: grid;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(148,163,184,0.14);
    background:
      linear-gradient(180deg, rgba(255,255,255,0.95), rgba(248,250,252,0.92));
    box-shadow: 0 16px 30px rgba(15,23,42,0.08);
  }
  .receipts-table tbody td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: none;
    border-bottom: 1px solid rgba(148,163,184,0.12);
    background: transparent;
  }
  .receipts-table tbody td::before {
    content: attr(data-label);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--t4);
    flex-shrink: 0;
  }
  .receipts-table tbody td:nth-child(5)::before {
    content: 'Chegirma';
  }
  .receipts-table tbody td:first-child,
  .receipts-table tbody td:last-child {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .receipts-table tbody td:last-child {
    border-bottom: none;
    padding-top: 14px;
  }
  .receipt-row-name,
  .receipt-row-date,
  .receipt-row-amount,
  .receipts-table tbody td:nth-child(5) {
    text-align: right;
  }
  .receipt-row-btn {
    width: 100%;
    min-height: 42px;
  }
  .receipts-table td[colspan="8"] .empty {
    min-height: 220px;
    border-radius: 20px;
  }
  .expenses-panel {
    border-radius: 22px;
  }
  .expenses-head {
    padding: 18px 16px 14px;
  }
  .expenses-head-actions {
    width: 100%;
    flex: 1 1 100%;
    justify-content: stretch;
    flex-direction: column;
    align-items: stretch;
  }
  .expenses-head-pills {
    width: 100%;
    flex-direction: column;
  }
  .expense-head-pill {
    min-width: 0;
  }
  .expenses-add-btn {
    width: 100%;
  }
  .expenses-overview {
    grid-template-columns: 1fr;
    padding: 14px 14px 14px;
  }
  .expenses-table-wrap {
    padding: 0 14px 14px;
    overflow: visible;
  }
  .bar-layout {
    margin-top: 12px;
  }
  .bar-toolbar {
    width: 100%;
    justify-content: stretch;
  }
  .bar-filter-select,
  .bar-add-btn,
  .bar-orders-badge {
    width: 100%;
  }
  .bar-orders-scroll {
    padding: 0 12px 12px;
    max-height: none;
  }
  .bar-order-item {
    padding: 14px;
    gap: 12px;
    align-items: flex-start;
  }
  .bar-order-item .bi-right {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
  .expenses-table {
    min-width: 0;
    width: 100%;
    border-spacing: 0;
  }
  .expenses-table thead {
    display: none;
  }
  .expenses-table tbody {
    display: grid;
    gap: 12px;
  }
  .expenses-table tbody tr.expense-row {
    display: grid;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(148,163,184,0.14);
    background:
      linear-gradient(180deg, rgba(255,255,255,0.95), rgba(248,250,252,0.92));
    box-shadow: 0 16px 30px rgba(15,23,42,0.08);
  }
  .expenses-table tbody td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: none;
    border-bottom: 1px solid rgba(148,163,184,0.12);
    background: transparent;
  }
  .expenses-table tbody td::before {
    content: attr(data-label);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--t4);
    flex-shrink: 0;
  }
  .expenses-table tbody td:first-child,
  .expenses-table tbody td:last-child {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .expenses-table tbody td:last-child {
    border-bottom: none;
    padding-top: 14px;
  }
  .expense-row-date,
  .expense-row-shift,
  .expense-row-reason {
    text-align: right;
  }
  .expense-row-btn {
    width: 100%;
    min-height: 42px;
  }
  .expenses-table td[colspan="6"] .empty {
    min-height: 220px;
    border-radius: 20px;
  }
  .dashboard-stat-card {
    min-height: 152px;
    padding: 18px 16px;
  }
  .dashboard-stat-card .s-top {
    margin-bottom: 14px;
  }
  .dashboard-stat-card .s-value {
    font-size: 28px;
    margin-bottom: 8px;
  }
  .dashboard-stat-card .s-value-tail {
    font-size: 14px;
  }
  .dashboard-stat-card .s-label {
    font-size: 10px;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
  }
  .dashboard-stat-card .s-sub {
    font-size: 12px;
    line-height: 1.45;
  }
  .dashboard-stat-card .prog-bar {
    margin-top: 12px;
  }
  .toast-wrap { right: 12px; left: 12px }
  .toast { max-width: 100% }
  .form-row { grid-template-columns: 1fr }
  .quick-actions:not(.dashboard-actions) { grid-template-columns: repeat(2, 1fr) }
  .topbar { padding: calc(env(safe-area-inset-top) + 8px) 16px 10px; min-height: 62px; height: auto; align-items: center }
  .tb-actions { gap: 6px }
  .tb-btn { width: 40px; height: 40px }
  .sub-request-meta { grid-template-columns: 1fr }
  .mobile-dock { display: grid }
  input, textarea, select { font-size: 16px }
}

@keyframes mobileSheetIn {
  from { opacity: 0; transform: translateY(28px) }
  to { opacity: 1; transform: translateY(0) }
}

@media (max-width: 480px) {
  .lp-right {
    padding: max(14px, env(safe-area-inset-top)) 14px calc(24px + env(safe-area-inset-bottom));
  }
  .lp-right-inner {
    max-width: 100%;
  }
  .ap-tabs {
    margin-bottom: 22px;
  }
  .ap-head {
    margin-bottom: 22px;
  }
  .ap-form {
    gap: 16px;
  }
  .ap-submit {
    min-height: 58px;
  }
  .stats-row   { grid-template-columns: 1fr 1fr }
  .receipt-stats { gap: 12px }
  .expense-stats { gap: 12px }
  .analytics-stats {
    gap: 12px;
  }
  .analytics-stat-card {
    min-height: 152px;
    padding: 16px 14px;
    border-radius: 20px;
  }
  .analytics-stat-card .s-icon {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
  .analytics-stat-card .s-value {
    font-size: 26px;
  }
  .analytics-stat-card .s-label {
    font-size: 10px;
    letter-spacing: 0.9px;
  }
  .analytics-stat-card .s-sub {
    font-size: 12px;
  }
  .analytics-panel {
    border-radius: 20px;
  }
  .analytics-mini-card,
  .analytics-type-item,
  .analytics-room-item,
  .analytics-highlight-card {
    border-radius: 18px;
  }
  .analytics-mini-card strong {
    font-size: 17px;
  }
  .analytics-highlight-card strong {
    font-size: 20px;
  }
  .analytics-head-badge {
    width: 100%;
    justify-content: center;
  }
  .analytics-type-top {
    align-items: flex-start;
  }
  .analytics-type-name {
    font-size: 14px;
  }
  .analytics-type-share {
    min-width: 52px;
    padding: 6px 9px;
    font-size: 11px;
  }
  .analytics-room-legend {
    grid-template-columns: 1fr;
  }
  .analytics-chart-shell {
    min-height: 224px;
    padding: 8px 6px;
  }
  .rooms-kanban { grid-template-columns: 1fr }
  .room-stat-card {
    min-height: 142px;
    padding: 16px 14px;
  }
  .room-stat-card .s-icon {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
  .room-stat-card .s-value {
    font-size: 26px;
  }
  .room-stat-card .s-label {
    font-size: 10px;
    letter-spacing: 0.9px;
  }
  .receipt-stat-card {
    min-height: 150px;
    padding: 16px 14px;
    border-radius: 20px;
  }
  .receipt-stat-card .s-icon {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
  .receipt-stat-card .s-value {
    font-size: 26px;
  }
  .receipt-stat-card .s-label {
    font-size: 10px;
    letter-spacing: 0.9px;
  }
  .expense-stat-card {
    min-height: 150px;
    padding: 16px 14px;
    border-radius: 20px;
  }
  .expense-stat-card .s-icon {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
  .expense-stat-card .s-value {
    font-size: 26px;
  }
  .expense-stat-card .s-label {
    font-size: 10px;
    letter-spacing: 0.9px;
  }
  .expenses-panel {
    border-radius: 20px;
  }
  .expenses-head {
    padding: 16px 14px 12px;
  }
  .expenses-overview {
    padding: 12px 10px 10px;
  }
  .expenses-table-wrap {
    padding: 0 10px 10px;
  }
  .expenses-table tbody tr.expense-row {
    border-radius: 16px;
  }
  .expenses-table tbody td {
    padding: 11px 12px;
    gap: 10px;
  }
  .expenses-table td[colspan="6"] .empty {
    min-height: 200px;
  }
  .receipts-panel {
    border-radius: 20px;
  }
  .status-pill {
    width: 100%;
    justify-content: center;
  }
  .sub-request-status-note {
    flex-direction: column;
  }
  .bar-grid {
    grid-template-columns: 1fr;
  }
  .bar-stat-card {
    min-height: 152px;
    padding: 16px 14px;
    border-radius: 20px;
  }
  .bar-stat-card .s-icon {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
  .bar-stat-card .s-value {
    font-size: 26px;
  }
  .bar-stat-card .s-label {
    font-size: 10px;
    letter-spacing: 0.9px;
  }
  .bar-stat-card .s-sub {
    font-size: 12px;
  }
  .bar-panel {
    border-radius: 20px;
  }
  .bar-orders-scroll {
    padding: 0 10px 10px;
  }
  .bar-order-item {
    padding: 13px 12px;
  }
  .receipts-head {
    padding: 16px 14px 12px;
  }
  .receipts-table-wrap {
    padding: 0 10px 10px;
  }
  .receipts-table tbody tr.rec-row {
    border-radius: 16px;
  }
  .receipts-table tbody td {
    padding: 11px 12px;
    gap: 10px;
  }
  .receipts-table td[colspan="8"] .empty {
    min-height: 200px;
  }
  .quick-actions:not(.dashboard-actions) { grid-template-columns: 1fr 1fr }
  .dashboard-actions { grid-template-columns: 1fr }
  .qa-btn {
    min-height: 82px;
    padding: 12px;
    gap: 10px;
  }
  .qa-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 16px;
  }
  .qa-text strong {
    font-size: 14px;
  }
  .qa-text span {
    font-size: 11px;
  }
  .dashboard-stat-card {
    min-height: 144px;
    padding: 16px 14px;
  }
  .section-gap {
    margin-bottom: 18px;
  }
  .dashboard-primary-grid,
  .dashboard-secondary-grid {
    margin-top: 0;
    margin-bottom: 0;
  }
  .dashboard-panel {
    border-radius: 20px;
  }
  .dashboard-panel .card-h {
    padding: 16px 14px 14px;
  }
  .dashboard-panel .card-b {
    padding: 12px 12px 14px;
  }
  .card-headline {
    gap: 10px;
  }
  .card-chip {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }
  .card-action-pill {
    padding-inline: 12px;
  }
  .dashboard-booking-item {
    padding: 13px 12px;
  }
  .dashboard-empty {
    min-height: 216px;
  }
  .dashboard-empty .empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }
  .dashboard-chart-shell {
    min-height: 214px;
    padding: 8px 6px;
  }
  .dashboard-stat-card .s-value {
    font-size: 24px;
  }
  .dashboard-stat-card .s-value-tail {
    font-size: 13px;
  }
  .modal-box { border-radius: 16px 16px 0 0 }
  .modal-backdrop { align-items: flex-end; padding: 0 }
  table { font-size: 13px }
  th, td { padding: 10px 12px }
  .grid-3 { grid-template-columns: 1fr }
  .topbar { height: auto; padding: calc(env(safe-area-inset-top) + 8px) 14px 10px }
  .plan-grid { grid-template-columns: 1fr }
  .broadcast-banner { min-width: 280px }
  .content { padding: 14px 14px 116px }
  .hero-stats,
  .mini-stats { grid-template-columns: 1fr }
  .sub-hero,
  .settings-hero { padding: 22px }
  .mobile-dock { width: min(400px, calc(100vw - 20px)); bottom: calc(10px + env(safe-area-inset-bottom)); padding: 8px }
  .mobile-dock-item { min-height: 78px; font-size: 10px }
  .mobile-dock-item span { min-height: 2.25em }
}

@media (max-width: 390px) {
  .bar-stats,
  .analytics-stats {
    grid-template-columns: 1fr;
  }
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
}
