    .ch-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.55);
        justify-content: center;
        align-items: center;
        padding: 20px;
        box-sizing: border-box;
    }
    #deployModal {
        z-index: 99999;
    }
    #helpModal {
        z-index: 100000;
    }
    .ch-modal.open {
        display: flex;
    }
    .ch-modal-box {
        background: #fff;
        border-radius: 12px;
        max-width: 520px;
        width: 100%;
        max-height: 90vh;
        position: relative;
        box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    .ch-modal-box--help {
        padding: 0;
        max-height: 85vh;
    }
    .ch-modal-box--help .help-modal-content {
        padding: 28px;
        overflow-y: auto;
        flex: 1;
        max-height: calc(85vh - 20px);
    }
    .ch-modal-header {
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        color: #fff;
        padding: 24px 28px 20px;
        flex-shrink: 0;
    }
    .ch-modal-header h3 {
        margin: 0 0 4px;
        font-size: 1.35rem;
        font-weight: 700;
        color: #fff;
    }
    .ch-modal-header p {
        margin: 0;
        font-size: 14px;
        opacity: 0.9;
    }
    .ch-modal-template-badge {
        display: inline-block;
        margin-top: 10px;
        background: rgba(255, 255, 255, 0.18);
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 600;
    }
    .ch-modal-body {
        padding: 24px 28px 28px;
        overflow-y: auto;
        flex: 1;
        min-height: 0;
    }
    .ch-modal-body::-webkit-scrollbar,
    .help-modal-content::-webkit-scrollbar {
        width: 8px;
    }
    .ch-modal-body::-webkit-scrollbar-track,
    .help-modal-content::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 4px;
    }
    .ch-modal-body::-webkit-scrollbar-thumb,
    .help-modal-content::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }
    .ch-modal-body::-webkit-scrollbar-thumb:hover,
    .help-modal-content::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }
    .ch-modal-close {
        position: absolute;
        top: 14px;
        right: 16px;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        font-size: 20px;
        cursor: pointer;
        color: #fff;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
    }
    .ch-modal-close:hover {
        background: rgba(255, 255, 255, 0.35);
    }
    .ch-modal-close--dark {
        background: #f1f5f9;
        color: #64748b;
    }
    .ch-modal-close--dark:hover {
        background: #e2e8f0;
        color: #334155;
    }
    .ch-modal-close:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }
    .deploy-step {
        margin-bottom: 22px;
    }
    .deploy-step:last-of-type {
        margin-bottom: 0;
    }
    .deploy-step-label {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        color: #64748b;
    }
    .deploy-step-num {
        width: 22px;
        height: 22px;
        background: #2563eb;
        color: #fff;
        border-radius: 50%;
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .deploy-step-desc {
        margin: 0 0 10px;
        font-size: 14px;
        color: #475569;
        line-height: 1.45;
    }
    .ns-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .ns-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 10px 12px;
        gap: 10px;
    }
    .ns-row-label {
        font-size: 11px;
        font-weight: 700;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        min-width: 28px;
    }
    .ns-row-value {
        flex: 1;
        font-size: 14px;
        font-weight: 600;
        color: #1e293b;
        word-break: break-all;
    }
    .ns-copy-btn {
        background: #fff;
        border: 1px solid #cbd5e1;
        color: #475569;
        padding: 6px 10px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
        transition: all 0.2s;
    }
    .ns-copy-btn:hover {
        border-color: #2563eb;
        color: #2563eb;
    }
    .ns-copy-btn.copied {
        border-color: #22c55e;
        color: #16a34a;
        background: #f0fdf4;
    }
    .help-link-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: none;
        border: none;
        color: #2563eb;
        font-weight: 600;
        font-size: 13px;
        cursor: pointer;
        padding: 0;
        margin-top: 10px;
    }
    .help-link-btn:hover {
        text-decoration: underline;
    }
    .deploy-domain-label {
        display: block;
        font-weight: 600;
        font-size: 14px;
        color: #334155;
        margin: 0 0 6px;
    }
    .deploy-field-group {
        margin-bottom: 14px;
    }
    .deploy-field-group:last-child {
        margin-bottom: 0;
    }
    .deploy-domain-wrap {
        position: relative;
        margin-bottom: 0;
    }
    .deploy-domain-wrap > i {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
        font-size: 14px;
    }
    .deploy-password-wrap {
        position: relative;
        display: block;
    }
    .deploy-domain-input {
        width: 100%;
        padding: 11px 14px;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        font-size: 15px;
        line-height: 1.4;
        font-family: inherit;
        background: #fff;
        color: #1e293b;
        box-sizing: border-box;
        min-height: 44px;
        box-shadow: none;
        -webkit-appearance: none;
        appearance: none;
        transition: border-color 0.2s, box-shadow 0.2s;
    }
    .deploy-password-wrap .deploy-domain-input {
        width: 100%;
        padding-right: 44px;
    }
    .deploy-password-toggle {
        position: absolute;
        right: 1px;
        top: 1px;
        bottom: 1px;
        width: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: transparent;
        color: #64748b;
        cursor: pointer;
        padding: 0;
        line-height: 1;
        font-size: 15px;
        border-radius: 0 7px 7px 0;
        z-index: 2;
    }
    .deploy-password-toggle i {
        position: static;
        transform: none;
        left: auto;
        top: auto;
    }
    .deploy-password-toggle:hover:not(:disabled) {
        color: #2563eb;
    }
    .deploy-password-toggle:disabled {
        cursor: not-allowed;
        opacity: 0.45;
    }
    .deploy-domain-input:focus {
        outline: none;
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    }
    .deploy-domain-input:disabled {
        background: #f8fafc;
        color: #94a3b8;
    }
    .deploy-domain-input::placeholder {
        color: #94a3b8;
        opacity: 1;
    }
    .deploy-domain-hint {
        font-size: 12px;
        color: #94a3b8;
        margin: 4px 0 0;
        line-height: 1.35;
    }
    .deploy-admin-fields {
        margin-top: 4px;
    }
    .deploy-admin-fields.is-locked {
        opacity: 0.72;
    }
    .deploy-admin-fields.is-locked .deploy-domain-input {
        background: #f8fafc;
        cursor: not-allowed;
    }
    #installStep.is-locked .deploy-step-num {
        background: #94a3b8;
    }
    .modal-deploy-btn {
        width: 100%;
        padding: 14px;
        background: #eb6b03;
        color: #fff;
        border: none;
        border-radius: 8px;
        font-weight: 700;
        font-size: 15px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: background 0.2s, transform 0.1s;
    }
    .modal-deploy-btn:hover {
        background: #d45f02;
    }
    .modal-deploy-btn:active {
        transform: scale(0.99);
    }
    .modal-deploy-btn:disabled {
        background: #cbd5e1;
        cursor: not-allowed;
        transform: none;
    }
    .modal-deploy-btn--secondary {
        background: #2563eb;
        margin-top: 12px;
    }
    .modal-deploy-btn--secondary:hover {
        background: #1d4ed8;
    }
    .deploy-success-notice {
        display: none;
        background: #f0fdf4;
        color: #166534;
        border: 1px solid #bbf7d0;
        padding: 12px 14px;
        border-radius: 8px;
        margin-bottom: 16px;
        font-size: 14px;
        line-height: 1.5;
    }
    .deploy-success-notice.visible {
        display: block;
    }
    .deploy-btn-group {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .deploy-error {
        display: none;
        background: #fef2f2;
        color: #b91c1c;
        border: 1px solid #fecaca;
        padding: 12px 14px;
        border-radius: 8px;
        margin-bottom: 16px;
        font-size: 14px;
        line-height: 1.5;
    }
    .deploy-error.visible {
        display: flex;
        gap: 10px;
        align-items: flex-start;
    }
    .deploy-error i {
        margin-top: 2px;
        flex-shrink: 0;
    }
    .deploy-progress-wrap {
        display: none;
        margin-bottom: 20px;
        padding: 16px;
        background: #f0fdf4;
        border: 1px solid #bbf7d0;
        border-radius: 8px;
    }
    .deploy-progress-wrap.visible {
        display: block;
    }
    .deploy-progress-label {
        font-size: 13px;
        font-weight: 600;
        color: #166534;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .deploy-progress-spinner {
        width: 14px;
        height: 14px;
        border: 2px solid #bbf7d0;
        border-top-color: #22c55e;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }
    @keyframes spin {
        to { transform: rotate(360deg); }
    }
    .deploy-progress-track {
        width: 100%;
        height: 8px;
        background: #dcfce7;
        border-radius: 4px;
        overflow: hidden;
    }
    .deploy-progress-bar {
        height: 100%;
        width: 0%;
        background: linear-gradient(90deg, #22c55e, #16a34a);
        border-radius: 4px;
        transition: width 0.4s ease;
    }
    .deploy-progress-bar.indeterminate {
        width: 35% !important;
        animation: progressSlide 1.2s ease-in-out infinite;
    }
    @keyframes progressSlide {
        0% { margin-left: -35%; }
        100% { margin-left: 100%; }
    }
    .help-modal-content {
        font-size: 14px;
        color: #475569;
        line-height: 1.6;
    }
    .dns-notice {
        background: #fffbeb;
        border: 1px solid #fde68a;
        color: #92400e;
        padding: 10px 12px;
        border-radius: 8px;
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

/* Deploy trigger button (Divi homepage) */
.phad-deploy-btn,
button.phad-deploy-trigger {
    display: inline-block;
    padding: 12px 24px;
    background: #eb6b03;
    color: #fff !important;
    border: none;
    border-radius: 24px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none !important;
    line-height: 1.4;
    box-sizing: border-box;
    transition: background 0.2s;
}
.phad-deploy-btn:hover,
button.phad-deploy-trigger:hover {
    background: #d45f02;
    color: #fff !important;
}
a.phad-deploy-btn.phad-deploy-login,
a.phad-deploy-btn.phad-deploy-upgrade {
    background: #6366f1;
}
a.phad-deploy-btn.phad-deploy-login:hover,
a.phad-deploy-btn.phad-deploy-upgrade:hover {
    background: #4f46e5;
}

/* FilterGrid: Live Preview + Deploy Site side by side */
.filter-grid-styling.grid-filter-wrap .et_pb_button_wrapper.read-more-wrapper {
    padding: 8px 10px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    box-sizing: border-box;
}
.filter-grid-styling .dp-dfg-more-button.et_pb_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    min-height: auto !important;
    height: auto !important;
}
.filter-grid-styling .dp-dfg-more-button.et_pb_button::after,
.filter-grid-styling .dp-dfg-more-button.et_pb_button::before {
    display: none !important;
    content: none !important;
}
.phad-dfg-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    margin-top: 8px;
    position: relative;
    z-index: 2;
}
.phad-dfg-actions .read-more-wrapper,
.phad-dfg-actions .phad-deploy-wrapper {
    margin: 0;
    flex: 1 1 auto;
}
.filter-grid-styling .phad-dfg-actions .read-more-wrapper,
.filter-grid-styling .phad-dfg-actions .phad-deploy-wrapper {
    background-image: linear-gradient(135deg, #492cdd 0%, #ad38e2 100%);
    padding: 0 !important;
    border-radius: 5px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 38px;
    box-sizing: border-box;
    overflow: hidden;
}
.filter-grid-styling .phad-dfg-actions .read-more-wrapper {
    padding: 8px 10px !important;
    align-items: center;
}
.filter-grid-styling .phad-dfg-actions .dp-dfg-more-button.et_pb_button,
.filter-grid-styling .phad-dfg-actions .phad-deploy-wrapper .phad-deploy-trigger,
.filter-grid-styling .phad-dfg-actions .phad-deploy-wrapper .phad-dfg-deploy-btn,
.filter-grid-styling .phad-dfg-actions .phad-deploy-wrapper a.phad-deploy-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    min-height: 38px !important;
    height: 100% !important;
    padding: 8px 10px !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-align: center;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    cursor: pointer;
}
.filter-grid-styling .phad-dfg-actions .dp-dfg-more-button.et_pb_button::after,
.filter-grid-styling .phad-dfg-actions .dp-dfg-more-button.et_pb_button::before {
    display: none !important;
    content: none !important;
}
.filter-grid-styling .phad-dfg-actions .phad-dfg-deploy-btn:hover,
.filter-grid-styling .phad-dfg-actions button.phad-deploy-trigger:hover,
.filter-grid-styling .phad-dfg-actions .dp-dfg-more-button.et_pb_button:hover {
    background: transparent !important;
    opacity: 0.92;
    color: #fff !important;
}
.filter-grid-styling .phad-dfg-actions a.phad-deploy-login,
.filter-grid-styling .phad-dfg-actions a.phad-deploy-upgrade {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    text-align: center;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
    color: #fff !important;
}

/* Override Divi/global theme input styles inside deploy modal (match auto2 site-template) */
#deployModal .ch-modal-body input.deploy-domain-input,
#deployModal .ch-modal-body .deploy-domain-input,
#deployModal input[type="text"].deploy-domain-input,
#deployModal input[type="password"].deploy-domain-input {
    width: 100% !important;
    max-width: 100% !important;
    padding: 11px 14px !important;
    margin: 0 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    font-family: inherit !important;
    background: #fff !important;
    color: #1e293b !important;
    box-sizing: border-box !important;
    min-height: 44px;
    height: auto !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}
#deployModal .deploy-password-wrap .deploy-domain-input {
    padding-right: 44px !important;
}
#deployModal .deploy-domain-input:focus {
    outline: none !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}
#deployModal .deploy-domain-input:disabled,
#deployModal .deploy-admin-fields.is-locked .deploy-domain-input {
    background: #f8fafc !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
}
#deployModal .deploy-domain-input::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}
#deployModal .deploy-domain-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #334155;
    margin: 0 0 6px;
}
#deployModal .deploy-domain-hint {
    font-size: 12px;
    color: #94a3b8;
    margin: 4px 0 0;
    line-height: 1.35;
}
#deployModal .deploy-field-group {
    margin-bottom: 14px;
}
#deployModal .deploy-password-toggle {
    position: absolute;
    right: 1px;
    top: 1px;
    bottom: 1px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-size: 15px;
    border-radius: 0 7px 7px 0;
    z-index: 2;
}
#deployModal #installStep.is-locked {
    opacity: 0.72;
}

