.rp-tool-bg{
    background: #f8fbff;
}

.rp-card{
    background: #ffffff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 15px 45px rgba(24, 39, 75, 0.08);
    border: 1px solid #edf2f7;
}

.rp-form-card,
.rp-info-card{
    height: 100%;
}

.rp-form-title{
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e293b;
}

.rp-help{
    color: #64748b;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.rp-status{
    display: none;
    margin-top: 18px;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.6;
}

.rp-status-info{
    background: #eef6ff;
    color: #2563eb;
}

.rp-status-success{
    background: #ecfdf3;
    color: #067647;
}

.rp-status-error{
    background: #fef3f2;
    color: #b42318;
}

.rp-note-box{
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
}

.rp-badge{
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}

.rp-title{
    font-size: 38px;
    line-height: 1.25;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 15px;
}

.rp-subtitle{
    color: #64748b;
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 22px;
}

.rp-points{
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
}

.rp-points li{
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: #334155;
    line-height: 1.7;
}

.rp-points li:before{
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #16a34a;
    font-weight: 700;
}

.rp-mini-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 25px;
}

.rp-mini-item{
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
}

.rp-mini-item h4{
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1e293b;
}

.rp-mini-item p{
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

.rp-supported{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rp-supported span{
    display: inline-block;
    padding: 9px 14px;
    background: #f1f5f9;
    color: #334155;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.rp-section-title{
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #0f172a;
}

.rp-section-text{
    color: #475569;
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 16px;
}

.rp-score-list{
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.rp-score-list li{
    position: relative;
    padding-left: 22px;
    margin-bottom: 14px;
    color: #475569;
    line-height: 1.8;
}

.rp-score-list li:before{
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #2563eb;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
}

.rp-feature-list{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.rp-feature-box{
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.rp-feature-box h4{
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0f172a;
}

.rp-feature-box p{
    font-size: 14px;
    line-height: 1.8;
    color: #64748b;
    margin: 0;
}

.rp-upload-box{
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 18px;
    background: #f8fafc;
    min-height: 220px;
    overflow: hidden;
    transition: all .2s ease;
}

.rp-upload-box:hover,
.rp-upload-box.rp-upload-active{
    border-color: #2563eb;
    background: #eff6ff;
}

.rp-upload-input{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.rp-upload-inner{
    position: relative;
    z-index: 1;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    text-align: center;
}

.rp-upload-icon{
    font-size: 42px;
    line-height: 1;
    margin-bottom: 10px;
}

.rp-upload-inner h4{
    font-size: 20px;
    margin-bottom: 8px;
    color: #0f172a;
    font-weight: 700;
}

.rp-upload-inner p{
    font-size: 15px;
    color: #64748b;
    margin-bottom: 8px;
}

.rp-upload-types{
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
}

.rp-selected-file{
    margin-top: 12px;
    color: #1d4ed8;
    font-weight: 700;
    font-size: 14px;
    word-break: break-word;
}

/* Result Modal */
#resumeProofreaderResultModal{
    z-index: 1060;
}

.rp-modal-content{
    border: none;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
    max-height: 90vh;
}

.rp-modal-header{
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #fff;
    border-bottom: none;
    padding: 22px 26px;
}

.rp-modal-header .modal-title{
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.rp-modal-header .close{
    color: #fff;
    opacity: 1;
    text-shadow: none;
    font-size: 30px;
    outline: none;
}

.rp-modal-body{
    padding: 30px 26px;
    background: #f8fafc;
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.rp-modal-footer{
    border-top: 1px solid #e5e7eb;
    background: #fff;
    padding: 18px 26px;
}

.rp-result-subtitle{
    color: #64748b;
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.8;
}

.rp-overview-card{
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 22px;
}

.rp-overview-row{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.rp-overview-title{
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.rp-overview-summary{
    color: rgba(255,255,255,.88);
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

.rp-overall-score{
    min-width: 220px;
    text-align: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    padding: 18px;
}

.rp-overall-score .rp-score-value{
    font-size: 42px;
    line-height: 1;
    font-weight: 800;
    margin-bottom: 8px;
}

.rp-overall-score .rp-score-label{
    font-size: 14px;
    color: rgba(255,255,255,.82);
}

.rp-score-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.rp-score-card{
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.rp-score-card h4{
    font-size: 15px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 12px;
}

.rp-score-card .rp-score-num{
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    color: #1d4ed8;
}

.rp-result-box{
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 22px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.rp-result-box h3{
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #0f172a;
}

.rp-result-box p{
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.rp-result-list{
    list-style: none;
    padding: 0;
    margin: 0;
}

.rp-result-list li{
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f7;
}

.rp-result-list li:last-child{
    border-bottom: none;
}

.rp-chip-wrap{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rp-chip{
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.rp-severity{
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.rp-severity-low{
    background: #ecfeff;
    color: #155e75;
    border: 1px solid #a5f3fc;
}

.rp-severity-medium{
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fdba74;
}

.rp-severity-high{
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.rp-issue-item{
    border-bottom: 1px solid #eef2f7;
    padding: 14px 0;
}

.rp-issue-item:last-child{
    border-bottom: none;
}

.rp-issue-head{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.rp-issue-type{
    font-weight: 700;
    color: #0f172a;
    text-transform: capitalize;
}

.rp-issue-message{
    color: #475569;
    line-height: 1.75;
    font-size: 14px;
}

.rp-rewrite-item{
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 14px;
}

.rp-rewrite-label{
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: #64748b;
}

.rp-rewrite-old{
    color: #b91c1c;
    background: #fff7f7;
    border-left: 4px solid #fca5a5;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 12px;
    line-height: 1.8;
}

.rp-rewrite-new{
    color: #166534;
    background: #f0fdf4;
    border-left: 4px solid #86efac;
    padding: 12px 14px;
    border-radius: 10px;
    line-height: 1.8;
}

.modal-backdrop,
.rp-modal-backdrop{
    z-index: 1050;
    background: rgba(15, 23, 42, 0.72);
}

.modal-backdrop.show{
    opacity: 0.72 !important;
}

body.modal-open,
body.rp-modal-open{
    overflow: hidden !important;
}

body.rp-modal-open header,
body.rp-modal-open footer,
body.rp-modal-open section,
body.rp-modal-open nav,
body.rp-modal-open .main-wrapper,
body.rp-modal-open .shop-area,
body.rp-modal-open .blog-area,
body.rp-modal-open .container,
body.rp-modal-open .row,
body.rp-modal-open .col-lg-12,
body.rp-modal-open .col-lg-6,
body.rp-modal-open .col-md-12,
body.rp-modal-open .col-md-6,
body.rp-modal-open .col-sm-12{
    pointer-events: none;
    user-select: none;
}

body.rp-modal-open #resumeProofreaderResultModal,
body.rp-modal-open #resumeProofreaderResultModal *,
body.rp-modal-open .modal-backdrop,
body.rp-modal-open .rp-modal-backdrop{
    pointer-events: auto;
    user-select: auto;
}

@media (max-width: 991px){
    .rp-title{
        font-size: 30px;
    }

    .rp-section-title{
        font-size: 28px;
    }

    .rp-mini-grid{
        grid-template-columns: 1fr;
    }

    .rp-feature-list{
        grid-template-columns: 1fr 1fr;
    }

    .rp-score-grid{
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px){
    .rp-card{
        padding: 24px;
    }

    .rp-form-title{
        font-size: 25px;
    }

    .rp-title{
        font-size: 26px;
    }

    .rp-section-title{
        font-size: 24px;
    }

    .rp-feature-list,
    .rp-score-grid{
        grid-template-columns: 1fr;
    }

    .rp-overview-score .rp-score-value,
    .rp-overall-score .rp-score-value{
        font-size: 34px;
    }

    .rp-modal-content{
        max-height: 92vh;
    }

    .rp-modal-body{
        max-height: calc(92vh - 120px);
    }

    .rp-modal-body,
    .rp-modal-header,
    .rp-modal-footer{
        padding-left: 18px;
        padding-right: 18px;
    }
}