:root {
    color-scheme: dark;
    --bg: #0b0611;
    --bg-soft: #140b1d;
    --card: rgba(28, 14, 38, 0.86);
    --line: rgba(255, 47, 160, 0.28);
    --pink: #ff2fa0;
    --pink-soft: #ff79c8;
    --text: #fff7fc;
    --muted: #b9a6c8;
    --shadow: 0 0 28px rgba(255, 47, 160, 0.22);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background:
        radial-gradient(circle at 15% 0%, rgba(255, 47, 160, 0.16), transparent 38%),
        radial-gradient(circle at 95% 20%, rgba(139, 47, 255, 0.14), transparent 42%),
        var(--bg);
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    line-height: 1.45;
}

.glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 110%, rgba(255, 47, 160, 0.18), transparent 55%);
}

.shell {
    position: relative;
    width: min(720px, 100%);
    margin: 0 auto;
    padding: 24px 18px 48px;
}

.hero {
    padding: 18px 4px 22px;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--pink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 7vw, 40px);
    line-height: 1.1;
}

h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

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

.card {
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.row:last-child {
    border-bottom: 0;
}

.row-title {
    font-weight: 600;
}

.row-meta {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.price {
    flex: 0 0 auto;
    color: var(--pink-soft);
    font-weight: 700;
    white-space: nowrap;
}

.note {
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.metric {
    display: inline-flex;
    flex-direction: column;
    min-width: 120px;
    margin: 4px 20px 12px 0;
}

.metric-value {
    color: var(--pink);
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 0 18px rgba(255, 47, 160, 0.45);
}

.metric-label {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.legal h1 {
    margin-bottom: 14px;
}

.back {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--pink-soft);
    text-decoration: none;
}

.plain-list {
    margin: 18px 0 0;
    padding-left: 20px;
    color: var(--muted);
}

.plain-list li {
    margin-bottom: 8px;
}

@media (max-width: 480px) {
    .shell {
        padding: 18px 14px 36px;
    }

    .card {
        border-radius: 18px;
        padding: 15px;
    }

    .metric {
        min-width: 96px;
    }
}

.screen-head {
    margin-bottom: 14px;
}

.screen-title {
    margin: 0 0 4px;
    font-size: 20px;
}

.subtitle {
    margin: 0 0 10px;
    font-size: 15px;
    color: var(--text);
}

.banner {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(28, 14, 38, 0.92);
    color: var(--text);
    font-size: 14px;
}

.banner-error {
    border-color: rgba(255, 95, 140, 0.7);
    background: rgba(64, 12, 30, 0.92);
}

.banner-ok {
    border-color: rgba(110, 255, 190, 0.5);
    background: rgba(10, 48, 34, 0.92);
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.button {
    width: 100%;
    padding: 13px 18px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: var(--pink);
    color: #1a0412;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 47, 160, 0.28);
}

.button:disabled {
    opacity: 0.55;
    cursor: default;
}

.button-ghost {
    background: transparent;
    color: var(--pink-soft);
    border-color: var(--line);
    box-shadow: none;
}

.button-danger {
    background: transparent;
    color: #ff8aa6;
    border-color: rgba(255, 95, 140, 0.55);
    box-shadow: none;
}

.info-block {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.info-title {
    margin-bottom: 6px;
    font-weight: 700;
}

.option-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.option.selected {
    border-color: var(--pink);
    background: rgba(255, 47, 160, 0.12);
    box-shadow: 0 0 22px rgba(255, 47, 160, 0.2);
}

.option-main {
    flex: 1;
}

.option-title {
    font-weight: 700;
}

.option-meta {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.option-side {
    flex: 0 0 auto;
    text-align: right;
}

.option-price {
    color: var(--pink-soft);
    font-weight: 700;
}

.option-note {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.subblock {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.summary {
    margin: 12px 0;
}

.summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px;
}

.summary-row:last-child {
    border-bottom: 0;
}

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

.summary-value {
    font-weight: 700;
    text-align: right;
}

.summary-line {
    margin: 12px 0 0;
    color: var(--pink-soft);
    font-weight: 700;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.chip {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--pink-soft);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.textarea,
.input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(5, 3, 8, 0.55);
    color: var(--text);
    font: inherit;
    resize: vertical;
}

.textarea {
    min-height: 92px;
}

.input:focus,
.textarea:focus,
.option:focus-visible,
.button:focus-visible,
.chip:focus-visible,
.checkbox input:focus-visible {
    outline: 2px solid var(--pink-soft);
    outline-offset: 2px;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0 4px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
}

.checkbox input {
    margin-top: 3px;
    accent-color: var(--pink);
}

.link-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--pink-soft);
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.preline {
    white-space: pre-line;
}

.qr {
    display: block;
    width: min(240px, 100%);
    height: auto;
    margin: 14px auto;
    border-radius: 20px;
    border: 1px solid var(--line);
}

.timer {
    margin: 12px 0;
    color: var(--pink);
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    text-shadow: 0 0 18px rgba(255, 47, 160, 0.4);
}

.payment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--pink-soft);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-confirmed,
.badge-completed {
    border-color: rgba(110, 255, 190, 0.5);
    color: #8fffd0;
}

.badge-expired,
.badge-cancelled_by_client,
.badge-cancelled_by_admin,
.badge-no_show,
.badge-payment_failed {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--muted);
}

.badge-payment_review,
.badge-pending_payment {
    border-color: rgba(255, 196, 90, 0.55);
    color: #ffd27a;
}

.booking-card {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.booking-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.booking-date {
    font-weight: 700;
}

.booking-service {
    margin-top: 10px;
    color: var(--pink-soft);
    font-weight: 700;
}

.booking-card .summary {
    margin-bottom: 0;
}

.booking-card .actions {
    margin-top: 12px;
}

.admin-shell {
    width: min(960px, 100%);
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tab {
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.tab.is-active {
    border-color: var(--pink);
    background: rgba(255, 47, 160, 0.14);
    color: var(--text);
    box-shadow: 0 0 18px rgba(255, 47, 160, 0.2);
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    margin: 12px 0;
}

.toolbar .field {
    margin: 0;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.button-compact {
    width: auto;
    padding: 9px 13px;
    font-size: 13px;
}

.input-compact {
    width: auto;
    min-width: 0;
    padding: 9px 11px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 12px 0;
}

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

.select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(5, 3, 8, 0.55);
    color: var(--text);
    font: inherit;
}

.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.metric-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 14px 0;
}

.metric-grid .metric {
    min-width: 112px;
    margin: 0;
}

.danger-text {
    color: #ff8aa6;
}

details summary {
    cursor: pointer;
    color: var(--pink-soft);
}

.chip input {
    margin-right: 6px;
    accent-color: var(--pink);
}

@media (max-width: 480px) {
    .tabs {
        gap: 6px;
    }

    .tab {
        padding: 8px 11px;
        font-size: 13px;
    }

    .toolbar {
        align-items: stretch;
    }

    .toolbar .button,
    .toolbar .input-compact,
    .toolbar .select {
        width: 100%;
    }
}

