/* ==========================================================================
   Pharaohs Concierge — Phase 2
   Steigenberger Pyramids Cairo — Operational Layer
   Built by Pharaohs Nexus
   ========================================================================== */

/* ==========================================================================
   1. CSS VARIABLES — Steigenberger brand tokens
   ========================================================================== */
:root {
  /* Core brand palette */
  --brown:       #382F2D;
  --brown-soft:  #5A4A45;
  --brown-ink:   #2A2220;
  --brown-light: #6B5651;
  --grey:        #A8AEB2;
  --grey-soft:   #D8DBDD;
  --sand:        #C4A77D;
  --sand-light:  #E8DCC4;
  --sand-deep:   #A8895E;
  --sand-pale:   #F3ECD8;
  --cream:       #FAF7F2;
  --paper:       #F4EFE6;
  --white:       #FFFFFF;
  --black:       #0E0B0A;
  --mint:        #A0D9C0;
  --peach:       #F4C7C2;

  /* Status semantic colors */
  --pending:     #d97706;
  --assigned:    #2563eb;
  --progress:    #7c3aed;
  --completed:   #16a34a;
  --escalated:   #dc2626;

  /* Typography */
  --font-serif:   "Cormorant Garamond", "Times New Roman", serif;
  --font-sans:    "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-ar:      "Tajawal", "Jost", sans-serif;
  --font-mono:    ui-monospace, "Cascadia Code", monospace;

  /* Spacing & shape */
  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  30px;
  --container:  1280px;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(56,47,45,.06);
  --shadow-sm:  0 4px 14px rgba(56,47,45,.08), 0 1px 3px rgba(56,47,45,.05);
  --shadow-md:  0 10px 30px rgba(56,47,45,.12), 0 2px 8px rgba(56,47,45,.06);
  --shadow-lg:  0 24px 60px rgba(56,47,45,.20), 0 6px 16px rgba(56,47,45,.08);
  --shadow-xl:  0 40px 80px rgba(56,47,45,.25);

  /* Transitions */
  --t-fast:  0.12s ease;
  --t-base:  0.22s ease;
  --t-slow:  0.40s ease;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--brown);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[lang="ar"], .ar { font-family: var(--font-ar); direction: rtl; text-align: right; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-serif); font-weight: 400; letter-spacing: .02em; }

/* ==========================================================================
   3. DEMO STRIP (top announcement bar on every page)
   ========================================================================== */
.demo-strip {
  background: linear-gradient(90deg, var(--brown-ink), var(--brown));
  color: var(--sand-light);
  font-size: 11.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.demo-strip .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sand); display: inline-block; margin-right: 8px;
  box-shadow: 0 0 0 3px rgba(196,167,125,.28);
  animation: pulse 1.8s ease-in-out infinite;
}
.demo-strip a { color: var(--sand); transition: color var(--t-fast); }
.demo-strip a:hover { color: #fff; }

/* ==========================================================================
   4. APP HEADER (staff / supervisor / front desk pages)
   ========================================================================== */
.app-header {
  background: var(--brown);
  color: #fff;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: sticky;
  top: 0;
  z-index: 40;
}
.app-header .brand-mark {
  display: flex; align-items: center; gap: 12px;
  padding-right: 18px;
  border-right: 1px solid rgba(255,255,255,.12);
  flex-shrink: 0;
}
.app-header .brand-mark .logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--sand), var(--sand-deep));
  display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 700;
  color: var(--brown-ink); font-size: 19px; flex-shrink: 0;
}
.app-header .brand-mark .titles { line-height: 1.2; }
.app-header .brand-mark .product { font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.app-header .brand-mark .hotel   { font-size: 11px; color: var(--sand-light); opacity: .82; letter-spacing: .04em; }

.app-header nav { display: flex; gap: 4px; }
.app-header nav a {
  padding: 7px 14px; border-radius: 999px;
  color: rgba(255,255,255,.70); font-size: 13px; font-weight: 400;
  transition: background var(--t-fast), color var(--t-fast);
  letter-spacing: .04em;
}
.app-header nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.app-header nav a.active { background: var(--sand); color: var(--brown-ink); font-weight: 600; }

.app-header .spacer { flex: 1; }
.app-header .header-actions { display: flex; align-items: center; gap: 12px; }
.app-header .header-pill {
  background: rgba(255,255,255,.08);
  padding: 7px 14px; border-radius: 999px;
  font-size: 12.5px; color: #fff;
  display: inline-flex; align-items: center; gap: 8px;
  letter-spacing: .03em;
}
.app-header .header-pill .live {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.22);
  animation: pulse 2s ease-in-out infinite;
}

/* ==========================================================================
   5. PAGE SHELL
   ========================================================================== */
.page { padding: 28px; max-width: var(--container); margin: 0 auto; }
.page-title {
  font-family: var(--font-serif);
  font-weight: 500; font-size: clamp(26px, 3vw, 36px);
  color: var(--brown); margin-bottom: 4px;
}
.page-subtitle { color: var(--brown-soft); font-size: 14px; margin-bottom: 24px; font-weight: 300; }

/* ==========================================================================
   6. SHARED COMPONENTS
   ========================================================================== */

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid rgba(56,47,45,.09);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.card-pad  { padding: 20px; }
.card-head {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(56,47,45,.07);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-head h3 { font-size: 15px; font-weight: 600; color: var(--brown); }
.card-head .sub { color: var(--grey); font-size: 12.5px; font-weight: 300; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border-radius: 999px;
  background: var(--brown); color: #fff; font-weight: 500;
  font-size: 13px; letter-spacing: .04em;
  transition: background var(--t-base), transform var(--t-fast), box-shadow var(--t-base);
  border: 1px solid transparent; white-space: nowrap;
}
.btn:hover   { background: var(--brown-soft); box-shadow: var(--shadow-sm); }
.btn:active  { transform: translateY(1px); }
.btn.sand    { background: var(--sand); color: var(--brown-ink); }
.btn.sand:hover { background: var(--sand-deep); color: #fff; }
.btn.ghost   { background: transparent; color: var(--brown); border-color: rgba(56,47,45,.2); }
.btn.ghost:hover { background: var(--paper); }
.btn.danger  { background: var(--escalated); }
.btn.danger:hover { background: #b91c1c; }
.btn.success { background: var(--completed); }
.btn.success:hover { background: #15803d; }
.btn.sm      { padding: 5px 12px; font-size: 12px; }
.btn.block   { width: 100%; }
.btn.icon-only { padding: 8px; border-radius: 50%; }

/* --- Status chips --- */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .03em;
  background: var(--grey-soft); color: var(--brown-soft);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.chip.status-pending     { background: #fef3c7; color: #92400e; }
.chip.status-assigned    { background: #dbeafe; color: #1e40af; }
.chip.status-in-progress { background: #ede9fe; color: #5b21b6; }
.chip.status-completed   { background: #dcfce7; color: #14532d; }
.chip.status-escalated   { background: #fee2e2; color: #991b1b; }
.chip.priority-normal    { background: var(--grey-soft); color: var(--brown-soft); }
.chip.priority-high      { background: #fef3c7; color: #92400e; }
.chip.priority-urgent    { background: #fee2e2; color: #991b1b; }

/* --- SLA indicator --- */
.sla-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px;
}
.sla-ok      { background: #dcfce7; color: #14532d; }
.sla-warn    { background: #fef3c7; color: #92400e; }
.sla-breach  { background: #fee2e2; color: #991b1b; animation: blink .8s step-end infinite; }

@keyframes blink { 50% { opacity: .55; } }

/* --- Rating stars --- */
.stars { font-size: 13px; letter-spacing: 1px; }
.star-on  { color: var(--sand); }
.star-off { color: var(--grey-soft); }

/* --- Form fields --- */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label { font-size: 12.5px; color: var(--brown-soft); font-weight: 500; letter-spacing: .04em; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--grey-soft); border-radius: var(--radius-sm);
  font: inherit; font-size: 14px; background: #fff; color: var(--brown);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--sand);
  box-shadow: 0 0 0 3px rgba(196,167,125,.20);
}
.field textarea { resize: vertical; min-height: 72px; }

/* --- Toast --- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--brown); color: #fff; padding: 11px 22px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-lg);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s;
  opacity: 0; z-index: 999; white-space: nowrap; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* --- Empty state --- */
.empty { padding: 48px 24px; text-align: center; color: var(--grey); }
.empty .em-ico { font-size: 32px; margin-bottom: 10px; }
.empty p { font-size: 14px; color: var(--grey); }

/* ==========================================================================
   7. LANDING PAGE
   ========================================================================== */
.landing {
  min-height: 100vh;
  background:
    radial-gradient(1000px 500px at 85% -5%,  rgba(196,167,125,.22), transparent 55%),
    radial-gradient(700px  400px at -8%  100%, rgba(42,34,32,.55),    transparent 55%),
    linear-gradient(175deg, var(--brown-ink), var(--brown));
  color: #fff;
  display: flex; flex-direction: column;
}
.landing-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 68px 36px; flex: 1; width: 100%;
}
.landing-eyebrow {
  display: inline-block;
  padding: 5px 14px; border-radius: 999px;
  background: rgba(196,167,125,.14); color: var(--sand);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 500; font-family: var(--font-sans);
}
.landing-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 1.04; margin: 20px 0 20px; letter-spacing: -.01em;
}
.landing-title em { color: var(--sand); font-style: italic; }
.landing-lead {
  color: rgba(255,255,255,.75); max-width: 680px;
  font-size: 16px; line-height: 1.7; font-weight: 300;
}

/* Hotel branding row */
.landing-brand {
  display: flex; align-items: center; gap: 16px;
  margin-top: 28px; padding: 16px 20px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius); max-width: 480px;
}
.landing-brand .lb-logo {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--sand), var(--sand-deep));
  display: grid; place-items: center; flex-shrink: 0;
  font-family: var(--font-serif); font-weight: 700; font-size: 22px; color: var(--brown-ink);
}
.landing-brand .lb-name { font-family: var(--font-serif); font-size: 18px; letter-spacing: .08em; }
.landing-brand .lb-sub  { font-size: 11px; color: rgba(255,255,255,.55); letter-spacing: .14em; text-transform: uppercase; margin-top: 2px; }

/* Role cards grid */
.role-grid {
  margin-top: 60px;
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.role-card {
  position: relative;
  background: linear-gradient(170deg, rgba(15, 15, 15, 0.329), rgba(36, 34, 34, 0.486));
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg); padding: 28px;
  text-decoration: none; color: #fff;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
  overflow: hidden;
}
.role-card::before {
  content: ""; position: absolute;
  inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(200px circle at var(--mx,50%) var(--my,50%), rgba(196,167,125,.15), transparent 70%);
  opacity: 0; transition: opacity var(--t-base);
}
.role-card:hover { transform: translateY(-5px); border-color: rgba(196,167,125,.5); box-shadow: 0 32px 72px rgba(0,0,0,.32); }
.role-card:hover::before { opacity: 1; }
.role-card .role-icon {
  width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(135deg, var(--sand), var(--sand-deep));
  color: var(--brown-ink); display: grid; place-items: center;
  font-size: 24px; margin-bottom: 16px;
}
.role-card .role-badge {
  position: absolute; top: 18px; right: 18px;
  background: rgba(196,167,125,.18); color: var(--sand);
  font-size: 10px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
}
.role-card h3 { font-family: var(--font-serif); font-size: 24px; font-weight: 500; margin-bottom: 8px; }
.role-card p  { color: rgba(255,255,255,.68); font-size: 13.5px; line-height: 1.65; margin: 0 0 18px; font-weight: 300; }
.role-card .role-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--sand); font-size: 13px;
}
.role-cta svg { transition: transform var(--t-base); }
.role-card:hover .role-cta svg { transform: translateX(4px); }

/* Flow strip */
.flow-strip {
  margin-top: 68px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg); padding: 28px 32px;
}
.flow-strip h4 {
  margin: 0 0 22px; font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--sand); font-family: var(--font-sans);
}
.flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flow-steps .step {
  padding: 16px 18px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 14px;
}
.flow-steps .step .num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--sand); color: var(--brown-ink);
  display: grid; place-items: center; font-weight: 700; font-size: 12px; margin-bottom: 10px;
}
.flow-steps .step h5  { margin: 0 0 5px; font-size: 14px; font-weight: 600; font-family: var(--font-sans); }
.flow-steps .step p   { margin: 0; color: rgba(255,255,255,.65); font-size: 12.5px; line-height: 1.55; font-weight: 300; }

/* Features bar */
.features-bar {
  margin-top: 44px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
}
.feature-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
}
.feature-item .fi-icon {
  width: 32px; height: 32px; border-radius: 10px;
  background: rgba(196,167,125,.15); display: grid; place-items: center;
  font-size: 16px; flex-shrink: 0;
}
.feature-item h6 { margin: 0 0 3px; font-size: 13px; font-weight: 600; font-family: var(--font-sans); }
.feature-item p  { margin: 0; font-size: 11.5px; color: rgba(255,255,255,.6); line-height: 1.5; font-weight: 300; }

/* Landing footer */
.landing-foot {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 18px 36px; text-align: center;
  color: rgba(255,255,255,.45); font-size: 12.5px;
}

/* ==========================================================================
   8. GUEST PORTAL
   ========================================================================== */
.guest-stage {
  min-height: 100vh;
  background:
    radial-gradient(800px 400px at 92% 8%, rgba(196,167,125,.20), transparent 55%),
    linear-gradient(170deg, var(--brown-ink), var(--brown));
  display: flex; flex-direction: column;
}
.guest-stage .stage-inner {
  flex: 1; display: grid;
  grid-template-columns: 1fr minmax(360px, 420px) 1fr;
  align-items: center; gap: 28px; padding: 36px 32px;
}
.stage-aside { color: #fff; align-self: center; }
.stage-aside.left  { padding-right: 12px; }
.stage-aside.right { padding-left: 12px; }
.stage-aside h2 {
  font-family: var(--font-serif); font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18; font-weight: 400; margin: 12px 0 14px;
}
.stage-aside h2 em { color: var(--sand); font-style: italic; }
.stage-aside p  { color: rgba(255,255,255,.70); line-height: 1.65; margin: 0 0 14px; font-size: 14px; font-weight: 300; }
.stage-aside .feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.stage-aside .feature-list li {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  padding: 10px 12px; border-radius: 11px; font-size: 13px;
}
.stage-aside .feature-list li .icon {
  width: 24px; height: 24px; border-radius: 7px;
  background: var(--sand); color: var(--brown-ink);
  display: grid; place-items: center; flex-shrink: 0; font-size: 12px; font-weight: 700;
}

/* Lang toggle in aside */
.lang-toggle {
  display: inline-flex; background: rgba(255,255,255,.09); border-radius: 999px; padding: 3px;
  margin-bottom: 16px;
}
.lang-toggle button {
  padding: 5px 14px; border-radius: 999px; font-size: 12px; letter-spacing: .12em;
  color: rgba(255,255,255,.7); transition: all var(--t-base);
}
.lang-toggle button.active { background: var(--sand); color: var(--brown-ink); font-weight: 600; }

/* Phone frame */
.phone {
  width: 100%; max-width: 420px; margin: 0 auto;
  background: #0f0c0b; border-radius: 44px; padding: 13px;
  box-shadow: 0 50px 100px rgba(0,0,0,.60), 0 0 0 2px rgba(196,167,125,.20), inset 0 0 0 1px rgba(255,255,255,.04);
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 24px; background: #0f0c0b; border-radius: 16px; z-index: 3;
}
.phone-screen {
  background: var(--cream); border-radius: 32px;
  height: 760px; overflow: hidden;
  display: flex; flex-direction: column; position: relative;
}
.status-bar {
  height: 42px; flex-shrink: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 24px; font-size: 12px; font-weight: 600; color: var(--brown);
}

/* Guest hero */
.guest-hero {
  background: linear-gradient(135deg, var(--brown), var(--brown-soft));
  color: #fff; padding: 16px 20px 20px;
}
.guest-hero .row { display: flex; align-items: center; gap: 12px; }
.guest-hero .avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sand), var(--sand-deep));
  color: var(--brown-ink); display: grid; place-items: center;
  font-weight: 700; font-size: 16px;
}
.guest-hero .greet { font-size: 12px; color: rgba(255,255,255,.65); }
.guest-hero .name  { font-size: 17px; font-weight: 600; line-height: 1.1; }
.guest-hero .tier-badge {
  display: inline-block; margin-top: 3px; padding: 2px 8px; border-radius: 999px;
  background: rgba(196,167,125,.22); color: var(--sand);
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
}
.points-row {
  display: flex; align-items: center; gap: 6px;
  margin-top: 10px; font-size: 11.5px; color: rgba(255,255,255,.65);
}
.points-row .pts {
  font-family: var(--font-serif); font-size: 20px; font-weight: 600;
  color: var(--sand); line-height: 1;
}
.stay-card {
  margin-top: 14px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px; padding: 11px 14px;
  display: grid; grid-template-columns: 1fr 1px 1fr 1px 1fr; gap: 10px; align-items: center;
}
.stay-card .divider { background: rgba(255,255,255,.12); height: 26px; }
.stay-card .label { color: rgba(255,255,255,.52); font-size: 9.5px; text-transform: uppercase; letter-spacing: .09em; }
.stay-card .value { color: #fff; font-weight: 600; font-size: 13px; line-height: 1.2; margin-top: 2px; }

/* Phone body */
.phone-body { flex: 1; overflow-y: auto; background: var(--cream); }
.phone-body::-webkit-scrollbar { width: 5px; }
.phone-body::-webkit-scrollbar-thumb { background: rgba(56,47,45,.15); border-radius: 3px; }

.section-h {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px 8px;
}
.section-h h4  { margin: 0; font-size: 14px; font-weight: 700; color: var(--brown); font-family: var(--font-sans); }
.section-h a   { color: var(--sand-deep); font-size: 12.5px; font-weight: 600; }

.svc-grid {
  padding: 2px 12px 12px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.svc-card {
  background: var(--white); border: 1px solid rgba(56,47,45,.08); border-radius: 12px;
  padding: 12px; display: flex; flex-direction: column; gap: 5px;
  cursor: pointer; transition: transform var(--t-fast), border-color var(--t-base), box-shadow var(--t-base);
  text-align: left;
}
.svc-card:hover { border-color: var(--sand); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.svc-card .ico {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; font-size: 17px; color: #fff;
}
.svc-card h5 { margin: 0; font-size: 13px; font-weight: 700; color: var(--brown); font-family: var(--font-sans); }
.svc-card p  { margin: 0; font-size: 11px; color: var(--grey); line-height: 1.4; }

/* Request row */
.req-list { padding: 4px 12px 20px; display: grid; gap: 9px; }
.req-row {
  background: var(--white); border: 1px solid rgba(56,47,45,.07); border-radius: 11px;
  padding: 11px 13px; display: flex; gap: 11px; align-items: flex-start;
}
.req-row .req-ico {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; font-size: 15px; color: #fff; flex-shrink: 0;
}
.req-row .req-meta { flex: 1; min-width: 0; }
.req-row .req-meta .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.req-row .req-meta .ttl { font-size: 12.5px; font-weight: 700; color: var(--brown); }
.req-row .req-meta .time { font-size: 10.5px; color: var(--grey); flex-shrink: 0; }
.req-row .req-meta .sub { font-size: 11px; color: var(--grey); margin-top: 2px; }
.req-row .req-meta .row-bottom { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 6px; }

/* Phone bottom tabs */
.phone-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(56,47,45,.08); background: var(--white); flex-shrink: 0;
}
.phone-tabs button {
  padding: 10px 4px; font-size: 10.5px; font-weight: 600;
  color: var(--grey); display: flex; flex-direction: column; align-items: center; gap: 3px;
  position: relative; transition: color var(--t-fast);
}
.phone-tabs button.active { color: var(--sand-deep); }
.phone-tabs button .ti { font-size: 18px; }
.phone-tabs button .nbadge {
  position: absolute; top: 7px; right: calc(50% - 14px);
  background: var(--escalated); color: #fff;
  width: 15px; height: 15px; border-radius: 50%;
  font-size: 9px; font-weight: 700; display: grid; place-items: center;
}

/* Notification items */
.notif-row {
  background: var(--white); border: 1px solid rgba(56,47,45,.07); border-radius: 11px;
  padding: 11px 13px; display: flex; gap: 10px; align-items: flex-start;
}
.notif-row .n-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px;
}
.notif-row .n-meta .n-title { font-size: 12.5px; font-weight: 700; color: var(--brown); }
.notif-row .n-meta .n-body  { font-size: 11.5px; color: var(--grey); margin-top: 2px; line-height: 1.45; }
.notif-row .n-meta .n-time  { font-size: 10.5px; color: var(--grey); margin-top: 4px; }

/* Item picker overlay */
.overlay {
  position: absolute; inset: 0;
  background: rgba(42,34,32,.6);
  display: none; align-items: flex-end; z-index: 5;
  border-radius: 32px; overflow: hidden;
}
.overlay.open { display: flex; animation: fadeIn .18s ease; }
.sheet {
  background: var(--white); border-radius: 24px 24px 0 0;
  padding: 20px; width: 100%; max-height: 76%;
  overflow-y: auto;
}
.sheet::-webkit-scrollbar { width: 4px; }
.sheet::-webkit-scrollbar-thumb { background: rgba(56,47,45,.15); border-radius: 2px; }
.grabber {
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--grey-soft); margin: 0 auto 16px;
}
.sheet h4      { font-size: 18px; font-weight: 600; color: var(--brown); margin-bottom: 4px; }
.sheet .desc   { font-size: 13px; color: var(--grey); margin: 0 0 14px; font-weight: 300; }
.item-list     { display: grid; gap: 8px; margin-bottom: 14px; }
.item-row {
  background: var(--paper); border: 2px solid transparent;
  border-radius: 11px; padding: 11px 13px;
  display: flex; align-items: center; justify-content: space-between; cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.item-row:hover    { background: var(--sand-pale); }
.item-row.selected { border-color: var(--sand); background: var(--sand-pale); }
.item-row .lbl     { font-size: 13.5px; font-weight: 600; color: var(--brown); }
.item-row .unit    { font-size: 11px; color: var(--grey); margin-top: 2px; }
.item-row .qty     { display: flex; align-items: center; gap: 8px; }
.item-row .qty button {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brown); color: #fff; font-size: 16px; font-weight: 300;
  display: grid; place-items: center;
}
.item-row .qty input {
  width: 30px; text-align: center; border: none; background: transparent;
  font-size: 15px; font-weight: 700; color: var(--brown); padding: 0;
}
.footer-actions { display: flex; gap: 10px; margin-top: 14px; }
.footer-actions .btn { flex: 1; }

/* WhatsApp simulation card */
.whatsapp-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  background: #f0fdf4; border: 1px solid #bbf7d0; margin-top: 14px;
}
.whatsapp-card .wa-ico { font-size: 22px; flex-shrink: 0; }
.whatsapp-card .wa-meta b { font-size: 13px; font-weight: 700; color: #14532d; display: block; }
.whatsapp-card .wa-meta small { font-size: 11.5px; color: #166534; }

/* Rating prompt */
.rating-prompt { margin-top: 14px; text-align: center; }
.rating-prompt p { font-size: 13px; color: var(--grey); margin: 0 0 8px; }
.star-buttons { display: flex; justify-content: center; gap: 8px; }
.star-buttons button { font-size: 26px; transition: transform var(--t-fast); color: var(--grey-soft); }
.star-buttons button:hover,
.star-buttons button.sel { color: var(--sand); transform: scale(1.15); }

/* ==========================================================================
   9. STAFF CONSOLE
   ========================================================================== */
.staff-toolbar {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.staff-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.staff-filter button {
  padding: 7px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; color: var(--brown-soft);
  border: 1px solid rgba(56,47,45,.16);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.staff-filter button:hover { background: var(--paper); }
.staff-filter button.active { background: var(--brown); color: #fff; border-color: var(--brown); }
.staff-filter button .cnt { margin-left: 5px; font-size: 11px; opacity: .7; }

.dept-filter { display: flex; align-items: center; gap: 8px; }
.dept-filter label { font-size: 12.5px; color: var(--grey); white-space: nowrap; }
.dept-filter select {
  padding: 7px 10px; border: 1px solid rgba(56,47,45,.16); border-radius: 999px;
  background: var(--white); font: inherit; font-size: 12.5px; color: var(--brown);
}

.staff-grid {
  display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: start;
}
.staff-list { display: grid; gap: 12px; }
.staff-row {
  background: var(--white); border: 1px solid rgba(56,47,45,.08); border-radius: var(--radius);
  padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start;
  cursor: pointer; transition: border-color var(--t-base), box-shadow var(--t-base);
}
.staff-row:hover { border-color: var(--sand); box-shadow: var(--shadow-sm); }
.staff-row.is-new { border-color: var(--sand); background: var(--sand-pale); animation: slideDown .3s ease; }
.staff-row .ico {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 20px; color: #fff;
}
.staff-row .ttl { font-size: 14px; font-weight: 700; color: var(--brown); }
.staff-row .meta { font-size: 12.5px; color: var(--grey); margin-top: 3px; }
.staff-row .chips-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.staff-row .row-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.staff-row .sla-col { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

/* WhatsApp preview panel */
.wa-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(56,47,45,.08);
}
.wa-screen { background: #ece5dd; }
.wa-header {
  background: #128c7e; padding: 10px 14px;
  display: flex; align-items: center; gap: 11px; color: #fff;
}
.wa-header .av {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.22);
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.wa-header .name { font-size: 14px; font-weight: 600; }
.wa-header .sub  { font-size: 11px; opacity: .8; }
.wa-body { padding: 14px 12px; min-height: 160px; display: grid; gap: 6px; }
.wa-bubble {
  background: #fff; border-radius: 12px 12px 12px 2px;
  padding: 10px 13px; font-size: 12.5px; color: #1a1a1a; line-height: 1.55;
  box-shadow: 0 1px 2px rgba(0,0,0,.1); white-space: pre-wrap; max-width: 94%;
}
.wa-time { font-size: 10px; color: rgba(0,0,0,.38); text-align: right; margin-top: 4px; }
.wa-foot {
  background: #f0f0f0; padding: 8px 12px;
  display: flex; align-items: center; gap: 10px;
}
.wa-foot .input {
  flex: 1; background: #fff; border-radius: 999px;
  padding: 8px 14px; font-size: 12.5px; color: rgba(0,0,0,.35);
}
.wa-foot .send {
  width: 34px; height: 34px; border-radius: 50%; background: #128c7e;
  color: #fff; display: grid; place-items: center; font-size: 14px;
}

/* Shift notes */
.shift-notes-wrap { display: flex; flex-direction: column; gap: 0; }
.shift-notes-wrap textarea {
  border: 1px solid rgba(56,47,45,.12); border-radius: var(--radius-sm);
  padding: 12px; font: inherit; font-size: 13px; color: var(--brown);
  background: #fffef9; resize: none; min-height: 120px;
  transition: border-color var(--t-base);
}
.shift-notes-wrap textarea:focus { outline: none; border-color: var(--sand); }
.shift-notes-foot { font-size: 11.5px; color: var(--grey); text-align: right; padding-top: 4px; }

/* Sound toggle */
.sound-toggle {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--grey); cursor: pointer;
  padding: 7px 14px; border: 1px solid rgba(56,47,45,.14);
  border-radius: 999px; user-select: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.sound-toggle.on { background: var(--sand-pale); color: var(--brown); border-color: var(--sand); }
.sound-toggle .bell { font-size: 16px; }

/* ==========================================================================
   10. SUPERVISOR DASHBOARD
   ========================================================================== */
.filters-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 24px; background: var(--white);
  padding: 12px 18px; border-radius: var(--radius);
  border: 1px solid rgba(56,47,45,.08);
}
.filters-bar .lbl { font-size: 12px; color: var(--grey); text-transform: uppercase; letter-spacing: .1em; }
.seg { display: flex; background: var(--paper); border-radius: 999px; padding: 3px; }
.seg button {
  padding: 6px 14px; border-radius: 999px; font-size: 12.5px; color: var(--brown-soft);
  transition: background var(--t-fast), color var(--t-fast);
}
.seg button.active { background: var(--brown); color: #fff; }
.filters-bar select {
  padding: 7px 12px; border: 1px solid rgba(56,47,45,.14); border-radius: 999px;
  font: inherit; font-size: 12.5px; color: var(--brown); background: var(--white);
}
.filters-bar .spacer { flex: 1; }

.kpi-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 24px; }
.kpi {
  background: var(--white); border: 1px solid rgba(56,47,45,.08);
  border-radius: var(--radius); padding: 20px;
  border-left: 4px solid var(--sand);
}
.kpi.kpi-warn    { border-left-color: var(--pending); }
.kpi.kpi-success { border-left-color: var(--completed); }
.kpi.kpi-info    { border-left-color: var(--assigned); }
.kpi.kpi-violet  { border-left-color: var(--progress); }
.kpi .label { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--grey); margin-bottom: 8px; }
.kpi .value { font-family: var(--font-serif); font-size: 40px; font-weight: 400; color: var(--brown); line-height: 1; margin-bottom: 6px; }
.kpi .trend { font-size: 12px; color: var(--grey); }
.kpi .trend.up   { color: var(--completed); }
.kpi .trend.down { color: var(--escalated); }

.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px; margin-bottom: 24px;
}
.charts-grid .row-2 { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.chart-card .canvas-wrap { padding: 16px; position: relative; height: 220px; }
.chart-card .canvas-wrap.tall { height: 280px; }

.staff-perf { display: grid; gap: 10px; }
.perf-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  background: var(--paper); border-radius: var(--radius-sm);
  transition: background var(--t-fast);
}
.perf-row:hover { background: var(--sand-pale); }
.perf-row .av {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brown); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.perf-row .pname { font-size: 13.5px; font-weight: 600; color: var(--brown); }
.perf-row .prole { font-size: 11.5px; color: var(--grey); }
.perf-row .pbar-wrap { flex: 1; }
.perf-row .pbar { height: 5px; border-radius: 3px; background: var(--grey-soft); overflow: hidden; }
.perf-row .pbar-fill { height: 100%; border-radius: 3px; background: var(--sand); transition: width .6s ease; }
.perf-row .pcount { font-size: 13px; font-weight: 700; color: var(--brown); min-width: 28px; text-align: right; }

/* Log table */
.log-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.log-table th {
  padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; color: var(--grey);
  border-bottom: 1px solid rgba(56,47,45,.08); white-space: nowrap;
}
.log-table td {
  padding: 10px 14px; border-bottom: 1px solid rgba(56,47,45,.05);
  vertical-align: middle; color: var(--brown-soft);
}
.log-table tr:last-child td { border-bottom: none; }
.log-table tr:hover td { background: var(--cream); }
.log-table .req-id { font-family: var(--font-mono); font-size: 12px; color: var(--grey); }
.log-table .item-cell { display: flex; align-items: center; gap: 8px; }
.log-table .item-cell .ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; color: #fff; flex-shrink: 0; }
.log-table .guest { font-weight: 600; color: var(--brown); }
.log-table .room  { font-size: 11.5px; color: var(--grey); }

/* Forecast card */
.forecast-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.forecast-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--paper);
}
.forecast-item .fi-icon { font-size: 20px; flex-shrink: 0; }
.forecast-item .fi-dept { font-size: 12.5px; font-weight: 600; color: var(--brown); }
.forecast-item .fi-val  { font-size: 11.5px; color: var(--grey); }

/* ==========================================================================
   11. FRONT DESK
   ========================================================================== */
.fd-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }

.room-grid { display: flex; flex-direction: column; gap: 10px; }
.floor-row { }
.floor-label {
  font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--grey);
  text-transform: uppercase; margin-bottom: 6px;
}
.rooms-in-floor { display: flex; gap: 8px; flex-wrap: wrap; }
.room-card {
  width: 68px; height: 68px; border-radius: var(--radius-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--brown); cursor: pointer;
  border: 2px solid transparent; transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
  position: relative;
  user-select: none;
}
.room-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.room-card.status-available   { background: #dcfce7; border-color: #86efac; }
.room-card.status-occupied    { background: var(--sand-pale); border-color: var(--sand); }
.room-card.status-dirty       { background: #fef9c3; border-color: #fde047; }
.room-card.status-on-change   { background: #dbeafe; border-color: #93c5fd; }
.room-card.status-maintenance { background: #fee2e2; border-color: #fca5a5; }
.room-card.selected           { transform: translateY(-2px) scale(1.06); box-shadow: var(--shadow-md); }
.room-card .room-num  { font-size: 14px; font-weight: 700; line-height: 1; }
.room-card .room-type { font-size: 9px; font-weight: 400; color: var(--grey); margin-top: 2px; text-align: center; line-height: 1.2; }
.room-card .vip-star  { position: absolute; top: 4px; right: 5px; font-size: 9px; color: var(--sand-deep); }

.room-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--brown-soft); }
.legend-dot  { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.legend-dot.available   { background: #86efac; }
.legend-dot.occupied    { background: var(--sand); }
.legend-dot.dirty       { background: #fde047; }
.legend-dot.on-change   { background: #93c5fd; }
.legend-dot.maintenance { background: #fca5a5; }

/* Room detail panel */
.room-detail { }
.room-detail-head {
  padding: 16px 20px; background: var(--brown);
  border-radius: var(--radius) var(--radius) 0 0; color: #fff;
}
.room-detail-head .rnum { font-family: var(--font-serif); font-size: 32px; line-height: 1; color: var(--sand); }
.room-detail-head .rtype { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 3px; }
.room-detail-body { padding: 16px 20px; }

.arrivals-section { }
.arrival-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid rgba(56,47,45,.06);
}
.arrival-row:last-child { border-bottom: none; }
.arrival-row .ar-time {
  font-family: var(--font-serif); font-size: 18px; color: var(--sand-deep);
  min-width: 52px; font-weight: 400; flex-shrink: 0;
}
.arrival-row .ar-info { flex: 1; }
.arrival-row .ar-name  { font-size: 13.5px; font-weight: 600; color: var(--brown); }
.arrival-row .ar-room  { font-size: 11.5px; color: var(--grey); margin-top: 2px; }
.arrival-row .ar-pref  { font-size: 11.5px; color: var(--grey); margin-top: 4px; font-style: italic; }
.arrival-row .ar-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 2px 7px;
  border-radius: 999px; flex-shrink: 0;
}
.tier-Platinum { background: #e2e8f0; color: #1e293b; }
.tier-Gold     { background: var(--sand-pale); color: var(--sand-deep); }
.tier-Silver   { background: var(--grey-soft); color: var(--brown-soft); }
.vip-flag { background: var(--sand-pale); color: var(--sand-deep); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }

/* Check-in form */
.checkin-form { display: grid; gap: 12px; }

/* ==========================================================================
   12. ANIMATIONS & UTILITIES
   ========================================================================== */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(196,167,125,.25); }
  50%       { box-shadow: 0 0 0 7px rgba(196,167,125,0); }
}
@keyframes fadeIn  { from { opacity: 0; }                    to { opacity: 1; } }
@keyframes slideDown { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slideUp   { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--grey-soft) 25%, #f9f9f9 50%, var(--grey-soft) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 6px;
}

/* ==========================================================================
   13. RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .staff-grid   { grid-template-columns: 1fr; }
  .fd-layout    { grid-template-columns: 1fr; }
  .charts-grid  { grid-template-columns: 1fr; }
  .charts-grid .row-2 { grid-column: auto; grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .guest-stage .stage-inner { grid-template-columns: 1fr; padding: 24px 20px; }
  .stage-aside.left, .stage-aside.right { display: none; }
  .role-grid { grid-template-columns: 1fr 1fr; }
  .flow-steps { grid-template-columns: 1fr 1fr; }
  .kpi-row    { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .role-grid  { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr; }
  .kpi-row    { grid-template-columns: 1fr; }
  .app-header { padding: 12px 16px; }
  .app-header nav { display: none; }
  .page { padding: 16px; }
  .features-bar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .features-bar { grid-template-columns: 1fr; }
}

/* ==========================================================================
   14. PRINT (for supervisor export)
   ========================================================================== */
@media print {
  .demo-strip, .app-header, .filters-bar, .charts-grid, .btn { display: none !important; }
  .page { padding: 0; }
  .log-table td, .log-table th { font-size: 11px; padding: 6px 10px; }
}
