/**
 * Main CSS File - Spinnnn Chat Application
 * Tüm ortak stil blokları bu dosyaya taşınmıştır
 * 
 * Generated: 2026-08-30
 */

/* ========== STYLE BLOCK 1 ========== */
* { box-sizing: border-box; }
    body { 
        margin: 0; background-color: #DAD6BC; font-family: sans-serif; 
        display: flex; flex-direction: column; height: var(--app-h, 100dvh); max-height: var(--app-h, 100dvh); overflow: hidden; position: relative; 
    }
    body.not-logged-in {
        height: auto !important;
        max-height: none !important;
        overflow-y: auto !important;
        display: block !important;
        -webkit-overflow-scrolling: touch;
    }
    ::-webkit-scrollbar { width: 5px; height: 5px; }
    ::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); }
    ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.25); border-radius: 10px; }
    ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.4); }

    #content-wrapper {
        display: flex;
        flex: 1;
        width: 100%;
        height: calc(var(--app-h, 100dvh) - 60px);
        position: relative;
        overflow: hidden;
    }

    #chat-main { 
        flex: 1; display: flex; flex-direction: column; height: 100%; 
        position: relative; padding-right: 142px; overflow: hidden; 
    }
    
    #chat-window { 
        flex: 1; background: #e5ddd5; overflow-y: auto; padding: 5px;
        -webkit-overflow-scrolling: touch;
        display: block;
        scroll-behavior: auto;

    }
    #chat-messages {
        width: 100%;
        min-height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        box-sizing: border-box;
    }
    
    #input-area { 
        height: 60px; min-height: 60px; display: flex; gap: 5px; 
        background: #f0f0f0; padding: 10px; border-top: 1px solid #ccc; width: 100%; z-index: 1000;
    }
    input { flex: 1; border: 1px solid #ccc; padding: 10px; border-radius: 6px; outline: none; font-size: 16px; }
.msg {    
    background: #ffffff;    
    padding: 5px 15px;    
    margin-bottom: 12px;    
    border-radius: 12px;    
    width: fit-content;    
    max-width: 99%;
    border: 0px solid #dcd6be;
    position: relative;
    font-size: 15px;
    line-height: 1.4;
    word-break: break-word;
    flex: 0 0 auto;
    /* Eklenen font ve renk ayarları */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: 0.1px;
    color: #333333; /* Hafif soluk siyah renk */
}
    .msg::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 20px;
        width: 0;
        height: 0;
        border: 8px solid transparent;
        border-top-color: #ffffff;
        border-bottom: 0;
        border-left: 0;
    }

    .msg::before {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 19px;
        width: 0;
        height: 0;
        border: 9px solid transparent;
        border-top-color: #dcd6be;
        border-bottom: 0;
        border-left: 0;
        z-index: -1;
    }
    .msg.system-msg { 
        background: transparent !important; 
        border: none !important; 
        padding: 1px 5px !important; 
        margin-bottom: 1px !important; 
        font-size: 13px !important; 
        font-style: italic !important; 
    }
    .msg.system-msg::after, .msg.system-msg::before {
        display: none !important;
    }
    .chat-nick { cursor: pointer; font-weight: bold; }
    .nick-misafir { opacity: 0.68; color: #888; }
    
    #sidebar { 
        width: 140px; background: #E8E8E8; border-left: 1px solid #ccc; 
        display: flex; flex-direction: column; align-items: stretch; padding: 8px 6px; 
        height: 100%; position: absolute; top: 0; right: 0; z-index: 1001; 
    }
    
    #online-users {
        flex: 1; width: 100%; overflow-y: auto; display: flex;
        flex-direction: column; align-items: stretch; padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    .nick-item {
        font-size: 15px; margin-bottom: 9px; color: #333;
        cursor: pointer; flex-shrink: 0; text-align: left; padding-left: 6px;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        line-height: 1.3;
    }

    @media screen and (max-width: 600px) and (orientation: portrait) {
        #chat-main { padding-right: 92px; }
        #sidebar { width: 92px; padding: 5px 4px; overflow: hidden; }
        .nick-item { font-size: 15px; padding-left: 3px; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.35; }
        .cikis-btn { font-size: 11px; width: calc(100% - 6px); padding: 4px 0 8px 0; margin-bottom: 6px; letter-spacing: 0; }
        .cikis-btn::after { right: 4px; bottom: -6px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #DAD6BC; }
    }
    @media screen and (max-width: 600px) and (orientation: landscape) {
        #chat-main { padding-right: 140px; }
        #sidebar { width: 135px; padding: 6px 5px; overflow: hidden; }
        .nick-item { font-size: 15px; padding-left: 4px; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
        .cikis-btn { font-size: 12px; width: calc(100% - 6px); padding: 5px 0 10px 0; margin-bottom: 6px; }
        .cikis-btn::after { right: 6px; bottom: -6px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #DAD6BC; }
    }
    @media screen and (max-width: 768px) and (min-width: 601px) {
        #chat-main { padding-right: 112px; }
        #sidebar { width: 110px; padding: 6px 5px; }
        .nick-item { font-size: 15px; padding-left: 4px; line-height: 1.3; }
        .cikis-btn { font-size: 12px; width: calc(100% - 6px); padding: 5px 0 14px 0; }
        .cikis-btn::after { right: 10px; bottom: -8px; }
    }
    @media screen and (max-width: 768px) and (min-width: 601px) and (orientation: landscape) {
        #chat-main { padding-right: 145px; }
        #sidebar { width: 145px; padding: 6px 5px; }
        .nick-item { font-size: 16px; padding-left: 5px; line-height: 1.3; }
        .cikis-btn { font-size: 13px; width: calc(100% - 6px); padding: 6px 0 14px 0; }
        .cikis-btn::after { right: 10px; bottom: -8px; }
    }
    .login-container { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 250px; margin: 20px auto; }
    .login-container input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; box-sizing: border-box; font-size: 16px; }
    /* Şifre alanı sarmalı + göster/gizle tuşu (giriş ve kayıt formları) */
    .sifre-sarmal { position: relative; width: 100%; }
    .sifre-sarmal input { padding-right: 48px !important; }
    .sifre-maskeli.gizli { -webkit-text-security: disc; text-security: disc; letter-spacing: 2px; }
    .sifre-maskeli.gizli::placeholder { -webkit-text-security: none; text-security: none; letter-spacing: normal; color: #999; }
    .sifre-goz {
        position: absolute; right: 3px; top: 50%; transform: translateY(-50%);
        width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer;
        font-size: 18px; line-height: 1; border-radius: 6px; color: #7a7361;
        display: flex; align-items: center; justify-content: center;
        -webkit-tap-highlight-color: transparent;
    }
    .sifre-goz:active { background: #f1eee3; }
    .btn-login { width: 100%; padding: 12px; background: #a200ff; color: white; font-weight: bold; border: none; border-radius: 5px; cursor: pointer; transition: background 0.3s; }
    .btn-login:hover { background: #7b1fa2; }
    #nickInput, #passInput { font-size: 20px; padding: 10px; }
    .login-container h1 { text-align: center; font-size: 22px; letter-spacing: 1px; margin-bottom: 15px; }
    .system-msg { background: transparent !important; padding: 2px 5px !important; margin-bottom: 1px !important; font-size: 14px !important; font-style: italic !important; }
    .reconnect-msg { color: #5fae78 !important; }
    .giris-msg { color: #397743 !important; }
	.msg.system-msg.cikis-msg {
    color: #b2b2b2 !important; 
}
	.seo-landing {
        max-width: 500px;
        margin: 20px auto 40px auto;
        padding: 15px 20px;
        background: rgba(255, 255, 255, 0.7);
        border-radius: 8px;
        border: 1px solid #dcd6be;
        text-align: left;
        font-family: sans-serif;
        color: #333;
    }
    .seo-landing h2 {
        font-size: 16px;
        color: #4A3B32;
        margin-top: 0;
        margin-bottom: 8px;
    }
    .seo-landing p {
        font-size: 13px;
        line-height: 1.45;
        margin: 0;
        color: #555;
    }

    .roombar{position:relative;background:#DAD6BC;padding:8px 12px;font-size:13px;border-bottom:1px solid #dcd6be;color:#555;font-weight:bold;display:flex;align-items:center;gap:8px;width:100%;}
    .roombar-left{display:flex;align-items:center;gap:8px;min-width:0;}
    .room-menu-btn{border:0;background:#FFD700;cursor:pointer;font-weight:900;color:#1a1a1a;padding:3px 5px;font-size:17px;line-height:1;border-radius:4px;}
    .room-menu-btn:hover{background:#CCA800;}
    .dm-notify-btn{border:0;background:transparent;cursor:pointer;font-weight:bold;color:#555;padding:3px 5px;font-size:17px;line-height:1;border-radius:4px;}
    .dm-notify-btn:hover{background:#eee4c7;}
    .dm-notify-wrap{display:flex;align-items:center;margin-left:auto;}
    .dm-notify-btn{font-size:18px;position:relative;}
    .dm-notify-count{display:inline-flex;align-items:center;justify-content:center;min-width:auto;height:auto;padding:2px 6px;border-radius:4px;background:transparent;color:#d32f2f;font-size:13px;font-weight:800;margin-left:3px;cursor:pointer;}
    @keyframes dmBlink{0%,100%{opacity:1;}50%{opacity:0.2;}}
    .dm-blink-nick{animation:dmBlink 1s ease-in-out infinite;color:#d32f2f;font-weight:900;font-size:14px;margin-right:2px;}
    .room-menu-item .dm-blink-nick{font-size:inherit;color:#d32f2f;font-weight:900;animation:dmBlink 1s ease-in-out infinite;}
    .dm-notify-full{animation:dmBlink 1s ease-in-out infinite;color:#d32f2f;font-weight:900;font-size:14px;white-space:nowrap;}
    .room-menu{position:fixed;left:0;top:0;bottom:0;width:280px;max-width:86vw;background:#DAD6BC;border-right:1px solid #dcd6be;box-shadow:4px 0 18px rgba(0,0,0,.14);z-index:100000;padding:0;border-radius:0;transform:translateX(-105%);transition:transform .22s ease;display:flex;flex-direction:column;}
    .room-menu.open{transform:translateX(0);}
    .room-menu-head{background:#DAD6BC;color:#333;padding:13px 14px;display:flex;align-items:center;justify-content:space-between;font-weight:bold;}
    .room-menu-head button{border:0;background:rgba(0,0,0,.12);color:#333;font-size:21px;cursor:pointer;border-radius:6px;padding:4px 8px;}
    .room-menu-scroll{overflow-y:auto;flex:1;padding:0 8px 15px;}
    .room-menu-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.18);z-index:99999;display:none;}
    .room-menu-backdrop.open{display:block;}
    .profile-menu-btn{position:absolute;left:12px;top:12px;border:0;background:#DAD6BC;color:#1a1a1a;border-radius:4px;padding:7px 10px;font-weight:800;cursor:pointer;z-index:6;}
    .profile-menu-btn:hover{background:#C4A882;}
    .room-menu-title{font-size:11px;color:#4A3B32;border-bottom:1px solid #c8c3aa;padding:5px 4px;font-weight:800;}
    .room-menu-item{display:flex;align-items:center;justify-content:space-between;padding:8px 6px;border-bottom:1px solid #c8c3aa;font-size:13px;cursor:pointer;background:transparent;}
    .room-menu-item:hover{background:#c8c3aa;}
    .room-menu-item.dm-menu-active{background:#bfb8a0; border-left:3px solid #8e00db;}
    .room-menu-item .room-name{font-weight:700;color:#2a2016;}
    .room-menu-item .pm-name{flex:1;}
    .room-menu-item .pm-count{color:#fff;font-weight:900;margin-left:5px;background:#d32f2f;padding:2px 7px;border-radius:10px;font-size:13px;}
    .room-menu-item .pm-close{border:0;background:#d32f2f;color:#fff;cursor:pointer;font-size:20px;padding:4px 8px;border-radius:6px;font-weight:bold;line-height:1;min-width:32px;min-height:32px;display:inline-flex;align-items:center;justify-content:center;}
    .room-menu-item .pm-close:hover{background:#b71c1c;}
    .room-menu-empty{padding:10px 6px;color:#665e4d;font-size:12px;}

    .dm-window{position:fixed;inset:0;width:100vw;height:var(--app-h,100dvh);background:#fff;border:0;border-radius:0;box-shadow:none;display:flex;flex-direction:column;z-index:9999;}
    .dm-header{background:#958773;color:#fff;padding:10px 14px;display:flex;justify-content:space-between;align-items:center;font-weight:bold;border-bottom:1px solid rgba(0,0,0,.18);min-height:48px;box-sizing:border-box;}
    .dm-header-left{display:flex;align-items:center;gap:10px;min-width:0;}
    .dm-title{font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
        .dm-minimize{cursor:pointer;font-size:28px;line-height:1;opacity:.85;margin-left:4px;font-weight:bold;padding:2px 6px;border-radius:4px;border:0;background:transparent;color:#555;}
    .dm-minimize:hover{opacity:1;color:#1565c0;}
    .dm-close{cursor:pointer;font-size:28px;line-height:1;opacity:.85;margin-left:4px;font-weight:bold;padding:2px 6px;border-radius:4px;border:0;background:transparent;color:#555;}
    .dm-close:hover{opacity:1;color:#d32f2f;}
    .dm-body{flex:1;overflow-y:auto;padding:10px;background:#f8f8f8;-webkit-overflow-scrolling:touch;position:relative;}
    .dm-list{width:100%;max-width:900px;margin:0 auto; min-height:100%; display:flex; flex-direction:column;}
    /* Mesajlar az iken en alta yaslanir; cok olunca ustten kaydirilabilir kalir
       (justify-content:flex-end flexbox tasma hatasini onlemek icin margin-top:auto). */
    .dm-list > :first-child{margin-top:auto;}
    .dm-input{display:flex;border-top:1px solid #ddd;background:#fff;min-height:48px;}
    .dm-input input{flex:1;border:1px solid #c8c3aa;padding:10px 12px;outline:none;font-size:14px;min-width:0;border-radius:6px;background:#fff;}
    .dm-input button{width:42px;cursor:pointer;background:#8e00db;color:#fff;border:0;font-weight:bold;font-size:0;border-radius:6px;display:flex;align-items:center;justify-content:center;padding:0;min-height:40px;}
    .dm-input button .send-icon{display:inline-block;width:20px;height:20px;}

    .dm-profile-card{position:absolute;inset:0;background:#fff;padding:18px;display:flex;flex-direction:column;align-items:center;gap:8px;z-index:5;overflow-y:auto;text-align:center;box-sizing:border-box;}
    .profile-top-row{display:flex;flex-direction:column;align-items:center;gap:7px;width:100%;max-width:360px;}
    .profile-img-container{display:flex;flex-direction:column;align-items:center;gap:4px;width:100%;}
    .profile-avatar{width:130px;height:150px;border-radius:6px;object-fit:cover;background:#ddd;border:2px solid #8e00db;box-shadow:0 2px 5px rgba(0,0,0,.15);}
    .profile-admin-badge{font-size:14px;color:#c0392b;background:transparent;padding:0;border-radius:0;font-weight:bold;text-transform:none;max-width:220px;word-wrap:break-word;overflow-wrap:break-word;white-space:normal;margin-bottom:1px;}
    .profile-nick-area{font-size:17px;font-weight:800;color:#222;margin-top:2px;border-bottom:2px solid #f0f0f0;padding-bottom:7px;width:100%;}
    .profile-about-area{font-size:13px;color:#444;line-height:1.5;border-top:1px solid #eee;padding-top:9px;width:100%;max-width:360px;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;}
    .profile-back-btn{margin-top:8px;width:100%;max-width:360px;padding:10px;background:#958773;color:#fff;border:0;border-radius:5px;cursor:pointer;font-weight:800;}

    @media screen and (max-width:480px){
      .room-menu{width:calc(100vw - 16px);}
      .dm-header{padding:9px 10px;}
      .dm-body{padding:8px;}
      .profile-avatar{width:125px;height:145px;}
    }
    /* Belirgin sohbet menüsü */
    .room-menu-btn{
        width:36px!important;height:36px!important;display:flex!important;align-items:center!important;justify-content:center!important;
        border:1px solid rgba(255,215,0,.45)!important;background:#FFD700!important;color:#1a1a1a!important;
        border-radius:7px!important;font-size:20px!important;font-weight:900!important;cursor:pointer!important;
        box-shadow:0 2px 5px rgba(0,0,0,.22)!important;flex-shrink:0;
    }
    .room-menu-btn:hover{background:#CCA800!important;}
    .room-menu{width:320px!important;box-shadow:4px 0 24px rgba(0,0,0,.28)!important;border-right:1px solid #cfc8b4!important;}
    .room-menu-head{background:#DAD6BC!important;color:#333!important;min-height:52px!important;font-size:15px!important;letter-spacing:.2px;}
    .room-menu-head button{width:38px!important;height:38px!important;background:rgba(0,0,0,.16)!important;border-radius:6px!important;color:#333!important;}
    .room-menu-item{min-height:46px!important;padding:9px 10px!important;}
    .room-menu-item:hover{background:#c8c3aa!important;}
    .room-menu-admin .room-name{color:#c0392b!important;font-weight:800!important;}
    .room-menu-arrow{font-size:22px;color:#958773;font-weight:700;}
    .dm-notify-btn{min-width:auto!important;height:auto!important;padding:0 4px!important;border:0!important;background:transparent!important;border-radius:7px!important;box-shadow:none!important;}
    .dm-notify-count{min-width:auto!important;height:auto!important;margin-left:3px!important;border-radius:4px!important;background:transparent!important;color:#d32f2f!important;font-size:13px!important;font-weight:900!important;align-items:center!important;justify-content:center!important;cursor:pointer!important;}
    .profile-menu-btn{width:36px!important;height:36px!important;padding:0!important;font-size:20px!important;box-shadow:0 2px 5px rgba(0,0,0,.12)!important;background:#DAD6BC!important;color:#1a1a1a!important;}
    .profile-dm-btn{position:absolute;right:12px;top:12px;min-width:auto;height:auto;padding:0 4px;border:0;background:transparent;color:#d32f2f;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;font-size:0;font-weight:900;cursor:pointer;z-index:6;box-shadow:none;}
    .profile-dm-btn .dm-notify-count{display:inline-flex;margin-left:0!important;cursor:pointer;}

    /* Mobil son görünüm: yalnızca menü/bildirim CSS'i */
@media screen and (max-width:600px){
    /* Mobil sohbet balonlarındaki yazıları 1px büyüt */
    #chat-window .msg { font-size:16px; }
    .roombar-logo{height:18px!important;}
    .menu-logo{height:22px!important;}
    .room-menu-btn,
    .profile-menu-btn{
        width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;
        padding:0!important;margin:0!important;font-size:16px!important;line-height:28px!important;
        border-radius:5px!important;box-shadow:none!important;flex:0 0 28px!important;}
    .room-menu-btn{background:#FFD700!important;}
    .profile-menu-btn{background:#DAD6BC!important;}

    /* Mobilde bildirim butonu şeffaf arka plan, nick+sayı görünür */
    .dm-notify-btn{
        width:auto!important;min-width:auto!important;height:auto!important;
        padding:0 2px!important;margin:0!important;font-size:0!important;line-height:1!important;
        border-radius:5px!important;box-shadow:none!important;display:inline-flex!important;
        align-items:center!important;justify-content:center!important;flex:0 0 auto!important;
        flex-wrap:nowrap!important;white-space:nowrap!important;
        background:transparent!important;border:0!important;
    }
    .dm-notify-btn .dm-notify-count{
        display:inline-flex!important;width:auto!important;min-width:auto!important;height:auto!important;
        padding:2px 5px!important;margin:0!important;background:transparent!important;color:#d32f2f!important;
        border-radius:5px!important;font-size:14px!important;line-height:1.2!important;font-weight:900!important;
        align-items:center!important;justify-content:center!important;flex-shrink:0!important;white-space:nowrap!important;
        box-sizing:border-box!important;cursor:pointer!important;
    }
    .dm-notify-btn .dm-blink-nick{
        font-size:16px!important;font-weight:900!important;
    }
    .dm-notify-btn .dm-notify-full{
        font-size:16px!important;font-weight:900!important;
    }

    .profile-dm-btn{
        width:auto!important;min-width:auto!important;height:auto!important;
        padding:2px 4px!important;margin:0!important;font-size:0!important;line-height:1!important;
        border-radius:5px!important;box-shadow:none!important;display:inline-flex!important;
        align-items:center!important;justify-content:center!important;flex-wrap:nowrap!important;
        background:transparent!important;border:0!important;
    }
    .profile-dm-btn .dm-notify-count{
        width:auto!important;min-width:auto!important;height:auto!important;margin:0!important;
        font-size:14px!important;line-height:1.2!important;border-radius:5px!important;cursor:pointer!important;
    }
    .profile-dm-btn .dm-blink-nick{
        font-size:16px!important;font-weight:900!important;
    }
    .profile-dm-btn .dm-notify-full{
        font-size:16px!important;font-weight:900!important;
    }

    /* Profil ekranında ikinci toggle görünmesin; DM başlığındaki tek toggle kullanılır. */
    .dm-profile-card .profile-menu-btn{display:none!important;}

    /* Mobilde bildirim butonu arka planı şeffaf */
    .dm-notify-btn,
    .profile-dm-btn{
        background:transparent!important;
        border:0!important;
        box-shadow:none!important;
    }
    .dm-notify-btn .dm-notify-count,
    .profile-dm-btn .dm-notify-count{
        background:transparent!important;
        color:#d32f2f!important;
        border:0!important;
        box-shadow:none!important;
    }

    /* Menü yazıları: mobilde 17px ve daha rahat aralık */
    .room-menu-title{font-size:14px!important;padding:10px 8px!important;}
    .room-menu-item{
        min-height:56px!important;padding:14px 10px!important;font-size:17px!important;
    }
    .room-menu-item .room-name,
    .room-menu-item .pm-name{
        font-size:17px!important;line-height:1.35!important;
    }
    .room-menu-item .pm-close{font-size:22px!important;padding:5px 8px!important;min-width:36px!important;min-height:36px!important;}
    .room-menu-empty{padding:14px 8px!important;font-size:15px!important;}
    .dm-profile-card .profile-menu-btn{display:flex!important;}
}

/* ========== STYLE BLOCK 2 ========== */
.room-spin-icon{
    width:28px;
    height:28px;
    object-fit:contain;
    vertical-align:middle;
    margin-right:8px;
    flex:0 0 auto;
}
@media(max-width:600px){
    .room-spin-icon{
        width:24px;
        height:24px;
        margin-right:7px;
    }
}

    /* Nicke tıklayınca açılan yerel mini kullanıcı menüsü */
    .nick-mini-menu{
        position:absolute; z-index:100000; width:215px; max-width:calc(100vw - 16px);
        background:#fff; border:1px solid rgba(0,0,0,.09); border-radius:12px;
        box-shadow:0 12px 30px rgba(0,0,0,.18); padding:7px; box-sizing:border-box;
        color:#26323a; font-family:inherit;
    }
    .nick-mini-head{padding:8px 10px 7px; border-bottom:1px solid #eee; margin-bottom:4px;}
    .nick-mini-name{font-size:15px; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
    .nick-mini-role{font-size:11px; margin-top:3px; font-weight:700;}
    .nick-mini-role.admin{color:#c0392b;} .nick-mini-role.operator{color:#2878b8;}
    .nick-mini-menu button{display:flex; align-items:center; width:100%; min-height:40px;
        border:0; background:transparent; border-radius:8px; padding:9px 10px;
        font:inherit; font-size:14px; text-align:left; cursor:pointer; color:inherit;}
    .nick-mini-menu button:hover{background:#f6f6f6;}
    .nick-mini-menu button:active{background:#ededed;}
    .nick-mini-menu .nick-mini-sep{height:1px; background:#eee; margin:5px 2px;}
    .nick-mini-menu button.danger{color:#b42318;}
    .nick-mini-menu button.cancel{color:#777; justify-content:center;}
    .nick-mini-menu{overflow-y:auto; overscroll-behavior:contain;}
    @media(max-width:600px){
        .nick-mini-menu{width:225px; max-width:calc(100vw - 16px); padding:8px; border-radius:11px;}
        .nick-mini-menu button{min-height:45px; padding:10px 12px; font-size:15px;}
        .nick-mini-head{padding:9px 11px 8px;}
    }

/* ========== STYLE BLOCK 3 ========== */
.room-menu-scroll{overflow-y:auto!important;flex:1!important;padding:6px 8px 16px!important;}
.room-menu-list{display:flex!important;flex-direction:column!important;gap:5px!important;}
.room-menu-item{
 box-sizing:border-box!important;display:grid!important;
 grid-template-columns:32px minmax(0,1fr) 22px!important;
 align-items:center!important;width:100%!important;min-height:50px!important;
 margin:0!important;padding:8px 10px!important;border:1px solid #eee!important;
 border-radius:8px!important;background:#fff!important;cursor:pointer!important;
 text-align:left!important;transition:background .15s ease,transform .1s ease;
}
.room-menu-item:hover{background:#faf7f2!important;}
.room-menu-item:active{transform:scale(.99);}
.menu-icon-slot{
 grid-column:1!important;display:flex!important;align-items:center!important;
 justify-content:flex-start!important;width:32px!important;height:30px!important;
 font-size:20px!important;line-height:1!important;
}
.room-spin-icon{width:26px!important;height:26px!important;min-width:26px!important;
 max-width:26px!important;object-fit:contain!important;margin:0!important;display:block!important;}
.menu-label{grid-column:2!important;min-width:0!important;display:block!important;
 overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
 color:#3f4f5f!important;font-size:16px!important;line-height:1.25!important;
 font-weight:600!important;text-align:left!important;}
.room-menu-admin .menu-label{color:#c0392b!important;font-weight:800!important;}
.room-menu-arrow{grid-column:3!important;justify-self:end!important;
 font-size:20px!important;line-height:1!important;color:#958773!important;font-weight:700!important;}
.pm-count{grid-column:3!important;justify-self:end!important;min-width:auto!important;
 color:#fff!important;font-size:13px!important;font-weight:900!important;text-align:center!important;background:#d32f2f!important;padding:2px 7px!important;border-radius:10px!important;}
.pm-close{grid-column:3!important;justify-self:end!important;min-width:32px!important;min-height:32px!important;
 border:0!important;background:#d32f2f!important;color:#fff!important;cursor:pointer!important;
 font-size:20px!important;line-height:1!important;padding:4px 8px!important;border-radius:6px!important;font-weight:bold!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;}
.pm-close:hover{background:#b71c1c!important;}
.room-menu-empty{padding:12px 10px!important;color:#888!important;font-size:14px!important;text-align:left!important;}
@media(max-width:600px){
 .room-menu{width:310px!important;max-width:88vw!important;}
 .room-menu-scroll{padding:7px 8px 18px!important;}
 .room-menu-list{gap:7px!important;}
 .room-menu-item{min-height:52px!important;padding:9px 11px!important;border-radius:8px!important;}
 .menu-icon-slot{width:32px!important;height:32px!important;font-size:20px!important;}
 .room-spin-icon{width:26px!important;height:26px!important;min-width:26px!important;}
 .menu-label{font-size:16px!important;line-height:1.3!important;}
 .room-menu-arrow{font-size:21px!important;}
 .pm-count{font-size:14px!important;padding:3px 8px!important;}
 .pm-close{font-size:22px!important;padding:5px 8px!important;min-width:36px!important;min-height:36px!important;}
}

.cikis-btn {
  position: relative;
  width: calc(100% - 1px);
  padding: 10px 0 12px 0;
  background: #DAD6BC;
  color: #1a1a1a;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 14px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.cikis-btn::after {
  content: '';
  position: absolute;
  right: 12px;
  bottom: -10px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #DAD6BC;
}

.cikis-btn:hover {
  background: #C4A882;
}

.cikis-btn:hover::after {
  border-top-color: #C4A882;
}

/* ========== STYLE BLOCK 4 ========== */
/* ==========================================================
   SADECE MOBİL CİHAZLARDA SOHBET ARKAPLAN RESMİ
   - pointer:coarse + hover:none => gerçek dokunmatik telefon
   - Masaüstünde (fare ile) hiçbir şekilde devreye girmez
   - Sadece #chat-window'un arkaplanı değişir, ölçü/konum/layout
     ile ilgili hiçbir kural değiştirilmez
   ========================================================== */
@media screen and (max-width: 900px) and (pointer: coarse) and (hover: none) {
    #chat-window {
        /* Resim yüklenmezse eski krem renk yine geçerli kalır */
        background-color: #e5ddd5;
        /* Üstteki yarı saydam krem katman yazı okunurluğunu korur */
        background-image:
            linear-gradient(rgba(234, 232, 217, 0.55), rgba(234, 232, 217, 0.55)),
            url('mobil-arkaplan.jpg');
        background-repeat: no-repeat, no-repeat;
        background-position: center center, center center;
        background-size: cover, cover;
        /* Scroll container'da 'scroll' değeri = arkaplan sabit kalır,
           mesajlarla birlikte kaymaz (iOS'ta 'fixed' sorun çıkarır) */
        background-attachment: scroll, scroll;
    }

    /* Mobilde sohbet penceresinin kaydırma çubuğunu gizle.
       Kaydırma çalışmaya devam eder, sadece çubuk görünmez;
       böylece 5px'lik çubuk ekranı daraltmaz. */
    #chat-window {
        scrollbar-width: none;        /* Firefox / modern tarayıcılar */
        -ms-overflow-style: none;     /* eski Edge / IE */
    }
    #chat-window::-webkit-scrollbar {
        display: none !important;     /* Chrome / Safari / Samsung Internet */
        width: 0 !important;
        height: 0 !important;
    }
    #chat-window::-webkit-scrollbar-track,
    #chat-window::-webkit-scrollbar-thumb {
        background: transparent !important;
    }
}

/* ========== STYLE BLOCK 5 ========== */
/* ==========================================================
   "ÇIKIŞ YAP" YAZI GÖRÜNÜMÜ
   - Sadece yazının görünümü değişir
   - Buton genişliği / yükseklik / padding / font-size / alttaki ok
     hiç dokunulmadı, yani yerleşim birebir aynı kalır
   ========================================================== */
.cikis-btn {
    /* Daha karakterli bir yazı tipi sırası */
    font-family: "Trebuchet MS", "Segoe UI", "Helvetica Neue", Tahoma, sans-serif;
    text-transform: uppercase;      /* ÇIKIŞ YAP şeklinde büyük harf */
    letter-spacing: 1.6px;          /* harfler arası ferahlık */
    /* Kabartma etkisi: üstte açık, altta koyu gölge */
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.65),
        0 -1px 0 rgba(0, 0, 0, 0.10);
    /* Butonun kendisine de hafif kabarık his veren iç ışık */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.15);
    transition: background 0.18s ease, color 0.18s ease, letter-spacing 0.18s ease;
}

/* Yazının solunda küçük "dışa çık" oku */
.cikis-btn b::before {
    content: '\21E5';               /* ⇥  çıkış simgesi */
    margin-right: 7px;
    font-weight: 700;
    opacity: 0.75;
    /* Simge satır yüksekliğini değiştirmesin */
    display: inline-block;
    line-height: 1;
    vertical-align: baseline;
}

/* Üzerine gelince yazı biraz daha açılır ve beyaza yaklaşır */
.cikis-btn:hover {
    color: #2B211A;
    letter-spacing: 2.1px;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.75),
        0 -1px 0 rgba(0, 0, 0, 0.12);
}

/* Tıklama anında hafifçe içe basılmış görünür */
.cikis-btn:active {
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Klavyeyle gezinenler için erişilebilir odak halkası */
.cikis-btn:focus-visible {
    outline: 2px solid #4A3B32;
    outline-offset: 2px;
}

/* Küçük ekranlarda yazı KESİNLİKLE tek satırda kalmalı.
   Yan panel mobilde 92px olduğu için büyük harf + harf aralığı +
   simge birleşince yazı alt satıra kaçıyordu. Mobilde:
   - simge kaldırılır
   - büyük harf kapanır (Çıkış Yap daha kısa)
   - harf aralığı sıfırlanır
   - nowrap ile satır kırılması tamamen engellenir
   DİKKAT: Butona overflow:hidden VERİLMEZ! Alttaki üçgen kuyruk
   (.cikis-btn::after) butonun dışına sarktığı için kırpılır ve
   kaybolur. Satır kırılması için nowrap tek başına yeterlidir. */
@media screen and (max-width: 768px) {
    .cikis-btn,
    .cikis-btn b {
        white-space: nowrap;
        word-break: keep-all;
    }
    /* Kuyruk her koşulda görünür kalsın */
    .cikis-btn { overflow: visible; }
    .cikis-btn::after { display: block; }
    .cikis-btn {
        text-transform: none;       /* "Çıkış Yap" şeklinde kalsin */
        letter-spacing: 0;
    }
    .cikis-btn:hover {
        letter-spacing: 0;          /* dokunmatikte genişleme olmasin */
    }
    .cikis-btn b::before {
        content: none;              /* mobilde ok simgesi yok */
        margin-right: 0;
    }
}

/* ========== STYLE BLOCK 6 ========== */
/* ==========================================================
   MENÜ BUTONUNU GERÇEK MENÜ GİBİ GÖSTERME
   Sorun: ☰ karakteri telefon yazı tiplerinde çok ince ve
   küçük çiziliyor, bu yüzden menü gibi durmuyordu.
   Çözüm: karakter gizlenir, yerine kalın 3 çizgi ÇİZİLİR.
   Hiçbir animasyon / efekt yok.
   ========================================================== */

/* ☰ karakterini gizle (yerine çizgileri kendimiz çiziyoruz) */
.room-menu-btn{
    position: relative !important;
    font-size: 0 !important;
    color: transparent !important;
    border: 2px solid #4A3B32 !important;   /* koyu kahve çerçeve */
    border-radius: 6px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.25) !important;
}

/* Ortada 3 kalın yatay çizgi: klasik menü simgesi */
.room-menu-btn::before{
    content: '' !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 18px !important;
    height: 2.5px !important;
    background: #2B211A !important;
    border-radius: 2px !important;
    /* üst ve alt çizgiler */
    box-shadow:
        0 -6px 0 #2B211A,
        0  6px 0 #2B211A !important;
}

.room-menu-btn:hover{
    border-color: #2B211A !important;
}

.room-menu-btn:focus-visible{
    outline: 2px solid #1a1a1a !important;
    outline-offset: 2px !important;
}

/* ---------- MOBİL ----------
   Telefonda buton 28px ile fazla ufaktı. Dokunma hedefini
   34px'e çıkarıyoruz; üst bar esnek olduğu için yalnızca
   6px büyüme olur, logo ve diğer öğeler yerinde kalır. */
@media screen and (max-width:600px){
    .room-menu-btn{
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        flex: 0 0 34px !important;
        border: 2px solid #4A3B32 !important;
        border-radius: 6px !important;
        box-shadow: 0 1px 3px rgba(0,0,0,.28) !important;
    }
    /* Çizgiler mobilde de net ve kalın */
    .room-menu-btn::before{
        width: 17px !important;
        height: 2.5px !important;
        box-shadow:
            0 -6px 0 #2B211A,
            0  6px 0 #2B211A !important;
    }
}

/* ========== STYLE BLOCK 7 ========== */
/* ==========================================================
   ALT YAZI YAZMA BARI
   Tema uyumlu gönder butonu, dokunma alanı, odak vurgusu,
   iPhone alt çizgisi boşluğu ve kısa uyarı balığı.
   ========================================================== */
#input-area{
    position: relative;                 /* uyarı balığı bunun içine konumlanır */
    align-items: center;
    gap: 8px;
}

/* Mesaj kutusu: odak vurgusu ve rahat dokunma */
#input-area #msg{
    min-height: 40px;
    background: #fff;
    border: 1px solid #c8c3aa;
    transition: border-color .15s ease, box-shadow .15s ease;
}
#input-area #msg:focus{
    border-color: #C4A882;
    box-shadow: 0 0 0 3px rgba(196,168,130,.28);
}
#input-area #msg::placeholder{ color:#9b937f; }

/* Gönder butonu: tema rengi, yuvarlak hat */
#input-area #sendBtn{
    flex: 0 0 auto;
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: #C4A882;
    color: #2B211A;
    font-size: 0;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,.22);
    transition: background .15s ease, opacity .15s ease, transform .08s ease;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}
#input-area #sendBtn .send-icon{
    display: inline-block;
    width: 20px;
    height: 20px;
}
#input-area #sendBtn:hover{ background:#D4BB99; }
#input-area #sendBtn:active{ transform: translateY(1px); }
#input-area #sendBtn:focus-visible{ outline:2px solid #2B211A; outline-offset:2px; }

/* Kutu boşken ya da gönderim sürerken soluk */
#input-area #sendBtn.bos,
#input-area #sendBtn:disabled{
    background: #DAD6BC;
    color: #6e6552;
    opacity: .65;
    box-shadow: none;
}

/* Yazı barının üzerinde beliren kısa uyarı */
#input-area #inputUyari{
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: calc(100% + 6px);
    margin: 0 auto;
    width: fit-content;
    max-width: calc(100% - 20px);
    background: rgba(43,33,26,.92);
    color: #F5EFE2;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    padding: 7px 12px;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,.25);
    text-align: center;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 1001;
}
#input-area #inputUyari.gorunur{ opacity:1; transform: translateY(0); }

@media(max-width:600px){
    /* iPhone alt ana çizgisiyle çakışmasın */
    #input-area{
        height: auto !important;
        min-height: 60px !important;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    }
    #input-area #msg{
        min-height: 44px;
        font-size: 16px;              /* iOS'ta otomatik yakınlaşmayı önler */
    }
    #input-area #sendBtn{
        width: 46px;
        min-width: 46px;
        min-height: 44px;
        padding: 0;
        border-radius: 6px;
    }
    #input-area #sendBtn .send-icon{
        width: 22px;
        height: 22px;
    }
    #input-area #inputUyari{ font-size: 13.5px; }
}

/* ========== STYLE BLOCK 8 ========== */
/* ==========================================================
   iPHONE KLAVYE KAYMASI
   Sorun: iOS klavye açılınca sayfanın tamamını yukarı itiyor,
   bu yüzden yazı barı ekranın tepesine çıkıyor / kayboluyor.
   Çözüm: sohbet ekranı görünen alana sabitlenir, sayfanın
   kendisi hiç kaydırılamaz hale gelir. Klavye yüzünden oluşan
   kayma miktarı --app-shift ile geri alınır.
   Not: Bu kurallar yalnızca giriş yapmış mobil kullanıcıda
   devreye girer (html'e mobil-sabit sınıfı JS ile eklenir),
   masaüstü ve giriş ekranı hiç etkilenmez.
   ========================================================== */
html.mobil-sabit,
html.mobil-sabit body {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: manipulation;
}

html.mobil-sabit body {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--app-h, 100dvh);
    max-height: var(--app-h, 100dvh);
    transform: translateY(var(--app-shift, 0px));
    -webkit-transform: translateY(var(--app-shift, 0px));
}

/* Sohbet penceresi ve özel mesaj kutusu içeride kaydırılabilir kalır */
html.mobil-sabit #chat-window,
html.mobil-sabit .dm-body,
html.mobil-sabit .room-menu-scroll {
    touch-action: pan-y;
    overscroll-behavior: contain;
}

/* Yazı barı her zaman en altta, klavyenin hemen üstünde */
html.mobil-sabit #input-area {
    flex: 0 0 auto;
}

/* Özel mesaj penceresi de görünen alana sığsın */
html.mobil-sabit .dm-window {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    height: 100% !important;
    max-height: 100% !important;
}


/* =========================================================
   RUMUZ ŞİFRELE (misafir kayıt) ekranı
   Profil kartından bağımsız, tam ekran ortalanmış katman.
   ========================================================= */
.sifrele-katman{
    position:fixed; inset:0; z-index:10050; display:none;
    align-items:center; justify-content:center;
    padding:16px; box-sizing:border-box;
    background:rgba(24,18,10,.55);
    -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
    overflow-y:auto; -webkit-overflow-scrolling:touch;
}
.sifrele-katman.acik{ display:flex; }
.sifrele-panel{
    width:100%; max-width:380px; background:#fff; border-radius:14px;
    box-shadow:0 18px 44px rgba(0,0,0,.34); overflow:hidden;
    box-sizing:border-box; animation:sifreleGir .18s ease-out;
    margin:auto;
}
@keyframes sifreleGir{ from{ opacity:0; transform:translateY(14px) scale(.98); } to{ opacity:1; transform:none; } }
.sifrele-baslik{
    background:#958773; color:#fff; padding:12px 14px;
    display:flex; align-items:center; gap:10px; min-height:48px; box-sizing:border-box;
}
.sifrele-baslik .sifrele-ikon{ font-size:20px; line-height:1; }
.sifrele-baslik .sifrele-ad{ font-weight:800; font-size:15px; flex:1; min-width:0; }
.sifrele-kapat{
    border:0; background:rgba(0,0,0,.18); color:#fff; width:34px; height:34px;
    border-radius:8px; font-size:22px; line-height:1; cursor:pointer; flex-shrink:0;
}
.sifrele-kapat:hover{ background:rgba(0,0,0,.32); }
.sifrele-govde{ padding:16px 16px 18px; }
.sifrele-rumuz-kutu{
    display:flex; align-items:center; gap:10px; background:#f6f4ec;
    border:1px solid #e2ddcb; border-radius:10px; padding:10px 12px; margin-bottom:12px;
}
.sifrele-rumuz-kutu .sifrele-avatar{
    width:38px; height:38px; border-radius:50%; background:#8e00db; color:#fff;
    display:flex; align-items:center; justify-content:center;
    font-weight:900; font-size:17px; flex-shrink:0; text-transform:uppercase;
}
.sifrele-rumuz-kutu .sifrele-rumuz-metin{ min-width:0; }
.sifrele-rumuz-kutu .sifrele-rumuz-ad{
    font-weight:800; font-size:15px; color:#222;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.sifrele-rumuz-kutu .sifrele-rumuz-alt{ font-size:11.5px; color:#6f6753; }
.sifrele-aciklama{ font-size:12.5px; color:#555; line-height:1.55; margin-bottom:14px; }
.sifrele-alan{ margin-bottom:11px; }
.sifrele-alan label{ display:block; font-size:12px; font-weight:700; color:#444; margin-bottom:5px; }
.sifrele-giris{ position:relative; }
.sifrele-giris input{
    width:100%; box-sizing:border-box; padding:14px 52px 14px 13px;
    border:1.5px solid #ddd6c4; border-radius:9px; font-size:16px; outline:none;
    background:#fff; color:#222; -webkit-appearance:none;
    letter-spacing:.4px;
}
/* Şifre gizleme: alan metin alanı olarak kalır (telefon şifre önerisi açmasın),
   karakterler CSS ile noktaya çevrilir. */
.sifrele-giris input.gizli{
    -webkit-text-security:disc;
    text-security:disc;
    letter-spacing:2px;
}
.sifrele-giris input.gizli::placeholder { -webkit-text-security:none; text-security:none; letter-spacing:normal; color:#999; }
.sifrele-giris input:focus{ border-color:#8e00db; box-shadow:0 0 0 3px rgba(142,0,219,.12); }
.sifrele-giris input.hatali{ border-color:#d32f2f; }
.sifrele-goz{
    position:absolute; right:4px; top:50%; transform:translateY(-50%);
    width:44px; height:44px; border:0; background:transparent; cursor:pointer;
    font-size:19px; line-height:1; border-radius:8px; color:#7a7361;
    display:flex; align-items:center; justify-content:center;
    -webkit-tap-highlight-color:transparent;
}
.sifrele-goz:hover{ background:#f1eee3; }
.sifrele-goz:active{ background:#e9e5d7; }
/* Sayac + ipucu satırı */
.sifrele-ipucu{
    display:flex; justify-content:space-between; gap:10px;
    font-size:11.5px; color:#8a8371; margin-top:6px; min-height:15px;
}
.sifrele-ipucu #sifreleIpucu{ text-align:right; flex:1; }
.sifrele-ipucu #sifreleIpucu.uyari{ color:#c0392b; }
.sifrele-ipucu #sifreleIpucu.tamam{ color:#1e8e3e; font-weight:700; }
.sifrele-gonder{
    width:100%; padding:15px; margin-top:10px; background:#1e8e3e; color:#fff;
    border:0; border-radius:9px; font-size:16px; font-weight:800; cursor:pointer;
    box-shadow:0 2px 8px rgba(30,142,62,.28); min-height:50px;
    -webkit-tap-highlight-color:transparent;
}
.sifrele-gonder:hover{ background:#17752f; }
.sifrele-gonder:disabled{ background:#9db8a4; box-shadow:none; cursor:default; }
.sifrele-vazgec{
    width:100%; padding:13px; margin-top:8px; background:transparent; color:#6f6753;
    border:0; border-radius:9px; font-size:14px; font-weight:700; cursor:pointer;
    min-height:46px; -webkit-tap-highlight-color:transparent;
}
.sifrele-vazgec:hover{ background:#f3f0e6; }
.sifrele-durum{ font-size:12.5px; margin-top:10px; line-height:1.5; min-height:16px; }
.sifrele-durum.hata{ color:#c0392b; }
.sifrele-durum.basari{ color:#1e8e3e; font-weight:700; }
.sifrele-not{
    font-size:11.5px; color:#8a8371; margin-top:12px; padding-top:10px;
    border-top:1px dashed #e2ddcb; line-height:1.5;
}
/* Profil kartındaki "şifrele" çağrısı */
.profil-sifrele-cagri{
    margin-top:10px; width:100%; max-width:360px; padding:11px;
    background:#1e8e3e; color:#fff; border:0; border-radius:8px;
    font-weight:800; font-size:14px; cursor:pointer;
}
.profil-sifrele-cagri:hover{ background:#17752f; }

@media screen and (max-width:600px){
    .sifrele-katman{ padding:12px; align-items:flex-start; }
    .sifrele-panel{ max-width:100%; border-radius:12px; margin-top:8px; }
    .sifrele-govde{ padding:14px 13px 16px; }
    /* iOS otomatik yakınlaştırmayı engellemek için 16px */
    .sifrele-giris input{ font-size:16px; padding:15px 52px 15px 12px; }
    .sifrele-gonder{ padding:16px; }
    .sifrele-goz{ width:46px; height:46px; }
}
@media screen and (max-width:600px) and (orientation:landscape){
    .sifrele-katman{ padding:8px; }
    .sifrele-aciklama{ margin-bottom:10px; }
    .sifrele-panel{ margin-top:0; }
}

/* Mobilde sabit gövde modunda katman ekran yüksekliğine uyar (klavye açılınca da) */
html.mobil-sabit .sifrele-katman{
    height: var(--app-h, 100dvh);
    max-height: var(--app-h, 100dvh);
    align-items: flex-start;
    touch-action: pan-y;
    overscroll-behavior: contain;
}

/* =========================================================
   RUMUZ OTOMATİK TAMAMLAMA (AUTOCOMPLETE)
   ========================================================= */
.ac-dropdown {
    position: absolute;
    bottom: 60px; /* input-area yüksekliği */
    left: 10px;
    min-width: 120px;
    max-width: 260px;
    width: max-content;
    background: #fff;
    border: 1px solid #dcd6be;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1100;
    display: none;
    padding: 4px 0;
}
.ac-dropdown.visible {
    display: block;
}
.ac-item {
    padding: 8px 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #f0ede4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ac-item:last-child {
    border-bottom: none;
}
.ac-item:hover,
.ac-item.ac-active {
    background: #f5f0e0;
    color: #8e00db;
}
.ac-item .ac-match {
    color: #8e00db;
    font-weight: 800;
}
.ac-item .ac-rest {
    color: #555;
}

/* =========================================================
   BAHSEDİLEN RUMUZ VURGULAMASI (MENTION HIGHLIGHT)
   Yalnızca nick metni kırmızı+kalın; balon arka planı değişmez.
   ========================================================= */
.mention-nick {
    color: #d32f2f;
    font-weight: 800;
}



/* Mobilde autocomplete dropdown klavyenin üstünde kalsın */
@media screen and (max-width:900px) and (pointer:coarse) and (hover:none) {
    .ac-dropdown {
        bottom: calc(60px + var(--app-shift, 0px));
        max-height: 35vh;
        max-width: 55vw;
    }
}
