/* === Disneybet Ana Sayfa Widget Düzeni (görsel,arikan_SetItem) === */
/* 1) OYUNLAR (crashgame) widgeti altına "Sizin için seçtiklerimiz" (AiPromotedGames) gelsin
      → OYUNLAR > AiPromotedGames sıralamasını koruyun, ona braking/solid look verin */
#root .hm-row-bc#db-crash-games-web,
#root .hm-row-bc[data-row-id="db-crash-games-web"],
#root .row-bc[id="db-crash-games-web"] {
    order: 0 !important;     /* OYUNLAR grubunun altı hazırlık, sıralama CSS ile ayarlanıyor */
    flex: 1 1 100% !important;
}

#root .hm-row-bc#db-ai-promoted-games-web,
#root .hm-row-bc[data-row-id="db-ai-promoted-games-web"],
#root .row-bc[id="db-ai-promoted-games-web"] {
    order: 1 !important;     /* "Sizin için seçtiklerimiz", OYUNLAR hemen altına */
    flex: 1 1 100% !important;
}

/* OYUNLAR > AiPromotedGames bloğunun daha "düz/temiz" durmasını sağla */
#root .hm-row-bc#db-crash-games-web .col-bc,
#root .hm-row-bc[data-row-id="db-crash-games-web"] .col-bc,
#root .row-bc[id="db-crash-games-web"] .col-bc,
#root .hm-row-bc#db-ai-promoted-games-web .col-bc,
#root .hm-row-bc[data-row-id="db-ai-promoted-games-web"] .col-bc,
#root .row-bc[id="db-ai-promoted-games-web"] .col-bc {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* AiPromotedGames kartlar arası boşluk + temiz border/shadow */
#root .hm-row-bc#db-ai-promoted-games-web .products-grid-bc,
#root .hm-row-bc[data-row-id="db-ai-promoted-games-web"] .products-grid-bc,
#root .row-bc[id="db-ai-promoted-games-web"] .products-grid-bc {
    gap: 16px !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
}

/* Oyun kartı görünümünü daha düzgün (görsel/kart padding ayarları) */
#root .hm-row-bc#db-ai-promoted-games-web .product-card-bc,
#root .hm-row-bc[data-row-id="db-ai-promoted-games-web"] .product-card-bc,
#root .row-bc[id="db-ai-promoted-games-web"] .product-card-bc {
    min-height: 260px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: transparent !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
#root .hm-row-bc#db-ai-promoted-games-web .product-card-bc:hover,
#root .hm-row-bc[data-row-id="db-ai-promoted-games-web"] .product-card-bc:hover,
#root .row-bc[id="db-ai-promoted-games-web"] .product-card-bc:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4) !important;
}

/* (İsteğe bağlı) Kazançlar kartı (BigWinReplays) Slot için sıralama */
#root .hm-row-bc#-9999e5b3d2cWINNERS,
#root .hm-row-bc[data-row-id="-9999e5b3d2cWINNERS"],
#root .row-bc[id="-9999e5b3d2cWINNERS"] {
    order: 3 !important;
    flex: 1 1 100% !important;
}

/* 3) CANLI CASINO widgetinde oyun resimleri gelmiyorsa, img/iframe placeholder’ları zorla */
#root .hm-row-bc#db-live-casino-games-web .game-item-bc img,
#root .hm-row-bc[data-row-id="db-live-casino-games-web"] .game-item-bc img,
#root .row-bc[id="db-live-casino-games-web"] .game-item-bc img,
#root .hm-row-bc#db-live-casino-games-web .game-thumb-bc img,
#root .hm-row-bc[data-row-id="db-live-casino-games-web"] .game-thumb-bc img,
#root .row-bc[id="db-live-casino-games-web"] .game-thumb-bc img,
#root .hm-row-bc#db-live-casino-games-web .game-media-bc img,
#root .hm-row-bc[data-row-id="db-live-casino-games-web"] .game-media-bc img,
#root .row-bc[id="db-live-casino-games-web"] .game-media-bc img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    min-height: 120px !important;
    background: #0f0f12 !important;
}

/* Canlı casino kartı görsel alanı garantisi */
#root .hm-row-bc#db-live-casino-games-web .casino-game-item-bc .game-preview-bc,
#root .hm-row-bc[data-row-id="db-live-casino-games-web"] .casino-game-item-bc .game-preview-bc,
#root .row-bc[id="db-live-casino-games-web"] .casino-game-item-bc .game-preview-bc {
    background-color: #0f0f12 !important;
    position: relative !important;
}

/* Canlı casino widget kartları için kart çerçevesi/işaretleme (oyun resim görünümü) */
#root .hm-row-bc#db-live-casino-games-web .hm-casino-card-bc,
#root .hm-row-bc[data-row-id="db-live-casino-games-web"] .hm-casino-card-bc,
#root .row-bc[id="db-live-casino-games-web"] .hm-casino-card-bc {
    border-radius: 10px !important;
    overflow: hidden !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Desktop da OYUNLAR + AiPromotedGames alanı en az 2 sütun dursa bile temiz kalır */
@media (min-width: 992px) {
    #root .layout-content-holder-bc > .hm-row-bc#db-crash-games-web,
    #root .layout-content-holder-bc > .hm-row-bc[data-row-id="db-crash-games-web"] {
        margin-bottom: 16px !important;
    }
    #root .layout-content-holder-bc > .hm-row-bc#db-ai-promoted-games-web,
    #root .layout-content-holder-bc > .hm-row-bc[data-row-id="db-ai-promoted-games-web"] {
        margin-bottom: 24px !important;
    }
}

/* ════════ Hesap doğrulama (PROFİLİM) — doğrulama butonları + yükleme formu düzeltmeleri ════════ */

/* 1) 'Hesabı Doğrula' sayfası: Verify butonunun kaymasını önle — footer sağa hizalı, tek satır */
.u-i-edit-verify-account-page-bc .u-i-p-c-footer-bc-verify,
.u-i-edit-verify-account-page-bc .u-i-edit-verify-account-page-inner .u-i-p-c-footer-bc {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.u-i-edit-verify-account-page-bc .btn.big-btn,
.u-i-edit-verify-account-page-bc .verify-form .btn {
    min-width: 150px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* 2) Kimlik belgesi formu: seçici ve dosya alanı alt alta, tam genişlik (kayma/DOM kaydırma olmasın) */
.u-i-edit-verify-account-page-bc .verify-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.u-i-edit-verify-account-page-bc .verify-form .u-i-p-control-item-holder-bc {
    margin-bottom: 0;
    width: 100%;
}

/* 3) Yüklenen belge listesi başlığı ve tablo başlıkları orijinal düzeninde kalsın (kaymasın) */
.u-i-edit-verify-account-page-bc .u-i-e-v-a-t-title-bc {
    margin-top: 12px;
}

/* ════════ 4) 'Hesap Doğrulanmadı' kutusu (is_verified=0 → yr bileşeni) ════════
   Bu kutu .account-verified-info sarmalayıcını sahiptir ama içinde bc-i-verified yok.
   Doğrulanmış rozetin stiliyle karışmasın; tema uyumlu ayrı görünüm: */
html.is-web .account-verified-info:not(:has(.bc-i-verified)) .account-verified-edit-title {
    color: #ff5a6a;
}

html.is-web .account-verified-info:not(:has(.bc-i-verified)) .account-verified-edit-icon {
    color: #ff5a6a !important;
    font-size: 14px !important;
}

/* Kayma: ekranda soldan taşma yapmasın, satır tek dursun */
html.is-web .account-verified-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

html.is-web .account-verified-info .account-verified-edit-title {
    white-space: normal;
    word-break: break-word;
}

/* Sadece gerçek doğrulanmış rozet (.bc-i-verified) yeşil kalsın */
html.is-web .account-verified-info:has(.bc-i-verified) .account-verified-edit-icon {
    color: #7ee787 !important;
}

.user-profile-container .profile-identity-verification {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0;
}

.user-profile-container .profile-avatar-wrap {
    position: relative;
    flex: 0 0 auto;
}

.user-profile-container .profile-avatar-verification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border: 2px solid #17171a;
    border-radius: 50%;
    background: #2a7044;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.user-profile-container .is-unverified .profile-avatar-verification-badge {
    background: #b84b43;
}

.user-profile-container .profile-identity-verification .u-i-p-p-u-i-identifiers-bc {
    flex: 1 1 auto;
    min-width: 0;
}

.user-profile-container .profile-name-status-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: 7px;
    row-gap: 2px;
    min-width: 0;
}

.user-profile-container .profile-name-status-row .u-i-p-p-u-i-d-username-bc {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal !important;
}

.user-profile-container .profile-verification-status {
    flex: 0 0 auto;
    color: #7ee787 !important;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.user-profile-container .is-unverified .profile-verification-status {
    color: #ff7b76 !important;
}

.user-profile-container .profile-verification-link {
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
