﻿/**
 * Dominara oyun sayfaları — tam tema (başlık, buton, sekme, vurgu)
 * dominara-theme.ejs ile TÜM sayfa CSS'lerinden sonra yüklenir.
 */

/* ═══════════════════════════════════════════════════════════════
   TEMA DEĞİŞKENLERİ
   ═══════════════════════════════════════════════════════════════ */

body.takim-soygun-page {
    --dm-accent: #d49e35;
    --dm-accent-soft: #f4d38a;
    --dm-accent-deep: #b45309;
    --dm-gold: #d4af37;
    --dm-title-from: #d49e35;
    --dm-title-mid: #f4d38a;
    --dm-title-to: #ffffff;
    --dm-btn-from: #d49e35;
    --dm-btn-to: #b45309;
    --dm-btn-text: #fffbeb;
    --dm-btn-shadow: rgba(180, 83, 9, 0.4);
    --dm-btn-hover-shadow: rgba(212, 158, 53, 0.5);
    --dm-tab-hover: #fde68a;
}

body.slot-farm-page {
    --dm-accent: #1e4976;
    --dm-accent-soft: #d4af37;
    --dm-accent-deep: #0f2847;
    --dm-gold: #f4e4a6;
    --dm-title-from: #d4af37;
    --dm-title-mid: #f4e4a6;
    --dm-title-to: #ffffff;
    --dm-btn-from: #1e4976;
    --dm-btn-to: #0f2847;
    --dm-btn-mid: #d4af37;
    --dm-btn-text: #fffbeb;
    --dm-btn-shadow: rgba(15, 40, 71, 0.45);
    --dm-btn-hover-shadow: rgba(212, 175, 55, 0.4);
    --dm-tab-hover: #f4e4a6;
}

body.hanedanlar-page:not(.takim-soygun-page) {
    --dm-accent: #34d399;
    --dm-accent-soft: #6ee7b7;
    --dm-accent-deep: #047857;
    --dm-gold: #d4af37;
    --dm-title-from: #059669;
    --dm-title-mid: #34d399;
    --dm-title-to: #d4af37;
    --dm-btn-from: #059669;
    --dm-btn-to: #047857;
    --dm-btn-text: #ecfdf5;
    --dm-btn-shadow: rgba(5, 150, 105, 0.4);
    --dm-btn-hover-shadow: rgba(52, 211, 153, 0.45);
    --dm-tab-hover: #a7f3d0;
}

body.magaza-page {
    --dm-accent: #34d399;
    --dm-accent-soft: #6ee7b7;
    --dm-accent-deep: #047857;
    --dm-gold: #d4af37;
    --dm-title-from: #059669;
    --dm-title-mid: #34d399;
    --dm-title-to: #d4af37;
    --dm-btn-from: #059669;
    --dm-btn-to: #047857;
    --dm-btn-text: #ecfdf5;
    --dm-btn-shadow: rgba(5, 150, 105, 0.4);
    --dm-btn-hover-shadow: rgba(52, 211, 153, 0.45);
    --dm-tab-hover: #a7f3d0;
}

body.kahramanlar-page {
    --dm-accent: #cc5500;
    --dm-accent-soft: #ffd700;
    --dm-accent-deep: #9a3412;
    --dm-gold: #ffd700;
    --dm-title-from: #cc5500;
    --dm-title-mid: #ffd700;
    --dm-title-to: #ffffff;
    --dm-btn-from: #cc5500;
    --dm-btn-to: #9a3412;
    --dm-btn-text: #fffbeb;
    --dm-btn-shadow: rgba(154, 52, 18, 0.4);
    --dm-btn-hover-shadow: rgba(204, 85, 0, 0.45);
    --dm-tab-hover: #ffd700;
}

body.itempazari-page {
    --dm-accent: #9b59b6;
    --dm-accent-soft: #d1b3c4;
    --dm-accent-deep: #7c3aad;
    --dm-gold: #e5b865;
    --dm-title-from: #9b59b6;
    --dm-title-mid: #e5b865;
    --dm-title-to: #ffffff;
    --dm-btn-from: #9b59b6;
    --dm-btn-to: #7c3aad;
    --dm-btn-text: #faf5ff;
    --dm-btn-shadow: rgba(124, 58, 173, 0.4);
    --dm-btn-hover-shadow: rgba(155, 89, 182, 0.45);
    --dm-tab-hover: #e5b865;
}

body.balikci-page {
    --dm-accent: #1e4976;
    --dm-accent-soft: #d4af37;
    --dm-accent-deep: #162744;
    --dm-gold: #d4af37;
    --dm-title-from: #d4af37;
    --dm-title-mid: #e68a4f;
    --dm-title-to: #ffffff;
    --dm-btn-from: #1e4976;
    --dm-btn-to: #162744;
    --dm-btn-text: #fffbeb;
    --dm-btn-shadow: rgba(22, 39, 68, 0.45);
    --dm-btn-hover-shadow: rgba(212, 175, 55, 0.4);
    --dm-tab-hover: #f4d38a;
}

body.demirci-page {
    --dm-accent: #e67e22;
    --dm-accent-soft: #ffab00;
    --dm-accent-deep: #c2410c;
    --dm-gold: #ffab00;
    --dm-title-from: #e67e22;
    --dm-title-mid: #ffab00;
    --dm-title-to: #ffffff;
    --dm-btn-from: #e67e22;
    --dm-btn-to: #c2410c;
    --dm-btn-text: #fffbeb;
    --dm-btn-shadow: rgba(194, 65, 12, 0.4);
    --dm-btn-hover-shadow: rgba(255, 171, 0, 0.4);
    --dm-tab-hover: #ffab00;
}

body.boss-page {
    --dm-accent: #e25822;
    --dm-accent-soft: #ffd700;
    --dm-accent-deep: #991b1b;
    --dm-gold: #ffd700;
    --dm-title-from: #e25822;
    --dm-title-mid: #ffd700;
    --dm-title-to: #ffffff;
    --dm-btn-from: #e25822;
    --dm-btn-to: #991b1b;
    --dm-btn-text: #fffbeb;
    --dm-btn-shadow: rgba(153, 27, 27, 0.45);
    --dm-btn-hover-shadow: rgba(226, 88, 34, 0.5);
    --dm-tab-hover: #fca574;
}

/* Geri navigasyon — belirgin pill buton (boss, slot farm, vb.) */
.dm-page-back {
    margin: 0 0 0.85rem;
    display: flex;
    justify-content: center;
}

.dm-page-back--align-start {
    justify-content: flex-start;
}

.dm-page-back__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1.05rem 0.55rem 0.75rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--dm-gold, #d4af37) 55%, transparent);
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--dm-accent-deep, #0f2847) 88%, #000) 0%,
        color-mix(in srgb, var(--dm-accent, #1e4976) 75%, #0f172a) 100%
    );
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    color: var(--dm-btn-text, #fffbeb);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    line-height: 1.2;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.dm-page-back__btn:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--dm-gold, #d4af37) 85%, #fff);
    box-shadow:
        0 4px 16px var(--dm-btn-hover-shadow, rgba(0, 0, 0, 0.35)),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    color: #fff;
    text-decoration: none;
}

.dm-page-back__btn:focus-visible {
    outline: 2px solid var(--dm-gold, #d4af37);
    outline-offset: 3px;
}

.dm-page-back__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 1rem;
    line-height: 1;
}

.dm-page-back__hint {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.82;
}

.dm-page-back__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.05rem;
    text-align: left;
}

.dm-page-back__target {
    font-size: 0.92rem;
}

body.arena-page {
    --dm-accent: #991b1b;
    --dm-accent-soft: #ffd700;
    --dm-accent-deep: #7f1d1d;
    --dm-gold: #ffd700;
    --dm-title-from: #991b1b;
    --dm-title-mid: #ffd700;
    --dm-title-to: #ffffff;
    --dm-btn-from: #991b1b;
    --dm-btn-to: #7f1d1d;
    --dm-btn-text: #fffbeb;
    --dm-btn-shadow: rgba(127, 29, 29, 0.45);
    --dm-btn-hover-shadow: rgba(185, 28, 28, 0.5);
    --dm-tab-hover: #ffd700;
}

body.acik-artirma-page {
    --dm-accent: #2563eb;
    --dm-accent-soft: #d4af37;
    --dm-accent-deep: #1d4ed8;
    --dm-gold: #d4af37;
    --dm-title-from: #2563eb;
    --dm-title-mid: #d4af37;
    --dm-title-to: #ffffff;
    --dm-btn-from: #2563eb;
    --dm-btn-to: #1d4ed8;
    --dm-btn-text: #eff6ff;
    --dm-btn-shadow: rgba(29, 78, 216, 0.4);
    --dm-btn-hover-shadow: rgba(37, 99, 235, 0.5);
    --dm-tab-hover: #d4af37;
}

body.iddia-page {
    --dm-accent: #d4af37;
    --dm-accent-soft: #f0d078;
    --dm-accent-deep: #b8860b;
    --dm-gold: #f0d078;
    --dm-title-from: #fde68a;
    --dm-title-mid: #f0d078;
    --dm-title-to: #ffffff;
    --dm-btn-from: #b8860b;
    --dm-btn-to: #d4af37;
    --dm-btn-text: #1a1208;
    --dm-btn-shadow: rgba(212, 175, 55, 0.45);
    --dm-btn-hover-shadow: rgba(240, 208, 120, 0.55);
    --dm-tab-hover: #fde68a;
}

/* ═══════════════════════════════════════════════════════════════
   BAŞLIKLAR
   ═══════════════════════════════════════════════════════════════ */

html body.takim-soygun-page .hero-title,
html body.takim-soygun-page .welcome-title,
html body.takim-soygun-page .action-title,
html body.takim-soygun-page .sf-title,
html body.slot-farm-page .hero-title,
html body.slot-farm-page .welcome-title,
html body.slot-farm-page .action-title,
html body.slot-farm-page .sf-title,
html body.hanedanlar-page .hero-title,
html body.hanedanlar-page .welcome-title,
html body.hanedanlar-page .action-title,
html body.hanedanlar-page .sf-title,
html body.magaza-page .hero-title,
html body.magaza-page .welcome-title,
html body.magaza-page .action-title,
html body.magaza-page .sf-title,
html body.kahramanlar-page .hero-title,
html body.kahramanlar-page .welcome-title,
html body.kahramanlar-page .action-title,
html body.kahramanlar-page .sf-title,
html body.itempazari-page .hero-title,
html body.itempazari-page .welcome-title,
html body.itempazari-page .action-title,
html body.itempazari-page .sf-title,
html body.balikci-page .hero-title,
html body.balikci-page .welcome-title,
html body.balikci-page .action-title,
html body.balikci-page .sf-title,
html body.demirci-page .hero-title,
html body.demirci-page .welcome-title,
html body.demirci-page .action-title,
html body.demirci-page .sf-title,
html body.boss-page .hero-title,
html body.boss-page .welcome-title,
html body.boss-page .action-title,
html body.boss-page .sf-title,
html body.arena-page .hero-title,
html body.arena-page .welcome-title,
html body.arena-page .action-title,
html body.arena-page .sf-title,
html body.acik-artirma-page .hero-title,
html body.acik-artirma-page .welcome-title,
html body.acik-artirma-page .action-title,
html body.acik-artirma-page .sf-title,
html body.iddia-page .hero-title,
html body.iddia-page .welcome-title,
html body.iddia-page .action-title,
html body.iddia-page .sf-title {
    background: none !important;
    background-image: linear-gradient(90deg, var(--dm-title-from) 0%, var(--dm-title-mid) 55%, var(--dm-title-to) 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

html body.slot-farm-page .sf-eyebrow {
    color: var(--dm-accent-soft) !important;
}

html body.takim-soygun-page .hero-section-icon,
html body.hanedanlar-page .hero-section-icon,
html body.kahramanlar-page .hero-section-icon,
html body.boss-page .hero-section-icon,
html body.arena-page .hero-section-icon,
html body.acik-artirma-page .hero-section-icon,
html body.iddia-page .hero-section-icon {
    color: var(--dm-accent) !important;
}

/* Hero üst çizgi */
html body.takim-soygun-page .hero-section::before,
html body.hanedanlar-page:not(.takim-soygun-page) .hero-section::before,
html body.kahramanlar-page .hero-section::before,
html body.boss-page .hero-section::before,
html body.arena-page .hero-section::before,
html body.acik-artirma-page .aa-main-shell::before,
html body.itempazari-page .magaza-main-container::before {
    background: linear-gradient(90deg, transparent, var(--dm-accent), var(--dm-gold), transparent) !important;
    opacity: 0.75 !important;
}

html body.magaza-page .welcome-section {
    border-color: color-mix(in srgb, var(--dm-accent) 35%, transparent) !important;
}

html body.slot-farm-page .sf-hero::before {
    background: linear-gradient(90deg, transparent, var(--dm-accent-soft), transparent) !important;
}

/* ═══════════════════════════════════════════════════════════════
   BUTON — ortak şekil
   ═══════════════════════════════════════════════════════════════ */

html body.takim-soygun-page .sm-btn,
html body.hanedanlar-page .sm-btn,
html body.slot-farm-page .sf-btn,
html body.magaza-page .market-reyon-btn,
html body.magaza-page .market-item-buy-btn,
html body.magaza-page .transfer-btn-small,
html body.magaza-page .transfer-submit-btn,
html body.magaza-page .transfer-direction-btn,
html body.magaza-page .pagination-btn,
html body.itempazari-page .modal-btn,
html body.itempazari-page .item-action-btn,
html body.itempazari-page .transfer-btn-small,
html body.itempazari-page .transfer-submit-btn,
html body.itempazari-page .transfer-direction-btn,
html body.itempazari-page .pagination-btn,
html body.balikci-page .action-btn,
html body.balikci-page .market-item-button,
html body.balikci-page .transfer-btn-small,
html body.balikci-page .transfer-submit-btn,
html body.balikci-page .transfer-direction-btn,
html body.demirci-page .action-btn,
html body.demirci-page .market-item-button,
html body.demirci-page .transfer-btn-small,
html body.demirci-page .transfer-submit-btn,
html body.demirci-page .transfer-direction-btn,
html body.boss-page .bm-btn,
html body.boss-page .bm-tab,
html body.arena-page .ar-btn,
html body.arena-page .ar-tab,
html body.acik-artirma-page .aa-btn,
html body.acik-artirma-page a.aa-btn,
html body.acik-artirma-page .aa-tab,
html body.acik-artirma-page .aa-quick,
html body.acik-artirma-page .aa-bid-row {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    padding: 0.65rem 1.2rem !important;
    border-radius: 0.75rem !important;
    font-family: inherit !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    text-transform: none !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease, background 0.25s ease, border-color 0.25s ease !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow: visible !important;
}

/* etkinlik.css mor buton + shine efektini kapat */
html body.takim-soygun-page .modern-container button::before,
html body.hanedanlar-page .modern-container button::before,
html body.kahramanlar-page .modern-container button::before,
html body.boss-page .modern-container button::before,
html body.arena-page .modern-container button::before,
html body.acik-artirma-page button::before,
html body.acik-artirma-page a.aa-btn::before {
    content: none !important;
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   BİRİNCİL BUTONLAR
   ═══════════════════════════════════════════════════════════════ */

html body.takim-soygun-page .sm-btn--primary,
html body.hanedanlar-page:not(.takim-soygun-page) .sm-btn--primary,
html body.slot-farm-page .sf-btn--primary,
html body.magaza-page .market-item-buy-btn:not(:disabled),
html body.magaza-page .transfer-submit-btn,
html body.itempazari-page .modal-btn-primary,
html body.itempazari-page .item-purchase-btn,
html body.itempazari-page .transfer-submit-btn,
html body.balikci-page .action-btn:not(.success):not(.orange),
html body.demirci-page .action-btn:not(.success):not(.orange),
html body.boss-page .bm-btn--attack,
html body.arena-page .ar-btn:not(.ar-btn--danger),
html body.acik-artirma-page .aa-btn--primary,
html body.acik-artirma-page a.aa-btn--primary {
    background: none !important;
    background-image: linear-gradient(135deg, var(--dm-btn-from) 0%, var(--dm-btn-to) 100%) !important;
    color: var(--dm-btn-text) !important;
    border: none !important;
    box-shadow: 0 4px 14px var(--dm-btn-shadow) !important;
}

html body.slot-farm-page .sf-btn--attack {
    background: none !important;
    background-image: linear-gradient(135deg, var(--dm-btn-from) 0%, var(--dm-btn-mid) 55%, var(--dm-gold) 100%) !important;
    color: #0f172a !important;
    border: none !important;
    box-shadow: 0 4px 14px var(--dm-btn-shadow) !important;
}

html body.slot-farm-page .sf-btn--attack:disabled,
html body.slot-farm-page .sf-oda-boss-modal__attack:disabled {
    opacity: 0.42 !important;
    filter: grayscale(0.45) brightness(0.72);
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
    box-shadow: none !important;
    animation: none !important;
}

html body.takim-soygun-page .sm-btn--primary:hover:not(:disabled),
html body.hanedanlar-page:not(.takim-soygun-page) .sm-btn--primary:hover:not(:disabled),
html body.slot-farm-page .sf-btn--primary:hover:not(:disabled),
html body.slot-farm-page .sf-btn--attack:hover:not(:disabled),
html body.magaza-page .market-item-buy-btn:not(:disabled):hover,
html body.magaza-page .transfer-submit-btn:hover,
html body.itempazari-page .modal-btn-primary:hover,
html body.itempazari-page .item-purchase-btn:hover,
html body.itempazari-page .transfer-submit-btn:hover,
html body.balikci-page .action-btn:not(.success):not(.orange):hover:not(:disabled),
html body.demirci-page .action-btn:not(.success):not(.orange):hover:not(:disabled),
html body.boss-page .bm-btn--attack:hover:not(:disabled),
html body.arena-page .ar-btn:not(.ar-btn--danger):hover:not(:disabled),
html body.acik-artirma-page .aa-btn--primary:hover:not(:disabled),
html body.acik-artirma-page a.aa-btn--primary:hover {
    transform: translateY(-2px) !important;
    filter: brightness(1.06) !important;
    box-shadow: 0 6px 20px var(--dm-btn-hover-shadow) !important;
}

/* ═══════════════════════════════════════════════════════════════
   İKİNCİL BUTONLAR
   ═══════════════════════════════════════════════════════════════ */

html body.takim-soygun-page .sm-btn--secondary,
html body.hanedanlar-page .sm-btn--secondary,
html body.magaza-page .transfer-btn-small,
html body.itempazari-page .transfer-btn-small,
html body.balikci-page .transfer-btn-small,
html body.demirci-page .transfer-btn-small,
html body.acik-artirma-page .aa-btn--ghost,
html body.magaza-page .market-reyon-btn:not(.market-reyon-btn--active),
html body.magaza-page .pagination-btn:not(.active),
html body.itempazari-page .pagination-btn:not(.active) {
    background: rgba(255, 255, 255, 0.06) !important;
    background-image: none !important;
    color: #e5e5e5 !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: none !important;
}

html body.magaza-page .market-reyon-btn:hover {
    border-color: color-mix(in srgb, var(--dm-accent) 55%, transparent) !important;
    background: color-mix(in srgb, var(--dm-accent) 12%, transparent) !important;
    color: var(--dm-tab-hover) !important;
}

/* ═══════════════════════════════════════════════════════════════
   SEKMELER (AKTİF)
   ═══════════════════════════════════════════════════════════════ */

html body.takim-soygun-page .sm-tab--active,
html body.takim-soygun-page .sm-kasa-tab--active,
html body.hanedanlar-page:not(.takim-soygun-page) .sm-tab--active,
html body.hanedanlar-page:not(.takim-soygun-page) .sm-kasa-tab--active,
html body.boss-page .bm-tab--active,
html body.arena-page .ar-tab--active,
html body.acik-artirma-page .aa-tab--active,
html body.magaza-page .market-reyon-btn--active,
html body.magaza-page .transfer-direction-btn.active,
html body.balikci-page .transfer-direction-btn.active,
html body.demirci-page .transfer-direction-btn.active,
html body.itempazari-page .pagination-btn.active {
    background: none !important;
    background-image: linear-gradient(135deg, var(--dm-btn-from) 0%, var(--dm-btn-to) 100%) !important;
    color: var(--dm-btn-text) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 4px 14px var(--dm-btn-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

html body.takim-soygun-page .sm-tab:hover,
html body.hanedanlar-page .sm-tab:hover,
html body.boss-page .bm-tab:hover,
html body.arena-page .ar-tab:hover,
html body.acik-artirma-page .aa-tab:hover {
    color: var(--dm-tab-hover) !important;
}

html body.boss-page .bm-tab--active,
html body.arena-page .ar-tab--active {
    background: none !important;
    background-image: linear-gradient(135deg, var(--dm-btn-from) 0%, var(--dm-btn-to) 100%) !important;
    color: var(--dm-btn-text) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

/* ═══════════════════════════════════════════════════════════════
   ÖZEL DURUMLAR
   ═══════════════════════════════════════════════════════════════ */

html body.arena-page .ar-btn--danger {
    background: none !important;
    background-image: linear-gradient(135deg, #7f1d1d 0%, #450a0a 100%) !important;
    color: #fecaca !important;
    border: none !important;
}

html body.acik-artirma-page .aa-btn--danger {
    background: none !important;
    background-image: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
    color: #fff !important;
}

html body.acik-artirma-page .aa-btn--success {
    background: none !important;
    background-image: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ecfdf5 !important;
}

/* Vurgu metinleri / linkler */
html body.takim-soygun-page .sm-muted code,
html body.boss-page .bm-back-link a:not(.dm-page-back__btn),
html body.arena-page .ar-back-link a:not(.dm-page-back__btn),
html body.acik-artirma-page .aa-back-link a:not(.dm-page-back__btn),
html body.boss-page .dm-page-back__btn,
html body.slot-farm-page .dm-page-back__btn {
    color: var(--dm-btn-text, #fffbeb) !important;
}
html body.boss-page .dm-page-back__btn:hover,
html body.slot-farm-page .dm-page-back__btn:hover {
    color: #fff !important;
}

html body.acik-artirma-page .aa-back-link a,
html body.acik-artirma-page .aa-ekonomi-value,
html body.itempazari-page .hero-subtitle strong {
    color: var(--dm-accent-soft) !important;
}

/* Kahramanlar sıralama kartları */
html body.kahramanlar-page .kahraman-rank-badge--top {
    background: linear-gradient(135deg, rgba(204, 85, 0, 0.98) 0%, rgba(255, 215, 0, 1) 45%, rgba(154, 52, 18, 0.98) 100%) !important;
}

html body.kahramanlar-page .kahraman-rank-badge:not(.kahraman-rank-badge--top) {
    background: linear-gradient(135deg, rgba(154, 52, 18, 0.95) 0%, rgba(204, 85, 0, 0.98) 100%) !important;
}

/* Ekonomi bar vurguları */
html body.magaza-page .ekonomi-bar-inner::before,
html body.itempazari-page .ekonomi-bar-inner::before,
html body.balikci-page .ekonomi-bar-inner::before,
html body.demirci-page .ekonomi-bar-inner::before,
html body.hanedanlar-page .ekonomi-bar-inner::before {
    background: linear-gradient(90deg, transparent, var(--dm-accent), transparent) !important;
}

html body.magaza-page .ekonomi-item:hover,
html body.itempazari-page .ekonomi-item:hover,
html body.balikci-page .ekonomi-item:hover,
html body.demirci-page .ekonomi-item:hover,
html body.hanedanlar-page .ekonomi-item:hover {
    border-color: color-mix(in srgb, var(--dm-accent) 45%, transparent) !important;
}

html body.magaza-page .ekonomi-value,
html body.itempazari-page .ekonomi-value,
html body.balikci-page .ekonomi-value,
html body.demirci-page .ekonomi-value,
html body.hanedanlar-page .ekonomi-value {
    background: linear-gradient(135deg, #ffffff 0%, var(--dm-accent) 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* ═══════════════════════════════════════════════════════════════
   MAĞAZA — reyon + ekonomi kartları (orman yeşili / altın)
   ═══════════════════════════════════════════════════════════════ */

html body.magaza-page .market-reyon-btn:not(.market-reyon-btn--active) {
    background: rgba(8, 18, 12, 0.75) !important;
    border: 1px solid color-mix(in srgb, var(--dm-accent) 30%, transparent) !important;
    color: #ecfdf5 !important;
}

html body.magaza-page .market-reyon-btn:not(.market-reyon-btn--active):hover {
    border-color: color-mix(in srgb, var(--dm-accent) 60%, transparent) !important;
    background: color-mix(in srgb, var(--dm-accent) 14%, rgba(8, 18, 12, 0.9)) !important;
    color: var(--dm-tab-hover) !important;
    transform: translateY(-1px) !important;
}

html body.magaza-page .market-reyon-btn--active,
html body.magaza-page .market-reyon-btn--active:hover {
    background-image: linear-gradient(135deg, var(--dm-btn-from) 0%, var(--dm-btn-to) 55%, color-mix(in srgb, var(--dm-gold) 35%, var(--dm-btn-to)) 100%) !important;
    color: var(--dm-btn-text) !important;
    border-color: color-mix(in srgb, var(--dm-gold) 40%, var(--dm-accent)) !important;
    box-shadow: 0 4px 16px var(--dm-btn-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

html body.magaza-page .ekonomi-item {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(8, 18, 12, 0.88) 100%) !important;
    border-color: color-mix(in srgb, var(--dm-accent) 28%, transparent) !important;
}

html body.magaza-page .ekonomi-kasa span {
    color: var(--dm-accent-soft) !important;
}

html body.magaza-page .ekonomi-item:hover:not(:has(.transfer-btn-small:hover)):not(:has(.transfer-btn-small:focus-visible)) {
    border-color: color-mix(in srgb, var(--dm-accent) 50%, transparent) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), 0 0 24px color-mix(in srgb, var(--dm-accent) 12%, transparent) !important;
}

html body.magaza-page .ekonomi-item:has(.transfer-btn-small:hover),
html body.magaza-page .ekonomi-item:has(.transfer-btn-small:focus-visible),
html body.itempazari-page .ekonomi-item:has(.transfer-btn-small:hover),
html body.itempazari-page .ekonomi-item:has(.transfer-btn-small:focus-visible),
html body.balikci-page .ekonomi-item:has(.transfer-btn-small:hover),
html body.balikci-page .ekonomi-item:has(.transfer-btn-small:focus-visible),
html body.demirci-page .ekonomi-item:has(.transfer-btn-small:hover),
html body.demirci-page .ekonomi-item:has(.transfer-btn-small:focus-visible) {
    transform: none !important;
}

/* Transfer butonu — ripple kapat, sadece buton hover */
html body.magaza-page .transfer-btn-small::before,
html body.itempazari-page .transfer-btn-small::before,
html body.balikci-page .transfer-btn-small::before,
html body.demirci-page .transfer-btn-small::before {
    content: none !important;
    display: none !important;
}

html body.magaza-page .transfer-btn-small,
html body.itempazari-page .transfer-btn-small,
html body.balikci-page .transfer-btn-small,
html body.demirci-page .transfer-btn-small {
    width: auto !important;
    max-width: 100% !important;
    align-self: center !important;
    overflow: visible !important;
    transform: none !important;
}

html body.magaza-page .transfer-btn-small:hover,
html body.itempazari-page .transfer-btn-small:hover,
html body.balikci-page .transfer-btn-small:hover,
html body.demirci-page .transfer-btn-small:hover {
    background: none !important;
    background-image: linear-gradient(135deg, var(--dm-btn-from) 0%, var(--dm-btn-to) 100%) !important;
    color: var(--dm-btn-text) !important;
    border-color: color-mix(in srgb, var(--dm-accent) 55%, transparent) !important;
    transform: translateY(-1px) !important;
    filter: brightness(1.05) !important;
    box-shadow: 0 4px 14px var(--dm-btn-shadow) !important;
}

/* Demirci / Balıkçı — ortak buton sistemi (sayfa renkleri, aynı şekil) */
html body.demirci-page .action-btn,
html body.balikci-page .action-btn {
    min-width: 11rem !important;
    padding: 0.85rem 1.5rem !important;
    font-size: 0.95rem !important;
    overflow: visible !important;
}

html body.demirci-page .market-item-button,
html body.balikci-page .market-item-button {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0.65rem 1.2rem !important;
    font-size: 0.875rem !important;
}

html body.demirci-page .market-item-button:not(:disabled),
html body.balikci-page .market-item-button:not(:disabled),
html body.demirci-page .action-btn:not(.success):not(.orange),
html body.balikci-page .action-btn:not(.success):not(.orange) {
    background: none !important;
    background-image: linear-gradient(135deg, var(--dm-btn-from) 0%, var(--dm-btn-to) 100%) !important;
    color: var(--dm-btn-text) !important;
    border: none !important;
    box-shadow: 0 4px 14px var(--dm-btn-shadow) !important;
}

html body.demirci-page .action-btn.orange,
html body.balikci-page .action-btn.orange {
    background: none !important;
    background-image: linear-gradient(135deg, var(--dm-gold) 0%, var(--dm-btn-from) 100%) !important;
    color: #1a1208 !important;
    border: none !important;
    box-shadow: 0 4px 14px var(--dm-btn-hover-shadow) !important;
}

html body.demirci-page .action-btn.success,
html body.balikci-page .action-btn.success {
    background: none !important;
    background-image: linear-gradient(135deg, var(--dm-accent-soft) 0%, var(--dm-btn-from) 55%, var(--dm-btn-to) 100%) !important;
    color: var(--dm-btn-text) !important;
    border: none !important;
    box-shadow: 0 4px 14px var(--dm-btn-shadow) !important;
}

html body.demirci-page .market-item-button:not(:disabled):hover,
html body.balikci-page .market-item-button:not(:disabled):hover,
html body.demirci-page .action-btn:hover:not(:disabled),
html body.balikci-page .action-btn:hover:not(:disabled) {
    transform: translateY(-2px) !important;
    filter: brightness(1.06) !important;
    box-shadow: 0 6px 20px var(--dm-btn-hover-shadow) !important;
}

html body.demirci-page .action-btn::before,
html body.balikci-page .action-btn::before,
html body.demirci-page .market-item-button::before,
html body.balikci-page .market-item-button::before {
    content: none !important;
    display: none !important;
}

html body.demirci-page .action-btn:disabled,
html body.balikci-page .action-btn:disabled,
html body.demirci-page .market-item-button:disabled,
html body.balikci-page .market-item-button:disabled {
    opacity: 0.45 !important;
    filter: grayscale(0.4) brightness(0.82) !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   SATIN ALMA ONAY MODALI
   ═══════════════════════════════════════════════════════════════ */

.dm-purchase-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 102000;
    touch-action: auto;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
}

.dm-purchase-modal.active {
    display: flex;
}

.dm-purchase-modal__panel {
    width: min(100%, 420px);
    border-radius: 1rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(18, 18, 18, 0.98), rgba(28, 28, 28, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.dm-purchase-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dm-purchase-modal__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.dm-purchase-modal__close {
    border: none;
    background: transparent;
    color: #a3a3a3;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
}

.dm-purchase-modal__close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.dm-purchase-modal__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dm-purchase-modal__label {
    color: #a3a3a3;
    font-size: 0.875rem;
}

.dm-purchase-modal__value {
    color: #fff;
    font-weight: 600;
    text-align: right;
}

.dm-purchase-modal__value--price {
    color: var(--dm-accent-soft, #d4af37);
}

.dm-purchase-modal__value--receive {
    color: #86efac;
    max-width: 62%;
    line-height: 1.35;
}

.dm-purchase-modal__row--receive {
    align-items: flex-start;
}

.dm-purchase-modal__qty {
    width: 100%;
    max-width: 120px;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 1rem;
}

.dm-purchase-modal__desc {
    margin: 1rem 0 0;
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.dm-purchase-modal__actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.dm-purchase-modal__btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.dm-purchase-modal__btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #e5e5e5;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.dm-purchase-modal__btn--confirm {
    background-image: linear-gradient(135deg, var(--dm-btn-from, #059669) 0%, var(--dm-btn-to, #047857) 100%);
    color: var(--dm-btn-text, #ecfdf5);
    box-shadow: 0 4px 14px var(--dm-btn-shadow, rgba(5, 150, 105, 0.35));
}

.dm-purchase-modal__btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.dm-toast {
    position: fixed;
    top: calc(var(--dmnknd-nav-bar-h, 5.5rem) + 0.75rem);
    right: 1.25rem;
    z-index: 10100;
    max-width: min(92vw, 420px);
    padding: 14px 18px;
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    pointer-events: none;
    animation: dmToastIn 0.25s ease;
}

.dm-toast--success {
    background: #059669;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.35);
}

.dm-toast--error {
    background: #dc2626;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.35);
}

.dm-toast--info {
    background: #e67e22;
    box-shadow: 0 8px 24px rgba(230, 126, 34, 0.35);
}

@keyframes dmToastIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════════
   BİLDİRİM / ONAY MODALI (alert & confirm yerine)
   ═══════════════════════════════════════════════════════════════ */

.dm-alert-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 102010;
    touch-action: auto;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
}

.dm-alert-modal.active {
    display: flex;
}

.dm-alert-modal__panel {
    width: min(100%, 440px);
    border-radius: 1rem;
    padding: 1.35rem 1.5rem 1.25rem;
    background: linear-gradient(145deg, rgba(18, 18, 18, 0.98), rgba(28, 28, 28, 0.96));
    border: 1px solid rgba(212, 175, 55, 0.22);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.dm-alert-modal--error .dm-alert-modal__panel {
    border-color: rgba(239, 68, 68, 0.35);
}

.dm-alert-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.dm-alert-modal__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
}

.dm-alert-modal--error .dm-alert-modal__title {
    color: #fecaca;
}

.dm-alert-modal__close {
    border: none;
    background: transparent;
    color: #a3a3a3;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.15rem 0.45rem;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.dm-alert-modal__close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.dm-alert-modal__message {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.dm-alert-modal__desc {
    margin: 0.75rem 0 0;
    color: #a3a3a3;
    font-size: 0.88rem;
    line-height: 1.5;
}

.dm-alert-modal__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

.dm-alert-modal__actions--dual {
    gap: 0.65rem;
}

.dm-alert-modal__btn {
    min-width: 6.5rem;
    padding: 0.7rem 1.1rem;
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.dm-alert-modal__btn--primary {
    background-image: linear-gradient(135deg, var(--dm-btn-from, #059669) 0%, var(--dm-btn-to, #047857) 100%);
    color: var(--dm-btn-text, #ecfdf5);
    box-shadow: 0 4px 14px var(--dm-btn-shadow, rgba(5, 150, 105, 0.35));
}

.dm-alert-modal__btn--primary.dm-alert-modal__btn--danger {
    background-image: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

.dm-alert-modal__btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #e5e5e5;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.dm-alert-modal__btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}
