/* ===== VisionGATE Rank Predictor - Premium Theme ===== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ===== CSS Variables - VisionGate Premium Teal/Gold Theme ===== */
:root {
    /* VisionGate Brand Colors - Teal/Emerald/Gold Theme */
    --vg-primary: #0d9488;
    --vg-primary-dark: #115e59;
    --vg-primary-light: #2dd4bf;
    --vg-secondary: #0891b2;
    --vg-accent: #fbbf24;
    --vg-gold: #f59e0b;
    
    --bg-primary: #021a1a;
    --bg-secondary: #042f2e;
    --bg-card: rgba(4, 47, 46, 0.9);
    --bg-card-hover: rgba(13, 148, 136, 0.15);
    --bg-glass: rgba(13, 148, 136, 0.08);
    --border-glass: rgba(45, 212, 191, 0.25);
    --border-hover: rgba(45, 212, 191, 0.5);

    --text-primary: #f0fdfa;
    --text-secondary: #99f6e4;
    --text-muted: #5eead4;

    --accent-primary: #0d9488;
    --accent-secondary: #2dd4bf;
    --accent-glow: rgba(45, 212, 191, 0.4);
    --accent-gradient: linear-gradient(135deg, #0d9488, #2dd4bf, #5eead4);
    --vg-gradient: linear-gradient(135deg, #0d9488 0%, #0891b2 50%, #06b6d4 100%);
    --gold-gradient: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);

    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.15);
    --success-border: rgba(16, 185, 129, 0.4);
    --danger: #f87171;
    --danger-bg: rgba(248, 113, 113, 0.12);
    --danger-border: rgba(248, 113, 113, 0.35);
    --warning: #fbbf24;
    --warning-bg: rgba(251, 191, 36, 0.12);
    --warning-border: rgba(251, 191, 36, 0.35);
    --info: #38bdf8;
    --info-bg: rgba(56, 189, 248, 0.12);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 6px 25px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 12px 50px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 80px rgba(45, 212, 191, 0.2);
    --shadow-vg: 0 6px 35px rgba(13, 148, 136, 0.35);
    --shadow-gold: 0 4px 25px rgba(251, 191, 36, 0.3);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Clean Gradient Background - VisionGATE Theme ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 50% at 10% 20%, rgba(13, 148, 136, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 85% 15%, rgba(45, 212, 191, 0.15) 0%, transparent 45%),
        radial-gradient(ellipse 70% 60% at 75% 75%, rgba(8, 145, 178, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 35% at 20% 80%, rgba(251, 191, 36, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

/* ===== Top Navigation Bar ===== */
.topnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 1rem;
}

.topnav__logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topnav__logo img {
    height: 50px;
    width: auto;
}

.topnav__brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.topnav__links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.topnav__link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.topnav__link:hover {
    color: var(--vg-primary-light);
}

.topnav__cta {
    padding: 0.5rem 1.2rem;
    background: var(--vg-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topnav__cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-vg);
}

/* ===== Header ===== */
.header {
    text-align: center;
    padding: 2.5rem 0 2rem;
    position: relative;
}

.header__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: var(--vg-gradient);
    border: none;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    box-shadow: var(--shadow-vg);
}

.header__badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #f59e0b;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

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

.header__title {
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.header__tagline {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--vg-accent);
    margin-bottom: 0.6rem;
    letter-spacing: 0.02em;
}

.header__subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 650px;
    margin: 0 auto;
}

/* ===== Input Card ===== */
.input-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin: 1.5rem 0;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.input-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--vg-gradient);
}

.input-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Centered Input Card */
.input-card--centered {
    text-align: center;
    padding: 2.5rem 2rem;
    max-width: 700px;
    margin: 2rem auto;
}

/* Promo Banner */
.promo-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.08));
    border: 1px solid rgba(251, 191, 36, 0.4);
    animation: promo-pulse 2s ease-in-out infinite;
}

@keyframes promo-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.3); }
    50% { box-shadow: 0 0 20px 5px rgba(251, 191, 36, 0.15); }
}

.promo-banner__text {
    font-size: 1rem;
    color: #fbbf24;
    font-weight: 500;
}

.promo-banner__text strong {
    font-weight: 800;
    color: #fcd34d;
}

.promo-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.promo-banner__btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.promo-banner__btn-arrow {
    transition: transform 0.3s ease;
}

.promo-banner__btn:hover .promo-banner__btn-arrow {
    transform: translateX(4px);
}

.input-card--centered .input-card__label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    background: var(--vg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.input-group--centered {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.input-group--centered .input-group__field {
    width: 100%;
    text-align: center;
    padding: 1.2rem 1.5rem;
    font-size: 0.95rem;
}

.input-group--centered .input-group__btn {
    width: auto;
    min-width: 200px;
    max-width: 280px;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    margin: 0.5rem auto 0;
    display: flex;
}

/* ===== Subject Toggle ===== */
.subject-toggle {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.subject-btn {
    padding: 0.6rem 1.8rem;
    background: var(--bg-glass);
    border: 2px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.subject-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--vg-primary);
    color: var(--text-primary);
}

.subject-btn.active {
    background: var(--vg-gradient);
    border-color: var(--vg-primary);
    color: white;
    box-shadow: var(--shadow-vg);
}

.input-card__label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.input-group {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.input-group__field {
    flex: 1;
    padding: 1rem 1.3rem;
    background: rgba(15, 10, 31, 0.6);
    border: 2px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group__field::placeholder {
    color: var(--text-muted);
    font-family: 'Poppins', sans-serif;
}

.input-group__field:focus {
    border-color: var(--vg-primary);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.input-group__btn {
    padding: 1rem 2.5rem;
    background: var(--vg-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-vg);
}

.input-group__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(13, 148, 136, 0.5);
}

.input-group__btn:active {
    transform: translateY(0);
}

.input-group__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.input-group__btn--loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    top: 50%;
    left: 50%;
    margin-top: -9px;
    margin-left: -9px;
}

.input-group__btn--loading span {
    visibility: hidden;
}

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

/* ===== Error Message ===== */
.error-msg {
    display: none;
    padding: 1rem 1.5rem;
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    border-radius: var(--radius-md);
    color: var(--danger);
    font-size: 0.9rem;
    margin-top: 1rem;
    animation: slideDown 0.3s ease;
}

.error-msg.visible {
    display: block;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Results Section ===== */
.results {
    display: none;
    animation: fadeInUp 0.6s ease;
}

.results.visible {
    display: block;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Score Hero Card - NEW SPLIT DESIGN ===== */
.score-hero {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 0;
    margin: 2rem 0;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 280px;
}

.score-hero__left {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, rgba(13,148,136,0.08) 0%, rgba(45,212,191,0.04) 100%);
}

.score-hero__left::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border-hover), transparent);
}

.score-hero__right {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.score-hero__value {
    font-size: 5rem;
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.25rem;
    letter-spacing: -0.03em;
    position: relative;
}

.score-hero__value::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(251,191,36,0.15) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
}

.score-hero__label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.score-hero__ring {
    width: 160px;
    height: 160px;
    position: relative;
    margin: 0 auto 1rem;
}

.score-hero__ring svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.score-hero__ring-bg {
    fill: none;
    stroke: rgba(45, 212, 191, 0.1);
    stroke-width: 8;
}

.score-hero__ring-progress {
    fill: none;
    stroke: url(#scoreGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 440;
    stroke-dashoffset: 440;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-hero__ring-value {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.score-hero__percentage {
    font-size: 2rem;
    font-weight: 800;
    color: var(--vg-accent);
}

.score-hero__percentage-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== Stats Grid - HORIZONTAL PILL DESIGN ===== */
.stats-grid {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 140px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 60px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--text-muted);
    border-radius: 4px 0 0 4px;
}

.stat-card:hover {
    transform: translateX(4px);
    border-color: var(--border-hover);
}

.stat-card__icon {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--bg-glass);
    border-radius: 50%;
    flex-shrink: 0;
}

.stat-card__content {
    display: flex;
    flex-direction: column;
}

.stat-card__value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.stat-card__label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-card--correct::before { background: var(--success); }
.stat-card--correct .stat-card__value { color: var(--success); }
.stat-card--wrong::before { background: var(--danger); }
.stat-card--wrong .stat-card__value { color: var(--danger); }
.stat-card--unanswered::before { background: var(--warning); }
.stat-card--unanswered .stat-card__value { color: var(--warning); }
.stat-card--total::before { background: var(--info); }
.stat-card--total .stat-card__value { color: var(--info); }

/* ===== Section Breakdown - CARD STACK DESIGN ===== */
.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.breakdown-card {
    background: linear-gradient(145deg, var(--bg-card), rgba(13,148,136,0.05));
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    position: relative;
    transition: all 0.3s ease;
}

.breakdown-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: var(--border-hover);
}

.breakdown-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-glass);
}

.breakdown-card__icon {
    width: 40px;
    height: 40px;
    background: var(--vg-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.breakdown-card__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.breakdown-card__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.breakdown-card__row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.breakdown-card__row-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breakdown-card__row-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--vg-primary-light);
    border-radius: 50%;
}

.breakdown-card__row-value {
    font-size: 1rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    padding: 0.25rem 0.75rem;
    background: var(--bg-glass);
    border-radius: 20px;
    border: 1px solid var(--border-glass);
}

/* ===== Section Title - MODERN BADGE STYLE ===== */
.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2.5rem 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title span:first-child {
    background: var(--vg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0.5rem 1.25rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    position: relative;
}

.section-title__line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--border-hover), transparent);
    border-radius: 2px;
}

/* ===== Results Table - CARD ROW DESIGN ===== */
.table-container {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    backdrop-filter: none;
    box-shadow: none;
}

.table-wrapper {
    overflow-x: auto;
    padding: 0.5rem 0;
}

.results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
    font-size: 0.88rem;
}

.results-table thead {
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 10;
}

.results-table th {
    padding: 0.75rem 1rem;
    font-weight: 700;
    color: var(--vg-primary-light);
    text-align: left;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-bottom: none;
    white-space: nowrap;
    background: var(--bg-secondary);
}

.results-table th:first-child {
    border-radius: 8px 0 0 8px;
}

.results-table th:last-child {
    border-radius: 0 8px 8px 0;
}

.results-table td {
    padding: 1rem;
    border-bottom: none;
    color: var(--text-primary);
    white-space: nowrap;
    background: var(--bg-card);
}

.results-table td:first-child {
    border-radius: 12px 0 0 12px;
    border-left: 3px solid var(--border-glass);
}

.results-table td:last-child {
    border-radius: 0 12px 12px 0;
}

.results-table tbody tr {
    transition: all 0.2s ease;
}

.results-table tbody tr:hover td {
    background: var(--bg-card-hover);
}

.results-table tbody tr:hover td:first-child {
    border-left-color: var(--vg-primary);
}

.results-table tbody tr.row--correct td:first-child { border-left-color: var(--success); }
.results-table tbody tr.row--wrong td:first-child { border-left-color: var(--danger); }
.results-table tbody tr.row--unanswered td:first-child { border-left-color: var(--warning); }

/* ===== Table Badges - PILL STYLE ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge--mcq {
    background: linear-gradient(135deg, rgba(56,189,248,0.15), rgba(56,189,248,0.05));
    color: var(--info);
    border: 1px solid rgba(56,189,248,0.3);
}

.badge--msq {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.badge--nat {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.badge--ga {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}

.badge--cs {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.badge--da {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
}

.result-icon--correct {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-border);
}

.result-icon--wrong {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger-border);
}

.result-icon--unanswered {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}

.score-cell {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.score-cell--positive { color: var(--success); }
.score-cell--negative { color: var(--danger); }
.score-cell--zero { color: var(--text-muted); }

.answer-cell {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

/* ===== Filter Tabs - SEGMENTED CONTROL DESIGN ===== */
.filter-tabs {
    display: inline-flex;
    gap: 0;
    margin-bottom: 1.5rem;
    background: var(--bg-card);
    padding: 6px;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.6rem 1.25rem;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
    position: relative;
}

.filter-tab:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.filter-tab.active {
    background: var(--vg-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.4);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-glass);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 3rem 2rem;
    margin-top: 3rem;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer__logo img {
    height: 45px;
    width: auto;
}

.footer__logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer__tagline {
    color: var(--vg-accent);
    font-size: 0.95rem;
    font-weight: 600;
    font-style: italic;
}

.footer__desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer__section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer__contact-icon {
    color: var(--vg-primary-light);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer__contact-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__contact-link:hover {
    color: var(--vg-primary-light);
}

.footer__social {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer__social-link:hover {
    background: var(--vg-primary);
    border-color: var(--vg-primary);
    color: white;
    transform: translateY(-3px);
}

.footer__bottom {
    border-top: 1px solid var(--border-glass);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer__bottom a {
    color: var(--vg-primary-light);
    text-decoration: none;
}

.footer__bottom a:hover {
    text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .topnav {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .topnav__links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
    }

    .topnav__link {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }

    .topnav__cta {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .header__title {
        font-size: 2rem;
    }

    .header__tagline {
        font-size: 1rem;
    }

    .input-group {
        flex-direction: column;
    }

    /* Score Hero Mobile */
    .score-hero {
        grid-template-columns: 1fr;
    }

    .score-hero__left {
        padding: 2rem 1.5rem;
        border-bottom: 1px solid var(--border-glass);
    }

    .score-hero__left::after {
        display: none;
    }

    .score-hero__right {
        padding: 1.5rem;
    }

    .score-hero__value {
        font-size: 3.5rem;
    }

    .score-hero__ring {
        width: 130px;
        height: 130px;
    }

    /* Stats Grid Mobile */
    .stats-grid {
        flex-direction: column;
    }

    .stat-card {
        min-width: 100%;
    }

    /* Breakdown Grid Mobile */
    .breakdown-grid {
        grid-template-columns: 1fr;
    }

    /* Filter Tabs Mobile */
    .filter-tabs {
        flex-wrap: wrap;
        border-radius: 12px;
    }

    .filter-tab {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .results-table {
        font-size: 0.8rem;
    }

    .results-table th,
    .results-table td {
        padding: 0.7rem 0.8rem;
    }

    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__brand {
        align-items: center;
    }

    .footer__social {
        justify-content: center;
    }

    .footer__contact-item {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header__title {
        font-size: 1.6rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .score-hero__value {
        font-size: 2.8rem;
    }
}

/* ===== Features Section ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--vg-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-vg);
}

.feature-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-card__desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== Trust Badges ===== */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(8, 145, 178, 0.05));
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

.trust-badge__icon {
    color: var(--vg-gold);
    font-size: 1.3rem;
}

/* ===== Moving Toppers Carousel ===== */
.toppers-section {
    margin: 3rem 0;
    overflow: hidden;
    position: relative;
}

.toppers-section__title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.toppers-section__subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.toppers-track {
    display: flex;
    gap: 2rem;
    animation: scroll-toppers 30s linear infinite;
    width: max-content;
}

.toppers-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-toppers {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.topper-card {
    flex-shrink: 0;
    width: 220px;
    background: linear-gradient(145deg, var(--bg-card), rgba(13, 148, 136, 0.08));
    border: 2px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.topper-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-gradient);
}

.topper-card:hover {
    border-color: var(--vg-gold);
    transform: scale(1.05);
    box-shadow: var(--shadow-gold);
}

.topper-card__rank {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gold-gradient);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
}

.topper-card__image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--vg-gold);
    margin: 0 auto 1rem;
    object-fit: cover;
    background: var(--bg-glass);
}

.topper-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.topper-card__air {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.topper-card__exam {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Gradient fade on edges */
.toppers-section::before,
.toppers-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.toppers-section::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary), transparent);
}

.toppers-section::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary), transparent);
}

/* ===== Stats Counter Animation ===== */
.stats-counter {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.stat-counter-item {
    text-align: center;
    padding: 1.5rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    min-width: 150px;
}

.stat-counter-item__value {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-counter-item__label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.15), rgba(251, 191, 36, 0.08));
    border: 2px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--vg-gradient);
}

.cta-section__title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.cta-section__desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 1rem 2.5rem;
    background: var(--gold-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: #000;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-gold);
}

.cta-section__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(251, 191, 36, 0.5);
}

/* ===== Floating Contact Button ===== */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--vg-gradient);
    border: none;
    border-radius: 50px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(13, 148, 136, 0.5), 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    animation: float-bounce 3s ease-in-out infinite;
}

.floating-contact:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(13, 148, 136, 0.6), 0 6px 20px rgba(0,0,0,0.25);
}

.floating-contact__icon {
    font-size: 1.2rem;
}

.floating-contact__text {
    white-space: nowrap;
}

@keyframes float-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* Responsive - hide text on mobile, show only icon */
@media (max-width: 480px) {
    .floating-contact {
        padding: 16px;
        border-radius: 50%;
        right: 20px;
        bottom: 20px;
    }
    
    .floating-contact__text {
        display: none;
    }
    
    .floating-contact__icon {
        font-size: 1.4rem;
    }
}
