        /* Login Modal */
        .login-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(15, 23, 42, 0.92);
            backdrop-filter: blur(8px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            padding: 16px;
        }

        .login-modal {
            background: linear-gradient(180deg, #1e293b 0%, #172033 100%);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 24px;
            padding: var(--bp-space-6);
            max-width: 340px;
            width: 100%;
            text-align: center;
            box-shadow:
                0 0 0 1px rgba(255,255,255,0.03) inset,
                0 24px 80px -12px rgba(0, 0, 0, 0.5),
                0 0 120px -40px rgba(121, 172, 43, 0.08);
        }

        .login-modal h3 {
            color: white;
            font-size: var(--bp-fs-h2);
            font-weight: 600;
            margin-bottom: 4px;
        }

        .login-modal p {
            color: #64748b;
            font-size: var(--bp-fs-secondary);
            margin-bottom: 16px;
            line-height: 1.4;
        }

        /* Step icon in modal */
        .modal-step-icon {
            width: 52px;
            height: 52px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 12px;
            font-size: var(--bp-fs-title);
            transition: all 0.3s ease;
        }

        .modal-step-icon.phone {
            background: rgba(121, 172, 43, 0.1);
            border: 1px solid rgba(121, 172, 43, 0.2);
            color: var(--bp-green);
        }

        .modal-step-icon.otp {
            background: rgba(56, 189, 248, 0.1);
            border: 1px solid rgba(56, 189, 248, 0.2);
            color: #38bdf8;
        }

        .login-modal-close {
            background: transparent;
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 10px;
            color: #475569;
            font-size: var(--bp-fs-secondary);
            cursor: pointer;
            padding: 8px 14px;
            margin-top: 16px;
            transition: all 0.15s ease;
        }

        @media (hover: hover) and (pointer: fine) {
            .login-modal-close:hover {
                color: #94a3b8;
                border-color: rgba(255,255,255,0.15);
                background: rgba(255,255,255,0.02);
            }
        }

        /* Phone auth in modal */
        .modal-phone-input {
            width: 100%;
            padding: 13px 14px;
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.1);
            background: rgba(0,0,0,0.25);
            color: white;
            font-size: var(--bp-fs-body);
            outline: none;
            margin-bottom: 4px;
            text-align: center;
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .modal-phone-input:focus {
            border-color: rgba(121, 172, 43, 0.4);
            box-shadow: 0 0 0 3px rgba(121, 172, 43, 0.06);
        }

        .modal-phone-input::placeholder { color: #334155; }

        .modal-otp-input {
            width: 100%;
            padding: 14px;
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.1);
            background: rgba(0,0,0,0.25);
            color: white;
            font-size: var(--bp-fs-title);
            font-weight: 700;
            text-align: center;
            letter-spacing: 8px;
            outline: none;
            margin-bottom: 12px;
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .modal-otp-input:focus {
            border-color: rgba(56, 189, 248, 0.4);
            box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.06);
        }

        .modal-otp-input::placeholder { color: #1e293b; }

        .modal-submit-btn {
            width: 100%;
            background: linear-gradient(135deg, var(--bp-green) 0%, var(--bp-green-dark) 100%);
            color: white;
            border: none;
            border-radius: 12px;
            padding: 13px 20px;
            font-size: var(--bp-fs-body);
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            margin-bottom: 8px;
        }

        @media (hover: hover) and (pointer: fine) {
            .modal-submit-btn:hover:not(:disabled) {
                transform: translateY(-1px);
                box-shadow: 0 6px 20px rgba(121, 172, 43, 0.25);
            }
        }

        .modal-submit-btn:active:not(:disabled) {
            transform: translateY(0);
        }

        .modal-submit-btn:disabled {
            opacity: 0.45;
            cursor: not-allowed;
            transform: none;
        }

        .modal-back-btn {
            width: 100%;
            background: transparent;
            border: 1px solid rgba(255,255,255,0.08);
            color: #475569;
            border-radius: 10px;
            padding: 9px 14px;
            font-size: var(--bp-fs-secondary);
            cursor: pointer;
            transition: all 0.2s;
            margin-top: 8px;
        }

        @media (hover: hover) and (pointer: fine) {
            .modal-back-btn:hover {
                background: rgba(255,255,255,0.02);
                border-color: rgba(255,255,255,0.12);
                color: #94a3b8;
            }
        }

        .modal-resend-btn {
            background: transparent;
            border: none;
            color: #475569;
            font-size: var(--bp-fs-caption);
            cursor: pointer;
            padding: 6px 12px;
            transition: color 0.2s;
        }

        @media (hover: hover) and (pointer: fine) {
            .modal-resend-btn:hover:not(:disabled) { color: #94a3b8; }
        }

        .modal-resend-btn:disabled {
            /* Обратный отсчёт — не декорация: человек по нему понимает, когда
               сможет позвать код повторно. На 0.5 он читался как выключенный
               и терялся на тёмном фоне. */
            opacity: 1;
            color: #94a3b8;
            cursor: not-allowed;
        }

        .modal-error {
            background: rgba(239, 68, 68, 0.06);
            border: 1px solid rgba(239, 68, 68, 0.15);
            color: #f87171;
            border-radius: 10px;
            padding: 8px 12px;
            margin-bottom: 12px;
            font-size: var(--bp-fs-secondary);
        }

        /* consent-блок вынесен в _consent_block.html (единый для входа/оплаты/
           самозаписи, стили — там же). */

        .phone-display {
            color: #94a3b8;
            font-weight: 600;
        }

        /* Toast */
        .toast-container {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1100;
            width: calc(100% - 32px);
            max-width: 380px;
        }

        .toast-box {
            background: #1e293b;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 12px;
            padding: var(--bp-space-3) 16px;
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.4);
        }

        .toast-box.info {
            border-left: 3px solid #0088cc;
        }

        .toast-box.error {
            border-left: 3px solid #ef4444;
        }

        .toast-box.success {
            border-left: 3px solid var(--bp-green);
        }

        .toast-icon {
            font-size: var(--bp-fs-h3);
        }

        .toast-box.info .toast-icon { color: #0088cc; }
        .toast-box.error .toast-icon { color: #ef4444; }
        .toast-box.success .toast-icon { color: var(--bp-green); }

        .toast-content {
            flex: 1;
        }

        .toast-message {
            color: white;
            font-size: var(--bp-fs-body);
        }

        .toast-link {
            color: #0088cc;
            font-size: var(--bp-fs-secondary);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            margin-top: 4px;
        }

        @media (hover: hover) and (pointer: fine) {
            .toast-link:hover {
                color: #00aaff;
            }
        }

        .toast-close {
            background: transparent;
            border: none;
            color: #64748b;
            font-size: var(--bp-fs-h3);
            cursor: pointer;
            padding: 0;
        }

        @media (hover: hover) and (pointer: fine) {
            .toast-close:hover {
                color: white;
            }
        }

        /* Phase 5 review split-flow modal — paper-pass style, parity with .qr-pass. */
        .review-pass-body {
            padding: 24px 22px;
            position: relative;
            z-index: 1;
        }
        .review-pass-body h3 {
            font-size: var(--bp-fs-h3);
            font-weight: 700;
            margin: 0 0 8px;
            color: var(--bp-ink);
            text-align: center;
        }
        .review-pass-body p {
            color: var(--bp-ink-soft);
            font-size: var(--bp-fs-body);
            margin: 0 0 24px;
            text-align: center;
        }
        .review-pass-emoji {
            font-size: 44px;
            line-height: 1;
            text-align: center;
            margin-bottom: 12px;
        }
        .review-pass-btn {
            display: block;
            width: 100%;
            padding: 12px 16px;
            margin-bottom: 12px;
            border-radius: 10px;
            font-size: var(--bp-fs-body);
            font-weight: 600;
            cursor: pointer;
            border: 0;
            text-align: center;
            text-decoration: none;
            font-family: inherit;
            transition: opacity 0.15s, transform 0.05s;
        }
        @media (hover: hover) and (pointer: fine) {
            .review-pass-btn:hover { opacity: 0.92; }
        }
        .review-pass-btn:active { transform: translateY(1px); }
        .review-pass-btn:disabled { opacity: 0.4; cursor: default; }
        .review-pass-btn--positive {
            background: var(--bp-green);
            color: #fff;
        }
        .review-pass-btn--negative {
            background: var(--bp-paper-2, #f4ede0);
            color: var(--bp-ink);
            border: 1px solid rgba(23, 24, 26, 0.12);
        }
        .review-pass-btn--link {
            background: transparent;
            color: var(--bp-ink-soft);
            font-size: var(--bp-fs-body);
            font-weight: 500;
            padding: 8px;
            margin-top: 4px;
        }
        .review-pass-textarea {
            width: 100%;
            background: rgba(255, 255, 255, 0.6);
            border: 1px solid rgba(23, 24, 26, 0.15);
            border-radius: 10px;
            padding: 12px;
            color: var(--bp-ink);
            font-size: var(--bp-fs-body);
            font-family: inherit;
            outline: none;
            box-sizing: border-box;
            resize: vertical;
            transition: border-color 0.15s;
        }
        .review-pass-textarea:focus {
            border-color: var(--bp-green);
            box-shadow: 0 0 0 2px rgba(92, 138, 26, 0.25);
        }
        .review-pass-counter {
            display: flex;
            justify-content: space-between;
            font-size: var(--bp-fs-caption);
            color: var(--bp-ink-soft);
            margin: 4px 0 16px;
        }
        .review-pass-error {
            background: rgba(184, 53, 26, 0.12);
            color: #b8351a;
            padding: var(--bp-space-3) 12px;
            border-radius: 8px;
            margin-bottom: 12px;
            text-align: center;
            font-size: var(--bp-fs-body);
        }

        .booking-iframe-overlay {
            position: fixed;
            top: var(--header-h, 101px); /* fallback ~ two-row pillars header */
            left: 0;
            right: 0;
            bottom: 0;
            /* «Night court» atmosphere — page gradient + lime glow bleeding
               from under the green flow header. NB: the old var(--bp-bg) was
               never defined anywhere → transparent overlay, and the body's
               off-brand #1a1a2e read as a wrong-background stripe. */
            background:
                radial-gradient(640px 360px at 50% -120px, rgba(146, 196, 58, 0.16), transparent 65%),
                linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
            z-index: 99;
            display: flex;
            flex-direction: column;
        }

        .booking-iframe-header {
            flex-shrink: 0;
            background: var(--bp-green);
            border-bottom: 2px solid var(--bp-green-dark);
            padding: var(--bp-space-3) 16px;
        }

        .booking-iframe-header-inner {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 420px;
            margin: 0 auto;
        }

        .booking-iframe-header span {
            font-size: var(--bp-fs-h2);
            font-weight: 700;
            color: white;
        }

        .booking-iframe-close {
            background: rgba(0,0,0,0.2);
            border: none;
            border-radius: 50%;
            width: 36px;
            height: 36px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        @media (hover: hover) and (pointer: fine) {
            .booking-iframe-close:hover {
                background: rgba(0,0,0,0.35);
            }
        }
