* {
    box-sizing: border-box;
}

:root {
    --bg: #0f1115;
    --panel: #171a21;
    --panel-2: #1d222b;
    --text: #f1f5f9;
    --muted: #a9b4c0;
    --accent: #c8a96b;
    --accent-2: #e6c98d;
    --danger: #b94a48;
    --success: #317a43;
    --border: rgba(255,255,255,0.08);
    --shadow: 0 10px 30px rgba(0,0,0,0.28);
    --footer-font-size: 10px;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: linear-gradient(180deg, #0d0f13 0%, #151922 100%);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: var(--accent-2);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.page-shell,
.wrap {
    width: min(1180px, calc(100% - 24px));
    margin: 0 auto;
}

.page-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    padding: 20px 0 40px;
    align-items: start;
}

.wrap {
    padding: 20px 0 40px;
}

.small-wrap {
    width: min(720px, calc(100% - 24px));
    padding-top: 40px;
}

.wizard-shell {
    min-width: 0;
}

.wizard-panel {
    display: none;
}

.wizard-panel.is-active {
    display: block;
}

.hero {
    text-align: center;
    padding: 34px 20px 28px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.hero-compact {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    margin: 10px 0 8px;
    font-size: clamp(30px, 6vw, 46px);
    line-height: 1.05;
}

.hero p {
    margin: 0 auto 16px;
    max-width: 700px;
    color: var(--muted);
    font-size: 16px;
}

.logo-frame {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    background: transparent;
    border: 2px solid var(--accent);
    box-shadow: 0 0 12px rgba(200,169,107,0.25), var(--shadow);
}

.site-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-actions,
.button-row,
.topbar,
.step-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.topbar {
    justify-content: space-between;
}

.card {
    background: rgba(23,26,33,0.92);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.section {
    padding: 22px;
    margin-bottom: 18px;
}

.mini-card {
    margin-bottom: 18px;
}

.sticky-dock {
    position: sticky;
    top: 14px;
}

h1, h2, h3 {
    margin-top: 0;
}

h2 {
    margin-bottom: 14px;
    font-size: 24px;
}

p {
    line-height: 1.5;
}

.muted {
    color: var(--muted);
}

.step-chip {
    display: inline-block;
    margin-bottom: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(200,169,107,0.08);
    color: var(--accent-2);
    border: 1px solid rgba(200,169,107,0.35);
    font-size: 13px;
}

.step-top {
    margin-bottom: 18px;
}

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

label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    color: var(--muted);
}

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--panel-2);
    color: var(--text);
    border-radius: 12px;
    padding: 14px;
    outline: none;
    font-size: 15px;
}

input[type="date"] {
    width: 100%;
    box-sizing: border-box;
    height: 48px;
    padding: 14px;
    padding-right: 40px;
    border: 1px solid var(--border);
    background: var(--panel-2);
    color: var(--text);
    border-radius: 12px;
    appearance: none;
    -webkit-appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23c8a96b' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h2v2h6V2h2v2h3a2 2 0 012 2v14a2 2 0 01-2 2H4a2 2 0 01-2-2V6a2 2 0 012-2h3V2zm13 8H4v10h16V10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(200,169,107,0.75);
    box-shadow: 0 0 0 3px rgba(200,169,107,0.12);
}

input[type="checkbox"] {
    width: 22px;
    height: 22px;
    padding: 0;
    border-radius: 6px;
    box-shadow: none;
}

textarea {
    resize: vertical;
    min-height: 110px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    background: transparent;
    color: var(--text);
}

.btn:hover {
    text-decoration: none;
}

.btn.primary {
    background: linear-gradient(180deg, var(--accent) 0%, #b18d52 100%);
    color: #17120a;
    border-color: rgba(200,169,107,0.5);
}

.btn.ghost {
    background: transparent;
    color: var(--text);
}

.btn.danger {
    background: linear-gradient(180deg, #c45b58 0%, #a3423f 100%);
    color: #fff;
    border-color: rgba(185,74,72,0.6);
}

.btn-small {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 13px;
}

.btn.full {
    width: 100%;
    margin-top: 12px;
}

.info-box,
.alert,
.summary {
    border-radius: 14px;
    padding: 14px 16px;
    margin: 14px 0;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
}

.alert.success {
    border-color: rgba(49,122,67,0.5);
    background: rgba(49,122,67,0.18);
}

.alert.error {
    border-color: rgba(185,74,72,0.5);
    background: rgba(185,74,72,0.18);
}

.hours-compact {
    display: grid;
    gap: 8px;
}

.hours-compact p {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    line-height: 1.4;
}

.info-list,
.plain-list {
    margin: 0;
    padding-left: 18px;
    line-height: 1.6;
}

.info-list li::marker,
.plain-list li::marker {
    color: var(--accent);
}

.compact-list li {
    margin-bottom: 6px;
}

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

.barber-option {
    display: block;
    cursor: pointer;
}

.barber-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.barber-option-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    transition: 0.2s ease;
    min-height: 120px;
}

.barber-option-image {
    width: 108px;
    height: 108px;
    border-radius: 18px;
    object-fit: cover;
    object-position: center;
    border: 2px solid rgba(200,169,107,0.25);
    flex-shrink: 0;
    background: #0f1115;
    display: block;
}

.barber-option-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.barber-option-info strong {
    color: var(--text);
    font-size: 16px;
}

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

.barber-option input[type="radio"]:checked + .barber-option-card {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200,169,107,0.12);
    background: rgba(200,169,107,0.08);
}

.barber-option-card:hover {
    border-color: rgba(200,169,107,0.45);
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.time-slot {
    border: 1px solid var(--border);
    background: var(--panel-2);
    color: var(--text);
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    width: auto;
    min-width: 72px;
    text-align: center;
}

.time-slot.is-selected {
    border-color: var(--accent);
    background: rgba(200,169,107,0.12);
    box-shadow: 0 0 0 3px rgba(200,169,107,0.12);
}

.footer {
    text-align: center;
    color: var(--muted);
    padding-top: 8px;
}

.tech-orange {
    color: var(--accent);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

th, td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 14px;
    vertical-align: middle;
}

th {
    color: var(--accent-2);
    font-weight: bold;
}

.admin-body .wrap {
    padding-top: 30px;
}

@media (max-width: 960px) {
    .page-shell {
        grid-template-columns: 1fr;
        padding-bottom: 24px;
    }

    .sticky-dock {
        position: static;
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 18px;
    }

    .mini-card {
        margin-bottom: 0;
        padding: 16px;
    }

    .mini-card h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .hours-compact p {
        padding: 8px 10px;
        font-size: 13px;
    }

    .compact-list {
        font-size: 13px;
    }

.sticky-dock {
    border-top: 1px solid var(--border);
    padding-top: 8px;
}

    .barber-option-image {
        width: 92px;
        height: 92px;
        border-radius: 16px;
    }

    .barber-option-card {
        min-height: 104px;
    }
}

@media (max-width: 740px) {
    .form-grid,
    .barber-select-grid,
    .sticky-dock {
        grid-template-columns: 1fr;
    }

.time-grid {
    grid-template-columns: repeat(auto-fit, minmax(78px, max-content));
    justify-content: center;
}

    .section {
        padding: 18px;
    }

    .hero {
        padding: 28px 18px 24px;
    }

    .topbar {
        align-items: flex-start;
    }

    .hero-compact {
        min-height: calc(100vh - 220px);
    }

    .footer {
        margin-top: 18px;
        padding: 14px 10px 8px;
        text-align: center;
        font-size: var(--footer-font-size);
        color: var(--muted);
    }

    .footer p {
        margin: 4px 0;
        line-height: 1.4;
    }

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

    .tech-orange {
        color: #f59e0b;
    }
}
