* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #080d19;
    color: #ffffff;
}

.auth-page {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 25px;

    background:
        radial-gradient(
            circle at top left,
            #18214b,
            transparent 35%
        ),
        radial-gradient(
            circle at bottom right,
            #341d52,
            transparent 35%
        ),
        #080d19;
}

.auth-card {
    width: 100%;
    max-width: 430px;

    padding: 35px;

    background: rgba(255, 255, 255, 0.06);

    border: 1px solid rgba(255, 255, 255, 0.10);

    border-radius: 24px;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.35);

    backdrop-filter: blur(15px);
}

.logo {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 25px;

    border-radius: 16px;

    font-size: 24px;
    font-weight: bold;

    background:
        linear-gradient(
            135deg,
            #7367ff,
            #a95fff
        );
}

.auth-card h1 {
    font-size: 30px;
    margin-bottom: 8px;
}

.subtitle {
    color: #99a4b8;
    margin-bottom: 15px;
}

.demo-label {
    display: inline-block;

    padding: 7px 12px;

    margin-bottom: 25px;

    border-radius: 30px;

    font-size: 10px;
    font-weight: bold;

    letter-spacing: 1px;

    color: #54daa7;

    background:
        rgba(84, 218, 167, 0.10);

    border:
        1px solid
        rgba(84, 218, 167, 0.20);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;
    font-weight: bold;

    color: #c8cfdd;
}

.form-group input {
    width: 100%;

    padding: 14px 15px;

    border-radius: 12px;

    border:
        1px solid
        rgba(255, 255, 255, 0.10);

    background:
        rgba(255, 255, 255, 0.05);

    color: white;

    outline: none;

    font-size: 14px;
}

.form-group input:focus {
    border-color: #7468ff;
}

.form-group input::placeholder {
    color: #677086;
}

.primary-button {
    width: 100%;

    padding: 14px;

    margin-top: 5px;

    border: none;
    border-radius: 12px;

    cursor: pointer;

    color: white;

    font-size: 14px;
    font-weight: bold;

    background:
        linear-gradient(
            135deg,
            #7367ff,
            #a95fff
        );
}

.primary-button:hover {
    opacity: 0.92;
}

.message {
    padding: 12px 14px;

    margin-bottom: 20px;

    border-radius: 10px;

    font-size: 13px;
}

.message.error {
    color: #ff9da8;

    background:
        rgba(255, 80, 100, 0.10);

    border:
        1px solid
        rgba(255, 80, 100, 0.20);
}

.message.success {
    color: #62ddb0;

    background:
        rgba(70, 220, 160, 0.10);

    border:
        1px solid
        rgba(70, 220, 160, 0.20);
}

.bottom-text {
    margin-top: 25px;

    text-align: center;

    color: #8f99ac;

    font-size: 13px;
}

.bottom-text a {
    color: #9c91ff;
    text-decoration: none;
    font-weight: bold;
}

@media (max-width: 500px) {

    .auth-page {
        padding: 15px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .auth-card {
        padding: 25px 20px;
        border-radius: 18px;
    }

    .auth-card h1 {
        font-size: 26px;
    }

}
.dashboard-body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at top left,
            #18204a,
            transparent 30%
        ),
        radial-gradient(
            circle at bottom right,
            #30194d,
            transparent 30%
        ),
        #080d19;

    color: white;
}


.dashboard-container {
    width: 100%;
    max-width: 1100px;

    margin: auto;

    padding: 30px 25px 60px;
}


.dashboard-header {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-bottom: 25px;
}


.welcome-small {
    color: #9099ae;

    font-size: 13px;

    margin-bottom: 5px;
}


.dashboard-header h2 {
    font-size: 24px;
}


.logout-button {
    padding: 10px 16px;

    border-radius: 10px;

    color: #ff9ba7;

    text-decoration: none;

    background:
        rgba(255, 90, 110, 0.09);

    border:
        1px solid
        rgba(255, 90, 110, 0.18);
}


.demo-warning {
    padding: 12px 16px;

    margin-bottom: 20px;

    border-radius: 12px;

    color: #5de0ad;

    font-size: 12px;
    font-weight: bold;

    background:
        rgba(70, 220, 160, 0.08);

    border:
        1px solid
        rgba(70, 220, 160, 0.15);
}


.wallet-main-card {
    padding: 30px;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            #6257e8,
            #8b4fe5
        );

    box-shadow:
        0 20px 50px
        rgba(80, 65, 200, 0.25);

    margin-bottom: 20px;
}


.wallet-main-card span {
    color:
        rgba(255, 255, 255, 0.75);

    font-size: 13px;
}


.wallet-main-card h1 {
    margin: 10px 0;

    font-size: 38px;
}


.wallet-main-card p {
    color:
        rgba(255, 255, 255, 0.75);

    font-size: 13px;
}


.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;
}


.stat-card {
    padding: 20px;

    border-radius: 16px;

    background:
        rgba(255, 255, 255, 0.05);

    border:
        1px solid
        rgba(255, 255, 255, 0.08);
}


.stat-card span {
    display: block;

    margin-bottom: 10px;

    color: #8f99ad;

    font-size: 12px;
}


.stat-card strong {
    font-size: 22px;
}


.dashboard-section {
    margin-top: 35px;
}


.section-heading small {
    color: #746dff;
}


.section-heading h3 {
    margin-top: 5px;

    font-size: 24px;
}


.game-modes {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;

    margin-top: 20px;
}


.game-mode-card {
    padding: 25px;

    border-radius: 20px;

    background:
        rgba(255, 255, 255, 0.05);

    border:
        1px solid
        rgba(255, 255, 255, 0.08);
}


.mode-time {
    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-radius: 15px;

    color: #aea7ff;

    background:
        rgba(116, 104, 255, 0.13);

    font-weight: bold;
}


.game-mode-card h3 {
    margin-bottom: 8px;
}


.game-mode-card p {
    color: #8f99ad;

    font-size: 13px;

    margin-bottom: 20px;
}


.game-mode-card button {
    width: 100%;

    padding: 11px;

    border: none;

    border-radius: 10px;

    color: #747d91;

    background:
        rgba(255, 255, 255, 0.05);
}


@media (max-width: 800px) {

    .stats-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .game-modes {
        grid-template-columns:
            1fr;
    }

}


@media (max-width: 450px) {

    .dashboard-container {
        padding:
            20px 15px 40px;
    }


    .wallet-main-card {
        padding: 22px;
    }


    .wallet-main-card h1 {
        font-size: 30px;
    }


    .stats-grid {
        gap: 10px;
    }


    .stat-card {
        padding: 16px;
    }


    .stat-card strong {
        font-size: 18px;
    }

}
.play-button {
    display: block;
    width: 100%;

    padding: 12px;

    border-radius: 10px;

    text-align: center;
    text-decoration: none;

    color: white;
    font-weight: bold;

    background:
        linear-gradient(
            135deg,
            #7367ff,
            #a95fff
        );
}
.game-body {

    min-height: 100vh;

    background:
        radial-gradient(
            circle at top left,
            #171f48,
            transparent 30%
        ),
        radial-gradient(
            circle at bottom right,
            #351d50,
            transparent 30%
        ),
        #080d19;

    color: white;
}


.game-container {

    width: 100%;
    max-width: 900px;

    margin: auto;

    padding:
        25px 20px 60px;
}


.game-header {

    display: grid;

    grid-template-columns:
        50px 1fr auto;

    gap: 15px;

    align-items: center;

    margin-bottom: 20px;
}


.back-button {

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 13px;

    color: white;

    text-decoration: none;

    background:
        rgba(255,255,255,0.06);

    border:
        1px solid
        rgba(255,255,255,0.08);
}


.game-header small {

    color: #8f99ad;

    font-size: 11px;
}


.game-header h3 {

    margin-top: 3px;

    font-size: 19px;
}


.game-wallet {

    padding: 11px 15px;

    border-radius: 12px;

    background:
        rgba(255,255,255,0.06);

    border:
        1px solid
        rgba(255,255,255,0.08);

    font-size: 13px;
}


.round-card {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    align-items: center;

    gap: 20px;

    padding: 25px;

    margin-top: 20px;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            #6257e8,
            #874bd9
        );

    box-shadow:
        0 20px 50px
        rgba(75, 60, 190, 0.22);
}


.period-info span,
.timer-area span {

    display: block;

    margin-bottom: 8px;

    color:
        rgba(255,255,255,0.70);

    font-size: 11px;
}


.period-info strong {

    font-size: 17px;

    letter-spacing: .5px;
}


.timer-area {

    text-align: right;
}


.countdown {

    font-size: 42px;

    font-weight: bold;

    letter-spacing: 2px;

    transition: .2s;
}


.timer-message {

    display: block;

    margin-top: 5px;

    color:
        rgba(255,255,255,.75);
}


.timer-danger {

    color: #ffd4d9;

    transform: scale(1.04);
}


.timer-message.locked {

    color: #ffd0d6;
}


.game-panel {

    margin-top: 20px;

    padding: 25px;

    border-radius: 22px;

    background:
        rgba(255,255,255,0.05);

    border:
        1px solid
        rgba(255,255,255,0.08);
}


.game-title-row small,
.selection-section > small,
.recent-placeholder small {

    color: #8f99ad;

    font-size: 11px;
}


.game-title-row h3,
.recent-placeholder h3 {

    margin-top: 5px;
}


.balls-grid {

    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    gap: 14px;

    margin-top: 25px;
}


.number-ball {

    aspect-ratio: 1;

    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 50%;

    cursor: pointer;

    color: white;

    font-size: 18px;

    font-weight: bold;

    transition:
        transform .2s,
        opacity .2s;

    box-shadow:
        inset 0 5px 10px
        rgba(255,255,255,.18),

        0 10px 22px
        rgba(0,0,0,.25);
}


.number-ball:hover {

    transform:
        translateY(-3px)
        scale(1.05);
}


.number-ball::after {

    content: "";

    position: absolute;

    width: 72%;
    height: 72%;

    border-radius: 50%;

    background:
        rgba(255,255,255,.09);

    border:
        1px solid
        rgba(255,255,255,.15);
}


.number-ball span {

    position: relative;

    z-index: 2;
}


.green-ball {

    background:
        linear-gradient(
            145deg,
            #23cb88,
            #08764e
        );
}


.red-ball {

    background:
        linear-gradient(
            145deg,
            #ff6171,
            #a92438
        );
}


.violet-ball {

    background:
        linear-gradient(
            145deg,
            #b56bff,
            #6633b5
        );
}


.selection-section {

    margin-top: 30px;
}


.size-buttons {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 15px;

    margin-top: 12px;
}


.prediction-button {

    padding: 18px;

    border: none;

    border-radius: 14px;

    cursor: pointer;

    color: white;

    font-weight: bold;

    font-size: 15px;

    transition: .2s;
}


.prediction-button span {

    display: block;

    margin-top: 5px;

    font-size: 10px;

    opacity: .7;
}


.big-button {

    background:
        linear-gradient(
            135deg,
            #ffad45,
            #df6b18
        );
}


.small-button {

    background:
        linear-gradient(
            135deg,
            #4f91ff,
            #3054c6
        );
}


.color-buttons {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;

    margin-top: 12px;
}


.color-predict {

    padding: 14px;

    border: none;

    border-radius: 12px;

    color: white;

    font-weight: bold;

    cursor: pointer;
}


.green-select {

    background: #19a96e;
}


.red-select {

    background: #dc4556;
}


.violet-select {

    background: #8650d5;
}


.prediction-disabled {

    pointer-events: none;

    opacity: .35;
}


.recent-placeholder {

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 20px;

    margin-top: 20px;

    padding: 22px;

    border-radius: 18px;

    background:
        rgba(255,255,255,.04);

    border:
        1px solid
        rgba(255,255,255,.07);
}


.recent-placeholder p {

    color: #858fa3;

    font-size: 12px;

    text-align: right;
}


.prediction-preview {

    position: fixed;

    inset: 0;

    z-index: 100;

    display: flex;

    align-items: flex-end;
    justify-content: center;

    padding: 20px;

    background:
        rgba(0,0,0,.60);

    opacity: 0;

    visibility: hidden;

    transition: .2s;
}


.prediction-preview.show {

    opacity: 1;

    visibility: visible;
}


.preview-card {

    width: 100%;
    max-width: 500px;

    position: relative;

    padding: 30px;

    border-radius:
        24px 24px 18px 18px;

    background: #111827;

    border:
        1px solid
        rgba(255,255,255,.10);

    transform:
        translateY(40px);

    transition: .25s;
}


.prediction-preview.show
.preview-card {

    transform:
        translateY(0);
}


.close-preview {

    position: absolute;

    top: 14px;
    right: 15px;

    width: 32px;
    height: 32px;

    border: none;

    border-radius: 50%;

    color: white;

    cursor: pointer;

    background:
        rgba(255,255,255,.08);

    font-size: 20px;
}


.preview-card small {

    color: #8c96aa;
}


.preview-card h2 {

    margin:
        12px 0;
}


.preview-card p {

    color: #8993a7;

    line-height: 1.6;

    font-size: 13px;

    margin-bottom: 20px;
}


@media (max-width: 650px) {

    .game-container {

        padding:
            15px 12px 40px;
    }


    .game-header {

        grid-template-columns:
            42px 1fr auto;

        gap: 10px;
    }


    .game-wallet {

        padding:
            9px 10px;

        font-size: 11px;
    }


    .round-card {

        padding: 20px;

        gap: 10px;
    }


    .countdown {

        font-size: 32px;
    }


    .period-info strong {

        font-size: 13px;
    }


    .game-panel {

        padding: 18px 14px;
    }


    .balls-grid {

        grid-template-columns:
            repeat(5, 1fr);

        gap: 10px;
    }


    .number-ball {

        font-size: 15px;
    }

}


@media (max-width: 390px) {

    .balls-grid {

        grid-template-columns:
            repeat(4, 1fr);
    }


    .round-card {

        grid-template-columns:
            1fr;
    }


    .timer-area {

        text-align: left;

        margin-top: 8px;
    }


    .color-buttons {

        grid-template-columns: 1fr;
    }

}
.modal-wallet {

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    margin:
        20px 0;

    padding:
        14px;

    border-radius:
        12px;

    color:
        #9ba5b8;

    background:
        rgba(255,255,255,.05);
}


.modal-wallet strong {

    color: white;
}


.modal-label {

    display: block;

    margin:
        15px 0 8px;

    color:
        #a7b0c2;

    font-size:
        12px;

    font-weight:
        bold;
}


.coin-input {

    width: 100%;

    padding:
        14px;

    border-radius:
        12px;

    border:
        1px solid
        rgba(255,255,255,.10);

    background:
        rgba(255,255,255,.05);

    color: white;

    outline: none;

    font-size:
        16px;
}


.coin-input:focus {

    border-color:
        #786cff;
}


.multiplier-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap:
        8px;
}


.multiplier {

    padding:
        11px 8px;

    border:
        1px solid
        rgba(255,255,255,.08);

    border-radius:
        10px;

    background:
        rgba(255,255,255,.05);

    color:
        #aeb7c8;

    cursor:
        pointer;
}


.multiplier.active {

    color:
        white;

    border-color:
        #776aff;

    background:
        rgba(119,106,255,.22);
}


.prediction-total {

    display: flex;

    justify-content:
        space-between;

    align-items:
        center;

    margin:
        20px 0;

    padding:
        16px;

    border-radius:
        13px;

    background:
        rgba(115,103,255,.10);

    border:
        1px solid
        rgba(115,103,255,.20);
}


.prediction-total span {

    color:
        #a5aec0;

    font-size:
        12px;
}


.prediction-total strong {

    font-size:
        18px;
}


.prediction-modal-message {

    margin-bottom:
        12px;

    font-size:
        12px;
}


.prediction-modal-message.error {

    padding:
        10px;

    border-radius:
        8px;

    color:
        #ff9ca7;

    background:
        rgba(255,80,100,.08);
}


.prediction-modal-message.success {

    padding:
        10px;

    border-radius:
        8px;

    color:
        #65deb1;

    background:
        rgba(70,220,160,.08);
}


@media (max-width: 430px) {

    .multiplier-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

}
.history-nav-button {
    display: inline-block;

    padding: 10px 15px;

    margin-right: 8px;

    border-radius: 10px;

    color: #aaa3ff;

    text-decoration: none;

    font-size: 11px;

    font-weight: 700;

    background:
        rgba(116,104,255,.09);

    border:
        1px solid
        rgba(116,104,255,.16);
}