@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=DM+Mono:wght@300;400;500&display=swap');
:root {
  --gold: #C9973A; --gold-light: #E0AC45; --gold-dim: rgba(201,151,58,0.08); --gold-border: rgba(201,151,58,0.2);
  --bg: #F5F0EB; --bg-card: #FFFFFF; --bg-elevated: #FFFFFF; --bg-glass: rgba(255,255,255,0.85);
  --surface: #FFFFFF; --surface-2: #F0EBE6;
  --text: #2D2520; --text-dim: rgba(45,37,32,0.55); --text-muted: rgba(45,37,32,0.3);
  --accent-green: #3D9F6D; --accent-red: #D95555; --accent-blue: #4B8EF0;
  --radius-sm: 8px; --radius: 14px; --radius-lg: 20px; --radius-xl: 28px;
  --shadow: 0 2px 12px rgba(45,37,32,0.06); --shadow-gold: 0 0 24px rgba(201,151,58,0.1);
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Space Grotesk', system-ui, sans-serif; --mono: 'DM Mono', 'Courier New', monospace;
}*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body { margin: 0; overflow-x: hidden; padding-top: env(safe-area-inset-top); font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gold-border); border-radius: 2px; }
h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 600; }
.mono { font-family: var(--mono); } .gold { color: var(--gold); } .dim { color: var(--text-dim); } .muted { color: var(--text-muted); }
#app { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: 100%; max-width: 480px; margin: 0 auto; padding: 0 20px; }
.page { flex: 1; display: flex; flex-direction: column; animation: pageFade 0.3s ease; max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; box-sizing: border-box; }
@keyframes pageFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.site-header { position: sticky; top: 0; z-index: 100; background: var(--bg-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--gold-border); padding: 0 20px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 32px; height: 32px; background: linear-gradient(135deg, var(--gold), var(--gold-light)); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: var(--bg); letter-spacing: -0.05em; flex-shrink: 0; }
.logo-text { font-size: 0.9rem; font-weight: 600; color: var(--text); line-height: 1.2; }
.logo-sub { font-size: 0.65rem; color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; background: var(--bg-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--gold-border); display: flex; padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); }
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px; cursor: pointer; text-decoration: none; color: var(--text-muted); font-size: 0.65rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; transition: color var(--transition); -webkit-tap-highlight-color: transparent; }
.nav-item.active, .nav-item:hover { color: var(--gold); }
.nav-item svg { width: 22px; height: 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius); font-family: var(--font); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em; cursor: pointer; border: none; transition: all var(--transition); text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--bg); box-shadow: 0 4px 20px rgba(201,151,58,0.35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(201,151,58,0.45); }
.btn-primary:active { transform: translateY(0); }
.btn-outline { background: transparent; color: var(--gold); border: 1.5px solid var(--gold-border); }
.btn-outline:hover { background: var(--gold-dim); border-color: var(--gold); }
.btn-ghost { background: transparent; color: var(--text-dim); border: 1.5px solid rgba(240,237,230,0.12); }
.btn-ghost:hover { color: var(--text); border-color: rgba(240,237,230,0.25); }
.btn-lg { padding: 16px 32px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }
.card { background: var(--bg-card); border: 1px solid rgba(240,237,230,0.06); border-radius: var(--radius-lg); padding: 20px; transition: border-color var(--transition); }
.card:hover { border-color: var(--gold-border); }
.card-gold { border-color: var(--gold-border); box-shadow: var(--shadow-gold); }
.input { width: 100%; background: var(--surface); border: 1.5px solid rgba(240,237,230,0.1); border-radius: var(--radius); padding: 14px 16px; font-family: var(--font); font-size: 0.95rem; color: var(--text); outline: none; transition: all var(--transition); }
.input::placeholder { color: var(--text-muted); }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
.pin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 260px; margin: 0 auto; }
.pin-key { aspect-ratio: 1; background: var(--surface); border: 1.5px solid rgba(240,237,230,0.08); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 600; cursor: pointer; transition: all var(--transition); -webkit-tap-highlight-color: transparent; user-select: none; }
.pin-key:hover, .pin-key:active { background: var(--gold-dim); border-color: var(--gold); color: var(--gold); }
.pin-key.zero { grid-column: 2; }
.pin-dots { display: flex; gap: 12px; justify-content: center; margin: 28px 0; }
.pin-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--gold-border); background: transparent; transition: all 0.15s ease; }
.pin-dot.filled { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 8px rgba(201,151,58,0.5); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-chip { background: var(--bg-card); border: 1px solid rgba(240,237,230,0.06); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.stat-chip-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.stat-chip-value { font-size: 1.4rem; font-weight: 700; color: var(--text); line-height: 1; font-family: var(--mono); }
.stat-chip-value.gold { color: var(--gold); }
.stat-chip-value.green { color: var(--accent-green); }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); font-weight: 600; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-dim), var(--gold-border)); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; color: var(--gold); flex-shrink: 0; border: 1.5px solid var(--gold-border); }
.avatar-lg { width: 60px; height: 60px; font-size: 1.2rem; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(240,237,230,0.05); }
.list-item:last-child { border-bottom: none; }
.list-item-info { flex: 1; min-width: 0; }
.list-item-title { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.list-item-sub { font-size: 0.75rem; color: var(--text-dim); margin-top: 2px; }
.list-item-right { text-align: right; flex-shrink: 0; }
.list-item-value { font-size: 0.9rem; font-weight: 600; color: var(--gold); font-family: var(--mono); }
.list-item-label { font-size: 0.7rem; color: var(--text-muted); }
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 20px; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.badge-green { background: rgba(76,175,125,0.15); color: var(--accent-green); }
.badge-gold { background: var(--gold-dim); color: var(--gold); }
.badge-red { background: rgba(224,92,92,0.15); color: var(--accent-red); }
.badge-dim { background: rgba(240,237,230,0.06); color: var(--text-dim); }
.toast { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--bg-elevated); border: 1px solid var(--gold-border); border-radius: var(--radius); padding: 12px 20px; font-size: 0.85rem; font-weight: 500; color: var(--text); z-index: 9999; opacity: 0; transition: all 0.3s ease; pointer-events: none; white-space: nowrap; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: var(--accent-green); color: var(--accent-green); }
.toast.error { border-color: var(--accent-red); color: var(--accent-red); }
.spinner { width: 24px; height: 24px; border: 2.5px solid var(--gold-border); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.7s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-screen { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; color: var(--text-dim); }
.steps { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px; padding: 16px 24px; max-width: 1200px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.step-item { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 40px; }
.step-dot { width: 28px; height: 28px; border-radius: 50%; background: #1E1A17; border: 2px solid #333; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: #888; flex-shrink: 0; transition: all 0.2s; }
.step-dot.active { border-color: #C9973A; color: #C9973A; background: #2A1F0E; }
.step-dot.done { background: #C9973A; border-color: #C9973A; color: #0D0D0B; }
.step-line { width: 24px; height: 2px; flex-shrink: 0; background: rgba(201,168,76,0.2); transition: background 0.2s; }
.step-line.done { background: #C9973A; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 500; border: 1.5px solid rgba(240,237,230,0.1); background: var(--surface); color: var(--text-dim); cursor: pointer; transition: all var(--transition); -webkit-tap-highlight-color: transparent; }
.chip:hover, .chip.selected { background: var(--gold-dim); border-color: var(--gold); color: var(--gold); }
.staff-card { background: var(--bg-card); border: 2px solid rgba(240,237,230,0.06); border-radius: var(--radius-lg); padding: 16px; cursor: pointer; transition: all var(--transition); display: flex; align-items: center; gap: 14px; -webkit-tap-highlight-color: transparent; }
.staff-card:hover, .staff-card.selected { border-color: var(--gold); background: var(--gold-dim); }
.staff-card-info { flex: 1; }
.staff-card-name { font-weight: 600; font-size: 0.95rem; }
.staff-card-specialty { font-size: 0.75rem; color: var(--text-dim); margin-top: 2px; }
.staff-card-rating { font-size: 0.75rem; color: var(--gold); font-family: var(--mono); }
.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { padding: 10px 6px; border-radius: var(--radius-sm); background: var(--surface); border: 1.5px solid rgba(240,237,230,0.08); font-size: 0.78rem; font-family: var(--mono); font-weight: 500; text-align: center; cursor: pointer; transition: all var(--transition); color: var(--text-dim); }
.slot:hover, .slot.selected { background: var(--gold-dim); border-color: var(--gold); color: var(--gold); }
.slot.taken { opacity: 0.25; cursor: not-allowed; pointer-events: none; }
.slide-confirm-wrap { position: relative; background: var(--surface); border: 2px solid var(--gold-border); border-radius: 50px; height: 60px; overflow: hidden; user-select: none; touch-action: none; }
.slide-confirm-track { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--gold-dim), transparent); border-radius: 50px; }
.slide-confirm-thumb { position: absolute; left: 4px; top: 4px; bottom: 4px; width: 52px; background: linear-gradient(135deg, var(--gold), var(--gold-light)); border-radius: 50px; display: flex; align-items: center; justify-content: center; cursor: grab; box-shadow: 0 4px 20px rgba(201,151,58,0.5); z-index: 2; }
.slide-confirm-thumb:active { cursor: grabbing; }
.slide-confirm-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 600; color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase; pointer-events: none; z-index: 1; }
.review-card { background: var(--surface); border-radius: var(--radius-lg); padding: 20px; }
.review-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(240,237,230,0.05); font-size: 0.9rem; }
.review-row:last-child { border-bottom: none; }
.review-label { color: var(--text-dim); }
.review-value { font-weight: 600; font-family: var(--mono); }
.success-screen { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; text-align: center; gap: 20px; }
.success-icon { width: 80px; height: 80px; background: rgba(76,175,125,0.15); border: 2px solid var(--accent-green); border-radius: 50%; display: flex; align-items: center; justify-content: center; animation: successPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes successPop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.divider { height: 1px; background: rgba(240,237,230,0.06); margin: 20px 0; }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; gap: 12px; text-align: center; }
.empty-icon { font-size: 2.5rem; opacity: 0.3; }
.empty-text { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }
.login-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; background: radial-gradient(ellipse at 50% 0%, rgba(201,151,58,0.06) 0%, transparent 60%); }
.login-logo { margin-bottom: 40px; text-align: center; }
.login-logo-mark { width: 64px; height: 64px; background: linear-gradient(135deg, var(--gold), var(--gold-light)); border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; color: var(--bg); margin: 0 auto 16px; box-shadow: 0 8px 32px rgba(201,151,58,0.3); }
.login-title { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.login-sub { font-size: 0.8rem; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }
.login-box { width: 100%; max-width: 340px; background: var(--bg-card); border: 1px solid rgba(240,237,230,0.06); border-radius: var(--radius-xl); padding: 32px 24px; }
.login-role-switch { display: flex; background: var(--surface); border-radius: var(--radius); padding: 4px; margin-bottom: 28px; }
.role-tab { flex: 1; padding: 9px; border-radius: 10px; font-size: 0.8rem; font-weight: 600; text-align: center; cursor: pointer; color: var(--text-muted); transition: all var(--transition); }
.role-tab.active { background: var(--gold-dim); color: var(--gold); border: 1px solid var(--gold-border); }
.dashboard-header { padding: 24px 20px 16px; background: linear-gradient(180deg, rgba(201,151,58,0.04) 0%, transparent 100%); }
.dashboard-greeting { font-size: 0.75rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.dashboard-name { font-size: 1.5rem; font-weight: 700; }
.dashboard-content { flex: 1; overflow-y: auto; padding: 0 16px 120px; }
.staff-hero { padding: 32px 20px 20px; text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(201,151,58,0.05) 0%, transparent 60%); }
.legal-footer { margin-top: auto; padding: 24px 20px; text-align: center; border-top: 1px solid rgba(240,237,230,0.05); }
.legal-footer p { font-size: 0.68rem; color: var(--text-muted); line-height: 1.8; max-width: 360px; margin: 0 auto; }
.legal-footer a { color: var(--gold); text-decoration: none; }
.book-hero { padding: 32px 20px 24px; text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(201,151,58,0.07) 0%, transparent 60%); border-bottom: 1px solid var(--gold-border); }
.book-hero-eyebrow { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 8px; font-weight: 600; }
.book-hero-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.book-hero-sub { font-size: 0.85rem; color: var(--text-dim); }
.book-content { padding: 20px; display: flex; flex-direction: column; gap: 24px; }
@keyframes stepSlide { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
.progress-bar { height: 6px; background: var(--surface); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 3px; transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); }
.att-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.att-dot.present { background: var(--accent-green); }
.att-dot.absent { background: var(--accent-red); }
.att-dot.half { background: var(--gold); }
.att-dot.leave { background: var(--accent-blue); }
.pb-nav { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
@media (min-width: 600px) {
  .container { max-width: 520px; }
  .slot-grid { grid-template-columns: repeat(5, 1fr); }
}
@keyframes shake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-8px)} 40%{transform:translateX(8px)} 60%{transform:translateX(-6px)} 80%{transform:translateX(6px)} }
