:root {
    --bg: #07100d;
    --panel: #0e1a15;
    --line: rgba(255, 255, 255, 0.08);
    --green: #27e58a;
    --text: #f4f7f5;
    --muted: #83978d;
    --red: #ff6570;
    --gold: #f59e0b;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
}

.layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px 1fr;
}

aside {
    border-right: 1px solid var(--line);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    background: #08130f;
}

.logo {
    display: flex;
    gap: 12px;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 0 8px 24px;
}

.logo > span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #27e58a, #10b981);
    color: #052015;
    font-weight: 900;
    font-size: 1.1rem;
}

.logo b {
    font-size: 14px;
    letter-spacing: .08em;
}

.logo small {
    display: block;
    color: var(--green);
    font-size: 9px;
    letter-spacing: .18em;
    margin-top: 3px;
}

nav {
    display: grid;
    gap: 6px;
}

nav button {
    border: 0;
    background: transparent;
    color: #7f9389;
    text-align: left;
    padding: 12px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s;
}

nav button:hover, nav button.active {
    background: #13231c;
    color: white;
    box-shadow: inset 3px 0 0 var(--green);
}

.gm {
    margin-top: auto;
    color: #f1cb79;
    border: 1px solid rgba(241, 203, 121, 0.2);
    background: rgba(241, 203, 121, 0.05);
    border-radius: 12px;
    padding: 14px;
}

.gm b { display: block; font-size: 0.95rem; }
.gm span { display: block; font-size: 0.75rem; color: #a5b4aa; margin-top: 2px; }

main {
    padding: 30px 40px;
    max-width: 1550px;
    width: 100%;
    margin: auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

header small {
    color: var(--green);
    font-size: 9px;
    letter-spacing: .16em;
    font-weight: 900;
}

header h1 {
    margin: 5px 0 0;
    font-size: 28px;
    font-weight: 800;
}

header button {
    background: #13231c;
    color: #c8d5cf;
    border: 1px solid var(--line);
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

header button.danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

.cards article, .panel {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 16px;
}

.cards article {
    padding: 20px;
    background: linear-gradient(145deg, #0e1a15, #0a130f);
}

.cards span {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cards strong {
    display: block;
    font-size: 30px;
    margin-top: 8px;
    font-weight: 800;
}

.panel {
    padding: 20px;
    margin-bottom: 18px;
}

.ph {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.ph b {
    font-size: 14px;
    letter-spacing: 0.5px;
}

.ph span {
    color: var(--muted);
    font-size: 11px;
}

.players {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding-top: 14px;
}

.player {
    border: 1px solid var(--line);
    background: #0a1511;
    border-radius: 12px;
    padding: 14px;
}

.player b { display: block; font-size: 13px; }
.player span { font-size: 10px; color: var(--muted); }

.hidden { display: none !important; }

/* Tablo */
.table-wrap {
    overflow-x: auto;
    margin-top: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}

th {
    color: #71857b;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #a7b8b0;
    font-size: 10px;
    font-weight: 700;
}

.tag.admin {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.tag.operator {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.tag.vip {
    color: #ec4899;
    background: rgba(236, 72, 153, 0.15);
    border: 1px solid rgba(236, 72, 153, 0.3);
}

/* Aksiyon Butonları */
.actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.actions button, .log-tools button {
    border: 1px solid var(--line);
    background: #13231c;
    color: #dce7e1;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
}

.actions button:hover {
    background: #1c3328;
}

.actions button.ban {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.actions button.danger, .log-tools button.danger {
    background: #35191d;
    color: #ff9ca7;
    border-color: #6b2b35;
}

.gm-tools {
    display: flex;
    gap: 10px;
    padding: 16px 0;
}

.gm-tools input {
    flex: 1;
    background: #0d211c;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    color: #fff;
    padding: 12px 14px;
    outline: none;
}

.gm-tools button {
    border: 0;
    border-radius: 12px;
    padding: 0 18px;
    background: var(--green);
    color: #092017;
    font-weight: 800;
    cursor: pointer;
}

/* Site Ayarları Satırları */
.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #0a1511;
    border: 1px solid var(--line);
    border-radius: 12px;
    gap: 20px;
}

.setting-row b { display: block; font-size: 0.95rem; }
.setting-row small { color: var(--muted); font-size: 0.8rem; display: block; margin-top: 3px; }

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #273730;
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--green);
}

input:checked + .slider:before {
    transform: translateX(24px);
    background-color: #052015;
}

/* Canlı Odalar Listesi */
.room-admin-list {
    display: grid;
    gap: 10px;
    padding-top: 14px;
}

.room-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #091511;
    border: 1px solid var(--line);
    padding: 14px 18px;
    border-radius: 12px;
}

.room-admin b { font-size: 14px; }
.room-admin small { color: var(--green); margin: 3px 0; font-size: 10px; }
.room-admin span { color: var(--muted); font-size: 11px; }

.log-box {
    height: 55vh;
    overflow: auto;
    background: #030806;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    color: #b9d6c8;
    font: 12px/1.6 Consolas, monospace;
    white-space: pre-wrap;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
    z-index: 9999;
}

.modal-card {
    background: #0b1117;
    border: 1px solid rgba(220, 176, 84, 0.3);
    border-radius: 16px;
    padding: 24px;
    width: min(560px, 94vw);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}

.modal-head h3 { margin: 2px 0 0; font-size: 1.2rem; color: #fff; }
.modal-head small { color: var(--gold); font-size: 0.75rem; letter-spacing: 1px; }
.modal-head button { background: transparent; border: none; color: #888; font-size: 1.5rem; cursor: pointer; }

#toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: #16251e;
    border: 1px solid var(--green);
    color: #fff;
    padding: 10px 18px;
    border-radius: 9px;
    opacity: 0;
    transition: .25s;
    font-size: 12px;
    font-weight: 700;
    z-index: 10000;
}
#toast.show { opacity: 1; transform: translate(-50%, -5px); }

/* ==========================================================================
   ÖZEL NİCK RENKLENDİRME & HAREKETLİ EFEKTLER (ANIMATED COSMETICS)
   ========================================================================== */

.cosmetics-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.cosmetic-card {
    background: #0a1511;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.preview-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.cosmetic-card h4 { margin: 6px 0 3px; font-size: 0.9rem; color: #fff; }
.cosmetic-card p { margin: 0; font-size: 0.75rem; color: var(--muted); }

/* 1. Rainbow Gökkuşağı Akışı */
.nick-rainbow {
    background: linear-gradient(90deg, #ff007f, #ff7f00, #ffff00, #00ff00, #00ffff, #007fff, #8b00ff, #ff007f) !important;
    background-size: 300% 100% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: rainbowShift 3s linear infinite !important;
    font-weight: 800 !important;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
}

@keyframes rainbowShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* 2. Fire Alev Titremesi */
.nick-fire {
    background: linear-gradient(0deg, #ef4444 0%, #f97316 50%, #facc15 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: fireFlicker 1.4s ease-in-out infinite alternate !important;
    font-weight: 800 !important;
    text-shadow: 0 -2px 10px rgba(239, 68, 68, 0.6);
}

@keyframes fireFlicker {
    0% { filter: drop-shadow(0 0 2px #ef4444) brightness(1); }
    50% { filter: drop-shadow(0 0 7px #f97316) brightness(1.2); }
    100% { filter: drop-shadow(0 0 12px #facc15) brightness(1.4); }
}

/* 3. Gold Glow Altın Işıltı */
.nick-gold-glow {
    color: #fbbf24 !important;
    animation: goldPulse 2s ease-in-out infinite alternate !important;
    font-weight: 800 !important;
}

@keyframes goldPulse {
    0% { text-shadow: 0 0 4px rgba(245, 158, 11, 0.5); }
    100% { text-shadow: 0 0 14px rgba(245, 158, 11, 0.9), 0 0 25px rgba(251, 191, 36, 0.6); }
}

/* 4. Neon Pulse Siber Mavi */
.nick-neon-pulse {
    color: #38bdf8 !important;
    animation: neonGlow 1.8s ease-in-out infinite alternate !important;
    font-weight: 800 !important;
}

@keyframes neonGlow {
    0% { text-shadow: 0 0 4px rgba(56, 189, 248, 0.5); }
    100% { text-shadow: 0 0 14px rgba(56, 189, 248, 1), 0 0 28px rgba(14, 165, 233, 0.8); }
}

/* 5. Ice Crystal Kristal Elmas */
.nick-ice-crystal {
    background: linear-gradient(135deg, #e0f2fe 0%, #38bdf8 50%, #93c5fd 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: crystalShimmer 2.2s ease-in-out infinite alternate !important;
    font-weight: 800 !important;
}

@keyframes crystalShimmer {
    0% { filter: drop-shadow(0 0 3px rgba(224, 242, 254, 0.6)); }
    100% { filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.9)); }
}
