/* Dosya: SilkroadCommunity/wwwroot/css/site.css */

/* ===== CSS VARIABLES (overridden by theme) ===== */
:root {
    --primary: #8B0000;
    --secondary: #2C1810;
    --accent: #FFD700;
    --bg: #1A0A00;
    --text: #F5DEB3;
    --card-bg: rgba(255,255,255,0.04);
    --card-border: rgba(255,215,0,0.15);
    --navbar-bg: rgba(10,5,0,0.97);
    --topbar-bg: rgba(5,2,0,0.98);
    --input-bg: rgba(255,255,255,0.06);
    --input-border: rgba(255,215,0,0.2);
    --shadow-glow: 0 0 20px rgba(255,215,0,0.1);
    --radius: 10px;
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139,0,0,0.15) 0%, transparent 60%),
        radial-gradient(ellipse 50% 80% at 100% 50%, rgba(255,215,0,0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: #fff; }

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--topbar-bg);
    border-bottom: 1px solid rgba(255,215,0,0.08);
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    z-index: 1100;
    position: relative;
}

/* ===== NAVBAR ===== */
.main-navbar {
    background: var(--navbar-bg);
    border-bottom: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1050;
    padding: 8px 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.main-navbar .navbar-brand .brand-text {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-shadow: none;
}

.main-navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 6px 12px !important;
    border-radius: 6px;
    transition: var(--transition);
    letter-spacing: 0.5px;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--accent) !important;
    background: rgba(255,215,0,0.06);
}

.search-input {
    background: var(--input-bg) !important;
    border-color: var(--input-border) !important;
    color: var(--text) !important;
    font-size: 13px;
}
.search-input::placeholder { color: rgba(255,255,255,0.3); }
.search-input:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 2px rgba(255,215,0,0.15) !important; }

/* ===== DROPDOWN ===== */
.dark-dropdown {
    background: #0d0805 !important;
    border: 1px solid var(--card-border) !important;
    border-radius: var(--radius) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.8) !important;
    padding: 6px !important;
}
.dark-dropdown .dropdown-item {
    color: rgba(255,255,255,0.8) !important;
    font-size: 14px;
    border-radius: 6px;
    padding: 7px 12px;
    transition: var(--transition);
}
.dark-dropdown .dropdown-item:hover {
    background: rgba(255,215,0,0.08) !important;
    color: var(--accent) !important;
}
.dark-dropdown .dropdown-divider { border-color: rgba(255,215,0,0.1) !important; }

/* ===== BUTTONS ===== */
.btn-accent {
    background: linear-gradient(135deg, var(--accent), #e6b800);
    color: #000 !important;
    border: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: var(--transition);
}
.btn-accent:hover {
    background: linear-gradient(135deg, #fff, var(--accent));
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255,215,0,0.3);
}
.btn-outline-accent {
    color: var(--accent) !important;
    border-color: var(--accent) !important;
    background: transparent;
    font-weight: 600;
    transition: var(--transition);
}
.btn-outline-accent:hover {
    background: var(--accent) !important;
    color: #000 !important;
    transform: translateY(-1px);
}
.btn-xs { padding: 3px 10px; font-size: 12px; }

/* ===== ALERTS ===== */
.alert-floating {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    min-width: 320px;
    max-width: 480px;
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    animation: slideInRight 0.3s ease;
}
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== CARDS ===== */
.content-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}
.content-card:hover { border-color: rgba(255,215,0,0.25); box-shadow: var(--shadow-glow); }

/* ===== SECTION TITLES ===== */
.section-title {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}
.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--accent), transparent);
    margin-left: 12px;
    opacity: 0.5;
}
.section-title-sm {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.card-title-custom {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--accent);
    display: flex;
    align-items: center;
}

/* ===== SLIDER ===== */
.slider-section { position: relative; }
.slider-img {
    max-height: 450px;
    object-fit: cover;
    width: 100%;
}
.ad-timer {
    font-size: 11px;
    backdrop-filter: blur(10px);
    background: rgba(0,0,0,0.7) !important;
}

/* ===== SERVER CARDS ===== */
.server-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}
.server-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), var(--shadow-glow);
    border-color: var(--accent);
}
.top-server-card.rank-1 { border-color: #FFD700 !important; }
.top-server-card.rank-2 { border-color: #C0C0C0 !important; }
.top-server-card.rank-3 { border-color: #CD7F32 !important; }
.rank-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--accent);
    color: #000;
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 2;
}
.server-banner-img { width: 100%; height: 100px; object-fit: cover; }
.server-banner-placeholder {
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.server-name { font-family: 'Cinzel', serif; font-size: 0.95rem; color: var(--text); }
.server-tags .badge { font-size: 10px; }
.bg-accent-dim { background: rgba(255,215,0,0.15); color: var(--accent); }

/* ===== BANNER ADS ===== */
.banner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.banner-item { position: relative; border-radius: 6px; overflow: hidden; cursor: pointer; }
.banner-img { width: 100%; height: 80px; object-fit: cover; transition: var(--transition); }
.banner-item:hover .banner-img { transform: scale(1.05); }
.banner-remaining {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    color: var(--accent);
    font-size: 10px;
    text-align: center;
    padding: 2px;
}
.banner-item:hover .banner-remaining { display: block !important; }

/* ===== TEXT ADS ===== */
.text-ads-container { display: flex; flex-direction: column; gap: 8px; }
.text-ad-item {
    background: rgba(255,215,0,0.04);
    border: 1px solid rgba(255,215,0,0.1);
    border-radius: var(--radius);
    padding: 12px 16px;
    transition: var(--transition);
    cursor: pointer;
}
.text-ad-item:hover {
    border-color: var(--accent);
    background: rgba(255,215,0,0.07);
}
.text-ad-item:hover .ad-remaining { display: block !important; }
.text-ad-server { font-weight: 700; color: var(--accent); font-size: 14px; }
.text-ad-content { color: rgba(255,255,255,0.8); font-size: 13px; }

/* ===== QUICK LINKS ===== */
.quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick-link-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 12px 8px;
    text-align: center;
    color: rgba(255,255,255,0.8) !important;
    font-size: 12px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.quick-link-item:hover {
    background: rgba(255,215,0,0.08);
    border-color: var(--accent);
    color: var(--accent) !important;
    transform: translateY(-2px);
}
.quick-link-item i { font-size: 20px; }

/* ===== STATS ===== */
.stats-panel { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); overflow: hidden; }
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 13px;
}
.stat-row:last-child { border-bottom: none; }
.stat-row strong { color: var(--accent); font-family: 'Orbitron', monospace; font-size: 13px; }

/* ===== CHAT ===== */
.chat-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 350px;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }
.chat-message { display: flex; gap: 8px; align-items: flex-start; }
.chat-avatar { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; }
.chat-bubble { background: rgba(255,255,255,0.05); border-radius: 8px; padding: 6px 10px; max-width: 85%; }
.chat-username { font-size: 11px; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
.chat-content { font-size: 13px; color: rgba(255,255,255,0.9); word-break: break-word; }
.chat-time { font-size: 10px; color: rgba(255,255,255,0.3); margin-top: 2px; }
.chat-input-area { padding: 10px; border-top: 1px solid var(--card-border); }
.chat-input-area .form-control {
    background: var(--input-bg) !important;
    border-color: var(--input-border) !important;
    color: var(--text) !important;
    font-size: 13px;
}

/* ===== AUTH PAGES ===== */
.auth-page { min-height: calc(100vh - 200px); display: flex; align-items: center; }
.auth-card {
    background: rgba(10,5,2,0.9);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), var(--shadow-glow);
    backdrop-filter: blur(20px);
}
.auth-icon {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    font-size: 28px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(255,215,0,0.2);
}
.auth-title { font-family: 'Cinzel', serif; font-size: 1.6rem; color: var(--text); }
.form-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.7); letter-spacing: 0.5px; margin-bottom: 6px; }
.form-control, .form-select {
    background: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    color: var(--text) !important;
    border-radius: 8px;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(255,215,0,0.12) !important;
    background: rgba(255,215,0,0.04) !important;
}
.form-control::placeholder { color: rgba(255,255,255,0.25); }
.input-group-text {
    background: rgba(255,215,0,0.08) !important;
    border-color: var(--input-border) !important;
    color: var(--accent) !important;
}
.link-accent { color: var(--accent); font-weight: 600; }
.link-accent:hover { color: #fff; }

/* ===== PROFILE ===== */
.profile-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}
.profile-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0.5;
}
.avatar-container { position: relative; display: inline-block; }
.profile-avatar {
    border: 4px solid var(--accent);
    box-shadow: 0 0 20px rgba(255,215,0,0.3);
    position: relative;
    z-index: 1;
}
.avatar-edit-btn {
    position: absolute;
    bottom: 4px; right: 4px;
    background: var(--accent);
    color: #000;
    border-radius: 50%;
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    z-index: 2;
}
.profile-name { font-family: 'Cinzel', serif; font-size: 1.2rem; position: relative; z-index: 1; }
.profile-stats { display: flex; gap: 20px; justify-content: center; }
.stat-item { text-align: center; }
.stat-item strong { display: block; font-family: 'Orbitron', monospace; font-size: 1rem; color: var(--accent); }
.stat-item small { font-size: 11px; color: rgba(255,255,255,0.5); }
.community-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); }
.bank-card { background: rgba(255,215,0,0.04); border: 1px solid rgba(255,215,0,0.1); border-radius: var(--radius); }
.font-mono { font-family: 'Courier New', monospace; font-size: 12px; }

/* ===== BADGE ROLES ===== */
.badge-role { font-size: 11px; padding: 4px 10px; border-radius: 20px; }
.badge-admin { background: linear-gradient(135deg, #ff6b6b, #ee5a24); }
.badge-player { background: linear-gradient(135deg, #a29bfe, #6c5ce7); }
.badge-guildmaster { background: linear-gradient(135deg, #fd9644, #e67e22); }
.badge-unionmaster { background: linear-gradient(135deg, #55efc4, #00b894); }
.badge-serverowner { background: linear-gradient(135deg, #ffeaa7, #fdcb6e); color: #000 !important; }
.badge-grafiker { background: linear-gradient(135deg, #fd79a8, #e84393); }
.badge-hostinger { background: linear-gradient(135deg, #74b9ff, #0984e3); }
.badge-editor { background: linear-gradient(135deg, #55efc4, #00cec9); }

/* ===== TABLES ===== */
.table-dark { --bs-table-bg: transparent !important; }
.table-dark td, .table-dark th { border-color: rgba(255,215,0,0.08) !important; color: rgba(255,255,255,0.85); font-size: 13px; }
.table-dark thead th { color: var(--accent); font-weight: 700; font-size: 12px; letter-spacing: 0.5px; }
.table-hover .table-dark tbody tr:hover { background: rgba(255,215,0,0.04) !important; }

/* ===== COMMUNITY CARDS ===== */
.guild-card, .union-card, .community-list-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 16px;
    transition: var(--transition);
}
.guild-card:hover, .union-card:hover, .community-list-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}
.level-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
}
.exp-bar { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; margin: 4px 0; }
.exp-bar-fill { height: 100%; background: linear-gradient(to right, var(--primary), var(--accent)); border-radius: 2px; transition: width 0.8s ease; }

/* ===== RANK PAGE ===== */
.rank-table { counter-reset: rank; }
.rank-row { counter-increment: rank; }
.rank-row td:first-child::before {
    content: counter(rank);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 12px;
    color: var(--accent);
    min-width: 30px;
    display: inline-block;
}

/* ===== GAMES ===== */
.game-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}
.game-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.4), var(--shadow-glow); border-color: var(--accent); }
.game-icon { font-size: 48px; color: var(--accent); margin-bottom: 12px; }
.bet-btn { transition: var(--transition); }
.bet-btn:hover { transform: scale(1.05); }
.bet-btn.selected { background: var(--accent) !important; color: #000 !important; transform: scale(1.05); }

/* ===== WHEEL GAME ===== */
.wheel-canvas-container { position: relative; display: inline-block; }
#wheelCanvas { border-radius: 50%; box-shadow: 0 0 40px rgba(255,215,0,0.2); }
.wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    color: var(--accent);
    filter: drop-shadow(0 0 8px var(--accent));
}
.countdown-ring {
    font-family: 'Orbitron', monospace;
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent);
}
.game-log-item { display: flex; justify-content: space-between; padding: 6px 12px; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 12px; }
.win-log { color: #00d2ff; }
.lose-log { color: #ff6b6b; }

/* ===== ROCKET GAME ===== */
.rocket-container {
    position: relative;
    height: 400px;
    background: linear-gradient(to top, #0a0a2a, #000015);
    border-radius: var(--radius);
    overflow: hidden;
}
.rocket-element {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 48px;
    transition: bottom 0.1s linear;
}
.multiplier-display {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent);
    text-shadow: 0 0 30px var(--accent), 0 0 60px var(--accent);
}
.stars { position: absolute; inset: 0; overflow: hidden; }
.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 2s infinite alternate;
}
@keyframes twinkle { 0% { opacity: 0.2; } 100% { opacity: 1; } }
.crash-text {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    color: #ff4444;
    text-shadow: 0 0 20px #ff4444;
    animation: pulse 0.5s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ===== COLOR WHEEL ===== */
.color-bar-container {
    position: relative;
    height: 80px;
    overflow: hidden;
    border-radius: var(--radius);
    border: 2px solid var(--card-border);
}
.color-bar {
    display: flex;
    height: 100%;
    transition: transform 0.1s linear;
}
.color-segment {
    flex-shrink: 0;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.color-segment.selected { border-color: #fff !important; transform: scale(1.05); }
.color-pointer {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 3px;
    background: #fff;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 8px #fff;
}

/* ===== ADMIN PANEL ===== */
.admin-sidebar {
    background: rgba(5,2,0,0.98);
    border-right: 1px solid var(--card-border);
    min-height: calc(100vh - 100px);
    width: 240px;
    position: fixed;
    top: 100px;
    left: 0;
    overflow-y: auto;
    padding: 16px 0;
    z-index: 100;
}
.admin-content { margin-left: 240px; padding: 24px; }
.admin-nav-item { display: block; padding: 10px 20px; color: rgba(255,255,255,0.7); font-size: 13px; border-left: 3px solid transparent; transition: var(--transition); }
.admin-nav-item:hover, .admin-nav-item.active { color: var(--accent); border-left-color: var(--accent); background: rgba(255,215,0,0.04); }
.admin-nav-item i { width: 20px; margin-right: 8px; }
.admin-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}
.admin-stat-value { font-family: 'Orbitron', monospace; font-size: 2rem; font-weight: 700; color: var(--accent); }
.admin-stat-label { font-size: 12px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; }

/* ===== THEME SELECTOR ===== */
.theme-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}
.theme-card:hover { transform: translateY(-4px); }
.theme-card.active { border-color: var(--accent); box-shadow: 0 0 20px rgba(255,215,0,0.3); }
.theme-preview { height: 80px; display: flex; gap: 2px; }
.theme-color-strip { flex: 1; }
.theme-name { padding: 8px; text-align: center; font-weight: 700; font-size: 12px; }

/* ===== FREELANCER ===== */
.freelancer-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}
.freelancer-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.freelancer-header { height: 120px; background: linear-gradient(135deg, var(--primary), var(--secondary)); position: relative; }
.freelancer-avatar { position: absolute; bottom: -30px; left: 20px; width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--accent); }
.package-card { background: rgba(255,215,0,0.04); border: 1px solid rgba(255,215,0,0.1); border-radius: var(--radius); padding: 12px; }
.package-price { font-family: 'Orbitron', monospace; font-size: 1.2rem; color: var(--accent); }

/* ===== WELCOME PAGE ===== */
.welcome-page .hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg), rgba(139,0,0,0.1));
    position: relative;
    overflow: hidden;
}
.hero-icon { font-size: 80px; color: var(--accent); filter: drop-shadow(0 0 20px var(--accent)); }
.hero-title { font-family: 'Cinzel', serif; background: linear-gradient(135deg, var(--accent), #fff, var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { color: rgba(255,255,255,0.75); max-width: 600px; margin: 0 auto; }
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition);
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow-glow); }
.feature-icon { font-size: 40px; color: var(--accent); margin-bottom: 16px; }

/* ===== FOOTER ===== */
.site-footer {
    background: rgba(5,2,0,0.98);
    border-top: 1px solid var(--card-border);
}
.footer-title { font-family: 'Cinzel', serif; color: var(--accent); font-size: 0.85rem; letter-spacing: 1px; margin-bottom: 12px; }
.site-footer a { color: rgba(255,255,255,0.5); font-size: 13px; }
.site-footer a:hover { color: var(--accent); }
.footer-divider { border-color: rgba(255,215,0,0.08); }

/* ===== PAGINATION ===== */
.pagination .page-link {
    background: var(--card-bg) !important;
    border-color: var(--card-border) !important;
    color: rgba(255,255,255,0.7) !important;
    font-size: 13px;
}
.pagination .page-item.active .page-link { background: var(--accent) !important; border-color: var(--accent) !important; color: #000 !important; }
.pagination .page-link:hover { background: rgba(255,215,0,0.1) !important; color: var(--accent) !important; }

/* ===== PROGRESS BAR ===== */
.progress { background: rgba(255,255,255,0.08) !important; border-radius: 4px; height: 8px; }
.progress-bar { background: linear-gradient(to right, var(--primary), var(--accent)) !important; }

/* ===== MODAL ===== */
.modal-content { background: #0d0805 !important; border: 1px solid var(--card-border) !important; color: var(--text) !important; }
.modal-header { border-bottom-color: var(--card-border) !important; }
.modal-footer { border-top-color: var(--card-border) !important; }
.modal-title { font-family: 'Cinzel', serif; color: var(--accent); }
.btn-close { filter: invert(1); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,215,0,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .admin-sidebar { display: none; }
    .admin-content { margin-left: 0; padding: 16px; }
    .auth-card { padding: 24px 20px; }
    .hero-title { font-size: 2rem !important; }
    .multiplier-display { font-size: 2.5rem; }
    .countdown-ring { font-size: 32px; }
    .banner-grid { grid-template-columns: 1fr; }
    .quick-links { grid-template-columns: repeat(3, 1fr); }
    .profile-stats { gap: 12px; }
}

@media (max-width: 576px) {
    .top-bar { font-size: 11px; }
    .main-navbar .brand-text { font-size: 1.2rem; }
    .slider-img { max-height: 220px; }
    .server-card { margin-bottom: 8px; }
}

/* ===== ANIMATIONS ===== */
.fade-in { animation: fadeIn 0.5s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.glow-pulse { animation: glowPulse 2s ease-in-out infinite; }
@keyframes glowPulse { 0%, 100% { box-shadow: 0 0 10px rgba(255,215,0,0.2); } 50% { box-shadow: 0 0 30px rgba(255,215,0,0.5); } }

/* ===== TOOLTIP REMAINING ===== */
[data-bs-toggle="tooltip"] { cursor: help; }

/* ===== BANNER FULL-WIDTH GRID (2 yanyana, alt alta) ===== */
.banner-grid-full {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.banner-item-full {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--card-border);
    transition: var(--transition);
    background: var(--card-bg);
    /* Sabit yükseklik - resim tam çerçeveye sığar */
    height: 120px;
}
.banner-item-full:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}
.banner-full-img {
    width: 100%;
    height: 100%;
    /* contain: resim oranını koruyarak çerçeveye sığdırır, kenarlar boşluk bırakır */
    object-fit: contain;
    display: block;
    /* cover yerine contain kullan - resim kırpılmaz */
    background: var(--secondary);
    transition: transform 0.3s ease;
}
.banner-item-full:hover .banner-full-img { transform: scale(1.02); }
.banner-remaining-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,0.75);
    color: var(--accent);
    font-size: 11px;
    padding: 3px 8px;
    text-align: center;
    backdrop-filter: blur(4px);
    display: none;
}
.banner-item-full:hover .banner-remaining-overlay { display: block; }

/* Banner olmadığında yer tutucu */
.banner-placeholder {
    height: 120px;
    background: rgba(255,215,0,0.03);
    border: 1px dashed rgba(255,215,0,0.15);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,215,0,0.2);
    font-size: 11px;
}

@media (max-width: 768px) {
    .banner-grid-full { grid-template-columns: 1fr; }
    .banner-item-full { height: 90px; }
}

/* ===== CHAT STATUS ===== */
#chat-status { font-size: 11px; color: #ffb74d; padding: 2px 8px; }

/* ===== NAV TABS (game panel) ===== */
.nav-tabs { border-bottom-color: var(--card-border) !important; }
.nav-tabs .nav-link { color: rgba(255,255,255,.6) !important; border-color: transparent !important; border-radius: 6px 6px 0 0 !important; }
.nav-tabs .nav-link.active { background: rgba(255,215,0,.1) !important; color: var(--accent) !important; border-color: var(--card-border) var(--card-border) transparent !important; }
.tab-content { border: 1px solid var(--card-border); border-top: none; padding: 16px; border-radius: 0 0 var(--radius) var(--radius); }

/* ===== NOTIFICATION DROPDOWN ===== */
.notif-item {
    transition: background .15s;
    border-radius: 4px;
}
.notif-item:hover {
    background: rgba(255,215,0,.07) !important;
}
.notif-item .fa-coins { color: #FFD700; }
.notif-item .fa-envelope { color: #74b9ff; }
.notif-item .fa-users { color: #55efc4; }
.notif-item .fa-gamepad { color: #fd79a8; }
.notif-item .fa-crown { color: #e17055; }
.notif-item .fa-info-circle { color: #74b9ff; }

/* ===== MESSAGE BUBBLE ===== */
.min-width-0 { min-width: 0; }

/* ===== TARGETED TEXT FIXES ===== */
/* Sadece kullanıcı girişli içerik yazıları beyaz ve belirgin */
.content-card p:not(.small),
.feature-card p,
.event-description,
.announcement-text,
.reward-text {
    color: #ffffff !important;
    font-weight: 400;
}

/* Muted metinler hafif beyaz - görünür ama ikincil */
.text-muted {
    color: rgba(255,255,255,0.55) !important;
}
small.text-muted {
    color: rgba(255,255,255,0.5) !important;
}

/* Kullanıcı girdiği yazı (açıklama, içerik) daha belirgin */
.user-content,
.event-body,
.announcement-body,
.guild-desc,
.server-desc,
.union-desc {
    color: #f0f0f0 !important;
    font-size: 14px;
    line-height: 1.65;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Label ve form yazıları */
label.form-label { color: rgba(255,255,255,0.82) !important; }

/* Alert renk düzeltmesi - FIX D1 */
.alert-info {
    background: rgba(2,62,138,0.25) !important;
    border-color: rgba(116,185,255,0.35) !important;
    color: #e3f0ff !important;
}
.alert-info strong, .alert-info .fw-bold {
    color: #ffffff !important;
}
.alert-info i { color: var(--accent) !important; }

/* Payment sayfası coin info - koyu arka plan, net yazı */
.alert-info.coin-rate-info {
    background: rgba(0,30,80,0.5) !important;
    border: 1px solid rgba(116,185,255,0.4) !important;
    color: #ffffff !important;
}
.alert-info.coin-rate-info .text-accent { color: var(--accent) !important; }

/* Text ads - taşma önleme */
.text-ad-body {
    min-width: 0;
    overflow: hidden;
    flex: 1;
}
.text-ad-content {
    color: rgba(255,255,255,0.85) !important;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
}
.text-ad-server {
    font-weight: 700;
    color: var(--accent);
    font-size: 14px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.text-ad-item {
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

/* Table text stays readable */
.table-dark td, .table-dark td small { color: rgba(255,255,255,0.85) !important; }
.table-dark th { color: var(--accent) !important; }

/* Events/Announcements page content */
.event-content-text,
.announcement-content-text {
    color: #ffffff !important;
    font-size: 14px;
    line-height: 1.7;
    word-break: break-word;
}

/* ===== COIN SYMBOL (C) ===== */
/* Coin sembolü: sarı, bold, monospace */
.coin-symbol,
.text-accent.fw-bold,
.stat-row strong {
    font-family: 'Orbitron', monospace;
}
/* Navbar coin balance */
#coin-balance::after {
    content: ' C';
    color: var(--accent);
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    font-size: 0.9em;
}

/* ===== ALERT COLOR FIXES (D1 - darker/original) ===== */
.alert-danger {
    background: rgba(139,0,0,0.3) !important;
    border-color: rgba(220,53,69,0.5) !important;
    color: #ffffff !important;
}
.alert-danger strong, .alert-danger .fw-bold {
    color: #ff8080 !important;
}
.alert-danger i { color: #ff6b6b !important; }

.alert-warning {
    background: rgba(133,100,4,0.3) !important;
    border-color: rgba(255,193,7,0.45) !important;
    color: #ffffff !important;
}
.alert-warning strong, .alert-warning .fw-bold { color: #ffd700 !important; }

.alert-success {
    background: rgba(0,100,0,0.3) !important;
    border-color: rgba(40,167,69,0.45) !important;
    color: #ffffff !important;
}
.alert-success strong { color: #90ee90 !important; }

/* The advertising restriction box (red lock area) */
.ad-restriction-box {
    background: rgba(139,0,0,0.25) !important;
    border: 1px solid rgba(200,0,0,0.4) !important;
    border-radius: 10px;
}
.ad-restriction-box .text-danger { color: #ff6b6b !important; }

/* Text in all alerts should be white */
.alert p, .alert span, .alert div { color: rgba(255,255,255,0.92); }
.alert .text-muted { color: rgba(255,255,255,0.65) !important; }

/* ===== CHAT SYSTEM ===== */
.chat-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    display: flex;
    flex-direction: column;
    height: 420px;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,215,0,.25); border-radius: 2px; }

.chat-empty {
    text-align: center;
    color: rgba(255,255,255,.4);
    font-size: 13px;
    padding: 20px;
    margin: auto;
}

/* Mesaj satırı */
.chat-msg {
    padding: 6px 10px;
    border-radius: 8px;
    transition: background .15s;
    position: relative;
}
.chat-msg:hover {
    background: rgba(255,255,255,.04);
}
.chat-msg:hover .chat-reply-btn {
    opacity: 1;
}

.chat-msg-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.chat-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,215,0,.3);
    flex-shrink: 0;
}

.chat-username {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
}

.chat-time {
    font-size: 10px;
    color: rgba(255,255,255,.35);
    margin-left: 2px;
}

.chat-reply-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(255,255,255,.4);
    font-size: 11px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity .2s, color .2s;
}
.chat-reply-btn:hover {
    color: var(--accent);
    background: rgba(255,215,0,.1);
}

.chat-content {
    font-size: 13px;
    color: rgba(255,255,255,.9);
    line-height: 1.5;
    padding-left: 36px;
    word-break: break-word;
    white-space: pre-wrap;
}

/* Yanıt önizleme (mesaj içinde) */
.chat-reply-preview {
    margin: 2px 0 4px 36px;
    padding: 4px 8px;
    background: rgba(255,215,0,.07);
    border-left: 2px solid var(--accent);
    border-radius: 0 4px 4px 0;
    font-size: 11px;
    color: rgba(255,255,255,.65);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background .15s;
}
.chat-reply-preview:hover { background: rgba(255,215,0,.12); }
.chat-reply-user { color: var(--accent); font-weight: 600; margin-right: 6px; }
.chat-reply-text { color: rgba(255,255,255,.6); }

/* Giriş satırı */
.chat-input-row {
    display: flex;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,.07);
}

.chat-input {
    flex: 1;
    background: rgba(255,255,255,.04);
    border: none;
    border-radius: 0;
    padding: 12px 16px;
    color: #fff;
    font-size: 13px;
    outline: none;
}
.chat-input::placeholder { color: rgba(255,255,255,.35); }
.chat-input:focus { background: rgba(255,255,255,.06); }

.chat-send-btn {
    background: var(--accent);
    border: none;
    color: #000;
    padding: 0 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s;
    border-radius: 0 0 var(--radius) 0;
    flex-shrink: 0;
}
.chat-send-btn:hover { background: #ffed4e; }
.chat-send-btn:disabled { opacity: .5; cursor: not-allowed; }

/* Nav tabs for chat */
#chatTabs { border-bottom: none !important; }
#chatTabs .nav-link {
    color: rgba(255,255,255,.5) !important;
    border: 1px solid transparent !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 6px 16px;
    font-size: 13px;
    background: rgba(255,255,255,.03);
}
#chatTabs .nav-link.active {
    color: var(--accent) !important;
    background: var(--card-bg) !important;
    border-color: rgba(255,215,0,.2) rgba(255,215,0,.2) var(--card-bg) !important;
}

/* ===== CHAT SYSTEM ===== */
.chat-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid rgba(255,215,0,.2);
    padding: 0 4px;
}
.chat-tab {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-bottom: none;
    color: rgba(255,255,255,.55);
    font-size: 13px;
    padding: 7px 18px;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    transition: all .2s;
}
.chat-tab.active {
    background: var(--card-bg, #1a1a2e);
    color: var(--accent, #FFD700);
    border-color: rgba(255,215,0,.25);
}
.chat-box {
    display: flex;
    flex-direction: column;
    background: var(--card-bg, #1a1a2e);
    border: 1px solid rgba(255,215,0,.15);
    border-top: none;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    height: 440px;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,215,0,.2); border-radius: 2px; }
.chat-empty {
    text-align: center;
    color: rgba(255,255,255,.35);
    font-size: 13px;
    padding: 30px;
    margin: auto;
}
.chat-msg {
    padding: 5px 8px;
    border-radius: 6px;
    transition: background .15s;
}
.chat-msg:hover { background: rgba(255,255,255,.04); }
.chat-msg:hover .chat-rep-btn { opacity: 1; }
.chat-msg-head {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 2px;
}
.chat-av {
    width: 26px; height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255,215,0,.3);
    flex-shrink: 0;
}
.chat-uname {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent, #FFD700);
    flex-shrink: 0;
}
.chat-ts {
    font-size: 10px;
    color: rgba(255,255,255,.3);
}
.chat-rep-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(255,255,255,.3);
    font-size: 11px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity .15s;
    flex-shrink: 0;
}
.chat-rep-btn:hover { color: var(--accent, #FFD700); background: rgba(255,215,0,.1); }
.chat-body {
    font-size: 13px;
    color: rgba(255,255,255,.88);
    line-height: 1.5;
    padding-left: 33px;
    word-break: break-word;
    white-space: pre-wrap;
}
.chat-reply-preview {
    margin: 2px 0 3px 33px;
    padding: 3px 8px;
    background: rgba(255,215,0,.06);
    border-left: 2px solid rgba(255,215,0,.4);
    border-radius: 0 4px 4px 0;
    font-size: 11px;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.chat-reply-preview:hover { background: rgba(255,215,0,.1); }
.crp-user { color: var(--accent, #FFD700); font-weight: 600; }
.crp-text { color: rgba(255,255,255,.55); }
.chat-reply-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,215,0,.08);
    border-top: 1px solid rgba(255,215,0,.15);
    padding: 6px 12px;
    font-size: 12px;
}
.chat-input-row {
    display: flex;
    border-top: 1px solid rgba(255,255,255,.07);
}
.chat-input {
    flex: 1;
    background: rgba(0,0,0,.2);
    border: none;
    padding: 12px 14px;
    color: #fff;
    font-size: 13px;
    outline: none;
}
.chat-input::placeholder { color: rgba(255,255,255,.3); }
.chat-input:focus { background: rgba(0,0,0,.3); }
.chat-send-btn {
    background: var(--accent, #FFD700);
    border: none;
    color: #000;
    padding: 0 20px;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity .15s;
}
.chat-send-btn:hover { opacity: .85; }
.chat-send-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Chat Tab Buttons ── */
.chtab {
    background: none;
    border: none;
    color: rgba(255,255,255,.5);
    padding: 9px 18px;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all .2s;
}
.chtab:hover { color: rgba(255,255,255,.8); }
.chtab.active { color: var(--accent); border-bottom-color: var(--accent); }
