
:root {
    --primary: #f39c12; --karus: #e74c3c; --human: #3498db; --bg: #0a0a0a;
    --card: rgba(15, 15, 15, 0.95); --glass: rgba(255, 255, 255, 0.05);
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }
html { height: 100%; }
body { background: var(--bg); color: #fff; line-height: 1.5; font-size: 14px; overflow-x: hidden; zoom: 0.70; -moz-transform: scale(0.70); -moz-transform-origin: top center; cursor: url('a.cur'), auto !important; }
.background-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; background: #000; background-image: url('background.jpg'); background-repeat: no-repeat; background-position: center center; background-attachment: fixed; background-size: cover; filter: brightness(0.35); }
.container { position: relative; max-width: 1500px; margin: 0 auto; padding: 30px 220px 30px 340px; }
header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 50px; padding: 20px 0; border-bottom: 2px solid rgba(243, 156, 18, 0.1); }
.logo-section { display: flex; flex-direction: column; gap: 5px; }
.logo { font-size: 3.5rem; font-weight: 950; color: var(--primary); text-transform: uppercase; letter-spacing: 6px; text-shadow: 0 0 30px rgba(243, 156, 18, 0.4); line-height: 1; }
.animated-logo {
    color: #fff;
    text-shadow: 0 0 5px #fff, 0 0 10px #00d2ff, 0 0 20px #00d2ff, 0 0 30px #00d2ff, 0 0 40px #00d2ff;
    animation: blueFire 2s ease-in-out infinite alternate;
}
@keyframes blueFire {
    0% { text-shadow: 0 0 5px #fff, 0 0 10px #00d2ff, 0 0 20px #00d2ff, 0 0 30px #00d2ff, 0 0 40px #00d2ff; filter: brightness(1.2); }
    50% { text-shadow: 0 0 10px #fff, 0 0 20px #00d2ff, 0 0 35px #00d2ff, 0 0 45px #00d2ff, 0 0 60px #00d2ff; filter: brightness(1.5); }
    100% { text-shadow: 0 0 5px #fff, 0 0 10px #00d2ff, 0 0 20px #00d2ff, 0 0 30px #00d2ff, 0 0 40px #00d2ff; filter: brightness(1.2); }
}

.chat-input button { padding: 10px 15px; background: var(--primary); color: #000; border: none; font-weight: 800; cursor: pointer; transition: 0.2s; }
.chat-input button:hover { filter: brightness(1.2); }

.avatar-showcase { display: flex; justify-content: center; gap: 15px; margin: 20px 0 10px 0; }
.avatar-head { width: 60px; height: 60px; border-radius: 50%; border: 2px solid #d4af37; box-shadow: 0 0 10px rgba(212, 175, 55, 0.5); background: rgba(0,0,0,0.5); object-fit: cover; transition: 0.3s; }
.avatar-head:hover { transform: scale(1.1); box-shadow: 0 0 15px rgba(212, 175, 55, 0.8); }

.header-buttons-container { position: absolute; top: 20px; right: -180px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; z-index: 10000; width: 280px; }
.head-btn { padding: 8px 16px; border-radius: 8px; font-size: 12px; font-weight: 800; cursor: pointer; transition: 0.3s; text-decoration: none; display: flex; align-items: center; gap: 5px; border: 1px solid rgba(255,255,255,0.1); }
.head-btn:hover { transform: scale(1.05); }
.head-btn.client { background: #27ae60; color: #fff; border-color: #2ecc71; box-shadow: 0 0 10px rgba(46, 204, 113, 0.3); }
.head-btn.bakiye { background: #2980b9; color: #fff; border-color: #3498db; box-shadow: 0 0 10px rgba(52, 152, 219, 0.3); }
.head-btn.login { background: var(--primary); color: #000; border-color: #f1c40f; box-shadow: 0 0 10px rgba(243, 156, 18, 0.3); width: 100%; justify-content: center; }
.head-btn.panel { background: #3498db; color: #fff; border-color: #2980b9; width: 100%; justify-content: center; }

.server-info { display: flex; align-items: center; gap: 20px; margin-top: 10px; background: rgba(0,0,0,0.5); padding: 8px 25px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05); }
.server-time { font-family: 'Courier New', monospace; font-weight: 800; font-size: 1.3rem; color: #2ecc71; letter-spacing: 2px; text-shadow: 0 0 10px rgba(46,204,113,0.5); }
.server-status { display: flex; gap: 15px; }
.status-item { font-size: 0.7rem; font-weight: 800; color: #888; display: flex; align-items: center; gap: 6px; letter-spacing: 1px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #555; display: inline-block; transition: 0.5s; }
.status-dot.online { background: #2ecc71; box-shadow: 0 0 10px #2ecc71, 0 0 20px rgba(46, 204, 113, 0.4); }
.status-dot.offline { background: #e74c3c; box-shadow: 0 0 10px #e74c3c; }

.stats { display: flex; gap: 15px; }
.stat-card { background: linear-gradient(145deg, #151515, #0a0a0a); padding: 15px 25px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.05); text-align: center; min-width: 120px; box-shadow: 0 15px 40px rgba(0,0,0,0.6); position: relative; overflow: hidden; }
.stat-card::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(243, 156, 18, 0.05) 0%, transparent 70%); pointer-events: none; }
.stat-val { font-size: 2.2rem; font-weight: 800; color: #fff; display: block; line-height: 1; margin-bottom: 5px; }
.stat-lab { font-size: 0.8rem; color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: 2px; }
.stat-trend { font-size: 0.6rem; font-weight: 900; background: rgba(46, 204, 113, 0.1); color: #2ecc71; padding: 2px 8px; border-radius: 4px; display: inline-block; margin-top: 8px; border: 1px solid rgba(46, 204, 113, 0.2); }

.ranking-section { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.news-slider-block { position: absolute; left: 20px; top: 250px; display: flex; flex-direction: column; gap: 20px; width: 300px; z-index: 999; }

.card { background: rgba(18, 18, 18, 0.98); border-radius: 16px; padding: 25px; border: 1px solid rgba(255,255,255,0.06); box-shadow: 0 15px 35px rgba(0,0,0,0.7); transition: 0.25s ease; }
.card:hover { transform: translateY(-5px); border-color: rgba(243, 156, 18, 0.2); }
.card.karus { border-top: 5px solid #c0392b; background: linear-gradient(to bottom, rgba(192, 57, 43, 0.05), var(--card)); }
.card.human { border-top: 5px solid #2980b9; background: linear-gradient(to bottom, rgba(41, 128, 185, 0.05), var(--card)); }
.card.clans { border-top: 5px solid var(--primary); background: linear-gradient(to bottom, rgba(243, 156, 18, 0.05), var(--card)); }
.card.online { border-top: 5px solid #2ecc71; background: linear-gradient(to bottom, rgba(46, 204, 113, 0.05), var(--card)); }
.card-title { font-size: 1.4rem; margin-bottom: 25px; color: #fff; text-transform: uppercase; font-weight: 800; letter-spacing: 2px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

.item-list { height: 500px; overflow-y: auto; padding-right: 12px; }
.item-list::-webkit-scrollbar { width: 5px; }
.item-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }

.row { display: flex; align-items: center; padding: 15px; background: rgba(255,255,255,0.03); border-radius: 14px; margin-bottom: 10px; cursor: pointer; transition: 0.3s; border: 1px solid transparent; }
.row:hover { background: rgba(255,255,255,0.07); transform: translateX(5px); border-color: rgba(243, 156, 18, 0.3); }
.row-rank { width: 45px; font-weight: 900; color: var(--primary); font-size: 1.25rem; }
.row-main { flex: 1; }
.row-name { font-weight: 700; font-size: 1.15rem; display: block; color: #fff; }
.row-sub { font-size: 0.8rem; color: #666; font-weight: 600; }
.row-val { font-weight: 800; color: #2ecc71; font-size: 1.05rem; text-shadow: 0 0 10px rgba(46, 204, 113, 0.2); }

.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); }
.modal-content { background: #0a0a0a; margin: 5vh auto; padding: 25px; border: 1px solid #222; width: 800px; border-radius: 16px; box-shadow: 0 25px 50px rgba(0,0,0,1); position: relative; max-height: 90vh; overflow-y: auto; }
.close { position: absolute; right: 20px; top: 15px; font-size: 1.8rem; cursor: pointer; color: #666; transition: 0.3s; }
.close:hover { color: #fff; }

.modal-header { margin-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 15px; text-align: left; padding-left: 10px; }
.modal-name { font-size: 2.2rem; color: var(--primary); font-weight: 800; letter-spacing: -0.5px; }
.modal-info { color: #888; font-size: 0.95rem; margin-top: 5px; font-weight: 400; }

.modal-flex { display: flex; gap: 20px; align-items: flex-start; justify-content: center; padding: 10px; zoom: 0.75; margin-left: 60px; margin-top: 15px; }
.char-info-container {
    position: relative; width: 336px; height: 487px;
    background-image: url('/character/CharacterInfo.png'); background-size: 100% 100%; background-position: center; background-repeat: no-repeat;
    /* SCALE KALDIRILDI - Birebir piksel */
}
.ci-text {
    position: absolute; font-family: Tahoma, sans-serif; font-size: 12px; font-weight: bold; color: #fff; text-shadow: 1px 1px 0 #000;
}

.doll-slot { 
    width: 45px; height: 45px; background: transparent; border: none; 
    display: flex; align-items: center; justify-content: center; position: absolute; 
}
.doll-slot:hover { border: 1px solid #d4af37; box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.4); z-index: 10; }

.inv-container {
    position: relative; width: 596px; height: 619px; margin-top: -55px; margin-left: -70px;
    background-image: url('/character/Inventory.png'); background-size: 100% 100%; background-position: center; background-repeat: no-repeat; 
    /* SCALE KALDIRILDI - Birebir piksel */
}
/* 14 Equipped Items - Referans .tpl dosyasindan birebir koordinatlar */
.equip-grid {
    position: absolute; left: 420px; top: 95px;
    display: grid; grid-template-columns: repeat(3, 45px); grid-template-rows: repeat(5, 45px); 
    column-gap: 7px; row-gap: 8px; border: none; background-color: transparent;
}
.doll-slot { width: 45px; height: 45px; background: transparent; border: none; position: relative; }
/* Sifirlama - absolute degerler ezilsin (equip grid icin) */
#slot-0, #slot-1, #slot-2, #slot-3, #slot-4, #slot-5, #slot-6, #slot-7, #slot-8, #slot-9, #slot-10, #slot-11, #slot-12, #slot-13 { position: relative !important; left: auto !important; top: auto !important; }

/* Cospre items on paperdoll */
.absolute-slot { position: absolute !important; }

.inv-grid { 
    position: absolute; left: 225px; top: 370px;
    display: grid; grid-template-columns: repeat(7, 45px); grid-template-rows: repeat(4, 45px); 
    column-gap: 4px; row-gap: 5px; border: none; background-color: transparent;
}
.slot { width: 100%; height: 100%; background: transparent; border: none; position: relative; overflow: hidden; }
.cnt { position: absolute; bottom: 0; right: 0; font-size: 10px; background: rgba(0,0,0,0.85); padding: 0 4px; border-radius: 2px; color: #fff; font-weight: 700; z-index: 5; border: 1px solid rgba(255,255,255,0.1); }

#tooltip { 
    position: absolute; display: none; background: rgba(0, 0, 0, 0.85); border: 1px solid #000; 
    color: #fff; padding: 5px 15px; border-radius: 0; pointer-events: none; z-index: 10000;
    min-width: 150px; box-shadow: 0 0 10px rgba(0,0,0,0.5); font-family: 'Verdana', 'Arial', sans-serif;
    line-height: 1.3;
}

/* Custom Marquee Styles */
.marquee-wrapper { 
    width: 100%; overflow: hidden; white-space: nowrap; 
    background: rgba(231, 76, 60, 0.1); border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 8px; margin-bottom: 20px; height: 35px; display: flex; align-items: center;
    position: relative;
}
.marquee-content {
    display: inline-block; padding-left: 100%;
    animation: marquee-scroll 25s linear infinite;
    font-weight: 800; font-size: 0.95rem; color: #e74c3c;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.marquee-content span.chat-item { color: #fff; background: rgba(243, 156, 18, 0.2); padding: 2px 8px; border-radius: 4px; margin: 0 15px; border: 1px solid rgba(243, 156, 18, 0.3); text-transform: none; }
.marquee-content span.system-item { color: #e74c3c; margin: 0 15px; }

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.msg-alert-text { color: #f1c40f; text-shadow: 0 0 10px #f1c40f, 0 0 20px rgba(241, 196, 15, 0.8); font-weight: 950; letter-spacing: 2px; display: inline-block; width: 100%; text-align: center; }

/* Professional Chat UI */
.chat-fab { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; cursor: pointer; box-shadow: 0 5px 20px rgba(243, 156, 18, 0.4); z-index: 999; transition: 0.3s; }
.chat-fab:hover { transform: scale(1.1) rotate(10deg); }
.whatsapp-fab { position: fixed; bottom: 30px; right: 100px; width: 60px; height: 60px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; cursor: pointer; box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4); z-index: 999; transition: 0.3s; text-decoration: none; }
.whatsapp-fab:hover { transform: scale(1.1) rotate(10deg); }
.instagram-fab { position: fixed; bottom: 30px; right: 170px; width: 60px; height: 60px; background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; cursor: pointer; box-shadow: 0 5px 20px rgba(220, 39, 67, 0.4); z-index: 999; transition: 0.3s; text-decoration: none; }
.instagram-fab:hover { transform: scale(1.1) rotate(10deg); }
.chat-badge { position: absolute; top: -5px; right: -5px; background: #e74c3c; color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 10px; border: 2px solid #000; font-weight: 800; min-width: 18px; text-align: center; }
.chat-badge.new-msg { animation: chat-pulse 1.5s infinite; }
@keyframes chat-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { transform: scale(1.2); box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}
.chat-window { position: fixed; bottom: 100px; right: 30px; width: 350px; height: 500px; background: rgba(15, 15, 15, 0.95); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.8); z-index: 998; backdrop-filter: blur(15px); }
.chat-header { background: var(--primary); color: #000; padding: 15px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; }
.chat-messages { flex: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg-item { background: rgba(255,255,255,0.03); padding: 10px; border-radius: 8px; border-left: 3px solid var(--primary); }
.chat-msg-user { font-weight: 800; font-size: 12px; color: var(--primary); display: block; margin-bottom: 4px; }
.chat-msg-text { font-size: 13px; color: #eee; word-break: break-all; }
.chat-input-area { padding: 15px; background: rgba(0,0,0,0.3); border-top: 1px solid rgba(255,255,255,0.05); }
.emoji-picker { position: absolute; bottom: 80px; left: 15px; background: #1a1a1a; border: 1px solid #333; padding: 10px; border-radius: 8px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.emoji-picker span { cursor: pointer; font-size: 20px; transition: 0.2s; }
.emoji-picker span:hover { transform: scale(1.2); }

/* News & Slider Section */
.news-card, .slider-card { height: 265px; cursor: pointer; overflow: hidden; position: relative; padding: 0 !important; width: 100%; }
.card-header-badge { position: absolute; top: 0; left: 0; background: var(--card); color: #fff; padding: 10px 20px; font-weight: 800; font-size: 0.8rem; border-bottom-right-radius: 12px; z-index: 10; border: 1px solid rgba(255,255,255,0.1); border-top: none; border-left: none; }
.news-preview { width: 100%; height: 100%; position: relative; }
.news-preview img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.news-card:hover .news-preview img { transform: scale(1.1); }
.news-overlay { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(transparent, rgba(0,0,0,0.8)); padding: 20px; font-weight: 800; font-size: 1.2rem; transform: translateY(100%); transition: 0.3s; }
.news-card:hover .news-overlay { transform: translateY(0); }

.mini-slider { width: 100%; height: 100%; position: relative; }
.mini-slider img { width: 100%; height: 100%; object-fit: cover; position: absolute; opacity: 0; transition: 1s; }
.mini-slider img.active { opacity: 1; }

/* Mektup Modal */
.mektup-container { 
    background: #f4e4bc; color: #2c1e14; margin: 5vh auto; padding: 40px; 
    width: 600px; border-radius: 4px; box-shadow: 10px 10px 30px rgba(0,0,0,0.5); 
    position: relative; border: 2px solid #2c1e14;
    background-image: url('https://www.transparenttextures.com/patterns/old-map.png');
    transform: scale(0.8); animation: openMektup 0.5s forwards;
}
@keyframes openMektup { to { transform: scale(1); } }
.mektup-content { min-height: 400px; font-family: 'Georgia', serif; font-size: 1.1rem; line-height: 1.6; }
.mektup-text { white-space: pre-wrap; }
.close-mektup { position: absolute; right: 20px; top: 10px; font-size: 2rem; cursor: pointer; color: #2c1e14; }

/* Slider Modal */
.slider-modal-content { 
    width: 90%; max-width: 1000px; margin: 10vh auto; background: #000; 
    border: 2px solid #333; position: relative; height: 600px; 
    display: flex; align-items: center; justify-content: center;
}
.main-slider { width: 100%; height: 100%; position: relative; overflow: hidden; }
.main-slider img { width: 100%; height: 100%; object-fit: contain; position: absolute; opacity: 0; transition: 0.5s; }
.main-slider img.active { opacity: 1; }
.slider-controls { position: absolute; width: 100%; display: flex; justify-content: space-between; padding: 0 20px; pointer-events: none; }
.slider-controls button { 
    background: rgba(0,0,0,0.5); color: #fff; border: 1px solid #fff; 
    width: 50px; height: 50px; border-radius: 50%; cursor: pointer; 
    pointer-events: auto; font-size: 1.5rem; transition: 0.3s;
}
.slider-controls button:hover { background: #fff; color: #000; }
.close-slider { position: absolute; top: -40px; right: 0; color: #fff; font-size: 2rem; cursor: pointer; }
