:root {
    --c-bg: #070609;
    --c-surface: #121014;
    --c-surface-2: #1b181e;
    --c-line: rgba(255, 255, 255, 0.08);
    --c-pink: #ff2fa0;
    --c-pink-soft: #ff79c8;
    --c-text: #fff7fc;
    --c-muted: #a99caf;
    --c-amber: #f0c36a;
    --c-green: #82efc2;
    --c-red: #ff6b86;
    --c-radius: 24px;
}

.client-body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at 12% -8%, rgba(255, 47, 160, 0.22), transparent 34%),
        radial-gradient(circle at 92% 18%, rgba(120, 30, 90, 0.2), transparent 42%),
        var(--c-bg);
    color: var(--c-text);
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.45;
    -webkit-tap-highlight-color: transparent;
}

.client-body * {
    box-sizing: border-box;
}

.client-body .glow {
    display: none;
}

.client-app {
    width: min(560px, 100%);
    margin: 0 auto;
    padding: max(14px, env(safe-area-inset-top)) 16px calc(116px + env(safe-area-inset-bottom));
    position: relative;
}

.c-screen {
    animation: c-fade 180ms ease;
}

@keyframes c-fade {
    from { opacity: 0.35; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.c-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    margin: 2px 0 18px;
}

.c-topbar-title {
    flex: 1;
    text-align: center;
    color: var(--c-muted);
    font-size: 14px;
    font-weight: 600;
}

.c-icon-btn {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 0;
    border: 1px solid var(--c-line);
    border-radius: 50%;
    background: var(--c-surface);
    color: var(--c-text);
    font: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.c-icon-btn:active {
    background: var(--c-surface-2);
}

.c-topbar-spacer {
    width: 42px;
    flex: 0 0 42px;
}

.c-page-title {
    margin: 0 0 4px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.c-page-subtitle {
    margin: 0 0 18px;
    color: var(--c-muted);
    font-size: 14px;
}

.c-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 18px;
    border: 1px solid rgba(255, 47, 160, 0.22);
    border-radius: 30px;
    background:
        radial-gradient(circle at 70% 30%, rgba(255, 47, 160, 0.18), transparent 55%),
        #120a11;
    box-shadow: 0 0 42px rgba(255, 47, 160, 0.18);
}

.c-hero-image {
    display: block;
    width: 100%;
    height: 340px;
    object-fit: contain;
    object-position: center;
}

.c-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 36%;
    background: linear-gradient(transparent, rgba(7, 6, 9, 0.88));
    pointer-events: none;
}

.c-studio-name {
    margin: 0 0 4px;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1;
}

.c-auth-logo {
    display: block;
    width: 92px;
    height: 92px;
    margin: 8px 0 18px;
    border: 1px solid rgba(255, 47, 160, 0.3);
    border-radius: 26px;
    object-fit: cover;
    object-position: 62% 40%;
    box-shadow: 0 0 26px rgba(255, 47, 160, 0.2);
}

.c-studio-tagline {
    margin: 0 0 18px;
    color: var(--c-muted);
    font-size: 14px;
}

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

.c-btn {
    width: 100%;
    min-height: 54px;
    padding: 14px 18px;
    border: 1px solid transparent;
    border-radius: 18px;
    background: var(--c-pink);
    color: #1a0412;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
}

.c-btn:active {
    transform: translateY(1px);
}

.c-btn:disabled {
    opacity: 0.45;
    cursor: default;
    transform: none;
}

.c-btn-primary {
    background: linear-gradient(135deg, #ff45ad, #ff2fa0 55%, #d91a82);
    color: #1a0412;
    box-shadow: 0 0 26px rgba(255, 47, 160, 0.25);
}

.c-btn-secondary {
    background: var(--c-surface);
    border-color: var(--c-line);
    color: var(--c-text);
    box-shadow: none;
}

.c-btn-ghost {
    background: transparent;
    border-color: rgba(255, 47, 160, 0.34);
    color: var(--c-pink-soft);
    box-shadow: none;
}

.c-btn-danger {
    background: transparent;
    border-color: rgba(255, 107, 134, 0.42);
    color: var(--c-red);
    box-shadow: none;
}

.c-btn-small {
    width: auto;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
}

.c-card {
    margin: 0 0 14px;
    padding: 18px;
    border: 1px solid var(--c-line);
    border-radius: var(--c-radius);
    background: var(--c-surface);
}

.c-card-soft {
    background: var(--c-surface-2);
}

.c-section {
    margin: 26px 0 12px;
}

.c-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.c-section-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.c-section-note {
    color: var(--c-muted);
    font-size: 12px;
}

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

.c-small {
    font-size: 13px;
}

.c-label {
    display: block;
    margin: 0 0 6px;
    color: var(--c-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.c-nearest {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.c-nearest-time {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}

.c-nearest-day {
    margin-top: 4px;
    color: var(--c-muted);
    font-size: 13px;
}

.c-nearest-arrow {
    color: var(--c-pink-soft);
    font-size: 24px;
}

.c-works {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.c-works::-webkit-scrollbar {
    display: none;
}

.c-work {
    position: relative;
    flex: 0 0 178px;
    height: 226px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: var(--c-surface-2);
}

.c-work img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.c-work-placeholder {
    background:
        radial-gradient(circle at 28% 20%, rgba(255, 121, 200, 0.28), transparent 44%),
        linear-gradient(145deg, #2a0b20, #100a12 70%);
}

.c-work-2 {
    background:
        radial-gradient(circle at 72% 24%, rgba(255, 47, 160, 0.3), transparent 45%),
        linear-gradient(160deg, #1d0a19, #0d0910 72%);
}

.c-work-3 {
    background:
        radial-gradient(circle at 34% 78%, rgba(255, 121, 200, 0.26), transparent 48%),
        linear-gradient(120deg, #26091c, #0b080d 70%);
}

.c-work-2::before {
    right: auto;
    left: -38px;
    bottom: 24px;
}

.c-work-3::before {
    width: 120px;
    height: 120px;
    right: 18px;
    bottom: 62px;
    border-color: rgba(255, 121, 200, 0.42);
}

.c-work-placeholder::before {
    content: "";
    position: absolute;
    right: -34px;
    bottom: 34px;
    width: 150px;
    height: 150px;
    border: 2px solid rgba(255, 47, 160, 0.5);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 47, 160, 0.25);
}

.c-work-label {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 1;
}

.c-work-title {
    display: block;
    font-size: 15px;
    font-weight: 800;
}

.c-work-note {
    display: block;
    margin-top: 3px;
    color: var(--c-muted);
    font-size: 12px;
}

.c-service-group {
    margin-bottom: 12px;
}

.c-service-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.c-service-head-title {
    font-size: 16px;
    font-weight: 800;
}

.c-service-head-note {
    color: var(--c-muted);
    font-size: 12px;
}

.c-service-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--c-line);
}

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

.c-service-name {
    font-size: 14px;
    font-weight: 600;
}

.c-service-meta {
    margin-top: 2px;
    color: var(--c-muted);
    font-size: 12px;
}

.c-service-price {
    flex: 0 0 auto;
    color: var(--c-pink-soft);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.c-days {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 -4px 18px;
    padding: 4px;
    scrollbar-width: none;
}

.c-days::-webkit-scrollbar {
    display: none;
}

.c-day {
    flex: 0 0 50px;
    padding: 9px 4px 8px;
    border: 1px solid var(--c-line);
    border-radius: 16px;
    background: var(--c-surface);
    color: var(--c-muted);
    font: inherit;
    text-align: center;
    cursor: pointer;
}

.c-day-weekday {
    display: block;
    font-size: 10px;
    line-height: 1.2;
    text-transform: lowercase;
}

.c-day-number {
    display: block;
    margin-top: 3px;
    color: var(--c-text);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
}

.c-day.is-active {
    border-color: transparent;
    background: var(--c-pink);
    color: #1a0412;
}

.c-day.is-active .c-day-number {
    color: #1a0412;
}

.c-day:disabled {
    opacity: 0.35;
    cursor: default;
}

.c-day-header {
    margin: 0 0 12px;
}

.c-day-title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.c-day-subtitle {
    margin: 2px 0 0;
    color: var(--c-muted);
    font-size: 13px;
}

.c-slot-group {
    margin-bottom: 12px;
}

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

.c-slot-group-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.c-slot-group-count {
    color: var(--c-muted);
    font-size: 12px;
}

.c-times {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.c-time {
    flex: 1 1 28%;
    min-width: 92px;
    min-height: 54px;
    padding: 9px 8px;
    border: 1px solid var(--c-line);
    border-radius: 16px;
    background: var(--c-surface);
    color: var(--c-text);
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
}

.c-time small {
    display: block;
    margin-top: 2px;
    color: var(--c-muted);
    font-size: 10px;
    font-weight: 600;
}

.c-time.is-active {
    border-color: transparent;
    background: var(--c-pink);
    color: #1a0412;
}

.c-time.is-active small {
    color: rgba(26, 4, 18, 0.7);
}

.c-time.is-extra {
    border-color: rgba(255, 47, 160, 0.32);
}

.c-time.is-extra.is-active {
    border-color: transparent;
}

.c-sticky {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px -2px 0;
    padding: 12px;
    border: 1px solid var(--c-line);
    border-radius: 22px;
    background: rgba(12, 10, 13, 0.94);
    box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.35);
}

.c-sticky-info {
    flex: 1;
    min-width: 0;
}

.c-sticky-label {
    color: var(--c-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.c-sticky-value {
    margin-top: 2px;
    font-size: 15px;
    font-weight: 800;
}

.c-sticky .c-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 150px;
    min-height: 48px;
    padding: 11px 16px;
    font-size: 14px;
}

.c-summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--c-line);
    font-size: 14px;
}

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

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

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

.c-summary-total {
    color: var(--c-pink-soft);
}

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

.c-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 16px;
    border: 1px solid var(--c-line);
    border-radius: 18px;
    background: var(--c-surface);
    color: var(--c-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

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

.c-option-main {
    flex: 1;
    min-width: 0;
}

.c-option-title {
    font-size: 15px;
    font-weight: 800;
}

.c-option-meta {
    margin-top: 3px;
    color: var(--c-muted);
    font-size: 12px;
}

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

.c-option-price {
    color: var(--c-pink-soft);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.c-option-note {
    margin-top: 3px;
    color: var(--c-muted);
    font-size: 11px;
}

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

.c-chip {
    padding: 9px 13px;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    background: var(--c-surface-2);
    color: var(--c-text);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.c-chip.is-active {
    border-color: transparent;
    background: var(--c-pink);
    color: #1a0412;
    font-weight: 700;
}

.c-input,
.c-textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--c-line);
    border-radius: 15px;
    background: var(--c-surface-2);
    color: var(--c-text);
    font: inherit;
    font-size: 15px;
}

.c-textarea {
    min-height: 100px;
    resize: vertical;
}

.c-input:focus,
.c-textarea:focus {
    outline: 2px solid var(--c-pink-soft);
    outline-offset: 1px;
}

.c-field {
    display: block;
    margin-bottom: 12px;
}

.c-field-label {
    display: block;
    margin-bottom: 6px;
    color: var(--c-muted);
    font-size: 12px;
}

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

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

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

.c-ref-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin-top: 10px;
}

.c-ref-thumb,
.c-ref-add {
    position: relative;
    height: 104px;
    overflow: hidden;
    border: 1px solid var(--c-line);
    border-radius: 15px;
    background: var(--c-surface-2);
}

.c-ref-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.c-ref-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font: inherit;
    font-size: 16px;
    line-height: 26px;
    text-align: center;
    cursor: pointer;
}

.c-ref-add {
    display: flex;
    align-items: center;
    justify-content: center;
    border-style: dashed;
    color: var(--c-muted);
    font-size: 28px;
    cursor: pointer;
}

.c-ref-add:disabled {
    opacity: 0.4;
    cursor: default;
}

.c-ref-status {
    margin-top: 6px;
    color: var(--c-muted);
    font-size: 12px;
}

.c-status-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 16px;
    padding: 20px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(255, 47, 160, 0.95), rgba(140, 20, 90, 0.96));
    color: #fff;
    box-shadow: 0 0 40px rgba(255, 47, 160, 0.2);
}

.c-status-hero.is-review {
    background: linear-gradient(135deg, #3a2a12, #1e1408);
    border: 1px solid rgba(240, 195, 106, 0.35);
    color: var(--c-text);
    box-shadow: none;
}

.c-status-hero.is-neutral {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    color: var(--c-text);
    box-shadow: none;
}

.c-status-hero-title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 800;
}

.c-status-hero-time {
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.c-status-hero-date {
    margin-top: 4px;
    font-size: 14px;
    opacity: 0.82;
}

.c-status-hero-service {
    margin-top: 14px;
    font-size: 15px;
    font-weight: 700;
}

.c-status-hero .c-pill {
    position: absolute;
    top: 16px;
    right: 16px;
}

.c-pill {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    color: var(--c-muted);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.c-pill.is-pending,
.c-pill.is-review {
    border-color: rgba(240, 195, 106, 0.42);
    color: var(--c-amber);
}

.c-pill.is-confirmed,
.c-pill.is-completed {
    border-color: rgba(130, 239, 194, 0.4);
    color: var(--c-green);
}

.c-pill.is-cancelled,
.c-pill.is-expired,
.c-pill.is-failed {
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--c-muted);
}

.c-timer {
    margin: 14px 0 0;
    font-size: 26px;
    font-weight: 800;
    text-align: center;
}

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

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

.c-booking-card {
    padding: 16px;
    border: 1px solid var(--c-line);
    border-radius: 20px;
    background: var(--c-surface);
    margin-bottom: 12px;
    cursor: pointer;
}

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

.c-booking-date {
    font-size: 18px;
    font-weight: 800;
}

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

.c-booking-meta {
    margin-top: 4px;
    color: var(--c-muted);
    font-size: 12px;
}

.c-segmented {
    display: flex;
    gap: 6px;
    padding: 5px;
    border: 1px solid var(--c-line);
    border-radius: 16px;
    background: var(--c-surface);
    margin-bottom: 16px;
}

.c-segmented button {
    flex: 1;
    padding: 10px 8px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--c-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.c-segmented button.is-active {
    background: var(--c-surface-2);
    color: var(--c-text);
}

.c-toast {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    left: 50%;
    z-index: 120;
    width: min(520px, calc(100% - 32px));
    transform: translateX(-50%);
    padding: 13px 16px;
    border: 1px solid var(--c-line);
    border-radius: 16px;
    background: rgba(20, 17, 23, 0.98);
    color: var(--c-text);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    font-size: 13px;
}

.c-toast.is-ok {
    border-color: rgba(130, 239, 194, 0.4);
}

.c-toast.is-error {
    border-color: rgba(255, 107, 134, 0.5);
}

.c-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.68);
    animation: c-overlay 160ms ease;
}

@keyframes c-overlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.c-sheet {
    width: min(560px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    padding: 20px;
    border: 1px solid var(--c-line);
    border-radius: 26px;
    background: #121014;
    animation: c-sheet-up 220ms ease;
}

@keyframes c-sheet-up {
    from { transform: translateY(24px); }
    to { transform: translateY(0); }
}

.c-sheet-handle {
    width: 38px;
    height: 4px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.c-sheet-title {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 800;
}

.c-sheet-subtitle {
    margin: 0 0 16px;
    color: var(--c-muted);
    font-size: 13px;
}

.c-empty {
    padding: 22px;
    border: 1px dashed var(--c-line);
    border-radius: 20px;
    color: var(--c-muted);
    text-align: center;
}

.c-loading {
    padding: 48px 0;
    color: var(--c-muted);
    text-align: center;
}

.c-error-card {
    margin-top: 40px;
    text-align: center;
}

.c-divider {
    height: 1px;
    margin: 16px 0;
    background: var(--c-line);
}

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

.c-fine {
    color: var(--c-muted);
    font-size: 11px;
    line-height: 1.35;
}

@media (min-width: 640px) {
    .c-work {
        flex-basis: 190px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .c-screen,
    .c-sheet,
    .c-sheet-overlay {
        animation: none;
    }
}
