/* ═══════════════════════════════════════════════════════════════════════════════
   SVFF Online — Public Booking Page (Calendly-style)
   Standalone CSS for /book/{slug} pages.
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ───────────────────────────────────────────────────────── */
:root {
    --pb-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 40%, #b91c1c 70%, #991b1b 100%);
    --pb-red: #dc2626;
    --pb-red-dark: #b91c1c;
    --pb-red-light: #fef2f2;
    --pb-navy: #1a1a2e;
    --pb-text: #374151;
    --pb-text-muted: #6b7280;
    --pb-text-subtle: #9ca3af;
    --pb-border: #e5e7eb;
    --pb-border-light: #f3f4f6;
    --pb-bg: #ffffff;
    --pb-bg-subtle: #f9fafb;
    --pb-radius: 16px;
    --pb-radius-sm: 12px;
    --pb-radius-xs: 8px;
    --pb-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    --pb-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --pb-shadow-red: 0 8px 24px rgba(220, 38, 38, 0.25);
    --pb-transition: 0.2s ease;
}

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

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--pb-bg-subtle);
    color: var(--pb-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* ─── Container ───────────────────────────────────────────────────────────── */
.pb-container {
    display: flex;
    min-height: 100vh;
    background: var(--pb-bg);
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.06);
}

/* ─── Left Panel ──────────────────────────────────────────────────────────── */
.pb-left {
    width: 380px;
    flex-shrink: 0;
    border-right: 1px solid var(--pb-border);
    padding: 0 40px 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--pb-bg);
}

.pb-accent-bar {
    height: 4px;
    background: var(--pb-gradient);
    margin: 0 -40px 32px;
    border-radius: 0;
}

.pb-logo-link {
    display: inline-block;
    margin-bottom: 28px;
}

.pb-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: var(--pb-shadow);
}

.pb-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--pb-red);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.15);
    margin-bottom: 20px;
}

.pb-teacher-name {
    font-size: 24px;
    font-weight: 800;
    color: var(--pb-navy);
    margin-bottom: 8px;
    line-height: 1.2;
}

.pb-teacher-bio {
    font-size: 14px;
    color: var(--pb-text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── Lesson Info ─────────────────────────────────────────────────────────── */
.pb-lesson-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 24px;
    border-top: 1px solid var(--pb-border-light);
}

.pb-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--pb-text-muted);
}

.pb-info-row svg {
    flex-shrink: 0;
    color: var(--pb-text-subtle);
}

/* ─── Powered By ──────────────────────────────────────────────────────────── */
.pb-powered {
    margin-top: auto;
    padding-top: 32px;
    font-size: 12px;
    color: var(--pb-text-subtle);
}

.pb-powered a {
    color: var(--pb-text-muted);
    text-decoration: none;
}

.pb-powered a:hover {
    color: var(--pb-red);
}

/* ─── Right Panel ─────────────────────────────────────────────────────────── */
.pb-right {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    max-width: 680px;
    margin: 0 auto;
}

/* ─── Toolbar (duration + timezone) ───────────────────────────────────────── */
.pb-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.pb-duration-toggle {
    display: flex;
    background: var(--pb-bg-subtle);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-xs);
    overflow: hidden;
}

.pb-dur-btn {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    background: transparent;
    color: var(--pb-text-muted);
    cursor: pointer;
    transition: all var(--pb-transition);
}

.pb-dur-btn--active {
    background: var(--pb-gradient);
    color: #fff;
}

.pb-dur-btn:hover:not(.pb-dur-btn--active) {
    background: var(--pb-border-light);
}

.pb-tz-picker {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--pb-text-subtle);
}

.pb-tz-picker svg {
    flex-shrink: 0;
}

.pb-tz-picker select {
    font-family: inherit;
    font-size: 13px;
    color: var(--pb-text-muted);
    background: var(--pb-bg-subtle);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-xs);
    padding: 6px 28px 6px 10px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.pb-tz-picker select:focus {
    outline: none;
    border-color: var(--pb-red);
}

/* ─── Main: Calendar + Slots side by side ──────────────────────────────────── */
.pb-main {
    display: flex;
    gap: 32px;
    transition: all 0.3s ease;
    justify-content: center;
}

.pb-main--with-slots {
    justify-content: flex-start;
}

.pb-cal-wrap {
    flex: 2;
    min-width: 0;
}

.pb-slots-panel {
    flex: 1;
    min-width: 0;
    animation: pb-fadeIn 0.3s ease;
}

.pb-slots-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--pb-navy);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--pb-border-light);
}

/* ─── Steps ───────────────────────────────────────────────────────────────── */
.pb-step {
    animation: pb-fadeIn 0.3s ease;
}

@keyframes pb-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

.pb-step-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--pb-navy);
    margin-bottom: 20px;
}

/* ─── Calendar ────────────────────────────────────────────────────────────── */
.pb-calendar {
    max-width: 100%;
}

.pb-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.pb-cal-month {
    font-size: 16px;
    font-weight: 700;
    color: var(--pb-navy);
}

.pb-cal-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-xs);
    background: var(--pb-bg);
    cursor: pointer;
    color: var(--pb-text);
    transition: all var(--pb-transition);
}

.pb-cal-nav-btn:hover:not(:disabled) {
    background: var(--pb-bg-subtle);
    border-color: #d1d5db;
}

.pb-cal-nav-btn:disabled {
    cursor: not-allowed;
}

.pb-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.pb-cal-hdr {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--pb-text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 0;
}

#pb-cal-days {
    display: contents;
}

.pb-cal-day {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 2px auto;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 500;
    color: var(--pb-text);
    cursor: pointer;
    transition: all var(--pb-transition);
    position: relative;
    user-select: none;
}

.pb-cal-day:hover:not(.pb-cal-day--disabled):not(.pb-cal-day--empty):not(.pb-cal-day--selected) {
    background: var(--pb-red-light);
    color: var(--pb-red);
}

.pb-cal-day--today {
    font-weight: 700;
    color: var(--pb-red);
}

.pb-cal-day--today::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--pb-red);
}

.pb-cal-day--selected {
    background: var(--pb-gradient) !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.pb-cal-day--selected::after {
    display: none;
}

/* Availability dot (date has open slots) */
.pb-cal-day--available:not(.pb-cal-day--selected):not(.pb-cal-day--today)::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--pb-red);
    opacity: 0.6;
}

.pb-cal-day--available:not(.pb-cal-day--disabled) {
    font-weight: 600;
    color: var(--pb-text);
}

.pb-cal-day--disabled {
    color: #d1d5db;
    cursor: default;
    pointer-events: none;
}

/* Calendar loading overlay */
.pb-cal-loading {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 5;
    border-radius: 12px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}
.pb-cal-loading-spinner {
    width: 22px;
    height: 22px;
    border: 2.5px solid #e5e7eb;
    border-top-color: var(--pb-red, #B23A48);
    border-radius: 50%;
    animation: pb-spin .7s linear infinite;
}
@keyframes pb-spin { to { transform: rotate(360deg); } }

.pb-cal-day--empty {
    cursor: default;
    pointer-events: none;
}

/* ─── Back Button ─────────────────────────────────────────────────────────── */
.pb-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--pb-text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 0;
    margin-bottom: 20px;
    font-family: inherit;
    transition: color var(--pb-transition);
}

.pb-back:hover {
    color: var(--pb-red);
}

.pb-back svg {
    flex-shrink: 0;
}

/* ─── Slots ───────────────────────────────────────────────────────────────── */
.pb-slots {
    min-height: 100px;
}

.pb-slots-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--pb-text-subtle);
    font-size: 14px;
}

.pb-loading-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}

.pb-loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pb-red);
    opacity: 0.3;
    animation: pb-dot 1.2s ease-in-out infinite;
}

.pb-loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.pb-loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pb-dot {
    0%, 80%, 100% { opacity: 0.3; transform: scale(1); }
    40% { opacity: 1; transform: scale(1.2); }
}

.pb-slots-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--pb-text-subtle);
    font-size: 14px;
}

.pb-slots-empty p {
    margin: 0;
}

.pb-slots-empty-hint {
    font-size: 13px;
    color: #d1d5db;
    margin-top: 4px !important;
}

.pb-retry-btn {
    margin-top: 12px;
    padding: 8px 20px;
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-xs);
    background: var(--pb-bg);
    color: var(--pb-text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--pb-transition);
}

.pb-retry-btn:hover {
    border-color: var(--pb-red);
    color: var(--pb-red);
}

.pb-slots-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.pb-slots-list::-webkit-scrollbar {
    width: 4px;
}

.pb-slots-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.pb-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border: 2px solid var(--pb-border);
    border-radius: var(--pb-radius-xs);
    background: var(--pb-bg);
    cursor: pointer;
    transition: all var(--pb-transition);
    font-family: inherit;
    width: 100%;
}

.pb-slot:hover {
    border-color: var(--pb-red);
    background: var(--pb-red-light);
}

.pb-slot:active {
    transform: scale(0.97);
}

.pb-slot-time {
    font-size: 14px;
    font-weight: 600;
    color: var(--pb-navy);
}

.pb-slot:hover .pb-slot-time {
    color: var(--pb-red);
}

/* ─── Confirm Card ────────────────────────────────────────────────────────── */
.pb-confirm-card {
    background: var(--pb-bg-subtle);
    border: 1px solid var(--pb-border-light);
    border-radius: var(--pb-radius);
    padding: 4px 0;
    margin-bottom: 24px;
    overflow: hidden;
}

.pb-confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--pb-border-light);
}

.pb-confirm-row:last-child {
    border-bottom: none;
}

.pb-confirm-label {
    font-size: 14px;
    color: var(--pb-text-subtle);
}

.pb-confirm-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--pb-navy);
    text-align: right;
}

/* ─── Notes ───────────────────────────────────────────────────────────────── */
.pb-notes-wrap {
    margin-bottom: 24px;
}

.pb-notes-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--pb-text-muted);
    margin-bottom: 6px;
}

.pb-notes {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--pb-border);
    border-radius: var(--pb-radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--pb-text);
    background: var(--pb-bg);
    resize: vertical;
    transition: border-color var(--pb-transition), box-shadow var(--pb-transition);
    min-height: 80px;
}

.pb-notes:focus {
    outline: none;
    border-color: var(--pb-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.pb-notes::placeholder {
    color: #d1d5db;
}

/* ─── Confirm Button ──────────────────────────────────────────────────────── */
.pb-confirm-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    background: var(--pb-gradient);
    color: #fff;
    border: none;
    border-radius: var(--pb-radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--pb-transition);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.pb-confirm-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--pb-shadow-red);
}

.pb-confirm-btn:active:not(:disabled) {
    transform: translateY(0);
}

.pb-confirm-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ─── Confirm Error ───────────────────────────────────────────────────────── */
.pb-confirm-error {
    background: var(--pb-red-light);
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: var(--pb-radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    margin-top: 16px;
    text-align: center;
}

/* ─── Success ─────────────────────────────────────────────────────────────── */
.pb-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    animation: pb-fadeIn 0.4s ease;
}

.pb-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
    animation: pb-scaleIn 0.4s ease;
}

@keyframes pb-scaleIn {
    from { transform: scale(0); opacity: 0; }
    50%  { transform: scale(1.1); }
    to   { transform: scale(1); opacity: 1; }
}

.pb-success-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--pb-navy);
    margin-bottom: 8px;
}

.pb-success-text {
    font-size: 14px;
    color: var(--pb-text-muted);
    margin-bottom: 28px;
    max-width: 320px;
    line-height: 1.6;
}

.pb-success-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--pb-gradient);
    color: #fff;
    border-radius: var(--pb-radius-sm);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--pb-transition);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
    margin-bottom: 16px;
}

.pb-success-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--pb-shadow-red);
}

.pb-success-link {
    font-size: 14px;
    color: var(--pb-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--pb-transition);
}

.pb-success-link:hover {
    color: var(--pb-red);
}

/* ─── Empty State (no availability) ───────────────────────────────────────── */
.pb-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
}

.pb-empty-icon {
    margin-bottom: 20px;
}

.pb-empty h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--pb-navy);
    margin-bottom: 8px;
}

.pb-empty p {
    font-size: 14px;
    color: var(--pb-text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.pb-empty-link {
    color: var(--pb-red);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.pb-empty-link:hover {
    text-decoration: underline;
}

/* ─── Policy Notice ──────────────────────────────────────────────────────── */
.pb-policy {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--pb-border-light);
}

.pb-policy-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--pb-text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.pb-policy-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pb-policy-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    color: var(--pb-text-muted);
    line-height: 1.5;
}

.pb-policy-item svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--pb-text-subtle);
}

/* Confirm-step policy (compact) */
.pb-confirm-policy {
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--pb-bg-subtle);
    border: 1px solid var(--pb-border-light);
    border-radius: var(--pb-radius-xs);
    font-size: 12px;
    color: var(--pb-text-subtle);
    line-height: 1.6;
}

.pb-confirm-policy strong {
    color: var(--pb-text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── Mobile More Info Toggle ────────────────────────────────────────────── */
.pb-mobile-more {
    display: none;
}

.pb-mobile-more-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--pb-text-muted);
    cursor: pointer;
    padding: 6px 0;
    list-style: none;
    font-family: inherit;
    font-weight: 500;
}

.pb-mobile-more-toggle::-webkit-details-marker {
    display: none;
}

.pb-mobile-more-toggle::marker {
    display: none;
    content: '';
}

.pb-mobile-more[open] .pb-mobile-more-toggle {
    margin-bottom: 10px;
}

.pb-mobile-more-content {
    text-align: left;
    padding: 12px 16px;
    background: var(--pb-bg-subtle);
    border-radius: var(--pb-radius-xs);
    border: 1px solid var(--pb-border-light);
}

/* ─── Tablet ──────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .pb-left {
        width: 320px;
        padding: 0 28px 28px;
    }

    .pb-accent-bar {
        margin: 0 -28px 24px;
    }

    .pb-right {
        padding: 28px;
    }
}

/* ─── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    body {
        background: var(--pb-bg);
    }

    .pb-container {
        flex-direction: column;
        min-height: auto;
        box-shadow: none;
    }

    .pb-left {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--pb-border);
        padding: 0 20px 16px;
        text-align: center;
        align-items: center;
        gap: 0;
    }

    .pb-accent-bar {
        margin: 0 -20px 20px;
    }

    .pb-teacher-bio {
        display: none;
    }

    .pb-policy {
        display: none;
    }

    .pb-mobile-more {
        display: block;
        margin-top: 8px;
    }

    .pb-logo-link {
        margin-bottom: 14px;
    }

    .pb-logo {
        width: 36px;
        height: 36px;
    }

    .pb-avatar {
        width: 56px;
        height: 56px;
        margin-bottom: 8px;
    }

    .pb-teacher-name {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .pb-lesson-info {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 12px;
        padding-top: 10px;
    }

    .pb-info-row {
        font-size: 12px;
    }

    .pb-info-row svg {
        width: 14px;
        height: 14px;
    }

    .pb-powered {
        display: none;
    }

    .pb-right {
        padding: 24px;
        max-width: none;
    }

    .pb-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .pb-duration-toggle {
        justify-content: center;
    }

    .pb-tz-picker {
        justify-content: center;
    }

    .pb-main {
        flex-direction: column;
        gap: 24px;
    }

    .pb-step-title {
        font-size: 18px;
    }

    .pb-cal-day {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }

    .pb-slots-list {
        max-height: none;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .pb-slot {
        padding: 12px 8px;
    }

    .pb-slot-time {
        font-size: 14px;
    }

    .pb-confirm-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 10px 16px;
    }

    .pb-confirm-btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .pb-success-title {
        font-size: 20px;
    }

    .pb-slot { min-height: 44px; }
    .pb-tz-picker select { min-height: 44px; padding: 8px 28px 8px 10px; }
}

/* ─── Small Mobile ────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .pb-left {
        padding: 0 16px 20px;
    }

    .pb-accent-bar {
        margin: 0 -16px 16px;
    }

    .pb-avatar {
        width: 48px;
        height: 48px;
        margin-bottom: 6px;
    }

    .pb-teacher-name {
        font-size: 16px;
    }

    .pb-lesson-info {
        padding-top: 8px;
    }

    .pb-right {
        padding: 20px 16px;
    }

    .pb-slots-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .pb-cal-day {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .pb-cal-hdr {
        font-size: 11px;
    }
}

/* ─── Large Desktop ───────────────────────────────────────────────────────── */
@media (min-width: 1200px) {
    .pb-container {
        border-radius: var(--pb-radius);
        margin-top: 40px;
        margin-bottom: 40px;
        min-height: calc(100vh - 80px);
        overflow: hidden;
    }

    .pb-accent-bar {
        border-radius: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   DARK MODE
   ═══════════════════════════════════════════════════════════════════════════════ */
[data-theme="dark"] {
    --pb-text: #e2e8f0;
    --pb-text-muted: #94a3b8;
    --pb-text-subtle: #64748b;
    --pb-border: #334155;
    --pb-border-light: #1e293b;
    --pb-bg: #1e293b;
    --pb-bg-subtle: #0f172a;
    --pb-shadow: 0 1px 3px rgba(0,0,0,.3);
    --pb-shadow-md: 0 4px 16px rgba(0,0,0,.4);
}
[data-theme="dark"] .pb-container { background: #1e293b; box-shadow: 0 4px 20px rgba(0,0,0,.5); }
[data-theme="dark"] .pb-left { background: #0f172a; border-right-color: #334155; }
[data-theme="dark"] .pb-teacher-name { color: #f1f5f9; }
[data-theme="dark"] .pb-teacher-badges .badge { background: #334155; color: #cbd5e1; border-color: #475569; }
[data-theme="dark"] .pb-bio { color: #94a3b8; }
[data-theme="dark"] .pb-lesson-details { background: rgba(255,255,255,.03); border-color: #334155; }
[data-theme="dark"] .pb-detail-label { color: #94a3b8; }
[data-theme="dark"] .pb-detail-value { color: #e2e8f0; }
[data-theme="dark"] .pb-policy { background: rgba(255,255,255,.03); border-color: #334155; }
[data-theme="dark"] .pb-policy-item span { color: #94a3b8; }
[data-theme="dark"] .pb-powered { color: #475569; border-top-color: #334155; }
[data-theme="dark"] .pb-powered a { color: #64748b; }
[data-theme="dark"] .pb-right { background: #1e293b; }
[data-theme="dark"] .pb-toolbar { border-bottom-color: #334155; }
[data-theme="dark"] .pb-dur-btn { background: #0f172a; border-color: #475569; color: #cbd5e1; }
[data-theme="dark"] .pb-dur-btn.active { background: var(--pb-red); border-color: var(--pb-red); color: #fff; }
[data-theme="dark"] .pb-tz-select { background: #0f172a; border-color: #475569; color: #cbd5e1; }
[data-theme="dark"] .pb-cal-day { color: #cbd5e1; }
[data-theme="dark"] .pb-cal-day:hover { background: #334155; }
[data-theme="dark"] .pb-cal-day.selected { background: var(--pb-red); color: #fff; }
[data-theme="dark"] .pb-cal-day.today { border-color: var(--pb-red); }
[data-theme="dark"] .pb-slot { background: #0f172a; border-color: #475569; color: #cbd5e1; }
[data-theme="dark"] .pb-slot:hover { background: rgba(220,38,38,.1); border-color: var(--pb-red); color: #fca5a5; }
[data-theme="dark"] .pb-slot.selected { background: var(--pb-red); border-color: var(--pb-red); color: #fff; }
[data-theme="dark"] .pb-confirm-card { background: #0f172a; border-color: #334155; }
[data-theme="dark"] .pb-confirm-label { color: #94a3b8; }
[data-theme="dark"] .pb-confirm-value { color: #f1f5f9; }
[data-theme="dark"] .pb-confirm-policy { background: #0f172a; border-color: #334155; color: #94a3b8; }
[data-theme="dark"] .pb-notes-input { background: #0f172a; border-color: #475569; color: #e2e8f0; }
[data-theme="dark"] .pb-success { color: #f1f5f9; }
[data-theme="dark"] .pb-success-text { color: #94a3b8; }
[data-theme="dark"] .pb-no-avail { color: #94a3b8; }
[data-theme="dark"] .pb-login-prompt { background: #0f172a; border-color: #334155; }
[data-theme="dark"] .pb-login-prompt p { color: #94a3b8; }
