@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700;800;900&family=Inter:wght@400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: #030303;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.grid-bg {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(255,0,0,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,0,0,.045) 1px, transparent 1px),
        radial-gradient(circle at 50% 0%, rgba(255,0,0,.22), transparent 34%),
        linear-gradient(135deg, #030303, #080000 45%, #120000);
    background-size: 42px 42px, 42px 42px, auto, auto;
    z-index: -5;
}

.red-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    z-index: -4;
    opacity: .65;
}

.red-glow.one {
    width: 520px;
    height: 520px;
    background: #ff0000;
    top: -190px;
    right: 120px;
}

.red-glow.two {
    width: 440px;
    height: 440px;
    background: #7f0000;
    bottom: -170px;
    left: 240px;
}

.app-shell {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 34px 24px;
    background: rgba(10, 0, 0, .72);
    border-right: 1px solid rgba(255, 0, 0, .24);
    backdrop-filter: blur(20px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 42px;
}

.brand-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    background: linear-gradient(135deg, #ff0000, #4a0000);
    box-shadow: 0 0 35px rgba(255, 0, 0, .65);
}

.brand h2 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.brand p {
    color: #a3a3a3;
    font-size: 13px;
}

.menu {
    padding: 15px 18px;
    margin-bottom: 10px;
    border-radius: 16px;
    color: #b5b5b5;
    font-weight: 700;
    transition: .25s;
}

.menu:hover,
.menu.active {
    color: white;
    background: linear-gradient(90deg, rgba(255,0,0,.24), rgba(255,255,255,.04));
    border: 1px solid rgba(255,0,0,.28);
    box-shadow: inset 0 0 22px rgba(255,0,0,.08);
}

.model-card {
    margin-top: 36px;
    padding: 24px;
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(255,0,0,.22), rgba(20,0,0,.78));
    border: 1px solid rgba(255,0,0,.35);
    box-shadow: 0 25px 70px rgba(255,0,0,.16);
}

.model-card span {
    color: #ff6b6b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.model-card h3 {
    margin: 13px 0 20px;
    font-family: 'Orbitron', sans-serif;
}

.model-card p {
    margin-top: 12px;
    color: #a3a3a3;
}

.model-card strong {
    display: block;
    margin-top: 4px;
    font-size: 22px;
    color: #ff2d2d;
}

.main-content {
    padding: 32px 46px 60px;
}

.topbar {
    height: 54px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    color: #d4d4d4;
}

.live {
    padding: 10px 16px;
    border-radius: 999px;
    color: #ff5c5c;
    background: rgba(255,0,0,.12);
    border: 1px solid rgba(255,0,0,.28);
    font-weight: 900;
    letter-spacing: 1px;
}

.hero {
    position: relative;
    min-height: 360px;
    padding: 44px;
    border-radius: 34px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,0,0,.06)),
        radial-gradient(circle at top right, rgba(255,0,0,.38), transparent 42%);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 40px 100px rgba(0,0,0,.75);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,0,0,.12), transparent);
    transform: translateX(-100%);
    animation: shine 6s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    45%, 100% { transform: translateX(100%); }
}

.chip {
    display: inline-block;
    padding: 11px 16px;
    margin-bottom: 22px;
    border-radius: 999px;
    color: #ff4d4d;
    background: rgba(255,0,0,.14);
    border: 1px solid rgba(255,0,0,.35);
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 1.6px;
}

.hero h1 {
    max-width: 850px;
    font-family: 'Orbitron', sans-serif;
    font-size: 62px;
    line-height: 1;
    letter-spacing: -2px;
    background: linear-gradient(90deg, #fff, #ff3030, #7f0000);
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 60px rgba(255,0,0,.12);
}

.hero p {
    margin-top: 24px;
    max-width: 790px;
    color: #c7c7c7;
    font-size: 17px;
    line-height: 1.8;
}

.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
}

.circle {
    width: 245px;
    height: 245px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle, rgba(255,0,0,.5), rgba(40,0,0,.85) 58%, rgba(0,0,0,.95));
    border: 1px solid rgba(255,0,0,.5);
    box-shadow:
        0 0 40px rgba(255,0,0,.55),
        inset 0 0 45px rgba(255,0,0,.28);
    animation: float 4s ease-in-out infinite;
}

.circle span {
    font-family: 'Orbitron', sans-serif;
    font-size: 64px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 30px red;
}

.pulse {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(255,0,0,.38);
    animation: pulse 2.2s infinite;
}

@keyframes pulse {
    0% { transform: scale(.8); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 28px 0;
}

.stat-card {
    padding: 26px;
    border-radius: 26px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
    transition: .25s;
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,0,0,.45);
    box-shadow: 0 24px 80px rgba(255,0,0,.14);
}

.stat-card span {
    color: #ff4d4d;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.6px;
}

.stat-card h2 {
    margin-top: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 34px;
}

.stat-card p {
    margin-top: 8px;
    color: #9ca3af;
}

.prediction-panel {
    padding: 36px;
    border-radius: 34px;
    background: rgba(8, 0, 0, .78);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 38px 120px rgba(0,0,0,.7);
    backdrop-filter: blur(18px);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 20px;
    margin-bottom: 30px;
}

.panel-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 34px;
}

.panel-header p {
    margin-top: 9px;
    color: #a3a3a3;
}

.secure {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,0,0,.14);
    border: 1px solid rgba(255,0,0,.3);
    color: #ff4d4d;
    font-weight: 900;
    font-size: 12px;
    white-space: nowrap;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group.full {
    grid-column: span 2;
}

label {
    margin-bottom: 10px;
    font-weight: 800;
    color: #f5f5f5;
}

input {
    height: 58px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.065);
    color: white;
    outline: none;
    font-size: 16px;
    transition: .25s;
}

input::placeholder {
    color: #737373;
}

input:focus {
    border-color: #ff2222;
    box-shadow:
        0 0 0 4px rgba(255,0,0,.12),
        0 0 30px rgba(255,0,0,.25);
    background: rgba(255,0,0,.08);
}

button {
    grid-column: span 2;
    height: 64px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    color: white;
    font-weight: 900;
    font-size: 17px;
    letter-spacing: 1px;
    text-transform: uppercase;
    background:
        linear-gradient(90deg, #7f0000, #ff0000, #ff3b3b, #7f0000);
    background-size: 300% 100%;
    box-shadow:
        0 22px 65px rgba(255,0,0,.28),
        inset 0 0 22px rgba(255,255,255,.12);
    transition: .25s;
    animation: buttonGlow 4s linear infinite;
}

button:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow:
        0 30px 90px rgba(255,0,0,.45),
        inset 0 0 24px rgba(255,255,255,.18);
}

@keyframes buttonGlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.result {
    margin-top: 32px;
    padding: 36px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(255,0,0,.35), rgba(20,0,0,.8) 62%);
    border: 1px solid rgba(255,0,0,.38);
    box-shadow: 0 30px 90px rgba(255,0,0,.15);
}

.result::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg, transparent, rgba(255,0,0,.32), transparent);
    animation: shine 4s infinite;
}

.result p,
.result h1,
.result span {
    position: relative;
    z-index: 1;
}

.result p {
    color: #ff6b6b;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.result h1 {
    margin: 10px 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 82px;
    color: #ffffff;
    text-shadow: 0 0 35px rgba(255,0,0,.85);
}

.result span {
    color: #d4d4d4;
}

@media (max-width: 1050px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        padding: 24px;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .hero h1 {
        font-size: 42px;
    }

    .stats,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .input-group.full,
    button {
        grid-column: span 1;
    }
}