.rez-app {
    --rez-bg: #000;
    --rez-surface: #0d0d0d;
    --rez-text: #fff;
    --rez-muted: #8a8a8a;
    --rez-brand: #b4e673;
    --rez-brand-strong: #9ed25c;
    --rez-border: #262626;
    --rez-danger: #e74c3c;
    --rez-today: #5b9bd5;
    --rez-radius: 6px;
    --rez-radius-lg: 12px;

    font-family: "Open Sans", Arial, sans-serif;
    color: var(--rez-text);
    background: var(--rez-bg);
    padding: 24px;
    border-radius: var(--rez-radius-lg);
    box-sizing: border-box;
}
.rez-app *,
.rez-app *::before,
.rez-app *::after { box-sizing: border-box; }

.rez-toolbar { margin-bottom: 16px; }
.rez-search {
    width: 100%;
    padding: 12px 14px;
    background: var(--rez-surface);
    border: 1px solid var(--rez-border);
    border-radius: var(--rez-radius);
    color: var(--rez-text);
    font-size: 14px;
}
.rez-search:focus { outline: none; border-color: var(--rez-brand); }

.rez-layout { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 1200px) { .rez-layout { grid-template-columns: 2.4fr 1fr; } }

.rez-cal-head {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-bottom: 12px;
    min-height: 44px;
}
.rez-btn {
    background: transparent;
    border: 1px solid var(--rez-brand);
    color: var(--rez-text);
    padding: 8px 14px;
    border-radius: var(--rez-radius);
    font: inherit;
    cursor: pointer;
}
.rez-btn:hover { background: rgba(180, 230, 115, 0.08); }
.rez-btn-primary { background: var(--rez-brand); color: #000; border-color: var(--rez-brand); font-weight: 600; }
.rez-btn-primary:hover { background: var(--rez-brand-strong); border-color: var(--rez-brand-strong); }
.rez-cal-month { font-weight: 600; margin: 0 8px; }

.rez-grid-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: auto;
    grid-auto-rows: 130px;
    background: var(--rez-border);
    border: 1px solid var(--rez-border);
    border-radius: var(--rez-radius);
    overflow: hidden;
    gap: 1px;
}
.rez-day-head, .rez-day {
    background: var(--rez-bg);
    padding: 6px 8px;
    position: relative;
    overflow: hidden;
}
.rez-day-head { padding: 10px 8px; color: var(--rez-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.rez-day { cursor: default; }
.rez-day.has-events { cursor: pointer; }
.rez-day.has-events:hover { background: #0a0a0a; }
.rez-day.outside { color: var(--rez-muted); }
.rez-day.outside .rez-day-num { color: var(--rez-muted); }
.rez-day-num { position: absolute; top: 6px; right: 8px; font-size: 13px; }
.rez-day.today .rez-day-num { color: var(--rez-text); font-weight: 700; }
.rez-day.today::after {
    content: "";
    position: absolute;
    top: 10px; right: 22px;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--rez-today);
}
.rez-day.selected { outline: 2px solid var(--rez-brand); outline-offset: -2px; }
.rez-event-chip {
    background: var(--rez-surface);
    border-left: 3px solid var(--rez-brand);
    padding: 3px 6px;
    font-size: 11px;
    border-radius: 3px;
    cursor: pointer;
    line-height: 1.4;
    flex-shrink: 0;
    display: flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
}
.rez-event-chip:hover { background: #181818; }
.rez-event-chip .ec-time { font-weight: 700; flex-shrink: 0; }
.rez-event-chip .ec-title { color: var(--rez-text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rez-event-chip .ec-status { display: none; }
.rez-event-chip.is-soldout .ec-title { color: var(--rez-danger); }
.rez-event-chip.is-closed { cursor: not-allowed; opacity: 0.55; border-left-color: var(--rez-muted); }
.rez-event-chip.is-closed:hover { background: var(--rez-surface); }
.rez-event-chip.is-closed .ec-title { color: var(--rez-muted); text-decoration: line-through; }
.rez-event-chip.is-workshop { border-left-color: #c08fff; background: rgba(124, 58, 237, 0.10); }
.rez-event-chip.is-workshop .ec-time { color: #c08fff; }
.rez-side-card.is-workshop { border-left-color: #c08fff; }
.rez-side-card.is-workshop::before {
    content: 'Workshop';
    position: absolute;
    left: 12px;
    top: 10px;
    font-size: 10px;
    font-weight: 700;
    color: #c08fff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.rez-side-card.is-workshop .sc-date { padding-top: 14px; }
.rez-event-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--rez-brand); }
.rez-event-dots { display: none; }
.rez-day-pills {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}
.rez-day-pill {
    background: rgba(180, 230, 115, 0.12);
    color: var(--rez-brand);
    border: 1px solid rgba(180, 230, 115, 0.35);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}
.rez-day.has-events:hover .rez-day-pill {
    background: rgba(180, 230, 115, 0.22);
    border-color: rgba(180, 230, 115, 0.55);
}
.rez-day.selected .rez-day-pill,
.rez-day.selected.has-events:hover .rez-day-pill {
    background: var(--rez-brand);
    color: #000;
    border-color: var(--rez-brand);
}
.rez-day-pill.is-workshop {
    background: rgba(192, 143, 255, 0.15);
    color: #c08fff;
    border-color: rgba(192, 143, 255, 0.4);
    pointer-events: auto;
    cursor: pointer;
}
.rez-day.has-events:hover .rez-day-pill.is-workshop { background: rgba(192, 143, 255, 0.15); border-color: rgba(192, 143, 255, 0.4); }
.rez-day-pill.is-workshop:hover {
    background: rgba(192, 143, 255, 0.28) !important;
    border-color: rgba(192, 143, 255, 0.6) !important;
}
.rez-day.selected .rez-day-pill.is-workshop {
    background: #c08fff;
    color: #000;
    border-color: #c08fff;
}
.rez-event-dot.is-workshop { background: #c08fff; }

@media (max-width: 767px) {
    .rez-grid-days { grid-auto-rows: 56px; }
    .rez-day { padding: 6px 4px; }
    .rez-event-chip,
    .rez-more { display: none; }
    .rez-day-pills {
        top: auto;
        bottom: 6px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 4px;
    }
    .rez-day-pill {
        width: 8px;
        height: 8px;
        padding: 0;
        font-size: 0;
        line-height: 0;
        border-radius: 50%;
        background: var(--rez-brand);
        border: none;
        color: transparent;
    }
    .rez-day-pill.is-workshop { background: #c08fff; }
    .rez-day.has-events:hover .rez-day-pill,
    .rez-day.selected .rez-day-pill,
    .rez-day.selected.has-events:hover .rez-day-pill {
        background: var(--rez-brand);
        width: 10px;
        height: 10px;
    }
    .rez-day.has-events:hover .rez-day-pill.is-workshop,
    .rez-day.selected .rez-day-pill.is-workshop { background: #c08fff; }
    .rez-day.today::after { top: 8px; right: 14px; }
}

.rez-day-expand {
    background: var(--rez-surface);
    border: 1px solid var(--rez-border);
    border-radius: var(--rez-radius);
    padding: 16px;
    margin-top: 12px;
}
.rez-day-expand .deh {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px; font-weight: 600;
}
.rez-day-expand .dec {
    border: 1px solid var(--rez-border);
    border-left: 3px solid var(--rez-brand);
    border-radius: var(--rez-radius);
    padding: 10px 12px;
    margin-bottom: 8px;
    cursor: pointer;
}
.rez-day-expand .dec:hover { background: #141414; }
.rez-day-expand .dec-soldout { color: var(--rez-danger); font-size: 12px; margin-top: 4px; }
.rez-close { background: none; color: var(--rez-text); border: none; font-size: 20px; cursor: pointer; }

.rez-side { display: flex; flex-direction: column; min-height: 0; }
.rez-side-title {
    font-size: 20px;
    margin: 0 0 12px 0;
    padding: 0;
    line-height: 1;
    min-height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    scroll-margin-top: 100px;
}
.rez-side { scroll-margin-top: 100px; }
.rez-side-close {
    background: transparent;
    border: 1px solid var(--rez-border);
    color: var(--rez-text);
    width: 32px;
    height: 32px;
    border-radius: var(--rez-radius);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.rez-side-close:hover { border-color: var(--rez-brand); color: var(--rez-brand); }
.rez-side-list {
    overflow-y: auto;
    padding-right: 6px;
    /* dark scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--rez-border) transparent;
}
.rez-side-list::-webkit-scrollbar { width: 8px; }
.rez-side-list::-webkit-scrollbar-track { background: transparent; }
.rez-side-list::-webkit-scrollbar-thumb { background: var(--rez-border); border-radius: 4px; }
.rez-side-list::-webkit-scrollbar-thumb:hover { background: var(--rez-brand); }

@media (min-width: 1200px) {
    .rez-side {
        position: sticky;
        top: 20px;
        max-height: calc(100vh - 40px);
        overflow: hidden;
    }
    .rez-side-list {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
    }
}
@media (max-width: 1199px) {
    .rez-side-list { max-height: 600px; }
}
.rez-side-card {
    background: var(--rez-surface);
    border-radius: var(--rez-radius);
    border-left: 4px solid var(--rez-brand);
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    position: relative;
}
.rez-side-card:hover { background: #141414; }
.rez-side-card .sc-price { position: absolute; right: 12px; top: 10px; font-size: 13px; }
.rez-side-card .sc-date { font-size: 14px; }
.rez-side-card .sc-title { font-weight: 700; font-size: 16px; margin: 4px 0; }
.rez-side-card .sc-meta { color: var(--rez-muted); font-size: 13px; }
.rez-side-card .sc-foot { display: flex; justify-content: space-between; margin-top: 8px; }
.rez-side-card .sc-status { color: var(--rez-brand); font-size: 13px; font-weight: 600; }
.rez-side-card .sc-status.soldout { color: var(--rez-danger); }
.rez-side-card .sc-status.closed { color: var(--rez-muted); }
.rez-side-card.is-closed { cursor: not-allowed; opacity: 0.6; }
.rez-side-card.is-closed:hover { background: var(--rez-surface); }
.rez-app .sc-staff { display: flex; align-items: center; gap: 18px; margin-top: 8px; font-size: 13px; color: var(--rez-muted); flex-wrap: wrap; }
.rez-app .sc-staff img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rez-app .sc-staff .staff-item { display: inline-flex; align-items: center; gap: 8px; }

.rez-modal {
    --rez-bg: #000;
    --rez-surface: #0d0d0d;
    --rez-text: #fff;
    --rez-muted: #8a8a8a;
    --rez-brand: #b4e673;
    --rez-brand-strong: #9ed25c;
    --rez-border: #262626;
    --rez-danger: #e74c3c;
    --rez-radius: 6px;
    --rez-radius-lg: 12px;

    background: var(--rez-surface);
    color: var(--rez-text);
    border: 1px solid var(--rez-border);
    border-radius: var(--rez-radius-lg);
    padding: 0;
    max-width: 560px;
    width: 92%;
    font-family: "Open Sans", Arial, sans-serif;
}
.rez-modal::backdrop { background: rgba(0,0,0,0.7); }
.rez-modal-inner { padding: 24px; }
.rez-modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.rez-modal-title { font-size: 20px; font-weight: 700; margin: 0; }
.rez-modal label { display: block; margin: 12px 0 4px 0; font-size: 13px; color: var(--rez-muted); }
.rez-modal input[type="text"],
.rez-modal input[type="email"],
.rez-modal input[type="tel"],
.rez-modal input[type="number"],
.rez-modal select {
    width: 100%;
    padding: 10px 12px;
    background: var(--rez-bg);
    color: var(--rez-text);
    border: 1px solid var(--rez-border);
    border-radius: var(--rez-radius);
    font: inherit;
}
.rez-modal input:focus, .rez-modal select:focus { outline: none; border-color: var(--rez-brand); }
.rez-modal .rez-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rez-modal .rez-summary {
    background: rgba(180, 230, 115, 0.07);
    border: 1px dashed var(--rez-brand);
    border-radius: var(--rez-radius);
    padding: 12px;
    margin: 12px 0;
}
.rez-modal .rez-summary strong { color: var(--rez-brand); }
.rez-modal .rez-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.rez-modal .rez-actions-buttons { display: flex; gap: 8px; margin-left: auto; }
.rez-error { color: var(--rez-danger); margin-top: 8px; font-size: 13px; }
.rez-success { color: var(--rez-brand); margin-top: 8px; font-size: 14px; }
.rez-turnstile {
    transform: scale(0.8);
    transform-origin: left center;
    margin: 0 -60px 0 0;
    flex-shrink: 0;
}
.rez-consent {
    display: block;
    margin: 20px 0 8px 0;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--rez-muted);
    cursor: pointer;
    border: 1px solid var(--rez-border);
    border-radius: var(--rez-radius);
    background: rgba(255,255,255,0.02);
    line-height: 20px;
}
.rez-consent:hover { border-color: rgba(180, 230, 115, 0.4); }
.rez-app .rez-consent input[type="checkbox"] {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    accent-color: var(--rez-brand);
    cursor: pointer;
    vertical-align: middle;
}
.rez-consent span {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

.rez-payment {
    margin: 16px 0 8px 0;
    padding: 12px 14px;
    border: 1px solid var(--rez-border);
    border-radius: var(--rez-radius);
    background: rgba(255,255,255,0.02);
}
.rez-payment legend {
    padding: 0 6px;
    font-size: 12px;
    color: var(--rez-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.rez-payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    font-size: 14px;
    color: var(--rez-text, #fff);
    cursor: pointer;
}
.rez-payment-option + .rez-payment-option { border-top: 1px solid var(--rez-border); }
.rez-app .rez-payment-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--rez-brand);
    cursor: pointer;
    margin: 0;
}

section.rez-app.rez-workshops {
    width: 100% !important;
    margin: 32px 0 !important;
    padding: 0 !important;
    background: transparent;
    box-sizing: border-box !important;
}
.rez-workshops-empty { padding: 24px; color: var(--rez-muted); font-style: italic; text-align: center; }
.rez-workshops-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.rez-workshops-list > li { list-style: none !important; margin: 0 !important; }
.rez-workshop-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: var(--rez-bg);
    border: 1px solid var(--rez-border);
    border-radius: var(--rez-radius-lg);
    transition: border-color 0.15s;
}
.rez-workshop-row:hover { border-color: rgba(180, 230, 115, 0.5); }
.rez-workshop-row.is-past { opacity: 0.6; }
.rez-workshop-row-info { min-width: 0; }
.rez-workshop-row-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--rez-text);
    margin: 0;
    line-height: 1.3;
}
.rez-workshop-row-meta {
    font-size: 13px;
    color: var(--rez-muted);
    margin: 4px 0 0 0;
    padding: 0;
    display: block;
    column-count: 1;
    columns: auto;
    -webkit-column-count: 1;
    -moz-column-count: 1;
    white-space: normal;
}
.rez-workshop-row-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--rez-brand);
    white-space: nowrap;
}
.rez-workshop-row-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rez-workshop-status { font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: var(--rez-radius); }
.rez-workshop-status.soldout { color: var(--rez-danger); }
.rez-workshop-status.closed { color: var(--rez-muted); }

a.is-btn,
.rez-app a.is-btn,
.rez-app .is-wrap a.is-btn,
.rez-workshop-row-actions a.is-btn {
    color: var(--is-accent, #b4e673) !important;
    text-decoration: none !important;
    border-color: rgba(180, 230, 115, 0.4) !important;
    background: transparent !important;
}
a.is-btn:hover,
.rez-app a.is-btn:hover,
.rez-app .is-wrap a.is-btn:hover,
.rez-workshop-row-actions a.is-btn:hover {
    color: var(--is-accent-hover, var(--is-accent, #9ed25c)) !important;
    background: rgba(180, 230, 115, 0.12) !important;
    border-color: var(--is-accent, #b4e673) !important;
}
.rez-app .is-btn-cta { text-decoration: none !important; }

@media (max-width: 720px) {
    .rez-workshop-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 16px;
    }
    .rez-workshop-row-price { font-size: 18px; }
    .rez-workshop-row-actions { flex-wrap: wrap; }
    .rez-workshop-row-actions .is-btn, .rez-workshop-row-actions .is-btn-cta { flex: 1 1 auto; text-align: center; }
}

.rez-workshop-widget {
    margin: 40px 0 !important;
    padding: 28px 32px !important;
    background: var(--rez-surface);
    border-radius: var(--rez-radius-lg);
    border: 1px solid var(--rez-border);
    border-left: 4px solid var(--rez-brand);
    display: grid !important;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
    width: 100%;
    box-sizing: border-box;
}
.rez-workshop-widget-info { min-width: 0; }
.rez-workshop-widget-row { display: flex; gap: 8px; font-size: 14px; line-height: 1.6; }
.rez-workshop-widget-label { color: var(--rez-muted); font-weight: 600; min-width: 110px; }
.rez-workshop-widget-value { color: var(--rez-text); }
.rez-workshop-widget-cta { justify-self: end; }
.rez-workshop-empty { padding: 18px; color: var(--rez-muted); font-style: italic; text-align: center; }
@media (max-width: 600px) {
    .rez-workshop-widget { grid-template-columns: 1fr; }
    .rez-workshop-widget-cta { justify-self: stretch; }
    .rez-workshop-widget-cta .is-btn-cta { width: 100%; }
}

.rez-workshop-modal-meta {
    background: rgba(180, 230, 115, 0.07);
    border: 1px dashed var(--rez-brand);
    border-radius: var(--rez-radius);
    padding: 12px 14px;
    margin: 8px 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rez-workshop-modal-meta-row { display: flex; gap: 10px; font-size: 13px; }
.rez-workshop-modal-meta-label { color: var(--rez-muted); min-width: 110px; font-weight: 600; }
.rez-workshop-modal-meta-value { color: var(--rez-text); }
.rez-workshop-modal-form label { display: block; margin: 12px 0 4px 0; font-size: 13px; color: var(--rez-muted); }
.rez-workshop-modal-form input[type="text"],
.rez-workshop-modal-form input[type="email"],
.rez-workshop-modal-form input[type="tel"],
.rez-workshop-modal-form input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    background: var(--rez-bg);
    color: var(--rez-text);
    border: 1px solid var(--rez-border);
    border-radius: var(--rez-radius);
    font: inherit;
}
.rez-workshop-modal-form input:focus { outline: none; border-color: var(--rez-brand); }
.rez-workshop-modal-form .rez-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .rez-workshop-modal-form .rez-row { grid-template-columns: 1fr; } }
.rez-workshop-note { font-size: 13px; color: var(--rez-muted); margin: 12px 0 0 0; }

