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

:root {
  --ink: #18212b;
  --muted: #6b7280;
  --line: #e6e1d8;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --saffron: #d97706;
  --saffron-dark: #a95305;
  --teal: #0f766e;
  --teal-soft: #dff5ef;
  --amber-soft: #fff2d5;
  --red: #c2413b;
  --green: #167657;
  --shadow: 0 22px 60px rgba(51, 39, 25, .09);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 85% 0%, #fff5df 0, transparent 30%), var(--paper); font-family: 'DM Sans', sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 0; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-family: 'Manrope', sans-serif; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { display: grid; place-items: center; width: 37px; height: 37px; color: white; background: var(--saffron); border-radius: 12px; box-shadow: 0 8px 20px rgba(217,119,6,.25); }
.brand small { display: block; margin-top: 2px; color: var(--muted); font: 500 10px 'DM Sans', sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.eyebrow { color: var(--saffron-dark); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { font-family: 'Manrope', sans-serif; letter-spacing: -.04em; }
h1 { max-width: 700px; margin-bottom: 18px; font-size: clamp(2.6rem, 7vw, 5.8rem); line-height: .98; }
h2 { margin-bottom: 10px; font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { margin-bottom: 7px; font-size: 1.05rem; }
.lede { max-width: 620px; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr); align-items: end; gap: 48px; min-height: 520px; padding: 64px; overflow: hidden; color: white; background: linear-gradient(90deg, rgba(15, 20, 22, .94) 0%, rgba(15, 20, 22, .78) 42%, rgba(15, 20, 22, .3) 100%), url('/assets/hotel-food-background.jpg') center / cover; border-radius: 30px; box-shadow: var(--shadow); }
.hero > div, .hero > aside { position: relative; z-index: 1; }
.hero .lede { color: #f2eee6; }
.hero-card { position: relative; overflow: hidden; padding: 30px; background: rgba(23, 36, 43, .78); color: white; border: 1px solid rgba(255,255,255,.16); border-radius: 28px; box-shadow: var(--shadow); backdrop-filter: blur(4px); }
.hero-card::after { content: ''; position: absolute; width: 230px; height: 230px; right: -90px; top: -105px; border: 36px solid rgba(255,255,255,.08); border-radius: 50%; }
.hero-card .eyebrow { color: #fbbf68; }
.hero-card p { position: relative; z-index: 1; color: #c9d7d6; line-height: 1.6; }
.context { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.context-chip, .status, .hotel-badge { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 7px 11px; font-size: 12px; font-weight: 700; }
.context-chip, .hotel-badge { color: var(--teal); background: var(--teal-soft); }
.card { background: var(--surface); border: 1px solid rgba(230,225,216,.8); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel { padding: clamp(20px, 4vw, 34px); }
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; padding: 30px 0 70px; }
.auth-story { padding: 34px; color: white; background: linear-gradient(145deg, #b45309, #e58a1c); border-radius: var(--radius); }
.auth-story h2 { max-width: 390px; font-size: 2.6rem; }
.auth-story p { max-width: 390px; color: #fff4dd; line-height: 1.65; }
.feature-list { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: 10px; color: #fffaf0; line-height: 1.4; }
.feature-list span { display: grid; flex: 0 0 23px; place-items: center; width: 23px; height: 23px; color: var(--saffron-dark); background: #fff6e2; border-radius: 50%; font-size: 12px; font-weight: 800; }
.form-grid { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { color: #4b5563; font-size: 12px; font-weight: 700; }
input, select, textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fffefa; outline: none; transition: border-color .18s, box-shadow .18s; }
input:focus, select:focus, textarea:focus { border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(217,119,6,.13); }
textarea { min-height: 80px; resize: vertical; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 45px; padding: 0 16px; border: 0; border-radius: 12px; color: white; background: var(--ink); font-weight: 700; text-decoration: none; transition: transform .18s, background .18s, box-shadow .18s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 9px 18px rgba(24,33,43,.14); }
.btn-primary { background: var(--saffron); }
.btn-primary:hover { background: var(--saffron-dark); }
.btn-ghost { color: var(--ink); background: #f3f0e9; }
.btn-soft { color: var(--teal); background: var(--teal-soft); }
.btn-danger { color: white; background: var(--red); }
.btn-small { min-height: 35px; padding: 0 11px; border-radius: 9px; font-size: 12px; }
.btn-block { width: 100%; }
.page-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 48px 0 28px; }
.page-header h1 { margin-bottom: 8px; font-size: clamp(2.1rem, 5vw, 4rem); }
.page-header p { margin-bottom: 0; color: var(--muted); }
[data-page="customer"] .page-header { position: relative; overflow: hidden; padding: 48px 42px; color: white; background: linear-gradient(90deg, rgba(15, 20, 22, .9), rgba(15, 20, 22, .52)), url('/assets/hotel-food-background.jpg') center 62% / cover; border-radius: 28px; box-shadow: var(--shadow); }
[data-page="customer"] .page-header p { color: #f2eee6; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dashboard { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; padding-bottom: 70px; }
.rail { align-self: start; padding: 18px; position: sticky; top: 15px; }
.rail-nav { display: grid; gap: 7px; }
.rail-nav button { width: 100%; padding: 11px 12px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; text-align: left; font-weight: 700; }
.rail-nav button:hover, .rail-nav button.active { color: var(--saffron-dark); background: var(--amber-soft); }
.rail-note { margin-top: 26px; padding: 14px; color: var(--muted); background: #f7f5ef; border-radius: 14px; font-size: 12px; line-height: 1.5; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { padding: 18px; }
.stat-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.stat-value { margin-top: 6px; font: 800 2rem 'Manrope', sans-serif; letter-spacing: -.05em; }
.stat-accent { color: var(--saffron-dark); }
.section { display: none; }
.section.active { display: block; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fffefa; }
.product-image { display: grid; place-items: center; height: 134px; color: #9a5d1a; background: linear-gradient(135deg, #fce6ba, #f8f4e8); font-size: 2rem; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 14px; }
.product-body p { margin: 4px 0 12px; color: var(--muted); font-size: 12px; }
.price { color: var(--green); font-weight: 800; }
.order-list { display: grid; gap: 12px; margin-top: 18px; }
.order-card { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fffefa; }
.order-card.unseen { border-color: #efb65f; box-shadow: 0 0 0 3px rgba(239,182,95,.16); }
.order-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.order-meta { color: var(--muted); font-size: 12px; line-height: 1.5; }
.order-total { color: var(--saffron-dark); font-weight: 800; white-space: nowrap; }
.status { padding: 6px 9px; font-size: 11px; text-transform: capitalize; }
.status-new { color: #9a5d1a; background: var(--amber-soft); }
.status-preparing { color: #245f8d; background: #e2f1ff; }
.status-ready { color: var(--teal); background: var(--teal-soft); }
.status-completed { color: #43601e; background: #e9f6d8; }
.status-cancelled { color: #92352f; background: #fee5e1; }
.order-items { display: flex; flex-wrap: wrap; gap: 7px; margin: 15px 0; }
.item-pill { padding: 7px 9px; color: #4b5563; background: #f3f0e9; border-radius: 8px; font-size: 12px; }
.order-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.empty { padding: 28px; color: var(--muted); background: #f8f6f0; border: 1px dashed #d8d0c2; border-radius: 14px; text-align: center; }
.notice { display: none; margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.notice.show { display: block; }
.notice.error { color: #8d302d; background: #fee5e1; }
.notice.success { color: #176147; background: #e5f7ee; }
.customer-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 18px; padding-bottom: 70px; }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.menu-item { display: grid; grid-template-columns: 85px minmax(0, 1fr); gap: 13px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 15px; background: #fffefa; }
.menu-item .product-image { height: 73px; border-radius: 10px; font-size: 1.5rem; }
.menu-item h3 { margin-bottom: 4px; font-size: .95rem; }
.cart { align-self: start; position: sticky; top: 15px; }
.cart-lines { display: grid; gap: 8px; margin: 16px 0; }
.cart-line { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-bottom: 9px; border-bottom: 1px solid #efebe3; font-size: 13px; }
.cart-line small { color: var(--muted); }
.total-row { display: flex; justify-content: space-between; gap: 12px; margin: 14px 0 18px; font: 800 1.15rem 'Manrope', sans-serif; }
.success-state { display: none; text-align: center; padding: 28px 8px 8px; }
.success-state.show { display: block; }
.success-mark { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 14px; color: white; background: var(--green); border-radius: 50%; font-size: 1.5rem; }
.footer { padding: 0 0 34px; color: var(--muted); font-size: 12px; text-align: center; }
@media (max-width: 820px) {
  .hero, .auth-layout, .customer-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 42px; }
  .dashboard { grid-template-columns: 1fr; }
  .rail { position: static; }
  .rail-nav { grid-template-columns: repeat(3, 1fr); }
  .rail-note { display: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart { position: static; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 24px, 1180px); }
  .topbar { padding: 16px 0; }
  .top-actions .btn-ghost { display: none; }
  .hero { padding: 32px 22px 28px; gap: 22px; }
  [data-page="customer"] .page-header { padding: 32px 22px; }
  h1 { font-size: 3rem; }
  .hero-card, .auth-story { padding: 24px; }
  .stats, .menu-grid, .product-grid { grid-template-columns: 1fr; }
  .page-header { display: block; padding-top: 30px; }
  .page-header .top-actions { margin-top: 16px; }
  .rail-nav { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
}
