:root {
    --primary: #4A47D1;
    --primary-dark: #2E2A85;
    --bg-light: #F8FAFC;
    --text-dark: #1E293B;
    --text-gray: #64748B;
    --accent-orange: #F59E0B;
    --live-red: #EF4444;
}

* {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #E2E8F0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 500px;
    background: var(--bg-light);
    position: relative;
    min-height: 100vh;
    padding-top: 85px;
    padding-bottom: 130px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
}

.header-fixed {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 500px;
    z-index: 1050;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #6366F1, #4338CA);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-info h1 {
    font-size: 18px;
    font-weight: 900;
    color: var(--primary-dark);
    line-height: 1.2;
    margin: 0;
}

.brand-info p {
    font-size: 10px;
    font-weight: 700;
    color: #94A3B8;
    letter-spacing: 0.5px;
    margin: 0;
}

.nav-bottom-fixed {
    position: fixed;
    bottom: 25px;
    width: 100%;
    max-width: 460px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
}

.nav-inner {
    background: #2E2A6E;
    height: 75px;
    border-radius: 40px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 0 10px;
}

.nav-item {
    color: #94A3B8;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-item.active {
    color: white;
}

.nav-item p {
    margin: 0;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: inherit;
}

.live-circle-btn {
    position: absolute;
    top: -30px;
    width: 75px;
    height: 75px;
    background: linear-gradient(to bottom, #FBBF24, #D97706);
    border-radius: 50%;
    border: 6px solid var(--bg-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.3);
    text-decoration: none;
}

.live-circle-btn span {
    font-size: 9px;
    font-weight: 900;
    margin-top: 2px;
}

.section-title {
    padding: 24px 20px 15px;
    font-size: 18px;
    font-weight: 900;
    color: #0F172A;
    text-transform: uppercase;
}

.live-card {
    margin: 10px;
    background: linear-gradient(135deg, #312E81 0%, #1E1B4B 100%);
    border-radius: 14px;
    padding: 8px 8px;
    color: white;
}

.box-num {
    width: 26px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-family: monospace;
}

.box-num.anim-digit,
.box-num.text-white-50.anim-digit {
    width: 18px;
    height: 22px;
    font-size: 1em;
}

.today-card {
    margin: 0 15px;
    background: white;
    border-radius: 35px;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.today-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #F1F5F9;
}

.j-num {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
}

.btn-chart {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 8px;
    font-weight: 800;
}

.old-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 15px;
}

.old-card {
    background: white;
    border-radius: 25px;
    padding: 15px;
    border: 1px solid #F1F5F9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}