html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem var(--theme-surface-strong), 0 0 0 0.25rem var(--theme-focus-ring);
}

html {
  position: relative;
  min-height: 100%;
}

:root {
  --theme-bg-left: rgba(93, 202, 165, 0.18);
  --theme-bg-right: rgba(225, 245, 238, 0.88);
  --theme-bg-start: #f6fbf9;
  --theme-bg-end: #eef8f4;
  --theme-surface: rgba(255, 255, 255, 0.97);
  --theme-surface-strong: #ffffff;
  --theme-surface-soft: #f5fbf8;
  --theme-surface-muted: #eef7f3;
  --theme-proof-surface: rgba(250, 253, 251, 0.92);
  --theme-proof-border: rgba(201, 229, 219, 0.95);
  --theme-border: rgba(194, 224, 213, 0.95);
  --theme-heading: #12352d;
  --theme-text: #48675d;
  --theme-muted: #648278;
  --theme-accent: #5dcaa5;
  --theme-accent-deep: #1d9e75;
  --theme-accent-strong: #16785a;
  --theme-accent-soft: #e1f5ee;
  --theme-accent-soft-strong: #c6ebdc;
  --theme-warm-soft: #f3faf6;
  --theme-warm-border: #d7ece1;
  --theme-warm-text: #2f6d58;
  --theme-glow: rgba(93, 202, 165, 0.24);
  --theme-badge-bg: #e1f5ee;
  --theme-badge-text: #16785a;
  --theme-featured-shadow: rgba(29, 158, 117, 0.16);
  --theme-navbar-bg: rgba(250, 254, 252, 0.92);
  --theme-dropdown-bg: rgba(255, 255, 255, 0.98);
  --theme-shadow: rgba(12, 39, 33, 0.08);
  --theme-shadow-strong: rgba(12, 39, 33, 0.14);
  --theme-focus-ring: rgba(29, 158, 117, 0.28);
  --theme-slot-border: #9bdbc3;
  --theme-slot-bg: #f1fbf7;
  --theme-slot-hover: #e1f5ee;
  --theme-slot-selected: #ccefe1;
  --theme-slot-selected-text: #0f5b45;
  --theme-disabled-bg: #f4f8f6;
  --theme-disabled-text: #90a79f;
}

[data-theme="dark"] {
  --theme-bg-left: rgba(29, 158, 117, 0.22);
  --theme-bg-right: rgba(4, 52, 44, 0.54);
  --theme-bg-start: #071d19;
  --theme-bg-end: #0b2d26;
  --theme-surface: rgba(10, 38, 32, 0.9);
  --theme-surface-strong: #0c2f28;
  --theme-surface-soft: #123d34;
  --theme-surface-muted: #102f28;
  --theme-proof-surface: rgba(12, 45, 38, 0.92);
  --theme-proof-border: rgba(33, 100, 82, 0.82);
  --theme-border: rgba(38, 105, 87, 0.82);
  --theme-heading: #ecfbf6;
  --theme-text: #c0e2d5;
  --theme-muted: #99c7b8;
  --theme-accent: #5dcaa5;
  --theme-accent-deep: #5dcaa5;
  --theme-accent-strong: #9fe1cb;
  --theme-accent-soft: rgba(29, 158, 117, 0.2);
  --theme-accent-soft-strong: rgba(93, 202, 165, 0.38);
  --theme-warm-soft: rgba(12, 58, 48, 0.78);
  --theme-warm-border: rgba(63, 138, 115, 0.56);
  --theme-warm-text: #bfeadb;
  --theme-glow: rgba(93, 202, 165, 0.18);
  --theme-badge-bg: rgba(29, 158, 117, 0.22);
  --theme-badge-text: #d2f7ea;
  --theme-featured-shadow: rgba(0, 0, 0, 0.24);
  --theme-navbar-bg: rgba(7, 29, 25, 0.88);
  --theme-dropdown-bg: rgba(10, 38, 32, 0.98);
  --theme-shadow: rgba(0, 0, 0, 0.24);
  --theme-shadow-strong: rgba(0, 0, 0, 0.34);
  --theme-focus-ring: rgba(93, 202, 165, 0.34);
  --theme-slot-border: rgba(93, 202, 165, 0.42);
  --theme-slot-bg: rgba(14, 52, 43, 0.9);
  --theme-slot-hover: rgba(29, 158, 117, 0.24);
  --theme-slot-selected: rgba(93, 202, 165, 0.24);
  --theme-slot-selected-text: #e4fcf4;
  --theme-disabled-bg: #0c2a24;
  --theme-disabled-text: #6f9186;
}

body {
  margin-bottom: 60px;
  background:
      radial-gradient(circle at top left, var(--theme-bg-left), transparent 34%),
      radial-gradient(circle at top right, var(--theme-bg-right), transparent 28%),
      linear-gradient(180deg, var(--theme-bg-start) 0%, var(--theme-bg-end) 100%);
  color: var(--theme-heading);
  font-family: "Aptos", "Segoe UI Variable Text", "Manrope", "Gill Sans", sans-serif;
}

a {
  color: var(--theme-accent-deep);
}

.text-muted {
  color: var(--theme-muted) !important;
}

.btn-primary {
  color: #fff;
  background-color: var(--theme-accent-deep);
  border-color: var(--theme-accent-deep);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--theme-accent-strong);
  border-color: var(--theme-accent-strong);
  color: #fff;
}

.btn-outline-primary {
  color: var(--theme-accent-deep);
  border-color: var(--theme-accent);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #fff;
  background-color: var(--theme-accent);
  border-color: var(--theme-accent);
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: var(--theme-accent-deep);
  border-color: var(--theme-accent-deep);
}

.navbar {
    background: var(--theme-navbar-bg) !important;
    backdrop-filter: blur(14px);
    position: relative;
    z-index: 1050;
    border-color: var(--theme-border) !important;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-lockup-link {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0;
}

.brand-lockup {
    display: block;
    width: 192px;
    height: auto;
}

.navbar-utility-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle-button {
    border-radius: 999px;
    min-width: 7.5rem;
}

.navbar .nav-link,
.navbar .btn-link.nav-link,
.navbar .dropdown-item,
.navbar .dropdown-toggle,
.navbar .navbar-brand {
    color: var(--theme-heading) !important;
}

.navbar .nav-link {
    border-radius: 999px;
    padding: 0.55rem 0.9rem !important;
    font-weight: 600;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    background: var(--theme-accent-soft);
}

.navbar .dropdown-menu {
    min-width: 220px;
    border-radius: 16px;
    border: 1px solid var(--theme-border);
    background: var(--theme-dropdown-bg);
    padding: 0.5rem;
    z-index: 1060;
    box-shadow: 0 18px 36px var(--theme-shadow-strong);
}

.navbar .navbar-collapse {
    overflow: visible;
}

.navbar .dropdown-item {
    border-radius: 12px;
    padding: 0.65rem 0.8rem;
    font-weight: 500;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: var(--theme-accent-soft);
}

.nav-user-pill {
    background: var(--theme-accent-soft);
    color: var(--theme-accent-deep) !important;
}

.app-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.app-page-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.app-page-subtitle {
    margin: 0.35rem 0 0;
    color: var(--theme-muted);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dashboard-grid-wide {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.app-card {
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 8px 24px var(--theme-shadow);
}

    .app-card h3 {
        margin-top: 0;
        margin-bottom: 1rem;
        font-size: 1.1rem;
        font-weight: 700;
    }

.app-actions-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.dashboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.dashboard-stack {
    display: grid;
    gap: 0.85rem;
}

.dashboard-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    background: var(--theme-surface-soft);
    flex-wrap: wrap;
}

.dashboard-list-item-block {
    align-items: stretch;
}

.dashboard-link-group {
    min-width: min(100%, 420px);
}

.dashboard-transparency-card {
    background:
        linear-gradient(180deg, var(--theme-surface-strong), var(--theme-surface-soft));
    box-shadow: 0 18px 40px var(--theme-shadow);
}

.dashboard-transparency-lead {
    margin: 0 0 1.25rem;
    max-width: 72ch;
    color: var(--theme-text);
    line-height: 1.75;
}

.dashboard-roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.dashboard-roadmap-card {
    padding: 1rem;
    border: 1px solid var(--theme-border);
    border-radius: 16px;
    background: var(--theme-surface);
    box-shadow: 0 10px 24px var(--theme-shadow);
}

.dashboard-bullet-list {
    margin: 0.95rem 0 0;
    padding-left: 1.1rem;
    color: var(--theme-text);
}

.dashboard-bullet-list li + li {
    margin-top: 0.55rem;
}

.dashboard-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 1rem;
}

.dashboard-status-item {
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    background: var(--theme-surface-soft);
}

.dashboard-status-label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--theme-muted);
    font-weight: 700;
}

.dashboard-status-value {
    color: var(--theme-heading);
    font-weight: 700;
}

.dashboard-setup-card {
    background: linear-gradient(180deg, var(--theme-surface-strong), var(--theme-surface-soft));
    box-shadow: 0 18px 40px var(--theme-shadow);
}

.setup-progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
}

.setup-progress-card {
    padding: 1rem;
    border: 1px solid var(--theme-border);
    border-radius: 16px;
    background: var(--theme-surface);
    box-shadow: 0 10px 24px var(--theme-shadow);
}

.setup-progress-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--theme-muted);
    font-weight: 700;
}

.setup-progress-value {
    font-size: clamp(1.7rem, 4vw, 2.3rem);
    line-height: 1;
    font-weight: 700;
    color: var(--theme-heading);
    margin-bottom: 0.45rem;
}

.setup-progress-bar {
    height: 12px;
    margin-top: 1rem;
    border-radius: 999px;
    background: var(--theme-accent-soft);
    overflow: hidden;
}

.setup-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--theme-accent), var(--theme-accent-deep));
}

.setup-inline-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.setup-next-step-title {
    margin: 0.15rem 0 0.2rem;
    color: var(--theme-heading);
    font-weight: 700;
}

.setup-modal-content {
    background: var(--theme-surface-strong);
    border: 1px solid var(--theme-border);
    color: var(--theme-heading);
}

.setup-modal-content .modal-header,
.setup-modal-content .modal-body {
    background: var(--theme-surface-strong);
}

.setup-modal-summary {
    margin-bottom: 1.5rem;
}

.setup-checklist-section + .setup-checklist-section {
    margin-top: 1.75rem;
}

.setup-checklist-grid {
    display: grid;
    gap: 0.9rem;
}

.setup-checklist-step {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid var(--theme-border);
    border-radius: 16px;
    background: var(--theme-surface-soft);
    flex-wrap: wrap;
}

.setup-checklist-copy {
    flex: 1 1 320px;
}

.setup-checklist-topline {
    margin-bottom: 0.45rem;
}

.setup-step-status {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: var(--theme-accent-soft);
    color: var(--theme-accent-deep);
    border: 1px solid var(--theme-accent-soft-strong);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.setup-step-status-optional {
    background: var(--theme-warm-soft);
    color: var(--theme-warm-text);
    border-color: var(--theme-warm-border);
}

.setup-checklist-title {
    margin: 0 0 0.4rem;
    color: var(--theme-heading);
    font-size: 1.05rem;
}

.setup-checklist-description {
    color: var(--theme-text);
    line-height: 1.7;
}

.setup-checklist-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    align-items: center;
}

.setup-checklist-step.is-completed {
    background: var(--theme-surface);
}

.setup-checklist-step.is-completed .setup-checklist-title {
    text-decoration: line-through;
    text-decoration-thickness: 0.08em;
    text-decoration-color: var(--theme-accent-soft-strong);
}

.setup-checklist-step.is-completed .setup-step-status {
    background: var(--theme-badge-bg);
    color: var(--theme-badge-text);
    border-color: transparent;
}

.password-guidance {
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    background: var(--theme-surface-soft);
}

.password-guidance-title {
    margin: 0 0 0.5rem;
    font-weight: 700;
    color: var(--theme-heading);
}

.password-guidance-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.35rem;
}

.password-guidance-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--theme-muted);
}

.password-guidance-item::before {
    content: "\2022";
    color: var(--theme-muted);
    font-weight: 700;
}

.password-guidance-item.is-active {
    color: var(--theme-heading);
}

.password-guidance-item.is-active::before {
    content: "\25E6";
    color: var(--theme-muted);
}

.password-guidance-item.is-met {
    color: var(--theme-accent-strong);
}

.password-guidance-item.is-met::before {
    content: "\2713";
    color: var(--theme-accent-deep);
}

.booking-timezone-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.booking-timezone-select-wrap {
    min-width: min(100%, 280px);
}

.availability-days-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.availability-day-card,
.availability-override-card {
    display: grid;
    gap: 1rem;
}

.availability-card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.availability-enabled-toggle {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--theme-border);
    border-radius: 999px;
    background: var(--theme-surface-soft);
}

.availability-interval-list {
    display: grid;
    gap: 0.85rem;
}

.availability-interval-list-hidden {
    display: none;
}

.availability-interval-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: end;
    padding: 0.85rem;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    background: var(--theme-surface-soft);
}

.availability-interval-actions {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    grid-column: 1 / -1;
}

.availability-override-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.availability-override-fields {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: end;
}

@media (max-width: 767.98px) {
    .availability-days-grid {
        grid-template-columns: 1fr;
    }

    .availability-interval-row {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .availability-days-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.stats-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--theme-muted);
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.app-table th {
    font-weight: 700;
}

.role-badge {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.role-owner {
    background: var(--theme-accent-soft);
    color: var(--theme-accent-deep);
}

.role-member {
    background: var(--theme-warm-soft);
    color: var(--theme-warm-text);
}

.empty-state {
    color: var(--theme-muted);
    margin-bottom: 0;
}

.token-cell {
    max-width: 280px;
    word-break: break-all;
    font-family: monospace;
    font-size: 0.9rem;
}

.invite-form .form-control,
.invite-form .form-select {
    min-height: 48px;
}


.booking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: start;
}

.booking-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.booking-calendar-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.booking-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}

    .booking-calendar-weekdays div {
        text-align: center;
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--theme-muted);
    }

.booking-calendar-grid-seven {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.4rem;
}

.booking-date-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.3rem 0.15rem;
    border: 2px solid var(--theme-slot-border);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    background: var(--theme-slot-bg);
    transition: all 0.2s ease;
}

    .booking-date-card:hover {
        text-decoration: none;
        border-color: var(--theme-accent-deep);
        background: var(--theme-slot-hover);
        transform: translateY(-1px);
    }

    .booking-date-card.selected {
        border-color: var(--theme-accent-deep);
        background: var(--theme-slot-selected);
        box-shadow: 0 0 0 3px var(--theme-focus-ring);
    }

    .booking-date-card.disabled {
        border: 1px solid var(--theme-border);
        background: var(--theme-disabled-bg);
        color: var(--theme-disabled-text);
        opacity: 0.75;
    }

    .booking-date-card.placeholder {
        visibility: hidden;
        border: none;
        background: transparent;
        box-shadow: none;
        min-height: 52px;
    }

.booking-date-number {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
}

.booking-slot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.booking-slot-button {
    border: 1px solid var(--theme-border);
    background: var(--theme-surface-strong);
    color: var(--theme-heading);
    border-radius: 10px;
    padding: 0.55rem 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .booking-slot-button:hover {
        border-color: var(--theme-accent-deep);
        background: var(--theme-slot-hover);
    }

.booking-slot-button.selected {
        border-color: var(--theme-accent-deep);
        background: var(--theme-slot-selected);
        color: var(--theme-slot-selected-text);
    }

.booking-confirmation-shell {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.booking-confirmation-card {
    background:
        radial-gradient(circle at top right, var(--theme-glow), transparent 32%),
        linear-gradient(180deg, var(--theme-surface-strong), var(--theme-surface-soft));
    box-shadow: 0 18px 36px var(--theme-shadow);
}

.booking-confirmation-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: var(--theme-badge-bg);
    color: var(--theme-badge-text);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.booking-confirmation-title {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.booking-confirmation-lead {
    margin: 0.9rem 0 0;
    color: var(--theme-text);
    font-size: 1rem;
    line-height: 1.7;
}

.booking-confirmation-helper {
    margin: 0.85rem 0 0;
    color: var(--theme-muted);
}

.booking-confirmation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.85rem;
    margin-top: 1.2rem;
}

.booking-confirmation-item {
    padding: 0.9rem 1rem;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    background: var(--theme-surface);
}

.booking-confirmation-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--theme-muted);
    font-weight: 700;
}

.booking-confirmation-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.booking-confirmation-note {
    margin-top: 1.1rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    background: var(--theme-surface);
}

.booking-confirmation-details hr {
    border-color: var(--theme-border);
    opacity: 1;
}

.booking-filter-tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.booking-filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: end;
}

.booking-filter-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.booking-group + .booking-group {
    margin-top: 1.5rem;
}

.booking-group-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.booking-group-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

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

@media (max-width: 700px) {
    .booking-calendar-weekdays,
    .booking-calendar-grid-seven {
        gap: 0.3rem;
    }

    .booking-date-card,
    .booking-date-card.placeholder {
        min-height: 46px;
    }

    .booking-date-number {
        font-size: 0.85rem;
    }
}

.marketing-shell {
    display: grid;
    gap: 1.4rem;
    margin-bottom: 2.5rem;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
    gap: 1.25rem;
    padding: 2rem;
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(19, 36, 46, 0.96), rgba(34, 63, 74, 0.92)),
        linear-gradient(180deg, #10222d, #27475a);
    color: #fdf9f0;
    box-shadow: 0 22px 56px rgba(17, 24, 39, 0.18);
    overflow: hidden;
    position: relative;
}

.hero-panel-light {
    padding: 2.4rem;
    border: 1px solid var(--theme-border);
    background: linear-gradient(180deg, var(--theme-surface-strong), var(--theme-surface-soft));
    color: var(--theme-heading);
    box-shadow: 0 24px 54px var(--theme-shadow);
}

.hero-panel::after {
    content: "";
    position: absolute;
    right: -90px;
    top: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(234, 179, 8, 0.16);
    filter: blur(4px);
}

.hero-panel-light::after {
    right: -120px;
    top: -100px;
    width: 300px;
    height: 300px;
    background: var(--theme-glow);
    filter: blur(18px);
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero-brand-lockup {
    display: block;
    width: min(220px, 60%);
    height: auto;
    margin-bottom: 1.1rem;
}

.hero-kicker {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--theme-accent-deep);
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.hero-panel h1,
.section-heading h2,
.story-card h2,
.preview-card h2,
.final-callout-card h2,
.feature-rail-card h3 {
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.hero-panel h1 {
    font-size: clamp(2.35rem, 5vw, 4.3rem);
    line-height: 1.02;
    margin: 0 0 1rem;
    max-width: 11.5ch;
}

.hero-lead {
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 58ch;
    color: var(--theme-text);
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.4rem;
}

.hero-microcopy {
    margin-top: 0.9rem;
    color: var(--theme-muted);
    font-size: 0.92rem;
}

.hero-preview-grid {
    display: grid;
    gap: 1rem;
    align-self: stretch;
    position: relative;
    z-index: 1;
}

.marketing-card {
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: 22px;
    padding: 1.35rem;
    box-shadow: 0 14px 30px var(--theme-shadow);
}

.accent-card {
    background: var(--theme-surface-soft);
}

.preview-card {
    display: grid;
    gap: 0.85rem;
}

.preview-card h2 {
    margin: 0;
    font-size: 1.55rem;
}

.preview-card p,
.feature-rail-card p,
.story-card p,
.proof-item p,
.final-callout-card p,
.role-preview-list span {
    color: var(--theme-text);
    line-height: 1.65;
}

.preview-card-soft {
    background: var(--theme-surface-soft);
}

.preview-topline {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--theme-accent-deep);
    font-weight: 700;
}

.mini-slot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.mini-slot {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
}

.mini-slot.available {
    background: var(--theme-accent-soft);
    color: var(--theme-accent-deep);
    border: 1px solid var(--theme-accent-soft-strong);
}

.mini-slot.busy {
    background: var(--theme-warm-soft);
    color: var(--theme-warm-text);
    border: 1px solid var(--theme-warm-border);
}

.role-preview-list {
    display: grid;
    gap: 0.9rem;
}

.role-preview-list strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--theme-heading);
}

.stat-caption {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--theme-accent-deep);
    font-weight: 700;
}

.proof-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.proof-item {
    background: var(--theme-proof-surface);
    border: 1px solid var(--theme-proof-border);
    border-radius: 18px;
    padding: 1rem 1.1rem;
}

.proof-number {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-weight: 700;
    color: var(--theme-accent-deep);
}

.story-grid,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.story-card p,
.pricing-card p {
    margin-bottom: 0;
}

.story-grid-wide {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.story-card-accent {
    background: var(--theme-surface-soft);
}

.feature-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.marketing-steps-grid,
.help-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.marketing-step-card h3 {
    margin: 0.45rem 0 0.7rem;
    font-size: 1.3rem;
    color: var(--theme-heading);
}

.marketing-step-card p,
.marketing-roadmap-grid .dashboard-roadmap-card,
.help-category-card p {
    color: var(--theme-text);
}

.faq-section {
    display: grid;
    gap: 1rem;
}

.faq-accordion .accordion-item {
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 24px var(--theme-shadow);
}

.faq-accordion .accordion-item + .accordion-item {
    margin-top: 0.85rem;
}

.faq-accordion .accordion-button {
    background: var(--theme-surface);
    color: var(--theme-heading);
    font-weight: 700;
    box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--theme-surface-soft);
    color: var(--theme-heading);
}

.faq-accordion .accordion-button:focus {
    box-shadow: inset 0 0 0 1px var(--theme-accent-soft-strong);
}

.faq-accordion .accordion-body {
    background: var(--theme-surface);
    color: var(--theme-text);
    line-height: 1.7;
}

.help-search-card {
    position: sticky;
    top: 1rem;
    z-index: 10;
}

.help-category-card[hidden],
.faq-accordion .accordion-item[hidden] {
    display: none !important;
}

.feature-rail-card {
    min-height: 100%;
}

.feature-rail-card h3 {
    margin: 0.2rem 0 0.7rem;
    font-size: 1.35rem;
    color: var(--theme-heading);
}

.section-heading {
    margin-bottom: 1rem;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.section-lead {
    margin: 0.65rem 0 0;
    max-width: 48ch;
    color: var(--theme-muted);
}

.pricing-card {
    position: relative;
    overflow: hidden;
}

.pricing-card-current,
.featured-tier {
    border-color: var(--theme-accent);
    box-shadow: 0 18px 38px var(--theme-featured-shadow);
}

.pricing-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: var(--theme-badge-bg);
    color: var(--theme-badge-text);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pricing-amount {
    margin: 1rem 0 0.9rem;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
}

.pricing-amount span {
    font-size: 0.95rem;
    color: var(--theme-muted);
    font-weight: 600;
}

.marketing-list {
    padding-left: 1.1rem;
    margin: 0.75rem 0 0;
}

.marketing-list li + li {
    margin-top: 0.45rem;
}

.final-callout-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.4rem;
    background: var(--theme-surface-soft);
}

.final-callout-card h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.final-callout-card p {
    margin: 0.75rem 0 0;
    max-width: 54ch;
}

@media (max-width: 960px) {
    .hero-panel {
        grid-template-columns: 1fr;
    }

    .proof-strip,
    .feature-rail,
    .story-grid-wide {
        grid-template-columns: 1fr;
    }

    .final-callout-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

.footer {
    border-color: var(--theme-border) !important;
    color: var(--theme-muted) !important;
}

.footer a {
    color: var(--theme-accent-deep);
}

.table {
    color: var(--theme-heading);
}

.table > :not(caption) > * > * {
    background-color: transparent;
    border-bottom-color: var(--theme-border);
    color: inherit;
}

.booking-link-cell {
    min-width: 320px;
}

.booking-link-cell .form-control[readonly] {
    font-size: 0.88rem;
}

.form-control,
.form-select {
    background-color: var(--theme-surface-strong);
    border-color: var(--theme-border);
    color: var(--theme-heading);
}

.form-control[readonly] {
    background-color: var(--theme-surface-strong);
    color: var(--theme-heading);
    -webkit-text-fill-color: var(--theme-heading);
    opacity: 1;
}

.form-control:disabled {
    background-color: var(--theme-surface-soft);
    border-color: var(--theme-border);
    color: var(--theme-heading);
    -webkit-text-fill-color: var(--theme-heading);
    opacity: 1;
}

.form-control-plaintext {
    color: var(--theme-heading);
}

.form-control::placeholder {
    color: var(--theme-muted);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--theme-surface-strong);
    border-color: var(--theme-accent-deep);
    color: var(--theme-heading);
}

.form-control[type="date"],
.form-control[type="time"],
.form-control[type="datetime-local"] {
    color: var(--theme-heading);
    -webkit-text-fill-color: var(--theme-heading);
}

[data-theme="dark"] .form-control[type="date"],
[data-theme="dark"] .form-control[type="time"],
[data-theme="dark"] .form-control[type="datetime-local"] {
    color-scheme: dark;
}

[data-theme="light"] .form-control[type="date"],
[data-theme="light"] .form-control[type="time"],
[data-theme="light"] .form-control[type="datetime-local"] {
    color-scheme: light;
}

.form-control[type="date"]::-webkit-date-and-time-value,
.form-control[type="time"]::-webkit-date-and-time-value,
.form-control[type="datetime-local"]::-webkit-date-and-time-value {
    text-align: left;
    color: var(--theme-heading);
}

.availability-time-select {
    width: 100%;
    min-width: 0;
}

.navbar-toggler {
    border-color: var(--theme-border);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem var(--theme-focus-ring);
}

[data-theme="dark"] .navbar-toggler-icon {
    filter: invert(1) brightness(1.8);
}

@media (max-width: 767.98px) {
    .setup-checklist-step {
        padding: 0.95rem;
    }
}

@media (max-width: 700px) {
    .brand-lockup {
        width: 168px;
    }

    .navbar-utility-group {
        width: 100%;
        justify-content: flex-start;
        margin-top: 0.75rem;
        flex-wrap: wrap;
    }

    .theme-toggle-button {
        min-width: 0;
    }
}
