:root {
    --brand-red: #d90429;
    --brand-blue: #132968;
    --surface: #ffffff;
    --surface-alt: #f6f7fb;
    --text-primary: #1f2933;
    --text-secondary: #52606d;
    --border-radius: 12px;
    --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.07);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Family', 'Inter', sans-serif;
    margin: 0;
    background-color: var(--surface-alt);
    color: var(--text-primary);
}

body.modal-open {
    overflow: hidden;
}

.public-shell {
    background-color: #ffffff;
}

.top-accent {
    height: 6px;
    background: linear-gradient(90deg, var(--brand-red) 0%, #f6bd60 100%);
}

.app-header, .public-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 48px;
    background-color: var(--surface);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
}

.public-header {
    position: sticky;
    top: 0;
    z-index: 20;
}

.public-locale {
    display: flex;
    align-items: center;
    gap: 12px;
}

.public-locale select {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background-color: var(--surface);
    font-size: 0.95rem;
    color: var(--text-primary);
}

.public-locale__status {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    display: block;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.brand-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.primary-nav {
    display: flex;
    gap: 16px;
    margin-right: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
    background-color: rgba(19, 41, 104, 0.08);
    color: var(--brand-blue);
}

.nav-link.is-active {
    background-color: rgba(217, 4, 41, 0.12);
    color: var(--brand-red);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-chip {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
}

.user-chip .user-name {
    font-weight: 600;
    color: var(--brand-blue);
}

.user-chip .user-email {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.secondary-button, .primary-button, .ghost-button {
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border-radius: 999px;
    padding: 12px 22px;
    min-height: 44px;
    border: 1px solid transparent;
    text-decoration: none;
    appearance: none;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.secondary-button:focus-visible, .primary-button:focus-visible, .ghost-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(19, 41, 104, 0.18);
}

.secondary-button:disabled, .primary-button:disabled, .ghost-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.primary-button {
    background: linear-gradient(135deg, var(--brand-red) 0%, #f95d72 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.primary-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(217, 4, 41, 0.25);
}

.primary-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 10px 24px rgba(217, 4, 41, 0.2);
}

.secondary-button {
    background: rgba(19, 41, 104, 0.08);
    color: var(--brand-blue);
    border-color: rgba(19, 41, 104, 0.15);
}

.secondary-button:hover:not(:disabled) {
    background: rgba(19, 41, 104, 0.14);
    border-color: rgba(19, 41, 104, 0.25);
    transform: translateY(-1px);
}

.secondary-button:active:not(:disabled) {
    transform: translateY(0);
    background: rgba(19, 41, 104, 0.18);
}

.ghost-button {
    background: rgba(19, 41, 104, 0.05);
    color: var(--brand-blue);
    border-color: rgba(19, 41, 104, 0.12);
}

.ghost-button:hover:not(:disabled) {
    background: rgba(19, 41, 104, 0.1);
    border-color: rgba(19, 41, 104, 0.2);
    transform: translateY(-1px);
}

.ghost-button:active:not(:disabled) {
    transform: translateY(0);
    background: rgba(19, 41, 104, 0.14);
}

.app-main {
    padding: 40px 48px 64px;
}

.page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 32px;
}

.page-heading h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.offer-hero {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    height: 420px;
    margin-bottom: 32px;
    background: #101828;
}

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

.offer-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 24, 40, 0.05) 0%, rgba(16, 24, 40, 0.75) 100%);
    display: flex;
    align-items: flex-end;
    padding: 32px;
    color: #fff;
}

.offer-hero__content {
    max-width: 640px;
    display: grid;
    gap: 12px;
}

.offer-hero__meta {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
}

.offer-hero__teaser {
    margin: 0;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.92);
}

.offer-hero__tags .tag-pill {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.offer-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin: 24px 0 32px;
}

.offer-gallery__item {
    margin: 0;
}

.offer-gallery__item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.offer-gallery__item figcaption {
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

#offer-map {
    width: 100%;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 12px;
}

.card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.card h2 {
    margin-top: 0;
}

.table-card {
    overflow: hidden;
}

.table-card table {
    width: 100%;
    border-collapse: collapse;
}

.table-card th, .table-card td {
    padding: 16px 18px;
    text-align: left;
}

.table-card thead {
    background: rgba(19, 41, 104, 0.05);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-card tbody tr + tr td {
    border-top: 1px solid rgba(82, 96, 109, 0.12);
}

.table-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.table-actions > * {
    flex: none;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-published {
    background: rgba(19, 184, 81, 0.12);
    color: #137333;
}

.status-draft {
    background: rgba(217, 4, 41, 0.12);
    color: var(--brand-red);
}

.status-expired {
    background: rgba(217, 4, 41, 0.12);
    color: var(--brand-red);
}

.badge
{
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(19, 41, 104, 0.08);
    color: var(--brand-blue);
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(19, 184, 81, 0.12);
    color: #137333;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 32px;
}

.form-section {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.form-section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.form-section__header > div {
    flex: 1 1 260px;
}

.form-section__header p {
    margin-bottom: 0;
}

[data-channel-options].is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.form-section h2 {
    margin-top: 0;
    font-size: 1.25rem;
}

.subscription-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.subscription-info p {
    margin: 0;
    flex: 1;
}

@media (max-width: 640px) {
    .subscription-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

.subsection-heading {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.channel-quota-table {
    margin-top: 12px;
}

.channel-quota-table table {
    font-size: 0.9rem;
}

.channel-quota-table td {
    padding: 12px 16px;
}

.channel-quota-table th {
    padding: 10px 16px;
    text-align: left;
}

.form-grid {
    display: grid;
    gap: 20px;
}

.form-grid.two-columns {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-grid.three-columns {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: 100%;
}

@media (min-width: 1200px) {
    .form-grid.three-columns {
        grid-template-columns: repeat(3, 1fr);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    border: 1px solid rgba(82, 96, 109, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.timeline-entry {
    padding-left: 18px;
    border-left: 2px solid rgba(82, 96, 109, 0.15);
}

.timeline-entry strong {
    display: block;
}

.app-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    padding: 32px 48px;
    background: #111827;
    color: #fff;
    font-size: 0.95rem;
}

.footer-badge {
    align-self: start;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--brand-orange);
    text-decoration: underline;
}

.public-main {
    padding: 48px 32px 64px;
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
}

.hero-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.hero-card img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.hero-content {
    padding: 32px;
    display: grid;
    gap: 18px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.metrics-grid {
    margin-top: 32px;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.metric-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.signup-form {
    background: #fff;
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    max-width: 640px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.signup-form h1 {
    margin: 0 0 8px 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.signup-form > div:first-child p {
    margin: 0 0 24px 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.signup-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 8px;
}

.turnstile-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.signup-submit {
    width: 100%;
    max-width: 400px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
}

.signup-terms {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
    max-width: 500px;
}

.signup-confirmation p {
    margin: 0;
    color: var(--text-secondary);
}

.signup-confirmation p + p {
    margin-top: 8px;
}

.signup-confirmation .confirmation-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
}

.tag-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.language-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.language-picker select {
    flex: 1;
}

.list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.responsive-table {
    width: 100%;
    border-collapse: collapse;
}

.responsive-table td, .responsive-table th {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(82, 96, 109, 0.12);
}

.responsive-table th {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.badge-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.details-stack {
    display: grid;
    gap: 24px;
}

section.offer-section {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

section.offer-section h2 {
    margin-top: 0;
    font-size: 1.5rem;
}

section.offer-section p {
    white-space: pre-line;
}

table.offer-pricing {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

table.offer-pricing td, table.offer-pricing th {
    padding: 12px;
    border-bottom: 1px solid rgba(82, 96, 109, 0.1);
}

.table-scroll {
    margin-top: 12px;
    overflow-x: auto;
}

table.offer-pricing th.actions-column,
table.offer-pricing td.table-actions {
    text-align: right;
    width: 140px;
}

table.offer-pricing tr:last-child td {
    border-bottom: none;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(19, 41, 104, 0.08);
    color: var(--brand-blue);
}

span.tag-pill,
li.tag-pill {
    font-size: 0.85rem;
}

.tag-pill > span {
    font-size: 0.85rem;
}

.tag-pill small {
    font-size: 0.75rem;
}

.tag-pill-remove {
    border: none;
    background: none;
    color: inherit;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    padding: 0;
}

.tag-pill-remove:hover {
    text-decoration: underline;
}

.tag-pill-remove:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
}

.notice {
    background: rgba(217, 4, 41, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--brand-red);
    font-weight: 500;
}

.flash-banner {
    border-radius: 12px;
    padding: 14px 16px;
    font-weight: 500;
}

.flash-banner a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
    margin-left: 12px;
}

.flash-banner a:hover {
    text-decoration: none;
}

.flash-banner.info {
    background: rgba(19, 41, 104, 0.12);
    color: var(--brand-blue);
}

.flash-banner.success {
    background: rgba(19, 184, 81, 0.12);
    color: #137333;
}

.flash-banner.error {
    background: rgba(217, 4, 41, 0.12);
    color: var(--brand-red);
}

.impersonation-banner {
    background: linear-gradient(135deg, #ff9800 0%, #ff6f00 100%);
    color: #ffffff;
    padding: 16px 48px;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
    border-bottom: 3px solid #e65100;
}

.impersonation-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 1200px;
    margin: 0 auto;
}

.impersonation-content strong:first-child {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.impersonation-content span {
    font-size: 0.95rem;
    opacity: 0.95;
}

.impersonation-hint {
    font-size: 0.85rem !important;
    opacity: 0.85 !important;
    font-style: italic;
}

.logout-form {
    margin: 0;
}

@media (max-width: 960px) {
    .app-header, .app-footer {
        padding: 20px;
    }

    .app-main {
        padding: 24px 20px 48px;
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .header-actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 12px;
    }

    .primary-nav {
        margin-right: 0;
    }
}

.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-feedback {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-secondary);
}

.form-feedback[hidden] {
    display: none;
}

.form-feedback.success {
    background: #e3f6ef;
    color: #1d7f51;
}

.form-feedback.error {
    background: #fdecea;
    color: #d64545;
}

.form-feedback__list {
    margin: 8px 0 0;
    padding-left: 20px;
}

.form-feedback__list li {
    margin: 4px 0;
    line-height: 1.4;
}

.calendar-overview {
    margin-top: 16px;
}

.calendar-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.calendar-strip p {
    margin: 0;
}

.calendar-chip {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(19, 41, 104, 0.12);
    background: rgba(19, 41, 104, 0.05);
    color: var(--text-primary);
    font-size: 0.85rem;
    font: inherit;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.calendar-chip:hover,
.calendar-chip:focus {
    border-color: rgba(19, 41, 104, 0.32);
    background: rgba(19, 41, 104, 0.08);
    transform: translateY(-1px);
}

.calendar-chip[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

.calendar-chip-date {
    font-weight: 600;
}

.calendar-chip.is-active {
    border-color: var(--primary);
    background: rgba(19, 41, 104, 0.12);
    color: var(--primary);
}

.calendar-chip.is-warning {
    border-color: rgba(227, 159, 20, 0.36);
    background: rgba(227, 159, 20, 0.18);
    color: #a86200;
}

.calendar-strip-more {
    align-self: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 4px 6px;
}

.calendar-layout {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.4fr);
    gap: 20px;
    margin-top: 20px;
    align-items: start;
}

.calendar-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calendar-timeline-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 4px solid transparent;
    border-radius: 12px;
    padding: 12px 14px;
    background: var(--surface);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calendar-timeline-item:hover,
.calendar-timeline-item:focus-within {
    border-color: rgba(19, 41, 104, 0.28);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.calendar-timeline-item.is-active {
    border-left-color: var(--primary);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
}

.calendar-timeline-trigger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.calendar-timeline-range {
    font-weight: 600;
    font-size: 1rem;
}

.calendar-timeline-days {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.calendar-timeline-status {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.9;
}

.calendar-timeline-delete {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.calendar-timeline-item:hover .calendar-timeline-delete,
.calendar-timeline-item:focus-within .calendar-timeline-delete,
.calendar-timeline-item.is-active .calendar-timeline-delete {
    opacity: 1;
    pointer-events: auto;
}

.calendar-detail {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 20px 22px;
    background: var(--surface);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
    min-height: 220px;
}

.calendar-detail-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.calendar-detail-header h3 {
    margin: 0;
}

.calendar-detail-weekdays {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.calendar-detail-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.calendar-flag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(82, 96, 109, 0.12);
    color: var(--text-secondary);
}

.calendar-flag.warning {
    background: rgba(227, 159, 20, 0.16);
    color: #a86200;
}

.calendar-flag.alert {
    background: rgba(214, 69, 69, 0.16);
    color: #a11c1c;
}

.calendar-flag.muted {
    background: rgba(82, 96, 109, 0.12);
    color: #4b5762;
}

.calendar-detail-list {
    display: grid;
    gap: 12px;
}

.calendar-detail-list dt {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.calendar-detail-list dd {
    margin: 0;
    font-size: 0.95rem;
}

.calendar-detail-list code {
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(19, 41, 104, 0.08);
    font-size: 0.8rem;
}

.calendar-detail-hint {
    margin-top: 18px;
}

.calendar-detail-empty {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

@media (max-width: 920px) {
    .calendar-layout {
        grid-template-columns: 1fr;
    }

    .calendar-detail {
        order: 1;
    }

    .calendar-timeline {
        order: 0;
    }
}

.image-meta {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.image-caption-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.image-caption-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.image-caption-group input {
    border: 1px solid rgba(82, 96, 109, 0.2);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.image-caption-group input:focus {
    outline: none;
    border-color: rgba(19, 41, 104, 0.4);
    box-shadow: 0 0 0 4px rgba(19, 41, 104, 0.12);
}

.image-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.45);
    z-index: 500;
    padding: 24px;
}

.modal-overlay[hidden] {
    display: none;
}

.modal-dialog {
    background: var(--surface);
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.modal-header h3 {
    margin: 0;
}

.modal-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.modal-list__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 0;
    font-size: 0.95rem;
}

.modal-list__label {
    font-weight: 600;
}

.modal-list__caption {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.modal-list__item--blocked .modal-list__caption {
    color: #d64545;
    font-weight: 500;
}

.modal-list__checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.modal-list__checkbox-label input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.modal-form .form-group {
    margin-bottom: 12px;
}

.weekday-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 12px;
}

.weekday-grid label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

.modal-actions .ghost-button {
    padding: 10px 14px;
}

.modal-actions .primary-button[data-loading="true"]::after {
    content: '…';
    margin-left: 6px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: flex-end;
    background: rgba(17, 24, 39, 0.45);
    z-index: 600;
}

.drawer-overlay[hidden] {
    display: none;
}

.drawer-panel {
    width: min(420px, 100%);
    height: 100%;
    background: var(--surface);
    box-shadow: -18px 0 40px rgba(15, 23, 42, 0.3);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

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

.drawer-header h3 {
    margin: 0;
}

.drawer-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 100%;
}

.drawer-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-section h4,
.drawer-preview h4 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    font-weight: 600;
}

.drawer-preview {
    border: 1px dashed rgba(19, 41, 104, 0.25);
    border-radius: 12px;
    padding: 12px 14px;
    background: rgba(19, 41, 104, 0.04);
}

.drawer-preview-text {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.drawer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: auto;
}

@media (max-width: 640px) {
    .weekday-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .calendar-timeline-delete {
        align-self: flex-start;
    }
}

/* Booking Method Section Styles */
.booking-method-section {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.booking-method-section h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.section-description {
    margin: 0 0 24px 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.booking-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.booking-option {
    position: relative;
}

.booking-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.booking-option-label {
    display: block;
    cursor: pointer;
    border: 2px solid rgba(82, 96, 109, 0.12);
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    transition: all 0.2s ease;
    user-select: none;
}

.booking-option-label:hover {
    border-color: rgba(19, 41, 104, 0.2);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.booking-option input[type="radio"]:checked ~ label {
    border-color: var(--brand-blue);
    background: rgba(19, 41, 104, 0.02);
    box-shadow: 0 0 0 4px rgba(19, 41, 104, 0.1);
}

.booking-option-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.radio-indicator {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(82, 96, 109, 0.3);
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}

.booking-option input[type="radio"]:checked ~ label .radio-indicator {
    border-color: var(--brand-blue);
}

.booking-option input[type="radio"]:checked ~ label .radio-indicator::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--brand-blue);
}

.booking-option-content {
    flex: 1;
    min-width: 0;
}

.booking-option-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.booking-option-description {
    margin: 0 0 16px 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.booking-link-input,
.booking-form-info {
    margin-top: 16px;
    padding: 16px;
    background: rgba(19, 41, 104, 0.04);
    border-radius: 8px;
    border: 1px solid rgba(19, 41, 104, 0.1);
}

.booking-link-input.hidden,
.booking-form-info.hidden {
    display: none;
}

.booking-link-input .form-group {
    margin: 0;
}

.input-help-text {
    margin: 6px 0 0 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.info-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
    font-style: italic;
}

.text-secondary {
    color: var(--text-secondary);
}

/* Responsive booking options */
@media (max-width: 640px) {
    .booking-method-section {
        padding: 24px;
    }
    
    .booking-options {
        gap: 8px;
    }
    
    .booking-option-label {
        padding: 16px;
    }
    
    .booking-option-header {
        gap: 12px;
    }
    
    .radio-indicator {
        width: 18px;
        height: 18px;
    }
    
    .booking-option input[type="radio"]:checked ~ label .radio-indicator::after {
        top: 3px;
        left: 3px;
        width: 8px;
        height: 8px;
    }
}

/* Legal documents (Terms & Privacy) */
.legal-document {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px;
}

.legal-header {
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 2px solid rgba(19, 41, 104, 0.1);
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.legal-meta {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

.legal-content {
    line-height: 1.7;
    color: var(--text-primary);
}

.legal-section {
    margin-bottom: 48px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 24px 0;
    padding-top: 24px;
}

.legal-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 32px 0 16px 0;
}

.legal-section p {
    margin: 0 0 16px 0;
    font-size: 1rem;
}

.legal-section ul,
.legal-section ol {
    margin: 0 0 16px 0;
    padding-left: 28px;
}

.legal-section li {
    margin-bottom: 8px;
}

.legal-section strong {
    font-weight: 600;
    color: var(--text-primary);
}

.legal-section a {
    color: var(--brand-blue);
    text-decoration: none;
    border-bottom: 1px solid rgba(19, 41, 104, 0.3);
    transition: all 0.2s ease;
}

.legal-section a:hover {
    color: var(--brand-orange);
    border-bottom-color: var(--brand-orange);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95rem;
}

.legal-table thead {
    background: rgba(19, 41, 104, 0.05);
}

.legal-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid rgba(19, 41, 104, 0.1);
}

.legal-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(19, 41, 104, 0.08);
}

.legal-table tr:last-child td {
    border-bottom: none;
}

.legal-table tbody tr:hover {
    background: rgba(19, 41, 104, 0.02);
}

.signup-terms {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
    margin: 16px 0 0 0;
    line-height: 1.5;
}

.signup-terms a {
    color: var(--brand-blue);
    text-decoration: none;
    border-bottom: 1px solid rgba(19, 41, 104, 0.3);
    transition: all 0.2s ease;
}

.signup-terms a:hover {
    color: var(--brand-orange);
    border-bottom-color: var(--brand-orange);
}

.signup-terms a i {
    font-size: 0.75rem;
    margin-left: 2px;
    opacity: 0.7;
    vertical-align: baseline;
}

/* Responsive legal documents */
@media (max-width: 768px) {
    .legal-document {
        padding: 32px 20px;
    }

    .legal-header {
        margin-bottom: 32px;
        padding-bottom: 20px;
    }

    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .legal-section h3 {
        font-size: 1.1rem;
    }

    .legal-table {
        font-size: 0.85rem;
    }

    .legal-table th,
    .legal-table td {
        padding: 10px 12px;
    }
}

/* Sortable image cards - Drag and drop functionality */
.image-card-sortable {
    cursor: grab;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-card-sortable:active {
    cursor: grabbing;
}

/* Ghost element during drag */
.image-card-ghost {
    opacity: 0.4;
    background-color: var(--surface-alt);
}

/* Element being dragged */
.image-card-drag {
    opacity: 0.8;
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.2);
    cursor: grabbing;
    z-index: 1000;
}

/* Drag handle icon hint */
.image-card-sortable::before {
    content: '⋮⋮';
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 18px;
    color: var(--text-secondary);
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(82, 96, 109, 0.2);
    border-radius: 6px;
    padding: 4px 8px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.image-card-sortable:hover::before {
    opacity: 1;
    border-color: rgba(82, 96, 109, 0.35);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.18);
}

/* Button icons */
.secondary-button svg,
.ghost-button svg {
    display: inline-block;
    vertical-align: middle;
}

/* Enhanced main image badge visibility */
.badge {
    font-weight: 600;
    background: var(--brand-blue);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 8px;
}

/* Info tooltip */
.info-tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.info-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background-color: var(--brand-blue);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 400;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    z-index: 9999;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.info-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: var(--brand-blue);
}

.info-tooltip-wrapper:hover .info-tooltip {
    visibility: visible;
    opacity: 1;
}
