:root {
    --bg: #0c0d0b;
    --bg-soft: #141612;
    --panel: #171914;
    --line: rgba(212, 175, 55, .18);
    --gold: #d4af37;
    --gold-2: #f0d78c;
    --cream: #f6f0e4;
    --muted: #b7b1a4;
    --ok: #7dce8a;
    --busy: #d36b5e;
    --warn: #c9a227;
    --pad: 20px;
    --app-width: 390px;
    --tabbar-h: 64px;
    --safe-t: env(safe-area-inset-top, 0px);
    --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html, .app-body { height: 100%; }
html { color-scheme: dark; }
body {
    font-family: "Outfit", sans-serif;
    background: var(--bg);
    color: var(--cream);
    min-height: 100dvh;
    accent-color: var(--gold);
}
.app-body {
    height: 100%;
    background: #070806;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; }

.site-wrap {
    width: 100%;
    height: 100dvh;
    margin: 0 auto;
    background: #070806;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.app-atmosphere {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.app-atmosphere:before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/nightclub.jpg") center / cover no-repeat;
    opacity: .34;
    transform: scale(1.06);
}
.app-atmosphere:after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 12%, rgba(186, 42, 118, .28), transparent 42%),
        radial-gradient(circle at 88% 18%, rgba(212, 175, 55, .22), transparent 36%),
        radial-gradient(circle at 70% 78%, rgba(88, 28, 160, .26), transparent 44%),
        linear-gradient(180deg, rgba(7, 8, 6, .42) 0%, rgba(7, 8, 6, .62) 48%, rgba(7, 8, 6, .82) 100%);
}
.app-content {
    position: relative;
    z-index: 1;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: transparent;
}

.nav {
    position: relative;
    flex-shrink: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: calc(10px + var(--safe-t)) var(--pad) 10px;
    background: rgba(12, 13, 11, .72);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
    letter-spacing: .04em;
    min-width: 0;
}
.brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.brand img { height: 32px; width: auto; }

.bottombar {
    position: relative;
    flex-shrink: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 6px 6px calc(8px + var(--safe-b));
    background: rgba(12, 13, 11, .78);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
}
.bottombar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 52px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .04em;
    border-radius: 14px;
}
.bottombar a.is-active { color: var(--gold-2); background: rgba(212,175,55,.08); }
.bottombar svg { width: 22px; height: 22px; display: block; }

.hero {
    position: relative;
    min-height: auto;
    display: grid;
    place-items: center;
    padding: 36px var(--pad) 40px;
    background: linear-gradient(180deg, rgba(16,18,14,.18) 0%, rgba(12,13,11,.08) 100%);
}
.hero:before {
    content: "";
    position: absolute;
    inset: 24px 18px auto auto;
    width: 140px;
    height: 140px;
    border: 1px solid var(--line);
    border-radius: 40% 60% 55% 45%;
    transform: rotate(18deg);
    pointer-events: none;
}
.hero-copy { position: relative; max-width: 760px; text-align: center; }
.kicker {
    color: var(--gold);
    letter-spacing: .38em;
    text-transform: uppercase;
    font-size: 11px;
    margin-bottom: 14px;
}
.hero h1, .page-head h1, h1, h2 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    margin: 0;
}
.hero h1 { font-size: clamp(36px, 11vw, 48px); line-height: .96; }
.lede { color: var(--muted); font-size: 15px; max-width: 560px; margin: 16px auto 24px; line-height: 1.55; }
.actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero .actions { flex-direction: column; }
.hero .actions .btn { width: 100%; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 13px 22px;
    font: inherit;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a160b; }
.btn-ghost { background: transparent; color: var(--cream); border: 1px solid var(--line); }

.section { padding: 28px var(--pad); }
.section-alt { background: rgba(20, 22, 18, .28); }
.section-head { max-width: 640px; margin-bottom: 22px; }
.section-head h2 { font-size: 30px; }
.section-head p { color: var(--muted); line-height: 1.55; font-size: 14px; }

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 28px;
}
.stat {
    border: 1px solid var(--line);
    padding: 12px 8px;
    border-radius: 16px;
    background: rgba(255,255,255,.02);
}
.stat b { display: block; font-size: 22px; color: var(--gold); font-family: "Cormorant Garamond", serif; }
.stat span { font-size: 11px; color: var(--muted); }

.grid-3, .menu-grid, .event-grid, .table-grid, .category-grid {
    display: grid;
    gap: 14px;
}
.grid-3, .event-grid, .category-grid, .menu-grid, .table-grid { grid-template-columns: 1fr; }

.card, .menu-card, .event-card, .table-card, .category-card {
    background: rgba(23, 25, 20, .78);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
}
.menu-card img, .event-card img, .category-card img { width: 100%; height: 180px; object-fit: cover; }
.category-card {
    display: block;
    transition: transform .2s ease, border-color .2s ease;
}
.category-card:hover { transform: translateY(-2px); border-color: rgba(212,175,55,.45); }
.category-hero {
    margin: 0 var(--pad) 24px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
}
.category-hero img { width: 100%; height: 180px; object-fit: cover; display: block; }
.card-body { padding: 16px; }
.card-body h3 { font-size: 22px; }
.card-body p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.price { color: var(--gold); font-weight: 600; }
.chip {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    border: 1px solid var(--line);
    color: var(--muted);
}
.chip-ok { color: var(--ok); border-color: rgba(125,206,138,.4); }
.chip-busy { color: var(--busy); border-color: rgba(211,107,94,.45); }
.chip-warn { color: var(--warn); border-color: rgba(201,162,39,.4); }

.page-head { padding: 22px var(--pad) 8px; }
.page-head h1 { font-size: 32px; line-height: 1.05; }
.page-head p { color: var(--muted); max-width: 560px; font-size: 14px; }

.menu-cat { margin-bottom: 32px; }
.product-details { margin-top: 14px; }
.details-toggle {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--gold);
    font: inherit;
    font-size: 13px;
    letter-spacing: .04em;
    cursor: pointer;
}
.details-toggle:hover { color: var(--gold-2); }
.option-list {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}
.option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,.02);
}
.option-name { color: var(--cream); }
.option-price { color: var(--gold); font-size: 13px; white-space: nowrap; }
.allergen-block {
    margin: 14px 0 16px;
}
.allergen-title {
    margin: 0 0 8px;
    color: var(--gold);
    font-size: 13px;
    letter-spacing: .04em;
}
.allergen-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}
.allergen-chip {
    font-size: 11px;
    letter-spacing: .03em;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--gold-2);
    background: rgba(212,175,55,.08);
}

.table-badge {
    margin: 0 var(--pad) 16px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--gold);
    color: var(--gold-2);
    background: rgba(212,175,55,.08);
    font-size: 13px;
}

.board-panel {
    margin-bottom: 20px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(23,25,20,.78), rgba(16,18,14,.7));
    box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.board-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
    width: 100%;
    min-height: 48px;
    background: #0e100c;
    border: 1px solid var(--line);
    color: var(--cream);
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
    font-size: 16px;
    line-height: 1.3;
    color-scheme: dark;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: rgba(212,175,55,.7);
    box-shadow: 0 0 0 4px rgba(212,175,55,.14);
}
.field select {
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--gold) 50%),
        linear-gradient(135deg, var(--gold) 50%, transparent 50%);
    background-position:
        calc(100% - 22px) calc(50% - 3px),
        calc(100% - 16px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 42px;
    cursor: pointer;
}
.field select option,
.field select optgroup {
    background-color: #171914;
    color: #f6f0e4;
}
.field input[type="date"],
.field input.date-input {
    display: block;
    cursor: pointer;
}
.field input[type="date"]::-webkit-datetime-edit,
.field input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.field input[type="date"]::-webkit-datetime-edit-text,
.field input[type="date"]::-webkit-datetime-edit-month-field,
.field input[type="date"]::-webkit-datetime-edit-day-field,
.field input[type="date"]::-webkit-datetime-edit-year-field {
    color: var(--cream);
    padding: 0;
}
.field input[type="date"]::-webkit-datetime-edit-text {
    color: var(--gold-2);
    padding: 0 6px;
}
.field input[type="date"]::-webkit-inner-spin-button,
.field input[type="date"]::-webkit-clear-button {
    display: none;
}
.field input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 1;
    width: 22px;
    height: 22px;
    margin: 0 0 0 auto;
    padding: 4px;
    background: transparent;
    filter: invert(78%) sepia(42%) saturate(620%) hue-rotate(6deg);
}
.legend { display: flex; gap: 12px; margin: 8px 0 18px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.dot-ok { background: var(--ok); }
.dot-busy { background: var(--busy); }
.dot-warn { background: var(--warn); }

.area-title { margin: 22px 0 12px; font-family: "Cormorant Garamond", serif; font-size: 24px; }
.table-card { padding: 16px; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; position: relative; }
.table-card:hover { transform: translateY(-2px); }
.table-card.is-available { border-color: rgba(125,206,138,.45); box-shadow: 0 12px 30px rgba(125,206,138,.08); }
.table-card.is-busy { border-color: rgba(211,107,94,.35); opacity: .78; cursor: not-allowed; }
.table-card.is-selected { outline: 2px solid var(--gold); box-shadow: 0 0 0 6px rgba(212,175,55,.12); }
.slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.slot {
    font-size: 11px;
    padding: 4px 7px;
    border-radius: 8px;
    background: rgba(211,107,94,.15);
    color: #f0c2bb;
}
.slot-free { background: transparent; color: var(--muted); }
.timeline {
    position: relative;
    height: 10px;
    border-radius: 99px;
    background: rgba(255,255,255,.06);
    margin-top: 14px;
    overflow: hidden;
}
.timeline span {
    position: absolute;
    top: 0;
    bottom: 0;
    background: var(--busy);
    opacity: .9;
    z-index: 2;
}
.timeline .window {
    position: absolute;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(240,215,140,.35), var(--gold));
    opacity: .7;
    z-index: 1;
}
.hours-mini {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .06em;
}
.board-summary {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(212,175,55,.28);
    background: rgba(212,175,55,.08);
    color: var(--gold-2);
    letter-spacing: .02em;
    font-size: 13px;
}

.reserve-form {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}
.form-card {
    padding: 24px 20px 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.form-card h2 { margin: 0; }
.form-card .field {
    gap: 12px;
    margin: 0;
}
.form-card .btn { margin-top: 4px; width: 100%; }
.selected-table { color: var(--gold-2); min-height: 24px; margin: 0; }

.wp-fab {
    position: absolute;
    right: 16px;
    bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px);
    z-index: 50;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #25d366;
    box-shadow: 0 10px 30px rgba(37,211,102,.4);
}
.wp-fab svg {
    width: 28px;
    height: 28px;
    display: block;
}
.wp-fab:hover { transform: scale(1.06); }

.footer {
    padding: 28px var(--pad) 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
    background: transparent;
}

.alert {
    margin: 12px var(--pad) 0;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    font-size: 14px;
    background: rgba(12, 13, 11, .62);
    backdrop-filter: blur(10px);
}
.alert-success { border-color: rgba(125,206,138,.4); }
.alert-error, .alert-danger { border-color: rgba(211,107,94,.5); }
.form-errors { color: var(--busy); margin: 8px var(--pad) 0; padding: 0 0 0 18px; }

.maintain {
    min-height: 52vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 40px var(--pad);
}
.app-body.is-maintenance .app-content {
    padding-bottom: 24px;
}

@media (min-width: 480px) {
    .app-body {
        display: grid;
        place-items: center;
        padding: 16px;
        background:
            linear-gradient(180deg, rgba(7,8,6,.72), rgba(7,8,6,.88)),
            url("../img/nightclub.jpg") center / cover no-repeat;
    }
    .site-wrap {
        width: var(--app-width);
        height: min(844px, calc(100dvh - 32px));
        border-radius: 32px;
        border: 1px solid rgba(212,175,55,.16);
        box-shadow: 0 30px 80px rgba(0,0,0,.55);
    }
}

@media (max-width: 560px) {
    .board-controls { grid-template-columns: 1fr; }
}
