/* ═══════════ KLAN YÖNETİM PANELİ ═══════════
   Turnuva platformunun (turnuva.pubgmobiletr.com) tasarım dili: karbon
   yüzeyler, tek vurgu rengi amber, başlıklar Archivo, metin Inter.
   Değerler turnuvanın globals.css / admin.css / auth.css dosyalarından
   alındı; orada değişirse burada da güncellenmeli. */

/* ─── Yazı tipleri (yerel; latin + latin-ext Türkçe harfler için) ─── */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/archivo-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Kanit 900 yalnız giriş ekranının büyük başlığında */
@font-face {
    font-family: "Kanit";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("../fonts/kanit-900-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Kanit";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("../fonts/kanit-900-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Kanit";
    font-style: italic;
    font-weight: 900;
    font-display: swap;
    src: url("../fonts/kanit-900i-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Kanit";
    font-style: italic;
    font-weight: 900;
    font-display: swap;
    src: url("../fonts/kanit-900i-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ─── Değişkenler ─── */
:root {
    color-scheme: dark;

    --bg: #08090A;
    --surface: #0E0F12;
    --surface-2: #15171B;
    --surface-3: #1C1F24;
    --rail-bg: #0B0C0E;

    --line-1: rgba(255, 255, 255, 0.07);
    --line-2: rgba(255, 255, 255, 0.11);

    --ink-0: #F2F4F7;
    --ink-1: #C4CBD6;
    --ink-2: #868D9A;
    --ink-3: #5E656F;

    --amber: #F2AA00;
    --amber-light: #FFB81C;
    --amber-soft: rgba(242, 170, 0, 0.12);
    --green: #4ADE80;
    --red: #F87171;

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 22px;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
    --shadow-2: 0 2px 4px rgba(0, 0, 0, 0.4), 0 24px 60px -18px rgba(0, 0, 0, 0.8);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    --rail-w: 76px;
    --header-h: 56px;

    --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-head: "Archivo", "Inter", system-ui, sans-serif;
    --font-display: "Kanit", "Archivo", sans-serif;
}

/* ─── Temel ─── */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink-0);
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 1.5;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ortam dokusu: tepeden çok düşük dozda amber sıcaklık + ince film
   greni; düz siyah alanlar ölü görünmesin */
body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
body::before {
    background:
        radial-gradient(1200px 600px at 50% -10%, rgba(242, 170, 0, 0.035) 0%, transparent 70%),
        radial-gradient(900px 700px at 100% 100%, rgba(255, 255, 255, 0.012) 0%, transparent 70%);
}
body::after {
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
[hidden] { display: none !important; }

:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 2px;
}

::selection { background: rgba(242, 170, 0, 0.3); color: #fff; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.15); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Lucide ikonları (24px ızgara, 1.75 çizgi) */
.i {
    width: 18px;
    height: 18px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ─── Düğmeler ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--r-md);
    background: transparent;
    font-size: 13.5px;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease,
                box-shadow 0.16s ease, transform 0.16s var(--ease);
}
.btn .i { width: 16px; height: 16px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.btn-primary {
    background: var(--amber);
    color: #08090A;
    font-weight: 750;
    box-shadow: 0 10px 26px -14px rgba(242, 170, 0, 0.75);
}
.btn-primary:hover:not(:disabled) {
    background: var(--amber-light);
    transform: translateY(-1px);
    box-shadow: 0 14px 32px -14px rgba(242, 170, 0, 0.85);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--line-2);
    color: var(--ink-0);
}
.btn-secondary:hover:not(:disabled) { background: rgba(255, 255, 255, 0.09); }

.btn-ghost { color: var(--ink-1); }
.btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.06); color: var(--ink-0); }

.btn-approve {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.22);
    color: var(--green);
}
.btn-approve:hover:not(:disabled) { background: rgba(34, 197, 94, 0.17); }

.btn-reject {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.22);
    color: var(--red);
}
.btn-reject:hover:not(:disabled) { background: rgba(239, 68, 68, 0.17); }

.btn-sm {
    height: 30px;
    padding: 0 10px;
    gap: 6px;
    border-radius: 9px;
    font-size: 12.5px;
}
.btn-sm .i { width: 14px; height: 14px; }

.btn-icon { width: 38px; padding: 0; }
.btn-icon.btn-sm { width: 30px; }

.is-busy .i-spin { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Form alanları ─── */
.field { display: flex; flex-direction: column; gap: 7px; }

.label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.input,
.select {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line-2);
    border-radius: var(--r-md);
    color: var(--ink-0);
    font-size: 13.5px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.input:hover,
.select:hover { background: rgba(255, 255, 255, 0.055); }
.input:focus,
.select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(242, 170, 0, 0.14);
}
.input::placeholder { color: var(--ink-3); }
.input-lg { height: 46px; padding: 0 15px; font-size: 14.5px; }

.select {
    width: auto;
    padding-right: 34px;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23868D9A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    background-size: 14px;
}
.select option { background: var(--surface-2); color: var(--ink-0); }

/* ─── Uyarılar ─── */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 13px;
    border-radius: var(--r-md);
    font-size: 13px;
    line-height: 1.45;
}
.alert .i { width: 16px; height: 16px; margin-top: 1px; }
.alert-error {
    background: rgba(239, 68, 68, 0.09);
    border: 1px solid rgba(239, 68, 68, 0.26);
    color: var(--red);
}

/* ═══════════ GİRİŞ ═══════════
   Solda sinematik görsel, sağda sakin form paneli (turnuvanın
   giriş ekranıyla aynı düzen). */
.auth-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(460px, 0.75fr);
}

.auth-art {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

/* Görselin mor tonu amber'le çarpışıyor: önce doygunluk düşer, sonra
   amber/ember derecelendirme basılır (turnuva ana sayfasıyla aynı) */
.auth-art-img {
    position: absolute;
    inset: 0;
    z-index: -3;
    background: url("../bg.jpg") 50% 30% / cover no-repeat;
    filter: saturate(0.42) contrast(1.12) brightness(0.7);
    transform: scale(1.04);
}
.auth-art-grade {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(118deg, #7A2E00 0%, #F2AA00 46%, #FF7A18 100%);
    mix-blend-mode: overlay;
    opacity: 0.58;
}
.auth-art-scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(0deg, rgba(8, 9, 10, 0.96) 0%, rgba(8, 9, 10, 0.34) 52%, rgba(8, 9, 10, 0.5) 100%),
        linear-gradient(90deg, rgba(8, 9, 10, 0.6) 0%, transparent 34%, rgba(8, 9, 10, 0.85) 100%);
}

.auth-art-inner {
    padding: clamp(32px, 5vw, 64px);
    max-width: 640px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 10.5px;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.kicker-line::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--amber);
}

.auth-art .kicker { margin-bottom: 18px; }

.auth-art-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 4.6vw, 70px);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--ink-0);
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35), 0 16px 44px rgba(0, 0, 0, 0.55);
    margin-bottom: 26px;
}
.auth-art-title span { display: block; }
.auth-art-title span + span { margin-top: 0.08em; }
.auth-art-title-strong {
    /* fit-content: gradyan başlığın tamamına değil harflere otursun */
    width: fit-content;
    font-style: italic;
    padding: 0.04em 0.06em 0.04em 0;
    background: linear-gradient(100deg, #FFD166 0%, var(--amber) 55%, #FF8A1F 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-art-points {
    list-style: none;
    margin: 0;
    padding: 20px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--line-1);
}
.auth-art-points li {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 13.5px;
    color: var(--ink-1);
}
.auth-art-points .i { width: 17px; height: 17px; color: var(--amber); }

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px clamp(24px, 3.6vw, 56px);
    background-color: var(--surface);
    background-image: radial-gradient(120% 75% at 0% 36%, rgba(242, 170, 0, 0.07) 0%, transparent 62%);
    border-left: 1px solid var(--line-1);
}

.auth-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}
.auth-brand img { width: 84px; height: auto; display: block; }
.auth-brand-text {
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 1.45;
    color: var(--ink-2);
    padding-left: 13px;
    border-left: 1px solid var(--line-2);
}

.auth-title {
    font-family: var(--font-head);
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.022em;
    margin-bottom: 7px;
}
.auth-subtitle {
    margin: 0 0 24px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ink-2);
}

.auth-form { display: flex; flex-direction: column; gap: 15px; }
.auth-form .alert { margin-bottom: 2px; }

.auth-submit {
    width: 100%;
    height: 48px;
    margin-top: 8px;
    font-size: 14.5px;
    box-shadow: 0 10px 30px -12px rgba(242, 170, 0, 0.7);
}

.auth-footer {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--line-1);
}
.partners {
    display: flex;
    align-items: center;
    gap: 22px;
}
.partners img {
    display: block;
    height: 16px;
    width: auto;
    opacity: 0.45;
    filter: grayscale(1);
}
.partners img.partner-tall { height: 22px; }
.auth-note {
    margin: 0;
    font-size: 11px;
    line-height: 1.55;
    color: var(--ink-3);
}
.auth-note a { color: var(--ink-2); text-underline-offset: 2px; }
.auth-note a:hover { color: var(--amber); }

/* Dar ekran: görsel paneli düşer, form tek başına ortalanır */
@media (max-width: 1040px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-art { display: none; }
    .auth-panel {
        border-left: 0;
        background-image:
            radial-gradient(90% 55% at 50% 0%, rgba(242, 170, 0, 0.1) 0%, transparent 62%),
            radial-gradient(70% 50% at 50% 100%, rgba(255, 122, 24, 0.07) 0%, transparent 60%);
    }
}

/* ═══════════ PANEL KABUĞU ═══════════ */
.shell {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
}

/* Sol ray: 76px ikon navigasyonu */
.rail {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    width: var(--rail-w);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 14px;
    background: var(--rail-bg);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.rail-logo {
    width: 44px;
    height: 44px;
    margin: 14px 0 10px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.2s, background 0.2s;
}
.rail-logo:hover { border-color: rgba(242, 170, 0, 0.45); background: var(--surface-3); }
.rail-logo img { width: 30px; height: auto; display: block; }

.rail-sep {
    width: 32px;
    height: 1px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.06);
}

.rail-item {
    position: relative;
    width: 60px;
    margin: 2px 0;
    padding: 10px 2px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    border-radius: 12px;
    color: var(--ink-2);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    transition: background 0.16s ease, color 0.16s ease;
}
.rail-item .i { width: 20px; height: 20px; }
.rail-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--ink-1); }
.rail-item.active { background: rgba(242, 170, 0, 0.1); color: var(--amber); font-weight: 700; }
.rail-item.active::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 50%;
    width: 3px;
    height: 22px;
    transform: translateY(-50%);
    border-radius: 0 3px 3px 0;
    background: var(--amber);
}
.rail-bottom { margin-top: auto; }

.main {
    flex: 1;
    min-width: 0;
    margin-left: var(--rail-w);
    display: flex;
    flex-direction: column;
}

/* Üst bar: ince, cam */
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--header-h);
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(8, 9, 10, 0.72);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-logo { display: none; }
.topbar-logo img { width: 30px; height: auto; display: block; }

.crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 13px;
    color: var(--ink-2);
    white-space: nowrap;
}
.crumbs .i { width: 14px; height: 14px; color: var(--ink-3); }
.crumbs strong { color: var(--ink-0); font-weight: 600; }

.topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-chip {
    height: 34px;
    padding: 0 12px 0 4px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}
.avatar {
    width: 28px;
    height: 28px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber) 0%, #3C422F 100%);
    color: #0A0A10;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.15; }
.user-name {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
}
.user-role {
    margin-top: 1px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--amber);
}

.page {
    flex: 1;
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    padding: 36px clamp(20px, 4vw, 56px) 72px;
}

/* ─── Sayfa başlığı ─── */
.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.page-head .kicker { color: var(--amber); margin-bottom: 10px; }
.page-title {
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 750;
    letter-spacing: -0.022em;
    line-height: 1.15;
}
.page-sub {
    margin: 6px 0 0;
    max-width: 640px;
    font-size: 13.5px;
    color: var(--ink-2);
}
.page > .alert { margin-bottom: 20px; }

/* ─── Durum kartları (aynı zamanda süzgeç) ─── */
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.stat {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
    text-align: left;
    border: 1px solid transparent;
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 1px 2px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s var(--ease);
}
.stat:hover { background: #121317; }
.stat[aria-pressed="true"] {
    border-color: rgba(242, 170, 0, 0.42);
    background: linear-gradient(180deg, rgba(242, 170, 0, 0.07) 0%, rgba(242, 170, 0, 0) 70%), var(--surface);
}

.stat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.stat-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.stat-dot-pending { background: var(--amber); box-shadow: 0 0 0 3px rgba(242, 170, 0, 0.16); }
.stat-dot-approved { background: var(--green); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14); }
.stat-dot-rejected { background: var(--red); box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14); }

.stat-value {
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}

/* ─── Araç çubuğu ─── */
.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.search {
    position: relative;
    flex: 1 1 300px;
    max-width: 440px;
}
.search .i {
    position: absolute;
    left: 12px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    color: var(--ink-2);
    pointer-events: none;
}
.search .input { padding-left: 36px; padding-right: 40px; }
.search kbd {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-2);
    border-radius: 6px;
    font-family: inherit;
    font-size: 11px;
    color: var(--ink-3);
    pointer-events: none;
}
.search .input:focus ~ kbd,
.search .input:not(:placeholder-shown) ~ kbd { display: none; }
@media (hover: none) { .search kbd { display: none; } }

.toolbar-meta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--ink-2);
}

/* ─── Tablo ─── */
.table-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-1);
}
.table-scroll { overflow-x: auto; }

/* Sabit sütunlar: sayfa ya da süzgeç değişince genişlikler kaymasın; klan
   sütunu kalan alanı alır, uzun ad üç noktayla kısalır */
.data-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
    table-layout: fixed;
}
.col-discord { width: 176px; }
.col-oyun { width: 124px; }
.col-platform { width: 136px; }
.col-durum { width: 136px; }
.col-tarih { width: 148px; }
.col-islem { width: 216px; }

.data-table th {
    padding: 11px 16px;
    text-align: left;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-2);
    background: rgba(255, 255, 255, 0.015);
    border-bottom: 1px solid var(--line-1);
}
.data-table th.ta-right { text-align: right; }

.th-sort {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    color: inherit;
    cursor: pointer;
}
.th-sort:hover { color: var(--ink-0); }
.th-sort .i { width: 13px; height: 13px; opacity: 0.45; }
th[aria-sort] .th-sort { color: var(--ink-0); }
th[aria-sort] .th-sort .i { opacity: 1; color: var(--amber); }
th[aria-sort="ascending"] .th-sort .i { transform: rotate(180deg); }

.data-table td {
    padding: 12px 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--line-1);
    font-size: 13px;
    color: var(--ink-1);
}
.data-table tbody tr { transition: background 0.12s ease; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.022); }
.data-table tbody tr.is-last td { border-bottom: 0; }

/* İncelemedeki satır: soldan amber şerit */
.data-table tr.is-locked { background: rgba(242, 170, 0, 0.035); }
.data-table tr.is-locked td:first-child { box-shadow: inset 3px 0 0 var(--amber); }

.num {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.data-table td:empty::before,
.fact dd:empty::before { content: "—"; color: var(--ink-3); }
.cell-date { color: var(--ink-2); }
.cell-empty { color: var(--ink-3); }

.clan-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.clan-logo {
    width: 38px;
    height: 38px;
    flex: none;
    padding: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: var(--surface-3);
    cursor: zoom-in;
    transition: border-color 0.16s ease, transform 0.16s var(--ease);
}
button.clan-logo:hover { border-color: rgba(242, 170, 0, 0.5); transform: scale(1.04); }
.clan-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clan-logo-empty {
    cursor: default;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 750;
    color: var(--ink-2);
    text-transform: uppercase;
}

.clan-meta { min-width: 0; flex: 1; }
.clan-name {
    display: block;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    font-size: 13.5px;
    font-weight: 650;
    color: var(--ink-0);
    cursor: pointer;
    transition: color 0.16s ease;
}
.clan-name:hover { color: var(--amber); }

.lock-note {
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: var(--amber);
}
.lock-note .i { width: 12px; height: 12px; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.badge-pending { background: rgba(242, 170, 0, 0.14); color: #FFD368; }
.badge-approved { background: rgba(34, 197, 94, 0.12); color: var(--green); }
.badge-rejected { background: rgba(239, 68, 68, 0.12); color: var(--red); }

.actions { text-align: right; white-space: nowrap; }
.actions .btn + .btn { margin-left: 6px; }

.table-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-top: 1px solid var(--line-1);
    font-size: 12.5px;
    color: var(--ink-2);
}
.page-size { display: flex; align-items: center; gap: 10px; }
.table-foot .select { height: 32px; font-size: 12.5px; border-radius: 9px; }

.pager { display: flex; align-items: center; gap: 4px; }
.pager button {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    font-size: 12.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--ink-1);
    cursor: pointer;
}
.pager button .i { width: 15px; height: 15px; }
.pager button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.05); }
.pager button[aria-current="page"] {
    background: var(--amber-soft);
    border-color: rgba(242, 170, 0, 0.3);
    color: var(--amber);
}
.pager button:disabled { opacity: 0.35; cursor: default; }
.pager-gap { min-width: 20px; text-align: center; color: var(--ink-3); }

/* ─── Boş durum ─── */
.empty {
    padding: 64px 24px;
    text-align: center;
    color: var(--ink-2);
    font-size: 13px;
}
.empty-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--surface-2);
    color: var(--ink-2);
}
.empty-icon .i { width: 20px; height: 20px; }
.empty-title {
    margin-bottom: 4px;
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 700;
    color: var(--ink-0);
}
.empty .btn { margin-top: 16px; }

/* ═══════════ PENCERELER ═══════════ */
dialog { color: var(--ink-0); }
dialog::backdrop {
    background: rgba(5, 5, 9, 0.76);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.modal {
    width: min(640px, calc(100vw - 32px));
    max-height: min(88vh, 880px);
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line-2);
    border-radius: var(--r-xl);
    background: var(--surface);
    box-shadow: var(--shadow-2);
}
.modal[open] {
    display: flex;
    flex-direction: column;
    animation: modal-in 0.22s var(--ease);
}
@keyframes modal-in {
    from { opacity: 0; transform: translateY(8px) scale(0.985); }
    to { opacity: 1; transform: none; }
}

.modal-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 22px 18px 24px;
    border-bottom: 1px solid var(--line-1);
}
.modal-head .clan-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 18px;
    cursor: default;
}
.modal-head-text { min-width: 0; flex: 1; }
.modal-title {
    margin-bottom: 7px;
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.modal-sub {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--ink-2);
}
.modal-sub .i { width: 13px; height: 13px; color: var(--amber); }
.modal-sub span { display: inline-flex; align-items: center; gap: 5px; }

.modal-close {
    align-self: flex-start;
    width: 32px;
    height: 32px;
    flex: none;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--ink-3);
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease;
}
.modal-close:hover { background: var(--surface-3); color: var(--ink-0); }

.modal-body {
    padding: 20px 24px 22px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.facts {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.fact {
    min-width: 0;
    padding: 11px 12px 11px 13px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-radius: var(--r-md);
    background: var(--surface-2);
}
.fact > .i { width: 16px; height: 16px; color: var(--ink-2); }
.fact-text { min-width: 0; flex: 1; }
.fact dt {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.fact dd {
    margin: 2px 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13.5px;
    font-variant-numeric: tabular-nums;
    color: var(--ink-0);
}
.fact .btn { flex: none; color: var(--ink-2); }
.fact .btn:hover { color: var(--ink-0); }

.section-label {
    margin-bottom: 8px;
    font-size: 10.5px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.detail-text {
    max-height: 240px;
    overflow: auto;
    padding: 12px 14px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ink-1);
    border: 1px solid var(--line-1);
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.025);
}
.detail-text:empty::before { content: "Belirtilmemiş"; color: var(--ink-3); }

.modal-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 14px 24px;
    border-top: 1px solid var(--line-1);
    background: rgba(255, 255, 255, 0.015);
}
.modal-hint {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ink-2);
}
.modal-hint .i { width: 14px; height: 14px; }

/* Logo büyütme */
.lightbox {
    max-width: 92vw;
    max-height: 90vh;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
}
.lightbox[open] { animation: modal-in 0.22s var(--ease); }
.lightbox img {
    display: block;
    /* Küçük logolar da okunur boyutta görünsün */
    min-width: min(360px, 80vw);
    max-width: min(92vw, 720px);
    max-height: 84vh;
    border-radius: var(--r-lg);
    background: var(--surface-2);
    box-shadow: var(--shadow-2);
}
.lightbox .modal-close {
    position: absolute;
    top: -14px;
    right: -14px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    background: var(--surface-3);
    color: var(--ink-0);
}

/* ─── Bildirimler ─── */
.toast-stack {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    width: min(92vw, 380px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 12px 12px 14px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-md);
    background: var(--surface-2);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
    font-size: 13.5px;
    line-height: 1.45;
    animation: toast-in 0.25s var(--ease);
}
.toast > .i { width: 18px; height: 18px; margin-top: 1px; }
.toast-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.toast-success { border-left: 3px solid var(--green); }
.toast-success > .i { color: var(--green); }
.toast-error { border-left: 3px solid var(--red); }
.toast-error > .i { color: var(--red); }
.toast-info { border-left: 3px solid var(--amber); }
.toast-info > .i { color: var(--amber); }
.toast-close {
    padding: 2px;
    border: 0;
    background: none;
    color: var(--ink-3);
    cursor: pointer;
    display: grid;
}
.toast-close .i { width: 14px; height: 14px; }
.toast-close:hover { color: var(--ink-0); }
.toast.is-leaving { opacity: 0; transform: translateY(6px); transition: opacity 0.2s ease, transform 0.2s ease; }
@keyframes toast-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

/* ═══════════ DAR EKRAN ═══════════ */
@media (max-width: 1100px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .rail { display: none; }
    .main { margin-left: 0; }
    .topbar { padding: 0 14px; gap: 10px; }
    .topbar-logo { display: block; }
    .page { padding: 22px 14px 40px; }
    .page-title { font-size: 22px; }
    .toolbar-meta { margin-left: 0; }
}

/* Telefonda tablo kartlara dönüşür: klan + durum, platform + tarih,
   altta düğmeler. Discord/oyun ID ayrıntı penceresinde. */
@media (max-width: 720px) {
    .data-table,
    .data-table tbody { display: block; min-width: 0; }
    .data-table thead,
    .data-table td:nth-child(2),
    .data-table td:nth-child(3) { display: none; }
    .data-table tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px 12px;
        padding: 14px 16px;
        border-bottom: 1px solid var(--line-1);
    }
    .data-table tr.is-last { border-bottom: 0; }
    .data-table td { display: block; padding: 0; border: 0; }
    .data-table tr.is-locked { box-shadow: inset 3px 0 0 var(--amber); }
    .data-table tr.is-locked td:first-child { box-shadow: none; }
    .data-table td:nth-child(1) { grid-area: 1 / 1; }
    .data-table td:nth-child(5) { grid-area: 1 / 2; justify-self: end; }
    .data-table td:nth-child(4) { grid-area: 2 / 1; padding-left: 50px; font-size: 12px; color: var(--ink-2); }
    .data-table td:nth-child(6) { grid-area: 2 / 2; font-size: 12px; text-align: right; }
    .data-table td.actions { grid-area: 3 / 1 / 4 / 3; display: flex; gap: 8px; text-align: left; }
    .data-table td.actions .btn { flex: 1; height: 34px; }
    .data-table td.actions .btn + .btn { margin-left: 0; }
}

@media (max-width: 560px) {
    .crumbs .crumb-root,
    .crumbs .crumb-sep,
    .user-meta { display: none; }
    .user-chip { padding: 0 3px; }
    .stats { gap: 10px; }
    .stat { padding: 14px; }
    .stat-value { font-size: 24px; }
    .page-head .btn { width: 100%; }
    .facts { grid-template-columns: 1fr; }
    .modal-foot .modal-hint { width: 100%; }
    .modal-foot .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
