:root {
    --rp-bg: #eef4fa;
    --rp-card: #ffffff;
    --rp-ink: #10233d;
    --rp-muted: #64748b;
    --rp-line: #dbe7f3;
    --rp-blue: #0e5ea8;
    --rp-blue2: #0b76d1;
    --rp-green: #12845f;
    --rp-shadow: 0 22px 55px rgba(15, 45, 84, .13);
}

* { box-sizing: border-box; }

body.rp-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Times New Roman", Times, serif;
    color: var(--rp-ink);
    background:
        radial-gradient(circle at 12% 10%, rgba(14, 94, 168, .18), transparent 28%),
        radial-gradient(circle at 88% 22%, rgba(18, 132, 95, .14), transparent 30%),
        linear-gradient(180deg, #f7fbff, var(--rp-bg));
}

.rp-wrap {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
}

.rp-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: rgba(247, 251, 255, .78);
    border-bottom: 1px solid rgba(219, 231, 243, .82);
}

.rp-header-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.rp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--rp-ink);
}

.rp-brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e1ecf7;
    padding: 6px;
    box-shadow: 0 10px 26px rgba(15,45,84,.08);
}

.rp-brand strong {
    display: block;
    font-size: 21px;
    font-weight: 900;
}

.rp-brand span {
    display: block;
    color: var(--rp-muted);
    font-weight: 800;
    font-size: 13px;
}

.rp-nav {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.rp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 17px;
    border-radius: 17px;
    border: 1px solid var(--rp-line);
    background: #fff;
    color: var(--rp-blue);
    font-weight: 900;
    text-decoration: none;
    font-family: "Times New Roman", Times, serif;
    cursor: pointer;
}

.rp-btn.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--rp-blue), var(--rp-blue2));
    border-color: transparent;
    box-shadow: 0 12px 25px rgba(14, 94, 168, .22);
}

.rp-hero {
    padding: 42px 0 24px;
}

.rp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) 430px;
    gap: 24px;
    align-items: stretch;
}

.rp-hero-card {
    min-height: 520px;
    padding: clamp(28px, 5vw, 58px);
    border-radius: 42px;
    background:
        linear-gradient(135deg, rgba(14, 94, 168, .97), rgba(11, 118, 209, .88)),
        var(--rp-blue);
    color: #fff;
    box-shadow: var(--rp-shadow);
    overflow: hidden;
    position: relative;
}

.rp-hero-card::after {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: rgba(255,255,255,.11);
    inset-inline-end: -110px;
    bottom: -120px;
}

.rp-badge {
    display: inline-flex;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.20);
    color: #fff;
    font-weight: 900;
    margin-bottom: 18px;
}

.rp-hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.02;
    letter-spacing: 0;
    font-weight: 900;
    max-width: 820px;
}

.rp-hero-logo {
    display: block;
    width: min(280px, 82%);
    max-height: 88px;
    object-fit: contain;
    margin: 0 0 22px;
}

.rp-hero p {
    margin: 18px 0 0;
    max-width: 700px;
    color: rgba(255,255,255,.88);
    font-size: 20px;
    line-height: 1.8;
    font-weight: 800;
}

.rp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 28px;
}

.rp-hero-actions .rp-btn {
    min-height: 50px;
    padding-inline: 22px;
}

.rp-hero-actions .rp-btn:not(.primary) {
    background: rgba(255,255,255,.15);
    color: #fff;
    border-color: rgba(255,255,255,.25);
}

.rp-side {
    display: grid;
    gap: 16px;
}

.rp-stat-panel,
.rp-track-panel {
    padding: 24px;
    border-radius: 34px;
    background: rgba(255,255,255,.88);
    border: 1px solid var(--rp-line);
    box-shadow: 0 14px 35px rgba(15,45,84,.09);
}

.rp-stat-panel h2,
.rp-track-panel h2,
.rp-section h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
}

.rp-stats {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.rp-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 15px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #e3edf8;
}

.rp-stat span {
    color: var(--rp-muted);
    font-weight: 900;
}

.rp-stat strong {
    font-size: 28px;
    font-weight: 900;
}

.rp-track-panel p {
    color: var(--rp-muted);
    font-weight: 800;
    line-height: 1.7;
}

.rp-track-form-panel {
    align-self: stretch;
}

.rp-section {
    margin: 22px 0;
    padding: 28px;
    border-radius: 36px;
    background: rgba(255,255,255,.88);
    border: 1px solid var(--rp-line);
    box-shadow: 0 14px 35px rgba(15,45,84,.08);
}

.rp-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.rp-result-head h2 {
    margin: 8px 0 0;
    font-size: 34px;
    font-weight: 900;
}

.rp-badge-soft {
    color: var(--rp-blue);
    background: #eff7ff;
    border-color: #d2e7f9;
}

.rp-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: #edfff7;
    color: var(--rp-green);
    border: 1px solid #bdebd8;
    font-weight: 900;
}

.rp-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.rp-info-grid div,
.rp-empty,
.rp-update {
    padding: 15px 16px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e3edf8;
}

.rp-info-grid span {
    display: block;
    color: var(--rp-muted);
    font-weight: 900;
    margin-bottom: 6px;
}

.rp-info-grid strong {
    display: block;
    font-size: 18px;
    font-weight: 900;
    word-break: break-word;
}

.rp-info-wide {
    grid-column: 1 / -1;
}

.rp-empty {
    margin-top: 16px;
    color: var(--rp-muted);
    font-weight: 900;
    text-align: center;
}

.rp-update-list {
    display: grid;
    gap: 11px;
    margin-top: 16px;
}

.rp-update strong {
    display: block;
    font-size: 18px;
    font-weight: 900;
}

.rp-update p {
    margin: 7px 0 0;
    color: #334e68;
    font-weight: 800;
    line-height: 1.7;
}

.rp-update small {
    display: block;
    margin-top: 8px;
    color: var(--rp-muted);
    font-weight: 800;
}

.rp-feature-grid,
.rp-step-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.rp-feature,
.rp-step {
    padding: 22px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid #e3edf8;
}

.rp-feature i,
.rp-step i {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: #eff7ff;
    font-style: normal;
    margin-bottom: 12px;
}

.rp-feature h3,
.rp-step h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
}

.rp-feature p,
.rp-step p {
    margin: 8px 0 0;
    color: var(--rp-muted);
    line-height: 1.7;
    font-weight: 800;
}

.rp-footer {
    padding: 26px 0 38px;
    color: var(--rp-muted);
    text-align: center;
    font-weight: 900;
}

.rp-auth-shell {
    min-height: 100vh;
    display: grid;
    direction: ltr;
    grid-template-columns: 500px minmax(0, 1fr);
    grid-template-areas: "panel visual";
}

[dir="rtl"] .rp-auth-shell {
    grid-template-columns: minmax(0, 1fr) 500px;
    grid-template-areas: "visual panel";
}

.rp-auth-visual {
    grid-area: visual;
    padding: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(14, 94, 168, .96), rgba(11, 118, 209, .88)),
        var(--rp-blue);
    color: #fff;
}

.rp-auth-visual img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    padding: 8px;
    border-radius: 24px;
    background: #fff;
    margin-bottom: 24px;
}

.rp-auth-visual h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 900;
}

.rp-auth-visual p {
    color: rgba(255,255,255,.88);
    line-height: 1.8;
    font-size: 19px;
    font-weight: 800;
}

.rp-auth-panel {
    grid-area: panel;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

[dir="rtl"] .rp-auth-visual,
[dir="rtl"] .rp-auth-panel {
    direction: rtl;
    text-align: right;
}

[dir="ltr"] .rp-auth-visual,
[dir="ltr"] .rp-auth-panel {
    direction: ltr;
    text-align: left;
}

.rp-auth-card {
    width: min(100%, 430px);
    padding: 28px;
    border-radius: 32px;
    background: rgba(255,255,255,.9);
    border: 1px solid var(--rp-line);
    box-shadow: var(--rp-shadow);
}

.rp-auth-card h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 900;
}

.rp-auth-card > p {
    color: var(--rp-muted);
    font-weight: 800;
    line-height: 1.7;
}

.rp-form {
    display: grid;
    gap: 13px;
    margin-top: 18px;
}

.rp-form label span {
    display: block;
    margin-bottom: 6px;
    color: #29465f;
    font-weight: 900;
}

.rp-form input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--rp-line);
    border-radius: 16px;
    padding: 11px 14px;
    font-family: "Times New Roman", Times, serif;
    font-size: 16px;
    background: #fff;
    color: var(--rp-ink);
}

.rp-form .rp-btn {
    width: 100%;
    margin-top: 4px;
}

.rp-alert {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid #dbe7f3;
    background: #f8fbff;
    color: #24415f;
    font-weight: 900;
}

.rp-alert.error {
    background: #fff0f0;
    border-color: #f5c7c3;
    color: #b42318;
}

.rp-auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
    color: var(--rp-muted);
    font-weight: 900;
}

.rp-auth-links a {
    color: var(--rp-blue);
    text-decoration: none;
}

@media (max-width: 980px) {
    .rp-hero-grid,
    .rp-auth-shell {
        grid-template-columns: 1fr;
        grid-template-areas:
            "panel"
            "visual";
    }

    .rp-auth-visual {
        min-height: auto;
    }

    .rp-feature-grid,
    .rp-step-grid,
    .rp-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .rp-header-inner,
    .rp-nav,
    .rp-hero-actions,
    .rp-result-head {
        align-items: stretch;
        flex-direction: column;
    }

    .rp-btn {
        width: 100%;
    }

    .rp-hero-card {
        min-height: auto;
        border-radius: 30px;
    }
}

/* Customer auth mobile polish */
@media (max-width: 980px) {
    .rp-auth-shell {
        min-height: 100vh;
        display: flex !important;
        flex-direction: column;
    }

    .rp-auth-visual {
        min-height: auto !important;
        padding: 26px 18px 22px !important;
        text-align: center;
        align-items: center;
    }

    .rp-auth-visual img {
        width: 76px !important;
        height: 76px !important;
        margin: 0 auto 14px !important;
    }

    .rp-auth-visual h1 {
        font-size: clamp(28px, 8vw, 42px) !important;
        line-height: 1.12 !important;
        max-width: 560px;
    }

    .rp-auth-visual p {
        font-size: 16px !important;
        line-height: 1.65 !important;
        max-width: 620px;
        margin: 12px auto 0;
    }

    .rp-auth-visual .rp-hero-actions {
        justify-content: center;
        margin-top: 16px;
    }

    .rp-auth-panel {
        flex: 1;
        padding: 18px 14px 28px !important;
        align-items: flex-start !important;
    }

    .rp-auth-card {
        width: min(100%, 520px) !important;
        margin: 0 auto !important;
        padding: 22px !important;
        border-radius: 26px !important;
    }
}

@media (max-width: 560px) {
    body.rp-body {
        background:
            radial-gradient(circle at top right, rgba(14, 94, 168, .14), transparent 34%),
            #eef4fa !important;
    }

    .rp-auth-visual {
        padding: 20px 14px 18px !important;
        border-radius: 0 0 28px 28px;
    }

    .rp-auth-visual img {
        width: 64px !important;
        height: 64px !important;
        border-radius: 18px !important;
    }

    .rp-auth-visual h1 {
        font-size: 28px !important;
    }

    .rp-auth-visual p {
        font-size: 14.5px !important;
    }

    .rp-auth-visual .rp-hero-actions {
        display: grid !important;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 8px;
    }

    .rp-auth-visual .rp-btn {
        width: 100%;
        min-height: 42px;
        padding: 9px 12px;
        border-radius: 15px;
    }

    .rp-auth-panel {
        padding: 14px 10px 24px !important;
    }

    .rp-auth-card {
        padding: 18px !important;
        border-radius: 22px !important;
        box-shadow: 0 12px 30px rgba(15, 45, 84, .10) !important;
    }

    .rp-auth-card h2 {
        font-size: 24px !important;
        line-height: 1.15;
        text-align: center;
    }

    .rp-auth-card > p {
        font-size: 14.5px;
        line-height: 1.65;
        text-align: center;
    }

    .rp-form {
        gap: 11px !important;
    }

    .rp-form label span {
        font-size: 14px;
    }

    .rp-form input {
        min-height: 46px !important;
        font-size: 16px !important;
        border-radius: 15px !important;
        padding: 10px 12px !important;
    }

    .rp-form .rp-btn,
    .rp-auth-card .rp-btn {
        min-height: 46px;
        border-radius: 15px;
    }

    .rp-auth-links {
        display: grid !important;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 8px !important;
        margin-top: 14px !important;
    }

    .rp-auth-links span {
        display: none;
    }

    .rp-alert {
        font-size: 14.5px;
        line-height: 1.55;
        border-radius: 15px;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .rp-auth-visual h1 {
        font-size: 24px !important;
    }

    .rp-auth-visual p {
        display: none;
    }

    .rp-auth-card {
        padding: 15px !important;
    }
}
