﻿  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        html { scroll-behavior: smooth; }
        body {
            font-family: 'Inter', sans-serif;
            background: #f5f7fb;
            color: #0f1b2d;
            min-height: 100vh;
            -webkit-font-smoothing: antialiased;
        }

        /* ── Page wrapper ── */
        .rp-wrapper {margin: 0 auto;padding: 0 0 36px;}

        /* ── Header ── */
      .rp-header {
    /* background: linear-gradient(135deg, #0f2347 0%, #1e4080 100%); */
    border-radius: 0 0 0px 0px;
    padding: 0px 0px 0px;
    position: fixed;
    overflow: hidden;
    width: 100%;
    z-index: 1;
    height: 23px;
    background: white;
}
        .rp-header::before {
            content: '';
            position: absolute;
            top: -40px; right: -40px;
            width: 220px; height: 220px;
            border-radius: 50%;
            background: rgba(201,168,76,.08);
            pointer-events: none;
        }
        .rp-header::after {
            content: '';
            position: absolute;
            bottom: -60px;
            left: -30px;
            width: 160px;
            height: 160px;
            border-radius: 50%;
            /* background: rgba(255,255,255,.04); */
            pointer-events: none;
        }
        .rp-header-top {
            display: flex; align-items: center; gap: 10px;
            margin-bottom: 20px;
        }
        .rp-logo-pill {
            background: rgba(201,168,76,.18);
            border: 1px solid rgba(201,168,76,.35);
            border-radius: 99px;
            padding: 5px 14px;
            display: flex; align-items: center; gap: 7px;
        }
        .rp-logo-pill i { color: #c9a84c; font-size: 13px; }
        .rp-logo-pill span { color: rgba(255,255,255,.8); font-size: 12px; font-weight: 600; letter-spacing: .4px; }
        .rp-header h1 {
            font-family: 'Sora', sans-serif;
            color: #fff; font-size: 22px; font-weight: 700;
            line-height: 1.3; margin-bottom: 8px;
        }
        .rp-header h1 em { color: #f0d080; font-style: normal; }
        .rp-header p { color: rgba(255,255,255,.55); font-size: 13px; line-height: 1.7; }
       .rp-progress-bar-wrap {
    margin-top: 0px;
    background: rgba(255, 255, 255, .12);
    border-radius: 99px;
    height: 7px;
    overflow: hidden;
}
        .rp-progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #118917, #2ab120);
            border-radius: 0px;
            transition: width .4s ease;
        }
        .rp-progress-label {
    color: rgb(31 38 90);
    font-size: 13px;
    margin-top: 0px;
    text-align: right;
    padding-right: 22px;
    font-weight: bold;
}

        /* ── Body / Questions ── */
        .rp-body {padding: 22px 16px 8px;padding-top: 31px;}

        .q-block {
            background: #ffffff;
            border: 1.5px solid #e4e9f2;
            border-radius: 14px;
            padding: 15px 11px 12px;
            margin-bottom: 14px;
            box-shadow: 0 2px 8px rgba(15,35,71,.06);
            transition: border-color .2s, box-shadow .2s;
        }
        .q-block:hover { box-shadow: 0 6px 24px rgba(15,35,71,.10); }
        .q-block.has-error { border-color: #ef4444; }
        .q-block.answered  { border-color: rgba(201,168,76,.4); }

        .q-header {display: flex;align-items: flex-start;gap: 13px;margin-bottom: 7px;}
        .q-num {
            background: linear-gradient(135deg, #0f2347 0%, #1e4080 100%);
            color: #fff;
            width: 28px;
            height: 25px;
            border-radius: 9px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 700;
            flex-shrink: 0;
            margin-top: 1px;
            box-shadow: 0 2px 8px rgba(15,35,71,.22);
        }
        .q-block.answered .q-num {
            background: linear-gradient(135deg, #c9a84c 0%, #e8c060 100%);
            box-shadow: 0 2px 8px rgba(201,168,76,.28);
        }
        .q-text { font-size: 14px; font-weight: 600; color: #0f1b2d; line-height: 1.6; }

        /* Table */
        .q-tbl-wrap { overflow-x: auto; margin-bottom: 16px; border-radius: 10px; border: 1px solid #e4e9f2; }
        .q-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
        .q-tbl th, .q-tbl td { border-bottom: 1px solid #e4e9f2; padding: 9px 14px; text-align: center; }
        .q-tbl thead tr:last-child th, .q-tbl tbody tr:last-child td { border-bottom: none; }
        .q-tbl th { background: #f8fafd; font-weight: 700; color: #4a5568; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; }
        .q-tbl td:first-child { text-align: left; font-weight: 600; color: #4a5568; font-size: 11px; width: 26%; }

        /* Options */
        .opts {display: flex;flex-direction: column;gap: 4px;}
        .opt {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 14px;
            border: 1.5px solid #e4e9f2;
            border-radius: 10px;
            cursor: pointer;
            transition: all .15s ease;
            background: #ffffff;
            position: relative;
            overflow: hidden;
        }
        .opt::before {
            content: ''; position: absolute; inset: 0;
            background: linear-gradient(90deg, rgba(201,168,76,.06) 0%, transparent 60%);
            opacity: 0; transition: opacity .15s;
        }
        .opt:hover { border-color: #c9a84c; }
        .opt:hover::before { opacity: 1; }
        .opt.active { border-color: #1a3a6b; background: #f0f4ff; }
        .opt.active::before { opacity: 0; }
        .opt-circle {
            width: 18px; height: 18px; border-radius: 50%;
            border: 2px solid #e4e9f2;
            flex-shrink: 0;
            display: flex; align-items: center; justify-content: center;
            transition: all .15s;
        }
        .opt:hover .opt-circle { border-color: #c9a84c; }
        .opt.active .opt-circle { border-color: #1a3a6b; background: #1a3a6b; }
        .opt.active .opt-circle::after {
            content: ''; width: 6px; height: 6px;
            background: #fff; border-radius: 50%; display: block;
        }
        .opt-label    
        {
             font-size: 14px;
             color: #333c4c; 
             line-height: 1.45;
             font-weight: 500; 
             }
        .opt.active .opt-label { color: #0f1b2d; }

        .err-txt { font-size: 11px; color: #ef4444; margin-top: 8px; display: none; font-weight: 500; }
        .q-block.has-error .err-txt { display: block; }

        /* Submit */
        .submit-area { text-align: center; padding: 14px 0 6px; }
        .submit-btn {
            background: linear-gradient(135deg, #0f2347 0%, #1e4080 100%);
            color: #fff; border: none; border-radius: 12px;
            padding: 15px 52px; font-size: 15px; font-weight: 700;
            cursor: pointer; display: inline-flex; align-items: center; gap: 9px;
            transition: transform .15s, box-shadow .15s;
            box-shadow: 0 4px 18px rgba(15,35,71,.28);
            font-family: 'Inter', sans-serif;
            letter-spacing: .2px;
        }
        .submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(15,35,71,.34); }
        .submit-btn:active { transform: translateY(0); }

        .disclaimer { font-size: 11px; color: #8fa3be; text-align: center; margin-top: 16px; line-height: 1.6; }

        /* ── Result area ── */
        .result-area { display: none; }
        .result-top {text-align: center;padding: 0px 0 0px;}
        .profile-badge {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            border-radius: 99px;
            padding: 6px 10px;
            font-size: 14px;
            font-weight: 700;
            margin-bottom: 3px;
            font-family: 'Sora', sans-serif;
        }
        .badge-conservative { background: #fff7ed; color: #9a3412; border: 1.5px solid #fdba74; }
        .badge-moderate     { background: #eff6ff; color: #1e40af; border: 1.5px solid #93c5fd; }
        .badge-aggressive   { background: #f0fdf4; color: #166534; border: 1.5px solid #86efac; }
        .score-txt {font-size: 13px;color: #8fa3be;margin-bottom: 6px;font-weight: 500; display:none;}

        .charts-row {display: grid;grid-template-columns: 1fr 1fr;gap: 14px;margin-bottom: 11px;}
        @media(max-width: 540px) { .charts-row { grid-template-columns: 1fr; } }

        .chart-card {
            background: #ffffff;
            border: 1.5px solid #e4e9f2;
            border-radius: 14px;
            padding: 0px;
            box-shadow: 0 2px 8px rgba(15,35,71,.06);
        }
        .cc-title {
            font-size: 13px;
            font-weight: 700;
            color: #4a5568;
            text-transform: uppercase;
            letter-spacing: .6px;
            margin-bottom: 0px;
            display: flex;
            align-items: center;
            gap: 7px;
            padding: 0px 16px;
            padding-top: 10px;
        }
        .cc-title i { color: #1a3a6b; font-size: 14px; }
        .cw { position: relative; width: 100%; height: 190px; }
        .leg {margin-top: 0px;display: flex;flex-direction: column;gap: 0px;padding: 0px 12px;}
        .leg-row {
            display: flex; align-items: center; justify-content: space-between;
            font-size: 11px; color: #4a5568; padding: 3px 0;
        }
        .leg-left { display: flex; align-items: center; gap: 8px; }
        .leg-dot { width: 8px; height: 8px; border-radius: 3px; flex-shrink: 0; }
        .leg-pct { font-weight: 700; color: #0f1b2d; font-size: 12px; }

        .retake-row { text-align: center; margin-top: 8px; }
        .retake-btn {
            background: #f5f7fb; border: 1.5px solid #e4e9f2;
            border-radius: 10px; padding: 11px 28px;
            font-size: 13px; font-weight: 600; cursor: pointer; color: #4a5568;
            display: inline-flex; align-items: center; gap: 7px;
            transition: background .15s, border-color .15s;
            font-family: 'Inter', sans-serif;
        }
        .retake-btn:hover { background: #e4e9f2; border-color: #c8d0df; color: #0f1b2d; }

        /* ═══════════════════════════════════
           OTP MODAL
           ═══════════════════════════════════ */
        .otp-backdrop {
            display: none; position: fixed; inset: 0; z-index: 9999;
            background: rgba(8,15,30,.65); backdrop-filter: blur(6px);
            align-items: center; justify-content: center;
        }
        .otp-backdrop.open { display: flex; }

        .otp-card {
            background: #ffffff;
            border-radius: 22px; width: 100%; max-width: 420px; margin: 16px;
            box-shadow: 0 20px 60px rgba(15,35,71,.18);
            overflow: hidden;
            animation: otp-pop .28s cubic-bezier(.34,1.56,.64,1) both;
        }
        @keyframes otp-pop {
            from { opacity: 0; transform: scale(.86) translateY(22px); }
            to   { opacity: 1; transform: scale(1)  translateY(0); }
        }

        .otp-card-head {
            background: linear-gradient(135deg, #0f2347 0%, #1e4080 100%);
            padding: 7px 24px 8px;
            display: flex;
            align-items: flex-start;
            gap: 14px;
            position: relative;
            overflow: hidden;
        }
        .otp-card-head::after {
            content: ''; position: absolute;
            top: -30px; right: -30px;
            width: 130px; height: 130px;
            border-radius: 50%;
            background: rgba(201,168,76,.1);
            pointer-events: none;
        }
        .otp-head-icon {
            width: 46px; height: 46px; border-radius: 13px;
            background: rgba(201,168,76,.18);
            border: 1px solid rgba(201,168,76,.3);
            display: flex; align-items: center; justify-content: center; flex-shrink: 0;
        }
        .otp-head-icon i { color: #c9a84c; font-size: 20px; }
        .otp-head-text { flex: 1; }
        .otp-head-text h3 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 4px; font-family: 'Sora', sans-serif; }
        .otp-head-text p  { color: rgba(255,255,255,.55); font-size: 12px; line-height: 1.5; }
        .otp-close-btn {
            background: rgba(255,255,255,.12); border: none; border-radius: 9px;
            width: 32px; height: 32px;
            display: flex; align-items: center; justify-content: center;
            cursor: pointer; color: rgba(255,255,255,.7); font-size: 15px;
            transition: background .15s; flex-shrink: 0; margin-top: 2px;
        }
        .otp-close-btn:hover { background: rgba(255,255,255,.22); color: #fff; }

        .otp-card-body { padding: 26px 24px; }

        .otp-step { display: none; }
        .otp-step.active { display: block; }

        .otp-field-label {
            font-size: 11px; font-weight: 700; color: #4a5568;
            text-transform: uppercase; letter-spacing: .6px; margin-bottom: 8px;
        }

        /* Email input */
        .otp-email-wrap {
            border: 1.5px solid #e4e9f2; border-radius: 11px;
            display: flex; align-items: center; overflow: hidden;
            transition: border-color .15s, box-shadow .15s;
        }
        .otp-email-wrap:focus-within { border-color: #1a3a6b; box-shadow: 0 0 0 3px rgba(26,58,107,.1); }
        .otp-input-icon {padding: 14px 16px;color: #8fa3be;font-size: 14px;flex-shrink: 0;border-right: 1px solid #e4e9f2;background: #f8fafd;}
        .otp-email-input {
            flex: 1;
            border: none;
            outline: none;
            height: 46px;
            padding: 0 13px;
            font-size: 14px;
            color: #0f1b2d;
            background: transparent;
            font-family: 'Inter', sans-serif;
        }
        .otp-email-input::placeholder { color: #8fa3be; }

        /* Mobile input */
        .otp-mobile-wrap {
            border: 1.5px solid #e4e9f2; border-radius: 11px;
            display: flex; align-items: center; overflow: hidden;
            transition: border-color .15s, box-shadow .15s;
            margin-top: 14px;
        }
        .otp-mobile-wrap:focus-within { border-color: #1a3a6b; box-shadow: 0 0 0 3px rgba(26,58,107,.1); }
        .otp-prefix {
            padding: 0 5px;
            height: 46px;
            background: #F8FAFC;
            border-right: 1px solid #e4e9f2;
            display: flex;
            align-items: center;
            font-size: 13px;
            font-weight: 700;
            color: #0f1b2d;
            flex-shrink: 0;
            gap: 6px;
        }
        .otp-prefix i { color: #8fa3be; font-size: 11px; }
        .otp-mobile-input {
            flex: 1; border: none; outline: none;
            height: 46px; padding: 0 13px;
            font-size: 15px; font-weight: 600; color: #0f1b2d;
            background: transparent; letter-spacing: .5px;
            font-family: 'Inter', sans-serif;
        }
        .otp-mobile-input::placeholder { font-weight: 400; color: #8fa3be; letter-spacing: 0; }

        .otp-err-msg { font-size: 12px; color: #ef4444; margin-top: 7px; min-height: 18px; font-weight: 500; }

        /* Send button */
        .otp-send-btn {
            width: 100%; margin-top: 18px;
            background: linear-gradient(135deg, #0f2347 0%, #1e4080 100%);
            color: #fff; border: none; border-radius: 11px;
            height: 48px; font-size: 14px; font-weight: 700;
            cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 9px;
            transition: transform .15s, box-shadow .15s;
            box-shadow: 0 4px 14px rgba(15,35,71,.22);
            font-family: 'Inter', sans-serif;
        }
        .otp-send-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 7px 20px rgba(15,35,71,.28); }
        .otp-send-btn:disabled { background: #e4e9f2; color: #8fa3be; cursor: not-allowed; box-shadow: none; transform: none; }

        /* OTP Verify step */
        .otp-sent-info {
            font-size: 13px; color: #4a5568; text-align: center;
            margin-bottom: 22px; line-height: 1.6; padding: 12px 16px;
            background: #f5f7fb; border-radius: 10px; border: 1px solid #e4e9f2;
        }
        .otp-sent-info strong { color: #0f1b2d; font-weight: 700; }

        .otp-digits-label { font-size: 12px; color: #4a5568; text-align: center; margin-bottom: 12px; font-weight: 500; }

        .otp-digits-row { display: flex; gap: 9px; justify-content: center; margin-bottom: 8px; }
        .otp-digit {
            width: 46px; height: 56px;
            border: 1.5px solid #e4e9f2; border-radius: 12px;
            text-align: center; font-size: 22px; font-weight: 700;
            color: #0f1b2d; outline: none;
            transition: border-color .15s, box-shadow .15s, background .15s;
            caret-color: #1a3a6b;
            background: #ffffff;
            font-family: 'Inter', sans-serif;
        }
        .otp-digit:focus { border-color: #1a3a6b; box-shadow: 0 0 0 3px rgba(26,58,107,.12); }
        .otp-digit.filled { border-color: #1a3a6b; background: #f0f4ff; }
        .otp-digit.error  { border-color: #ef4444; background: #fff5f5; animation: otp-shake .32s; }
        .otp-digit.success { border-color: #22c55e; background: #f0fdf4; }

        @keyframes otp-shake {
            0%,100% { transform: translateX(0); }
            25%      { transform: translateX(-5px); }
            75%      { transform: translateX(5px); }
        }

        /* Auto-verifying indicator */
        .otp-auto-verify {
            text-align: center; font-size: 12px; color: #1a3a6b;
            font-weight: 600; height: 20px; margin-bottom: 10px;
            display: flex; align-items: center; justify-content: center; gap: 6px;
            opacity: 0; transition: opacity .2s;
        }
        .otp-auto-verify.visible { opacity: 1; }

        .otp-verify-btn {
            width: 100%; background: linear-gradient(135deg, #0f2347 0%, #1e4080 100%);
            color: #fff; border: none; border-radius: 11px;
            height: 48px; font-size: 14px; font-weight: 700;
            cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 9px;
            transition: transform .15s, box-shadow .15s; margin-bottom: 16px;
            box-shadow: 0 4px 14px rgba(15,35,71,.22);
            font-family: 'Inter', sans-serif;
        }
        .otp-verify-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 7px 20px rgba(15,35,71,.28); }
        .otp-verify-btn:disabled { background: #e4e9f2; color: #8fa3be; cursor: not-allowed; box-shadow: none; transform: none; }

        .otp-resend-row { text-align: center; font-size: 12px; color: #8fa3be; }
        .otp-resend-link {
            color: #1a3a6b; font-weight: 700; cursor: pointer;
            text-decoration: underline; display: none;
            transition: color .15s;
        }
        .otp-resend-link:hover { color: #0f2347; }
        .otp-timer { font-weight: 700; color: #1a3a6b; }

        /* Success flash */
        .otp-success-flash { display: none; text-align: center; padding: 36px 24px; }
        .otp-success-icon {
            width: 64px; height: 64px; border-radius: 50%;
            background: #f0fdf4; border: 2px solid #86efac;
            display: flex; align-items: center; justify-content: center;
            margin: 0 auto 14px;
        }
        .otp-success-icon i { font-size: 28px; color: #22c55e; }
        .otp-success-flash h4 { font-size: 16px; font-weight: 700; color: #0f1b2d; margin-bottom: 4px; }
        .otp-success-flash p  { font-size: 13px; color: #4a5568; }

        /* Spinner */
        .spin-icon { animation: spin-anim .7s linear infinite; display: inline-block; }
        @keyframes spin-anim { to { transform: rotate(360deg); } }

        .waiting-overlay { display: none !important; }
        .rupeeicon{ font-size:10px; margin-right:2px;}
        
        /******/
        .retake-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 22px;
    background: linear-gradient(135deg, #08121e 0%, #0d2040 55%, #091728 100%);
    background-size: 200% 200%;
    border: 1.5px solid rgba(240,180,41,.35);
    border-radius: 10px;
    color: rgba(255,255,255,.92);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .4px;
    cursor: pointer;
    overflow: hidden;
    transition: .3s cubic-bezier(.34, 1.56, .64, 1);
    animation:
        rbGradient 8s ease infinite,
        rbPulse 2.8s ease-in-out infinite,
        rbBorder 2.8s ease-in-out infinite;
}

/* Subtle gold grid */
.retake-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(240,180,41,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(240,180,41,.055) 1px, transparent 1px);
    background-size: 14px 14px;
    pointer-events: none;
    z-index: 0;
}

/* Shimmer sweep */
.retake-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -130%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(240,180,41,.13), transparent);
    transform: skewX(-15deg);
    animation: rbShimmer 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.retake-btn i,
.retake-btn span {
    position: relative;
    z-index: 1;
}

/* Gold icon with spin every 4s */
.retake-btn i {
    color: #f0b429;
    font-size: 15px;
    filter: drop-shadow(0 0 7px rgba(240,180,41,.6));
    animation: rbSpin 4s ease-in-out infinite;
}

.retake-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 14px 38px rgba(8,18,30,.55),
        0 0 24px rgba(240,180,41,.22);
    border-color: rgba(240,180,41,.88);
}

.retake-btn:active {
    transform: scale(0.97);
}

@keyframes rbGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes rbPulse {
    0%, 100% { box-shadow: 0 4px 18px rgba(8,18,30,.4), 0 0 0 0 rgba(240,180,41,.6); }
    50%       { box-shadow: 0 4px 18px rgba(8,18,30,.4), 0 0 0 8px rgba(240,180,41,0); }
}

@keyframes rbBorder {
    0%, 100% { border-color: rgba(240,180,41,.28); }
    50%       { border-color: rgba(240,180,41,.95); }
}

@keyframes rbShimmer {
    0%   { left: -130%; }
    100% { left: 180%; }
}

/* Full spin every 4 seconds */
@keyframes rbSpin {
    0%, 72%, 100% { transform: rotate(0deg); }
    86%            { transform: rotate(360deg); }
}

.cw {position: relative;width: 100%;height: 285px;}
.result-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 11px;
    width: 100%;
    margin-bottom: 9px;
}

.result-left {
    display: ruby;
    flex-direction: column;
    align-items: normal;
}

.result-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.retake-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .result-top {
        flex-direction: column;
        text-align: center;
    }

    .result-left,
    .result-right {
        width: 100%;
        align-items: center;
        justify-content: center;
    }
}