* { margin: 0; padding: 0; box-sizing: border-box; outline: none; -webkit-tap-highlight-color: transparent; }

/* BODY: MOBİL UYGULAMA GİBİ DAVRANIR (KAYMAZ, SEKMEYEZ) */
html, body { 
    background-color: #050505; color: white; font-family: 'Montserrat', sans-serif; 
    height: 100%; height: 100dvh; width: 100%; 
    overflow: hidden; position: relative; 
    overscroll-behavior: none; /* Mobil Chrome/Safari sekme engeli (ALTIN KOD) */
    -webkit-font-smoothing: antialiased;
}

button, a, textarea { touch-action: manipulation; }
.main-action-btn, .react-text-btn, .action-mini-btn, .key-btn, .nav-extra-btn, .admin-tab { user-select: none; -webkit-user-select: none; }

/* DİNAMİK DISABLE EFEKTLERİ (SPAM KORUMASI İÇİN) */
button:disabled, input:disabled, textarea:disabled { opacity: 0.5 !important; cursor: not-allowed !important; pointer-events: none; }

/* ARKA PLAN EFEKTLERİ */
.stars { position: absolute; top:0; left:0; width: 200%; height: 200%; background: url('https://www.transparenttextures.com/patterns/stardust.png'); opacity: 0.12; z-index: -2; animation: stardustRotation 180s linear infinite; }
@keyframes stardustRotation { from { transform: translate(-25%, -25%) rotate(0deg); } to { transform: translate(-25%, -25%) rotate(360deg); } }
.light-glow { position: absolute; width: 90vw; height: 90vw; background: radial-gradient(circle, rgba(0, 255, 255, 0.04) 0%, transparent 70%); border-radius: 50%; z-index: -1; filter: blur(90px); top: -15%; left: -15%; animation: glowPulse 20s ease-in-out infinite alternate; }
.purple-haze { position: absolute; width: 100vw; height: 100vw; background: radial-gradient(circle at center, rgba(100, 0, 255, 0.015) 0%, transparent 60%); z-index: -2; filter: blur(120px); bottom: -30%; right: -20%; animation: glowPulse 25s ease-in-out infinite alternate-reverse; }
@keyframes glowPulse { 0% { transform: scale(1) translate(0, 0); opacity: 0.8; } 100% { transform: scale(1.1) translate(5%, 5%); opacity: 1; } }

/* APP KUTUSU */
#app {
    position: absolute; top: 0; bottom: 0; left: 0; right: 0; 
    margin: auto; width: 100%; max-width: 500px; height: 100%; 
    display: flex; flex-direction: column; z-index: 10;
}

/* ÜST NAV */
.top-nav { 
    flex-shrink: 0; width: 100%; 
    display: flex; justify-content: flex-end; align-items: center;
    padding: 15px 20px; gap: 10px; 
}
.key-btn, .nav-extra-btn { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08); color: rgba(255, 255, 255, 0.35); padding: 8px 15px; border-radius: 30px; font-size: 0.65rem; cursor: pointer; transition: 0.3s; }
.key-btn:hover, .nav-extra-btn:hover { border-color: #00ffff; color: #00ffff; box-shadow: 0 0 10px rgba(0, 255, 255, 0.3); }

/* HEADER */
.header { flex-shrink: 0; text-align: center; padding-bottom: 10px; }
.logo { font-size: 2.2rem; letter-spacing: 15px; font-weight: 100; cursor: pointer; display: inline-block; margin-left: 15px;}
.slogan { font-size: 0.6rem; letter-spacing: 5px; color: #444; text-transform: uppercase; margin-top: 5px; display: block; text-align: center; }

/* CHAT ALANI (SAFARİ DESTEĞİ) */
.chat-section { 
    flex: 1; min-height: 0; 
    width: 100%; overflow-y: auto; padding: 10px 15px; 
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
    scrollbar-width: none; 
}
.chat-section::-webkit-scrollbar { display: none; }
.chat-wrapper { width: 100%; display: flex; flex-direction: column; gap: 12px; padding-bottom: 20px; }

.bubble { padding: 12px 16px; border-radius: 18px; line-height: 1.5; font-size: 0.85rem; word-wrap: break-word; transition: 0.3s; }
.msg { max-width: 80%; display: flex; animation: fadeIn 0.4s ease forwards; }

.msg.user { align-self: flex-end; }
.msg.user .bubble { background: rgba(100, 0, 255, 0.04); border: 1px solid rgba(150, 0, 255, 0.12); border-bottom-right-radius: 2px; color: #e0e0e0; box-shadow: 0 4px 15px rgba(100, 0, 255, 0.05); }

.msg.bot { align-self: flex-start; }
.msg.bot .bubble { background: rgba(0, 255, 255, 0.015); border: 1px solid rgba(0, 255, 255, 0.15); color: rgba(255, 255, 255, 0.85); border-bottom-left-radius: 2px; }

/* ETKİLEŞİM ALANI */
.interaction-section { flex-shrink: 0; width: 100%; padding: 10px 15px 0 15px; }
.decision-area, .input-box, .reaction-area { background: #080808; border: 1px solid #111; border-radius: 25px; padding: 18px; box-shadow: 0 -10px 40px rgba(0,0,0,0.5); }

.main-action-btn { padding: 15px; border-radius: 12px; border: none; width: 100%; margin-bottom: 10px; cursor: pointer; font-size: 0.75rem; letter-spacing: 2px; font-weight: 600; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.main-action-btn.cyan { background: #00ffff; color: #000; box-shadow: 0 0 15px rgba(0,255,255,0.2); }
.main-action-btn.cyan:hover { background: #fff; box-shadow: 0 0 25px rgba(0, 255, 255, 0.5); transform: translateY(-2px); }
.main-action-btn.outline { background: transparent; border: 1px solid #1a1a1a; color: #4d4d4d; }
.main-action-btn.outline:hover { color: #fff; border-color: #333; }

.input-box { display: flex; align-items: center; gap: 10px; }
.textarea-container { flex: 1; position: relative; }
textarea { width: 100%; background: transparent; border: none; color: white; font-family: inherit; font-size: 0.95rem; resize: none; padding-bottom: 5px; }
.char-count { position: absolute; bottom: -12px; right: 0; font-size: 0.45rem; color: #333; }
.send-trigger { background: none; border: none; color: #00ffff; font-size: 1.3rem; cursor: pointer; transition: 0.2s; padding: 5px; display: flex; justify-content: center; align-items: center;}
.send-trigger:hover { transform: scale(1.1); text-shadow: 0 0 10px #00ffff; }

.extra-actions { display: flex; gap: 10px; margin-top: 10px; }
.action-mini-btn { flex: 1; background: none; border: 1px solid #111; color: #3d3d3d; padding: 10px; font-size: 0.6rem; border-radius: 8px; transition: 0.2s; cursor: pointer; letter-spacing: 1px; }
.action-mini-btn:hover { color: #fff; border-color: #333; background: rgba(255,255,255,0.02); }
.action-mini-btn.report:hover { color: #ff4444; border-color: #ff4444; }

/* FOOTER */
.footer { 
    flex-shrink: 0; width: 100%; padding: 20px 0 15px 0; 
    background: linear-gradient(to top, #050505 85%, transparent); text-align: center; z-index: 50; 
}
.social-links { margin-bottom: 10px; display: flex; justify-content: center; gap: 20px; }

/* MOR LİNK HATASININ ÇÖZÜMÜ (VISITED OVERRIDE) */
.social-links a, .social-links a:visited, .social-links a:active { color: #444; font-size: 0.75rem; text-decoration: none; transition: 0.3s; display: flex; align-items: center; gap: 5px; }
.social-links a:hover { color: #00ffff; }

.footer-link-active { background: none; border: none; color: #00ffff; font-size: 0.6rem; cursor: pointer; border-bottom: 1px solid rgba(0, 255, 255, 0.3); padding-bottom: 2px; text-shadow: 0 0 5px rgba(0,255,255,0.3); transition: 0.2s; }
.footer-link-active:hover { color: #fff; border-color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.5); }
.copyright { color: rgba(255, 255, 255, 0.02); font-size: 0.5rem; margin-top: 10px; letter-spacing: 2px; }

/* ORTAK MODAL (PENCERELER) */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.98); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(15px); transition: opacity 0.3s ease; }
.modal-panel { background: #080808; border: 1px solid rgba(0, 255, 255, 0.2); padding: 35px; border-radius: 8px; width: 100%; max-width: 450px; box-shadow: 0 0 60px rgba(0,255,255,0.1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; border-bottom: 1px solid #111; padding-bottom: 15px; }
.modal-logo { font-size: 0.75rem; letter-spacing: 3px; color: #00ffff; font-weight: 500; text-transform: uppercase; }
.close-modal-btn { background: #111; border: 1px solid #222; color: #555; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: 0.2s;}
.close-modal-btn:hover { background: #ff4444; color: #fff; border-color: #ff4444; }
.modal-body { max-height: 350px; overflow-y: auto; color: #aaa; font-size: 0.8rem; line-height: 1.8; text-align: left; }
.modal-body strong { color: #ccc; font-weight: 600; }
.legal-warning { color: #fff; border-left: 2px solid #00ffff; padding-left: 15px; margin-bottom: 25px; font-weight: 500; font-style: normal; }
.modal-accept-btn { width: 100%; padding: 18px; background: #00ffff; color: #000; border: none; margin-top: 25px; font-weight: 600; cursor: pointer; border-radius: 4px; letter-spacing: 2px; transition: 0.3s; }
.modal-accept-btn:hover { background: #fff; box-shadow: 0 0 20px #00ffff; }

/* ANALİZ RAPORU VE YANIT LİSTESİ */
.check-result { margin-top: 5px; width: 100%; }
.check-title { font-size: 0.65rem; letter-spacing: 3px; color: #00ffff; margin-bottom: 12px; font-weight: 500; text-align: center; }
.check-stats { background: rgba(0, 0, 0, 0.4); padding: 15px; border-radius: 12px; border: 1px solid rgba(0, 255, 255, 0.1); box-shadow: inset 0 0 10px rgba(0,0,0,0.8); }
.stat-row { display: flex; justify-content: space-between; font-size: 0.75rem; margin-bottom: 10px; color: #aaa; border-bottom: 1px dashed rgba(255,255,255,0.05); padding-bottom: 6px; }
.stat-row:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.stat-row strong { color: #00ffff; font-weight: 600; text-shadow: 0 0 5px rgba(0,255,255,0.3); }

.replies-container { margin-top: 15px; display: flex; flex-direction: column; gap: 8px; max-height: 250px; overflow-y: auto; padding-right: 5px; }
.replies-container::-webkit-scrollbar { width: 4px; }
.replies-container::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
.reply-item { background: rgba(0, 255, 255, 0.03); border-left: 2px solid #00ffff; padding: 12px; border-radius: 4px; display: flex; flex-direction: column; gap: 5px;}
.reply-text { font-size: 0.8rem; color: #ddd; font-style: italic; }
.reply-date { font-size: 0.6rem; color: #666; text-align: right; }

/* İLETİŞİM FORMU TASARIMI */
.contact-textarea { width: 100%; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.1); color: white; font-family: inherit; font-size: 0.9rem; padding: 15px; border-radius: 8px; resize: none; transition: 0.3s; }
.contact-textarea:focus { border-color: #00ffff; box-shadow: 0 0 10px rgba(0, 255, 255, 0.2); }
.cyan-btn { background: #00ffff; color: #000; }

/* ŞİFRE FORMU (SİSTEME GİRİŞ) TASARIMI */
.password-panel { max-width: 400px !important; text-align: center; }
.password-input-wrapper { position: relative; width: 100%; margin-top: 10px; }
.lock-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #00ffff; font-size: 1.1rem; opacity: 0.7; }
.custom-password-input { width: 100%; background: rgba(0, 255, 255, 0.03); border: 1px solid rgba(0, 255, 255, 0.2); color: #fff; font-family: inherit; font-size: 1rem; padding: 15px 15px 15px 45px; border-radius: 10px; transition: 0.3s; letter-spacing: 1px; }
.custom-password-input:focus { border-color: #00ffff; box-shadow: 0 0 15px rgba(0, 255, 255, 0.2); outline: none; background: rgba(0, 255, 255, 0.05); }
.custom-password-input::placeholder { color: #555; font-style: italic; letter-spacing: normal; font-size: 0.85rem;}

.copyable-key-box { display: inline-block; background: rgba(0, 255, 255, 0.05); border: 1px dashed #00ffff; color: #00ffff; padding: 12px 20px; border-radius: 8px; margin: 10px 0; font-weight: 600; font-size: 1.1rem; letter-spacing: 1px; cursor: pointer; transition: 0.3s; box-shadow: 0 0 10px rgba(0, 255, 255, 0.1); }
.copyable-key-box:hover { background: rgba(0, 255, 255, 0.15); box-shadow: 0 0 20px rgba(0, 255, 255, 0.3); transform: scale(1.02); }

/* SEKME SİSTEMİ VE ADMİN PANELİ */
.admin-panel-wide { max-width: 600px !important; }
.admin-tabs { display: flex; border-bottom: 1px solid #111; margin-bottom: 15px; }
.admin-tab { flex: 1; background: none; border: none; padding: 15px; color: #555; font-size: 0.7rem; font-family: inherit; font-weight: 600; cursor: pointer; letter-spacing: 2px; transition: 0.3s; border-bottom: 2px solid transparent; }
.admin-tab:hover { color: #aaa; }
.admin-tab.active { color: #00ffff; border-bottom-color: #00ffff; }

.admin-body { max-height: 50vh !important; }
.admin-list { display: flex; flex-direction: column; gap: 12px; }

/* Şikayet Öğesi (Kırmızı Tema) */
.admin-item { background: rgba(255, 0, 0, 0.03); border: 1px solid rgba(255, 0, 0, 0.2); border-left: 3px solid #ff4444; padding: 15px; border-radius: 4px; display: flex; flex-direction: column; gap: 8px; transition: opacity 0.3s ease; }
.admin-item-text { font-size: 0.85rem; color: #ccc; font-style: italic; line-height: 1.5; }
.admin-item-meta { font-size: 0.65rem; color: #777; display: flex; justify-content: space-between; }
.admin-item-meta strong { color: #ff4444; }
.admin-delete-btn { align-self: flex-end; background: rgba(255, 68, 68, 0.1); color: #ff4444; border: 1px solid rgba(255, 68, 68, 0.3); padding: 8px 15px; border-radius: 4px; font-size: 0.7rem; font-weight: 600; cursor: pointer; transition: 0.2s; letter-spacing: 1px; }
.admin-delete-btn:hover { background: #ff4444; color: #fff; box-shadow: 0 0 15px rgba(255, 68, 68, 0.4); }

/* Geri Bildirim Mesaj Öğesi (Turkuaz Tema) */
.message-item { background: rgba(0, 255, 255, 0.02); border: 1px solid rgba(0, 255, 255, 0.1); border-left: 3px solid #00ffff; }
.message-item .admin-item-meta strong { color: #00ffff; }
.msg-delete-btn { background: rgba(0, 255, 255, 0.05); color: #00ffff; border-color: rgba(0, 255, 255, 0.2); }
.msg-delete-btn:hover { background: #00ffff; color: #000; box-shadow: 0 0 15px rgba(0, 255, 255, 0.4); }

/* TYPING DOTS */
.dots { display: flex; gap: 4px; }
.dots span { width: 6px; height: 6px; background: #00ffff; border-radius: 50%; animation: blink 1.4s infinite both; opacity: 0.5; }
@keyframes blink { 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.hidden { display: none !important; }
.colorful-key { color: #00ffff; font-weight: 600; text-shadow: 0 0 10px #00ffff; cursor: pointer; }

@media (max-width: 600px) {
    .logo { font-size: 1.8rem; letter-spacing: 10px; }
}