        /* Academic Data-Driven Tokens */
        :root {
            /* Palette */
            --surface: #f8f9ff;
            --surface-container-lowest: #ffffff;
            --surface-container-low: #eff4ff;
            --surface-container: #e5eeff;
            --surface-container-high: #dce9ff;
            --surface-container-highest: #d3e4fe;
            --primary: #4648d4; 
            --primary-variant: #6063ee;
            --secondary: #6b38d4;
            --success: #10b981;
            --error: #ba1a1a;
            
            /* Text & Outline */
            --text-main: #0b1c30;
            --text-muted: #475569; /* Rich slate gray for excellent readability */
            --text-disabled: #94a3b8;
            --hairline: #e2e8f0;

            /* Typography */
            --font-sans: 'Plus Jakarta Sans', sans-serif;
            --font-mono: 'Inter', sans-serif;

            /* Spacing & Radii */
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --container-max: 1280px;
        }

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

        body {
            font-family: var(--font-sans);
            background-color: var(--surface);
            color: var(--text-main);
            overflow-x: hidden;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
        }

        /* Sleek Nav Layout - Rich Navy for brand authenticity and white logo visibility */
        .sleek-nav {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 72px;
            background-color: #0b1c30;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 100;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        }

        .main-content {
            background-color: var(--surface);
            min-height: 100vh;
            padding-top: 72px; /* For fixed nav */
        }

        .main-container {
            max-width: var(--container-max);
            margin: 0 auto;
            padding: 48px 32px 64px 32px;
        }

        .header-section {
            text-align: center;
            margin-bottom: 48px;
        }

        .header-title {
            font-size: 2.75rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            line-height: 1.2;
            margin-bottom: 16px;
            color: var(--text-main);
        }

        .header-subtitle {
            font-size: 1.125rem;
            color: var(--text-muted);
            max-width: 800px;
            margin: 0 auto;
        }

        /* Dashboard Grid */
        .dashboard-grid {
            display: flex;
            flex-direction: column;
            gap: 32px;
        }

        /* Dashboard Cards */
        .glass-card {
            background-color: var(--surface-container-lowest);
            border: 1px solid var(--hairline);
            border-radius: var(--radius-lg);
            padding: 32px;
            box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.02);
            position: relative;
            overflow: hidden;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
        }

        .glass-card:hover {
            transform: translateY(-2px);
            box-shadow: 0px 12px 32px rgba(70, 72, 212, 0.06);
            border-color: rgba(70, 72, 212, 0.15);
        }
        
        .glass-card-header {
            display: flex;
            align-items: center;
            gap: 12px;
            font-weight: 700;
            font-size: 1.25rem;
            margin-bottom: 24px;
            color: var(--text-main);
        }

        .glass-card-header i {
            color: var(--primary);
        }

        /* Inputs & Form Elements */
        input[type=number]::-webkit-inner-spin-button, 
        input[type=number]::-webkit-outer-spin-button { 
            -webkit-appearance: none; 
            margin: 0; 
        }
        input[type=number] {
            -moz-appearance: textfield;
        }

        .input-group {
            margin-bottom: 24px;
        }

        .input-label {
            display: block;
            font-size: 0.85rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--text-muted);
            margin-bottom: 8px;
        }

        .input-wrapper {
            position: relative;
        }

        .input-control {
            width: 100%;
            background-color: var(--surface-container-lowest);
            border: 1px solid var(--hairline);
            border-radius: var(--radius-sm);
            padding: 14px 16px;
            font-family: var(--font-mono);
            font-size: 1rem;
            color: var(--text-main);
            outline: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .input-control:hover {
            border-color: var(--primary);
        }

        .input-control:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(70, 72, 212, 0.15);
            background-color: var(--surface-container-lowest);
        }

        .input-huge {
            font-size: 2rem;
            padding: 16px;
            text-align: center;
            font-weight: 700;
        }

        .input-suffix {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            font-family: var(--font-mono);
            color: var(--text-muted);
            font-weight: 600;
        }

        .select-control {
            appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 16px center;
            background-size: 16px;
            padding-right: 48px;
            cursor: pointer;
        }

        .input-error {
            color: var(--error);
            font-size: 0.85rem;
            font-weight: 600;
            margin-top: 6px;
            display: none;
        }

        /* Buttons - Organic premium styling */
        .btn-primary {
            width: 100%;
            background: linear-gradient(180deg, var(--primary), var(--secondary));
            color: #ffffff;
            border: none;
            border-radius: var(--radius-sm);
            padding: 16px 24px;
            font-family: var(--font-sans);
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 14px rgba(70, 72, 212, 0.2);
            position: relative;
            overflow: hidden;
        }

        .btn-primary::after {
            content: '';
            position: absolute;
            top: 0; left: -100%; width: 50%; height: 100%;
            background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
            transform: skewX(-20deg);
            transition: all 0.6s ease;
        }

        .btn-primary:hover::after {
            left: 200%;
        }

        .btn-primary:hover {
            background: linear-gradient(180deg, #3730a3, #581c87);
            box-shadow: 0 6px 20px rgba(55, 48, 163, 0.3);
            transform: translateY(-1px);
        }

        .btn-ghost {
            background: transparent;
            color: var(--text-main);
            border: 1px solid var(--hairline);
            border-radius: var(--radius-sm);
            padding: 12px 20px;
            font-weight: 600;
            font-size: 0.875rem;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .btn-ghost:hover {
            background-color: rgba(70, 72, 212, 0.05);
            border-color: rgba(70, 72, 212, 0.15);
        }

        /* Diagnostic & Alerts - Perfect light mode contrast */
        .alert-box {
            background-color: rgba(70, 72, 212, 0.04);
            border: 1px solid rgba(70, 72, 212, 0.15);
            border-radius: var(--radius-sm);
            padding: 16px;
            margin-bottom: 24px;
        }
        
        .alert-box.warning {
            background-color: rgba(180, 83, 9, 0.04);
            border: 1px solid rgba(180, 83, 9, 0.15);
        }

        .alert-title {
            font-size: 0.875rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .alert-box.warning .alert-title {
            color: #b45309; /* Deep amber warning text for WCAG compliance */
        }

        .alert-text {
            font-size: 0.875rem;
            color: #334155; /* Rich dark slate gray for readability */
            line-height: 1.5;
        }

        /* Output Terminals */
        .output-panel {
            display: none;
        }
        
        /* Loading Spinner */
        .loading-container {
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 64px 0;
            text-align: center;
        }

        .spinner {
            width: 64px;
            height: 64px;
            position: relative;
            margin-bottom: 24px;
        }

        .spinner::before, .spinner::after {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            border-radius: 50%;
            border: 3px solid transparent;
        }

        .spinner::before {
            border-top-color: var(--primary);
            border-bottom-color: var(--primary);
            animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
        }

        .spinner::after {
            border-left-color: var(--secondary);
            border-right-color: var(--secondary);
            animation: spin-reverse 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
        }
        
        .spinner-core {
            position: absolute;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%);
            width: 16px;
            height: 16px;
            background-color: var(--primary);
            border-radius: 50%;
            animation: pulse 1.5s ease-in-out infinite alternate;
            box-shadow: 0 0 16px var(--primary);
        }

        @keyframes spin {
            0% { transform: rotate(0deg) scale(1); }
            50% { transform: rotate(180deg) scale(1.1); }
            100% { transform: rotate(360deg) scale(1); }
        }

        @keyframes spin-reverse {
            0% { transform: rotate(360deg) scale(1); }
            50% { transform: rotate(180deg) scale(0.9); }
            100% { transform: rotate(0deg) scale(1); }
        }

        @keyframes pulse {
            0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.6; }
            100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
        }

        .loading-text {
            font-size: 1rem;
            color: var(--primary);
            font-weight: 700;
        }

        /* Empty State */
        .empty-state {
            padding: 80px 20px;
            text-align: center;
            color: var(--text-muted);
        }

        .empty-icon {
            color: rgba(70, 72, 212, 0.15);
            margin-bottom: 16px;
        }

        /* Key Metrics Grid */
        .metrics-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
            margin-bottom: 32px;
        }

        .metric-card {
            background-color: var(--surface-container-low);
            border: 1px solid var(--hairline);
            border-radius: var(--radius-sm);
            padding: 24px;
            text-align: center;
            transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
        }

        .metric-hero {
            grid-column: span 2;
            background: linear-gradient(135deg, rgba(70, 72, 212, 0.04), rgba(107, 56, 212, 0.08));
            border: 1px solid rgba(70, 72, 212, 0.15);
            padding: 32px;
        }

        .metric-hero .metric-value {
            font-size: 4rem;
            line-height: 1;
            margin: 12px 0;
            color: var(--primary);
        }
        
        .metric-card:hover {
            transform: translateY(-2px);
            background-color: var(--surface-container);
            border-color: var(--primary);
            box-shadow: 0 8px 24px rgba(70, 72, 212, 0.06);
        }

        .metric-label {
            font-size: 0.85rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--text-muted);
            margin-bottom: 8px;
        }

        .metric-value {
            font-family: var(--font-mono);
            font-size: 2.25rem;
            font-weight: 700;
            color: var(--primary);
        }

        .metric-subtext {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-top: 8px;
        }

        /* SVG Chart */
        .chart-container {
            margin-bottom: 32px;
        }

        .svg-chart {
            width: 100%;
            height: auto;
            overflow: visible;
        }

        .chart-grid {
            stroke: rgba(0, 0, 0, 0.05);
            stroke-width: 1;
        }

        .chart-axis {
            stroke: var(--hairline);
            stroke-width: 1;
        }

        .chart-text {
            font-family: var(--font-mono);
            font-size: 10px;
            fill: var(--text-muted);
        }

        .chart-text-y { text-anchor: end; }
        .chart-text-x { text-anchor: middle; }

        .chart-title {
            font-family: var(--font-sans);
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            fill: var(--text-muted);
        }

        .chart-line {
            fill: none;
            stroke: url(#chartGradient);
            stroke-width: 3;
            stroke-linecap: round;
            filter: drop-shadow(0 4px 12px rgba(70, 72, 212, 0.25));
            stroke-dasharray: 1000;
            stroke-dashoffset: 1000;
            animation: drawLine 1.5s ease-out forwards;
        }

        @keyframes drawLine {
            to { stroke-dashoffset: 0; }
        }

        .chart-indicator-line {
            stroke: rgba(15, 23, 42, 0.15);
            stroke-width: 1;
            stroke-dasharray: 4 4;
        }

        .chart-indicator-dot {
            fill: var(--primary);
            stroke: #ffffff;
            stroke-width: 2.5;
            filter: drop-shadow(0 2px 6px rgba(70, 72, 212, 0.4));
        }

        .chart-overlay {
            fill: transparent;
            cursor: crosshair;
        }

        .chart-tooltip {
            position: absolute;
            background-color: #ffffff;
            border: 1px solid var(--hairline);
            border-radius: var(--radius-sm);
            padding: 8px 12px;
            font-family: var(--font-mono);
            font-size: 0.85rem;
            color: var(--text-main);
            pointer-events: none;
            display: none;
            z-index: 20;
            box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
            white-space: nowrap;
        }

        /* Probability Matrix Cards */
        .matrix-list {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .prob-card {
            background-color: rgba(var(--theme-color), 0.03);
            border: 1px solid var(--hairline);
            border-radius: var(--radius-sm);
            padding: 24px;
            display: grid;
            grid-template-columns: 1fr 280px;
            gap: 24px;
            align-items: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .prob-card:hover {
            background-color: rgba(var(--theme-color), 0.07);
            border-color: rgba(var(--theme-color), 0.25);
            transform: translateX(4px);
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
        }

        .prob-info-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 8px;
            flex-wrap: wrap;
        }

        .prob-title {
            font-size: 1.125rem;
            font-weight: 700;
        }

        .prob-badge {
            font-size: 0.65rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            padding: 4px 8px;
            border-radius: var(--radius-full);
            background-color: rgba(70, 72, 212, 0.06);
            color: var(--primary);
        }

        .prob-stats {
            display: flex;
            gap: 16px;
            font-family: var(--font-mono);
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-bottom: 12px;
        }

        .prob-stats span {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .prob-desc {
            font-size: 0.875rem;
            color: var(--text-muted);
        }

        /* Neon Progress Stepper */
        .progress-container {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .progress-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
        }

        .progress-status {
            font-size: 0.85rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .status-very-high { color: #047857; }
        .status-high { color: #0d9488; }
        .status-moderate { color: #4338ca; }
        .status-low { color: #b45309; }
        .status-very-low { color: #93000a; }

        .progress-value {
            font-family: var(--font-mono);
            font-size: 1.5rem;
            font-weight: 700;
            line-height: 1;
        }

        .progress-bar-bg {
            height: 6px;
            background-color: rgba(15, 23, 42, 0.06);
            border-radius: var(--radius-full);
            overflow: hidden;
            position: relative;
        }

        .progress-bar-fill {
            height: 100%;
            border-radius: var(--radius-full);
            transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
        }

        /* Seat Matrix Table */
        .table-responsive {
            overflow-x: auto;
        }

        .matrix-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.875rem;
        }

        .matrix-table th {
            text-align: left;
            padding: 16px;
            border-bottom: 1px solid var(--hairline);
            font-weight: 600;
            color: var(--text-muted);
        }

        .matrix-table td {
            padding: 16px;
            border-bottom: 1px solid var(--hairline);
            font-family: var(--font-mono);
        }

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

        .matrix-table-name {
            font-family: var(--font-sans);
            font-weight: 600;
            color: var(--text-main);
        }

        /* Editorial Dossier / FAQs */
        .dossier-section {
            margin-top: 80px;
            border-top: 1px solid var(--hairline);
            padding-top: 64px;
        }

        .dossier-title {
            text-align: center;
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 48px;
        }

        .dossier-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 32px;
            margin-bottom: 64px;
        }

        .dossier-col h3 {
            font-size: 1.125rem;
            font-weight: 600;
            color: var(--text-main);
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .dossier-col h3 i {
            color: var(--primary);
        }

        .dossier-col p {
            font-size: 0.95rem;
            color: var(--text-muted);
            margin-bottom: 16px;
        }

        .dossier-col ul {
            list-style: none;
            padding-left: 0;
        }

        .dossier-col li {
            position: relative;
            padding-left: 20px;
            margin-bottom: 12px;
            font-size: 0.95rem;
            color: var(--text-muted);
        }

        .dossier-col li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 8px;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background-color: var(--secondary);
        }

        .faq-container {
            max-width: 800px;
            margin: 0 auto;
        }

        .faq-item {
            background-color: var(--surface-container-low);
            border: 1px solid var(--hairline);
            border-radius: var(--radius-sm);
            padding: 24px;
            margin-bottom: 16px;
        }

        .faq-q {
            font-weight: 600;
            font-size: 1.125rem;
            margin-bottom: 12px;
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }

        .faq-q i {
            color: var(--primary);
            flex-shrink: 0;
            margin-top: 2px;
        }

        .faq-a {
            color: var(--text-muted);
            padding-left: 36px;
        }

        /* Footer */
        .site-footer {
            margin-top: 80px;
            border-top: 1px solid var(--hairline);
            padding: 32px 24px;
            text-align: center;
            color: var(--text-muted);
            font-size: 0.875rem;
        }

        /* ======================================
           RESPONSIVE BREAKPOINTS
           ====================================== */

        /* Tablet landscape and smaller */
        @media (max-width: 1024px) {
            .dashboard-grid {
                grid-template-columns: 1fr;
            }
            .dossier-grid {
                grid-template-columns: 1fr 1fr;
            }
            .prob-card {
                grid-template-columns: 1fr;
                gap: 16px;
            }
            .main-container {
                padding: 36px 24px 48px 24px;
            }
        }

        /* Tablet portrait and large phones */
        @media (max-width: 768px) {
            .sleek-nav {
                height: 60px;
                padding: 0 16px;
            }
            .sleek-nav img {
                height: 38px !important;
            }
            .main-content {
                padding-top: 60px;
            }
            .main-container {
                padding: 24px 16px 40px 16px;
            }
            .header-title {
                font-size: 1.75rem;
                line-height: 1.25;
            }
            .header-subtitle {
                font-size: 0.95rem;
            }
            .header-section {
                margin-bottom: 32px;
            }

            /* Glass Cards */
            .glass-card {
                padding: 20px;
                border-radius: var(--radius-md);
            }
            .glass-card-header {
                font-size: 1rem;
                margin-bottom: 20px;
            }

            /* Metrics Grid */
            .metrics-grid {
                grid-template-columns: 1fr;
                gap: 12px;
            }
            .metric-hero {
                grid-column: span 1;
                padding: 24px;
            }
            .metric-hero .metric-value {
                font-size: 2.75rem;
            }
            .metric-value {
                font-size: 1.75rem;
            }
            .metric-card {
                padding: 16px;
            }

            /* Probability Cards */
            .prob-card {
                padding: 16px;
                grid-template-columns: 1fr;
                gap: 12px;
            }

            /* Dossier / Feature Grid */
            .dossier-grid {
                grid-template-columns: 1fr;
                gap: 24px;
            }
            .dossier-section {
                margin-top: 48px;
                padding-top: 36px;
            }
            .dossier-title {
                font-size: 1.5rem;
                margin-bottom: 32px;
            }

            /* Input huge */
            .input-huge {
                font-size: 1.5rem;
                padding: 14px;
            }

            /* Buttons */
            .btn-primary {
                padding: 14px 20px;
                font-size: 0.95rem;
            }

            /* SVG Chart */
            .chart-container {
                margin-bottom: 24px;
            }

            /* Analytics details expand & Responsive Grids */
            details summary {
                padding: 16px !important;
            }
            .sheet-stats-row {
                grid-template-columns: repeat(2, 1fr);
            }
            .subject-breakdown-box {
                grid-template-columns: 1fr;
            }

            /* Toast */
            #toastContainer {
                right: 12px;
                left: 12px;
                top: 68px;
            }
            .toast {
                max-width: 100%;
            }

            /* FAQ section */
            .faq-q {
                font-size: 1rem;
            }
            .faq-a {
                padding-left: 0;
            }

            /* Cutoff Table (SEO) */
            table th, table td {
                padding: 8px 10px !important;
                font-size: 0.8rem !important;
            }
        }

        /* Small phones */
        @media (max-width: 480px) {
            .main-container {
                padding: 16px 12px 32px 12px;
            }
            .header-title {
                font-size: 1.4rem;
                letter-spacing: -0.01em;
            }
            .header-subtitle {
                font-size: 0.85rem;
            }
            .header-section {
                margin-bottom: 24px;
            }

            /* Glass Cards */
            .glass-card {
                padding: 16px;
                border-radius: var(--radius-sm);
            }
            .glass-card-header {
                font-size: 0.9rem;
                gap: 8px;
                margin-bottom: 16px;
            }

            /* Metrics */
            .metric-hero .metric-value {
                font-size: 2.25rem;
            }
            .metric-value {
                font-size: 1.5rem;
            }
            .metric-label {
                font-size: 0.75rem;
            }
            .metric-card {
                padding: 14px;
            }

            /* Input controls */
            .input-huge {
                font-size: 1.25rem;
                padding: 12px;
            }
            .input-control {
                padding: 12px 14px;
                font-size: 0.9rem;
            }
            .select-control {
                padding-right: 40px;
            }
            .input-label {
                font-size: 0.75rem;
            }

            /* Prob cards */
            .prob-card {
                padding: 14px;
            }
            .prob-card h3 {
                font-size: 1.05rem !important;
            }

            /* Progress bar area */
            .progress-value {
                font-size: 1.25rem;
            }

            /* Alert boxes */
            .alert-box {
                padding: 12px;
            }

            /* Breadcrumb */
            nav[aria-label="Breadcrumb"] {
                font-size: 0.7rem !important;
            }

            /* SEO Feature cards */
            section[aria-labelledby="features-heading"] article {
                padding: 16px !important;
            }
            section[aria-labelledby="features-heading"] h3 {
                font-size: 0.95rem !important;
            }
            section[aria-labelledby="features-heading"] p {
                font-size: 0.8rem !important;
            }

            /* Cutoff Table scroll */
            section[aria-labelledby="cutoff-table-heading"] h2 {
                font-size: 1.15rem !important;
            }
            table th, table td {
                padding: 6px 8px !important;
                font-size: 0.75rem !important;
                white-space: nowrap;
            }

            /* FAQ */
            section[aria-labelledby="faq-heading"] h2 {
                font-size: 1.15rem !important;
            }
            section[aria-labelledby="faq-heading"] details {
                padding: 14px 16px !important;
            }
            section[aria-labelledby="faq-heading"] summary {
                font-size: 0.85rem !important;
            }
            section[aria-labelledby="faq-heading"] p {
                font-size: 0.8rem !important;
            }

            /* Disclaimer */
            section[aria-labelledby="disclaimer-heading"] {
                padding: 16px !important;
            }
            section[aria-labelledby="disclaimer-heading"] h2 {
                font-size: 0.95rem !important;
            }

            /* Footer */
            footer ul {
                gap: 16px !important;
                font-size: 0.8rem;
            }
            footer p {
                font-size: 0.75rem !important;
            }

            /* Nav */
            .sleek-nav {
                height: 52px;
            }
            .sleek-nav img {
                height: 32px !important;
            }
            .main-content {
                padding-top: 52px;
            }

            /* SVG Chart on small screens */
            .svg-chart {
                min-height: 200px;
            }
        }

        /* Very small phones (320-360) */
        @media (max-width: 360px) {
            .main-container {
                padding: 12px 8px 24px 8px;
            }
            .header-title {
                font-size: 1.2rem;
            }
            .metric-hero .metric-value {
                font-size: 1.85rem;
            }
            .metric-value {
                font-size: 1.25rem;
            }
            .glass-card {
                padding: 12px;
            }
            .input-huge {
                font-size: 1.1rem;
            }
            .btn-primary {
                padding: 12px 16px;
                font-size: 0.85rem;
            }
        }

        /* Toast Notifications - Visible in light mode */
        #toastContainer {
            position: fixed;
            top: 24px;
            right: 24px;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .toast {
            background: #0f172a;
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #ffffff;
            padding: 16px 20px;
            border-radius: var(--radius-md);
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.15);
            animation: slideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            max-width: 350px;
        }
        
        .toast.toast-error {
            border-left: 4px solid #f87171;
        }
        
        .toast.toast-error i {
            color: #f87171;
        }

        .toast.hiding {
            animation: slideOut 0.3s ease forwards;
        }

        @keyframes slideIn {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        @keyframes slideOut {
            from { transform: translateX(0); opacity: 1; }
            to { transform: translateX(100%); opacity: 0; }
        }
        
        /* Tab Navigation Styling */
        .tab-navigation {
            display: flex;
            background: rgba(15, 23, 42, 0.03);
            padding: 4px;
            border-radius: var(--radius-sm);
            margin-bottom: 24px;
            border: 1px solid rgba(15, 23, 42, 0.06);
        }
        
        .tab-trigger {
            flex: 1;
            background: none;
            border: none;
            font-family: var(--font-sans);
            font-size: 0.85rem;
            font-weight: 700;
            padding: 10px 16px;
            color: var(--text-muted);
            cursor: pointer;
            border-radius: calc(var(--radius-sm) - 2px);
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .tab-trigger.active {
            background: var(--surface-container-lowest);
            color: var(--primary);
            box-shadow: 0 4px 12px rgba(70, 72, 212, 0.08);
        }
        
        /* Response Sheet Meta/Stats Styling */
        .sheet-meta-card {
            background: linear-gradient(135deg, rgba(70, 72, 212, 0.05) 0%, rgba(107, 56, 212, 0.05) 100%);
            border: 1px solid rgba(70, 72, 212, 0.12);
            border-radius: var(--radius-md);
            padding: 16px;
            margin-bottom: 24px;
        }
        
        .sheet-meta-title {
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--text-main);
            margin-bottom: 4px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .sheet-meta-subtitle {
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-bottom: 16px;
        }
        
        .sheet-stats-row {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
            margin-bottom: 16px;
        }
        
        .sheet-stat-pill {
            background: var(--surface-container-lowest);
            border: 1px solid var(--hairline);
            border-radius: var(--radius-sm);
            padding: 8px 6px;
            text-align: center;
        }
        
        .sheet-stat-num {
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--text-main);
            line-height: 1.2;
        }
        
        .sheet-stat-lbl {
            font-size: 0.7rem;
            color: var(--text-muted);
            margin-top: 2px;
            white-space: nowrap;
        }
        
        .subject-breakdown-box {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
        }
        
        .subject-pill {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(255, 255, 255, 0.5);
            border: 1px solid rgba(15, 23, 42, 0.05);
            border-radius: var(--radius-sm);
            padding: 8px 12px;
        }
        
        .subject-name {
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--text-muted);
            text-transform: capitalize;
        }
        
        .subject-score {
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--primary);
        }
        
        .spinner-inline {
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255,255,255,0.3);
            border-top-color: #fff;
            border-left-color: #fff;
            border-radius: 50%;
            animation: spin-fast 0.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
        }
        
        @keyframes spin-fast {
            to { transform: rotate(360deg); }
        }

        /* Heatmap Grid & Box Styling */
        .heatmap-grid-new {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
            gap: 6px;
            margin-top: 16px;
        }
        
        .heatmap-box-new {
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: 700;
            border-radius: 6px;
            color: #ffffff;
            cursor: pointer;
            transition: all 0.15s ease;
        }
        
        .heatmap-box-new:hover {
            transform: translateY(-2px) scale(1.05);
        }
        
        .heatmap-correct-new {
            background-color: var(--success);
            box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
        }
        
        .heatmap-incorrect-new {
            background-color: var(--error);
            box-shadow: 0 2px 8px rgba(186, 26, 26, 0.15);
        }
        
        .heatmap-skipped-new {
            background-color: #94a3b8;
            box-shadow: 0 2px 8px rgba(148, 163, 184, 0.1);
        }

                        .advanced-insights-toggle summary::-webkit-details-marker { display: none; }
                        .advanced-insights-toggle[open] summary .lucide-chevron-down { transform: rotate(180deg); transition: transform 0.3s ease; }
                        .advanced-insights-toggle summary .lucide-chevron-down { transition: transform 0.3s ease; }

/* Premium Rank Card styling */
.premium-rank-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 245, 255, 0.95) 100%);
    border: 1px solid rgba(70, 72, 212, 0.15);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 8px 32px rgba(70, 72, 212, 0.08);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 8px;
}

.premium-rank-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.premium-rank-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 16px 40px rgba(70, 72, 212, 0.15);
    border-color: rgba(70, 72, 212, 0.3);
}

/* Premium Probability Meter */
.premium-meter-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0;
}

.premium-meter-bar-outer {
    height: 12px;
    background: rgba(70, 72, 212, 0.06);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.premium-meter-bar-inner {
    height: 100%;
    border-radius: 6px;
    position: relative;
    transition: width 1.2s cubic-bezier(0.1, 0.8, 0.1, 1);
}

.premium-meter-bar-inner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    animation: shine-bar 2.5s infinite linear;
}

@keyframes shine-bar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Premium Round Grid */
.premium-rounds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.premium-round-pill {
    padding: 10px 6px;
    border-radius: 8px;
    text-align: center;
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.premium-round-pill.allotted {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
}

.premium-round-pill.borderline {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
}

.premium-round-pill.unavailable {
    background: rgba(186, 26, 26, 0.04);
    border-color: rgba(186, 26, 26, 0.1);
}

.premium-round-pill.nodata {
    background: rgba(148, 163, 184, 0.03);
    border-color: rgba(148, 163, 184, 0.15);
}

.premium-round-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.premium-round-rank {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
}

.premium-round-status {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-txt-allotted { color: #059669; }
.status-txt-borderline { color: #ea580c; }
.status-txt-unavailable { color: #dc2626; }
.status-txt-nodata { color: #64748b; }

/* ==========================================
   PREMIUM LOCKED COLLEGE OVERLAY
   ========================================== */

.locked-college-wrapper {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
}

/* Blur the card content behind the overlay */
.locked-college-wrapper > div:not(.locked-overlay),
.locked-college-wrapper > .premium-meter-container,
.locked-college-wrapper > div > .premium-rounds-grid {
    filter: blur(7px);
    opacity: 0.45;
    pointer-events: none;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

/* The overlay itself */
.locked-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.65) 0%,
        rgba(240, 245, 255, 0.75) 40%,
        rgba(230, 238, 255, 0.8) 100%
    );
    backdrop-filter: blur(4px) saturate(1.4);
    -webkit-backdrop-filter: blur(4px) saturate(1.4);
    border-radius: inherit;
    pointer-events: auto;
    cursor: pointer;
}

.locked-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    animation: lockedFadeIn 0.5s ease-out;
}

@keyframes lockedFadeIn {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Pulsing lock icon ring */
.locked-icon-ring {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(70, 72, 212, 0.12), rgba(107, 56, 212, 0.15));
    border: 2px solid rgba(70, 72, 212, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    animation: lockPulse 2.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(70, 72, 212, 0.08);
}

@keyframes lockPulse {
    0%, 100% {
        box-shadow: 0 0 12px rgba(70, 72, 212, 0.08);
        border-color: rgba(70, 72, 212, 0.2);
    }
    50% {
        box-shadow: 0 0 24px rgba(70, 72, 212, 0.2);
        border-color: rgba(70, 72, 212, 0.35);
    }
}

.locked-label {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    line-height: 1;
}

.locked-sublabel {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    max-width: 220px;
    line-height: 1.4;
}

/* Responsive adjustments for locked cards */
@media (max-width: 480px) {
    .locked-icon-ring {
        width: 40px;
        height: 40px;
    }
    .locked-icon-ring .lucide {
        width: 18px;
        height: 18px;
    }
    .locked-label {
        font-size: 0.8rem;
    }
    .locked-sublabel {
        font-size: 0.7rem;
        max-width: 180px;
    }
}

/* ==========================================
   UNLOCK MODAL
   ========================================== */

.unlock-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(11, 28, 48, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: modalBackdropIn 0.25s ease-out;
}

.unlock-modal-backdrop.active {
    display: flex;
}

@keyframes modalBackdropIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.unlock-modal {
    background: var(--surface-container-lowest);
    border: 1px solid rgba(70, 72, 212, 0.15);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 36px 32px 28px;
    position: relative;
    box-shadow:
        0 24px 80px rgba(11, 28, 48, 0.2),
        0 0 0 1px rgba(70, 72, 212, 0.08);
    animation: modalSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.92); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.unlock-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(15, 23, 42, 0.04);
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.unlock-modal-close:hover {
    background: rgba(15, 23, 42, 0.1);
    color: var(--text-main);
    transform: rotate(90deg);
}

.unlock-modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.unlock-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(70, 72, 212, 0.1), rgba(107, 56, 212, 0.15));
    border: 2px solid rgba(70, 72, 212, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
    animation: lockPulse 2.5s ease-in-out infinite;
}

.unlock-modal-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
}

.unlock-modal-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.unlock-modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

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

.unlock-modal-submit {
    width: 100%;
    margin-bottom: 16px;
}

.unlock-modal-disclaimer {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-disabled);
    line-height: 1.4;
    margin: 0;
}

/* Responsive modal */
@media (max-width: 480px) {
    .unlock-modal {
        padding: 28px 20px 24px;
        border-radius: var(--radius-md);
        max-width: 100%;
    }
    .unlock-modal-icon {
        width: 52px;
        height: 52px;
    }
    .unlock-modal-title {
        font-size: 1.1rem;
    }
    .unlock-modal-subtitle {
        font-size: 0.8rem;
    }
    .unlock-modal-backdrop {
        padding: 16px;
    }
}
