
/* BETBIGO — TAM GÜNCEL SİYAH / KIRMIZI TEMA */

:root {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-synthesis: none;
    color-scheme: dark;

    --background: #0c0c0e;
    --background-secondary: #131315;
    --surface: #1b1b1e;
    --surface-card: #252528;
    --surface-hover: #303034;
    --surface-elevated: #29292d;
    --primary: #cb1523;
    --primary-hover: #e0202e;
    --primary-dark: #a9101b;
    --text-primary: #f3f3f4;
    --text-secondary: #c0c0c5;
    --text-muted: #96969e;
    --border: #39393e;
    --border-light: #49494e;
    --success: #2e9c67;
    --warning: #e2ad4d;
    --danger: #e3424d;

    --button-gradient: linear-gradient(
            110deg,
            #ab111d 0%,
            #c91623 55%,
            #d51b2a 100%
    );

    --blue-deep: #101012;
    --blue-mid: #242427;
    --blue-bright: #cb1523;

    color: var(--text-primary);
    background: var(--background);
}

/* GENEL */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    background: var(--background);
    scrollbar-color: #49494f #151517;
}

body {
    min-width: 300px;
    min-height: 100vh;
    margin: 0;
    color: var(--text-primary);

    background:
            radial-gradient(
                    ellipse 85% 52% at 50% -18%,
                    rgba(154, 26, 35, 0.12),
                    transparent 75%
            ),
            linear-gradient(
                    145deg,
                    #111113 0%,
                    #0b0b0d 65%,
                    #111113 100%
            );
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

button:focus-visible,
input:focus-visible {
    outline: 2px solid #ed606b;
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

::selection {
    background: #a71925;
    color: #ffffff;
}

/* ANA PANEL */

.app-shell {
    width: calc(100% - 28px);
    max-width: 1650px;
    margin: 30px auto 30px;
    overflow: hidden;
    border: 1px solid #303034;
    border-radius: 23px;
    background: var(--surface);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

/* ÜST MENÜ */

.topbar {
    min-height: 96px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    padding: 16px 35px 16px 37px;
    color: #ffffff;

    background: linear-gradient(
            103deg,
            #0b0b0c 0%,
            #141416 60%,
            #1b1b1d 100%
    );

    border-bottom: 2px solid #b01622;
}

.topbar-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 25px;
    min-width: 0;
}

.topbar-button {
    min-height: 65px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 10px 18px;
    color: #f4f4f5;
    border: 1px solid #414146;
    border-radius: 12px;

    background: linear-gradient(
            180deg,
            #303034 0%,
            #29292d 100%
    );

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;

    transition:
            background 0.2s ease,
            border-color 0.2s ease,
            transform 0.2s ease;
}

.topbar-button:hover {
    background: #37373b;
    border-color: #805058;
}

.topbar-button:active {
    transform: translateY(1px);
}

.topbar-button svg {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    color: #e7e7e9;
}

.history-trigger {
    min-width: 320px;
}

.rules-trigger {
    min-width: 399px;
}

.history-count {
    margin-left: 1px;
    color: #f18a92;
    font-weight: 700;
}

/* KULLANICI */

.account {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #f6f6f6;
    font-size: 23px;
    font-weight: 700;
    white-space: nowrap;
}

.account svg {
    width: 42px;
    height: 42px;
}

.account svg circle:first-child {
    fill: #39393d;
}

.account svg circle:nth-child(2),
.account svg path {
    fill: #ededee;
}

/* BONUS ALANI */

.bonus-content {
    min-height: 596px;
    padding: 37px 43px 70px;
    background: #19191b;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 17px;
    margin: 0 0 27px;
    color: #f1f1f2;
    font-size: 21px;
    font-weight: 600;
    line-height: 31px;
    letter-spacing: -0.1px;
}

.section-heading svg {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    color: #e3e3e5;
}

.bonus-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

/* BONUS KARTLARI */

.bonus-card {
    position: relative;
    height: 208px;
    min-width: 0;
    padding: 18px 16px 16px;
    border: 1px solid #3b3b40;
    border-radius: 17px;

    background: linear-gradient(
            150deg,
            #27272a 0%,
            #222225 100%
    );

    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.18);

    transition:
            box-shadow 0.2s ease,
            border-color 0.2s ease,
            background 0.2s ease;
}

.bonus-card:hover {
    border-color: #875158;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.bonus-card.is-selected {
    border-color: #d42735;

    background: linear-gradient(
            150deg,
            #302529 0%,
            #262225 100%
    );

    box-shadow:
            0 0 0 1px rgba(212, 39, 53, 0.20),
            0 5px 15px rgba(0, 0, 0, 0.24);
}

.bonus-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    padding-right: 50px;
}

.bonus-gift-icon {
    flex: 0 0 35px;
    width: 35px;
    height: 35px;
    margin-top: -1px;
    color: #e8e8ea;
}

.bonus-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    margin: 2px 0 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    color: #f2f2f3;
    font-size: 20px;
    line-height: 29px;
    font-weight: 600;
    letter-spacing: -0.1px;
}

/* BONUS SEÇME DAİRESİ */

.bonus-radio {
    position: absolute;
    top: 32px;
    right: 30px;
    width: 37px;
    height: 37px;
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    border: 2px solid #68686f;
    border-radius: 50%;
    background: #262629;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    cursor: pointer;

    transition:
            border-color 0.2s ease,
            background 0.2s ease;
}

.bonus-radio:hover {
    border-color: #c65e66;
}

.bonus-radio:checked {
    border-color: #e04350;
    background: #302528;
}

.bonus-radio:checked::after {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: #d91e2c;
}

/* TALEP ET BUTONU */

.detail-button {
    position: absolute;
    bottom: 18px;
    left: 16px;
    width: calc(100% - 32px);
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 10px;
    background: var(--button-gradient);
    color: #ffffff;
    font-size: 19px;
    font-weight: 700;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.22);

    transition:
            filter 0.2s ease,
            transform 0.2s ease;
}

.detail-button:hover {
    filter: brightness(1.10);
}

.detail-button:active {
    transform: translateY(1px);
}

/* YÜKLENME */

.loading-state,
.empty-state {
    grid-column: 1 / -1;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #bcbcc2;
    font-size: 17px;
    text-align: center;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #48484e;
    border-top-color: #d62735;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.preview-notice {
    margin-top: 18px;
    color: #a0a0a6;
    font-size: 13px;
}

/* AÇILIR PENCERE */

.site-dialog {
    width: min(530px, calc(100% - 28px));
    max-height: min(85vh, 720px);
    padding: 0;
    border: 1px solid #49494e;
    border-radius: 20px;
    color: #ebebef;
    background: #202023;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.60);
}

.site-dialog::backdrop {
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(3px);
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 20px 22px;
    color: #ffffff;
    background: #141416;
    border-bottom: 2px solid #b91b28;
}

.dialog-header h2 {
    margin: 0;
    color: #fafafa;
    font-size: 21px;
    line-height: 1.3;
}

.dialog-close {
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: #e4e4e6;
    font-size: 34px;
    line-height: 1;
    transition: color 0.2s ease;
}

.dialog-close:hover {
    color: #ffffff;
}

.dialog-content {
    max-height: 55vh;
    overflow: auto;
    padding: 25px 22px;
    color: #d6d6dc;
    font-size: 15px;
    line-height: 1.6;
}

.dialog-content p {
    margin: 0 0 12px;
}

.dialog-content p:last-child {
    margin-bottom: 0;
}

.dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px 21px;
    background: #202023;
}

.dialog-footer:empty {
    display: none;
}

/* PENCERE BUTONLARI */

.primary-action,
.secondary-action {
    min-height: 44px;
    padding: 12px 20px;
    border-radius: 10px;
    border: 0;
    font-weight: 700;

    transition:
            filter 0.2s ease,
            background 0.2s ease;
}

.primary-action {
    color: #ffffff;
    background: var(--button-gradient);
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.20);
}

.primary-action:hover {
    filter: brightness(1.10);
}

.primary-action:disabled {
    opacity: 0.50;
    cursor: wait;
}

.secondary-action {
    color: #f2f2f2;
    background: #35353a;
    border: 1px solid #48484e;
}

.secondary-action:hover {
    background: #424247;
}

/* BONUS BİLGİLERİ */

.detail-name {
    margin-bottom: 18px !important;
    color: #f8f8f8;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 700;
}

.detail-info {
    color: #d2d2d8;
    white-space: pre-line;
    word-break: break-word;
}

.detail-label {
    display: inline-block;
    margin: 4px 0 7px;
    color: #b9b9bf;
    font-size: 13px;
    font-weight: 700;
}

.detail-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.detail-categories span {
    padding: 4px 11px;
    border-radius: 30px;
    color: #f0d7da;
    background: #43272d;
    font-size: 12px;
    font-weight: 600;
}

/* GEÇMİŞ TALEPLER */

.history-entry {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid #424247;
    border-radius: 13px;
    background: #2a2a2e;
}

.history-entry:last-child {
    margin-bottom: 0;
}

.history-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 6px;
}

.history-entry h3 {
    margin: 0;
    color: #f3f3f4;
    font-size: 15px;
    line-height: 1.45;
}

.history-entry time {
    display: block;
    margin-bottom: 6px;
    color: #aaaab0;
    font-size: 12px;
}

.history-entry p {
    color: #cbcbcf;
    font-size: 13px;
    overflow-wrap: anywhere;
}

/* TALEP DURUMLARI */

.status-badge {
    flex: 0 0 auto;
    padding: 6px 8px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 800;
}

.status-pending {
    color: #f5d891;
    background: #48391e;
}

.status-approved {
    color: #a4e9bf;
    background: #1e4434;
}

.status-cancelled {
    color: #ffafb5;
    background: #51272d;
}

/* BİLDİRİMLER */

.toast {
    position: fixed;
    z-index: 20;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: min(500px, calc(100% - 32px));
    padding: 14px 20px;
    border: 1px solid #505057;
    border-radius: 10px;
    color: #f8f8f8;
    background: #38383d;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.40);
}

.toast.is-error {
    background: #7e1b25;
    border-color: #b12c38;
}

.toast.is-success {
    background: #22533d;
    border-color: #397b5a;
}

/* KULLANICI GİRİŞİ */

.identity-gate {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 25px;
}

.identity-panel {
    width: min(100%, 450px);
    padding: 33px;
    border: 1px solid #3d3d42;
    border-radius: 22px;
    background: #1f1f22;
    box-shadow: 0 20px 65px rgba(0, 0, 0, 0.42);
}

.identity-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border: 1px solid #553137;
    border-radius: 14px;
    color: #e54a55;
    background: #38262a;
}

.identity-icon svg {
    width: 29px;
    height: 29px;
}

.identity-panel h1 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
}

.identity-panel p {
    margin: 0 0 21px;
    color: #bebec4;
    line-height: 1.6;
}

#username-form {
    display: grid;
    gap: 10px;
}

#username-form label {
    color: #ededf0;
    font-size: 14px;
    font-weight: 700;
}

#username-form input {
    width: 100%;
    height: 46px;
    padding: 0 12px;
    border: 1px solid #4b4b51;
    border-radius: 9px;
    outline: none;
    color: #f8f8f8;
    background: #2b2b2f;

    transition:
            border-color 0.2s ease,
            box-shadow 0.2s ease;
}

#username-form input::placeholder {
    color: #9b9ba3;
}

#username-form input:focus {
    border-color: #d02c39;
    box-shadow: 0 0 0 3px rgba(208, 44, 57, 0.13);
}

#username-form button {
    margin-top: 8px;
}

.captcha-container {
    min-height: 90px;
}

.gate-hint {
    margin-top: 13px !important;
    color: #bcbcc2;
    font-size: 13px;
}

.gate-error {
    margin-top: 12px !important;
    color: #ff9fa7 !important;
    font-size: 13px;
}

/* TABLET */

@media (max-width: 1250px) {
    .bonus-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .topbar-button {
        font-size: 16px;
        min-width: 0;
    }

    .account {
        font-size: 18px;
    }

    .rules-trigger,
    .history-trigger {
        min-width: 0;
    }

    .topbar {
        gap: 12px;
    }
}

@media (max-width: 900px) {
    .bonus-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topbar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .topbar-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .topbar-button {
        min-height: 50px;
    }

    .bonus-content {
        padding: 27px 25px 48px;
    }
}

/* MOBİL */

@media (max-width: 560px) {
    .app-shell {
        width: calc(100% - 20px);
        margin-top: 10px;
        border-radius: 16px;
    }

    .topbar {
        padding: 16px 12px;
        border-bottom-width: 2px;
    }

    .topbar-right {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
    }

    .topbar-button {
        min-height: 48px;
        padding: 9px 10px;
        gap: 7px;
        border-radius: 9px;
        font-size: 13px;
    }

    .topbar-button svg {
        width: 23px;
        height: 23px;
        flex-basis: 23px;
    }

    .history-trigger {
        width: 100%;
    }

    .rules-trigger {
        width: 100%;
        min-width: 0;
        flex: none;
        justify-content: flex-start;
        text-align: left;
        line-height: 1.35;
        white-space: normal;
    }

    .rules-trigger span {
        overflow-wrap: break-word;
    }

    .account {
        min-width: 0;
        gap: 6px;
        font-size: 15px;
    }

    .account svg {
        width: 30px;
        height: 30px;
    }

    .account span {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .section-heading {
        gap: 12px;
        font-size: 17px;
    }

    .section-heading svg {
        width: 24px;
        height: 24px;
    }

    .bonus-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .bonus-card {
        height: 188px;
        border-radius: 14px;
    }

    .bonus-title {
        font-size: 18px;
    }

    .bonus-content {
        padding: 24px 16px 46px;
    }

    .site-dialog {
        border-radius: 14px;
    }

    .identity-panel {
        padding: 27px 21px;
    }
}

@media (max-width: 375px) {
    .topbar {
        padding: 12px 10px;
    }

    .topbar-button {
        font-size: 12px;
    }

    .account {
        font-size: 13px;
    }

    .account svg {
        width: 26px;
        height: 26px;
    }

    .bonus-card-heading {
        gap: 12px;
    }

    .bonus-radio {
        right: 18px;
    }

    .bonus-title {
        font-size: 17px;
        line-height: 25px;
    }

    .detail-button {
        font-size: 17px;
    }
}

/* HAREKET AZALTMA */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* GEÇMİŞ TALEPLER — AÇIKLAMA */

.history-answer-box {
    margin-top: 10px;
    overflow-wrap: anywhere;
}

.history-answer-box p {
    margin: 0;
    color: #d5d5da;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-line;
}

/* ÇARK KODU */

.history-code {
    color: #ff5868;
    font-size: 16px;
    font-weight: 800;
}

/* ÇARK BUTONU — SADECE YAZI */

.history-wheel-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 16px;
    padding: 12px 16px;

    border: 1px solid #da2332;
    border-radius: 10px;

    color: #ffffff !important;

    background: linear-gradient(
            110deg,
            #ae111e 0%,
            #d21828 100%
    );

    font-size: 14px;
    font-weight: 800;
    text-align: center;
    text-decoration: none !important;

    transition:
            background 0.2s ease,
            transform 0.2s ease;
}

.history-wheel-link:hover {
    background: #e02030;
    transform: translateY(-1px);
}

.history-wheel-link:focus-visible {
    outline: 2px solid #ff7480;
    outline-offset: 3px;
}

.history-wheel-link::before,
.history-wheel-link::after {
    content: none;
}
