/* ==================== CSS Reset & Variables ==================== */

:root {
    --bg-primary: #0A0E27;
    --bg-secondary: #141829;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B8D4;
    --accent: #00D9FF;
    --accent-hover: #00B8D4;
    --border: #2A2F4A;

    --font-mono: 'Inconsolata', 'Courier New', monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==================== Typography ==================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-mono);
    font-weight: 700;
    line-height: 1.2;
}

p {
    color: var(--text-secondary);
}

/* ==================== Navigation ==================== */

.navbar {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.nav-brand-section {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.nav-attribution {
    font-size: 0.65rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
    display: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.dark-mode-toggle {
    background: none;
    border: 1px solid var(--border);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.dark-mode-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ==================== Landing Page (Figurative Style) ==================== */

.landing-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Add subtle noise texture to eliminate color banding */
.landing-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.95" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
    opacity: 0.025;
    pointer-events: none;
    z-index: 10;
    mix-blend-mode: overlay;
}

.vertical-columns {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 2;
    pointer-events: none;
}

.v-col {
    --blue-offset: 0%;
    --cyan-offset: 0%;
    --blue-opacity: 1;
    --cyan-opacity: 1;
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Blue light source - bottom right, fades toward left */
.v-col::before {
    content: '';
    position: absolute;
    bottom: calc(-30% + var(--blue-offset));
    right: -250%;
    width: 450%;
    height: 110%;
    background: radial-gradient(ellipse at center, rgba(0, 90, 255, 0.6) 0%, rgba(0, 60, 200, 0.35) 20%, rgba(0, 40, 150, 0.15) 40%, transparent 60%);
    filter: blur(45px);
    opacity: var(--blue-opacity);
    pointer-events: none;
}

/* Cyan light source - top left, fades toward right */
.v-col::after {
    content: '';
    position: absolute;
    top: calc(-25% + var(--cyan-offset));
    left: -250%;
    width: 450%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 220, 255, 0.5) 0%, rgba(0, 180, 220, 0.3) 18%, rgba(0, 140, 180, 0.15) 35%, transparent 55%);
    filter: blur(40px);
    opacity: var(--cyan-opacity);
    pointer-events: none;
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 3rem;
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-nav-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-label {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.nav-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.landing-nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #FFFFFF;
    letter-spacing: 0.02em;
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 3rem;
    position: relative;
    z-index: 10;
}

.landing-nav-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-label {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.nav-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.landing-nav-right {
    display: flex;
    align-items: center;
}

.brand-text {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 1rem;
    color: #FFFFFF;
}

.landing-hero {
    position: absolute;
    top: 50%;
    left: 3rem;
    transform: translateY(-50%);
    z-index: 10;
}

.hero-content {
    display: flex;
    flex-direction: column;
}

.landing-title {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 5.5rem;
    font-weight: 400;
    line-height: 1.05;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.landing-title em {
    font-style: italic;
}

.hero-credit {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 1rem;
    color: #FFFFFF;
    margin: 0;
    margin-bottom: 2rem;
}

.hero-affiliation {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 1rem;
    color: #FFFFFF;
    margin: 0;
}

.landing-bottom {
    display: grid;
    grid-template-columns: 200px 1fr 250px;
    align-items: flex-end;
    gap: 3rem;
    padding: 2rem 3rem 3rem;
    position: relative;
    z-index: 10;
}

.landing-status {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.status-label {
    font-size: 0.75rem;
    color: #FFD700;
    letter-spacing: 0.02em;
}

.status-value {
    font-size: 0.75rem;
    color: #FFD700;
}

.landing-right {
    position: absolute;
    right: 4rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2rem;
    max-width: 360px;
}

.landing-tagline {
    text-align: right;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-tagline p {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin: 0;
}

.landing-menu {
    position: relative;
}

.menu-toggle {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 1rem;
    color: #FFFFFF;
    background: linear-gradient(135deg,
        rgba(0, 180, 230, 0.3) 0%,
        rgba(0, 200, 245, 0.4) 50%,
        rgba(0, 180, 230, 0.3) 100%
    );
    border: 2px solid rgba(0, 220, 255, 0.5);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
}

.menu-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 10%;
    right: 10%;
    height: 35%;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.25) 0%,
        transparent 100%
    );
    border-radius: 50px 50px 50% 50%;
    pointer-events: none;
}

.menu-toggle:hover {
    background: linear-gradient(135deg,
        rgba(0, 200, 240, 0.5) 0%,
        rgba(0, 220, 255, 0.6) 50%,
        rgba(0, 200, 240, 0.5) 100%
    );
    border-color: rgba(0, 240, 255, 0.8);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(0, 220, 255, 0.4);
    transform: translateY(-1px);
}

.menu-expanded {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-expanded.open {
    opacity: 1;
    visibility: visible;
}

.menu-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    width: 100%;
}

.menu-group-label {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.25rem;
    margin-top: 0.75rem;
}

.menu-group:first-child .menu-group-label {
    margin-top: 0;
}

.menu-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 0;
    height: 45px;
    background: linear-gradient(135deg,
        rgba(0, 180, 230, 0.85) 0%,
        rgba(0, 200, 245, 0.9) 25%,
        rgba(0, 220, 255, 0.95) 50%,
        rgba(0, 200, 245, 0.9) 75%,
        rgba(0, 180, 230, 0.85) 100%
    );
    backdrop-filter: blur(8px);
    text-decoration: none;
    overflow: hidden;
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease, transform 0.3s ease;
    transition-delay: calc(var(--delay) * 0.1s);
    border-radius: 6px;
    padding: 0 1.2rem;
    position: relative;
    border: 2px solid rgba(0, 220, 255, 0.4);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Stained glass inner glow effect */
.menu-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.25) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    pointer-events: none;
    border-radius: 4px;
}

/* Glass reflection highlight */
.menu-bar::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 8px;
    right: 8px;
    height: 40%;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.4) 0%,
        transparent 100%
    );
    border-radius: 4px 4px 50% 50%;
    pointer-events: none;
    opacity: 0.6;
}

.menu-expanded.open .menu-bar {
    width: 220px;
}

.bar-text {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 1rem;
    color: #FFFFFF;
    white-space: nowrap;
    padding-right: 1.25rem;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: calc(var(--delay) * 0.1s + 0.3s);
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.menu-expanded.open .bar-text {
    opacity: 1;
    transform: translateX(0);
}

.menu-bar:hover {
    background: linear-gradient(135deg,
        rgba(0, 200, 245, 0.95) 0%,
        rgba(0, 220, 255, 1) 25%,
        rgba(0, 240, 255, 1) 50%,
        rgba(0, 220, 255, 1) 75%,
        rgba(0, 200, 245, 0.95) 100%
    );
    border-color: rgba(0, 240, 255, 0.7);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 220, 255, 0.5),
        0 0 0 1px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.menu-bar:hover .bar-text {
    text-shadow: 0 0 15px rgba(0, 220, 255, 0.8);
}

.menu-bar-primary {
    position: relative;
}

.menu-callout {
    position: absolute;
    top: -12px;
    right: 0;
    background: linear-gradient(135deg, rgba(0, 220, 255, 0.9), rgba(0, 180, 220, 0.8));
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    white-space: nowrap;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 220, 255, 0.4);
    opacity: 0;
    transform: translateY(-8px) scale(0.8);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.menu-expanded.open .menu-bar-primary .menu-callout {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: calc(var(--delay) * 0.1s + 0.25s);
}

.cta-pill {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: #FFFFFF;
    color: #000000;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-pill:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.02);
}

.blue-glow {
    position: absolute;
    bottom: -30%;
    right: -15%;
    width: 80%;
    height: 100%;
    background: radial-gradient(ellipse at center, #0066FF 0%, #0044DD 20%, #0033AA 40%, transparent 70%);
    filter: blur(80px);
    opacity: 1;
    pointer-events: none;
    z-index: 1;
}

.cyan-glow {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 50%;
    height: 60%;
    background: radial-gradient(ellipse at center, #00AAFF 0%, #0088DD 20%, transparent 55%);
    filter: blur(70px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

.red-glow {
    position: absolute;
    top: 15%;
    left: 30%;
    width: 40%;
    height: 50%;
    background: radial-gradient(ellipse at center, rgba(255, 60, 80, 0.6) 0%, rgba(200, 30, 60, 0.3) 25%, transparent 55%);
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

.warm-glow {
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 45%;
    height: 55%;
    background: radial-gradient(ellipse at center, rgba(255, 180, 80, 0.5) 0%, rgba(255, 140, 50, 0.25) 25%, transparent 55%);
    filter: blur(75px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
}

/* ==================== Inner Pages (Odds, Methodology, About) ==================== */

.inner-page {
    min-height: 100vh;
    background: #000000;
    color: #FFFFFF;
    position: relative;
    overflow-x: hidden;
}

.inner-page::before {
    content: '';
    position: fixed;
    bottom: -30%;
    right: -15%;
    width: 80%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 102, 255, 0.6) 0%, rgba(0, 68, 204, 0.3) 20%, rgba(0, 51, 170, 0.15) 40%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.inner-page::after {
    content: '';
    position: fixed;
    top: -20%;
    left: -20%;
    width: 50%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(0, 170, 255, 0.4) 0%, rgba(0, 136, 221, 0.2) 20%, transparent 55%);
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}

.inner-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    position: relative;
    z-index: 10;
}

.back-link {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 1.2rem;
    color: #FFFFFF;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 0.7;
}

.inner-nav-links {
    display: flex;
    gap: 2rem;
}

.inner-nav-links a {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.inner-nav-links a:hover,
.inner-nav-links a.active {
    color: #FFFFFF;
}

.inner-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 3rem;
    position: relative;
    z-index: 10;
}

.inner-title {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 3rem;
    color: #FFFFFF;
}

/* About Page Specific */
.about-page {
    background: #000000;
}

.about-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.about-section:last-child {
    border-bottom: none;
}

.about-section h2 {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.about-section p {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1rem;
}

.about-section ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.about-section li {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.about-section li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: rgba(0, 220, 255, 0.6);
}

.about-section strong {
    color: rgba(0, 220, 255, 0.9);
}

/* Forecast Page Specific */
.forecast-page {
    background: #000000;
}

.forecast-subtitle {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
}

.forecast-content {
    max-width: 1100px;
}

/* Methodology Page Specific */
.methodology-page {
    background: #000000;
}

.method-subtitle {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
}

/* Override old styles for inner pages */
.inner-page .odds-controls {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.inner-page .sort-controls label {
    font-family: 'Times New Roman', Times, Georgia, serif;
    color: rgba(255, 255, 255, 0.7);
}

.inner-page .sort-select {
    font-family: 'Times New Roman', Times, Georgia, serif;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    border-radius: 4px;
}

.inner-page .sort-select:hover,
.inner-page .sort-select:focus {
    border-color: rgba(0, 220, 255, 0.5);
}

.inner-page .update-time {
    font-family: 'Times New Roman', Times, Georgia, serif;
    color: rgba(255, 255, 255, 0.5);
}

.inner-page .odds-table-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.inner-page .odds-table thead {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.inner-page .odds-table thead th {
    color: rgba(0, 220, 255, 0.8);
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.02em;
}

.inner-page .odds-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.inner-page .odds-table tbody tr:hover {
    background: rgba(0, 220, 255, 0.05);
}

.inner-page .odds-table td {
    font-family: 'Times New Roman', Times, Georgia, serif;
    color: #FFFFFF;
}

.inner-page .odds-table .rank {
    color: rgba(0, 220, 255, 0.7);
}

.inner-page .prob-bar {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 2px;
}

.inner-page .prob-fill {
    background: linear-gradient(90deg, rgba(0, 170, 220, 0.8), rgba(0, 220, 255, 0.9));
    border-radius: 2px;
}

.inner-page .viz-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.inner-page .viz-container h2 {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-weight: 400;
    color: #FFFFFF;
}

/* Methodology styles for inner page */
.inner-page .methodology-content {
    max-width: 100%;
    padding: 0;
}

.inner-page .method-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.inner-page .method-section h2 {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-weight: 400;
    color: #FFFFFF;
}

.inner-page .method-section p {
    font-family: 'Times New Roman', Times, Georgia, serif;
    color: rgba(255, 255, 255, 0.75);
}

.inner-page .method-list li {
    font-family: 'Times New Roman', Times, Georgia, serif;
    color: rgba(255, 255, 255, 0.75);
}

.inner-page .method-list li::before {
    color: rgba(0, 220, 255, 0.6);
}

.inner-page .method-section strong {
    color: #FFFFFF;
}

.inner-page .method-section a {
    color: rgba(0, 220, 255, 0.8);
    border-bottom-color: rgba(0, 220, 255, 0.4);
}

.inner-page .method-section a:hover {
    color: rgba(0, 220, 255, 1);
}

.inner-page .contact-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

/* Markets Page */
.page-subtitle {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
}

.markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.market-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.market-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.market-header h3 {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: #FFFFFF;
}

.market-status {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.market-status.live {
    background: rgba(0, 220, 255, 0.15);
    color: rgba(0, 220, 255, 0.9);
}

.market-candidates {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.market-candidate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.market-candidate .candidate-name {
    font-family: 'Times New Roman', Times, Georgia, serif;
    color: rgba(255, 255, 255, 0.8);
}

.market-candidate .candidate-odds {
    font-family: 'Times New Roman', Times, Georgia, serif;
    color: rgba(0, 220, 255, 0.9);
    font-size: 1.1rem;
}

.market-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.last-updated {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.aggregate-section {
    margin-top: 3rem;
}

.aggregate-section h2 {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.section-desc {
    font-family: 'Times New Roman', Times, Georgia, serif;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
}

.aggregate-table {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    overflow: hidden;
}

.aggregate-row {
    display: grid;
    grid-template-columns: 1fr 120px;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-family: 'Times New Roman', Times, Georgia, serif;
}

.aggregate-row:last-child {
    border-bottom: none;
}

.aggregate-row.header {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(0, 220, 255, 0.8);
    font-size: 0.9rem;
}

.aggregate-row .highlight {
    color: rgba(0, 220, 255, 0.9);
}

/* Fundraising Page */
.fundraising-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.stat-label {
    display: block;
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 2rem;
    color: rgba(0, 220, 255, 0.9);
}

.fundraising-table-section h2,
.donor-section h2 {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
}

.fundraising-table {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.fundraising-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-family: 'Times New Roman', Times, Georgia, serif;
    align-items: center;
}

.fundraising-row:last-child {
    border-bottom: none;
}

.fundraising-row.header {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(0, 220, 255, 0.8);
    font-size: 0.9rem;
}

.fundraising-row .candidate-name {
    color: #FFFFFF;
}

.burn-rate {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.burn-rate.low {
    background: rgba(0, 200, 100, 0.15);
    color: rgba(0, 200, 100, 0.9);
}

.burn-rate.medium {
    background: rgba(255, 200, 0, 0.15);
    color: rgba(255, 200, 0, 0.9);
}

.burn-rate.high {
    background: rgba(255, 100, 100, 0.15);
    color: rgba(255, 100, 100, 0.9);
}

.donor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.donor-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 1.5rem;
}

.donor-card h3 {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.donor-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.donor-stat {
    display: flex;
    justify-content: space-between;
    font-family: 'Times New Roman', Times, Georgia, serif;
}

.donor-stat .label {
    color: rgba(255, 255, 255, 0.6);
}

.donor-stat .value {
    color: rgba(0, 220, 255, 0.9);
}

/* FEC Notice Section */
.fec-notice {
    margin: 2rem 0 3rem 0;
}

.notice-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 220, 255, 0.2);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
}

.notice-card h2 {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 1.8rem;
    color: rgba(0, 220, 255, 0.95);
    margin-bottom: 1rem;
}

.market-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 220, 255, 0.9), rgba(0, 180, 220, 0.8));
    color: #000000;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 220, 255, 0.3);
}

.market-cta-button:hover {
    background: linear-gradient(135deg, rgba(0, 240, 255, 1), rgba(0, 200, 240, 0.9));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 220, 255, 0.5);
}

.fundraising-info {
    margin-top: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 2rem;
}

.fundraising-info h2 {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

/* ==================== Hero Section ==================== */

.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-mono);
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    position: relative;
}

.hero-title.glitch {
    animation: glitch 0.3s ease-in-out;
}

@keyframes glitch {
    0%, 100% {
        text-shadow: -2px 0 var(--accent), 2px 0 var(--accent-hover);
    }
    50% {
        text-shadow: -2px 0 var(--accent-hover), 2px 0 var(--accent);
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 500;
    font-family: var(--font-mono);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid;
    transition: all 0.3s ease;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    cursor: pointer;
    display: inline-block;
}

.cta-button.primary {
    background-color: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.cta-button.primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.cta-button.secondary:hover {
    background-color: rgba(0, 217, 255, 0.1);
}

.cta-button.large {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

/* ==================== Featured Section ==================== */

.featured-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

.candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.candidate-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

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

.candidate-card:hover {
    background-color: rgba(0, 217, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-4px);
}

.candidate-rank {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.candidate-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.candidate-card .role {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.odds-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.odds-number {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

.odds-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==================== CTA Section ==================== */

.cta-section {
    padding: 5rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

/* ==================== Page Header ==================== */

.page-header {
    text-align: center;
    padding: 3rem 2rem;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ==================== Odds Page ==================== */

.odds-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    flex-wrap: wrap;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-controls label {
    font-weight: 500;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-select:hover,
.sort-select:focus {
    border-color: var(--accent);
    outline: none;
}

.update-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* ==================== Table ==================== */

.odds-table-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 3rem;
}

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

.odds-table thead {
    background-color: var(--bg-primary);
    border-bottom: 2px solid var(--border);
}

.odds-table thead th {
    padding: 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    font-family: var(--font-mono);
}

.odds-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.odds-table tbody tr:hover {
    background-color: rgba(0, 217, 255, 0.05);
}

.odds-table td {
    padding: 1.5rem;
    color: var(--text-primary);
}

.odds-table .rank {
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-mono);
}

.candidate-name {
    font-weight: 600;
}

.candidate-role {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.probability {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.prob-bar {
    width: 150px;
    height: 4px;
    background-color: var(--bg-primary);
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.prob-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    transition: width 0.3s ease;
}

.prob-text {
    font-weight: 600;
    font-family: var(--font-mono);
    min-width: 50px;
}

.change {
    font-weight: 600;
    font-family: var(--font-mono);
}

.change.positive {
    color: #00D977;
}

.change.negative {
    color: #FF6B6B;
}

.change.neutral {
    color: var(--text-secondary);
}

.trend {
    font-size: 1rem;
}

.table-loading,
.table-error {
    text-align: center;
    padding: 2rem !important;
    color: var(--text-secondary);
}

/* ==================== Charts ==================== */

.visualizations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.viz-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2rem;
}

.viz-container h2 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.chart-wrapper {
    position: relative;
    height: 300px;
}

/* ==================== Methodology ==================== */

.methodology-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.method-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.method-section:last-child {
    border-bottom: none;
}

.method-section h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.method-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.method-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.method-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.7;
    color: var(--text-secondary);
}

.method-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.method-section strong {
    color: var(--accent);
}

.method-section a {
    color: var(--accent);
    transition: color 0.3s ease;
}

.method-section a:hover {
    color: var(--accent-hover);
}

.contact-section {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}

/* ==================== Footer ==================== */

.footer {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
    margin-top: 3rem;
    font-size: 0.85rem;
}

.footer p {
    margin: 0.5rem 0;
}

.footer strong {
    color: var(--accent);
    font-weight: 600;
}

.footer-credit {
    font-weight: 600;
    margin: 1rem 0;
    font-family: var(--font-mono);
}

.footer-note {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ==================== Responsive Design ==================== */

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        gap: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-group {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-button {
        width: 100%;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .odds-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .sort-controls {
        flex-direction: column;
    }

    .sort-select {
        width: 100%;
    }

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

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

    .odds-table {
        font-size: 0.85rem;
    }

    .odds-table td,
    .odds-table th {
        padding: 0.75rem;
    }

    .prob-bar {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-section {
        min-height: auto;
        padding: 2rem 1rem;
    }

    .featured-section {
        padding: 2rem 1rem;
    }

    .cta-section {
        padding: 2rem 1rem;
    }

    .odds-table thead {
        display: none;
    }

    .odds-table tr {
        display: block;
        margin-bottom: 1.5rem;
        border: 1px solid var(--border);
        border-radius: 4px;
        padding: 1rem;
    }

    .odds-table td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border);
    }

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

/* Landing Page Responsive */
@media (max-width: 768px) {
    .landing-left {
        position: static;
        transform: none;
        top: auto;
        left: auto;
        max-width: 100%;
        padding: 2rem 1.5rem;
        gap: 1rem;
    }

    .landing-hero {
        padding: 0 1.5rem;
    }

    .landing-title {
        font-size: 3rem;
    }

    .landing-tagline {
        max-width: 100%;
    }

    .cta-pill {
        padding: 0.875rem 1.5rem;
    }

    .blue-glow {
        width: 100%;
        height: 60%;
        bottom: -10%;
        right: -20%;
    }

    .cyan-glow {
        width: 80%;
        height: 50%;
        top: -10%;
        left: -30%;
    }
}

@media (max-width: 480px) {
    .landing-title {
        font-size: 2.2rem;
    }

    .nav-label {
        font-size: 0.55rem;
    }
}
