:root {
    --bg-dark: #050505;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-cyan: #00f3ff;
    --accent-purple: #bd00ff;
    --accent-green: #00ff9d;
    --accent-red: #ff3e3e;
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior-y: contain;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.app-header {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
    position: relative;
}

/* Language Selector */
.lang-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    display: inline-flex;
    /* Make it fit content */
}

.lang-flag {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 15px;
    opacity: 0.7;
}

.lang-flag:hover {
    color: #fff;
    opacity: 1;
    text-shadow: 0 0 10px #fff;
}

.lang-flag.active {
    background: var(--accent-cyan);
    color: #000;
    opacity: 1;
    box-shadow: 0 0 15px var(--accent-cyan);
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(45deg,
            #fff 0%,
            var(--accent-cyan) 25%,
            var(--accent-purple) 50%,
            var(--accent-cyan) 75%,
            #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    letter-spacing: -1px;
    /* animation: shine 3s linear infinite; REMOVED per user request */
    text-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.brand-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 0.5rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fadeIn 1s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.robot-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 5px var(--accent-cyan));
    animation: float-robot 3s ease-in-out infinite;
}

@keyframes float-robot {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Date Navigator */
.date-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 10px;
}

.date-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
}

.date-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.date-btn.active {
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-cyan));
    color: #fff;
    font-weight: 700;
    border: none;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

/* News Ticker */
.news-ticker {
    width: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid var(--accent-cyan);
    border-bottom: 1px solid var(--accent-cyan);
    margin-bottom: 1.5rem;
    padding: 10px 0;
    position: relative;
    white-space: nowrap;
    animation: breathe-light 4s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

@keyframes breathe-light {

    0%,
    100% {
        box-shadow: 0 -2px 10px rgba(0, 243, 255, 0.2), 0 2px 10px rgba(0, 243, 255, 0.2);
        border-color: rgba(0, 243, 255, 0.3);
    }

    50% {
        box-shadow: 0 -5px 20px rgba(189, 0, 255, 0.5), 0 5px 20px rgba(189, 0, 255, 0.5);
        border-color: var(--accent-purple);
    }
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 15s linear infinite;
    color: var(--accent-cyan);
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.95rem;
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}

/* Promo Ticker - Second Line */
.promo-ticker {
    margin-top: -10px;
    /* Pull it closer to the first one */
    border-color: var(--accent-purple);
    /* Distinguish border slightly */
    animation-delay: -7.5s;
    /* Desynchronize breathing if possible, or just look different */
    animation: breathe-light-purple 4s ease-in-out infinite;
}

.promo-content {
    color: #fff;
    /* White text for better readability of promo */
    animation-duration: 20s;
    /* Slower speed for reading long text */
    text-shadow: 0 0 5px rgba(189, 0, 255, 0.5);
}

@keyframes breathe-light-purple {

    0%,
    100% {
        box-shadow: 0 -2px 10px rgba(189, 0, 255, 0.2), 0 2px 10px rgba(189, 0, 255, 0.2);
        border-color: rgba(189, 0, 255, 0.3);
    }

    50% {
        box-shadow: 0 -5px 20px rgba(255, 255, 255, 0.5), 0 5px 20px rgba(255, 255, 255, 0.5);
        border-color: #fff;
    }
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Search Box with Power Neon Animation */
.search-container {
    margin-bottom: 2rem;
    position: relative;
    max-width: 100%;
    padding: 3px;
    /* Border thickness */
    border-radius: 16px;
    /* Powerful fluid gradient */
    background: linear-gradient(60deg,
            var(--accent-cyan),
            var(--accent-purple),
            var(--accent-cyan),
            #ffffff,
            var(--accent-purple));
    background-size: 300% 300%;
    animation: power-flow 3s ease infinite;
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.3);
}

@keyframes power-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.search-input {
    width: 100%;
    background: #080808;
    /* Dark inner to contrast with neon border */
    border: none;
    color: #fff;
    padding: 15px 20px;
    border-radius: 13px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: var(--font-family);
    transition: all 0.3s ease;
    box-sizing: border-box;
    display: block;
    /* Fix layout */
}

.search-input:focus {
    outline: none;
    background: #111;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

/* Match List */
.league-group {
    margin-bottom: 2rem;
}

.league-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    padding-left: 10px;
    border-left: 3px solid var(--accent-purple);
}

.league-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.match-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Accordion Header (Summary) */
.match-summary {
    padding: 12px 15px;
    /* Compact padding */
    display: grid;
    /* Time | Teams+Odds | Robots (Auto) */
    grid-template-columns: 50px 1fr auto;
    align-items: center;
    cursor: pointer;
    gap: 15px;
}

.match-time {
    color: #fff;
    font-weight: 700;
    font-size: 0.7rem;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.15), rgba(189, 0, 255, 0.15));
    padding: 3px 0;
    /* Center content vertically */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    border: 1px solid rgba(0, 243, 255, 0.4);
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.8);
    box-shadow: 0 0 8px rgba(0, 243, 255, 0.1);
    width: 100%;
    /* Fill the grid cell */
    letter-spacing: 0.5px;
    font-family: 'Courier New', monospace;
}

.match-teams {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    /* More space between rows */
}

.team {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    /* Space between Name and Odd */
}

.t-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.inline-odd {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    background: rgba(0, 243, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.team.home {
    color: #fff;
}

.team.away {
    color: #fff;
}

/* Confidence Robots Right Aligned */
.confidence-robots-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2px;
    height: 100%;
}

.robot-icon {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 0 2px var(--neon-blue));
}

.mini-robot {
    width: 18px;
    /* Slightly bigger robots */
    height: 18px;
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 3px var(--accent-cyan));
    animation: pulse-robot 2s infinite;
}

.mini-robot.danger {
    color: var(--accent-red);
    filter: drop-shadow(0 0 3px var(--accent-red));
}

@keyframes pulse-robot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.9);
    }
}

.match-odds-summary {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 5px;
}

.odd-badge {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    background: rgba(0, 243, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Accordion Body (Details) */
.match-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #0a0a0a;
}

.match-card.active .match-details {
    max-height: 4000px;
    /* Arbitrary large height for animation */
    transition: max-height 0.6s ease-in;
    border-top: 1px solid var(--glass-border);
}

.details-content {
    padding: 20px;
}

/* Analysis Sections */
.analysis-section {
    margin-bottom: 20px;
}

.section-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 5px;
}

/* Stat Bars */
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.stat-label {
    color: #ccc;
}

.stat-value {
    font-weight: bold;
    color: #fff;
}

.progress-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    border-radius: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.progress-bar.highprob {
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
}

.progress-bar.lowprob {
    background: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red);
}

/* Grid for Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* Footer logic */
/* Details Redesign */
.stats-overview-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-big-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.2));
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-big-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.big-stat-value {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.big-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.analysis-card {
    background: #0f0f13;
    border: 1px solid #1f1f25;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 20px;
    border-left: 3px solid var(--accent-purple);
    padding-left: 10px;
}

/* Segmented Bar */
.section-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Futuristic Segmented Bar */
.segmented-bar-container {
    display: flex;
    gap: 6px;
    /* Distinct separation between blocks */
    height: 32px;
    /* Taller and chunkier */
    background: transparent;
    overflow: visible;
    margin-bottom: 12px;
    padding: 0;
}

.seg-bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    border-radius: 4px;
    /* Slightly rounded tech feel */
    /* Tech scanline texture */
    background-image: linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 100% 4px;
}

.seg-bar.home {
    background-color: var(--accent-cyan);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
    border: 1px solid rgba(0, 243, 255, 0.6);
}

.seg-bar.draw {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

.seg-bar.away {
    background-color: var(--accent-purple);
    color: #fff;
    box-shadow: 0 0 15px rgba(189, 0, 255, 0.4);
    border: 1px solid rgba(189, 0, 255, 0.6);
}

/* Shine effect on high percentages */
.seg-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
    opacity: 0.3;
    pointer-events: none;
}

.seg-bar.away {
    background: var(--accent-red);
    box-shadow: 0 0 10px rgba(255, 62, 62, 0.3);
}

.seg-legend {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #666;
}

.seg-legend span.home {
    color: var(--accent-green);
}

.seg-legend span.away {
    color: var(--accent-red);
}

/* Goals Analysis Grid Lines */
.stat-line-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.stat-line-label {
    flex: 1;
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 500;
}

.stat-line-bar-wrapper {
    flex: 2;
    height: 6px;
    background: #222;
    border-radius: 3px;
    margin: 0 15px;
    position: relative;
    overflow: hidden;
}

.stat-line-bar-fill {
    height: 100%;
    background: var(--accent-cyan);
    border-radius: 3px;
    box-shadow: 0 0 8px var(--accent-cyan);
}

.stat-line-bar-fill.highprob {
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
}

.stat-line-bar-fill.lowprob {
    background: var(--accent-red);
    box-shadow: 0 0 8px var(--accent-red);
}

.stat-line-value {
    width: 45px;
    text-align: right;
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
}

.stat-line-value.highprob {
    color: var(--accent-green);
}

/* HT/FT Grid */
.htft-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.htft-box {
    background: #15151a;
    border: 1px solid #2a2a35;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    position: relative;
}

.htft-box.highlight {
    border-color: var(--accent-cyan);
    background: rgba(0, 243, 255, 0.05);
}

.htft-label {
    font-size: 0.75rem;
    color: #777;
    margin-bottom: 4px;
}

.htft-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.htft-box.highlight .htft-val {
    color: var(--accent-cyan);
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        max-width: 100%;
    }

    .match-summary {
        padding: 12px 8px;
        grid-template-columns: 45px 1fr auto;
        gap: 8px;
    }

    .match-teams {
        gap: 4px;
    }

    .team {
        font-size: 0.85rem;
    }

    .t-name {
        max-width: 140px;
    }

    .inline-odd {
        font-size: 0.7rem;
        padding: 1px 4px;
    }

    .stats-overview-row {
        gap: 6px;
    }

    .stat-big-box {
        padding: 8px 4px;
    }

    .big-stat-value {
        font-size: 1.1rem;
    }

    .big-stat-label {
        font-size: 0.55rem;
    }

    .analysis-grid {
        grid-template-columns: 1fr;
        /* Stack columns on mobile */
    }
}

.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 40px;
}

/* Premium Lock UI */
.locked-content {
    position: relative;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    min-height: 150px;
    overflow: hidden;
}

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(10, 10, 20, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lock-message {
    text-align: center;
    color: #fff;
    padding: 20px;
    max-width: 80%;
    font-size: 0.95rem;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

@media (max-width: 768px) {
    .lock-message {
        font-size: 0.7rem !important;
        padding: 10px;
        width: 95%;
    }
}

.lock-message a {
    color: var(--neon-blue);
    text-decoration: underline;
    font-weight: bold;
}

/* Unlock Modal */
.unlock-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.unlock-content {
    background: var(--card-bg);
    border: 1px solid var(--neon-blue);
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    position: relative;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

.unlock-input {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    text-align: center;
}

.unlock-submit {
    width: 100%;
    padding: 12px;
    background: var(--neon-blue);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.unlock-submit:hover {
    background: #fff;
    box-shadow: 0 0 15px var(--neon-blue);
}

/* Magic Key Button */
.magic-key-container {
    display: flex;
    justify-content: center;
    margin: 10px 0 20px 0;
}

.magic-key-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
    border-radius: 50px;
    padding: 10px 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.magic-key-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
}

.magic-key-btn .key-icon {
    font-size: 2rem;
}

.magic-key-btn .key-text {
    color: #000;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
}

/* Success Overlay */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease;
}

.lock-animation {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

.success-text {
    color: #00ff00;
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 0 0 20px #00ff00;
    animation: fadeIn 1s ease-in-out;
}

/* Error Message in Modal */
.error-msg {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff4444;
    border-radius: 4px;
    padding: 8px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* New Responsive Grid Class */
.analysis-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .brand-title {
        font-size: 1.8rem;
    }

    /* Smaller Date Buttons (-25%) */
    .date-btn {
        padding: 8px 12px;
        min-width: 70px;
        font-size: 0.75rem;
    }

    /* Stack Analysis Cards */
    .analysis-grid-row {
        grid-template-columns: 1fr !important;
    }

    .stats-overview-row {
        gap: 10px;
    }

    .stat-big-box {
        padding: 15px;
    }

    .big-stat-value {
        font-size: 1.5rem;
    }

    .match-summary {
        grid-template-columns: 40px 1fr auto;
        gap: 10px;
        padding: 10px;
    }

    .match-time {
        font-size: 0.65rem;
    }
}

/* Unlock Button Animation (App-Like) */
@keyframes neonPulse {
    0% {
        box-shadow: 0 0 10px rgba(0, 243, 255, 0.4), 0 0 20px rgba(0, 243, 255, 0.2);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 243, 255, 0.7), 0 0 40px rgba(0, 243, 255, 0.4);
        transform: scale(1.02);
    }

    100% {
        box-shadow: 0 0 10px rgba(0, 243, 255, 0.4), 0 0 20px rgba(0, 243, 255, 0.2);
        transform: scale(1);
    }
}

.unlock-submit {
    background: linear-gradient(135deg, #00f3ff, #006eff);
    color: #000;
    border: none;
    padding: 14px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: neonPulse 2s infinite ease-in-out;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    text-shadow: none;
    /* Reset distinct text shadow if any */
}

.unlock-submit::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    animation: shine 3s infinite linear;
    pointer-events: none;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(30deg);
    }

    100% {
        transform: translateX(100%) rotate(30deg);
    }
}

.unlock-submit:hover {
    background: linear-gradient(135deg, #006eff, #00f3ff);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.8);
    transform: scale(1.05);
}

.unlock-submit:active {
    transform: scale(0.95);
    box-shadow: 0 0 5px rgba(0, 243, 255, 0.8);
}