.ed-wrapper {
    width: 100%;
    max-width: var(--layout-max-width, 1200px);
    margin: 0 auto;
    font-family: var(--font-main, 'Inter', sans-serif);
    background: var(--surface-800, #0d0d0d);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px;
}

.ed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--surface-700, #1a1a1a);
    padding-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.ed-header-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ed-header-left-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ed-sponsor-logo {
    height: 32px;
}

.ed-status.status-active {
    color: #22c55e;
    font-weight: 700;
}

.ed-status.status-finished {
    color: var(--text-gray);
    font-weight: 700;
}

.ed-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-light);
    margin: 0;
    text-transform: uppercase;
}

.ed-status {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
}

.ed-status.badge-active {
    color: var(--brand-red, #f59e0b);
}

.ed-tabs {
    display: flex;
    gap: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 16px;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ed-tabs::-webkit-scrollbar {
    display: none;
}

.ed-tab {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    padding-top: 12px;
    padding-bottom: 12px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}

.ed-tab:hover {
    color: var(--text-light);
}

.ed-tab.active {
    color: var(--brand-red, #f59e0b);
}

.ed-tab.active::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand-red, #f59e0b);
}

.ed-content-area {
    display: flex;
    gap: 30px;
}

.ed-left {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ed-mt-10 {
    margin-top: 10px;
}

.ed-total-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 5px;
    text-align: center;
    width: 100%;
}

.ed-total-lbl {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 700;
    display: block;
}

.ed-total-val {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 900;
    display: block;
    margin-top: 4px;
}

.ed-actions {
    margin-top: 10px;
    text-align: center;
}

.ed-btn {
    padding: 9px 12px;
    border-radius: 10px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 45px;
    justify-content: center;
    transition: all .1s ease-in-out;
    background: var(--brand-red);
    background-image: var(--gradient, linear-gradient(135deg, var(--brand-red, #f59e0b), var(--accent-hover, #d97706)));
    color: var(--text-on-accent, #000);
    text-decoration: none;
    width: 100%;
}

.ed-btn:hover {
    box-shadow: 0 0 10px rgba(var(--primary), 0.3);
}

.ed-btn-disabled {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    cursor: not-allowed;
    background-image: none;
    box-shadow: none;
}

.ed-btn-disabled:hover {
    box-shadow: none;
}

.ed-btn-success {
    background: color-mix(in srgb, var(--success-color, #10b981) 12%, transparent);
    color: var(--success-color, #10b981);
    cursor: not-allowed;
    background-image: none;
    box-shadow: none;
}

.ed-btn-success:hover {
    box-shadow: none;
}

.ed-btn-danger {
    background: rgba(var(--primary), 0.1);
    color: var(--brand-red-soft, #fcd34d);
    cursor: not-allowed;
    background-image: none;
    box-shadow: none;
}

.ed-btn-danger:hover {
    box-shadow: none;
}

.ed-rules-text {
    color: rgba(255,255,255,0.8);
}

.ed-winner-rank-wide {
    min-width: 65px;
}

.ed-no-results {
    text-align: center;
    color: rgba(255,255,255,0.6);
    padding: 2.5rem 0;
}

.ed-image-wrap {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-900);
}

.ed-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.ed-dates {
    display: flex;
    gap: 12px;
}

.ed-date-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ed-date-lbl {
    font-size: 10px;
    color: var(--text-gray);
    font-weight: 600;
}

.ed-date-val {
    font-size: 13px;
    color: var(--text-on-dark, #f1f5f9);
    font-weight: 700;
}

.ed-right {
    flex-grow: 1;
    color: var(--text-secondary);
    font-size: 10px;
    line-height: 1.6;
}

.ed-rules-content p {
    margin-top: 0;
    margin-bottom: 20px;
}

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

.ed-rules-content strong {
    color: var(--text-light);
    font-weight: 700;
}

.ed-rules-content u {
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 3px;
}

.rule-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.rule-check i {
    color: var(--success-color);
    font-size: 20px;
    margin-top: 2px;
}

@media (max-width: 992px) {
    .ed-content-area {
        flex-direction: column;
    }

    .ed-left {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .ed-wrapper {
        padding: 20px;
    }

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

    .ed-tabs {
        gap: 16px;
    }
}

/* =========================================
   SONUÇLAR PANE
   ========================================= */
.ed-tab-pane {
    display: none;
}

.ed-tab-pane.active {
    display: block;
}

.ed-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.ed-podium-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    position: relative;
    width: 100px;
}

.ed-podium-card.rank-1 {
    width: 120px;
    padding: 24px 10px;
    border-color: rgba(var(--primary), 0.3);
    background: rgba(var(--primary), 0.05);
}

.ed-podium-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-red, #f59e0b);
    color: var(--text-light);
    font-weight: 800;
    font-size: 11px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.ed-podium-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.ed-podium-card.rank-1 .ed-podium-avatar {
    width: 60px;
    height: 60px;
}

.ed-podium-name {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 700;
    text-align: center;
    word-break: break-all;
}

.ed-winners-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ed-winner-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.ed-winner-rank {
    font-size: 11px;
    color: var(--text-secondary);
    width: 80px;
    font-weight: 600;
}

.ed-winner-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.ed-winner-name {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 700;
}

/* =========================================
   YATIRIM / KATILIM FORMU (ed-invest-*)
   ========================================= */
.ed-invest-modal__panel {
    position: relative;
    width: 100%;
    background: var(--card-bg, #161616);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 20px;
}

.ed-invest-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ed-invest-modal__head h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-on-dark, #f1f5f9);
}

.ed-invest-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.ed-invest-field label {
    font-size: 13px;
    color: var(--text-muted, #94a3b8);
    font-weight: 600;
}

.ed-invest-optional {
    font-weight: 500;
    color: var(--text-muted, #8a9aa6);
    font-size: 12px;
}

.ed-invest-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ed-invest-row .ed-invest-field {
    flex: 1;
    min-width: 140px;
}

.ed-invest-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--surface-700, #141414);
    color: var(--text-light, #f1f5f9);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    color-scheme: dark;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.ed-invest-input::placeholder {
    color: var(--text-muted, #8a9aa6);
}

.ed-invest-input:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

.ed-invest-input:focus {
    border-color: rgba(var(--primary), 0.65);
    background: var(--surface-600, #1a1a1a);
    box-shadow: 0 0 0 3px rgba(var(--primary), 0.15);
}

.ed-invest-select-wrap {
    position: relative;
}

.ed-invest-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.ed-invest-badge {
    margin-left: auto;
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(var(--primary), 0.16);
    color: var(--brand-red, #f59e0b);
}

.ed-invest-est {
    display: none;
    margin: 4px 0 16px;
    padding: 12px 15px;
    background: rgba(20, 202, 116, 0.1);
    border: 1px solid rgba(20, 202, 116, 0.2);
    border-radius: 12px;
    color: var(--success);
    font-weight: 600;
    font-size: 13px;
}

.ed-invest-est #estPointsVal {
    color: var(--brand-yellow);
    font-size: 14px;
    font-weight: 700;
}

.ed-invest-est #estXpVal {
    color: var(--info);
    font-size: 14px;
    font-weight: 700;
}

.ed-invest-modal__form .ed-btn {
    margin-top: 12px;
}

/* =========================================
   LİG SEVİYE ATLAMA KUTLAMASI
   ========================================= */
.lu-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: luFadeIn 0.25s ease;
}
.lu-modal.is-closing {
    animation: luFadeOut 0.25s ease forwards;
}
.lu-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
}
.lu-modal__panel {
    position: relative;
    width: 100%;
    max-width: 420px;
    text-align: center;
    padding: 36px 28px 24px;
    border-radius: 18px;
    background: var(--card-bg, #161616);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(var(--primary), 0.18);
    overflow: hidden;
}
.lu-modal__burst {
    position: absolute;
    top: -40px;
    left: 50%;
    width: 220px;
    height: 220px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(var(--primary), 0.35) 0%, transparent 70%);
    pointer-events: none;
}
.lu-modal__badge {
    position: relative;
    width: 78px;
    height: 78px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient, linear-gradient(135deg, var(--brand-red, #f59e0b), var(--accent-hover, #d97706)));
    color: var(--text-on-accent, #000);
    font-size: 36px;
    box-shadow: 0 0 24px rgba(var(--primary), 0.45);
    animation: luPop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.lu-modal__title {
    position: relative;
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-on-dark, #f1f5f9);
}
.lu-modal__text {
    position: relative;
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted, #94a3b8);
}
.lu-modal__actions {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.lu-modal__btn {
    width: 100%;
    text-decoration: none;
}
.lu-modal__dismiss {
    background: transparent;
    border: 0;
    color: var(--text-muted, #94a3b8);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px;
    font-family: inherit;
}
.lu-modal__dismiss:hover {
    color: var(--text-on-dark, #f1f5f9);
}
@keyframes luFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes luFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
@keyframes luPop {
    0% { transform: scale(0.4); }
    70% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* =========================================
   LİG: rozet renkleri + mobil takvim
   ========================================= */
.ed-content-area,
.ed-right,
.ed-cal {
    min-width: 0;
}

.ed-tab__short { display: none; }
.ed-tab__full { display: inline; }

.ed-sec-title {
    color: var(--text-on-dark, #f1f5f9);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin: 4px 0 10px;
}
.ed-sec-title--lg {
    font-size: 15px;
    text-transform: none;
    letter-spacing: 0;
}

.ed-image--cover {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

.ed-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.3;
}
.ed-badge--gold {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.38);
}
.ed-badge--silver {
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.16);
    border: 1px solid rgba(203, 213, 225, 0.3);
}
.ed-badge--platinum {
    color: #f1f5f9;
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.16), rgba(148, 163, 184, 0.08));
    border: 1px solid rgba(226, 232, 240, 0.32);
}
.ed-badge--premium {
    color: var(--brand-red, #f59e0b);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(217, 119, 6, 0.4);
}
.ed-badge--vip {
    color: #e9d5ff;
    background: rgba(139, 92, 246, 0.16);
    border: 1px solid rgba(167, 139, 250, 0.34);
}
.ed-badge--diamond {
    color: #67e8f9;
    background: rgba(6, 182, 212, 0.14);
    border: 1px solid rgba(34, 211, 238, 0.32);
}
.ed-badge--default {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ed-cal {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.ed-cal-week {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    min-width: 0;
}
.ed-cal-week summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-light);
}
.ed-cal-week summary::-webkit-details-marker { display: none; }
.ed-cal-week summary::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted, #94a3b8);
    border-bottom: 2px solid var(--text-muted, #94a3b8);
    transform: rotate(45deg);
    flex-shrink: 0;
    margin-top: -4px;
}
.ed-cal-week[open] summary::after {
    transform: rotate(-135deg);
    margin-top: 2px;
}
.ed-cal-week[open] summary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ed-cal-week__meta {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted, #94a3b8);
    white-space: nowrap;
}
.ed-cal-note {
    margin: 4px 0 0;
    font-size: 11px;
    color: var(--text-muted, #94a3b8);
    text-align: center;
}
.ed-cal-closed {
    padding: 12px;
    text-align: center;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #ff6b6b;
    background: rgba(255, 59, 48, 0.08);
    border: 1px solid rgba(255, 59, 48, 0.18);
}

.ed-cal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 8px;
    min-width: 0;
}
.ed-cal-week .ed-cal-grid {
    padding: 10px;
}

.ed-sponsor-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.ed-sponsor-chip__logo {
    width: auto;
    height: 28px;
    max-width: 72px;
    object-fit: contain;
    flex-shrink: 0;
    background: transparent;
    border-radius: 0;
    margin-right: auto;
}
.ed-sponsor-chip__logo--empty {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
}
.ed-cal-grid--today {
    grid-template-columns: 1fr;
}
.ed-cal-grid--today .ed-sponsor-chip {
    padding: 8px 12px;
}
.ed-cal-grid--today .ed-sponsor-chip__logo {
    height: 36px;
    max-width: 110px;
}
.ed-cal-grid--today .ed-sponsor-chip__logo--empty {
    width: 36px;
    height: 36px;
}
.ed-sponsor-chip__name {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ed-sponsor-chip--gold { border-color: rgba(245, 158, 11, 0.32); background: linear-gradient(180deg, rgba(245, 158, 11, 0.1), rgba(255, 255, 255, 0.02)); }
.ed-sponsor-chip--silver { border-color: rgba(203, 213, 225, 0.22); background: linear-gradient(180deg, rgba(148, 163, 184, 0.1), rgba(255, 255, 255, 0.02)); }
.ed-sponsor-chip--platinum { border-color: rgba(226, 232, 240, 0.28); background: linear-gradient(180deg, rgba(226, 232, 240, 0.08), rgba(255, 255, 255, 0.02)); }
.ed-sponsor-chip--premium { border-color: rgba(217, 119, 6, 0.38); background: linear-gradient(180deg, rgba(245, 158, 11, 0.08), rgba(255, 255, 255, 0.02)); }
.ed-sponsor-chip--vip { border-color: rgba(167, 139, 250, 0.32); background: linear-gradient(180deg, rgba(139, 92, 246, 0.1), rgba(255, 255, 255, 0.02)); }
.ed-sponsor-chip--diamond { border-color: rgba(34, 211, 238, 0.3); background: linear-gradient(180deg, rgba(6, 182, 212, 0.1), rgba(255, 255, 255, 0.02)); }

.ed-winner-row {
    flex-wrap: wrap;
    min-width: 0;
    gap: 8px 12px;
}
.ed-winner-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ed-invest-select-wrap .aff-select__value {
    min-width: 0;
    gap: 8px;
}
.ed-invest-select-wrap .aff-select__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .ed-left {
        max-width: none;
    }
}

@media (max-width: 600px) {
    .ed-wrapper {
        padding: 12px;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }
    .ed-tab__full { display: none; }
    .ed-tab__short { display: inline; }
    .ed-tabs {
        gap: 12px;
        margin-top: 8px;
        margin-bottom: 12px;
    }
    .ed-tab {
        font-size: 13px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .ed-content-area {
        gap: 16px;
    }
    .ed-date-box {
        padding: 10px 8px;
    }
    .ed-cal-grid {
        grid-template-columns: 1fr;
    }
    .ed-cal-week__meta {
        display: none;
    }
    .ed-image--cover {
        max-height: 140px;
    }
    .ed-podium {
        gap: 8px;
        margin-top: 16px;
        margin-bottom: 20px;
    }
    .ed-invest-modal__panel {
        padding: 14px;
    }
    .ed-invest-row .ed-invest-field {
        min-width: 100%;
    }
}