:root {
    --ink: #5d4038;
    --muted: #756861;
    --line: #eee4cf;
    --soft: #fffaf0;
    --teal: #92bc3e;
    --teal-dark: #6d9228;
    --mint: #eef4cf;
    --orange: #f5d801;
    --gold: #f5d801;
    --gold-soft: #fff6c7;
    --danger: #b54444;
    --white: #ffffff;
    --shadow: 0 18px 55px rgba(93, 64, 56, .14);
}

* { box-sizing: border-box; }
body { margin: 0; background: #fffdf7; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
a { color: inherit; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header { background: var(--white); border-bottom: 3px solid var(--gold); }
.header-inner { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: .02em; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 1px; }
.header-link, .top-nav a { color: var(--teal-dark); text-decoration: none; font-size: 13px; font-weight: 700; }
.top-nav { display: flex; gap: 19px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.top-nav .nav-muted { color: var(--muted); font-weight: 600; }
.main-content { min-height: calc(100vh - 145px); padding: 52px 0 80px; }
.site-footer { background: var(--ink); color: #f3eadb; font-size: 12px; }
.footer-inner { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero { display: grid; grid-template-columns: 1fr 300px; gap: 60px; align-items: center; padding: 30px 0 66px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; color: var(--teal); font-size: 11px; font-weight: 800; margin: 0 0 12px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.04; letter-spacing: -.045em; max-width: 670px; margin-bottom: 20px; }
h2 { font-size: 30px; line-height: 1.1; letter-spacing: -.03em; margin-bottom: 12px; }
.lead { font-size: 17px; color: var(--muted); max-width: 670px; }
.hero-note { display: flex; align-items: flex-start; gap: 10px; color: var(--teal-dark); font-size: 13px; font-weight: 650; margin-top: 25px; }
.hero-note span:first-child { display: grid; place-items: center; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: var(--mint); color: var(--teal-dark); }
.hero-card { border-radius: 26px; border-top: 6px solid var(--gold); background: var(--ink); color: white; padding: 28px 30px; box-shadow: var(--shadow); }
.mini-label { color: #a8bec0; font-size: 11px; text-transform: uppercase; letter-spacing: .13em; font-weight: 800; }
.big-number { font-size: 42px; font-weight: 800; line-height: 1; margin-top: 8px; }
.hero-card .muted { color: #b8c9cb; font-size: 13px; margin-top: 4px; }
.hero-divider { border-top: 1px solid rgba(255,255,255,.18); margin: 25px 0; }
.section-grid { display: grid; grid-template-columns: minmax(0, 1fr) 355px; gap: 28px; }
.section-heading { margin-bottom: 22px; }
.section-heading > p:not(.eyebrow) { color: var(--muted); max-width: 640px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 8px 35px rgba(23,37,45,.04); }
.form-card { padding: 28px; }
.form-row { display: grid; gap: 16px; margin-bottom: 17px; }
.two-col { grid-template-columns: 1fr 1fr; }
label { display: grid; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 750; margin-bottom: 17px; }
input, select { width: 100%; border: 1px solid #cddcdf; border-radius: 11px; background: #fbfdfd; color: var(--ink); padding: 13px 14px; font: inherit; font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8,127,131,.12); }
.check-label { display: flex; grid-template-columns: none; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--muted); line-height: 1.4; margin: 8px 0 20px; }
.check-label input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--teal); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 46px; padding: 0 18px; border: 0; border-radius: 11px; text-decoration: none; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; transition: transform .15s, background .15s, box-shadow .15s; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--teal); color: white; box-shadow: 0 9px 18px rgba(8,127,131,.18); }
.button-primary:hover { background: var(--teal-dark); }
.button-secondary { background: var(--soft); color: var(--teal-dark); }
.button-danger { background: var(--danger); color: white; }
.button-wide { width: 100%; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; }
.form-footnote, .muted { color: var(--muted); font-size: 12px; }
.info-card { padding: 29px; align-self: start; }
.steps { list-style: none; padding: 0; margin: 22px 0 27px; display: grid; gap: 22px; }
.steps li { display: flex; gap: 13px; }
.steps li > span { display: grid; place-items: center; flex: 0 0 auto; width: 29px; height: 29px; border-radius: 50%; background: var(--mint); color: var(--teal-dark); font-weight: 800; font-size: 12px; }
.steps strong, .steps small { display: block; }
.steps strong { font-size: 14px; }
.steps small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.info-warning { background: var(--gold-soft); color: #6f5520; border-radius: 13px; padding: 14px; font-size: 12px; line-height: 1.45; }
.alert { border-radius: 11px; padding: 13px 15px; margin-bottom: 22px; font-size: 13px; font-weight: 650; }
.alert-error { color: #8f3636; background: #fff0f0; border: 1px solid #f1cccc; }
.alert-success { color: #176b61; background: #edfaf5; border: 1px solid #c6eadf; }
.confirmation-layout { display: grid; grid-template-columns: minmax(0, 1fr) 335px; gap: 26px; align-items: stretch; }
.confirmation-card { padding: 38px; }
.confirmation-card h1 { font-size: 42px; margin-bottom: 12px; }
.success-mark { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--mint); color: var(--teal-dark); font-size: 25px; font-weight: 800; margin-bottom: 22px; }
.code-box { background: var(--ink); color: white; border-radius: 16px; padding: 20px 22px; margin: 25px 0; }
.code-box span { display: block; color: #a8bec0; text-transform: uppercase; letter-spacing: .13em; font-size: 10px; font-weight: 800; }
.code-box strong { display: block; letter-spacing: .18em; font-size: 33px; margin-top: 5px; }
.details-list { margin: 0 0 22px; display: grid; gap: 13px; }
.details-list div { display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.details-list dt { color: var(--muted); font-size: 12px; }
.details-list dd { font-size: 13px; font-weight: 700; margin: 0; text-align: right; }
.success-note, .warning-note { font-size: 12px; border-radius: 10px; padding: 11px 13px; }
.success-note { color: #176b61; background: #edfaf5; }
.warning-note { color: #815129; background: #fff7ef; }
.text-danger { display: inline-block; color: var(--danger); font-size: 12px; font-weight: 750; margin-top: 15px; }
.qr-card { padding: 29px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.qr-card .eyebrow { align-self: flex-start; text-align: left; }
.qr-placeholder { min-height: 190px; width: 190px; display: grid; place-items: center; margin: 10px 0 20px; }
.qr-card .button { width: 100%; margin-top: 15px; }
.narrow-page { max-width: 590px; margin: 0 auto; }
.centered { text-align: center; }
.centered > p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
.empty-state { padding: 48px 30px; text-align: center; }
.empty-state .success-mark { margin-left: auto; margin-right: auto; }
.empty-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--soft); color: var(--teal); font-weight: 800; font-size: 24px; margin: 0 auto 18px; }
.reservation-summary { display: flex; align-items: center; gap: 11px; background: var(--soft); border-radius: 12px; padding: 13px 14px; margin-bottom: 22px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #25a479; }
.reservation-summary strong, .reservation-summary small { display: block; }
.reservation-summary small { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* Admin */
.admin-body { background: #fffaf0; }
.admin-main-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 27px; }
.admin-main-title h1 { font-size: 38px; margin-bottom: 8px; }
.admin-main-title p { color: var(--muted); margin-bottom: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.stat-card { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 19px; }
.stat-card .label { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 800; }
.stat-card .value { display: block; font-size: 30px; line-height: 1; font-weight: 800; margin-top: 10px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 20px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.panel-head { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.panel-head h2 { font-size: 18px; margin: 0; }
.panel-head a { font-size: 12px; color: var(--teal); font-weight: 750; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { text-align: left; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 9px; padding: 13px 18px; background: #fbfdfd; white-space: nowrap; }
td { padding: 14px 18px; border-top: 1px solid #edf2f2; white-space: nowrap; }
.progress { height: 7px; width: 100px; background: #e8eeee; border-radius: 20px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--teal); border-radius: inherit; }
.badge { display: inline-flex; align-items: center; border-radius: 99px; padding: 4px 8px; font-size: 10px; font-weight: 800; }
.badge-green { color: #176b61; background: #e6f7f1; }
.badge-orange { color: #815129; background: #fff0dc; }
.badge-red { color: #8f3636; background: #fff0f0; }
.login-page { max-width: 420px; margin: 45px auto 0; }
.login-page h1 { font-size: 37px; }
.login-card { padding: 28px; }
.login-hint { background: #fff7ef; color: #815129; padding: 12px; border-radius: 10px; font-size: 11px; margin-bottom: 18px; }
.filter-bar { padding: 17px 19px; display: flex; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.filter-bar input, .filter-bar select { width: auto; min-width: 170px; padding: 10px 12px; }
.filter-bar .button { min-height: 40px; }
.scanner-layout { display: grid; grid-template-columns: minmax(0, 1fr) 355px; gap: 22px; align-items: start; }
.scanner-card { padding: 23px; }
#reader { width: 100%; max-width: 540px; margin: 0 auto; overflow: hidden; border-radius: 14px; }
.scan-result { margin-top: 18px; border-radius: 13px; padding: 15px; background: var(--soft); min-height: 66px; }
.scan-result.success { background: #e6f7f1; color: #176b61; }
.scan-result.warning { background: #fff7ef; color: #815129; }
.scan-result.error { background: #fff0f0; color: #8f3636; }
.scan-result strong, .scan-result small { display: block; }
.scan-result small { margin-top: 3px; font-size: 12px; }
.manual-form { display: flex; gap: 8px; }
.manual-form input { min-width: 0; }
.manual-form .button { flex: 0 0 auto; }
.live-list { display: grid; gap: 10px; padding: 18px; }
.live-row { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid #edf2f2; gap: 10px; }
.live-row:last-child { padding-bottom: 0; border-bottom: 0; }
.live-row strong { font-size: 12px; }
.live-row small { display: block; color: var(--muted); font-size: 11px; }
.live-count { color: var(--teal); font-weight: 800; font-size: 13px; white-space: nowrap; }
.slot-edit input[type="date"], .slot-edit input[type="time"] { min-width: 125px; padding: 8px 9px; }
.slot-edit input[type="number"] { width: 84px; padding: 8px 9px; }
.inline-form { margin: 0; }
.switch { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); font-weight: 650; }
.switch input { width: 16px; height: 16px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.settings-section { overflow: hidden; }
.settings-form { padding: 22px; }
.settings-form + .settings-form { padding-top: 0; }
.settings-form textarea { width: 100%; resize: vertical; border: 1px solid #cddcdf; border-radius: 11px; background: #fbfdfd; color: var(--ink); padding: 13px 14px; font: inherit; font-size: 14px; outline: none; }
.settings-form textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8,127,131,.12); }
.settings-divider { border-top: 1px solid var(--line); padding-top: 17px; margin: 3px 0 17px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.settings-test-form { background: #fbfdfd; border-top: 1px solid var(--line); }
.required-banner { background: #fff7ef; border: 1px solid #f2d7b7; color: #815129; border-radius: 12px; padding: 14px 16px; margin-bottom: 22px; font-size: 13px; }

@media (max-width: 840px) {
    .hero, .section-grid, .confirmation-layout, .dashboard-grid, .scanner-layout, .settings-grid { grid-template-columns: 1fr; }
    .hero { gap: 30px; }
    .hero-card { max-width: 420px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .info-card { order: -1; }
    .top-nav { gap: 10px; }
}
@media (max-width: 560px) {
    .container { width: min(100% - 28px, 1120px); }
    .header-inner { height: auto; min-height: 70px; padding: 12px 0; align-items: flex-start; }
    .top-nav { font-size: 11px; }
    .header-link { font-size: 11px; }
    .main-content { padding-top: 30px; }
    .hero { padding-top: 10px; padding-bottom: 42px; }
    h1 { font-size: 39px; }
    .confirmation-card h1 { font-size: 34px; }
    .two-col { grid-template-columns: 1fr; gap: 0; }
    .form-card, .confirmation-card, .info-card { padding: 22px; }
    .stats-grid { gap: 10px; }
    .stat-card { padding: 14px; }
    .stat-card .value { font-size: 25px; }
    .admin-main-title { display: block; }
    .admin-main-title .button { margin-top: 15px; }
    .footer-inner { padding: 12px 0; flex-direction: column; align-items: flex-start; }
}
