/* Dominara İddia — altın/zar arka plan, mor yok */
html body.iddia-page {
    --id-accent: #d4af37;
    --id-accent-2: #f0d078;
    --id-gold: #f0d078;
    --id-gold-deep: #b8860b;
    --id-win: #22c55e;
    --id-card: rgba(8, 6, 4, 0.55);
    --id-border: rgba(240, 208, 120, 0.18);
    --id-glass: rgba(10, 8, 6, 0.42);
    --id-glass-strong: rgba(12, 10, 8, 0.58);
    --id-panel-bg: linear-gradient(145deg, rgba(10, 8, 6, 0.58) 0%, rgba(6, 5, 4, 0.48) 100%);
    --id-dmn: #3b82f6;
    --id-dmn-soft: rgba(59, 130, 246, 0.55);
    --id-knd: #ef4444;
    --id-knd-soft: rgba(239, 68, 68, 0.5);
    min-height: 100vh;
    min-height: 100dvh;
    font-family: 'Poppins', system-ui, sans-serif;
}

.iddia-page .modern-container {
    position: relative;
    z-index: 1;
    min-height: calc(100dvh - 56px);
    padding: 1.25rem 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ── Hero (arena / açık arttırma ile uyumlu) ── */
.iddia-page .hero-section {
    background: var(--id-panel-bg);
    padding: 2rem 1.5rem 1.75rem;
    border-radius: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(240, 208, 120, 0.14);
    backdrop-filter: blur(18px) saturate(1.1);
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.iddia-page .hero-section::after {
    content: '';
    position: absolute;
    top: -40%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle, rgba(240, 208, 120, 0.12) 0%, transparent 65%);
    animation: idHeroPulse 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes idHeroPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.iddia-page .hero-section > * {
    position: relative;
    z-index: 1;
}

.iddia-page .hero-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
    font-weight: 900 !important;
    margin: 0 !important;
    letter-spacing: 0.05em;
    background-image: linear-gradient(90deg, #fde68a 0%, #f0d078 45%, #fff 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.iddia-page .hero-subtitle {
    color: rgba(255, 255, 255, 0.72);
    margin: 0.75rem 0 0;
    font-size: 0.95rem;
}

.iddia-page .hero-subtitle .ekonomi-icon,
.iddia-page .hero-subtitle .dc-emoji {
    display: inline-block;
    vertical-align: -0.2em;
    margin: 0 0.1rem;
}

.id-back-nav {
    display: flex;
    justify-content: center;
    margin: 0 0 0.85rem;
}

.iddia-page .hero-section .id-back-nav {
    margin-top: 0;
    margin-bottom: 1rem;
}

.id-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.52rem 1rem 0.52rem 0.82rem;
    border-radius: 999px;
    border: 1px solid rgba(240, 208, 120, 0.38);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.32) 100%);
    color: rgba(255, 255, 255, 0.94);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.id-back-btn iconify-icon {
    font-size: 0.82rem;
    color: var(--id-gold);
    flex-shrink: 0;
}

.id-back-btn:hover {
    background: linear-gradient(180deg, rgba(240, 208, 120, 0.16) 0%, rgba(0, 0, 0, 0.38) 100%);
    border-color: rgba(240, 208, 120, 0.62);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.id-back-btn:focus-visible {
    outline: 2px solid rgba(240, 208, 120, 0.75);
    outline-offset: 2px;
}

.id-detail-top .id-back-nav {
    margin-bottom: 0.7rem;
}

.id-hero-actions { margin-top: 1rem; }

.id-broadcast-obs {
    margin-top: 1.1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(240, 208, 120, 0.2);
    background: rgba(0, 0, 0, 0.22);
    text-align: left;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.id-broadcast-obs-label {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.id-broadcast-obs-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.id-broadcast-obs-input {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(240, 208, 120, 0.25);
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 0.82rem;
}

.id-btn--broadcast {
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
}

.id-btn--broadcast-live {
    border-color: rgba(248, 113, 113, 0.55) !important;
    color: #fecaca !important;
}

.id-card-broadcast {
    margin-left: auto;
}

.id-broadcast-lock {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
}

.id-card-link--live {
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.45), 0 4px 18px rgba(239, 68, 68, 0.12);
}

.id-card-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(239, 68, 68, 0.2);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.45);
}

.id-card-live-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
}

/* ── Liste paneli ── */
.id-list-panel {
    background: var(--id-panel-bg);
    border: 1px solid rgba(240, 208, 120, 0.14);
    border-radius: 1.25rem;
    padding: 1.25rem 1.35rem 1.5rem;
    min-height: 280px;
    backdrop-filter: blur(18px) saturate(1.1);
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
}

.id-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.15rem;
    flex-wrap: wrap;
    justify-content: center;
}

.id-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--id-border);
    color: rgba(255, 255, 255, 0.75);
    padding: 0.5rem 1.15rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
}

.id-tab--active,
.id-tab:hover {
    background: rgba(212, 175, 55, 0.28);
    border-color: rgba(212, 175, 55, 0.55);
    color: #fff;
}

/* auto-fit: tek kart tam genişlik */
.id-list {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    width: 100%;
}

.id-card-link {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.25rem 1.35rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

.id-card-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.id-card-delete {
    position: relative;
    z-index: 3;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(127, 29, 29, 0.45);
    color: #fecaca;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
    flex-shrink: 0;
    padding: 0;
}

.id-card-delete:hover {
    opacity: 1;
    background: rgba(185, 28, 28, 0.65);
}

.id-card-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--id-dmn) 0%,
        rgba(212, 175, 55, 0.75) 50%,
        var(--id-knd) 100%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
}

.id-card-link:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.38);
    box-shadow:
        -8px 18px 36px var(--id-dmn-soft),
        8px 18px 36px var(--id-knd-soft),
        0 10px 28px rgba(212, 175, 55, 0.12);
}

.id-card-link:hover::after {
    opacity: 1;
}

.id-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.id-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    flex: 1;
    min-width: 0;
}

.id-card-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.id-card-opt-chip {
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.22);
    color: rgba(255, 255, 255, 0.85);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.id-card-link:hover .id-card-opt-chip {
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.14) 0%,
        rgba(212, 175, 55, 0.1) 48%,
        rgba(239, 68, 68, 0.14) 100%
    );
    border-color: rgba(212, 175, 55, 0.32);
    box-shadow:
        0 0 12px rgba(59, 130, 246, 0.12),
        0 0 12px rgba(239, 68, 68, 0.1);
}

.id-card-pools {
    display: flex;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.id-card-bets {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.78rem;
}

.id-card-pools strong { color: var(--id-gold); }

.id-card-enter {
    font-size: 0.78rem;
    color: var(--id-gold);
    font-weight: 600;
    margin-left: auto;
    align-self: center;
}

.id-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.id-badge--open { background: rgba(34, 197, 94, 0.22); color: #86efac; }
.id-badge--settled { background: rgba(212, 175, 55, 0.22); color: #fde68a; }
.id-badge--closed { background: rgba(251, 191, 36, 0.18); color: #fcd34d; }

.id-card-eq { color: var(--id-gold); }
.id-card-eq strong { color: #fde68a; }

.id-money {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    line-height: 1;
    vertical-align: middle;
}

.id-money strong { line-height: 1; color: inherit; }

.id-emoji {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    margin: 0;
    object-fit: contain;
}

.id-money .id-emoji,
.id-money .ekonomi-icon {
    display: block;
}

.id-total-chip .id-money { gap: 0.25rem; }
.id-total-chip .id-emoji { width: 16px; height: 16px; }

.id-detail-meta .id-money,
.id-card-pools .id-money { color: rgba(255, 255, 255, 0.75); }

.id-equiv-altin {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.id-rate-note .id-money,
.id-rate-note .id-emoji { vertical-align: middle; }

.id-currency-btn .id-emoji { width: 20px; height: 20px; }

/* ── Detay sayfası ── */
.iddia-detail-page .modern-container {
    max-width: 100%;
    padding: 0.65rem 0.85rem 1rem;
    min-height: calc(100dvh - 56px);
    display: flex;
    flex-direction: column;
}

.id-detail-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.id-detail-viewport {
    background: var(--id-panel-bg);
    border-radius: 1rem;
    border: 1px solid rgba(240, 208, 120, 0.14);
    backdrop-filter: blur(18px) saturate(1.1);
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
    overflow: hidden;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: min(88dvh, 900px);
}

.id-detail-viewport::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 45% at 15% 0%, rgba(240, 208, 120, 0.1), transparent 55%),
        radial-gradient(ellipse 55% 40% at 95% 100%, rgba(212, 175, 55, 0.08), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.id-detail-top {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    padding: 1rem 1.25rem 0.65rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.id-detail-top .page-title-box { margin-bottom: 0.55rem; }

.id-detail-top .hero-title {
    font-size: clamp(1.25rem, 3vw, 2rem) !important;
}

.id-detail-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.45rem;
}

.id-detail-meta--minimal {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.id-detail-meta strong { color: var(--id-gold); }

.id-arena-stage {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0.85rem 1rem 1rem;
}

.id-arena-columns {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: clamp(0.65rem, 1.5vw, 1.35rem);
    min-height: min(48vh, 440px);
}

.id-arena-column {
    flex: 1 1 0;
    max-width: 360px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.15rem;
    padding: 1rem 0.75rem 0.85rem;
    transition: opacity 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.25s ease;
    backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.id-arena-column:not(.id-arena-column--locked):hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.35);
}

.id-arena-column--selected {
    border-color: rgba(240, 208, 120, 0.55) !important;
    box-shadow: 0 0 0 1px rgba(240, 208, 120, 0.2), 0 12px 36px rgba(212, 175, 55, 0.12);
    opacity: 1 !important;
    filter: none !important;
}

.id-arena-column--locked {
    opacity: 0.38;
    filter: grayscale(0.4);
    cursor: not-allowed;
}

.id-arena-column--user-pick {
    border-color: rgba(240, 208, 120, 0.55);
    box-shadow: 0 0 28px rgba(212, 175, 55, 0.15);
    opacity: 1;
    filter: none;
}

.id-arena-column--winner {
    border-color: rgba(34, 197, 94, 0.55);
    box-shadow: 0 0 36px rgba(34, 197, 94, 0.18);
    opacity: 1;
    filter: none;
}

.id-col-pct {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(180deg, #fff 15%, var(--id-gold) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-top: 0.35rem;
}

.id-col-pct-suffix {
    font-size: 0.55em;
    opacity: 0.85;
}

.id-col-pct-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.38);
    margin-bottom: 0.45rem;
}

.id-col-stack-area {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 160px;
    max-height: 380px;
    padding: 0 0.35rem;
}

.id-col-stack {
    width: min(100%, 88px);
    height: var(--col-h, 14%);
    min-height: 32px;
    max-height: 100%;
    display: flex;
    flex-direction: column-reverse;
    border-radius: 10px 10px 4px 4px;
    overflow: hidden;
    box-shadow: 0 0 22px var(--id-opt-glow, rgba(212, 175, 55, 0.28));
    transition: height 1s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.id-col-stack::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(255, 255, 255, 0.15) 50%, transparent 65%);
    animation: idStackShine 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes idStackShine {
    0%, 100% { transform: translateY(80%); opacity: 0; }
    45%, 55% { transform: translateY(-15%); opacity: 1; }
}

.id-stack-seg { width: 100%; min-height: 3px; transition: height 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.id-stack-seg--gumus {
    height: var(--gumus-h, 50%);
    background: linear-gradient(0deg, #475569, #94a3b8 40%, #cbd5e1);
}
.id-stack-seg--altin {
    height: var(--altin-h, 50%);
    background: linear-gradient(0deg, #b45309, #f0d078 45%, #fde68a);
}

.id-col-stack--empty {
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    box-shadow: none;
}
.id-col-stack--empty::after { display: none; }

.id-col-totals {
    display: flex;
    gap: 0.4rem;
    margin: 0.55rem 0 0.65rem;
    flex-wrap: wrap;
    justify-content: center;
}

.id-total-chip {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.55);
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

.id-total-chip strong { color: rgba(255, 255, 255, 0.92); }
.id-total-chip--gumus { border-color: rgba(148, 163, 184, 0.25); }
.id-total-chip--altin { border-color: rgba(240, 208, 120, 0.28); }

.id-col-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    width: 100%;
}

.id-option-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.id-option-avatar--team { border-radius: 50%; }

.id-option-label {
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.25;
    word-break: break-word;
}

.id-arena-column--title-only .id-option-label {
    font-size: clamp(1.15rem, 2.4vw, 1.75rem);
    font-weight: 800;
    letter-spacing: 0.01em;
    padding: 0.35rem 0.25rem 0;
    background: linear-gradient(180deg, #fff 10%, var(--id-gold) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.id-col-head--text-only {
    min-height: 3.5rem;
    justify-content: center;
}

.id-option-avatar--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.22);
    font-weight: 700;
    color: var(--id-gold);
}

.id-col-actions {
    width: 100%;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Bahis paneli (sütundan ayrı) */
.id-stakes-panel {
    position: fixed;
    inset: 0;
    z-index: 99990;
    pointer-events: none;
}

.id-stakes-panel--open { pointer-events: auto; }

.id-stakes-panel-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.id-stakes-panel--open .id-stakes-panel-backdrop { opacity: 1; }

.id-stakes-panel-inner {
    position: absolute;
    top: 0;
    right: 0;
    width: min(100%, 400px);
    height: 100%;
    background: rgba(8, 6, 4, 0.48);
    backdrop-filter: blur(22px) saturate(1.15);
    -webkit-backdrop-filter: blur(22px) saturate(1.15);
    border-left: 1px solid rgba(240, 208, 120, 0.16);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.45);
    transform: translateX(105%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    padding: 1.15rem 1.1rem 1.25rem;
    box-sizing: border-box;
}

.id-stakes-panel--open .id-stakes-panel-inner { transform: translateX(0); }

.id-stakes-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.id-stakes-panel-kicker {
    margin: 0 0 0.25rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.42);
}

.id-stakes-panel-head h2 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.3;
    color: #fff;
}

.id-stakes-panel-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1.35rem;
    cursor: pointer;
    flex-shrink: 0;
}

.id-stakes-panel-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.id-stakes-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.id-stakes-stat {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 0.55rem 0.65rem;
}

.id-stakes-stat span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.15rem;
}

.id-stakes-stat strong {
    font-size: 0.95rem;
    color: #fff;
}

.id-stakes-stat--eq {
    grid-column: 1 / -1;
    border-color: rgba(240, 208, 120, 0.22);
    background: rgba(240, 208, 120, 0.06);
}

.id-stakes-stat--eq strong { color: #fde68a; }

.id-stakes-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.id-stakes-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.88rem;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
}

.id-stake-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.id-stake-row img,
.id-stake-avatar-fallback {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.id-stake-avatar-fallback {
    background: rgba(212, 175, 55, 0.25);
    display: block;
}

.id-stake-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.id-stake-name {
    font-size: 0.88rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.id-stake-amt { font-weight: 700; font-size: 0.82rem; color: var(--id-gold); }
.id-stake-amt--gumus { color: #cbd5e1; }
.id-locked-note { text-align: center; font-size: 0.7rem; color: rgba(255, 255, 255, 0.35); font-style: italic; padding: 0.35rem; }

.id-user-bet-banner {
    margin: 0.45rem auto 0;
    padding: 0.4rem 0.85rem;
    background: rgba(240, 208, 120, 0.1);
    border: 1px solid rgba(240, 208, 120, 0.22);
    border-radius: 999px;
    font-size: 0.8rem;
    color: #fde68a;
    width: fit-content;
    max-width: 100%;
}

.id-admin-bar {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0.45rem 0;
}

/* Butonlar */
.id-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 1rem;
    border-radius: 0.6rem;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 0.88rem;
}
.id-btn--primary {
    background: linear-gradient(135deg, #b8860b, #d4af37);
    color: #1a1208;
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
}
.id-btn--primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.id-btn--ghost { background: rgba(255, 255, 255, 0.06); border-color: var(--id-border); color: rgba(255, 255, 255, 0.88); }
.id-btn--danger { background: linear-gradient(135deg, #b91c1c, #ef4444); color: #fff; }
.id-btn--danger-outline {
    border-color: rgba(239, 68, 68, 0.45) !important;
    color: #fecaca !important;
    background: rgba(127, 29, 29, 0.25) !important;
}
.id-btn--block { width: 100%; }

.id-winners-panel {
    flex-shrink: 0;
    background: rgba(34, 197, 94, 0.07);
    border-top: 1px solid rgba(34, 197, 94, 0.2);
    padding: 0.85rem 1rem;
    margin: 0;
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}

.id-winners-title {
    font-size: 0.92rem;
    color: #86efac;
    margin: 0 0 0.55rem;
    text-align: center;
}

.id-winners-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.id-winner-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.55rem 0.65rem;
    padding: 0.5rem 0.65rem;
    border-radius: 0.65rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
}

.id-winner-card img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.id-winner-avatar-ph {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--id-gold);
}

.id-winner-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.id-winner-name {
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.id-winner-stake {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.52);
}

.id-winner-payout {
    text-align: right;
    white-space: nowrap;
    font-size: 0.78rem;
    line-height: 1.35;
}

.id-winner-profit {
    display: block;
    color: var(--id-win);
    font-weight: 700;
}

.id-winner-total {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
}

.id-toast {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: rgba(8, 6, 4, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(240, 208, 120, 0.35);
    padding: 0.7rem 1.15rem;
    border-radius: 0.75rem;
    z-index: 99999;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    max-width: min(92vw, 420px);
    text-align: center;
    font-size: 0.88rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.id-toast--show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.id-toast--error { border-color: rgba(239, 68, 68, 0.55); color: #fecaca; }

/* Sayfa bakiyeleri (cüzdan + kasa toplam) */
.id-page-balances {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
    margin-top: 1rem;
}

.id-page-balances--detail {
    position: sticky;
    top: 0.65rem;
    z-index: 12;
    justify-content: flex-end;
    margin: 0 0 0.75rem;
    pointer-events: none;
}

.id-page-balances .id-balance-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(240, 208, 120, 0.22);
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.9);
    pointer-events: auto;
}

.id-page-balances .id-balance-chip .id-money {
    gap: 0.3rem;
}

.id-page-balances:empty {
    display: none;
}

.id-modal[hidden] { display: none !important; }
.id-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.id-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 3, 2, 0.38);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.id-modal-panel {
    position: relative;
    background: var(--id-glass);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border: 1px solid rgba(240, 208, 120, 0.22);
    border-radius: 1rem;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1.15rem;
    box-sizing: border-box;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.id-modal-panel--bet {
    max-width: 420px;
    padding: 1.35rem 1.25rem 1.25rem;
    background: rgba(8, 6, 4, 0.38);
    border-color: rgba(240, 208, 120, 0.28);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow-x: hidden;
}

.id-modal-glow {
    position: absolute;
    top: -30%;
    left: 0;
    right: 0;
    width: 100%;
    height: 70%;
    background: radial-gradient(circle, rgba(240, 208, 120, 0.14) 0%, transparent 65%);
    pointer-events: none;
}

.id-modal-header--bet {
    align-items: flex-start;
    margin-bottom: 0.65rem;
}

.id-modal-header--bet .id-modal-header-text {
    flex: 1;
    min-width: 0;
    padding-right: 0.5rem;
}

.id-modal-header--bet .id-modal-close {
    flex-shrink: 0;
}

.id-modal-balances {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
    margin-bottom: 0.85rem;
}

.id-modal-balances:empty {
    display: none;
    margin-bottom: 0;
}

.id-modal-balances .id-balance-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.88);
}

.id-modal-balances .id-emoji {
    width: 16px;
    height: 16px;
}

.id-bet-current-stake {
    margin: 0 0 0.65rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    min-height: 1.1rem;
}

.id-bet-current-stake:empty {
    display: none;
}

.id-bet-sep {
    color: rgba(255, 255, 255, 0.35);
    margin: 0 0.15rem;
}

.id-modal-panel--bet .id-modal-header,
.id-modal-panel--bet .id-form { position: relative; z-index: 1; }

.id-modal-panel--wide { max-width: 620px; }

.id-modal-kicker {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
}

.id-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.id-modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.25;
}

.id-modal-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1.35rem;
    cursor: pointer;
    flex-shrink: 0;
}

.id-equiv-hint {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    color: var(--id-accent-2);
}

.id-field { display: block; margin-bottom: 0.85rem; }
.id-field span { display: block; font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); margin-bottom: 0.3rem; }
.id-field input, .id-field textarea, .id-field select {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--id-border);
    border-radius: 0.5rem;
    padding: 0.5rem 0.7rem;
    color: #fff;
    font-family: inherit;
}

.iddia-page select,
.iddia-page .id-field select {
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(12, 10, 8, 0.92);
    background-image: linear-gradient(45deg, transparent 50%, rgba(240, 208, 120, 0.75) 50%),
        linear-gradient(135deg, rgba(240, 208, 120, 0.75) 50%, transparent 50%);
    background-position: calc(100% - 16px) calc(50% + 2px), calc(100% - 11px) calc(50% + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 2rem;
    cursor: pointer;
}

.iddia-page select:focus,
.iddia-page .id-field select:focus {
    outline: none;
    border-color: rgba(240, 208, 120, 0.45);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

.iddia-page select option {
    background: #120e0a;
    color: #fff;
}

.id-create-title-field span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.id-create-title-input {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    padding: 0.75rem 0.85rem !important;
    border-color: rgba(240, 208, 120, 0.35) !important;
    background: rgba(0, 0, 0, 0.35) !important;
}

.id-create-title-input::placeholder {
    font-weight: 500;
    opacity: 0.45;
}

.id-option-draft {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 0.6rem;
    padding: 0.65rem;
    margin-bottom: 0.55rem;
}

.id-option-draft-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.45rem;
}

.id-option-draft-head strong {
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    color: var(--id-gold);
    text-transform: uppercase;
}

.id-faction-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.id-faction-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 0.5rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.28);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.id-faction-btn img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.id-faction-btn--active {
    border-color: rgba(240, 208, 120, 0.55);
    box-shadow: 0 0 0 1px rgba(240, 208, 120, 0.2), 0 8px 24px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.id-faction-btn[data-side="dmn"].id-faction-btn--active {
    background: linear-gradient(160deg, rgba(124, 58, 237, 0.18), rgba(0, 0, 0, 0.35));
}

.id-faction-btn[data-side="knd"].id-faction-btn--active {
    background: linear-gradient(160deg, rgba(59, 130, 246, 0.18), rgba(0, 0, 0, 0.35));
}

.id-member-selected {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(240, 208, 120, 0.28);
    background: rgba(240, 208, 120, 0.08);
}

.id-member-selected img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(240, 208, 120, 0.35);
    flex-shrink: 0;
}

.id-member-selected-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.id-member-selected-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.id-member-selected-hint {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
}

.id-member-change {
    flex-shrink: 0;
    font-size: 0.78rem !important;
    padding: 0.4rem 0.65rem !important;
}
.id-hint { font-size: 0.76rem; color: rgba(255, 255, 255, 0.42); }
.id-loading, .id-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: rgba(255, 255, 255, 0.45);
    grid-column: 1 / -1;
}

.id-currency-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.95rem;
    padding: 0.35rem;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.id-currency-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.6rem 0.5rem;
    border-radius: 0.55rem;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s ease;
}

.id-currency-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.id-currency-dot--gumus { background: #94a3b8; }
.id-currency-dot--altin { background: var(--id-gold); }

.id-currency-btn--active.id-currency-btn--gumus {
    background: rgba(148, 163, 184, 0.18);
    border-color: rgba(148, 163, 184, 0.35);
    color: #fff;
}

.id-currency-btn--active.id-currency-btn--altin {
    background: rgba(240, 208, 120, 0.15);
    border-color: rgba(240, 208, 120, 0.35);
    color: #fff;
}

.id-member-results { max-height: 130px; overflow-y: auto; margin-top: 0.3rem; }
.id-member-pick { display: flex; align-items: center; gap: 0.45rem; padding: 0.35rem; cursor: pointer; border-radius: 0.35rem; }
.id-member-pick:hover { background: rgba(212, 175, 55, 0.15); }
.id-member-pick img { width: 26px; height: 26px; border-radius: 50%; }

.id-form-actions { margin-top: 0.85rem; }
.id-add-option-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }

@media (max-width: 720px) {
    .id-arena-columns {
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
    }
    .id-arena-column { max-width: none; }
    .id-col-stack-area { min-height: 110px; max-height: 180px; }

    .id-stakes-panel-inner {
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: min(78dvh, 520px);
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 1.25rem 1.25rem 0 0;
        transform: translateY(105%);
        box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
    }

    .id-stakes-panel--open .id-stakes-panel-inner { transform: translateY(0); }
}
