/* Ekinoks Theme */
:root {
    --bg: #0c0c0c;
    --bg-card: #161616;
    --bg-card-hover: #1c1c1c;
    --border: rgba(232, 160, 32, 0.25);
    --border-strong: rgba(232, 160, 32, 0.55);
    --orange: #e8a020;
    --orange-light: #f5b840;
    --orange-glow: rgba(232, 160, 32, 0.15);
    --text: #e0e0e0;
    --text-muted: #888;
    --text-dim: #666;
    --white: #fff;
    --radius: 8px;
    --radius-sm: 5px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --sidebar-w: 300px;
    --header-h: 72px;
    --max-w: 1520px;
    --layout-gap: 10px;
    --layout-pad: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    min-height: 100vh;
}

a {
    color: var(--orange);
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
}
a:hover { color: var(--orange-light); }

img { max-width: 100%; display: block; }

/* ── Header ── */
.ek-header {
    background: linear-gradient(180deg, #111 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.ek-header-inner {
    max-width: var(--max-w);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--layout-pad);
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ek-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.ek-brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--orange);
    object-fit: contain;
    background: #111;
    padding: 4px;
}

.ek-brand-text h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--orange);
    line-height: 1.2;
    margin: 0;
}

.ek-brand-text span {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.ek-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ek-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 13px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.ek-nav a:hover,
.ek-nav a.active {
    background: var(--orange-glow);
    color: var(--orange-light);
}

.ek-nav a i { font-size: 13px; opacity: 0.85; }

/* ── Layout ── */
.ek-wrapper {
    max-width: var(--max-w);
    width: 100%;
    margin: 0 auto;
    padding: var(--layout-pad);
}

.ek-grid {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr var(--sidebar-w);
    gap: var(--layout-gap);
    align-items: start;
}

/* ── Cards ── */
.ek-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: var(--layout-gap);
    box-shadow: var(--shadow);
}

.ek-card-head {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ek-card-head i { font-size: 14px; }

.ek-card-body { padding: 14px; }

/* ── Login ── */
.ek-login-form .ek-input {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: var(--radius-sm);
    color: var(--white);
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
    outline: none;
}

.ek-login-form .ek-input:focus {
    border-color: var(--orange);
}

.ek-login-form .ek-input::placeholder { color: var(--text-dim); }

.ek-btn {
    display: block;
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, var(--orange) 0%, #c8860a 100%);
    border: none;
    border-radius: var(--radius-sm);
    color: #111;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: filter 0.2s, transform 0.1s;
    text-align: center;
}

.ek-btn:hover { filter: brightness(1.1); color: #111; }
.ek-btn:active { transform: scale(0.98); }

.ek-btn-outline {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--orange);
    padding: 8px 12px;
    font-size: 12px;
}

.ek-btn-outline:hover { background: var(--orange-glow); color: var(--orange-light); }

.ek-forgot {
    display: block;
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    margin: 8px 0 12px;
}

.ek-forgot:hover { color: var(--orange); }

.ek-account-info {
    text-align: center;
    line-height: 1.8;
    font-size: 13px;
}

.ek-account-info b { color: var(--orange); }

.ek-account-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

/* ── Quick Access Grid ── */
.ek-quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ek-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 8px;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    cursor: pointer;
}

.ek-quick-item i {
    font-size: 18px;
    color: var(--orange);
}

.ek-quick-item:hover {
    border-color: var(--border-strong);
    color: var(--orange);
    background: var(--orange-glow);
}

/* ── Ranking ── */
.ek-rank-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.ek-rank-tab {
    flex: 1;
    padding: 9px 6px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.ek-rank-tab.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
}

.ek-rank-list { list-style: none; }

.ek-rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid #222;
    transition: background 0.2s;
}

.ek-rank-item:last-child { border-bottom: none; }
.ek-rank-item:hover { background: var(--bg-card-hover); }

.ek-rank-pos {
    width: 24px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
}

.ek-rank-pos.gold { color: #ffd700; }
.ek-rank-pos.silver { color: #c0c0c0; }
.ek-rank-pos.bronze { color: #cd7f32; }
.ek-rank-pos.num { color: var(--text-dim); font-size: 13px; font-weight: 600; }

.ek-rank-name {
    flex: 1;
    color: var(--text);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ek-rank-name a { color: var(--text); }
.ek-rank-name a:hover { color: var(--orange); }

.ek-rank-level {
    color: var(--orange);
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

/* ── Hero Slider ── */
.ek-hero {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: var(--layout-gap);
    position: relative;
    background: #000;
    aspect-ratio: 16 / 6;
    min-height: 260px;
}

.ek-hero .slides { position: relative; height: 100%; }

.ek-hero .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.ek-hero .slide.active { opacity: 1; }

.ek-hero .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ek-hero .slide-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #111 0%, #1a1200 100%);
    color: var(--text-dim);
    font-size: 14px;
}

.ek-hero-nav {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.ek-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: background 0.2s;
    border: none;
}

.ek-hero-dot.active { background: var(--orange); }

.ek-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border);
    color: var(--orange);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s;
}

.ek-hero:hover .ek-hero-arrow { opacity: 1; }
.ek-hero-arrow.prev { left: 10px; }
.ek-hero-arrow.next { right: 10px; }

/* ── News ── */
.ek-news-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.ek-news-tab {
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.ek-news-tab.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
}

.ek-news-panel { display: none; }
.ek-news-panel.active { display: block; }

.ek-news-item {
    padding: 14px 16px;
    border-bottom: 1px solid #222;
    transition: background 0.2s;
}

.ek-news-item:last-child { border-bottom: none; }
.ek-news-item:hover { background: var(--bg-card-hover); }

.ek-news-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.ek-news-title a { color: var(--text); }
.ek-news-title a:hover { color: var(--orange); }

.ek-news-excerpt {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ek-news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
}

.ek-news-date { color: var(--text-dim); }

.ek-news-tag {
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ek-news-tag.bakim { background: rgba(232,160,32,0.15); color: var(--orange); border: 1px solid var(--border); }
.ek-news-tag.etkinlik { background: rgba(100,200,100,0.1); color: #6dc86d; border: 1px solid rgba(100,200,100,0.3); }
.ek-news-tag.genel { background: rgba(100,150,255,0.1); color: #7aabff; border: 1px solid rgba(100,150,255,0.3); }

/* ── Stat Cards ── */
.ek-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: var(--layout-gap);
    transition: border-color 0.2s;
}

.ek-stat-card:hover { border-color: var(--border-strong); }

.ek-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--orange-glow);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    font-size: 18px;
    flex-shrink: 0;
}

.ek-stat-info { flex: 1; }

.ek-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.ek-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
}

/* ── Event Calendar ── */
.ek-event-list { list-style: none; }

.ek-event-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #222;
    transition: background 0.2s;
}

.ek-event-item:last-child { border-bottom: none; }
.ek-event-item:hover { background: var(--bg-card-hover); }

.ek-event-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--orange-glow);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    font-size: 13px;
    flex-shrink: 0;
}

.ek-event-info { flex: 1; min-width: 0; }

.ek-event-name {
    font-size: 12px;
    color: var(--text);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ek-event-time {
    font-size: 11px;
    color: var(--orange);
    margin-top: 2px;
}

.ek-event-frame {
    border: none;
    width: 100%;
    height: 280px;
    display: block;
}

/* ── Content Pages ── */
.ek-content-page .ek-card { margin-bottom: 0; }

.ek-page-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.ek-form-group { margin-bottom: 14px; }

.ek-form-group label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ek-form-group input,
.ek-form-group select,
.ek-form-group textarea {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: var(--radius-sm);
    color: var(--white);
    padding: 10px 12px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.ek-form-group input:focus,
.ek-form-group select:focus,
.ek-form-group textarea:focus { border-color: var(--orange); }

/* ── Alerts ── */
.Success-Box, .Danger-Box, .Info-Box, .Warning-Box {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    font-size: 13px;
}

.Success-Box { background: rgba(40,167,69,0.15); border: 1px solid rgba(40,167,69,0.4); color: #6dd87a; }
.Danger-Box  { background: rgba(220,53,69,0.15); border: 1px solid rgba(220,53,69,0.4); color: #f07080; }
.Info-Box    { background: rgba(23,162,184,0.15); border: 1px solid rgba(23,162,184,0.4); color: #5bc0de; }
.Warning-Box { background: rgba(255,193,7,0.15); border: 1px solid rgba(255,193,7,0.4); color: #ffc107; }

/* ── Rankings Table ── */
.ek-table {
    width: 100%;
    border-collapse: collapse;
}

.ek-table th {
    padding: 10px 12px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--orange);
    border-bottom: 1px solid var(--border);
    background: #111;
}

.ek-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #222;
    font-size: 13px;
    color: var(--text);
}

.ek-table tr:hover td { background: var(--bg-card-hover); }

.ek-table td a { color: var(--text); }
.ek-table td a:hover { color: var(--orange); }

/* ── Footer ── */
.ek-footer {
    background: #080808;
    border-top: 1px solid var(--border);
    margin-top: var(--layout-gap);
    padding: 32px var(--layout-pad) 24px;
}

.ek-footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.ek-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 24px;
}

.ek-footer-col { min-width: 0; }

.ek-footer-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--orange);
    white-space: nowrap;
}

.ek-footer-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(232, 160, 32, 0.45);
}

.ek-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ek-footer-links li + li { margin-top: 11px; }

.ek-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #b5a48a;
    transition: color 0.2s;
}

.ek-footer-links a::before {
    content: '–';
    color: var(--orange);
    font-weight: 700;
    line-height: 1;
}

.ek-footer-links a:hover { color: var(--orange-light); }

.ek-footer-copy {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(232, 160, 32, 0.12);
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.3px;
}

@media (max-width: 900px) {
    .ek-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
    .ek-footer { padding: 28px 12px 22px; }
    .ek-footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ── reCAPTCHA ── */
.g-recaptcha { margin: 10px 0; transform: scale(0.9); transform-origin: 0 0; }

/* ── Discord Widget ── */
.discord-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
}

/* ── Scroll to top ── */
#toTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--orange);
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    color: #111;
    font-size: 16px;
    z-index: 999;
    box-shadow: var(--shadow);
}

/* ── Language picker ── */
.languagepicker {
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: inline-block;
    padding: 0;
    height: 40px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: fixed;
    right: 0;
    top: 80px;
    z-index: 999;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.languagepicker:hover { height: auto; }
.languagepicker a { color: var(--text); text-decoration: none; }
.languagepicker li { display: block; padding: 0 12px; line-height: 40px; border-top: 1px solid #222; list-style: none; }
.languagepicker li:hover { background: var(--orange-glow); }
.languagepicker a:first-child li { border: none; }

/* ── Responsive ── */
@media (max-width: 1200px) {
    :root {
        --sidebar-w: 270px;
        --max-w: 100%;
    }
}

@media (max-width: 1100px) {
    .ek-grid { grid-template-columns: 250px 1fr 250px; }
}

@media (max-width: 900px) {
    .ek-grid { grid-template-columns: 1fr; }
    .ek-sidebar-left, .ek-sidebar-right { order: 2; }
    .ek-main { order: 1; }
    .ek-nav { display: none; }
    .ek-header-inner { justify-content: center; }
}

@media (max-width: 600px) {
    .ek-wrapper { padding: 8px; }
    .ek-quick-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Legacy page compatibility (profile, ranked, etc.) ── */
.page_article, #content_ajax { width: 100%; }
.panel-heading, .head { color: var(--orange); font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.form-control2, .select-box {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: var(--radius-sm);
    color: var(--white);
    padding: 10px 12px;
    font-size: 13px;
    outline: none;
}
.form-control2:focus, .select-box:focus { border-color: var(--orange); }
.btn, .btn-giris, .form-btn, .green-button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--orange) 0%, #c8860a 100%);
    border: none;
    border-radius: var(--radius-sm);
    color: #111;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}
.btn:hover, .btn-giris:hover, .form-btn:hover, .green-button:hover { filter: brightness(1.1); color: #111; }
.tablesorter, .sidebar_rank, table { width: 100%; border-collapse: collapse; }
.tablesorter th, .sidebar_rank th { padding: 10px 12px; text-align: left; font-size: 11px; text-transform: uppercase; color: var(--orange); border-bottom: 1px solid var(--border); background: #111; }
.tablesorter td, .sidebar_rank td { padding: 10px 12px; border-bottom: 1px solid #222; color: var(--text); font-size: 13px; }
.tablesorter tr:hover td, .sidebar_rank tr:hover td { background: var(--bg-card-hover); }
.main-text, .main-text-bg { color: var(--text); line-height: 1.7; }
.main-text-bg { padding: 16px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; }
.panel-buyuk, .panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.panel-body { padding: 16px; color: var(--text); }
aside#right { width: 100%; }

/* ── Logged-in Account Panel ── */
.ek-logged-panel { margin-bottom: 16px; }

.ek-field-row { margin-bottom: 10px; }
.ek-field-row label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    margin-bottom: 4px;
}
.ek-field-value {
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text);
}
.ek-field-muted { color: var(--text-muted); font-size: 12px; }

.ek-balance-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #222;
}
.ek-balance-row:last-of-type { border-bottom: none; }

.ek-balance-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--orange-glow);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    font-size: 14px;
    flex-shrink: 0;
}
.ek-balance-info { flex: 1; min-width: 0; }
.ek-balance-label { display: block; font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.ek-balance-val { display: block; font-size: 16px; font-weight: 700; color: var(--orange); }

.ek-btn-sm {
    padding: 5px 12px;
    background: linear-gradient(135deg, var(--orange), #c8860a);
    border: none;
    border-radius: var(--radius-sm);
    color: #111;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    text-transform: uppercase;
}
.ek-btn-sm:hover { filter: brightness(1.1); color: #111; }

.ek-btn-logout {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ── Accordion Menu (Ekinoks2 style) ── */
.ek-card-menu { margin-bottom: 16px; }
.ek-card-menu .ek-card-body { background: #111; }

.ek-accordion { display: flex; flex-direction: column; }

.ek-acc-item {
    border-bottom: 1px solid #1e1e1e;
}
.ek-acc-item:last-child { border-bottom: none; }

.ek-acc-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    position: relative;
}

.ek-acc-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--orange);
    white-space: nowrap;
    flex-shrink: 0;
}

.ek-acc-lined .ek-acc-title {
    flex: 0 0 auto;
}

.ek-acc-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232,160,32,0.5), transparent);
    min-width: 10px;
}

.ek-acc-lined .ek-acc-line:first-of-type {
    background: linear-gradient(90deg, transparent, rgba(232,160,32,0.4));
}
.ek-acc-lined .ek-acc-line:last-of-type {
    background: linear-gradient(90deg, rgba(232,160,32,0.4), transparent);
}

.ek-acc-arrow {
    margin-left: auto;
    font-size: 10px;
    color: var(--orange);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.ek-acc-item.open .ek-acc-arrow { transform: rotate(180deg); }

.ek-acc-body {
    display: none;
    background: #0d0d0d;
    padding: 6px 0 10px;
    border-top: 1px solid #1a1a1a;
}
.ek-acc-item.open .ek-acc-body { display: block; }

.ek-acc-body a {
    display: block;
    padding: 9px 16px 9px 28px;
    font-size: 13px;
    color: #b0b0b0;
    position: relative;
    transition: color 0.2s, background 0.2s;
    border-bottom: 1px solid #151515;
}
.ek-acc-body a:last-child { border-bottom: none; }

.ek-acc-body a::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
    opacity: 0.7;
}

.ek-acc-body a:hover,
.ek-acc-body a.active {
    color: var(--orange);
    background: rgba(232,160,32,0.05);
}
.ek-acc-body a:hover::before,
.ek-acc-body a.active::before {
    opacity: 1;
    box-shadow: 0 0 6px var(--orange);
}

/* ── Center Grid (News) ── */
.ek-center-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--layout-gap);
}
.ek-card-news, .ek-card-events { margin-bottom: 0; }
.ek-event-frame { height: 340px; }

.ek-rank-class {
    color: var(--orange);
    font-size: 13px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.ek-news-more {
    margin-left: auto;
    font-size: 11px;
    color: var(--orange);
    opacity: 0.8;
}
.ek-news-more:hover { opacity: 1; }

/* ── Videos ── */
.ek-video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.ek-video-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 11px;
    transition: border-color 0.2s, color 0.2s;
}
.ek-video-item:hover { border-color: var(--border-strong); color: var(--orange); }
.ek-video-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: #0a0a0a;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--orange);
    opacity: 0.7;
}
.ek-video-item:hover .ek-video-thumb { opacity: 1; }

/* ── Login Overlay ── */
.ek-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ek-overlay-box {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    padding: 40px 50px;
    text-align: center;
    min-width: 320px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px var(--orange-glow);
}
.ek-overlay-icon { margin-bottom: 20px; min-height: 60px; display: flex; align-items: center; justify-content: center; }
.ek-overlay-box h3 { font-size: 20px; color: var(--orange); margin-bottom: 8px; font-weight: 700; }
.ek-overlay-box p { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

.ek-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid #333;
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: ek-spin 0.8s linear infinite;
}
@keyframes ek-spin { to { transform: rotate(360deg); } }

.ek-icon-success { font-size: 52px; color: #4caf50; animation: ek-pop 0.4s ease; }
.ek-icon-error   { font-size: 52px; color: #f44336; }

@keyframes ek-pop {
    0%   { transform: scale(0); opacity: 0; }
    70%  { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.ek-overlay-bar {
    height: 3px;
    background: #222;
    border-radius: 3px;
    overflow: hidden;
}
.ek-overlay-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--orange), var(--orange-light));
    border-radius: 3px;
    width: 0;
    transition: width 1.5s ease;
}

@media (max-width: 900px) {
    .ek-center-grid { grid-template-columns: 1fr; }
    .ek-video-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Download Modal ── */
body.ek-modal-open { overflow: hidden; }

.ek-download-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ek-download-overlay.open {
    opacity: 1;
    visibility: visible;
}

.ek-download-dialog {
    position: relative;
    width: 100%;
    max-width: 720px;
    background: #1a1a1a;
    border: 1px solid rgba(232, 160, 32, 0.35);
    border-radius: 12px;
    padding: 28px 28px 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    max-height: 90vh;
    overflow-y: auto;
}

.ek-download-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.ek-download-close:hover {
    color: var(--orange);
    background: rgba(232, 160, 32, 0.08);
}

.ek-download-heading {
    font-size: 24px;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-right: 36px;
}

.ek-download-lead {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 22px;
}

.ek-download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}

.ek-download-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 12px 14px;
    background: #111;
    border: 1px solid rgba(232, 160, 32, 0.45);
    border-radius: 8px;
    color: var(--orange);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
}

.ek-download-item:hover {
    background: rgba(232, 160, 32, 0.08);
    border-color: var(--orange);
    color: var(--orange-light);
}

.ek-download-item:active { transform: scale(0.98); }

.ek-download-item-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ek-download-item-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ek-download-item-icon .ek-download-fallback { display: none; }

.ek-download-item-icon.ek-icon-fallback img { display: none; }

.ek-download-item-icon.ek-icon-fallback .ek-download-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--orange);
}

.ek-download-item-icon > .fas:not(.ek-download-fallback) {
    font-size: 18px;
    color: var(--orange);
}

.ek-download-item-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1.3;
}

.ek-download-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #777;
    padding: 24px 12px;
    border: 1px dashed #333;
    border-radius: 8px;
}

.ek-download-foot {
    text-align: center;
    color: #888;
    font-size: 12px;
    line-height: 1.8;
}

.ek-download-date {
    color: var(--orange);
    font-weight: 600;
    margin-bottom: 6px;
}

@media (max-width: 560px) {
    .ek-download-grid { grid-template-columns: 1fr; }
    .ek-download-dialog { padding: 22px 18px 18px; }
}

/* ── Karakterlerim ── */
.ek-char-card .ek-card-body { padding: 18px; }

.ek-char-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 18px;
    border-bottom: 1px solid #2a2a2a;
}
.ek-char-tab {
    flex: 1;
    padding: 12px 10px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.ek-char-tab.active,
.ek-char-tab:hover {
    color: var(--orange);
    border-bottom-color: var(--orange);
}

.ek-char-panel { display: none; }
.ek-char-panel.active { display: block; }

.ek-char-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #222;
}
.ek-char-name {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ek-char-level {
    font-size: 13px;
    color: var(--text-muted);
}
.ek-btn-bug {
    padding: 8px 16px;
    font-size: 12px;
    white-space: nowrap;
    background: linear-gradient(180deg, #f0a030, #c87810);
    border: 1px solid #e8a020;
}

.ek-char-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 18px;
    align-items: start;
}

.ek-char-visual {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ek-char-render-wrap {
    background: linear-gradient(180deg, #1a1a1a 0%, #101010 100%);
    border: 1px solid #2a2a2a;
    border-radius: var(--radius);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ek-char-render {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.ek-char-meta {
    background: #141414;
    border: 1px solid #252525;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}
.ek-char-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #1e1e1e;
    font-size: 12px;
}
.ek-char-meta-row:last-child { border-bottom: none; }
.ek-char-meta-row span { color: var(--text-muted); }
.ek-char-meta-row strong { color: #ddd; text-align: right; }

.ek-char-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.ek-char-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #141414;
    border: 1px solid #252525;
    border-radius: var(--radius-sm);
    padding: 14px;
    min-height: 72px;
}
.ek-char-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(232,160,32,0.12);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ek-char-stat-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.ek-char-stat-val {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--orange);
    line-height: 1.3;
    word-break: break-word;
}

.ek-char-countdown {
    text-align: center;
    padding: 20px;
}
.ek-char-countdown span {
    display: block;
    font-size: 42px;
    font-weight: 700;
    color: var(--orange);
}
.ek-char-ban-text {
    text-align: center;
    color: #bbb;
    margin-top: 10px;
}

@media (max-width: 900px) {
    .ek-char-layout { grid-template-columns: 1fr; }
    .ek-char-stats { grid-template-columns: 1fr; }
    .ek-char-topbar { flex-direction: column; align-items: flex-start; }
}
