/* GENEL AYARLAR & RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #080a0f;
    color: #e2e8f0;
    overflow-x: hidden;
}

/* TOPBAR (ÜST BİLGİ BANNERI) */
.topbar {
    height: 50px;
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.topbar-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 50%;
}

.badge-notice {
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.topbar-info marquee {
    font-size: 13px;
    color: #94a3b8;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-box, .kasa-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1e293b;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.uname {
    font-weight: bold;
    color: #f8fafc;
}

.ubal {
    color: #22c55e;
    font-size: 11px;
}

.kasa-box .label {
    font-size: 10px;
    color: #64748b;
    display: block;
}

.kasa-box .val {
    color: #eab308;
    font-weight: bold;
}

.btn-admin-link {
    background: #3b82f6;
    color: #fff;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    transition: 0.2s;
}

.btn-admin-link:hover {
    background: #2563eb;
}

/* ANA DÜZEN (LAYOUT) */
.main-wrapper {
    display: flex;
    height: calc(100vh - 50px);
}

/* SOL PANEL: CANLI SOHBET */
.chat-sidebar {
    width: 300px;
    background: #0f172a;
    border-right: 1px solid #1e293b;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 15px;
    border-bottom: 1px solid #1e293b;
}

.chat-header h3 {
    font-size: 14px;
    color: #38bdf8;
}

.rain-box {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    margin: 10px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #4338ca;
}

.rain-title {
    font-size: 11px;
    color: #c084fc;
    font-weight: bold;
}

.rain-winner {
    font-size: 12px;
    font-weight: bold;
    margin-top: 4px;
}

.rain-winner span {
    color: #22c55e;
}

.chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-msg {
    font-size: 12px;
    line-height: 1.4;
    word-break: break-word;
}

.badge-vip {
    background: #eab308;
    color: #000;
    font-size: 9px;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 3px;
    margin-right: 4px;
}

.chat-msg .username {
    font-weight: bold;
    color: #94a3b8;
    margin-right: 4px;
}

.chat-msg .username.vip {
    color: #eab308;
}

.chat-msg .text {
    color: #cbd5e1;
}

.chat-input-area {
    padding: 10px;
    border-top: 1px solid #1e293b;
    display: flex;
    gap: 5px;
}

.chat-input-area input {
    flex: 1;
    background: #080a0f;
    border: 1px solid #1e293b;
    color: #fff;
    padding: 8px;
    border-radius: 4px;
    outline: none;
    font-size: 12px;
}

.btn-send {
    background: #22c55e;
    color: #fff;
    border: none;
    padding: 0 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

/* ORTA MENÜ */
.game-nav {
    width: 200px;
    background: #0b0f19;
    border-right: 1px solid #1e293b;
    padding: 15px 0;
}

.nav-title {
    font-size: 10px;
    font-weight: bold;
    color: #64748b;
    padding: 0 15px 10px 15px;
    letter-spacing: 1px;
}

.game-nav ul {
    list-style: none;
}

.nav-item {
    padding: 12px 20px;
    font-size: 13px;
    color: #94a3b8;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-item:hover, .nav-item.active {
    background: #1e293b;
    color: #38bdf8;
    border-left: 3px solid #38bdf8;
}

/* SAĞ SAHNE (GAME STAGE) */
.game-stage {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    background: #080a0f;
}

.game-tab {
    display: none;
}

.game-tab.active {
    display: block;
}

.welcome-banner {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #334155;
}

.welcome-banner h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.welcome-banner p {
    color: #94a3b8;
    font-size: 14px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.card {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 20px;
}

.card-welcome .icon-big {
    font-size: 32px;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 22px;
    font-weight: bold;
    color: #22c55e;
    margin: 8px 0;
}

.text-green { color: #22c55e; }
.text-yellow { color: #eab308; }

.btn-action {
    background: #38bdf8;
    color: #0f172a;
    border: none;
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.btn-action:hover {
    background: #7dd3fc;
}

.announcement-card {
    background: #0f172a;
    border: 1px solid #1e293b;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.announcement-card p {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 5px;
}