:root {
    --bg: #f7f7f8;
    --panel: #ffffff;
    --panel-soft: #fbfbfc;
    --line: #ececf1;
    --text: #202123;
    --muted: #6b6c70;
    --accent: #10a37f;
    --accent-deep: #0e8f70;
    --accent-soft: rgba(16, 163, 127, 0.08);
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

.mobile-shell {
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 14px 40px;
}

.bg-orb {
    position: fixed;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.08;
    pointer-events: none;
}

.bg-orb-a {
    left: -100px;
    top: -60px;
    background: #10a37f;
}

.bg-orb-b {
    right: -100px;
    top: 220px;
    background: #d9d9e3;
}

.hero-panel,
.form-panel,
.status-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 22px;
    border-radius: var(--radius-xl);
}

.hero-top,
.section-title.compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand-pill,
.section-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 0.08em;
}

.admin-entry,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
}

.hero-panel h1 {
    margin: 16px 0 10px;
    font-size: 34px;
    line-height: 1.12;
}

.hero-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
    font-size: 14px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.metric-card {
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--panel-soft);
}

.metric-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.metric-card strong {
    display: block;
    margin-top: 8px;
    font-size: 20px;
}

.content-stack {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.form-panel,
.status-panel {
    padding: 20px;
    border-radius: var(--radius-lg);
}

.section-title h2 {
    margin: 10px 0 0;
    font-size: 24px;
}

.booking-form {
    margin-top: 18px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.field.full {
    grid-column: 1 / -1;
}

.field span {
    color: var(--muted);
    font-size: 13px;
}

.picker-shell {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafb 100%);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.picker-shell:focus-within {
    border-color: rgba(16, 163, 127, 0.45);
    box-shadow: 0 0 0 4px rgba(16, 163, 127, 0.1);
}

.picker-shell .picker-trigger {
    inset: auto 0 0 auto;
    width: 56px;
    height: 100%;
    z-index: 2;
}

.picker-icon {
    position: absolute;
    left: 14px;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.calendar-icon::before,
.slot-icon::before,
.picker-arrow::before,
.picker-arrow::after {
    content: "";
    position: absolute;
}

.calendar-icon::before {
    left: 1px;
    top: 3px;
    width: 14px;
    height: 11px;
    border: 1.8px solid var(--accent);
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
}

.calendar-icon::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 1px;
    width: 10px;
    height: 4px;
    border-top: 1.8px solid var(--accent);
    border-left: 1.8px solid transparent;
    border-right: 1.8px solid transparent;
}

.slot-icon::before {
    left: 2px;
    top: 2px;
    width: 10px;
    height: 10px;
    border: 2px solid var(--accent);
    border-radius: 50%;
}

.picker-arrow {
    position: absolute;
    right: 14px;
    width: 12px;
    height: 12px;
    pointer-events: none;
}

.picker-arrow::before,
.picker-arrow::after {
    top: 5px;
    width: 7px;
    height: 2px;
    background: #8b8d97;
}

.picker-arrow::before {
    left: 0;
    transform: rotate(45deg);
}

.picker-arrow::after {
    right: 0;
    transform: rotate(-45deg);
}

.picker-shell input,
.picker-shell select {
    width: 100%;
    min-height: 52px;
    padding: 0 40px 0 15px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 15px;
    outline: none;
    appearance: none;
    cursor: pointer;
}

.picker-shell select {
    font-weight: 500;
}

.slot-picker-shell {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafb 100%);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.slot-picker-wrapper {
    position: relative;
}

.slot-picker-shell:focus-within,
.slot-picker-shell.active {
    border-color: rgba(16, 163, 127, 0.45);
    box-shadow: 0 0 0 4px rgba(16, 163, 127, 0.1);
}

.slot-picker-shell .picker-trigger {
    inset: auto 0 0 auto;
    width: 56px;
    height: 100%;
    z-index: 2;
}

.slot-picker-shell input[type="text"] {
    width: 100%;
    min-height: 52px;
    padding: 0 40px 0 15px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
}

.slot-picker-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    max-height: 320px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.slot-picker-panel.show {
    display: block;
}

.slot-option {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid var(--line);
}

.slot-option:last-child {
    border-bottom: none;
}

.slot-option:hover {
    background: var(--accent-soft);
}

.slot-option.selected {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-soft);
    color: var(--text);
    padding: 14px 15px;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    appearance: none;
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    border-color: rgba(16, 163, 127, 0.45);
    box-shadow: 0 0 0 4px rgba(16, 163, 127, 0.1);
}

.selected-slot {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--accent-soft);
    color: #1f5f50;
    line-height: 1.7;
    font-size: 14px;
}

.submit-btn {
    width: 100%;
    min-height: 54px;
    margin-top: 16px;
    border: none;
    border-radius: 16px;
    background: var(--accent);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(16, 163, 127, 0.18);
}

.submit-btn:hover {
    background: var(--accent-deep);
}

.status-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.status-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.status-tab {
    min-height: 42px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.status-tab.active {
    border-color: rgba(16, 163, 127, 0.24);
    background: var(--accent-soft);
    color: var(--accent);
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 14px 15px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    color: var(--text);
    text-align: left;
}

.status-item.free {
    background: #fcfcfd;
}

.status-item.booked {
    background: #f7fbf9;
}

.status-main strong {
    display: block;
    font-size: 16px;
}

.status-main span,
.status-side small {
    color: var(--muted);
    font-size: 13px;
}

.status-side {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 6px;
}

.status-side em {
    font-style: normal;
    font-size: 13px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-badge.free {
    color: #178f63;
    background: rgba(22, 163, 74, 0.1);
}

.status-badge.free::before {
    background: #22c55e;
}

.status-badge.booked {
    color: var(--accent);
    background: rgba(16, 163, 127, 0.1);
}

.status-badge.booked::before {
    background: var(--accent);
}

@media (max-width: 640px) {
    .mobile-shell {
        padding: 14px 12px 32px;
    }

    .hero-panel h1 {
        font-size: 30px;
    }

    .field-grid,
    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .status-item {
        align-items: start;
        flex-direction: column;
    }

    .status-side {
        align-items: start;
    }
}

.site-footer {
    text-align: center;
    padding: 24px 0 16px;
    font-size: 13px;
    color: var(--muted);
}

.site-footer a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: var(--accent);
}
