        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0
        }

        :root {
            --navy: #1B2A6B;
            --navy2: #223278;
            --navy-light: #2B3D8A;
            --orange: #FF8B02;
            --orange-dark: #D97400;
            --orange-light: #FFF3E0;
            --ink: #111114;
            --ink2: #5A6070;
            --ink3: #9AA0B0;
            --bg: #F0F2F8;
            --surface: #fff;
            --surface2: #F6F7FB;
            --line: #E0E4F0;
            --green: #1A7F4B;
            --green-bg: #E5F4EC;
            --red: #DC2626;
            --red-bg: #FEF2F2;
            --amber: #D97400;
            --amber-bg: #FFFBEB;
            --r: 16px;
            --r-sm: 10px;
            --ease: cubic-bezier(.4, 0, .2, 1);
        }

        body{font-family:var(--font-sans);
            background: var(--bg);
            color: var(--ink);
            -webkit-font-smoothing: antialiased
        }

        * {
            box-sizing: border-box
        }

        .cursor-move,
        .home-link,
        .calc-tab,
        .predict-btn,
        .college-card,
        .conv-card,
        .cutoffs-table tr,
        .calc-badge,
        .profile-tag,
        .f-input,
        .f-select,
        .f-slider {
            cursor: move
        }

        button,
        a {
            cursor: move
        }

        .slider-wrap {
            position: relative;
            padding-top: 8px
        }

        .slider-handle {
            position: absolute;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--orange);
            border: 3px solid #fff;
            box-shadow: 0 2px 8px rgba(255, 139, 2, .35);
            z-index: 2;
            pointer-events: auto
        }

        #scoreSlider {
            position: relative;
            z-index: 1
        }

        /* ===== WRAPPER ===== */
        .calc-wrap {
            max-width: 960px;
            margin: 0 auto;
            padding: 24px 20px 60px
        }

        /* ===== HEADER ===== */
        .calc-header {
            background: linear-gradient(135deg, var(--navy) 0%, #1a3080 100%);
            border-radius: 20px;
            padding: 32px 36px;
            margin-bottom: 24px;
            position: relative;
            overflow: hidden;
        }

        .home-link {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            font-size: 12px;
            font-weight: 700;
            color: #fff;
            background: rgba(255, 255, 255, .12);
            border: 1px solid rgba(255, 255, 255, .18);
            padding: 7px 12px;
            border-radius: 999px;
            text-decoration: none;
            transition: .2s;
            margin-bottom: 14px;
        }

        .home-link:hover {
            background: rgba(255, 255, 255, .2);
            transform: translateY(-1px)
        }

        .calc-header::after {
            content: "";
            position: absolute;
            width: 400px;
            height: 400px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(255, 139, 2, .14) 0%, transparent 65%);
            top: -140px;
            right: -100px;
            pointer-events: none
        }

        .calc-eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            font-size: 10px;
            font-weight: 700;
            color: var(--orange);
            text-transform: uppercase;
            letter-spacing: .12em;
            background: rgba(255, 139, 2, .12);
            border: 1px solid rgba(255, 139, 2, .25);
            padding: 5px 13px;
            border-radius: 30px;
            margin-bottom: 14px
        }

        .calc-title {
            font-size: 28px;
            font-weight: 900;
            color: #fff;
            letter-spacing: -.03em;
            line-height: 1.1;
            margin-bottom: 8px
        }

        .calc-title span {
            color: var(--orange)
        }

        .calc-sub {
            font-size: 13px;
            color: rgba(255, 255, 255, .6);
            font-family: 'Inter', sans-serif;
            line-height: 1.6
        }

        .calc-badge-row {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-top: 16px
        }

        .calc-badge {
            font-size: 11px;
            font-weight: 700;
            color: rgba(255, 255, 255, .8);
            background: rgba(255, 255, 255, .1);
            border: 1px solid rgba(255, 255, 255, .15);
            padding: 5px 12px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            gap: 6px
        }

        /* ===== TABS ===== */
        .calc-tabs {
            display: flex;
            gap: 6px;
            background: var(--surface);
            border: 1px solid var(--line);
            border-radius: 14px;
            padding: 6px;
            margin-bottom: 20px
        }

        .calc-tab {
            flex: 1;
            padding: 10px;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 700;
            color: var(--ink2);
            background: transparent;
            border: none;
            cursor: pointer;
            transition: .2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 7px
        }

        .calc-tab:hover {
            background: var(--surface2);
            color: var(--navy)
        }

        .calc-tab.active {
            background: var(--navy);
            color: #fff
        }

        .calc-tab i {
            font-size: 16px
        }

        .tab-panel {
            display: none
        }

        .tab-panel.active {
            display: block
        }

        /* ===== FORM CARD ===== */
        .form-card {
            background: var(--surface);
            border: 1px solid var(--line);
            border-radius: var(--r);
            padding: 28px;
            margin-bottom: 20px
        }

        .form-card h3 {
            font-size: 15px;
            font-weight: 800;
            color: var(--navy);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 9px
        }

        .form-card h3 i {
            color: var(--orange);
            font-size: 18px
        }

        .form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px
        }

        .form-grid-3 {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 16px
        }

        .f-group {
            display: flex;
            flex-direction: column;
            gap: 6px
        }

        .f-group.full {
            grid-column: 1/-1
        }

        .f-label {
            font-size: 11.5px;
            font-weight: 600;
            color: var(--ink2);
            font-family: 'Inter', sans-serif
        }

        .f-input,
        .f-select {
            font-family: 'Inter', sans-serif;
            font-size: 13.5px;
            padding: 11px 14px;
            border: 1.5px solid var(--line);
            border-radius: var(--r-sm);
            background: var(--surface2);
            outline: none;
            transition: .2s;
            color: var(--ink);
            width: 100%;
        }

        .f-input:focus,
        .f-select:focus {
            border-color: var(--orange);
            background: #fff;
            box-shadow: 0 0 0 3px rgba(255, 139, 2, .1)
        }

        .f-hint {
            font-size: 11px;
            color: var(--ink3);
            font-family: 'Inter', sans-serif
        }

        /* Score slider */
        .slider-wrap {
            position: relative
        }

        .f-slider {
            width: 100%;
            -webkit-appearance: none;
            appearance: none;
            height: 6px;
            border-radius: 3px;
            background: var(--line);
            outline: none;
            cursor: pointer
        }

        .f-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--orange);
            cursor: pointer;
            border: 3px solid #fff;
            box-shadow: 0 2px 8px rgba(255, 139, 2, .4)
        }

        .f-slider::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--orange);
            cursor: pointer;
            border: 3px solid #fff;
            box-shadow: 0 2px 8px rgba(255, 139, 2, .4)
        }

        .slider-labels {
            display: flex;
            justify-content: space-between;
            font-size: 10.5px;
            color: var(--ink3);
            margin-top: 4px;
            font-family: 'Inter', sans-serif
        }

        .score-display {
            text-align: center;
            font-size: 32px;
            font-weight: 900;
            color: var(--navy);
            letter-spacing: -.04em;
            line-height: 1;
            margin-bottom: 4px;
        }

        .percentile-display {
            text-align: center;
            font-size: 13px;
            font-weight: 600;
            color: var(--orange-dark);
            font-family: 'Inter', sans-serif;
            background: var(--orange-light);
            border: 1px solid rgba(255, 139, 2, .2);
            padding: 6px 16px;
            border-radius: 20px;
            display: inline-block;
            margin: 0 auto 6px;
        }

        .score-center {
            text-align: center;
            margin-bottom: 16px
        }

        /* ===== PREDICT BUTTON ===== */
        .predict-btn {
            width: 100%;
            background: var(--orange);
            color: #fff;
            font-size: 15px;
            font-weight: 700;
            padding: 15px;
            border-radius: 30px;
            border: none;
            cursor: pointer;
            font-family: inherit;
            transition: .22s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 9px;
            margin-top: 8px;
        }

        .predict-btn:hover {
            background: var(--orange-dark);
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(255, 139, 2, .35)
        }

        .predict-btn:disabled {
            opacity: .6;
            pointer-events: none
        }

        .predict-btn .spinner {
            width: 18px;
            height: 18px;
            border: 2px solid rgba(255, 255, 255, .3);
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin .7s linear infinite
        }

        @keyframes spin {
            to {
                transform: rotate(360deg)
            }
        }

        /* ===== RESULTS ===== */
        .results-wrap {
            animation: fadeUp .4s ease
        }

        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(16px)
            }

            to {
                opacity: 1;
                transform: none
            }
        }

        .profile-summary {
            background: linear-gradient(120deg, var(--navy) 0%, #1a3080 100%);
            border-radius: var(--r);
            padding: 22px 26px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 16px;
        }

        .profile-summary-left h4 {
            font-size: 13px;
            color: rgba(255, 255, 255, .5);
            font-family: 'Inter', sans-serif;
            margin-bottom: 6px
        }

        .profile-summary-left p {
            font-size: 18px;
            font-weight: 800;
            color: #fff;
            letter-spacing: -.02em
        }

        .profile-tags {
            display: flex;
            gap: 8px;
            flex-wrap: wrap
        }

        .profile-tag {
            font-size: 11px;
            font-weight: 700;
            color: rgba(255, 255, 255, .8);
            background: rgba(255, 255, 255, .1);
            border: 1px solid rgba(255, 255, 255, .15);
            padding: 4px 11px;
            border-radius: 20px
        }

        .profile-percentile {
            text-align: right
        }

        .profile-percentile .big {
            font-size: 36px;
            font-weight: 900;
            color: #fff;
            letter-spacing: -.04em;
            line-height: 1
        }

        .profile-percentile .big span {
            color: var(--orange)
        }

        .profile-percentile .lbl {
            font-size: 11px;
            color: rgba(255, 255, 255, .5);
            font-family: 'Inter', sans-serif
        }

        /* College list */
        .colleges-section {
            margin-bottom: 24px
        }

        .colleges-section h3 {
            font-size: 14px;
            font-weight: 800;
            color: var(--ink);
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
            padding-left: 2px
        }

        .colleges-section h3 .section-tag {
            font-size: 11px;
            font-weight: 700;
            padding: 3px 10px;
            border-radius: 20px
        }

        .section-tag.dream {
            background: #EDE9FE;
            color: #7C3AED
        }

        .section-tag.ambitious {
            background: #DBEAFE;
            color: #1D4ED8
        }

        .section-tag.safe {
            background: var(--green-bg);
            color: var(--green)
        }

        .college-card {
            background: var(--surface);
            border: 1px solid var(--line);
            border-radius: 12px;
            padding: 14px 18px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 14px;
            transition: transform .2s, box-shadow .2s, border-color .2s;
        }

        .college-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(26, 43, 107, .09);
            border-color: rgba(27, 42, 107, .2)
        }

        .college-rank {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 800;
        }

        .rank-dream {
            background: #EDE9FE;
            color: #7C3AED
        }

        .rank-ambitious {
            background: #DBEAFE;
            color: #1D4ED8
        }

        .rank-safe {
            background: var(--green-bg);
            color: var(--green)
        }

        .college-info {
            flex: 1
        }

        .college-name {
            font-size: 14px;
            font-weight: 700;
            color: var(--navy)
        }

        .college-meta {
            font-size: 11.5px;
            color: var(--ink2);
            font-family: 'Inter', sans-serif;
            margin-top: 2px;
            display: flex;
            flex-wrap: wrap;
            gap: 8px
        }

        .college-meta span {
            display: flex;
            align-items: center;
            gap: 4px
        }

        .college-right {
            text-align: right;
            flex-shrink: 0
        }

        .college-chance {
            font-size: 13px;
            font-weight: 800;
            color: var(--navy)
        }

        .college-chance-lbl {
            font-size: 10.5px;
            color: var(--ink3);
            font-family: 'Inter', sans-serif
        }

        .chance-bar-wrap {
            width: 80px;
            height: 5px;
            background: var(--line);
            border-radius: 3px;
            margin-top: 5px;
            margin-left: auto
        }

        .chance-bar {
            height: 100%;
            border-radius: 3px;
            transition: width 1s var(--ease)
        }

        .chance-bar.high {
            background: var(--green)
        }

        .chance-bar.medium {
            background: var(--amber)
        }

        .chance-bar.low {
            background: #9CA3AF
        }

        .college-diversity-note {
            font-size: 11px;
            font-weight: 600;
            color: #7C3AED;
            background: #EDE9FE;
            padding: 2px 8px;
            border-radius: 10px;
            margin-top: 4px;
            display: inline-block;
        }

        /* AI Tips */
        .ai-tips-card {
            background: linear-gradient(120deg, #F0EEFF 0%, #EEF1FB 100%);
            border: 1px solid #DDD6FE;
            border-radius: var(--r);
            padding: 22px 24px;
            margin-bottom: 20px;
        }

        .ai-tips-card h3 {
            font-size: 14px;
            font-weight: 800;
            color: #5B21B6;
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 8px
        }

        .ai-tips-card h3 i {
            font-size: 18px
        }

        .ai-tip-item {
            font-size: 13px;
            color: #4C1D95;
            line-height: 1.6;
            font-family: 'Inter', sans-serif;
            padding: 8px 0;
            border-bottom: 1px solid rgba(221, 214, 254, .5)
        }

        .ai-tip-item:last-child {
            border-bottom: none;
            padding-bottom: 0
        }

        .ai-tip-item strong {
            color: #5B21B6
        }

        .ai-loading {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 13px;
            color: #6B7280;
            font-family: 'Inter', sans-serif
        }

        .ai-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #7C3AED;
            animation: aiPulse 1s ease-in-out infinite
        }

        .ai-dot:nth-child(2) {
            animation-delay: .15s
        }

        .ai-dot:nth-child(3) {
            animation-delay: .3s
        }

        @keyframes aiPulse {

            0%,
            100% {
                opacity: .3;
                transform: scale(.8)
            }

            50% {
                opacity: 1;
                transform: scale(1.2)
            }
        }

        /* Score Converter tab */
        .converter-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px
        }

        .conv-card {
            background: var(--surface);
            border: 1px solid var(--line);
            border-radius: var(--r);
            padding: 24px
        }

        .conv-card h4 {
            font-size: 13px;
            font-weight: 700;
            color: var(--navy);
            margin-bottom: 16px
        }

        .conv-table {
            width: 100%;
            border-collapse: collapse
        }

        .conv-table th {
            background: var(--navy);
            color: #fff;
            font-size: 11px;
            font-weight: 700;
            padding: 10px 12px;
            text-align: left
        }

        .conv-table td {
            font-size: 12.5px;
            padding: 9px 12px;
            border-bottom: 1px solid var(--line);
            font-family: 'Inter', sans-serif;
            color: var(--ink)
        }

        .conv-table tr:last-child td {
            border-bottom: none
        }

        .conv-table tr:hover td {
            background: var(--surface2)
        }

        .percentile-pill {
            font-size: 11px;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 10px
        }

        .p-excellent {
            background: #DCFCE7;
            color: #166534
        }

        .p-good {
            background: #DBEAFE;
            color: #1E40AF
        }

        .p-average {
            background: #FEF9C3;
            color: #854D0E
        }

        .p-below {
            background: #FEE2E2;
            color: #991B1B
        }

        /* Cutoffs table */
        .cutoffs-table-wrap {
            overflow-x: auto
        }

        .cutoffs-table {
            width: 100%;
            border-collapse: collapse;
            background: var(--surface);
            border: 1px solid var(--line);
            border-radius: var(--r);
            overflow: hidden
        }

        .cutoffs-table th {
            background: var(--navy);
            color: #fff;
            font-size: 11px;
            font-weight: 700;
            padding: 12px 14px;
            text-align: left;
            white-space: nowrap
        }

        .cutoffs-table td {
            font-size: 12px;
            padding: 11px 14px;
            border-bottom: 1px solid var(--line);
            font-family: 'Inter', sans-serif;
            color: var(--ink);
            vertical-align: middle
        }

        .cutoffs-table tr:last-child td {
            border-bottom: none
        }

        .cutoffs-table tr:hover td {
            background: var(--surface2)
        }

        .cutoffs-table .college-name-cell {
            font-weight: 700;
            color: var(--navy);
            font-family: 'Inter', sans-serif;
            font-size: 13px
        }

        .cutoffs-table .tier-badge {
            font-size: 10px;
            font-weight: 700;
            padding: 2px 7px;
            border-radius: 10px;
            display: inline-block;
            margin-top: 2px
        }

        .tier-1 {
            background: #FEF3C7;
            color: #B45309
        }

        .tier-2 {
            background: #E0E7FF;
            color: #3730A3
        }

        .tier-3 {
            background: var(--green-bg);
            color: var(--green)
        }

        @media(max-width:640px) {

            .form-grid,
            .form-grid-3 {
                grid-template-columns: 1fr
            }

            .converter-grid {
                grid-template-columns: 1fr
            }

            .calc-title {
                font-size: 22px
            }

            .profile-summary {
                flex-direction: column
            }

            .profile-percentile {
                text-align: left
            }

            .calc-header {
                padding: 24px 20px
            }
        }

