        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: var(--white);
            padding: 2rem;
            border-radius: 16px;
            max-width: 500px;
            width: 90%;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: fadeIn 0.3s ease-out;
        }

        .modal-header {
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
            color: var(--dark);
        }

        .modal-actions {
            display: flex;
            gap: 1rem;
            margin-top: 1.5rem;
            justify-content: flex-end;
        }

        .app-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(18, 24, 32, 0.6);
            z-index: 3000;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
        }

        .app-modal.active {
            display: flex;
        }

        .app-modal-card {
            background: var(--white);
            border-radius: 16px;
            max-width: 550px;
            width: 100%;
            padding: 1.75rem;
            border: 1px solid var(--border);
            box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
            animation: fadeIn 0.25s ease-out;
        }

        .app-modal-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 0.5rem;
            text-align: center;
        }

        .app-modal-body {
            color: var(--slate);
            font-family: 'Helvetica Neue', sans-serif;
            font-size: 0.95rem;
            line-height: 1.6;
        }

        .app-modal-body ul {
            margin: 0.75rem 0 0;
            padding-left: 1.25rem;
        }

        .app-modal-actions {
            display: flex;
            justify-content: flex-end;
            gap: 0.75rem;
            margin-top: 1.5rem;
        }

        .app-modal-btn {
            padding: 0.6rem 1.25rem;
            border-radius: 8px;
            border: 2px solid var(--border);
            background: var(--white);
            color: var(--dark);
            font-family: 'Helvetica Neue', sans-serif;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .app-modal-btn.primary {
            border-color: var(--sage);
            background: var(--sage);
            color: var(--white);
        }

        .app-modal-btn.primary:hover {
            filter: brightness(0.95);
        }

        .app-modal-btn.danger {
            border-color: #E74C3C;
            background: #E74C3C;
            color: var(--white);
        }

        .app-modal-btn.danger:hover {
            filter: brightness(0.95);
        }

        .app-modal-btn.ghost:hover {
            border-color: var(--sage);
            color: var(--sage);
        }

        .checkout-request-modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(18, 24, 32, 0.68);
            z-index: 3100;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
        }

        .checkout-request-modal.active {
            display: flex;
        }

        .checkout-request-card {
            position: relative;
            width: min(92vw, 860px);
            max-height: calc(100vh - 3rem);
            overflow: auto;
            background: linear-gradient(180deg, #ffffff, #fbfaf6);
            border: 1px solid rgba(212, 212, 200, 0.95);
            border-radius: 24px;
            box-shadow: 0 28px 64px rgba(0, 0, 0, 0.28);
            padding: 1.75rem;
            animation: fadeIn 0.25s ease-out;
        }

        .checkout-request-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            width: 2.2rem;
            height: 2.2rem;
            border-radius: 999px;
            border: 1px solid var(--border);
            background: rgba(255, 255, 255, 0.94);
            color: var(--dark);
            font-size: 1.35rem;
            line-height: 1;
            cursor: pointer;
        }

        .checkout-request-step {
            margin-bottom: 0.6rem;
            font-size: 0.78rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            color: var(--sage);
        }

        .checkout-request-title {
            font-size: 1.45rem;
            font-weight: 700;
            line-height: 1.45;
            color: var(--dark);
            margin-bottom: 0.65rem;
            padding-right: 2.5rem;
            white-space: pre-line;
        }

        .checkout-request-lead {
            color: var(--slate);
            line-height: 1.7;
            margin-bottom: 1.15rem;
            white-space: pre-line;
        }

        .checkout-request-body {
            color: var(--slate);
            line-height: 1.7;
        }

        .checkout-request-actions {
            display: flex;
            justify-content: flex-end;
            gap: 0.75rem;
            margin-top: 1.4rem;
            flex-wrap: wrap;
        }

        .checkout-request-btn {
            min-width: 9rem;
            padding: 0.75rem 1.15rem;
            border-radius: 10px;
            border: 1px solid var(--border);
            background: var(--white);
            color: var(--dark);
            font-family: 'Helvetica Neue', sans-serif;
            font-weight: 700;
            cursor: pointer;
            transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
        }

        .checkout-request-btn:hover:not(:disabled) {
            transform: translateY(-1px);
            box-shadow: 0 10px 22px rgba(44, 62, 45, 0.1);
        }

        .checkout-request-btn:disabled {
            opacity: 0.6;
            cursor: default;
        }

        .checkout-request-btn.primary {
            border-color: var(--sage);
            background: var(--sage);
            color: var(--white);
        }

        .checkout-request-btn.secondary:hover:not(:disabled) {
            border-color: var(--sage);
            color: var(--sage);
        }

        .checkout-request-plan-table {
            width: 100%;
            border-collapse: collapse;
            border: 1px solid rgba(212, 212, 200, 0.9);
            border-radius: 16px;
            overflow: hidden;
            background: rgba(255, 255, 255, 0.95);
        }

        .checkout-request-plan-table th,
        .checkout-request-plan-table td {
            padding: 0.85rem 0.9rem;
            text-align: left;
            border-bottom: 1px solid rgba(212, 212, 200, 0.75);
            vertical-align: middle;
        }

        .checkout-request-plan-table tr:last-child td {
            border-bottom: 0;
        }

        .checkout-request-plan-table th {
            font-size: 0.82rem;
            letter-spacing: 0.04em;
            color: var(--sage);
            background: rgba(107, 143, 113, 0.08);
        }

        .checkout-request-plan-table tr.is-selected td {
            background: rgba(107, 143, 113, 0.12);
        }

        .checkout-request-plan-radio {
            width: 1rem;
            height: 1rem;
            accent-color: var(--sage);
        }

        .checkout-request-plan-label {
            font-weight: 700;
            color: var(--dark);
        }

        .checkout-request-plan-meta {
            font-size: 0.84rem;
            color: var(--slate);
            margin-top: 0.15rem;
        }

        .checkout-request-choice-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 1rem;
        }

        .checkout-request-choice-card {
            border: 1px solid rgba(212, 212, 200, 0.9);
            border-radius: 18px;
            padding: 1.1rem;
            background: rgba(255, 255, 255, 0.95);
            cursor: pointer;
        }

        .checkout-request-choice-card.is-selected {
            border-color: var(--sage);
            box-shadow: inset 0 0 0 1px var(--sage);
            background: rgba(107, 143, 113, 0.08);
        }

        .checkout-request-choice-title {
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 0.35rem;
        }

        .checkout-request-choice-amount {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--dark);
        }

        .checkout-request-choice-note {
            margin-top: 0.45rem;
            font-size: 0.88rem;
            color: var(--slate);
        }

        .checkout-request-summary {
            padding: 1rem 1.05rem;
            border-radius: 16px;
            background: rgba(107, 143, 113, 0.08);
            border: 1px solid rgba(107, 143, 113, 0.14);
        }

        .checkout-request-summary-row {
            display: grid;
            grid-template-columns: 8.25rem 1fr;
            gap: 0.85rem;
            padding: 0.32rem 0;
        }

        .checkout-request-summary-label {
            color: var(--sage);
            font-weight: 700;
        }

        .checkout-request-inline-error {
            margin-top: 0.9rem;
            color: #b42318;
            font-size: 0.9rem;
        }

        .checkout-request-support-note {
            margin-top: 0.95rem;
            font-size: 0.88rem;
            color: var(--slate);
        }

        .checkout-request-card-renewal {
            width: min(92vw, 540px);
            border-radius: 56px;
            border-color: rgba(58, 58, 58, 0.7);
            padding: 2.5rem 1.75rem 2.25rem;
            background: #fffdf9;
        }

        .checkout-request-card-renewal .checkout-request-title {
            padding-right: 0;
            text-align: center;
            font-size: 1.55rem;
            line-height: 1.35;
            margin-bottom: 2rem;
        }

        .checkout-request-card-renewal .checkout-request-lead {
            font-size: 0.86rem;
            line-height: 1.5;
            margin: 0 1rem 1.55rem;
        }

        .checkout-request-card-renewal .checkout-renewal-divider {
            height: 2px;
            margin: 0 0 0.75rem;
            background: rgba(58, 58, 58, 0.42);
        }

        .checkout-request-card-renewal .checkout-request-summary {
            border-radius: 18px;
            padding: 1.1rem 1.25rem;
            margin-bottom: 2.35rem;
        }

        .checkout-request-card-renewal .checkout-request-summary-row {
            grid-template-columns: 9rem 1fr;
            align-items: center;
            padding: 0;
        }

        .checkout-request-card-renewal .checkout-request-support-note {
            margin: 0 1rem 1.25rem;
            font-size: 0.86rem;
            line-height: 1.55;
        }

        .checkout-request-card-renewal .checkout-request-actions {
            justify-content: space-between;
            gap: 0.65rem;
            flex-wrap: nowrap;
            margin-top: 0;
        }

        .checkout-request-card-renewal .checkout-request-btn {
            min-width: 0;
            flex: 1 1 0;
            border-radius: 9px;
            padding: 0.8rem 0.6rem;
            font-size: 0.95rem;
        }

        .checkout-request-card-profile-limit {
            width: min(92vw, 560px);
            border-radius: 48px;
            border-color: rgba(58, 58, 58, 0.72);
            padding: 2.1rem 1.65rem 2rem;
            background: #fffdf9;
        }

        .checkout-request-card-profile-limit .checkout-request-title {
            padding-right: 0;
            text-align: center;
            font-size: 1.42rem;
            line-height: 1.35;
            margin-bottom: 1rem;
        }

        .checkout-request-card-profile-limit .checkout-request-lead {
            font-size: 0.82rem;
            line-height: 1.5;
            margin: 0 1rem 1.4rem;
        }

        .checkout-profile-limit-contract {
            margin-bottom: 1rem;
        }

        .checkout-profile-limit-section-label {
            color: var(--slate);
            font-size: 0.82rem;
            font-weight: 700;
            margin: 0 0 0.45rem;
        }

        .checkout-profile-limit-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.8rem;
        }

        .checkout-profile-limit-field {
            border: 1px solid rgba(205, 164, 68, 0.55);
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.9);
            padding: 0.65rem 0.75rem;
        }

        .checkout-profile-limit-label {
            color: var(--slate);
            font-size: 0.74rem;
            font-weight: 700;
            margin-bottom: 0.35rem;
        }

        .checkout-profile-limit-value {
            color: var(--dark);
            font-size: 0.94rem;
            font-weight: 700;
            white-space: nowrap;
        }

        .checkout-request-card-profile-limit .checkout-request-actions {
            align-items: center;
            flex-direction: column;
            gap: 0.75rem;
            margin-top: 1.25rem;
        }

        .checkout-request-card-profile-limit .checkout-request-btn {
            width: min(100%, 320px);
            min-width: 0;
            border-radius: 8px;
            padding: 0.72rem 0.9rem;
        }

        @media (max-width: 720px) {
            .checkout-request-card {
                width: min(94vw, 860px);
                padding: 1.2rem;
                border-radius: 18px;
            }

            .checkout-request-title {
                font-size: 1.2rem;
            }

            .checkout-request-card-renewal {
                width: min(94vw, 540px);
                border-radius: 34px;
                padding: 2.1rem 1.2rem 1.45rem;
            }

            .checkout-request-card-renewal .checkout-request-title {
                font-size: 1.25rem;
                margin-bottom: 1.45rem;
            }

            .checkout-request-card-renewal .checkout-request-lead,
            .checkout-request-card-renewal .checkout-request-support-note {
                margin-left: 0.4rem;
                margin-right: 0.4rem;
            }

            .checkout-request-card-renewal .checkout-request-summary-row {
                grid-template-columns: 6.5rem 1fr;
            }

            .checkout-request-card-profile-limit {
                width: min(94vw, 560px);
                border-radius: 32px;
                padding: 1.8rem 1.1rem 1.35rem;
            }

            .checkout-request-card-profile-limit .checkout-request-title {
                font-size: 1.2rem;
            }

            .checkout-profile-limit-grid {
                grid-template-columns: 1fr;
                gap: 0.65rem;
            }

            .checkout-request-choice-grid {
                grid-template-columns: 1fr;
            }

            .checkout-request-plan-table thead {
                display: none;
            }

            .checkout-request-plan-table,
            .checkout-request-plan-table tbody,
            .checkout-request-plan-table tr,
            .checkout-request-plan-table td {
                display: block;
                width: 100%;
            }

            .checkout-request-plan-table tr {
                border-bottom: 1px solid rgba(212, 212, 200, 0.75);
            }

            .checkout-request-plan-table td {
                border-bottom: 0;
                padding: 0.4rem 0.8rem;
            }

            .checkout-request-summary-row {
                grid-template-columns: 1fr;
                gap: 0.15rem;
            }
        }

        .photo-crop-modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(18, 24, 32, 0.72);
            z-index: 3200;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
        }

        .photo-crop-modal.active {
            display: flex;
        }

        .photo-crop-card {
            width: min(92vw, 900px);
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: 16px;
            box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
            padding: 1.5rem;
        }

        .photo-crop-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--dark);
            text-align: center;
            margin-bottom: 0.45rem;
        }

        .photo-crop-helper {
            font-family: 'Helvetica Neue', sans-serif;
            font-size: 0.92rem;
            color: var(--slate);
            text-align: center;
            margin-bottom: 1rem;
            line-height: 1.5;
        }

        .photo-crop-stage-shell {
            display: flex;
            justify-content: center;
        }

        .photo-crop-stage {
            position: relative;
            width: min(78vw, 720px);
            aspect-ratio: 4 / 3;
            overflow: hidden;
            border-radius: 12px;
            background: rgba(0, 0, 0, 0.08);
            touch-action: none;
            user-select: none;
        }

        .photo-crop-image {
            position: absolute;
            top: 0;
            left: 0;
            max-width: none;
            max-height: none;
            transform-origin: top left;
            -webkit-user-drag: none;
            user-select: none;
            pointer-events: none;
        }

        .photo-crop-frame {
            position: absolute;
            inset: 0;
            border: 3px solid #d94f4f;
            border-radius: 12px;
            pointer-events: none;
            box-shadow: inset 0 0 0 9999px rgba(255, 255, 255, 0.06);
        }

        .photo-crop-actions {
            display: flex;
            justify-content: flex-end;
            gap: 0.75rem;
            margin-top: 1.25rem;
        }
