/**
 * BookingPlaner — Dashboard CSS
 *
 * Design System:
 * - Primary: #1e3a5f (Dunkelblau)
 * - Accent/Gold: #f59e0b
 * - Success: #10b981
 * - Danger: #ef4444
 * - Warning: #f59e0b
 * - Neutral: #6b7280
 *
 * Mobile-first, Sidebar as hamburger under 768px
 */

/* ─── Custom Properties ──────────────────────────────────────── */
:root {
    /* Colors */
    --bp-primary: #1e3a5f;
    --bp-primary-light: #2d5a8e;
    --bp-primary-dark: #142840;
    --bp-accent: #f59e0b;
    --bp-accent-hover: #d97706;
    --bp-success: #10b981;
    --bp-success-light: #d1fae5;
    --bp-danger: #ef4444;
    --bp-danger-light: #fee2e2;
    --bp-warning: #f59e0b;
    --bp-warning-light: #fef3c7;
    --bp-neutral: #6b7280;
    --bp-neutral-light: #f3f4f6;

    /* Backgrounds */
    --bp-bg: #f8fafc;
    --bp-bg-white: #ffffff;
    --bp-bg-sidebar: #0f172a;
    --bp-bg-sidebar-hover: #1e293b;

    /* Text */
    --bp-text: #1e293b;
    --bp-text-muted: #64748b;
    --bp-text-light: #94a3b8;
    --bp-text-inverse: #f8fafc;

    /* Borders */
    --bp-border: #e2e8f0;
    --bp-border-focus: #3b82f6;

    /* Spacing */
    --bp-space-xs: 0.25rem;
    --bp-space-sm: 0.5rem;
    --bp-space-md: 1rem;
    --bp-space-lg: 1.5rem;
    --bp-space-xl: 2rem;
    --bp-space-2xl: 3rem;

    /* Radii */
    --bp-radius-sm: 4px;
    --bp-radius-md: 8px;
    --bp-radius-lg: 12px;
    --bp-radius-full: 9999px;

    /* Shadows */
    --bp-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --bp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --bp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

    /* Layout */
    --bp-sidebar-width: 250px;
    --bp-header-height: 60px;

    /* Transitions */
    --bp-transition: 150ms ease;
}

/* ─── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--bp-text);
    background: var(--bp-bg);
    overflow-x: hidden;
}

a {
    color: var(--bp-primary-light);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img { max-width: 100%; height: auto; }

hr {
    border: none;
    border-top: 1px solid var(--bp-border);
    margin: var(--bp-space-lg) 0;
}

/* ─── App Layout ─────────────────────────────────────────────── */
.bp-app {
    display: flex;
    min-height: 100vh;
}

/* ─── Sidebar ────────────────────────────────────────────────── */
.bp-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--bp-sidebar-width);
    background: var(--bp-bg-sidebar);
    color: var(--bp-text-inverse);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform var(--bp-transition);
}

.bp-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--bp-space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bp-sidebar__logo {
    display: flex;
    align-items: center;
    gap: var(--bp-space-sm);
    color: var(--bp-text-inverse);
    text-decoration: none;
    font-weight: 700;
}

.bp-sidebar__logo:hover { text-decoration: none; }

.bp-sidebar__logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bp-accent);
    color: var(--bp-primary-dark);
    border-radius: var(--bp-radius-md);
    font-weight: 800;
    font-size: 0.875rem;
}

.bp-sidebar__logo-text {
    font-size: 1.125rem;
}

.bp-sidebar__close {
    display: none;
    background: none;
    border: none;
    color: var(--bp-text-inverse);
    cursor: pointer;
    padding: var(--bp-space-xs);
}

.bp-sidebar__nav {
    flex: 1;
    padding: var(--bp-space-md) 0;
    overflow-y: auto;
}

.bp-sidebar__link {
    display: flex;
    align-items: center;
    gap: var(--bp-space-sm);
    padding: var(--bp-space-sm) var(--bp-space-lg);
    color: var(--bp-text-light);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: background var(--bp-transition), color var(--bp-transition);
    border-left: 3px solid transparent;
    margin-bottom: 2px;
}

.bp-sidebar__link:hover {
    background: var(--bp-bg-sidebar-hover);
    color: var(--bp-text-inverse);
    text-decoration: none;
}

.bp-sidebar__link--active {
    background: var(--bp-bg-sidebar-hover);
    color: var(--bp-text-inverse);
    border-left-color: var(--bp-accent);
}

.bp-sidebar__icon {
    flex-shrink: 0;
    opacity: 0.7;
}

.bp-sidebar__link--active .bp-sidebar__icon {
    opacity: 1;
}

.bp-sidebar__footer {
    padding: var(--bp-space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bp-sidebar__plan {
    text-align: center;
}

/* ─── Main Content Area ──────────────────────────────────────── */
.bp-main {
    flex: 1;
    margin-left: var(--bp-sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ─── Header ─────────────────────────────────────────────────── */
.bp-header {
    position: sticky;
    top: 0;
    background: var(--bp-bg-white);
    height: var(--bp-header-height);
    display: flex;
    align-items: center;
    padding: 0 var(--bp-space-xl);
    border-bottom: 1px solid var(--bp-border);
    z-index: 100;
    box-shadow: var(--bp-shadow-sm);
}

.bp-header__menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--bp-space-xs);
    color: var(--bp-text);
    margin-right: var(--bp-space-md);
}

.bp-header__title {
    flex: 1;
}

.bp-header__title h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bp-text);
}

.bp-header__actions {
    display: flex;
    align-items: center;
    gap: var(--bp-space-md);
}

.bp-header__user {
    font-size: 0.875rem;
    color: var(--bp-text-muted);
}

.bp-header__logout {
    display: inline;
}

/* ─── Content ────────────────────────────────────────────────── */
.bp-content {
    flex: 1;
    padding: var(--bp-space-xl);
    max-width: 1400px;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.bp-footer {
    padding: var(--bp-space-lg) var(--bp-space-xl);
    text-align: center;
    font-size: 0.8125rem;
    color: var(--bp-text-muted);
    border-top: 1px solid var(--bp-border);
}

.bp-footer a { color: var(--bp-primary-light); }

/* ─── Overlay (mobile) ──────────────────────────────────────── */
.bp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.bp-overlay--visible {
    display: block;
}

/* ─── Flash Messages ─────────────────────────────────────────── */
.bp-flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--bp-space-sm) var(--bp-space-xl);
    font-size: 0.875rem;
    animation: bp-flash-in 300ms ease;
}

.bp-flash--success {
    background: var(--bp-success-light);
    color: #065f46;
    border-bottom: 2px solid var(--bp-success);
}

.bp-flash--error {
    background: var(--bp-danger-light);
    color: #991b1b;
    border-bottom: 2px solid var(--bp-danger);
}

.bp-flash__close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.7;
    line-height: 1;
    color: inherit;
}

.bp-flash__close:hover { opacity: 1; }

@keyframes bp-flash-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Cards ──────────────────────────────────────────────────── */
.bp-card {
    background: var(--bp-bg-white);
    border-radius: var(--bp-radius-lg);
    border: 1px solid var(--bp-border);
    box-shadow: var(--bp-shadow-sm);
}

.bp-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--bp-space-lg);
    border-bottom: 1px solid var(--bp-border);
}

.bp-card__header-actions {
    display: flex;
    gap: var(--bp-space-sm);
}

.bp-card__title {
    font-size: 1rem;
    font-weight: 600;
}

.bp-card__body {
    padding: var(--bp-space-lg);
}

.bp-card--wide {
    grid-column: 1 / -1;
}

/* ─── Stats Cards ────────────────────────────────────────────── */
.bp-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--bp-space-md);
    margin-bottom: var(--bp-space-xl);
}

.bp-stats__card {
    background: var(--bp-bg-white);
    border-radius: var(--bp-radius-lg);
    border: 1px solid var(--bp-border);
    padding: var(--bp-space-lg);
    text-align: center;
    box-shadow: var(--bp-shadow-sm);
}

.bp-stats__value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bp-primary);
    line-height: 1.2;
}

.bp-stats__label {
    font-size: 0.8125rem;
    color: var(--bp-text-muted);
    margin-top: var(--bp-space-xs);
}

/* ─── Dashboard Grid ─────────────────────────────────────────── */
.bp-dashboard__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--bp-space-lg);
}

/* ─── Lists ──────────────────────────────────────────────────── */
.bp-list {
    list-style: none;
}

.bp-list__item {
    display: flex;
    align-items: center;
    gap: var(--bp-space-sm);
    padding: var(--bp-space-sm) 0;
    border-bottom: 1px solid var(--bp-neutral-light);
}

.bp-list__item:last-child { border-bottom: none; }

.bp-list__dot {
    width: 10px;
    height: 10px;
    border-radius: var(--bp-radius-full);
    flex-shrink: 0;
}

.bp-list__item div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ─── Tables ─────────────────────────────────────────────────── */
.bp-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.bp-table th {
    text-align: left;
    font-weight: 600;
    color: var(--bp-text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--bp-space-sm) var(--bp-space-md);
    border-bottom: 2px solid var(--bp-border);
    white-space: nowrap;
}

.bp-table td {
    padding: var(--bp-space-sm) var(--bp-space-md);
    border-bottom: 1px solid var(--bp-neutral-light);
    vertical-align: middle;
}

.bp-table tbody tr:hover {
    background: var(--bp-neutral-light);
}

.bp-table__actions {
    white-space: nowrap;
    text-align: right;
}

/* ─── Badges ─────────────────────────────────────────────────── */
.bp-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--bp-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
    text-transform: capitalize;
}

.bp-badge--inquiry   { background: var(--bp-warning-light); color: #92400e; }
.bp-badge--confirmed { background: var(--bp-success-light); color: #065f46; }
.bp-badge--cancelled { background: var(--bp-danger-light); color: #991b1b; }
.bp-badge--blocked   { background: var(--bp-neutral-light); color: var(--bp-neutral); }
.bp-badge--neutral   { background: var(--bp-neutral-light); color: var(--bp-neutral); }
.bp-badge--plan      { background: var(--bp-primary); color: var(--bp-text-inverse); }

/* ─── Dot Indicator ──────────────────────────────────────────── */
.bp-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: var(--bp-radius-full);
    margin-right: 4px;
    vertical-align: middle;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.bp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--bp-space-xs);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    border: 1px solid transparent;
    border-radius: var(--bp-radius-md);
    cursor: pointer;
    transition: all var(--bp-transition);
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
}

.bp-btn:hover { text-decoration: none; }
.bp-btn:focus-visible { outline: 2px solid var(--bp-border-focus); outline-offset: 2px; }

.bp-btn--primary {
    background: var(--bp-primary);
    color: var(--bp-text-inverse);
}
.bp-btn--primary:hover { background: var(--bp-primary-light); }

.bp-btn--secondary {
    background: var(--bp-accent);
    color: var(--bp-primary-dark);
}
.bp-btn--secondary:hover { background: var(--bp-accent-hover); }

.bp-btn--danger {
    background: var(--bp-danger);
    color: white;
}
.bp-btn--danger:hover { background: #dc2626; }

.bp-btn--ghost {
    background: transparent;
    color: var(--bp-text-muted);
    border-color: var(--bp-border);
}
.bp-btn--ghost:hover {
    background: var(--bp-neutral-light);
    color: var(--bp-text);
}

.bp-btn--sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.bp-btn--xs { padding: 0.25rem 0.5rem; font-size: 0.75rem; }
.bp-btn--full { width: 100%; }

/* ─── Forms ──────────────────────────────────────────────────── */
.bp-form__group {
    margin-bottom: var(--bp-space-lg);
}

.bp-form__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bp-text);
    margin-bottom: var(--bp-space-xs);
}

.bp-form__input,
.bp-form__select,
.bp-form__textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--bp-text);
    background: var(--bp-bg-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-md);
    transition: border-color var(--bp-transition), box-shadow var(--bp-transition);
    appearance: none;
}

.bp-form__input:focus,
.bp-form__select:focus,
.bp-form__textarea:focus {
    outline: none;
    border-color: var(--bp-border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.bp-form__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.bp-form__textarea {
    resize: vertical;
    min-height: 80px;
}

.bp-form__input--small {
    max-width: 120px;
}

.bp-form__hint {
    font-size: 0.75rem;
    color: var(--bp-text-muted);
    margin-top: var(--bp-space-xs);
}

.bp-form__row {
    display: flex;
    gap: var(--bp-space-md);
    flex-wrap: wrap;
}

.bp-form__group--half { flex: 1; min-width: 200px; }
.bp-form__group--third { flex: 1; min-width: 150px; }
.bp-form__group--quarter { flex: 1; min-width: 120px; }

.bp-form__divider {
    border: none;
    border-top: 1px solid var(--bp-border);
    margin: var(--bp-space-xl) 0 var(--bp-space-lg);
}

.bp-form__section-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: var(--bp-space-md);
    color: var(--bp-text);
}

.bp-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--bp-space-sm);
    padding-top: var(--bp-space-md);
}

.bp-form__calc {
    background: var(--bp-neutral-light);
    padding: var(--bp-space-sm) var(--bp-space-md);
    border-radius: var(--bp-radius-md);
    font-size: 0.875rem;
    color: var(--bp-text-muted);
}

.bp-form__checkbox {
    display: flex;
    align-items: center;
    gap: var(--bp-space-sm);
    font-size: 0.9375rem;
    cursor: pointer;
}

.bp-form__checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--bp-primary);
}

/* ─── Color Picker ───────────────────────────────────────────── */
.bp-color-picker {
    display: flex;
    gap: var(--bp-space-sm);
    flex-wrap: wrap;
    align-items: center;
}

.bp-color-picker__option {
    cursor: pointer;
}

.bp-color-picker__option input {
    display: none;
}

.bp-color-picker__swatch {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: var(--bp-radius-md);
    border: 3px solid transparent;
    transition: border-color var(--bp-transition), transform var(--bp-transition);
}

.bp-color-picker__option input:checked + .bp-color-picker__swatch {
    border-color: var(--bp-text);
    transform: scale(1.1);
}

.bp-color-picker__custom {
    display: flex;
    align-items: center;
    gap: var(--bp-space-xs);
    cursor: pointer;
}

.bp-color-picker__custom input[type="color"] {
    width: 32px;
    height: 32px;
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-md);
    cursor: pointer;
    padding: 0;
}

/* ─── Actions Bar ────────────────────────────────────────────── */
.bp-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--bp-space-lg);
    flex-wrap: wrap;
    gap: var(--bp-space-sm);
}

.bp-actions-bar__title {
    font-size: 0.9375rem;
    font-weight: 600;
}

.bp-actions-bar__filters {
    display: flex;
    gap: var(--bp-space-xs);
    flex-wrap: wrap;
}

/* ─── Property Grid ──────────────────────────────────────────── */
.bp-property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--bp-space-lg);
}

.bp-property-card {
    background: var(--bp-bg-white);
    border-radius: var(--bp-radius-lg);
    border: 1px solid var(--bp-border);
    overflow: hidden;
    box-shadow: var(--bp-shadow-sm);
    transition: box-shadow var(--bp-transition);
}

.bp-property-card:hover {
    box-shadow: var(--bp-shadow-md);
}

.bp-property-card__color {
    height: 6px;
}

.bp-property-card__body {
    padding: var(--bp-space-lg);
}

.bp-property-card__name {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: var(--bp-space-xs);
}

.bp-property-card__desc {
    font-size: 0.8125rem;
    color: var(--bp-text-muted);
    margin-bottom: var(--bp-space-sm);
}

.bp-property-card__meta {
    display: flex;
    gap: var(--bp-space-md);
    font-size: 0.8125rem;
    color: var(--bp-text-muted);
}

.bp-property-card__meta span {
    display: flex;
    align-items: center;
    gap: 2px;
}

.bp-property-card__price {
    font-weight: 600;
    color: var(--bp-primary);
}

.bp-property-card__actions {
    display: flex;
    gap: var(--bp-space-sm);
    padding: 0 var(--bp-space-lg) var(--bp-space-lg);
}

.bp-inline-form { display: inline; }

/* ─── Booking Detail ─────────────────────────────────────────── */
.bp-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--bp-space-xl);
}

.bp-detail__section-title {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bp-text-muted);
    margin-bottom: var(--bp-space-md);
    padding-bottom: var(--bp-space-xs);
    border-bottom: 1px solid var(--bp-border);
}

.bp-detail__section--full {
    grid-column: 1 / -1;
}

.bp-detail__list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--bp-space-xs) var(--bp-space-md);
    font-size: 0.9375rem;
}

.bp-detail__list dt {
    color: var(--bp-text-muted);
    font-weight: 500;
}

.bp-detail__list dd {
    color: var(--bp-text);
}

/* ─── Calendar (Swimlane) ────────────────────────────────────── */
.bp-calendar-page { }

.bp-calendar__controls {
    display: flex;
    align-items: center;
    gap: var(--bp-space-sm);
    margin-bottom: var(--bp-space-md);
}

.bp-calendar__month-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-left: var(--bp-space-sm);
}

.bp-calendar__wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bp-bg-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-lg);
    box-shadow: var(--bp-shadow-sm);
}

.bp-calendar {
    min-width: 900px;
    user-select: none;
}

.bp-calendar__loading {
    padding: var(--bp-space-2xl);
    text-align: center;
    color: var(--bp-text-muted);
}

.bp-calendar__grid {
    display: grid;
    width: 100%;
}

/* Calendar header row (day numbers) */
.bp-calendar__header {
    display: contents;
}

.bp-calendar__corner {
    position: sticky;
    left: 0;
    z-index: 10;
    background: var(--bp-neutral-light);
    padding: var(--bp-space-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bp-text-muted);
    border-bottom: 2px solid var(--bp-border);
    border-right: 1px solid var(--bp-border);
    min-width: 140px;
}

.bp-calendar__day-header {
    padding: var(--bp-space-xs) 2px;
    text-align: center;
    font-size: 0.6875rem;
    background: var(--bp-neutral-light);
    border-bottom: 2px solid var(--bp-border);
    border-right: 1px solid var(--bp-neutral-light);
    min-width: 36px;
}

.bp-calendar__day-header--today {
    background: var(--bp-primary);
    color: var(--bp-text-inverse);
    border-radius: var(--bp-radius-sm);
}

.bp-calendar__day-header--weekend {
    color: var(--bp-danger);
}

.bp-calendar__day-number {
    display: block;
    font-weight: 700;
    font-size: 0.8125rem;
}

.bp-calendar__day-name {
    display: block;
    font-size: 0.625rem;
    text-transform: uppercase;
    opacity: 0.7;
}

/* Calendar property row */
.bp-calendar__row {
    display: contents;
}

.bp-calendar__property-label {
    position: sticky;
    left: 0;
    z-index: 10;
    background: var(--bp-bg-white);
    padding: var(--bp-space-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    border-bottom: 1px solid var(--bp-border);
    border-right: 1px solid var(--bp-border);
    display: flex;
    align-items: center;
    gap: var(--bp-space-xs);
    min-width: 140px;
}

.bp-calendar__cell {
    position: relative;
    border-bottom: 1px solid var(--bp-neutral-light);
    border-right: 1px solid var(--bp-neutral-light);
    min-height: 40px;
    cursor: pointer;
    transition: background var(--bp-transition);
}

.bp-calendar__cell:hover {
    background: rgba(59, 130, 246, 0.05);
}

.bp-calendar__cell--weekend {
    background: rgba(0, 0, 0, 0.02);
}

.bp-calendar__cell--today {
    background: rgba(59, 130, 246, 0.08);
}

/* Booking bars */
.bp-calendar__booking {
    position: absolute;
    top: 4px;
    bottom: 4px;
    border-radius: var(--bp-radius-sm);
    color: white;
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 2px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    z-index: 5;
    opacity: 0.9;
    transition: opacity var(--bp-transition);
    line-height: 1.4;
}

.bp-calendar__booking:hover {
    opacity: 1;
    z-index: 6;
}

.bp-calendar__booking--inquiry {
    border: 2px dashed rgba(255,255,255,0.5);
}

/* ─── Text Utilities ─────────────────────────────────────────── */
.bp-text--muted { color: var(--bp-text-muted); font-size: 0.8125rem; }
.bp-link { color: var(--bp-primary-light); }
.bp-link:hover { text-decoration: underline; }

/* ─── Auth Layout ────────────────────────────────────────────── */
.bp-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bp-primary-dark) 0%, var(--bp-primary) 100%);
    padding: var(--bp-space-xl);
}

.bp-auth {
    width: 100%;
    max-width: 420px;
}

.bp-auth__card {
    background: var(--bp-bg-white);
    border-radius: var(--bp-radius-lg);
    padding: var(--bp-space-2xl);
    box-shadow: var(--bp-shadow-lg);
}

.bp-auth__logo {
    text-align: center;
    margin-bottom: var(--bp-space-xl);
}

.bp-auth__logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--bp-accent);
    color: var(--bp-primary-dark);
    border-radius: var(--bp-radius-lg);
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: var(--bp-space-sm);
}

.bp-auth__logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bp-primary);
    margin: 0;
}

.bp-auth__heading {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--bp-space-lg);
}

.bp-auth__link {
    text-align: center;
    font-size: 0.875rem;
    color: var(--bp-text-muted);
    margin-top: var(--bp-space-lg);
}

.bp-auth__footer {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: var(--bp-space-lg);
}

.bp-auth__footer a { color: rgba(255, 255, 255, 0.8); }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .bp-sidebar {
        transform: translateX(-100%);
    }

    .bp-sidebar--open {
        transform: translateX(0);
    }

    .bp-sidebar__close {
        display: block;
    }

    .bp-main {
        margin-left: 0;
    }

    .bp-header__menu-btn {
        display: block;
    }

    .bp-content {
        padding: var(--bp-space-md);
    }

    .bp-header {
        padding: 0 var(--bp-space-md);
    }

    .bp-header__user {
        display: none;
    }

    .bp-dashboard__grid {
        grid-template-columns: 1fr;
    }

    .bp-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .bp-form__row {
        flex-direction: column;
    }

    .bp-form__group--half,
    .bp-form__group--third,
    .bp-form__group--quarter {
        min-width: 100%;
    }

    .bp-property-grid {
        grid-template-columns: 1fr;
    }

    .bp-detail-grid {
        grid-template-columns: 1fr;
    }

    .bp-actions-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .bp-table {
        font-size: 0.8125rem;
    }

    .bp-table th,
    .bp-table td {
        padding: var(--bp-space-xs) var(--bp-space-sm);
    }
}

@media (max-width: 480px) {
    .bp-stats {
        grid-template-columns: 1fr;
    }

    .bp-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--bp-space-sm);
    }

    .bp-auth__card {
        padding: var(--bp-space-lg);
    }
}

/* ─── Trial Banner ──────────────────────────────────────────── */
.bp-trial-banner {
    display: flex;
    align-items: center;
    gap: var(--bp-space-md);
    padding: var(--bp-space-md) var(--bp-space-lg);
    background: var(--bp-warning-light);
    border: 1px solid var(--bp-warning);
    border-radius: var(--bp-radius-lg);
    margin-bottom: var(--bp-space-xl);
}

.bp-trial-banner--expired {
    background: var(--bp-danger-light);
    border-color: var(--bp-danger);
}

.bp-trial-banner__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bp-warning);
    color: white;
    border-radius: var(--bp-radius-full);
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.bp-trial-banner--expired .bp-trial-banner__icon {
    background: var(--bp-danger);
}

.bp-trial-banner__text {
    flex: 1;
    font-size: 0.875rem;
    color: var(--bp-text);
}

/* ─── Quick Actions ─────────────────────────────────────────── */
.bp-quick-actions {
    display: flex;
    gap: var(--bp-space-md);
    margin-bottom: var(--bp-space-xl);
    flex-wrap: wrap;
}

.bp-quick-action {
    display: flex;
    align-items: center;
    gap: var(--bp-space-sm);
    padding: var(--bp-space-sm) var(--bp-space-lg);
    background: var(--bp-bg-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-lg);
    color: var(--bp-text);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--bp-transition);
    box-shadow: var(--bp-shadow-sm);
}

.bp-quick-action:hover {
    text-decoration: none;
    border-color: var(--bp-primary);
    color: var(--bp-primary);
    box-shadow: var(--bp-shadow-md);
    transform: translateY(-1px);
}

.bp-quick-action svg {
    color: var(--bp-primary-light);
}

/* ─── Occupancy Bars ────────────────────────────────────────── */
.bp-occupancy-bar {
    display: flex;
    align-items: center;
    gap: var(--bp-space-sm);
    margin-bottom: var(--bp-space-sm);
}

.bp-occupancy-bar:last-child {
    margin-bottom: 0;
}

.bp-occupancy-bar__label {
    min-width: 120px;
    font-size: 0.8125rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--bp-space-xs);
}

.bp-occupancy-bar__track {
    flex: 1;
    height: 10px;
    background: var(--bp-neutral-light);
    border-radius: var(--bp-radius-full);
    overflow: hidden;
}

.bp-occupancy-bar__fill {
    height: 100%;
    border-radius: var(--bp-radius-full);
    transition: width 600ms ease;
    min-width: 2px;
}

.bp-occupancy-bar__value {
    min-width: 40px;
    text-align: right;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bp-text-muted);
}

/* ─── Guest Stats Cards ─────────────────────────────────────── */
.bp-guest-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--bp-space-md);
}

.bp-guest-stats__item {
    text-align: center;
    padding: var(--bp-space-md);
    background: var(--bp-neutral-light);
    border-radius: var(--bp-radius-md);
}

.bp-guest-stats__value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bp-primary);
}

.bp-guest-stats__label {
    font-size: 0.75rem;
    color: var(--bp-text-muted);
    margin-top: var(--bp-space-xs);
}

/* ─── Search Form ───────────────────────────────────────────── */
.bp-search-form {
    display: flex;
    gap: var(--bp-space-sm);
    align-items: center;
}

/* ─── Pagination ────────────────────────────────────────────── */
.bp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--bp-space-md);
    margin-top: var(--bp-space-lg);
    padding-top: var(--bp-space-lg);
    border-top: 1px solid var(--bp-border);
}

.bp-pagination__info {
    font-size: 0.8125rem;
    color: var(--bp-text-muted);
}

/* ─── Profile Grid ──────────────────────────────────────────── */
.bp-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--bp-space-lg);
    max-width: 1000px;
}

@media (max-width: 480px) {
    .bp-profile-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Plan Cards ────────────────────────────────────────────── */
.bp-plan-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--bp-space-lg);
    max-width: 1100px;
    margin: 0 auto;
}

.bp-plan-card {
    position: relative;
    background: var(--bp-bg-white);
    border: 2px solid var(--bp-border);
    border-radius: var(--bp-radius-lg);
    padding: var(--bp-space-xl);
    text-align: center;
    transition: all var(--bp-transition);
    box-shadow: var(--bp-shadow-sm);
}

.bp-plan-card:hover {
    box-shadow: var(--bp-shadow-lg);
    transform: translateY(-2px);
}

.bp-plan-card--current {
    border-color: var(--bp-primary);
    box-shadow: 0 0 0 2px rgba(30, 58, 95, 0.1);
}

.bp-plan-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bp-primary);
    color: white;
    padding: 2px 16px;
    border-radius: var(--bp-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.bp-plan-card__name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--bp-space-xs);
    color: var(--bp-primary);
}

.bp-plan-card__desc {
    font-size: 0.8125rem;
    color: var(--bp-text-muted);
    margin-bottom: var(--bp-space-lg);
}

.bp-plan-card__price {
    margin-bottom: var(--bp-space-lg);
}

.bp-plan-card__amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--bp-text);
}

.bp-plan-card__period {
    display: block;
    font-size: 0.8125rem;
    color: var(--bp-text-muted);
}

.bp-plan-card__features {
    list-style: none;
    text-align: left;
    margin-bottom: var(--bp-space-lg);
    font-size: 0.875rem;
}

.bp-plan-card__features li {
    padding: var(--bp-space-xs) 0;
    border-bottom: 1px solid var(--bp-neutral-light);
    color: var(--bp-text);
}

.bp-plan-card__features li::before {
    content: "\2713  ";
    color: var(--bp-success);
    font-weight: 700;
}

/* ─── Plan Current (Billing Index) ──────────────────────────── */
.bp-plan-current__name {
    display: flex;
    align-items: center;
    gap: var(--bp-space-sm);
    margin-bottom: var(--bp-space-lg);
}

.bp-plan-current__details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--bp-space-lg);
    margin-bottom: var(--bp-space-lg);
}

.bp-plan-current__amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--bp-text);
}

.bp-plan-current__currency {
    font-size: 0.875rem;
    color: var(--bp-text-muted);
}

.bp-plan-current__usage-label {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: var(--bp-space-xs);
}

.bp-plan-current__usage-bar {
    margin-bottom: var(--bp-space-xs);
}

.bp-plan-current__usage-text {
    font-size: 0.8125rem;
    color: var(--bp-text-muted);
}

.bp-plan-current__features h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: var(--bp-space-sm);
}

.bp-plan-current__features ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--bp-space-xs);
}

.bp-plan-current__features li {
    background: var(--bp-neutral-light);
    padding: 2px 12px;
    border-radius: var(--bp-radius-full);
    font-size: 0.75rem;
    color: var(--bp-text-muted);
}

/* ─── Invoice Styles ────────────────────────────────────────── */
.bp-invoice {
    background: var(--bp-bg-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-lg);
    padding: var(--bp-space-2xl);
    max-width: 800px;
    box-shadow: var(--bp-shadow-sm);
}

.bp-invoice__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--bp-space-xl);
    padding-bottom: var(--bp-space-lg);
    border-bottom: 2px solid var(--bp-primary);
}

.bp-invoice__brand {
    display: flex;
    align-items: center;
    gap: var(--bp-space-md);
}

.bp-invoice__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--bp-accent);
    color: var(--bp-primary-dark);
    border-radius: var(--bp-radius-md);
    font-weight: 800;
    font-size: 1.125rem;
}

.bp-invoice__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bp-text);
    margin: 0;
}

.bp-invoice__number {
    font-size: 0.875rem;
    color: var(--bp-text-muted);
    margin: 0;
}

.bp-invoice__parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--bp-space-xl);
    margin-bottom: var(--bp-space-xl);
}

.bp-invoice__from h3,
.bp-invoice__to h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bp-text-muted);
    margin-bottom: var(--bp-space-xs);
}

.bp-invoice__from p,
.bp-invoice__to p {
    font-size: 0.875rem;
    margin: 0 0 2px;
}

.bp-invoice__meta {
    display: flex;
    gap: var(--bp-space-xl);
    flex-wrap: wrap;
    margin-bottom: var(--bp-space-xl);
    padding: var(--bp-space-md);
    background: var(--bp-neutral-light);
    border-radius: var(--bp-radius-md);
    font-size: 0.875rem;
}

.bp-invoice__table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--bp-space-xl);
}

.bp-invoice__table th {
    text-align: left;
    font-weight: 600;
    color: var(--bp-text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--bp-space-sm) var(--bp-space-md);
    border-bottom: 2px solid var(--bp-border);
}

.bp-invoice__table td {
    padding: var(--bp-space-sm) var(--bp-space-md);
    border-bottom: 1px solid var(--bp-neutral-light);
    font-size: 0.9375rem;
}

.bp-invoice__table tfoot td {
    border-bottom: none;
    padding-top: var(--bp-space-sm);
}

.bp-invoice__total td {
    border-top: 2px solid var(--bp-text);
    font-size: 1.125rem;
    padding-top: var(--bp-space-md);
}

.bp-invoice__notes {
    margin-bottom: var(--bp-space-xl);
    padding: var(--bp-space-md);
    background: var(--bp-neutral-light);
    border-radius: var(--bp-radius-md);
}

.bp-invoice__notes h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: var(--bp-space-xs);
}

.bp-invoice__notes p {
    font-size: 0.875rem;
    color: var(--bp-text-muted);
}

.bp-invoice__footer {
    text-align: center;
    padding-top: var(--bp-space-lg);
    border-top: 1px solid var(--bp-border);
    font-size: 0.75rem;
    color: var(--bp-text-muted);
}

/* ─── Sidebar Trial Info ────────────────────────────────────── */
.bp-sidebar__trial {
    display: block;
    font-size: 0.6875rem;
    color: var(--bp-text-light);
    margin-top: var(--bp-space-xs);
}

.bp-sidebar__trial--expired {
    color: var(--bp-danger);
}

.bp-sidebar__link--admin {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--bp-space-md);
    margin-bottom: var(--bp-space-sm);
}

/* ─── Billing Layout ────────────────────────────────────────── */
.bp-billing {
    display: grid;
    gap: var(--bp-space-lg);
    max-width: 900px;
}

/* ─── Print Utilities ───────────────────────────────────────── */
@media print {
    .bp-sidebar,
    .bp-header,
    .bp-footer,
    .bp-overlay,
    .bp-print-hide {
        display: none !important;
    }

    .bp-main {
        margin-left: 0;
    }

    .bp-content {
        padding: 0;
        max-width: none;
    }

    .bp-invoice {
        border: none;
        box-shadow: none;
        padding: 0;
    }

    body {
        background: white;
    }
}

/* ─── Responsive additions ──────────────────────────────────── */
@media (max-width: 768px) {
    .bp-quick-actions {
        flex-direction: column;
    }

    .bp-quick-action {
        justify-content: center;
    }

    .bp-plan-cards {
        grid-template-columns: 1fr;
    }

    .bp-plan-current__details {
        grid-template-columns: 1fr;
    }

    .bp-invoice__parties {
        grid-template-columns: 1fr;
    }

    .bp-invoice__meta {
        flex-direction: column;
        gap: var(--bp-space-sm);
    }

    .bp-search-form {
        flex-wrap: wrap;
    }

    .bp-occupancy-bar__label {
        min-width: 80px;
        font-size: 0.75rem;
    }
}

/* ─── Channel Manager ────────────────────────────────────────── */

.bp-section__header {
    margin-bottom: var(--bp-space-lg);
}

.bp-section__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--bp-space-xs);
}

.bp-channel-export-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--bp-space-md);
}

.bp-channel-export-card {
    position: relative;
    overflow: hidden;
}

.bp-channel-export-card__color {
    height: 4px;
}

.bp-channel-export-card__name {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: var(--bp-space-sm);
}

.bp-channel-export-card__url-wrap {
    display: flex;
    gap: var(--bp-space-xs);
    margin-bottom: var(--bp-space-sm);
}

.bp-channel-url {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    background: var(--bp-neutral-light);
    flex: 1;
    min-width: 0;
}

.bp-channel-export-card__help {
    margin-top: var(--bp-space-sm);
}

.bp-channel-export-card__help summary {
    cursor: pointer;
    user-select: none;
}

.bp-channel-export-card__help-content {
    margin-top: var(--bp-space-sm);
    font-size: 0.8125rem;
    color: var(--bp-text-muted);
    line-height: 1.6;
}

.bp-channel-export-card__help-content p {
    margin-bottom: var(--bp-space-sm);
}

.bp-channel-add-form__row {
    display: flex;
    gap: var(--bp-space-md);
    align-items: flex-start;
    flex-wrap: wrap;
}

.bp-channel-add-form__row .bp-form__group {
    flex: 1;
    min-width: 150px;
}

.bp-channel-embed-code-wrap {
    position: relative;
}

.bp-channel-embed-code {
    background: var(--bp-bg-sidebar);
    color: var(--bp-text-inverse);
    padding: var(--bp-space-md);
    border-radius: var(--bp-radius-md);
    font-size: 0.8125rem;
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.bp-copy-code-btn {
    position: absolute;
    top: var(--bp-space-sm);
    right: var(--bp-space-sm);
}

.bp-table__url-cell {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    color: var(--bp-text-muted);
}

.bp-inline-form {
    display: inline;
}

.bp-text--sm {
    font-size: 0.8125rem;
}

@media (max-width: 768px) {
    .bp-channel-export-grid {
        grid-template-columns: 1fr;
    }

    .bp-channel-add-form__row {
        flex-direction: column;
    }

    .bp-channel-add-form__row .bp-form__group {
        min-width: 100%;
    }
}

/* ─── View Switcher ──────────────────────────────────────────── */
.bp-view-switcher {
    display: inline-flex;
    background: var(--bp-neutral-light);
    border-radius: var(--bp-radius-md);
    padding: 2px;
    gap: 2px;
}

.bp-view-switcher__btn {
    padding: 4px 12px;
    border: none;
    background: transparent;
    color: var(--bp-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--bp-transition);
    line-height: 1.4;
}

.bp-view-switcher__btn:hover {
    color: var(--bp-text);
    background: rgba(255, 255, 255, 0.5);
}

.bp-view-switcher__btn--active {
    background: var(--bp-bg-white);
    color: var(--bp-primary);
    box-shadow: var(--bp-shadow-sm);
}

/* ─── Multi-Month Calendar Layouts ──────────────────────────── */

/* 3-Month: stacked vertically */
.bp-cal-multi--3 {
    display: flex;
    flex-direction: column;
    gap: var(--bp-space-lg);
}

/* 6-Month: 2 columns x 3 rows */
.bp-cal-multi--6 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--bp-space-md);
}

/* 12-Month: 3 columns x 4 rows */
.bp-cal-multi--12 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--bp-space-md);
}

/* Month block (for 3M/6M views) */
.bp-cal-month-block {
    background: var(--bp-bg-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-md);
    overflow: hidden;
    box-shadow: var(--bp-shadow-sm);
}

.bp-cal-month-block__title {
    background: var(--bp-neutral-light);
    padding: var(--bp-space-xs) var(--bp-space-sm);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--bp-primary);
    border-bottom: 1px solid var(--bp-border);
}

.bp-cal-month-block .bp-calendar__grid {
    min-width: 0;
}

/* Compact variants for multi-month */
.bp-calendar__day-header--compact {
    padding: 2px 1px;
    font-size: 0.5625rem;
    min-width: 20px;
}

.bp-calendar__day-header--compact .bp-calendar__day-number {
    font-size: 0.625rem;
}

.bp-calendar__property-label--compact {
    padding: var(--bp-space-xs) 4px;
    font-size: 0.6875rem;
    min-width: 100px;
}

.bp-calendar__cell--compact {
    min-height: 28px;
}

.bp-calendar__booking--compact {
    top: 2px;
    bottom: 2px;
    font-size: 0.5625rem;
    padding: 1px 3px;
    line-height: 1.2;
}

.bp-dot--sm {
    width: 6px;
    height: 6px;
}

/* ─── 12-Month Mini Calendar ────────────────────────────────── */
.bp-cal-mini-month {
    background: var(--bp-bg-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-md);
    padding: var(--bp-space-sm);
    box-shadow: var(--bp-shadow-sm);
}

.bp-cal-mini-month__title {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--bp-primary);
    margin-bottom: var(--bp-space-xs);
}

.bp-cal-mini-month__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 2px;
}

.bp-cal-mini-day-header {
    font-size: 0.5625rem;
    color: var(--bp-text-muted);
    font-weight: 600;
    padding: 1px 0;
}

.bp-cal-mini-month__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    text-align: center;
}

.bp-cal-mini-day {
    font-size: 0.625rem;
    padding: 2px 1px;
    border-radius: 2px;
    line-height: 1.4;
    cursor: default;
}

.bp-cal-mini-day--empty {
    visibility: hidden;
}

.bp-cal-mini-day--full {
    background: var(--bp-danger);
    color: white;
}

.bp-cal-mini-day--partial {
    border-radius: 2px;
}

.bp-cal-mini-day--today {
    outline: 2px solid var(--bp-primary);
    outline-offset: -1px;
    font-weight: 700;
}

.bp-cal-mini-day--weekend {
    color: var(--bp-text-muted);
}

/* Mini Legend */
.bp-cal-mini-legend {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: var(--bp-space-lg);
    padding: var(--bp-space-sm) 0;
    font-size: 0.75rem;
    color: var(--bp-text-muted);
}

.bp-cal-mini-legend__item {
    display: flex;
    align-items: center;
    gap: var(--bp-space-xs);
}

.bp-cal-mini-legend__dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.bp-cal-mini-legend__dot--free {
    background: var(--bp-bg-white);
    border: 1px solid var(--bp-border);
}

.bp-cal-mini-legend__dot--partial {
    background: var(--bp-warning);
    opacity: 0.5;
}

.bp-cal-mini-legend__dot--full {
    background: var(--bp-danger);
}

/* ─── Price Calculator ──────────────────────────────────────── */
.bp-price-calculator {
    background: var(--bp-neutral-light);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-md);
    padding: var(--bp-space-md);
    margin-bottom: var(--bp-space-md);
}

.bp-price-calculator__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--bp-primary);
    margin-bottom: var(--bp-space-sm);
}

.bp-price-calculator__loading {
    display: flex;
    align-items: center;
    gap: var(--bp-space-sm);
    font-size: 0.8125rem;
    color: var(--bp-text-muted);
    padding: var(--bp-space-sm) 0;
}

.bp-price-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--bp-border);
    border-top-color: var(--bp-primary);
    border-radius: 50%;
    animation: bp-spin 0.8s linear infinite;
}

@keyframes bp-spin {
    to { transform: rotate(360deg); }
}

.bp-price-calculator__error {
    font-size: 0.8125rem;
    color: var(--bp-danger);
    padding: var(--bp-space-sm) 0;
}

.bp-price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--bp-space-xs) 0;
    font-size: 0.8125rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.bp-price-line:last-child {
    border-bottom: none;
}

.bp-price-line__label {
    color: var(--bp-text-muted);
}

.bp-price-line__amount {
    font-weight: 500;
    color: var(--bp-text);
}

.bp-price-line--discount .bp-price-line__amount {
    color: var(--bp-success);
}

.bp-price-line--tax .bp-price-line__label {
    font-size: 0.75rem;
}

.bp-price-line--subtotal {
    border-top: 1px solid var(--bp-border);
    margin-top: var(--bp-space-xs);
    padding-top: var(--bp-space-sm);
    font-weight: 500;
}

.bp-price-line--subtotal .bp-price-line__label {
    color: var(--bp-text);
}

.bp-price-total {
    border-top: 2px solid var(--bp-primary);
    margin-top: var(--bp-space-sm);
    padding-top: var(--bp-space-sm);
    font-size: 1rem;
}

.bp-price-total .bp-price-line__label {
    font-weight: 700;
    color: var(--bp-text);
}

.bp-price-total .bp-price-line__amount {
    font-weight: 800;
    font-size: 1.125rem;
    color: var(--bp-primary);
}

@keyframes bp-price-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.bp-price-total--animate .bp-price-line__amount {
    animation: bp-price-pulse 0.6s ease;
}

/* ─── Calendar Filter ───────────────────────────────────────── */
.bp-calendar__filter {
    display: flex;
    align-items: center;
}

/* ─── Multi-Month Responsive ────────────────────────────────── */
@media (max-width: 768px) {
    .bp-view-switcher {
        margin-left: 0 !important;
        margin-top: var(--bp-space-sm);
    }

    .bp-calendar__controls {
        flex-wrap: wrap;
    }

    .bp-cal-multi--6 {
        grid-template-columns: 1fr;
    }

    .bp-cal-multi--12 {
        grid-template-columns: repeat(2, 1fr);
    }

    .bp-calendar__filter {
        flex-wrap: wrap;
    }

    .bp-price-calculator {
        padding: var(--bp-space-sm);
    }
}

@media (max-width: 480px) {
    .bp-cal-multi--12 {
        grid-template-columns: 1fr;
    }

    .bp-view-switcher__btn {
        padding: 3px 8px;
        font-size: 0.6875rem;
    }
}

/* ─── Print: Multi-Month Calendar ──────────────────────────── */
@media print {
    .bp-view-switcher,
    .bp-calendar__filter {
        display: none !important;
    }

    .bp-cal-multi--6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .bp-cal-multi--12 {
        grid-template-columns: repeat(3, 1fr);
    }

    .bp-cal-mini-month {
        border: 1px solid #ccc;
        box-shadow: none;
    }

    .bp-cal-month-block {
        box-shadow: none;
        break-inside: avoid;
    }

    .bp-price-calculator {
        break-inside: avoid;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MODUL: Dynamic Pricing
   ═══════════════════════════════════════════════════════════════ */

/* ─── Toggle Switch ──────────────────────────────────────────── */
.bp-dp-toggle {
    display: flex;
    align-items: center;
    gap: var(--bp-space-sm);
    cursor: pointer;
}

.bp-dp-toggle input[type="checkbox"] {
    display: none;
}

.bp-dp-toggle__slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--bp-neutral-light);
    border: 2px solid var(--bp-border);
    border-radius: var(--bp-radius-full);
    transition: all var(--bp-transition);
}

.bp-dp-toggle__slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: var(--bp-neutral);
    border-radius: var(--bp-radius-full);
    transition: all var(--bp-transition);
}

.bp-dp-toggle input:checked + .bp-dp-toggle__slider {
    background: var(--bp-success-light);
    border-color: var(--bp-success);
}

.bp-dp-toggle input:checked + .bp-dp-toggle__slider::after {
    transform: translateX(20px);
    background: var(--bp-success);
}

.bp-dp-toggle__label {
    font-size: 0.875rem;
    font-weight: 600;
}

/* ─── Slider ─────────────────────────────────────────────────── */
.bp-dp-slider {
    display: flex;
    align-items: center;
    gap: var(--bp-space-sm);
}

.bp-dp-slider__input {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--bp-border);
    border-radius: var(--bp-radius-full);
    outline: none;
    cursor: pointer;
}

.bp-dp-slider__input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--bp-primary);
    border-radius: var(--bp-radius-full);
    cursor: pointer;
    border: 2px solid var(--bp-bg-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.bp-dp-slider__input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--bp-primary);
    border-radius: var(--bp-radius-full);
    cursor: pointer;
    border: 2px solid var(--bp-bg-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.bp-dp-slider__value {
    min-width: 40px;
    text-align: right;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--bp-primary);
}

/* ─── Live Preview Box ───────────────────────────────────────── */
.bp-dp-preview {
    background: var(--bp-bg-white);
    border: 2px solid var(--bp-primary);
    border-radius: var(--bp-radius-lg);
    margin-bottom: var(--bp-space-lg);
    overflow: hidden;
}

.bp-dp-preview__header {
    background: var(--bp-primary);
    color: var(--bp-text-inverse);
    padding: var(--bp-space-sm) var(--bp-space-lg);
    font-size: 0.875rem;
}

.bp-dp-preview__body {
    padding: var(--bp-space-lg);
}

.bp-dp-preview__prices {
    display: flex;
    align-items: center;
    gap: var(--bp-space-lg);
    margin-bottom: var(--bp-space-md);
    flex-wrap: wrap;
}

.bp-dp-preview__base,
.bp-dp-preview__dynamic {
    text-align: center;
}

.bp-dp-preview__label {
    display: block;
    font-size: 0.75rem;
    color: var(--bp-text-muted);
    margin-bottom: var(--bp-space-xs);
}

.bp-dp-preview__amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bp-text);
}

.bp-dp-preview__dynamic--discount .bp-dp-preview__amount {
    color: var(--bp-success);
}

.bp-dp-preview__dynamic--surcharge .bp-dp-preview__amount {
    color: var(--bp-danger);
}

.bp-dp-preview__arrow {
    font-size: 1.5rem;
    color: var(--bp-text-muted);
}

.bp-dp-preview__reasons {
    display: flex;
    gap: var(--bp-space-xs);
    flex-wrap: wrap;
}

.bp-dp-preview__reason {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--bp-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.bp-dp-preview__reason--discount {
    background: var(--bp-success-light);
    color: #065f46;
}

.bp-dp-preview__reason--surcharge {
    background: var(--bp-danger-light);
    color: #991b1b;
}

/* ─── Price Calendar Grid ────────────────────────────────────── */
.bp-dp-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 4px;
}

.bp-dp-calendar__day {
    background: var(--bp-neutral-light);
    border-radius: var(--bp-radius-sm);
    padding: var(--bp-space-xs) var(--bp-space-sm);
    text-align: center;
    cursor: default;
    transition: all var(--bp-transition);
    border: 1px solid transparent;
}

.bp-dp-calendar__day:hover {
    border-color: var(--bp-border);
    box-shadow: var(--bp-shadow-sm);
}

.bp-dp-calendar__day--weekend {
    background: #f1f5f9;
}

.bp-dp-calendar__day--discount {
    background: var(--bp-success-light);
    border-color: var(--bp-success);
}

.bp-dp-calendar__day--surcharge {
    background: var(--bp-danger-light);
    border-color: var(--bp-danger);
}

.bp-dp-calendar__date {
    display: block;
    font-size: 0.625rem;
    color: var(--bp-text-muted);
    text-transform: uppercase;
}

.bp-dp-calendar__price {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--bp-text);
}

.bp-dp-calendar__diff {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
}

.bp-dp-calendar__diff--neg {
    color: #065f46;
}

.bp-dp-calendar__diff--pos {
    color: #991b1b;
}

.bp-dp-calendar__legend {
    display: flex;
    gap: var(--bp-space-lg);
    justify-content: center;
    margin-top: var(--bp-space-md);
    font-size: 0.75rem;
    color: var(--bp-text-muted);
}

.bp-dp-calendar__legend-item {
    display: flex;
    align-items: center;
    gap: var(--bp-space-xs);
}

.bp-dp-calendar__legend-color {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: var(--bp-radius-sm);
}

.bp-dp-calendar__legend-color--discount {
    background: var(--bp-success-light);
    border: 1px solid var(--bp-success);
}

.bp-dp-calendar__legend-color--normal {
    background: var(--bp-neutral-light);
    border: 1px solid var(--bp-border);
}

.bp-dp-calendar__legend-color--surcharge {
    background: var(--bp-danger-light);
    border: 1px solid var(--bp-danger);
}

/* ═══════════════════════════════════════════════════════════════
   MODUL: Statistics Dashboard
   ═══════════════════════════════════════════════════════════════ */

/* ─── KPI Cards ──────────────────────────────────────────────── */
.bp-stats-kpi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--bp-space-md);
    margin-bottom: var(--bp-space-xl);
}

.bp-stats-kpi__card {
    background: var(--bp-bg-white);
    border-radius: var(--bp-radius-lg);
    border: 1px solid var(--bp-border);
    padding: var(--bp-space-lg);
    text-align: center;
    box-shadow: var(--bp-shadow-sm);
}

.bp-stats-kpi__value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--bp-primary);
    line-height: 1.2;
}

.bp-stats-kpi__label {
    font-size: 0.75rem;
    color: var(--bp-text-muted);
    margin-top: var(--bp-space-xs);
}

.bp-stats-kpi__trend {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: var(--bp-space-xs);
    padding: 1px 8px;
    border-radius: var(--bp-radius-full);
}

.bp-stats-kpi__trend--up {
    background: var(--bp-success-light);
    color: #065f46;
}

.bp-stats-kpi__trend--down {
    background: var(--bp-danger-light);
    color: #991b1b;
}

.bp-stats-kpi__trend--neutral {
    background: var(--bp-neutral-light);
    color: var(--bp-neutral);
}

.bp-stats-kpi__arrow {
    font-size: 0.625rem;
}

/* ─── Stats Grid ─────────────────────────────────────────────── */
.bp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--bp-space-lg);
}

/* ─── Period Filter ──────────────────────────────────────────── */
.bp-stats-filter {
    display: flex;
    gap: var(--bp-space-xs);
    flex-wrap: wrap;
}

/* ─── Chart Containers ───────────────────────────────────────── */
.bp-chart {
    width: 100%;
    display: block;
}

.bp-chart-donut {
    flex-shrink: 0;
}

.bp-chart-legend {
    display: flex;
    flex-direction: column;
    gap: var(--bp-space-sm);
}

.bp-chart-legend__item {
    display: flex;
    align-items: center;
    gap: var(--bp-space-sm);
    font-size: 0.8125rem;
}

.bp-chart-legend__color {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: var(--bp-radius-sm);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   MODUL: Team / Multi-User
   ═══════════════════════════════════════════════════════════════ */

/* ─── Role Badges ────────────────────────────────────────────── */
.bp-role-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: var(--bp-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
}

.bp-role-badge--owner {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
}

.bp-role-badge--manager {
    background: #dbeafe;
    color: #1e40af;
}

.bp-role-badge--viewer {
    background: var(--bp-neutral-light);
    color: var(--bp-neutral);
}

/* ─── Team Roles Overview ────────────────────────────────────── */
.bp-team-roles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--bp-space-lg);
}

.bp-team-roles__item {
    padding: var(--bp-space-md);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-md);
}

.bp-team-roles__item .bp-role-badge {
    margin-bottom: var(--bp-space-sm);
}

.bp-team-roles__item p {
    font-size: 0.8125rem;
    color: var(--bp-text-muted);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   Responsive Additions for New Modules
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .bp-stats-kpi {
        grid-template-columns: repeat(2, 1fr);
    }

    .bp-stats-grid {
        grid-template-columns: 1fr;
    }

    .bp-dp-calendar {
        grid-template-columns: repeat(5, 1fr);
    }

    .bp-dp-preview__prices {
        flex-direction: column;
        align-items: flex-start;
    }

    .bp-dp-preview__arrow {
        transform: rotate(90deg);
    }

    .bp-team-roles {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .bp-stats-kpi {
        grid-template-columns: 1fr;
    }

    .bp-dp-calendar {
        grid-template-columns: repeat(3, 1fr);
    }

    .bp-stats-filter {
        flex-direction: column;
    }
}
