* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background: #080b12;
    color: #ffffff;
    font-family: Arial, sans-serif;
}

/* =========================
   HEADER
========================= */

.header {
    width: 100%;
    padding: 18px;
    background: #101522;
    border-bottom: 1px solid #202a3d;
}

.header h1 {
    margin: 0;
    font-size: 23px;
}

.header p {
    margin: 5px 0 0;
    color: #8d98ab;
    font-size: 13px;
}

/* LIVE */

.live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #8d98ab;
    margin-top: 10px;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #35d07f;
}

/* =========================
   CONTAINER
========================= */

.container {
    width: 100%;
    max-width: 1100px;
    margin: auto;
    padding: 18px;
}

/* =========================
   SECTION TITLE
========================= */

.section-title {
    margin: 5px 0 12px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* =========================
   PREDICTION STATS
========================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.stat-card {
    min-width: 0;
    padding: 16px;
    border-radius: 14px;
    background: #101522;
    border: 1px solid #202a3d;
}

.stat-label {
    color: #8d98ab;
    font-size: 11px;
}

.stat-value {
    margin-top: 7px;
    font-size: 25px;
    font-weight: 800;
}

/* =========================
   CURRENT PREDICTION
========================= */

.prediction-card {
    width: 100%;
    margin-top: 16px;
    padding: 20px;
    border-radius: 16px;
    background: #101522;
    border: 1px solid #202a3d;
}

.prediction-header {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #8d98ab;
}

.prediction-period {
    margin-top: 10px;
    font-size: 13px;
    color: #8d98ab;
    white-space: nowrap;
}

.prediction-value {
    margin: 14px 0;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 1px;
}

.prediction-confidence,
.prediction-status {
    font-size: 13px;
    margin-top: 6px;
}

.prediction-reason {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #202a3d;
    font-size: 12px;
    line-height: 1.5;
    color: #8d98ab;
    overflow-wrap: anywhere;
}

/* =========================
   SECTIONS
========================= */

.section {
    width: 100%;
    max-width: 100%;
    margin-top: 18px;
    background: #101522;
    border: 1px solid #202a3d;
    border-radius: 14px;
    overflow: hidden;
}

.section-header {
    padding: 16px;
    border-bottom: 1px solid #202a3d;
}

.section-header h2 {
    margin: 0;
    font-size: 18px;
}

.section-header p {
    margin: 5px 0 0;
    color: #8d98ab;
    font-size: 12px;
}

/* =========================
   GAME STATISTICS
========================= */

.game-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
}

.game-stat {
    min-width: 0;
    padding: 14px;
    background: #0b0f18;
    border: 1px solid #202a3d;
    border-radius: 12px;
}

.game-stat-label {
    color: #8d98ab;
    font-size: 11px;
}

.game-stat-value {
    margin-top: 6px;
    font-size: 22px;
    font-weight: 800;
}

/* =========================
   TABLE
========================= */

.table-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

th,
td {
    padding: 13px 10px;
    text-align: left;
    border-bottom: 1px solid #202a3d;
    font-size: 13px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

th {
    color: #8d98ab;
    font-weight: 500;
}

tr:last-child td {
    border-bottom: none;
}

.number {
    font-size: 20px;
    font-weight: bold;
}

.big {
    font-weight: bold;
}

.small {
    font-weight: bold;
}

/* =========================
   PREDICTION HISTORY
========================= */

.prediction-table {
    min-width: 0 !important;
    width: 100%;
    table-layout: fixed;
}

.prediction-table th:nth-child(1),
.prediction-table td:nth-child(1) {
    width: 22%;
}

.prediction-table th:nth-child(2),
.prediction-table td:nth-child(2) {
    width: 18%;
}

.prediction-table th:nth-child(3),
.prediction-table td:nth-child(3) {
    width: 15%;
}

.prediction-table th:nth-child(4),
.prediction-table td:nth-child(4) {
    width: 15%;
}

.prediction-table th:nth-child(5),
.prediction-table td:nth-child(5) {
    width: 15%;
}

.prediction-table th:nth-child(6),
.prediction-table td:nth-child(6) {
    width: 15%;
}

.status {
    font-weight: bold;
}

.pending {
    font-weight: bold;
}

.empty {
    padding: 35px;
    text-align: center;
    color: #8d98ab;
}

/* =========================
   REALTIME TABLE
========================= */

.realtime-table {
    width: 100%;
    min-width: 0 !important;
    table-layout: fixed;
}

.realtime-table th:nth-child(1),
.realtime-table td:nth-child(1) {
    width: 20%;
}

.realtime-table th:nth-child(2),
.realtime-table td:nth-child(2) {
    width: 15%;
    text-align: center;
}

.realtime-table th:nth-child(3),
.realtime-table td:nth-child(3) {
    width: 23%;
}

.realtime-table th:nth-child(4),
.realtime-table td:nth-child(4) {
    width: 18%;
}

.realtime-table th:nth-child(5),
.realtime-table td:nth-child(5) {
    width: 15%;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .header {
        padding: 15px;
    }

    .header h1 {
        font-size: 21px;
    }

    .header p {
        font-size: 12px;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 10px;
    }

    /* STATS */

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .stat-card {
        padding: 13px 11px;
        border-radius: 12px;
    }

    .stat-label {
        font-size: 10px;
        white-space: nowrap;
    }

    .stat-value {
        font-size: 21px;
    }

    /* PREDICTION */

    .prediction-card {
        padding: 16px;
        border-radius: 14px;
    }

    .prediction-value {
        font-size: 31px;
    }

    .prediction-period {
        font-size: 12px;
    }

    /* GAME STATS */

    .game-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
    }

    .game-stat {
        padding: 12px 10px;
    }

    .game-stat-label {
        font-size: 10px;
    }

    .game-stat-value {
        font-size: 20px;
    }

    /* SECTION */

    .section {
        margin-top: 14px;
        border-radius: 13px;
    }

    .section-header {
        padding: 14px;
    }

    .section-header h2 {
        font-size: 17px;
    }

    .section-header p {
        font-size: 11px;
    }

    /* TABLE */

    .table-wrap {
        width: 100%;
        overflow: hidden;
    }

    table {
        width: 100%;
        min-width: 0 !important;
        table-layout: fixed;
    }

    th,
    td {
        padding: 11px 7px;
        font-size: 10px;
    }

    .number {
        font-size: 19px;
    }

    /* PREDICTION HISTORY */

    .prediction-table th:nth-child(1),
    .prediction-table td:nth-child(1) {
        width: 22%;
    }

    .prediction-table th:nth-child(2),
    .prediction-table td:nth-child(2) {
        width: 18%;
    }

    .prediction-table th:nth-child(3),
    .prediction-table td:nth-child(3) {
        width: 15%;
    }

    .prediction-table th:nth-child(4),
    .prediction-table td:nth-child(4) {
        width: 15%;
    }

    .prediction-table th:nth-child(5),
    .prediction-table td:nth-child(5) {
        width: 15%;
    }

    .prediction-table th:nth-child(6),
    .prediction-table td:nth-child(6) {
        width: 15%;
    }

    /* REALTIME */

    .realtime-table th:nth-child(1),
    .realtime-table td:nth-child(1) {
        width: 20%;
    }

    .realtime-table th:nth-child(2),
    .realtime-table td:nth-child(2) {
        width: 15%;
        text-align: center;
    }

    .realtime-table th:nth-child(3),
    .realtime-table td:nth-child(3) {
        width: 23%;
    }

    .realtime-table th:nth-child(4),
    .realtime-table td:nth-child(4) {
        width: 18%;
    }

    .realtime-table th:nth-child(5),
    .realtime-table td:nth-child(5) {
        width: 15%;
    }
}

/* VERY SMALL PHONES */

@media (max-width: 380px) {

    .container {
        padding: 8px;
    }

    .header {
        padding: 13px;
    }

    .stat-card {
        padding: 11px 9px;
    }

    .stat-label {
        font-size: 9px;
    }

    .stat-value {
        font-size: 19px;
    }

    th,
    td {
        padding: 9px 5px;
        font-size: 9px;
    }

    .number {
        font-size: 17px;
    }

    .prediction-value {
        font-size: 28px;
    }
}
.color-split,
.color-split-green {
    display: inline-block;
    width: 64px;
    height: 30px;
    border-radius: 7px;
    overflow: hidden;
    vertical-align: middle;
    font-size: 0;
    position: relative;
}

.color-split {
    background: linear-gradient(
        to right,
        #ef4444 0%,
        #ef4444 50%,
        #8b5cf6 50%,
        #8b5cf6 100%
    );
}

.color-split-green {
    background: linear-gradient(
        to right,
        #22c55e 0%,
        #22c55e 50%,
        #8b5cf6 50%,
        #8b5cf6 100%
    );
}

.color-red {
    color: #ef4444;
    font-weight: 700;
}

.color-green {
    color: #22c55e;
    font-weight: 700;
}
.accuracy-red {
    color: #ef4444 !important;
}

.accuracy-orange {
    color: #f97316 !important;
}

.accuracy-yellow {
    color: #eab308 !important;
}

.accuracy-green {
    color: #22c55e !important;
}

.accuracy-high {
    color: #00ff88 !important;
}
.win-status {
    color: #22c55e !important;
    font-weight: 800;
}

.loss-status {
    color: #ef4444 !important;
    font-weight: 800;
}
.big {
    color: #3b82f6 !important;
    font-weight: 800;
}

.small {
    color: #a855f7 !important;
    font-weight: 800;
}
/* =====================================================
   CURRENT PREDICTION STATUS ROW
===================================================== */

.prediction-status-row {
    display: grid;
    grid-template-columns: 1fr 1fr 180px;
    gap: 10px;
    align-items: stretch;
    margin-top: 15px;
}


/* =====================================================
   LOSS ALERT
===================================================== */

.loss-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid;
}


.loss-alert strong {
    display: block;
    font-size: 15px;
}


.loss-alert small {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    opacity: .8;
}


.loss-alert.normal {
    color: #35e58c;
    border-color: #35e58c;
    background: rgba(53,229,140,.08);
}


.loss-alert.alert {
    color: #ffc857;
    border-color: #ffc857;
    background: rgba(255,200,87,.08);
}


.loss-alert.stop {
    color: #ff5d6c;
    border-color: #ff5d6c;
    background: rgba(255,93,108,.10);
}


.alert-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 12px currentColor;
    flex-shrink: 0;
}


/* =====================================================
   COUNTDOWN
===================================================== */

.countdown-box {
    text-align: center;
    padding: 10px;
    border: 1px solid #2388ff;
    border-radius: 12px;
    background: rgba(35,136,255,.08);
}


.countdown-label {
    color: #8d96a8;
    font-size: 10px;
    margin-bottom: 3px;
}


#countdownTimer {
    color: #55aaff;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: 2px;
}


/* =====================================================
   INVESTMENT FUND
===================================================== */

.investment-card {
    margin-top: 14px;
    padding: 18px;
    background: #10151f;
    border: 1px solid #202a3a;
    border-radius: 16px;
}


.investment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 17px;
    font-weight: 800;
}


.investment-header small {
    color: #8d96a8;
    font-size: 11px;
    font-weight: normal;
}


.investment-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}


.investment-level {
    text-align: center;
    padding: 13px 5px;
    border-radius: 11px;
    background: #0b1018;
    border: 1px solid #293244;
    transition: .2s;
}


.investment-level span {
    display: block;
    color: #8d96a8;
    font-size: 11px;
    margin-bottom: 6px;
}


.investment-level strong {
    display: block;
    font-size: 17px;
}


.investment-level.active {
    border-color: #35e58c;
    color: #35e58c;
    background: rgba(53,229,140,.08);
    box-shadow: 0 0 15px rgba(53,229,140,.15);
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {

    /* =========================
       PREDICTION STATUS
    ========================= */

    .prediction-status-row {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
        margin-top: 10px;
    }

    .prediction-confidence {
        font-size: 11px;
    }

    .loss-alert {
        padding: 9px 10px;
        gap: 7px;
    }

    .loss-alert strong {
        font-size: 12px;
    }

    .loss-alert small {
        font-size: 9px;
    }

    .alert-dot {
        width: 10px;
        height: 10px;
    }


    /* =========================
       COUNTDOWN
    ========================= */

    .countdown-box {
        grid-column: span 2;
        padding: 7px;
    }

    .countdown-label {
        font-size: 9px;
    }

    #countdownTimer {
        font-size: 21px;
        letter-spacing: 1px;
    }


    /* =========================
       INVESTMENT FUND
    ========================= */

    .investment-card {
        margin-top: 12px;
        padding: 13px;
        border-radius: 14px;
    }

    .investment-header {
        margin-bottom: 10px;
        font-size: 15px;
    }

    .investment-header small {
        font-size: 9px;
    }

    .investment-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
        overflow: visible;
    }

    .investment-level {
        min-width: 0;
        width: 100%;
        padding: 9px 3px;
        border-radius: 9px;
    }

    .investment-level span {
        font-size: 9px;
        margin-bottom: 3px;
    }

    .investment-level strong {
        font-size: 13px;
    }

    .investment-level.active {
        box-shadow: 0 0 9px rgba(53,229,140,.15);
    }


    /* =========================
       CONFIDENCE
    ========================= */

    .confidence-box {
        padding: 8px 10px;
        border-radius: 9px;
    }

    .confidence-label {
        font-size: 10px;
    }

    .confidence-top strong {
        font-size: 15px;
    }

    .confidence-track {
        height: 4px;
        margin-top: 5px;
    }

}
/* =========================
   CONFIDENCE
========================= */

.confidence-box {
    padding: 11px 14px;
    border: 1px solid #293244;
    border-radius: 12px;
    background: #0b1018;
    min-width: 0;
}

.confidence-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.confidence-label {
    color: #aab3c4;
    font-size: 12px;
    font-weight: 600;
}

.confidence-top strong {
    color: #ffc857;
    font-size: 18px;
    font-weight: 900;
}

.confidence-track {
    width: 100%;
    height: 6px;
    margin-top: 8px;
    background: #182333;
    border-radius: 20px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    width: 0%;
    border-radius: 20px;
    background: #ffc857;
    transition: width .4s ease;
}
.dashboard-logo {
    width: 100%;
    max-width: 850px;
    height: 72px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dashboard-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 700px) {
    .dashboard-logo {
        height: 65px;
        margin-bottom: 5px;
    }

    .dashboard-logo img {
        object-fit: cover;
        object-position: center;
    }
}

/* ==============================
   FOOTER
============================== */

.dashboard-footer {
    margin-top: 28px;
    padding: 20px 12px 24px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,.08);
    background: rgba(5,8,18,.75);
    backdrop-filter: blur(12px);
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-bottom: 13px;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 19px;

    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;

    animation: socialFloat 3s ease-in-out infinite;
}

.social-btn:nth-child(2) {
    animation-delay: .2s;
}

.social-btn:nth-child(3) {
    animation-delay: .4s;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.08);
}

.telegram:hover {
    background: rgba(0,136,204,.22);
    box-shadow: 0 0 18px rgba(0,136,204,.55);
}

.instagram:hover {
    background: rgba(225,48,108,.22);
    box-shadow: 0 0 18px rgba(225,48,108,.55);
}

.youtube:hover {
    background: rgba(255,0,0,.20);
    box-shadow: 0 0 18px rgba(255,0,0,.55);
}

.footer-copyright {
    color: rgba(255,255,255,.58);
    font-size: 11px;
    text-decoration: none;
    letter-spacing: .7px;
    transition: color .25s ease, text-shadow .25s ease;
}

.footer-copyright:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,.5);
}

@keyframes socialFloat {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@media (max-width:700px) {

    .dashboard-footer {
        margin-top: 20px;
        padding: 17px 10px 20px;
    }

    .footer-social {
        gap: 11px;
        margin-bottom: 11px;
    }

    .social-btn {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }

    .footer-copyright {
        font-size: 10px;
    }
}
/* ==============================
   NOTIFICATION MARQUEE
============================== */

.notification-marquee {
    width: 100%;
    height: 38px;
    margin: 8px 0 12px;
    display: flex;
    align-items: center;
    overflow: hidden;

    background: rgba(8, 15, 30, .92);
    border: 1px solid rgba(53, 229, 140, .18);
    border-radius: 10px;

    box-shadow:
        0 0 14px rgba(53, 229, 140, .06);
}

.notification-icon {
    width: 42px;
    min-width: 42px;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(53, 229, 140, .08);
    border-right: 1px solid rgba(255,255,255,.07);

    font-size: 16px;
}

.notification-window {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.notification-track {
    display: inline-flex;
    gap: 70px;
    padding-left: 100%;

    animation: notificationScroll 18s linear infinite;
}

.notification-track span {
    color: #dce6f5;
    font-size: 12px;
    font-weight: 600;
}

@keyframes notificationScroll {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

@media (max-width: 700px) {

    .notification-marquee {
        height: 34px;
        margin: 6px 0 10px;
        border-radius: 8px;
    }

    .notification-icon {
        width: 36px;
        min-width: 36px;
        font-size: 14px;
    }

    .notification-track span {
        font-size: 10px;
    }
}
/* =================================
   CURRENT PREDICTION ANIMATION
================================= */

.prediction-card {
    position: relative;
    overflow: hidden;
}

/* Animated top glow */
.prediction-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 70%;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        #35e58c,
        #00d9ff,
        transparent
    );

    animation: predictionScan 3s linear infinite;
}

@keyframes predictionScan {

    0% {
        left: -70%;
    }

    100% {
        left: 120%;
    }
}

/* Prediction */
#currentPrediction {
    display: inline-block;
    transition: transform .35s ease, text-shadow .35s ease;
    animation: predictionPulse 1.8s ease-in-out infinite;
}

@keyframes predictionPulse {

    0%, 100% {
        transform: scale(1);
        text-shadow:
            0 0 8px rgba(53,229,140,.25);
    }

    50% {
        transform: scale(1.04);
        text-shadow:
            0 0 12px rgba(53,229,140,.55),
            0 0 24px rgba(0,217,255,.20);
    }

}

.prediction-change {
    animation:
        predictionChange .55s ease,
        predictionPulse 1.8s ease-in-out infinite;
}

@keyframes predictionChange {

    0% {
        transform: scale(.92);
        opacity: .4;
    }

    60% {
        transform: scale(1.10);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }

}

@keyframes predictionPulse {

    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 8px rgba(53,229,140,.25);
    }

    50% {
        transform: scale(1.04);
        text-shadow:
            0 0 12px rgba(53,229,140,.55),
            0 0 24px rgba(0,217,255,.20);
    }
}

/* Prediction change flash */
.prediction-change {
    animation: predictionChange .55s ease;
}

@keyframes predictionChange {

    0% {
        transform: scale(.92);
        opacity: .4;
    }

    60% {
        transform: scale(1.10);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Countdown */
#countdownTimer {
    transition: all .3s ease;
}

.countdown-active {
    animation: countdownPulse 1s ease-in-out infinite;
}

@keyframes countdownPulse {

    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.08);
        opacity: .75;
    }
}