/* ═══════════════════════════════════════════════════
   KAPISH WEB — Auth Page
   ═══════════════════════════════════════════════════ */

.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(138,100,255,.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(236,72,153,.12) 0%, transparent 55%),
    var(--bg);
}

.auth-wrap {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  max-width: 1060px;
}

/* ── Auth card ───────────────────────────────────── */
.auth-card {
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 24px 64px rgba(0,0,0,.5), 0 0 0 1px rgba(138,100,255,.08);
}

/* ── Logo ────────────────────────────────────────── */
.auth-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}
.auth-logo-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #8a64ff, #ec4899);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 8px 24px rgba(138,100,255,.45);
  flex-shrink: 0;
}
.auth-logo-text { display: flex; flex-direction: column; }
.auth-brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.03em;
  line-height: 1;
}
.auth-tagline {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
}

/* ── Steps ───────────────────────────────────────── */
.auth-step { display: none; }
.auth-step.active {
  display: block;
  animation: authFadeUp .22s ease;
}
@keyframes authFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.auth-heading {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.03em;
  margin-bottom: 6px;
}
.auth-subheading {
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 32px;
  line-height: 1.5;
}

/* ── Phone input ─────────────────────────────────── */
.phone-input-wrap {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  margin-bottom: 20px;
}
.phone-input-wrap:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(138,100,255,.15);
  background: var(--surface-3);
}
.phone-prefix {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  border-right: 1px solid var(--border-2);
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--surface-3);
}
.phone-input {
  flex: 1;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 12px 14px !important;
  font-size: 16px !important;
  letter-spacing: .08em;
}

/* ── OTP boxes ───────────────────────────────────── */
.otp-input-wrap {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.otp-box {
  width: 48px;
  height: 56px;
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--text);
  outline: none;
  transition: var(--transition);
  caret-color: var(--violet);
}
.otp-box:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(138,100,255,.18);
  background: var(--surface-3);
}
.otp-box:not(:placeholder-shown) {
  border-color: rgba(138,100,255,.4);
  background: rgba(138,100,255,.06);
}

/* ── Buttons ─────────────────────────────────────── */
.btn-full  { width: 100%; }
.btn-mt    { margin-top: 10px; }

/* ── Back btn ────────────────────────────────────── */
.auth-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 24px;
  transition: var(--transition);
  padding: 4px 0;
}
.auth-back-btn:hover { color: var(--text-2); }

/* ── Loading state ───────────────────────────────── */
.auth-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 48px 0;
}
.auth-loading-text {
  font-size: 14px;
  color: var(--text-3);
}

/* ── Error ───────────────────────────────────────── */
.auth-error {
  margin-top: 16px;
  padding: 11px 14px;
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.2);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: #f87171;
}

/* ── Legal ───────────────────────────────────────── */
.auth-legal {
  text-align: center;
  font-size: 11px;
  color: var(--text-4);
  margin-top: 16px;
}

/* ── Resend ──────────────────────────────────────── */
.resend-timer {
  font-size: 12px;
  color: var(--text-3);
  margin-left: 4px;
}

/* ── Features (right panel) ──────────────────────── */
.auth-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
  transition: var(--transition);
}
.auth-feature:hover {
  background: rgba(138,100,255,.07);
  border-color: rgba(138,100,255,.2);
  color: var(--text);
}

/* ── Spinner sizes ───────────────────────────────── */
.spinner-sm { width: 14px; height: 14px; border-width: 2px; }
.spinner-lg { width: 40px; height: 40px; border-width: 3px; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .auth-wrap {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
    gap: 0;
  }
  .auth-features { display: none; }
}
@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; border-radius: 20px; }
  .auth-heading { font-size: 22px; }
  .otp-box { width: 42px; height: 50px; font-size: 20px; }
  .otp-input-wrap { gap: 8px; }
}

/* ═══════════════════════════════════════════════════
   BizSwitcher Component
   ═══════════════════════════════════════════════════ */

.biz-switcher { position: relative; }

.biz-switcher__pill {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}
.biz-switcher__pill:hover { border-color: var(--border-3); background: var(--surface-3); }

.biz-switcher__avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.biz-switcher__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.biz-switcher__name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.biz-switcher__type { font-size: 10px; color: var(--text-3); }
.biz-switcher__chevron {
  font-size: 9px;
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform .2s;
}
.biz-switcher__pill[aria-expanded="true"] .biz-switcher__chevron {
  transform: rotate(180deg);
}

.biz-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 500;
  overflow: hidden;
  animation: dropDown .18s ease;
  min-width: 200px;
}
@keyframes dropDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.biz-dropdown__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: none;
  border: none;
  cursor: pointer;
  transition: background .1s;
  text-align: left;
}
.biz-dropdown__item:hover { background: var(--surface-2); }
.biz-dropdown__item--active { background: rgba(138,100,255,.1); }
.biz-dropdown__item-icon { font-size: 16px; flex-shrink: 0; }
.biz-dropdown__item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.biz-dropdown__item-name { font-size: 13px; font-weight: 700; color: var(--text); }
.biz-dropdown__item-type { font-size: 10px; color: var(--text-3); }
.biz-dropdown__check {
  margin-left: auto;
  color: var(--green);
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.biz-dropdown__divider { height: 1px; background: var(--border); margin: 2px 0; }
.biz-dropdown__add {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  transition: background .1s;
}
.biz-dropdown__add:hover { background: rgba(34,197,94,.06); }
.biz-dropdown__add-icon { font-size: 16px; font-weight: 800; }

/* ── Error state ─────────────────────────────────── */
.empty-state--error .empty-icon { color: var(--amber); }

/* ═══════════════════════════════════════════════════
   Dashboard
   ═══════════════════════════════════════════════════ */

.dashboard { display: flex; flex-direction: column; gap: var(--space-6); }

/* Hero */
.dash-hero {
  background: linear-gradient(135deg, #1c1040 0%, #2a1a5e 50%, #1c1040 100%);
  border: 1px solid rgba(138,100,255,.2);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  position: relative;
  overflow: hidden;
}
.dash-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(138,100,255,.25) 0%, transparent 70%);
  pointer-events: none;
}
.dash-hero__left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.dash-hero__icon {
  width: 60px; height: 60px;
  border-radius: 18px;
  background: rgba(138,100,255,.2);
  border: 1.5px solid rgba(138,100,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}
.dash-hero__greeting {
  font-family: var(--font-display);
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}
.dash-hero__date { font-size: 13px; color: rgba(255,255,255,.45); margin-top: 4px; }

/* Brain score */
.dash-brain-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.dash-brain-score__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}
.dash-brain-score__bar {
  width: 120px; height: 4px;
  background: rgba(255,255,255,.1);
  border-radius: 2px;
  overflow: hidden;
}
.dash-brain-score__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--violet), var(--pink));
  border-radius: 2px;
  transition: width 1s cubic-bezier(.25,.8,.25,1);
}
.dash-brain-score__value {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,.6);
}

/* Stat cards */
.dash-stats { margin: 0; }

.stat-card { position: relative; overflow: hidden; }
.stat-card__icon {
  font-size: 22px;
  margin-bottom: var(--space-2);
  display: block;
}
.stat-card--violet { border-color: rgba(138,100,255,.2); }
.stat-card--green  { border-color: rgba(34,197,94,.2);   }
.stat-card--red    { border-color: rgba(239,68,68,.2);   }
.stat-card--cyan   { border-color: rgba(6,182,212,.2);   }

/* Quick actions */
.dash-section__title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--space-3);
}
.dash-quick-actions {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-3);
}
.dash-quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-2);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
}
.dash-quick-action:hover {
  border-color: var(--border-3);
  background: var(--card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.dash-quick-action__icon { font-size: 24px; }
.dash-quick-action__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-align: center;
}

/* Two column layout */
.dash-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* Alerts */
.dash-alert {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 11px var(--space-3);
  border-radius: var(--radius-md);
  margin-bottom: 6px;
  cursor: pointer;
  transition: var(--transition);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.dash-alert:hover { border-color: var(--border-3); }
.dash-alert--amber { border-color: rgba(245,158,11,.2); background: rgba(245,158,11,.05); }
.dash-alert--red   { border-color: rgba(239,68,68,.2);  background: rgba(239,68,68,.05); }
.dash-alert--violet{ border-color: rgba(138,100,255,.2);background: rgba(138,100,255,.05);}
.dash-alert--cyan  { border-color: rgba(6,182,212,.2);  background: rgba(6,182,212,.05); }
.dash-alert__icon  { font-size: 16px; flex-shrink: 0; }
.dash-alert__text  { flex: 1; font-size: 13px; color: var(--text-2); }
.dash-alert__arrow { font-size: 12px; color: var(--text-3); }
.dash-no-alerts {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
  color: var(--text-3);
  font-size: 13px;
}
.dash-no-alerts__icon { font-size: 20px; }

/* Recent bills */
.dash-bill-list { display: flex; flex-direction: column; gap: 2px; }
.dash-bill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--space-2);
  border-radius: var(--radius-md);
  transition: background .1s;
}
.dash-bill-item:hover { background: var(--surface-2); }
.dash-bill-item__name { font-size: 13px; font-weight: 600; color: var(--text); }
.dash-bill-item__date { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.dash-bill-item__right { display: flex; align-items: center; gap: var(--space-2); }
.dash-bill-item__amount { font-size: 13px; font-weight: 700; color: var(--text); font-family: var(--font-mono); }

/* Brain card */
.dash-brain-card {
  background: linear-gradient(135deg, rgba(138,100,255,.08), rgba(236,72,153,.05));
  border: 1px solid rgba(138,100,255,.2);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
}
.dash-brain-card--empty { opacity: .8; }
.dash-brain-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.dash-brain-card__icon  { font-size: 20px; }
.dash-brain-card__title { font-size: 14px; font-weight: 800; color: var(--text); flex: 1; }
.dash-brain-card__text  { font-size: 13px; color: var(--text-2); line-height: 1.7; }

/* Empty state small */
.empty-state--sm { padding: var(--space-6) var(--space-4); }

/* Dashboard responsive */
@media (max-width: 1100px) {
  .dash-quick-actions { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .dash-hero { flex-direction: column; align-items: flex-start; }
  .dash-brain-score { align-items: flex-start; }
  .dash-brain-score__bar { width: 160px; }
  .dash-cols { grid-template-columns: 1fr; }
  .dash-quick-actions { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .dash-quick-actions { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════
   Setup Wizard
   ═══════════════════════════════════════════════════ */

.setup-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 80vh;
  padding: var(--space-4) 0;
}

.setup-card {
  width: 100%;
  max-width: 680px;
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-2xl);
  padding: 36px 40px;
  box-shadow: var(--shadow-lg);
}

/* Header */
.setup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}
.setup-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.setup-logo__icon {
  width: 32px; height: 32px;
  background: var(--grad);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.setup-logo__text {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

/* Progress */
.setup-progress {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: var(--space-8);
  gap: 0;
}
.setup-progress__line {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--border-2);
  z-index: 0;
}
.setup-progress__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
  z-index: 1;
}
.setup-progress__dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  color: var(--text-3);
  transition: var(--transition);
}
.setup-progress__label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
  transition: var(--transition);
}
.setup-progress__step.active .setup-progress__dot {
  background: var(--grad);
  border-color: var(--violet);
  color: #fff;
  box-shadow: 0 0 12px rgba(138,100,255,.4);
}
.setup-progress__step.active .setup-progress__label { color: var(--violet); }
.setup-progress__step.completed .setup-progress__dot {
  background: rgba(34,197,94,.15);
  border-color: var(--green);
  color: var(--green);
}
.setup-progress__step.completed .setup-progress__dot::after { content: '✓'; }

/* Step content */
.setup-step { animation: authFadeUp .22s ease; }
.step-visible { display: block; }

.setup-step__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.setup-step__sub {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: var(--space-5);
  line-height: 1.5;
}
.setup-step__type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(138,100,255,.1);
  border: 1px solid rgba(138,100,255,.2);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--violet);
  margin-bottom: var(--space-4);
}

/* Type grid */
.setup-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.setup-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--space-4) var(--space-2);
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.setup-type-card:hover {
  border-color: var(--border-3);
  background: var(--surface-3);
  transform: translateY(-2px);
}
.setup-type-card.selected {
  border-color: var(--violet);
  background: rgba(138,100,255,.1);
  box-shadow: 0 0 0 3px rgba(138,100,255,.15);
}
.setup-type-card__icon { font-size: 28px; }
.setup-type-card__label { font-size: 12px; font-weight: 700; color: var(--text); }
.setup-type-card__desc  { font-size: 10px; color: var(--text-3); line-height: 1.3; }

/* Nav buttons */
.setup-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

/* Done step */
.setup-step--done { text-align: center; padding: var(--space-6) 0; }
.setup-done__icon { font-size: 64px; margin-bottom: var(--space-4); }
.setup-done__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: var(--space-6) auto;
  max-width: 280px;
  text-align: left;
}
.setup-done__feature {
  font-size: 14px;
  color: var(--text-2);
  padding: 10px 16px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
}
.setup-done__cta { margin-top: var(--space-4); }

.form-label--optional {
  font-weight: 400;
  color: var(--text-4);
  text-transform: none;
  letter-spacing: 0;
}

/* Setup responsive */
@media (max-width: 768px) {
  .setup-card { padding: 24px 20px; border-radius: 20px; }
  .setup-type-grid { grid-template-columns: repeat(3, 1fr); }
  .setup-progress__label { display: none; }
}
@media (max-width: 480px) {
  .setup-type-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════
   Dashboard redesign
   ═══════════════════════════════════════════════════ */
.dashboard { display:flex; flex-direction:column; gap:var(--space-5); }

.dash-hero {
  background: linear-gradient(135deg,#1c1040,#2a1a5e 60%,#1c1040);
  border:1px solid rgba(138,100,255,.25);
  border-radius:var(--radius-2xl);
  padding:var(--space-5) var(--space-6);
  display:flex; align-items:center; justify-content:space-between;
  gap:var(--space-4); overflow:hidden; position:relative;
}
.dash-hero::after {
  content:'';position:absolute;top:-40px;right:-40px;width:180px;height:180px;
  background:radial-gradient(circle,rgba(138,100,255,.2) 0%,transparent 70%);
  pointer-events:none;
}
.dash-hero__content { display:flex; align-items:center; gap:var(--space-4); }
.dash-hero__icon {
  width:52px;height:52px;border-radius:15px;
  background:rgba(138,100,255,.2);border:1.5px solid rgba(138,100,255,.3);
  display:flex;align-items:center;justify-content:center;font-size:26px;flex-shrink:0;
}
.dash-hero__greeting {
  font-family:var(--font-display);font-size:clamp(16px,2.5vw,22px);
  font-weight:800;color:#fff;letter-spacing:-.02em;
}
.dash-hero__date { font-size:13px;color:rgba(255,255,255,.45);margin-top:3px; }

.dash-hero__brain { display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex-shrink:0; }
.dash-hero__brain-label { font-size:10px;font-weight:800;color:rgba(255,255,255,.4);letter-spacing:.08em;text-transform:uppercase; }
.dash-hero__brain-track { width:120px;height:4px;background:rgba(255,255,255,.1);border-radius:2px;overflow:hidden; }
.dash-hero__brain-fill { height:100%;width:0;background:linear-gradient(90deg,var(--violet),var(--pink));border-radius:2px;transition:width 1.2s cubic-bezier(.25,.8,.25,1); }
.dash-hero__brain-pct { font-size:11px;font-family:var(--font-mono);color:rgba(255,255,255,.5); }

.dash-stat-grid { display:grid;grid-template-columns:repeat(4,1fr);gap:var(--space-4); }
.dash-stat-card {
  background:var(--card);border:1px solid var(--border);border-radius:var(--radius-lg);
  padding:var(--space-4);position:relative;overflow:hidden;
  transition:var(--transition);
}
.dash-stat-card:hover { transform:translateY(-2px);box-shadow:var(--shadow-md); }
.dash-stat-card__icon { font-size:20px;margin-bottom:var(--space-2); }
.dash-stat-card__label { font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--text-3);margin-bottom:var(--space-1); }
.dash-stat-card__value { font-family:var(--font-display);font-size:clamp(20px,2.5vw,26px);font-weight:800;color:var(--text);letter-spacing:-.02em; }
.dash-stat-card__sub { font-size:11px;color:var(--text-3);margin-top:4px; }
.dash-stat-card--violet { border-color:rgba(138,100,255,.2); }
.dash-stat-card--green  { border-color:rgba(34,197,94,.2);   }
.dash-stat-card--red    { border-color:rgba(239,68,68,.2);   }
.dash-stat-card--cyan   { border-color:rgba(6,182,212,.2);   }

.dash-section-label { font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--text-3); }

.dash-actions { display:grid;grid-template-columns:repeat(6,1fr);gap:var(--space-3); }
.dash-action {
  display:flex;flex-direction:column;align-items:center;gap:var(--space-2);
  padding:var(--space-4) var(--space-2);
  background:var(--card);border:1px solid var(--border);border-radius:var(--radius-lg);
  cursor:pointer;transition:var(--transition);
}
.dash-action:hover { border-color:var(--border-3);transform:translateY(-2px);box-shadow:var(--shadow-glow); }
.dash-action__icon  { font-size:22px; }
.dash-action__label { font-size:11px;font-weight:700;color:var(--text-3); }

.dash-bottom-grid { display:grid;grid-template-columns:1fr 1fr;gap:var(--space-4); }

.dash-alert {
  display:flex;align-items:center;gap:var(--space-2);
  padding:10px var(--space-3);border-radius:var(--radius-md);
  margin-bottom:6px;cursor:pointer;transition:background .1s;
  border:1px solid var(--border);background:var(--surface-2);width:100%;text-align:left;
}
.dash-alert:hover { border-color:var(--border-3); }
.dash-alert--amber { border-color:rgba(245,158,11,.2);background:rgba(245,158,11,.05); }
.dash-alert--violet{ border-color:rgba(138,100,255,.2);background:rgba(138,100,255,.05); }
.dash-alert__text  { flex:1;font-size:13px;color:var(--text-2); }
.dash-all-clear    { padding:var(--space-3);font-size:13px;color:var(--text-3); }

.dash-bill-row { display:flex;align-items:center;justify-content:space-between;padding:10px var(--space-2);border-radius:var(--radius-md);transition:background .1s; }
.dash-bill-row:hover { background:var(--surface-2); }
.dash-bill-row__name { font-size:13px;font-weight:600;color:var(--text); }
.dash-bill-row__date { font-size:11px;color:var(--text-3); }
.dash-bill-row__right { display:flex;align-items:center;gap:var(--space-2); }
.dash-bill-row__amount { font-size:13px;font-weight:700;font-family:var(--font-mono); }

.dash-brain-banner {
  display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);
  padding:var(--space-4) var(--space-5);
  background:linear-gradient(135deg,rgba(138,100,255,.08),rgba(236,72,153,.05));
  border:1px solid rgba(138,100,255,.2);border-radius:var(--radius-xl);
}
.dash-brain-banner__left { display:flex;align-items:flex-start;gap:var(--space-3); }
.dash-brain-banner__icon { font-size:22px;flex-shrink:0; }
.dash-brain-banner__title { font-size:14px;font-weight:800;color:var(--text);margin-bottom:4px; }
.dash-brain-banner__text  { font-size:13px;color:var(--text-2);line-height:1.6; }

@media(max-width:1100px){ .dash-stat-grid{grid-template-columns:repeat(2,1fr);} .dash-actions{grid-template-columns:repeat(3,1fr);} }
@media(max-width:768px) { .dash-stat-grid{grid-template-columns:repeat(2,1fr);} .dash-hero{flex-direction:column;align-items:flex-start;} .dash-bottom-grid{grid-template-columns:1fr;} .dash-brain-banner{flex-direction:column;} }
@media(max-width:480px) { .dash-stat-grid{grid-template-columns:repeat(2,1fr);} .dash-actions{grid-template-columns:repeat(2,1fr);} }

/* ═══════════════════════════════════════════════════
   Shared module components
   ═══════════════════════════════════════════════════ */
.module-stat-row { display:flex;gap:var(--space-3);flex-wrap:wrap;margin:var(--space-4) 0; }
.module-stat { flex:1;min-width:120px;background:var(--card);border:1px solid var(--border);border-radius:var(--radius-lg);padding:var(--space-3) var(--space-4); }
.module-stat__label { font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--text-3);margin-bottom:4px; }
.module-stat__value { font-family:var(--font-display);font-size:20px;font-weight:800;color:var(--text); }
.module-stat--violet { border-color:rgba(138,100,255,.2); }
.module-stat--green  { border-color:rgba(34,197,94,.2);   }
.module-stat--red    { border-color:rgba(239,68,68,.2);   }
.module-stat--amber  { border-color:rgba(245,158,11,.2);  }
.module-stat--cyan   { border-color:rgba(6,182,212,.2);   }
.module-stat--muted  { border-color:var(--border);        }

.module-filters { display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;margin-bottom:var(--space-4); }
.table-actions  { display:flex;gap:4px; }
.text-red   { color:var(--red) !important; }
.text-amber { color:var(--amber) !important; }

.upload-hidden-input { position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%; }
.upload-zone { position:relative;cursor:pointer; }
.scan-result { margin-top:var(--space-4);padding-top:var(--space-4);border-top:1px solid var(--border); }
.scan-result-title { font-size:13px;font-weight:800;color:var(--green);margin-bottom:var(--space-3); }
.scan-loading { display:flex;flex-direction:column;align-items:center;gap:var(--space-3);padding:var(--space-6);color:var(--text-3);font-size:13px; }
.scan-error   { padding:var(--space-3);color:var(--red);font-size:13px; }
.scan-items-preview { display:flex;flex-direction:column;gap:4px;max-height:200px;overflow-y:auto; }
.scan-item-row { display:flex;justify-content:space-between;padding:6px var(--space-2);background:var(--surface-2);border-radius:var(--radius-sm);font-size:12px; }

.month-picker { width:160px;flex-shrink:0; }

/* ═══════════════════════════════════════════════════
   Customers
   ═══════════════════════════════════════════════════ */
.birthday-banner { padding:10px var(--space-4);background:rgba(245,158,11,.1);border:1px solid rgba(245,158,11,.25);border-radius:var(--radius-md);font-size:13px;color:var(--amber);margin-bottom:var(--space-3); }
.cust-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:var(--space-3); }
.cust-card { background:var(--card);border:1px solid var(--border);border-radius:var(--radius-lg);padding:var(--space-4);display:flex;align-items:flex-start;gap:var(--space-3);transition:var(--transition); }
.cust-card:hover { border-color:var(--border-3); }
.cust-card__avatar { width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,var(--violet),var(--pink));display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:800;color:#fff;flex-shrink:0; }
.cust-card__info { flex:1;min-width:0; }
.cust-card__name  { font-size:14px;font-weight:700;color:var(--text);margin-bottom:3px; }
.cust-card__phone { font-size:12px;color:var(--text-3);margin-bottom:6px;font-family:var(--font-mono); }
.cust-card__meta  { display:flex;flex-wrap:wrap;gap:4px; }
.cust-card__actions { display:flex;flex-direction:column;gap:2px;flex-shrink:0; }

/* ═══════════════════════════════════════════════════
   Staff
   ═══════════════════════════════════════════════════ */
.staff-tabs-wrap { margin-bottom:var(--space-4); }
.staff-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:var(--space-3); }
.staff-card { background:var(--card);border:1px solid var(--border);border-radius:var(--radius-lg);padding:var(--space-4);display:flex;align-items:flex-start;gap:var(--space-3);transition:var(--transition); }
.staff-card:hover { border-color:var(--border-3); }
.staff-card--inactive { opacity:.5; }
.staff-card__avatar { width:42px;height:42px;border-radius:12px;background:var(--surface-3);border:1.5px solid var(--border-2);display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:800;color:var(--violet);flex-shrink:0; }
.staff-card__info  { flex:1;min-width:0; }
.staff-card__name  { font-size:14px;font-weight:700;color:var(--text);margin-bottom:4px; }
.staff-card__role  { margin-bottom:4px; }
.staff-card__phone { font-size:12px;color:var(--text-3);font-family:var(--font-mono); }
.staff-card__salary{ font-size:12px;color:var(--green);margin-top:3px;font-weight:600; }
.staff-card__actions { display:flex;flex-direction:column;gap:2px;flex-shrink:0; }

.attend-list { display:flex;flex-direction:column;gap:2px; }
.attend-row  { display:flex;align-items:center;gap:var(--space-3);padding:10px var(--space-2);border-radius:var(--radius-md);border-bottom:1px solid var(--border); }
.attend-row:last-child { border-bottom:none; }
.attend-row__name { font-size:13px;font-weight:700;color:var(--text);width:140px;flex-shrink:0; }
.attend-row__role { font-size:11px;color:var(--text-3);flex:1; }
.attend-row__btns { display:flex;gap:6px; }
.attend-btn { padding:5px 10px;border-radius:var(--radius-sm);font-size:11px;font-weight:700;background:var(--surface-2);border:1px solid var(--border);color:var(--text-3);cursor:pointer;transition:var(--transition); }
.attend-btn--present { background:rgba(34,197,94,.15);border-color:var(--green);color:var(--green); }
.attend-btn--absent  { background:rgba(239,68,68,.1);border-color:var(--red);color:var(--red);   }
.attend-btn--half    { background:rgba(245,158,11,.1);border-color:var(--amber);color:var(--amber); }

/* ═══════════════════════════════════════════════════
   AI Brain
   ═══════════════════════════════════════════════════ */
.brain-page { height:calc(100vh - 80px);display:flex;flex-direction:column; }
.brain-layout { display:grid;grid-template-columns:1fr 320px;gap:var(--space-4);flex:1;min-height:0; }

.brain-chat-panel { display:flex;flex-direction:column;min-height:0;background:var(--card);border:1px solid var(--border);border-radius:var(--radius-xl);overflow:hidden; }
.brain-messages { flex:1;overflow-y:auto;padding:var(--space-4);display:flex;flex-direction:column;gap:var(--space-3);min-height:0; }

.brain-welcome { text-align:center;padding:var(--space-12) var(--space-6);margin:auto; }
.brain-welcome__icon  { font-size:48px;margin-bottom:var(--space-4); }
.brain-welcome__title { font-family:var(--font-display);font-size:22px;font-weight:800;color:var(--text);margin-bottom:var(--space-2); }
.brain-welcome__sub   { font-size:13px;color:var(--text-3);max-width:320px;margin:0 auto;line-height:1.6; }

.brain-msg { display:flex;flex-direction:column;gap:3px;max-width:85%; }
.brain-msg--user { align-self:flex-end;align-items:flex-end; }
.brain-msg--assistant { align-self:flex-start; }
.brain-msg__bubble { padding:10px 14px;border-radius:14px;font-size:13px;line-height:1.7;color:var(--text-2); }
.brain-msg--user .brain-msg__bubble { background:rgba(138,100,255,.15);border:1px solid rgba(138,100,255,.25); }
.brain-msg--assistant .brain-msg__bubble { background:var(--surface-2);border:1px solid var(--border); }
.brain-msg__time { font-size:10px;color:var(--text-4); }

.brain-thinking span {
  display:inline-block;width:7px;height:7px;border-radius:50%;
  background:var(--text-3);margin:0 2px;
  animation:brainDot 1.2s ease-in-out infinite;
}
.brain-thinking span:nth-child(2){animation-delay:.2s;}
.brain-thinking span:nth-child(3){animation-delay:.4s;}
@keyframes brainDot{0%,60%,100%{transform:translateY(0);}30%{transform:translateY(-6px);}}

.brain-input-wrap { display:flex;gap:var(--space-2);padding:var(--space-3);border-top:1px solid var(--border);align-items:flex-end; }
.brain-input { flex:1;background:var(--surface-2);border:1.5px solid var(--border-2);border-radius:var(--radius-md);padding:10px 14px;font-size:13px;color:var(--text);resize:none;outline:none;transition:var(--transition);font-family:var(--font-body);line-height:1.5; }
.brain-input:focus { border-color:var(--violet);background:var(--surface-3); }
.brain-send-btn { flex-shrink:0; }

.brain-insights-panel { display:flex;flex-direction:column;gap:var(--space-3);overflow-y:auto; }

.brain-score-display { display:flex;align-items:center;gap:var(--space-4);padding:var(--space-2) 0; }
.brain-score-circle { width:64px;height:64px;border-radius:50%;background:var(--grad-subtle);border:2px solid rgba(138,100,255,.3);display:flex;flex-direction:column;align-items:center;justify-content:center;flex-shrink:0; }
.brain-score-number { font-family:var(--font-display);font-size:16px;font-weight:800;color:var(--violet); }
.brain-score-label  { font-size:8px;color:var(--text-3);text-transform:uppercase;letter-spacing:.05em; }
.brain-score-bar-wrap { flex:1; }
.brain-score-bar { height:6px;background:var(--surface-2);border-radius:3px;overflow:hidden;margin-bottom:var(--space-2); }
.brain-score-bar-fill { height:100%;width:0;background:var(--grad);border-radius:3px;transition:width 1.2s cubic-bezier(.25,.8,.25,1); }
.brain-score-hint { font-size:11px;color:var(--text-3); }

.brain-prompts { display:flex;flex-direction:column;gap:6px; }
.brain-prompt-chip { padding:8px 12px;background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-md);font-size:12px;color:var(--text-2);cursor:pointer;transition:var(--transition);text-align:left;line-height:1.4; }
.brain-prompt-chip:hover { border-color:var(--border-3);color:var(--text);background:var(--surface-3); }

.brain-data-summary { display:flex;flex-direction:column;gap:4px; }
.brain-data-row { display:flex;justify-content:space-between;align-items:center;padding:6px var(--space-2);border-radius:var(--radius-sm);font-size:12px;color:var(--text-2); }
.brain-data-row:hover { background:var(--surface-2); }
.brain-data-val { font-weight:800;font-family:var(--font-mono);color:var(--text); }

@media(max-width:1024px){ .brain-layout{grid-template-columns:1fr;} .brain-insights-panel{display:none;} .brain-page{height:auto;} .brain-messages{max-height:400px;} }

/* ═══════════════════════════════════════════════════
   More / Settings
   ═══════════════════════════════════════════════════ */
.more-grid { display:grid;grid-template-columns:repeat(2,1fr);gap:var(--space-4); }
.more-info-row { display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid var(--border);font-size:13px;color:var(--text-2); }
.more-info-row:last-child { border-bottom:none; }
.more-info-row strong { color:var(--text); }
.more-biz-list { display:flex;flex-direction:column;gap:6px;margin-bottom:var(--space-3); }
.more-biz-item { display:flex;justify-content:space-between;align-items:center;padding:8px var(--space-2);background:var(--surface-2);border-radius:var(--radius-md);font-size:13px; }
.more-modules { display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-2); }
.more-module-btn { display:flex;flex-direction:column;align-items:center;gap:4px;padding:var(--space-3) var(--space-2);background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-md);cursor:pointer;font-size:12px;font-weight:700;color:var(--text-2);transition:var(--transition); }
.more-module-btn:hover { border-color:var(--border-3);color:var(--text); }
.more-actions { margin-top:var(--space-4); }
@media(max-width:768px){ .more-grid{grid-template-columns:1fr;} }

/* ═══════════════════════════════════════════════════
   Modal enhancements
   ═══════════════════════════════════════════════════ */
.modal-overlay { position:fixed;inset:0;background:rgba(0,0,0,.65);display:flex;align-items:center;justify-content:center;padding:var(--space-4);opacity:0;transition:opacity .2s;z-index:1001;pointer-events:none; }
.modal-overlay.open { opacity:1;pointer-events:all; }
.modal-box { background:var(--card);border:1px solid var(--border-2);border-radius:var(--radius-2xl);width:100%;max-width:520px;max-height:90vh;overflow-y:auto;transform:scale(.95) translateY(10px);transition:transform .25s cubic-bezier(.25,.8,.25,1),opacity .2s;opacity:0; }
.modal-overlay.open .modal-box { transform:scale(1) translateY(0);opacity:1; }
.modal-box--lg { max-width:700px; }
.modal-header { display:flex;align-items:center;justify-content:space-between;padding:var(--space-5) var(--space-5) var(--space-4);border-bottom:1px solid var(--border); }
.modal-title  { font-family:var(--font-display);font-size:17px;font-weight:800; }
.modal-close  { width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);font-size:14px;color:var(--text-3);transition:var(--transition); }
.modal-close:hover { background:var(--surface-2);color:var(--text); }
.modal-body   { padding:var(--space-5); }
.modal-footer { padding:var(--space-4) var(--space-5);border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:var(--space-2); }

.empty-state--sm { padding:var(--space-6) var(--space-4); }

/* ═══════════════════════════════════════════════════
   Hotel Module
   ═══════════════════════════════════════════════════ */
.hotel-tabs, .restaurant-tabs {
  display:flex; gap:4px; flex-wrap:wrap; margin-bottom:var(--space-4);
}
.hotel-tab {
  display:flex; align-items:center; gap:6px;
  padding:8px 16px;
  border-radius:var(--radius-md);
  font-size:13px; font-weight:700; color:var(--text-3);
  background:var(--surface-2); border:1px solid var(--border);
  cursor:pointer; transition:var(--transition);
}
.hotel-tab:hover  { border-color:var(--border-3); color:var(--text-2); }
.hotel-tab.active { background:rgba(138,100,255,.15); border-color:var(--violet); color:var(--violet); }

.hotel-rooms-toolbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:var(--space-4); gap:var(--space-3); }
.rooms-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 200px)); gap:var(--space-3); align-items:stretch; }

.room-card {
  background:var(--card); border:1.5px solid var(--border);
  border-radius:var(--radius-lg); padding:var(--space-4);
  cursor:pointer; transition:var(--transition);
  display:flex; flex-direction:column; gap:var(--space-2);
  width:200px; min-height:280px;
  overflow:hidden; position:relative;
}
.room-card:hover { transform:translateY(-3px); }
.room-card--green {
  background:linear-gradient(145deg,#0f1f16,var(--card));
  border-color:#22c55e;
  box-shadow:0 0 0 1px rgba(34,197,94,.15), 0 8px 32px rgba(34,197,94,.2);
}
.room-card--green:hover { box-shadow:0 0 0 1px rgba(34,197,94,.25), 0 12px 40px rgba(34,197,94,.3); }
.room-card--red {
  background:linear-gradient(145deg,#1f1215,var(--card));
  border-color:#ef4444;
  box-shadow:0 0 0 1px rgba(239,68,68,.15), 0 8px 32px rgba(239,68,68,.25);
}
.room-card--red:hover { box-shadow:0 0 0 1px rgba(239,68,68,.25), 0 12px 40px rgba(239,68,68,.35); }
.room-card--amber {
  background:linear-gradient(145deg,#1f1a0f,var(--card));
  border-color:#f59e0b;
  box-shadow:0 0 0 1px rgba(245,158,11,.15), 0 8px 32px rgba(245,158,11,.2);
}
.room-card--amber:hover { box-shadow:0 0 0 1px rgba(245,158,11,.25), 0 12px 40px rgba(245,158,11,.3); }
.room-card--cyan {
  background:linear-gradient(145deg,#0a1e22,var(--card));
  border-color:#06b6d4;
  box-shadow:0 0 0 1px rgba(6,182,212,.15), 0 8px 32px rgba(6,182,212,.2);
}
.room-card--cyan:hover { box-shadow:0 0 0 1px rgba(6,182,212,.25), 0 12px 40px rgba(6,182,212,.3); }
.room-card--muted {
  background:linear-gradient(145deg,#141620,var(--card));
  border-color:#475569;
  box-shadow:0 0 0 1px rgba(71,85,105,.15), 0 8px 24px rgba(71,85,105,.15);
}

/* ── Light theme room card overrides ── */
[data-theme="light"] .room-card--green {
  background:linear-gradient(145deg,rgba(34,197,94,.07),var(--card));
  box-shadow:0 0 0 1px rgba(34,197,94,.2), 0 4px 16px rgba(34,197,94,.12);
}
[data-theme="light"] .room-card--green:hover { box-shadow:0 0 0 1px rgba(34,197,94,.35), 0 8px 24px rgba(34,197,94,.18); }
[data-theme="light"] .room-card--red {
  background:linear-gradient(145deg,rgba(239,68,68,.07),var(--card));
  box-shadow:0 0 0 1px rgba(239,68,68,.2), 0 4px 16px rgba(239,68,68,.12);
}
[data-theme="light"] .room-card--red:hover { box-shadow:0 0 0 1px rgba(239,68,68,.35), 0 8px 24px rgba(239,68,68,.18); }
[data-theme="light"] .room-card--amber {
  background:linear-gradient(145deg,rgba(245,158,11,.07),var(--card));
  box-shadow:0 0 0 1px rgba(245,158,11,.2), 0 4px 16px rgba(245,158,11,.12);
}
[data-theme="light"] .room-card--amber:hover { box-shadow:0 0 0 1px rgba(245,158,11,.35), 0 8px 24px rgba(245,158,11,.18); }
[data-theme="light"] .room-card--cyan {
  background:linear-gradient(145deg,rgba(6,182,212,.07),var(--card));
  box-shadow:0 0 0 1px rgba(6,182,212,.2), 0 4px 16px rgba(6,182,212,.12);
}
[data-theme="light"] .room-card--cyan:hover { box-shadow:0 0 0 1px rgba(6,182,212,.35), 0 8px 24px rgba(6,182,212,.18); }
[data-theme="light"] .room-card--muted {
  background:linear-gradient(145deg,rgba(71,85,105,.05),var(--card));
  box-shadow:0 0 0 1px rgba(71,85,105,.15), 0 4px 12px rgba(71,85,105,.08);
}
[data-theme="light"] .room-card__guest { background:rgba(0,0,0,.03); }

.room-card__header { display:flex; justify-content:space-between; align-items:center; gap:4px; }
.room-card__number { font-family:var(--font-display); font-size:22px; font-weight:800; color:var(--text); }
.room-card__type   { font-size:12px; color:var(--text-3); }
.room-card__price  { font-size:13px; font-weight:700; color:var(--text); font-family:var(--font-mono); }
.room-card__guest  { padding:8px; background:rgba(255,255,255,.04); border-radius:var(--radius-sm); flex:1; }
.room-card__guest-name     { font-size:12px; font-weight:700; color:var(--text); }
.room-card__guest-checkout { font-size:10px; color:var(--text-3); }

.room-card__actions {
  display:flex; flex-wrap:wrap; gap:4px;
  margin-top:6px; padding-top:8px;
  border-top:1px solid var(--border);
}
.room-card__actions .btn {
  flex-shrink:0; padding:4px 8px !important;
  font-size:11px !important; height:auto !important;
  min-height:28px; line-height:1.3;
}
.room-card__actions .btn-primary   { flex:1 1 100%; }
.room-card__actions .btn-secondary { flex:1 1 auto; }

/* Checkin/checkout */
.checkin-room-badge { display:flex; align-items:center; gap:var(--space-3); padding:var(--space-3); background:var(--surface-2); border-radius:var(--radius-md); margin-bottom:var(--space-4); font-size:13px; }
.checkout-summary   { display:flex; flex-direction:column; gap:2px; }
.checkout-row { display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid var(--border); font-size:13px; color:var(--text-2); }
.checkout-row:last-child { border-bottom:none; }
.checkout-row--total { font-size:15px; font-weight:800; color:var(--text); padding-top:var(--space-3); }
.checkout-row strong { color:var(--text); }

.room-detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:4px; }
.room-detail-item { display:flex; flex-direction:column; gap:2px; padding:8px; background:var(--surface-2); border-radius:var(--radius-sm); font-size:12px; }
.room-detail-item span  { color:var(--text-3); }
.room-detail-item strong{ color:var(--text); font-size:13px; }
.room-detail-item.full  { grid-column:1/-1; }
.room-detail-divider    { grid-column:1/-1; height:1px; background:var(--border); margin:4px 0; }

/* Housekeeping */
.hk-section { margin-bottom:var(--space-5); }
.hk-section-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:var(--space-3); }
.hk-section__title { font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--text-3); }
.hk-rooms-list { display:flex; flex-direction:column; gap:6px; }
.hk-room-item { display:flex; align-items:center; gap:var(--space-3); padding:10px var(--space-3); background:var(--card); border:1px solid var(--border); border-radius:var(--radius-md); }
.hk-room-type { flex:1; font-size:12px; color:var(--text-3); }
.hk-empty { font-size:13px; color:var(--text-3); padding:var(--space-3); }
.hk-task { display:flex; align-items:center; gap:var(--space-3); padding:10px var(--space-3); border-bottom:1px solid var(--border); }
.hk-task--done { opacity:.6; }
.hk-task__check { width:28px; height:28px; border-radius:50%; border:2px solid var(--border-3); background:var(--surface-2); display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:800; cursor:pointer; transition:var(--transition); flex-shrink:0; }
.hk-task__check--done { background:var(--green); border-color:var(--green); color:#fff; }
.hk-task__info { flex:1; }
.hk-task__title { font-size:13px; font-weight:600; color:var(--text); }
.hk-task__room  { font-size:11px; color:var(--text-3); }

/* Reports */
.reports-grid { display:grid; grid-template-columns:1fr 1fr; gap:var(--space-4); }
.report-bar-row { display:flex; align-items:center; gap:var(--space-3); padding:6px 0; }
.report-bar-label { font-size:12px; color:var(--text-2); width:100px; flex-shrink:0; }
.report-bar-wrap  { flex:1; height:6px; background:var(--surface-2); border-radius:3px; overflow:hidden; }
.report-bar-fill  { height:100%; background:var(--grad); border-radius:3px; transition:width .6s; }
.report-bar-val   { font-size:12px; font-weight:700; font-family:var(--font-mono); color:var(--text); width:24px; text-align:right; }
.report-booking-row { display:flex; justify-content:space-between; align-items:center; padding:8px var(--space-2); border-bottom:1px solid var(--border); }
.report-booking-row:last-child { border-bottom:none; }
.report-booking-info .td-bold { font-size:13px; }
.report-booking-info .td-sub  { font-size:11px; color:var(--text-3); }
@media(max-width:768px){ .reports-grid{grid-template-columns:1fr;} }

/* ═══════════════════════════════════════════════════
   Restaurant Module
   ═══════════════════════════════════════════════════ */
.tables-toolbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:var(--space-4); gap:var(--space-3); }
.tables-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:var(--space-3); }

.table-card {
  background:var(--card); border:1.5px solid var(--border);
  border-radius:var(--radius-lg); padding:var(--space-4);
  display:flex; flex-direction:column; gap:var(--space-2);
  transition:var(--transition);
}
.table-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-md); }
.table-card--green { border-color:rgba(34,197,94,.3); }
.table-card--red   { border-color:rgba(239,68,68,.3); }
.table-card--amber { border-color:rgba(245,158,11,.3); }

.table-card__header { display:flex; justify-content:space-between; align-items:center; }
.table-card__number { font-family:var(--font-display); font-size:22px; font-weight:800; color:var(--text); }
.table-card__meta   { display:flex; flex-direction:column; gap:2px; }
.table-card__label  { font-size:11px; color:var(--text-3); }
.table-card__seats  { font-size:12px; color:var(--text-3); }
.table-card__kot    { font-size:11px; color:var(--violet); padding:4px 8px; background:rgba(138,100,255,.08); border-radius:var(--radius-sm); }
.table-card__actions{ display:flex; gap:4px; margin-top:4px; }

/* KOT */
.kot-layout { display:grid; grid-template-columns:240px 1fr; gap:var(--space-4); height:calc(100vh - 200px); min-height:500px; }
.kot-sidebar { background:var(--card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:var(--space-3); overflow-y:auto; display:flex; flex-direction:column; gap:6px; }
.kot-sidebar__title { font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--text-3); padding:0 var(--space-2) var(--space-2); }
.kot-table-btn { width:100%; display:flex; flex-direction:column; padding:10px var(--space-3); background:var(--surface-2); border:1.5px solid var(--border); border-radius:var(--radius-md); cursor:pointer; transition:var(--transition); text-align:left; gap:2px; }
.kot-table-btn:hover { border-color:var(--border-3); }
.kot-table-btn.active { border-color:var(--violet); background:rgba(138,100,255,.1); }
.kot-table-btn__num   { font-size:14px; font-weight:800; color:var(--text); }
.kot-table-btn__guest { font-size:11px; color:var(--text-3); }
.kot-table-btn__items { font-size:10px; color:var(--violet); font-weight:700; }
.kot-table-btn__empty { font-size:10px; color:var(--text-4); }
.kot-no-tables { font-size:12px; color:var(--text-3); padding:var(--space-3); text-align:center; line-height:1.6; }

.kot-editor { background:var(--card); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; display:flex; flex-direction:column; }
.kot-placeholder { display:flex; flex-direction:column; align-items:center; justify-content:center; flex:1; gap:var(--space-3); color:var(--text-3); }
.kot-placeholder__icon { font-size:40px; }
.kot-placeholder__text { font-size:14px; }

.kot-editor-inner { display:flex; flex-direction:column; height:100%; }
.kot-editor__header { display:flex; justify-content:space-between; align-items:center; padding:var(--space-3) var(--space-4); border-bottom:1px solid var(--border); flex-shrink:0; }
.kot-editor__title  { font-size:14px; font-weight:800; color:var(--text); }
.kot-editor__time   { font-size:11px; color:var(--text-3); font-family:var(--font-mono); }

.kot-cat-tabs { display:flex; gap:4px; padding:var(--space-2) var(--space-3); border-bottom:1px solid var(--border); overflow-x:auto; flex-shrink:0; }
.kot-cat { padding:5px 12px; border-radius:20px; font-size:11px; font-weight:700; background:var(--surface-2); border:1px solid var(--border); cursor:pointer; white-space:nowrap; transition:var(--transition); color:var(--text-3); }
.kot-cat.active { background:rgba(138,100,255,.15); border-color:var(--violet); color:var(--violet); }

.kot-menu-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(110px,1fr)); gap:6px; padding:var(--space-3); overflow-y:auto; max-height:200px; flex-shrink:0; }
.kot-menu-item { background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius-md); padding:8px; cursor:pointer; transition:var(--transition); text-align:left; }
.kot-menu-item:hover { border-color:var(--violet); background:rgba(138,100,255,.08); }
.kot-menu-item__name  { font-size:11px; font-weight:700; color:var(--text); margin-bottom:3px; line-height:1.3; }
.kot-menu-item__price { font-size:11px; color:var(--green); font-weight:700; font-family:var(--font-mono); }
.kot-no-menu { font-size:12px; color:var(--text-3); padding:var(--space-3); text-align:center; }

.kot-items { flex:1; overflow-y:auto; padding:var(--space-3); border-top:1px solid var(--border); }
.kot-items__title { font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--text-3); margin-bottom:var(--space-2); }
.kot-empty-order { font-size:12px; color:var(--text-3); text-align:center; padding:var(--space-4); }
.kot-order-item { display:flex; align-items:center; gap:var(--space-2); padding:6px var(--space-2); border-radius:var(--radius-sm); transition:background .1s; }
.kot-order-item:hover { background:var(--surface-2); }
.kot-order-item__name  { flex:1; font-size:13px; color:var(--text); }
.kot-order-item__controls { display:flex; align-items:center; gap:6px; }
.kot-order-item__price { font-size:12px; font-weight:700; font-family:var(--font-mono); color:var(--text); width:60px; text-align:right; }
.kot-qty-btn { width:22px; height:22px; border-radius:50%; background:var(--surface-3); border:1px solid var(--border-2); display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:800; cursor:pointer; color:var(--text-2); transition:var(--transition); }
.kot-qty-btn:hover { background:var(--violet); color:#fff; border-color:var(--violet); }
.kot-qty { font-size:13px; font-weight:800; color:var(--text); width:20px; text-align:center; font-family:var(--font-mono); }

.kot-footer { padding:var(--space-3) var(--space-4); border-top:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; flex-shrink:0; background:var(--surface); }
.kot-total { font-size:15px; font-weight:800; color:var(--text); font-family:var(--font-mono); }
.kot-footer__actions { display:flex; gap:6px; }

/* Menu */
.menu-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:var(--space-3); }
.menu-item-card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:var(--space-4); display:flex; flex-direction:column; gap:var(--space-2); transition:var(--transition); }
.menu-item-card:hover { border-color:var(--border-3); }
.menu-item-card--unavail { opacity:.5; }
.menu-item-card__header { display:flex; justify-content:space-between; align-items:center; }
.menu-item-card__veg { font-size:14px; }
.menu-item-card__name  { font-size:14px; font-weight:800; color:var(--text); }
.menu-item-card__price { font-size:16px; font-weight:800; color:var(--green); font-family:var(--font-mono); }
.menu-item-card__desc  { font-size:11px; color:var(--text-3); line-height:1.4; }
.menu-item-card__actions { display:flex; gap:4px; margin-top:4px; }

@media(max-width:900px){ .kot-layout{grid-template-columns:1fr; height:auto;} .kot-sidebar{max-height:150px; flex-direction:row; overflow-x:auto;} .kot-sidebar__title{display:none;} }
@media(max-width:768px){ .tables-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));} }

/* ═══════════════════════════════════════════════════
   Page header layout
   ═══════════════════════════════════════════════════ */
.page-header { margin-bottom:var(--space-4); }
.page-header-top { display:flex; justify-content:space-between; align-items:flex-start; gap:var(--space-4); margin-bottom:var(--space-4); }
.page-title    { font-family:var(--font-display); font-size:clamp(20px,3vw,28px); font-weight:800; color:var(--text); letter-spacing:-.03em; }
.page-subtitle { font-size:13px; color:var(--text-3); margin-top:3px; }
.page-actions  { display:flex; gap:var(--space-2); flex-shrink:0; flex-wrap:wrap; }

.td-mono { font-family:var(--font-mono); }
.td-bold { font-weight:700; }
.td-sub  { font-size:11px; color:var(--text-3); }

/* ═══════════════════════════════════════════════════
   Hotel Dashboard
   ═══════════════════════════════════════════════════ */
.dash-hero--hotel {
  background: linear-gradient(135deg, #0f1a2e 0%, #1a2a4a 50%, #0f1a2e 100%);
  border-color: rgba(6,182,212,.25);
}
.dash-hero--hotel::after {
  background: radial-gradient(circle, rgba(6,182,212,.2) 0%, transparent 70%);
}
.dash-hero__subtag {
  font-size: 10px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.4);
  margin-top: 4px;
}

/* Occupancy ring */
.dash-hero__occupancy { flex-shrink: 0; }
.dash-occ-ring {
  position: relative; width: 90px; height: 90px;
}
.dash-occ-svg {
  width: 90px; height: 90px;
  transform: rotate(-90deg);
}
.dash-occ-bg {
  fill: none; stroke: rgba(255,255,255,.1);
  stroke-width: 3;
}
.dash-occ-fill {
  fill: none;
  stroke: url(#occGrad);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 1s ease;
  stroke: #06b6d4;
}
.dash-occ-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.dash-occ-pct   { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: #fff; }
.dash-occ-label { font-size: 9px; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .06em; }

/* Room status grid */
.hotel-room-status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.hotel-status-card {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-2); padding: var(--space-4);
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); cursor: pointer;
  transition: var(--transition); text-align: center;
}
.hotel-status-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hotel-status-card--green { border-color: rgba(34,197,94,.3); }
.hotel-status-card--red   { border-color: rgba(239,68,68,.3); }
.hotel-status-card--cyan  { border-color: rgba(6,182,212,.3); }
.hotel-status-card--amber { border-color: rgba(245,158,11,.3);}
.hotel-status-card__icon  { font-size: 24px; }
.hotel-status-card__count {
  font-family: var(--font-display); font-size: 28px;
  font-weight: 800; color: var(--text); line-height: 1;
}
.hotel-status-card__label { font-size: 11px; font-weight: 700; color: var(--text-3); }

/* 3-col dash grid */
.dash-bottom-grid--3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

/* Activity rows */
.dash-activity-row {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 9px var(--space-2); border-radius: var(--radius-md);
  transition: background .1s;
}
.dash-activity-row:hover { background: var(--surface-2); }
.dash-activity-row__icon { font-size: 18px; flex-shrink: 0; }
.dash-activity-row__info { flex: 1; min-width: 0; }
.dash-activity-row__name { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-activity-row__sub  { font-size: 11px; color: var(--text-3); }
.dash-empty-row { font-size: 13px; color: var(--text-3); padding: var(--space-3) var(--space-2); }
.btn-full { width: 100%; margin-top: var(--space-3); justify-content: center; }

/* ═══════════════════════════════════════════════════
   Restaurant Dashboard
   ═══════════════════════════════════════════════════ */
.dash-hero--restaurant {
  background: linear-gradient(135deg, #1a0e0a 0%, #2d1a10 50%, #1a0e0a 100%);
  border-color: rgba(245,158,11,.25);
}
.dash-hero--restaurant::after {
  background: radial-gradient(circle, rgba(245,158,11,.15) 0%, transparent 70%);
}

/* Live stats in hero */
.dash-hero__live-stats {
  display: flex; gap: var(--space-5); flex-shrink: 0;
}
.dash-live-stat {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.dash-live-stat__value {
  font-family: var(--font-display); font-size: 32px;
  font-weight: 800; color: #fff; line-height: 1;
}
.dash-live-stat__value--pulse {
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%,100% { color: #fff; }
  50%      { color: var(--amber); }
}
.dash-live-stat__label {
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,.4);
  text-transform: uppercase; letter-spacing: .06em;
}

/* Table map */
.dash-table-map {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  padding: var(--space-2) 0;
}
.dash-table-chip {
  display: flex; flex-direction: column; align-items: center;
  width: 52px; height: 52px;
  border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--surface-2); cursor: pointer;
  transition: var(--transition); gap: 2px;
  justify-content: center;
}
.dash-table-chip:hover { transform: scale(1.05); }
.dash-table-chip--green { border-color: rgba(34,197,94,.4);  background: rgba(34,197,94,.08);  }
.dash-table-chip--red   { border-color: rgba(239,68,68,.4);  background: rgba(239,68,68,.08);  }
.dash-table-chip--amber { border-color: rgba(245,158,11,.4); background: rgba(245,158,11,.08); }
.dash-table-chip__num   { font-size: 11px; font-weight: 800; color: var(--text); }
.dash-table-chip__items { font-size: 9px; color: var(--text-3); }

/* Top items */
.dash-top-items { display: flex; flex-direction: column; gap: 8px; }
.dash-top-item  {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 4px 0;
}
.dash-top-item__rank  { font-size: 11px; font-weight: 800; color: var(--text-3); width: 20px; flex-shrink: 0; }
.dash-top-item__name  { font-size: 13px; color: var(--text); width: 140px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-top-item__bar   { flex: 1; height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.dash-top-item__fill  { height: 100%; background: linear-gradient(90deg, var(--amber), var(--pink)); border-radius: 3px; transition: width .8s ease; }
.dash-top-item__count { font-size: 11px; font-family: var(--font-mono); color: var(--text-3); width: 60px; text-align: right; flex-shrink: 0; }

/* Menu summary */
.dash-menu-summary { margin-bottom: var(--space-3); }
.dash-menu-summary__row {
  display: flex; justify-content: space-between;
  padding: 7px 0; border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--text-2);
}
.dash-menu-summary__row:last-child { border-bottom: none; }
.dash-menu-summary__row strong { color: var(--text); }

/* Alert banner */
.dash-alert-banner {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 10px var(--space-4);
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: var(--radius-md);
  font-size: 13px; color: var(--amber);
}
.dash-alert-banner strong { color: var(--text); }

/* Hotel actions override */
.dash-actions--hotel { grid-template-columns: repeat(6, 1fr); }

/* Responsive overrides */
@media (max-width: 1100px) {
  .hotel-room-status-grid   { grid-template-columns: repeat(2, 1fr); }
  .dash-bottom-grid--3      { grid-template-columns: 1fr 1fr; }
  .dash-bottom-grid--3 .card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .hotel-room-status-grid   { grid-template-columns: repeat(2, 1fr); }
  .dash-bottom-grid--3      { grid-template-columns: 1fr; }
  .dash-hero__occupancy     { display: none; }
  .dash-hero__live-stats    { display: none; }
  .dash-actions--hotel      { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════════════
   Setup — Sub-type step
   ═══════════════════════════════════════════════════ */
.setup-subtype-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.setup-subtype-card {
  display: flex; flex-direction: column;
  gap: var(--space-2); padding: var(--space-5) var(--space-4);
  background: var(--surface-2); border: 2px solid var(--border);
  border-radius: var(--radius-xl); cursor: pointer;
  transition: var(--transition); text-align: left;
}
.setup-subtype-card:hover { border-color: var(--border-3); transform: translateY(-2px); }
.setup-subtype-card.selected {
  box-shadow: 0 0 0 3px rgba(138,100,255,.2);
}
.setup-subtype-card--violet.selected { border-color: var(--violet); background: rgba(138,100,255,.08); }
.setup-subtype-card--amber.selected  { border-color: var(--amber);  background: rgba(245,158,11,.08);  }
.setup-subtype-card--cyan.selected   { border-color: var(--cyan);   background: rgba(6,182,212,.08);   }
.setup-subtype-card--green.selected  { border-color: var(--green);  background: rgba(34,197,94,.08);   }
.setup-subtype-card--violet:hover { border-color: var(--violet); }
.setup-subtype-card--amber:hover  { border-color: var(--amber);  }
.setup-subtype-card--cyan:hover   { border-color: var(--cyan);   }
.setup-subtype-card--green:hover  { border-color: var(--green);  }

.setup-subtype-card__icon  { font-size: 32px; }
.setup-subtype-card__label {
  font-family: var(--font-display); font-size: 16px;
  font-weight: 800; color: var(--text); letter-spacing: -.01em;
}
.setup-subtype-card__desc { font-size: 12px; color: var(--text-3); line-height: 1.5; }
.setup-done__subtag {
  display: inline-block;
  padding: 3px 12px; border-radius: 20px;
  background: rgba(138,100,255,.1); border: 1px solid rgba(138,100,255,.2);
  font-size: 12px; font-weight: 700; color: var(--violet);
  margin-bottom: var(--space-3);
}

@media (max-width: 480px) {
  .setup-subtype-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   HOTEL DASHBOARD
   ═══════════════════════════════════════════════════ */

/* Hero */
.dash-hero--hotel {
  background: linear-gradient(135deg,#0a1628 0%,#0f2044 55%,#0a1628 100%);
  border-color: rgba(6,182,212,.3);
}
.dash-hero--hotel::after {
  background: radial-gradient(circle,rgba(6,182,212,.18) 0%,transparent 65%);
}
.dash-hero__subtag {
  font-size:10px; font-weight:800; letter-spacing:.1em;
  text-transform:uppercase; color:rgba(255,255,255,.35); margin-top:5px;
}

/* Occupancy ring */
.dash-occ-wrap {
  display:flex; align-items:center; gap:var(--space-4); flex-shrink:0;
}
.dash-occ-ring {
  position:relative; width:84px; height:84px; flex-shrink:0;
}
.dash-occ-ring svg {
  width:84px; height:84px;
  transform:rotate(-90deg);
}
.dash-occ-bg {
  fill:none; stroke:rgba(255,255,255,.08); stroke-width:3;
}
.dash-occ-fill {
  fill:none; stroke:#06b6d4; stroke-width:3;
  stroke-linecap:round;
  transition: stroke-dasharray 1.2s cubic-bezier(.25,.8,.25,1);
}
.dash-occ-inner {
  position:absolute; inset:0;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
}
.dash-occ-pct   { font-family:var(--font-display); font-size:18px; font-weight:800; color:#fff; line-height:1; }
.dash-occ-label { font-size:8px; color:rgba(255,255,255,.4); text-transform:uppercase; letter-spacing:.06em; margin-top:2px; }
.dash-occ-meta  { display:flex; flex-direction:column; gap:5px; }
.dash-occ-meta__row {
  font-size:12px; color:rgba(255,255,255,.45);
}
.dash-occ-meta__row span { font-weight:800; color:#fff; margin-right:4px; font-family:var(--font-mono); }

/* Room status row */
.hotel-status-row {
  display:grid; grid-template-columns:repeat(4,1fr); gap:var(--space-3);
}
.hstat-card {
  display:flex; flex-direction:column; align-items:center;
  gap:4px; padding:var(--space-4) var(--space-3);
  background:var(--card); border:1.5px solid var(--border);
  border-radius:var(--radius-lg); cursor:pointer;
  transition:var(--transition); text-align:center;
}
.hstat-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-md); }
.hstat-card--green { border-color:rgba(34,197,94,.3); }
.hstat-card--red   { border-color:rgba(239,68,68,.3); }
.hstat-card--cyan  { border-color:rgba(6,182,212,.3); }
.hstat-card--amber { border-color:rgba(245,158,11,.3);}
.hstat-card__num {
  font-family:var(--font-display); font-size:32px;
  font-weight:800; color:var(--text); line-height:1;
}
.hstat-card--green .hstat-card__num { color:var(--green); }
.hstat-card--red   .hstat-card__num { color:var(--red);   }
.hstat-card--cyan  .hstat-card__num { color:var(--cyan);  }
.hstat-card--amber .hstat-card__num { color:var(--amber); }
.hstat-card__label { font-size:12px; font-weight:700; color:var(--text); }
.hstat-card__hint  { font-size:10px; color:var(--text-3); }

/* 3 panels */
.hotel-panels {
  display:grid; grid-template-columns:repeat(3,1fr); gap:var(--space-4);
}

/* Activity rows */
.dash-activity-row {
  display:flex; align-items:center; gap:var(--space-3);
  padding:8px var(--space-2); border-radius:var(--radius-md);
  transition:background .1s;
}
.dash-activity-row:hover { background:var(--surface-2); }
.dash-activity-row__avatar {
  width:34px; height:34px; border-radius:10px; flex-shrink:0;
  background:linear-gradient(135deg,var(--violet),var(--pink));
  display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:800; color:#fff;
}
.dash-activity-row__avatar--amber { background:linear-gradient(135deg,var(--amber),#f97316); }
.dash-activity-row__info  { flex:1; min-width:0; }
.dash-activity-row__name  { font-size:13px; font-weight:700; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dash-activity-row__sub   { font-size:11px; color:var(--text-3); }
.dash-empty-row   { font-size:13px; color:var(--text-3); padding:var(--space-3) var(--space-2); }
.dash-panel-link  {
  display:block; width:100%; text-align:center;
  padding:8px; font-size:12px; font-weight:700;
  color:var(--violet); border-top:1px solid var(--border);
  margin-top:var(--space-2); cursor:pointer;
  transition:background .1s; border-radius:0 0 var(--radius-lg) var(--radius-lg);
  background:none; border-left:none; border-right:none; border-bottom:none;
}
.dash-panel-link:hover { background:rgba(138,100,255,.05); }
.btn-full { width:100%; justify-content:center; }

/* ═══════════════════════════════════════════════════
   RESTAURANT DASHBOARD
   ═══════════════════════════════════════════════════ */

/* Hero */
.dash-hero--restaurant {
  background:linear-gradient(135deg,#1a0a05 0%,#2d1508 55%,#1a0a05 100%);
  border-color:rgba(245,158,11,.3);
}
.dash-hero--restaurant::after {
  background:radial-gradient(circle,rgba(245,158,11,.15) 0%,transparent 65%);
}

/* Live badge */
.rest-hero-live { flex-shrink:0; display:flex; flex-direction:column; align-items:flex-end; gap:var(--space-3); }
.rest-live-badge {
  display:flex; align-items:center; gap:6px;
  padding:4px 10px; border-radius:20px;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1);
}
.rest-live-badge--active { background:rgba(239,68,68,.15); border-color:rgba(239,68,68,.3); }
.rest-live-badge__dot {
  width:7px; height:7px; border-radius:50%; background:var(--text-3);
}
.rest-live-badge--active .rest-live-badge__dot {
  background:#ef4444; box-shadow:0 0 0 3px rgba(239,68,68,.3);
  animation:liveBlink 1.4s ease-in-out infinite;
}
@keyframes liveBlink { 0%,100%{opacity:1;} 50%{opacity:.3;} }
.rest-live-badge__text { font-size:10px; font-weight:800; letter-spacing:.1em; color:rgba(255,255,255,.5); }
.rest-live-badge--active .rest-live-badge__text { color:#ef4444; }

.rest-live-stats {
  display:flex; align-items:center; gap:var(--space-4);
}
.rest-live-stat { text-align:center; }
.rest-live-stat__num {
  font-family:var(--font-display); font-size:28px; font-weight:800;
  color:#fff; line-height:1;
}
.rest-live-stat__label { font-size:9px; color:rgba(255,255,255,.4); text-transform:uppercase; letter-spacing:.06em; margin-top:3px; }
.rest-live-divider { width:1px; height:36px; background:rgba(255,255,255,.1); }

/* Main panels */
.rest-main-panels {
  display:grid; grid-template-columns:1fr 1fr; gap:var(--space-4);
}

/* Table map */
.rest-table-map {
  display:flex; flex-wrap:wrap; gap:var(--space-2);
  padding:var(--space-2) 0; min-height:80px;
}
.rest-table-tile {
  display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:2px;
  width:64px; height:64px;
  border-radius:12px; border:1.5px solid var(--border);
  background:var(--surface-2); cursor:pointer;
  transition:var(--transition);
}
.rest-table-tile:hover { transform:scale(1.05); box-shadow:var(--shadow-sm); }
.rest-table-tile--green { border-color:rgba(34,197,94,.4);  background:rgba(34,197,94,.06);  }
.rest-table-tile--red   { border-color:rgba(239,68,68,.4);  background:rgba(239,68,68,.06);  }
.rest-table-tile--amber { border-color:rgba(245,158,11,.4); background:rgba(245,158,11,.06); }
.rest-table-tile__num   { font-size:13px; font-weight:800; color:var(--text); }
.rest-table-tile__seats { font-size:9px; color:var(--text-3); }
.rest-table-tile__kot   { font-size:9px; font-weight:700; color:var(--green); font-family:var(--font-mono); }
.rest-table-tile__label { font-size:8px; color:var(--text-4); }
.rest-table-legend {
  display:flex; align-items:center; gap:var(--space-3);
  font-size:11px; color:var(--text-3);
  padding-top:var(--space-2); border-top:1px solid var(--border); margin-top:var(--space-2);
}
.rest-legend-dot { width:8px; height:8px; border-radius:50%; display:inline-block; margin-right:3px; }
.rest-legend-dot--green { background:var(--green); }
.rest-legend-dot--red   { background:var(--red);   }

/* KOT rows */
.rest-kot-row {
  display:flex; align-items:center; gap:var(--space-3);
  padding:8px var(--space-2); border-radius:var(--radius-md);
  transition:background .1s; border-bottom:1px solid var(--border);
}
.rest-kot-row:last-child { border-bottom:none; }
.rest-kot-row:hover { background:var(--surface-2); }
.rest-kot-row__table {
  width:36px; height:36px; border-radius:10px;
  background:rgba(245,158,11,.1); border:1.5px solid rgba(245,158,11,.3);
  display:flex; align-items:center; justify-content:center;
  font-size:11px; font-weight:800; color:var(--amber); flex-shrink:0;
}
.rest-kot-row__info   { flex:1; min-width:0; }
.rest-kot-row__items  { font-size:12px; color:var(--text-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rest-kot-row__meta   { font-size:10px; color:var(--text-3); }
.rest-kot-row__total  { font-size:13px; font-weight:800; font-family:var(--font-mono); color:var(--text); flex-shrink:0; }

/* Top items */
.rest-top-items { display:flex; flex-direction:column; gap:10px; }
.rest-top-item  { display:flex; align-items:center; gap:var(--space-3); }
.rest-top-item__rank  { font-size:11px; font-weight:800; color:var(--text-3); width:22px; flex-shrink:0; }
.rest-top-item__name  { font-size:13px; color:var(--text); width:130px; flex-shrink:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rest-top-item__bar   { flex:1; height:7px; background:var(--surface-2); border-radius:4px; overflow:hidden; }
.rest-top-item__fill  { height:100%; background:linear-gradient(90deg,var(--amber),var(--pink)); border-radius:4px; transition:width .8s ease; }
.rest-top-item__count { font-size:11px; font-family:var(--font-mono); color:var(--text-3); width:60px; text-align:right; flex-shrink:0; }

/* Menu stats */
.rest-menu-stats { display:flex; flex-direction:column; gap:0; margin-bottom:var(--space-3); }
.rest-menu-stat  {
  display:flex; justify-content:space-between; align-items:center;
  padding:8px 0; border-bottom:1px solid var(--border);
  font-size:13px; color:var(--text-2);
}
.rest-menu-stat:last-child { border-bottom:none; }
.rest-menu-stat strong { color:var(--text); font-weight:800; }
.text-green { color:var(--green) !important; }
.text-red   { color:var(--red)   !important; }

/* Cloud kitchen mini menu */
.dash-menu-grid-mini { display:flex; flex-direction:column; gap:4px; }
.dash-menu-mini {
  display:flex; justify-content:space-between; align-items:center;
  font-size:12px; color:var(--text-2); padding:5px var(--space-2);
  background:var(--surface-2); border-radius:var(--radius-sm);
}
.dash-menu-mini span { font-weight:700; font-family:var(--font-mono); color:var(--green); }

/* ═══════════════════════════════════════════════════
   Responsive overrides
   ═══════════════════════════════════════════════════ */
@media(max-width:1200px) {
  .hotel-panels        { grid-template-columns:1fr 1fr; }
  .hotel-panels .card:last-child { grid-column:1/-1; }
  .rest-main-panels    { grid-template-columns:1fr; }
}
@media(max-width:1024px) {
  .hotel-status-row    { grid-template-columns:repeat(2,1fr); }
}
@media(max-width:768px) {
  .hotel-status-row    { grid-template-columns:repeat(2,1fr); }
  .hotel-panels        { grid-template-columns:1fr; }
  .dash-occ-wrap       { display:none; }
  .rest-hero-live      { display:none; }
  .dash-hero__subtag   { display:none; }
}
@media(max-width:480px) {
  .hotel-status-row    { grid-template-columns:repeat(2,1fr); }
}

/* debug banner */
.debug-biztype-banner {
  background:rgba(239,68,68,.1); border:1px solid rgba(239,68,68,.3);
  border-radius:var(--radius-md); padding:10px 14px;
  font-size:12px; font-family:var(--font-mono); color:var(--red);
  margin-bottom:var(--space-4); display:flex; align-items:center;
  gap:var(--space-3); flex-wrap:wrap;
}
.debug-biztype-banner strong { color:var(--text); }
.debug-biztype-banner code   { background:var(--surface-2); padding:1px 5px; border-radius:3px; }
.debug-fix-btn {
  padding:5px 12px; border-radius:var(--radius-sm); font-size:11px;
  font-weight:700; cursor:pointer; border:1px solid rgba(239,68,68,.4);
  background:rgba(239,68,68,.15); color:var(--red);
}
.debug-fix-btn--orange { border-color:rgba(245,158,11,.4); background:rgba(245,158,11,.1); color:var(--amber); }

/* ── Diagnostic / Fix panel ── */
.diag-panel {
  background: var(--card); border: 1.5px solid rgba(138,100,255,.3);
  border-radius: var(--radius-xl); padding: var(--space-6);
  max-width: 520px; margin: var(--space-6) auto;
}
.diag-panel__title {
  font-family: var(--font-display); font-size: 18px; font-weight: 800;
  color: var(--text); margin-bottom: var(--space-4);
}
.diag-panel__body {
  background: var(--surface-2); border-radius: var(--radius-md);
  padding: var(--space-3); margin-bottom: var(--space-4);
  display: flex; flex-direction: column; gap: 2px;
}
.diag-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px var(--space-2); border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.diag-row:last-child { border-bottom: none; }
.diag-row span   { color: var(--text-3); }
.diag-row strong { color: var(--text); font-weight: 700; }
.diag-row code   {
  font-family: var(--font-mono); font-size: 12px;
  background: var(--surface-3); padding: 2px 7px;
  border-radius: 4px; color: var(--violet);
}
.diag-panel__desc {
  font-size: 13px; color: var(--text-3); margin-bottom: var(--space-4);
  line-height: 1.6;
}
.diag-panel__actions {
  display: flex; gap: var(--space-3); flex-wrap: wrap;
}

/* ── Font stretch fix — room cards & small UI ── */
.room-card__number,
.room-card__type,
.room-card__price,
.hstat-card__label,
.hstat-card__hint,
.rest-table-tile__num,
.rest-table-tile__seats,
.biz-dropdown__item-name,
.biz-dropdown__item-type,
.biz-switcher__name,
.biz-switcher__type {
  font-family: var(--font-body);
  font-stretch: normal;
  letter-spacing: normal;
}

/* Delete button in biz dropdown */
.biz-dropdown__del {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  font-size: 14px; cursor: pointer;
  opacity: 0; transition: opacity .15s;
  padding: 4px;
  border-radius: var(--radius-sm);
}
.biz-dropdown__item:hover .biz-dropdown__del { opacity: 1; }
.biz-dropdown__del:hover { background: rgba(239,68,68,.15); }

/* ── More — biz list with delete ── */
.more-biz-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) var(--space-2);
  border-bottom: 1px solid var(--border);
}
.more-biz-item:last-child { border-bottom: none; }
.more-biz-item__info, .more-biz-item__left {
  display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap;
}
.more-biz-item__name { font-size: 14px; font-weight: 700; color: var(--text); }
.more-biz-item__active { font-size: 11px; color: var(--text-3); }

/* ── More: Business list with delete ── */
.more-biz-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px var(--space-2); border-bottom: 1px solid var(--border);
  gap: var(--space-3);
}
.more-biz-item:last-child { border-bottom: none; }
.more-biz-item__info {
  display: flex; align-items: center; gap: var(--space-2); flex: 1; min-width: 0;
}
.more-biz-item__name {
  font-size: 13px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.more-biz-item__active {
  font-size: 11px; color: var(--text-3); flex-shrink: 0;
}

/* ── Font fix — prevent Syne stretching on small UI text ── */
.room-card__number { font-family: var(--font-body) !important; font-size: 20px !important; font-weight: 800 !important; letter-spacing: -0.02em; }
.room-card__type   { font-family: var(--font-body) !important; font-size: 12px !important; }
.room-card__price  { font-family: var(--font-mono) !important; }
.badge             { font-family: var(--font-body) !important; letter-spacing: normal !important; }
.btn               { font-family: var(--font-body) !important; letter-spacing: normal !important; }
.hstat-card__label { font-family: var(--font-body) !important; font-size: 13px !important; }
.hstat-card__hint  { font-family: var(--font-body) !important; }
.more-biz-item__name { font-family: var(--font-body) !important; }
.form-input, .form-select, .form-label { font-family: var(--font-body) !important; letter-spacing: normal !important; }

/* ═══════════════════════════════════════════════════
   SETTINGS / MORE PAGE
═══════════════════════════════════════════════════ */
.settings-layout { display:flex; flex-direction:column; gap:var(--space-4); }

.settings-form { padding:var(--space-4); display:flex; flex-direction:column; gap:var(--space-4); }

.form-row {
  display:grid; grid-template-columns:1fr 1fr; gap:var(--space-4);
}

.more-biz-item {
  display:flex; align-items:center; justify-content:space-between;
  padding:var(--space-3) var(--space-4);
  border-bottom:1px solid var(--border);
}
.more-biz-item:last-child { border-bottom:none; }
.more-biz-item__info { flex:1; min-width:0; }
.more-biz-item__name { font-size:14px; font-weight:700; color:var(--text); }
.more-biz-item__meta { display:flex; gap:var(--space-2); margin-top:3px; }
.more-biz-item__actions { display:flex; gap:var(--space-2); flex-shrink:0; }

.card--danger { border-color:rgba(239,68,68,.3); }
.card--danger .card-title { color:var(--red); }

@media(max-width:768px) {
  .form-row { grid-template-columns:1fr; }
}

/* Sidebar account button */
.sidebar-account-btn {
  display:flex; align-items:center; gap:var(--space-2);
  width:100%; padding:var(--space-3) var(--space-4);
  background:rgba(138,100,255,.08); border:1px solid rgba(138,100,255,.2);
  border-radius:var(--radius-md); color:var(--violet);
  font-size:13px; font-weight:700; cursor:pointer;
  transition:var(--transition); margin-bottom:var(--space-2);
}
.sidebar-account-btn:hover { background:rgba(138,100,255,.15); }

/* ═══════════════════════════════════════════════════
   ADMINISTRATION MODULE
═══════════════════════════════════════════════════ */

/* Attendance rows */
.attend-row {
  display:flex; align-items:center; justify-content:space-between;
  padding:var(--space-3) var(--space-4);
  border-bottom:1px solid var(--border);
}
.attend-row:last-child { border-bottom:none; }
.attend-name { font-size:14px; font-weight:600; color:var(--text); }

/* ═══════════════════════════════════════════════════
   PERMISSIONS — BEAUTIFUL REDESIGN
═══════════════════════════════════════════════════ */

/* Role section: grid of module cards */
.perm-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.perm-role-module-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.perm-role-module-card:hover {
  border-color: rgba(138,100,255,.25);
  box-shadow: 0 4px 20px rgba(138,100,255,.08);
}

.perm-module-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px var(--space-4);
  background: linear-gradient(135deg, rgba(138,100,255,.1), rgba(236,72,153,.04));
  border-bottom: 1px solid var(--border);
}
.perm-module-emoji { font-size: 18px; line-height: 1; }
.perm-module-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
  flex: 1;
}

.perm-role-rows {
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Each role row inside a module card */
.perm-role-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.perm-role-name {
  min-width: 90px;
  padding-top: 3px;
}
.perm-role-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex: 1;
}

/* Toggle pill — checkbox styled as a pill */
.perm-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all .15s ease;
  border: 1.5px solid;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.perm-pill input[type=checkbox] {
  display: none; /* hidden — pill bg changes instead */
}

/* View pill */
.perm-pill.type-view   { border-color: rgba(6,182,212,.25);  color: rgba(6,182,212,.5);   background: transparent; }
.perm-pill.type-edit   { border-color: rgba(245,158,11,.25); color: rgba(245,158,11,.5);  background: transparent; }
.perm-pill.type-delete { border-color: rgba(239,68,68,.25);  color: rgba(239,68,68,.5);   background: transparent; }
.perm-pill.type-sub    { border-color: rgba(255,255,255,.1); color: var(--text-3);         background: transparent; }

/* Checked states */
.perm-pill.type-view.is-checked   { border-color: var(--cyan);   color: #0d0920; background: var(--cyan);   box-shadow: 0 0 10px rgba(6,182,212,.3); }
.perm-pill.type-edit.is-checked   { border-color: var(--amber);  color: #0d0920; background: var(--amber);  box-shadow: 0 0 10px rgba(245,158,11,.3); }
.perm-pill.type-delete.is-checked { border-color: var(--red);    color: #fff;    background: var(--red);    box-shadow: 0 0 10px rgba(239,68,68,.3); }
.perm-pill.type-sub.is-checked    { border-color: rgba(138,100,255,.4); color: var(--violet); background: rgba(138,100,255,.12); }

.perm-pill:hover { transform: translateY(-1px); filter: brightness(1.1); }

/* Divider between roles in card */
.perm-role-row + .perm-role-row {
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

/* ── Staff Individual Permissions ── */
.perm-staff-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.perm-staff-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s;
}
.perm-staff-card:hover { border-color: rgba(138,100,255,.2); }
.perm-staff-card.is-open { border-color: rgba(138,100,255,.3); }

.perm-staff-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-2);
  border: none;
  cursor: pointer;
  transition: background .15s;
  text-align: left;
}
.perm-staff-toggle:hover { background: var(--surface-3); }
.perm-staff-card.is-open .perm-staff-toggle { background: linear-gradient(135deg, rgba(138,100,255,.1), rgba(236,72,153,.04)); }

.perm-staff-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
}
.perm-staff-info { flex: 1; min-width: 0; }
.perm-staff-info-name {
  font-size: 14px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.perm-staff-info-role { font-size: 11px; color: var(--text-3); margin-top: 1px; }

.perm-toggle-arrow {
  font-size: 12px; color: var(--text-3);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
}
.perm-staff-card.is-open .perm-toggle-arrow { transform: rotate(180deg); }

.perm-custom-badge {
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
  background: rgba(245,158,11,.15);
  color: var(--amber);
  border: 1px solid rgba(245,158,11,.25);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Staff detail panel */
.perm-staff-detail {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.perm-detail-inner {
  padding: var(--space-4);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-3);
}

/* Module block in staff detail */
.perm-module-block {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.perm-module-title {
  display: flex; align-items: center; gap: 6px;
  padding: 8px var(--space-3);
  font-size: 11px; font-weight: 700;
  color: var(--text-2);
  background: rgba(138,100,255,.06);
  border-bottom: 1px solid var(--border);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.perm-module-checks {
  padding: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.perm-check-label {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
  cursor: pointer; user-select: none; transition: all .15s;
  border: 1.5px solid;
}
.perm-check-label input[type=checkbox] { display: none; }
.perm-check-label.perm-action-view   { border-color: rgba(6,182,212,.25);  color: rgba(6,182,212,.5);  background: transparent; }
.perm-check-label.perm-action-edit   { border-color: rgba(245,158,11,.25); color: rgba(245,158,11,.5); background: transparent; }
.perm-check-label.perm-action-delete { border-color: rgba(239,68,68,.25);  color: rgba(239,68,68,.5);  background: transparent; }
.perm-check-label.perm-sub           { border-color: rgba(255,255,255,.1); color: var(--text-3);        background: transparent; }

.perm-check-label.perm-action-view:has(input:checked)   { background: var(--cyan);   border-color: var(--cyan);   color: #0d0920; box-shadow: 0 0 8px rgba(6,182,212,.3); }
.perm-check-label.perm-action-edit:has(input:checked)   { background: var(--amber);  border-color: var(--amber);  color: #0d0920; box-shadow: 0 0 8px rgba(245,158,11,.3); }
.perm-check-label.perm-action-delete:has(input:checked) { background: var(--red);    border-color: var(--red);    color: #fff;    box-shadow: 0 0 8px rgba(239,68,68,.3); }
.perm-check-label.perm-sub:has(input:checked)           { background: rgba(138,100,255,.15); border-color: rgba(138,100,255,.4); color: var(--violet); }
.perm-check-label:hover { transform: translateY(-1px); filter: brightness(1.15); }

.perm-detail-footer {
  grid-column: 1 / -1;
  display: flex; gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

/* Keep old table wrap for the role table scrollability */
.perm-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: var(--space-3);
}

@media (max-width: 768px) {
  .perm-role-grid { grid-template-columns: 1fr; }
  .perm-detail-inner { grid-template-columns: 1fr 1fr; padding: var(--space-3); gap: var(--space-2); }
  .perm-check-label { font-size: 10px; padding: 3px 8px; }
  .perm-detail-footer { flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════════
   ADMINISTRATION — REDESIGNED
═══════════════════════════════════════════════════ */

/* ── Page Header ── */
.admin-page-header {
  position: relative;
  margin-bottom: var(--space-6);
  padding: var(--space-6) var(--space-6);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(138,100,255,.12) 0%, rgba(236,72,153,.06) 100%);
  border: 1px solid rgba(138,100,255,.2);
  overflow: hidden;
}
.admin-header-accent {
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(138,100,255,.18) 0%, transparent 70%);
  pointer-events: none;
}
.admin-header-content {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  position: relative;
}
.admin-header-icon {
  font-size: 36px;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, rgba(138,100,255,.2), rgba(236,72,153,.15));
  border: 1px solid rgba(138,100,255,.3);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.admin-title {
  font-family: var(--font-display);
  font-size: clamp(24px,3vw,32px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.03em;
  line-height: 1.1;
}
.admin-subtitle {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 3px;
  letter-spacing: .01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* ── Tab Bar ── */
.admin-tab-bar {
  display: flex;
  gap: var(--space-1);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 4px;
  margin-bottom: var(--space-5);
  width: fit-content;
  max-width: 100%;
}
.admin-tab-bar--secondary {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 0;
  width: 100%;
  gap: 0;
  margin-bottom: var(--space-4);
}
.admin-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-lg);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
  border: none;
  background: none;
}
.admin-tab:hover { color: var(--text-2); background: rgba(255,255,255,.04); }
.admin-tab.active {
  background: linear-gradient(135deg, rgba(138,100,255,.2), rgba(236,72,153,.1));
  color: var(--text);
  border: 1px solid rgba(138,100,255,.25);
  box-shadow: 0 2px 8px rgba(138,100,255,.15);
}
.admin-tab-bar--secondary .admin-tab {
  border-radius: 0;
  border: none;
  padding: 10px 20px;
  border-bottom: 2px solid transparent;
}
.admin-tab-bar--secondary .admin-tab.active {
  background: none;
  box-shadow: none;
  border: none;
  border-bottom: 2px solid var(--violet);
  color: var(--violet);
}
.admin-tab-icon { font-size: 15px; }
.admin-tab-label {}

/* ── Cards ── */
.admin-section-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.admin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color .2s;
}
.admin-card:hover { border-color: var(--border-2); }

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-5) var(--space-4);
  gap: var(--space-3);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.admin-card-head-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.admin-card-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.06);
}
.admin-card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.01em;
}
.admin-card-desc {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}
.admin-readonly-badge {
  font-size: 11px;
  color: var(--text-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
}

/* ── Fields ── */
.admin-fields {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.admin-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.admin-field-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-field-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.admin-input {
  width: 100%;
  background: var(--surface-2);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  transition: all .2s;
  outline: none;
  font-family: var(--font-body);
}
.admin-input:focus {
  border-color: var(--violet);
  background: var(--surface-3);
  box-shadow: 0 0 0 3px rgba(138,100,255,.12);
}
.admin-input::placeholder { color: var(--text-4); }
.admin-input[readonly] {
  opacity: .55;
  cursor: not-allowed;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  /* Page header */
  .admin-page-header {
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-4);
    border-radius: var(--radius-lg);
  }
  .admin-header-icon { width: 40px; height: 40px; font-size: 22px; flex-shrink: 0; }
  .admin-header-content { gap: var(--space-3); }
  .admin-title {
    font-size: 18px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.2;
  }
  .admin-subtitle {
    font-size: 11px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  /* Tab bar - scrollable, no wrapping */
  .admin-tab-bar {
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    padding: 3px;
  }
  .admin-tab-bar::-webkit-scrollbar { display: none; }
  .admin-tab {
    padding: 7px 14px;
    font-size: 12px;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .admin-tab-icon { font-size: 13px; }

  /* Cards */
  .admin-card-head { padding: var(--space-3) var(--space-4); flex-wrap: wrap; gap: var(--space-2); }
  .admin-card-head-left { gap: var(--space-2); }
  .admin-card-icon { width: 36px; height: 36px; font-size: 17px; }
  .admin-card-title { font-size: 14px; }
  .admin-fields { padding: var(--space-3) var(--space-4); gap: var(--space-3); }
  .admin-field-row { grid-template-columns: 1fr; gap: var(--space-3); }

  /* Permissions table — horizontal scroll with sticky first column */
  .perm-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: var(--space-3);
  }
  .perm-table-wrap table { min-width: 480px; }
  .perm-table-wrap thead th:first-child,
  .perm-table-wrap tbody td:first-child {
    position: sticky; left: 0;
    background: var(--surface-2);
    z-index: 1;
  }

  /* Settings layout */
  .settings-layout { gap: var(--space-3); }

  /* General cards on mobile */
  .card { padding: var(--space-4); border-radius: var(--radius-lg); }
  .card-header { margin-bottom: var(--space-3); }
  .card-title { font-size: 14px; }
}

/* ── Calendar Tape Chart drag states moved to full tape CSS block below ── */

/* Drop confirmation popup */
.tape-drop-popup {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  width: 280px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
}

/* Booking details popup */
.tape-popup {
  position: fixed;
  z-index: 9999;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 220px;
  max-width: 260px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  font-size: 12px;
}
.tape-popup__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}
.tape-popup__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-3);
  font-size: 13px;
  padding: 2px 4px;
}
.tape-popup__row {
  padding: 3px 0;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.5;
}

/* ── Hotel Guest Profiles (hg-) ─────────────────────────────────── */
.hg-page { padding: 0; }

.hg-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 10px; margin-bottom: 14px;
}
.hg-title { font-size: 22px; font-weight: 800; margin: 0; }
.hg-subtitle { font-size: 13px; color: var(--text-3); margin: 2px 0 10px; }

.hg-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.hg-search-wrap {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 12px; flex: 1; min-width: 180px;
}
.hg-search-icon { font-size: 14px; color: var(--text-3); }
.hg-search {
  background: none; border: none; outline: none; color: var(--text);
  font-size: 13px; width: 100%;
}

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

.hg-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; cursor: pointer;
  transition: border-color .15s, transform .1s;
}
.hg-card:hover { border-color: var(--violet); transform: translateY(-2px); }
.hg-card--inhouse { border-color: rgba(34,197,94,.4); }
.hg-card--blocked { opacity: .7; border-color: rgba(239,68,68,.3); }

.hg-inhouse-bar {
  background: rgba(34,197,94,.12); color: var(--green);
  font-size: 11px; font-weight: 700; padding: 5px 12px;
  border-bottom: 1px solid rgba(34,197,94,.2);
}

.hg-card-top {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px 10px;
}
.hg-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.hg-avatar--initials {
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: #fff;
}
.hg-card-info { flex: 1; min-width: 0; }
.hg-card-name {
  font-weight: 700; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 4px;
}
.hg-card-phone { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.hg-card-company { font-size: 11px; color: var(--violet); margin-top: 2px; }
.hg-returning-badge {
  font-size: 10px; background: rgba(34,197,94,.15); color: var(--green);
  border-radius: 4px; padding: 1px 5px; font-weight: 700; flex-shrink: 0;
}
.hg-flag-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}

.hg-card-stats {
  display: flex; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hg-card-stat {
  flex: 1; padding: 8px 6px; text-align: center;
  border-right: 1px solid var(--border);
}
.hg-card-stat:last-child { border-right: none; }
.hg-card-stat-val { font-weight: 800; font-size: 14px; line-height: 1.2; }
.hg-card-stat-lbl { font-size: 10px; color: var(--text-3); margin-top: 2px; }

.hg-card-footer { padding: 8px 14px; }

/* Detail modal */
.hg-detail { display: flex; flex-direction: column; gap: 16px; }
.hg-detail-top {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.hg-detail-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.hg-detail-avatar--initials {
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px; color: #fff;
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
}
.hg-stat-row {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.hg-stat-box {
  flex: 1; min-width: 90px; background: var(--surface-2);
  border-radius: 10px; padding: 10px 12px; text-align: center;
  border: 1px solid var(--border);
}
.hg-stat-box-val { font-size: 18px; font-weight: 800; }
.hg-stat-box-lbl { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* ── Tape Chart — Full CSS ───────────────────────────────────────── */
.tape-wrap { width: 100%; overflow-x: auto; }
.tape-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 0 14px;
}
.tape-nav { display: flex; align-items: center; gap: 8px; }
.tape-window-label { font-weight: 700; font-size: 15px; min-width: 160px; text-align: center; }
.tape-occupancy { font-size: 13px; color: var(--text-3); }
.tape-legend { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.tape-legend-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 4px; }

/* Table */
.tape-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 700px;
}
.tape-table th {
  font-size: 11px; font-weight: 600; color: var(--text-3);
  text-align: center; padding: 4px 2px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.tape-table th.tape-th-room { width: 80px; text-align: left; padding-left: 8px; }
.tape-th-day { font-size: 10px; }
.tape-th-day .tape-th-dow { display: block; font-size: 9px; color: var(--text-3); }
.tape-th-day.tape-today-hd { color: var(--violet); font-weight: 800; }

/* Room label cell */
.tape-room-label {
  padding: 6px 8px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  position: sticky; left: 0; z-index: 2;
}
.tape-room-no { font-weight: 800; font-size: 13px; }
.tape-room-type { font-size: 10px; color: var(--text-3); }

/* Day cells */
.tape-cell {
  position: relative;
  height: 38px;
  padding: 2px 1px;
  border-right: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  cursor: pointer;
}
.tape-cell--past { opacity: 0.55; }
.tape-today { border-left: 2px solid var(--violet) !important; }

/* Empty cell fill */
.tape-empty {
  height: 100%;
  border-radius: 3px;
  min-height: 28px;
}

/* Booking bar */
.tape-bar {
  position: absolute;
  top: 4px; bottom: 4px;
  left: 0; right: 0;
  border-radius: 0;
  display: flex; align-items: center;
  overflow: hidden;
  cursor: grab;
  transition: filter .15s;
  min-height: 22px;
}
.tape-bar:hover { filter: brightness(1.15); }
.tape-bar--start { border-radius: 6px 0 0 6px; left: 3px; }
.tape-bar--end   { border-radius: 0 6px 6px 0; right: 3px; }
.tape-bar--start.tape-bar--end { border-radius: 6px; left: 3px; right: 3px; }
.tape-bar--adv   { opacity: 0.85; }
.tape-bar__name  {
  font-size: 11px; font-weight: 700; color: #fff;
  padding: 0 7px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}

/* Drag states */
.tape-cell--dragover {
  background: rgba(34, 197, 94, 0.25) !important;
  outline: 2px solid rgba(34, 197, 94, 0.7);
  outline-offset: -2px;
}
.tape-cell--conflict {
  background: rgba(239, 68, 68, 0.25) !important;
  outline: 2px solid rgba(239, 68, 68, 0.7);
  outline-offset: -2px;
}
