/* ============================================================
   KARANLIK MOD — VipLisans Design System katmanı
   Nötr kömür paleti (mavi ton yok) + turuncu vurgu.
   Yalnızca body.dark-mode'da çalışır; açık moda dokunmaz.
   `:not(#_)` seçiciye id ağırlığı katar → sayfa içi stillerin
   yüklenme sırasından bağımsız olarak bu katman geçerli olur.

     zemin     #0a0a0a   kart     #141414   yumuşak  #1c1c1c
     yumuşak-2 #232323   çizgi    rgba(255,255,255,.07)
     yazı      #f2f2f2   ikincil  #8c8c8c   soluk    #5e5e5e
   ============================================================ */

body.dark-mode:not(#_) {
    --pv-bg: #0a0a0a; --pv-card: #141414; --pv-soft: #1c1c1c; --pv-line: rgba(255, 255, 255, .07);
    --pv-ink: #f2f2f2; --pv-muted: #8c8c8c; --pv-subtle: #5e5e5e; --pv-o-soft: rgba(255, 100, 23, .14);
    --hd-bg: #0a0a0a; --hd-card: #141414; --hd-soft: #1c1c1c; --hd-soft-2: #232323; --hd-line: rgba(255, 255, 255, .07);
    --hd-ink: #f2f2f2; --hd-muted: #8c8c8c; --hd-o-soft: rgba(255, 100, 23, .14);
    background-color: #0a0a0a;
    color-scheme: dark;
}

/* ── Öne çıkan koyu kutular: lacivert degrade yerine nötr, hafif yükseltilmiş ── */
body.dark-mode:not(#_) :is(.gv-intro, .lw, .vp-wheel, .ab-dark, .cp-hero, .games-hero, .ct-feat--plus,
    .ocm-user-card, .um-level, .pd2-lp, .au-side, .vl-page-hero, .bd-cta) {
    background-color: #161616;
    background-image:
        radial-gradient(60% 90% at 100% 0%, rgba(255, 100, 23, .30), transparent 60%),
        radial-gradient(50% 70% at 0% 100%, rgba(255, 100, 23, .10), transparent 60%),
        linear-gradient(135deg, #171717, #1f1f1f);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
body.dark-mode:not(#_) .bn--dark {
    background-color: #161616;
    background-image:
        radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--bn-a) 34%, transparent), transparent 60%),
        radial-gradient(50% 70% at 0% 100%, color-mix(in srgb, var(--bn-a) 12%, transparent), transparent 60%),
        linear-gradient(135deg, #171717, #1f1f1f);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
body.dark-mode:not(#_) .cp-chan {
    background-image:
        radial-gradient(60% 120% at 100% 0%, rgba(31, 174, 85, .30), transparent 60%),
        radial-gradient(50% 90% at 0% 100%, rgba(255, 100, 23, .14), transparent 60%),
        linear-gradient(135deg, #171717, #1f1f1f);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
body.dark-mode:not(#_) .bd-prose pre { background: #101010; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }

/* ── Bileşen token aileleri ── */
body.dark-mode:not(#_) footer.ft {
    --ft-bg: #0a0a0a; --ft-soft: #1c1c1c; --ft-line: rgba(255, 255, 255, .07);
    --ft-ink: #f2f2f2; --ft-muted: #8c8c8c; --ft-subtle: #5e5e5e;
}
body.dark-mode:not(#_) .pc {
    --pc-card: #141414; --pc-soft: #1c1c1c; --pc-line: rgba(255, 255, 255, .07);
    --pc-ink: #f2f2f2; --pc-muted: #8c8c8c; --pc-subtle: #5e5e5e;
}
body.dark-mode:not(#_) .bn-wrap {
    --bn-a-soft: color-mix(in srgb, var(--bn-a) 16%, #141414);
    --bn-card: #141414; --bn-soft: #1c1c1c; --bn-line: rgba(255, 255, 255, .07);
    --bn-ink: #f2f2f2; --bn-muted: #8c8c8c; --bn-subtle: #5e5e5e;
}

/* Birincil koyu butonlar karanlıkta beyaz (referans: beyaz "Invite user" butonu) */
body.dark-mode:not(#_) .d-btn--dark { background: #f2f2f2; color: #0a0a0a; }
body.dark-mode:not(#_) .d-btn--dark:hover { background: #fff; color: #0a0a0a; }
body.dark-mode:not(#_) .d-btn--light { background: #1c1c1c; color: #f2f2f2; }
body.dark-mode:not(#_) .d-btn--light:hover { background: #232323; color: #f2f2f2; }

/* Seçili hap/segmentler: beyaz zemin, siyah yazı */
body.dark-mode:not(#_) :is(.pv-seg button[aria-selected="true"], .pr-filters .pr-filter.is-active, .bl-chip.is-active, .bl-pages .is-active) { background: #f2f2f2; border-color: #f2f2f2; color: #0a0a0a; }

/* Ürün görselleri: açık zeminli kutu görselleri karanlıkta parlamasın */
body.dark-mode:not(#_) :is(.pc-img, .pr-img) { background: #1c1c1c; }

/* Kaydırma çubuğu */
body.dark-mode:not(#_) { scrollbar-color: #2a2a2a #0a0a0a; }

/* Zemini "ink" (karanlıkta neredeyse beyaz) olan öğelerde yazı/ikon siyah olmalı */
body.dark-mode:not(#_) :is(.d-ico, .gv-review__av, .d-avatar, .pv-tbtn--o, .pd2-review__who > span, .pr-preview__ico) { color: #0a0a0a; }
body.dark-mode:not(#_) .gv-plat:hover .gv-plat__go,
body.dark-mode:not(#_) .ab-cat:hover .ab-cat__go,
body.dark-mode:not(#_) .ct-ch:hover .ct-ch__go,
body.dark-mode:not(#_) .ocm-cat-item:hover .ocm-cat-arrow { color: #0a0a0a; }

/* Plus Kampanyaları — "PLUS'a katıl" kartı karanlıkta da turuncu kalsın */
body.dark-mode:not(#_) .cpc-vis--join { background: radial-gradient(80% 100% at 50% 45%, #ff8a3d 0%, #ff6417 45%, #c8410a 100%); }

/* ── Profil sayfası ── */
body.dark-mode:not(#_) .profile-hero { background-color: #141414; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
body.dark-mode:not(#_) .profile-hero-overlay { background: linear-gradient(to top, rgba(10,10,10,.92) 0%, rgba(10,10,10,.15) 100%); }
body.dark-mode:not(#_) :is(.profile-sidebar-card, .profile-settings-card) { background: #141414; border-color: rgba(255,255,255,.07); box-shadow: none; color: #f2f2f2; }
body.dark-mode:not(#_) :is(.profile-settings-title, .profile-sidebar-card h5, .profile-sidebar-card h4, .profile-sidebar-card b) { color: #f2f2f2; }
body.dark-mode:not(#_) :is(.profile-settings-sub, .profile-sidebar-meta, .profile-sidebar-stat, .profile-section-label, .form-text) { color: #8c8c8c; }
body.dark-mode:not(#_) .profile-sidebar-divider { border-color: rgba(255,255,255,.07); }
body.dark-mode:not(#_) .profile-tabs .nav-tabs { border-color: rgba(255,255,255,.07); }
body.dark-mode:not(#_) .profile-tabs .nav-tabs .nav-link { color: #8c8c8c; background: transparent; }
body.dark-mode:not(#_) .profile-tabs .nav-tabs .nav-link:hover { color: #f2f2f2; }
body.dark-mode:not(#_) .profile-tabs .nav-tabs .nav-link.active { color: #ff6417; }
body.dark-mode:not(#_) .profile-form-group .form-control { background: #1c1c1c; border-color: rgba(255,255,255,.08); color: #f2f2f2; }
body.dark-mode:not(#_) .profile-form-group .form-control:disabled { background: #171717; color: #8c8c8c; }
body.dark-mode:not(#_) .profile-avatar-grid { background: #1c1c1c; border-color: rgba(255,255,255,.07); }

/* ── Siparişlerim ── */
body.dark-mode:not(#_) :is(.so-empty, .so-card) { background: #141414; border-color: rgba(255,255,255,.07); box-shadow: none; color: #f2f2f2; }
body.dark-mode:not(#_) .so-card-header { background: #171717; border-color: rgba(255,255,255,.07); }
body.dark-mode:not(#_) :is(.so-product-name, .so-order-no, .so-header h1, .so-header h2) { color: #f2f2f2; }
body.dark-mode:not(#_) :is(.so-date, .step-label) { color: #8c8c8c; }
body.dark-mode:not(#_) :is(.so-delivery-box, .so-preparing-box, .so-failed-box) { background: #1c1c1c; border-color: rgba(255,255,255,.07); color: #e5e5e5; }
body.dark-mode:not(#_) .step-dot { background: #1c1c1c; border-color: rgba(255,255,255,.12); }
body.dark-mode:not(#_) .so-product-img { background: #1c1c1c; }

/* ── Bootstrap genel parçalar ── */
body.dark-mode:not(#_) .breadcrumb-item, body.dark-mode:not(#_) .breadcrumb-item a { color: #8c8c8c; }
body.dark-mode:not(#_) .breadcrumb-item.active { color: #5e5e5e; }
body.dark-mode:not(#_) .breadcrumb-item + .breadcrumb-item::before { color: #5e5e5e; }
body.dark-mode:not(#_) .btn-light { background: #1c1c1c; border-color: rgba(255,255,255,.08); color: #f2f2f2; }
body.dark-mode:not(#_) .btn-light:hover { background: #232323; color: #fff; }
body.dark-mode:not(#_) :is(.form-control, .form-select):not(.bs-in) { background-color: #1c1c1c; border-color: rgba(255,255,255,.08); color: #f2f2f2; }
body.dark-mode:not(#_) :is(.form-control, .form-select)::placeholder { color: #5e5e5e; }
body.dark-mode:not(#_) .form-control:focus { background-color: #1c1c1c; border-color: #ff6417; box-shadow: 0 0 0 3px rgba(255,100,23,.18); color: #f2f2f2; }

/* ── Sepet (cart.css) & Ödeme (checkout.css) ── */
body.dark-mode:not(#_) {
    --ct-bg: #0a0a0a; --ct-white: #141414; --ct-border: rgba(255,255,255,.08); --ct-text: #f2f2f2; --ct-muted: #8c8c8c;
    --ct-shadow: none; --ct-shadow-lg: none;
    --ck-bg: #0a0a0a; --ck-white: #141414; --ck-border: rgba(255,255,255,.08); --ck-text: #f2f2f2; --ck-muted: #8c8c8c;
    --ck-shadow: none; --ck-shadow-lg: none;
}
body.dark-mode:not(#_) :is(.ct-item__img, .ct-qty, .ct-coupon, .ct-empty__icon, .ck-pay-option__icon, .ck-summary-item img) { background: #1c1c1c; border-color: rgba(255,255,255,.08); }
body.dark-mode:not(#_) .ct-qty__btn:hover { background: #2a2a2a; box-shadow: none; }
body.dark-mode:not(#_) .ct-coupon:focus-within { background: #1c1c1c; }
body.dark-mode:not(#_) :is(.ct-coupon input, .ck-coupon input, .ck-input) { background: #1c1c1c; color: #f2f2f2; border-color: rgba(255,255,255,.08); }
body.dark-mode:not(#_) .ck-input::placeholder, body.dark-mode:not(#_) .ck-coupon input::placeholder, body.dark-mode:not(#_) .ct-coupon input::placeholder { color: #5e5e5e; }
body.dark-mode:not(#_) .ct-btn-secondary:hover { background: #1c1c1c; }
body.dark-mode:not(#_) .ck-pay-option:hover { background: #171717; border-color: rgba(255,255,255,.14); }
body.dark-mode:not(#_) .ck-pay-option.selected { background: rgba(255,100,23,.08); }
body.dark-mode:not(#_) .ck-pay-option.selected .ck-pay-option__icon { background: rgba(255,100,23,.16); }
body.dark-mode:not(#_) .ck-pay-info.wa { background: rgba(22,163,74,.1); color: #86efac; border-color: rgba(22,163,74,.25); }
body.dark-mode:not(#_) .ck-pay-info.card { background: rgba(59,130,246,.1); color: #93c5fd; border-color: rgba(59,130,246,.25); }
body.dark-mode:not(#_) .ck-coupon-btn:not(.remove) { background: #f2f2f2; color: #0a0a0a; }
body.dark-mode:not(#_) .ck-coupon-btn:not(.remove):hover { background: #fff; }
body.dark-mode:not(#_) :is(.ct-coupon-btn.remove, .ck-coupon-btn.remove) { background: rgba(229,72,77,.14); color: #fca5a5; }
body.dark-mode:not(#_) .ck-shopier-box { background: #141414; }
body.dark-mode:not(#_) .ck-shopier-notice { background: rgba(255,100,23,.08); border-color: rgba(255,100,23,.2); color: #ffb48d; }
body.dark-mode:not(#_) .ck-shopier-footer { background: #101010; border-color: rgba(255,255,255,.07); }

/* Oyunlar sayfasındaki eski tip ürün kartı: fırsat fiyat kutusu */
body.dark-mode:not(#_) .product-card .price-container { background: transparent; }
body.dark-mode:not(#_) .ct-coupon-btn:not(.remove) { background: #f2f2f2; color: #0a0a0a; }
body.dark-mode:not(#_) .ct-coupon-btn:not(.remove):hover { background: #fff; }
/* "Sepeti Temizle" (satır içi açık zemin) */
body.dark-mode:not(#_) button[onclick="clearAllCart()"] { background: rgba(229,72,77,.14) !important; color: #fca5a5 !important; }
