@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{height:100%;overflow:hidden}
body{height:100%;overflow:hidden;font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:14px;color:#1f2937;background:#f3f4f6}
.screen{display:none;width:100%;height:100%}.screen.active{display:flex}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes popIn{from{opacity:0;transform:scale(.92) translateY(12px)}to{opacity:1;transform:scale(1) translateY(0)}}
@keyframes fadeInMsg{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@keyframes pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
@keyframes catiSlide{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}

/* AUTH */
.auth-container{width:400px;max-width:95vw;margin:auto;background:#fff;border-radius:16px;padding:32px 28px;box-shadow:0 16px 48px rgba(0,0,0,.2)}
.auth-logo{text-align:center;margin-bottom:24px}
.logo-icon{font-size:48px;margin-bottom:8px}
.auth-logo h1{font-size:22px;font-weight:700}.auth-logo p{font-size:13px;color:#999;margin-top:4px}
.auth-tabs{display:flex;gap:4px;margin-bottom:20px;border-bottom:2px solid #f0f0f0;padding-bottom:0}
.auth-tab{flex:1;padding:10px;border:none;background:0 0;font-size:14px;font-weight:500;color:#999;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-2px;transition:all .15s;font-family:inherit}
.auth-tab.active{color:#2196F3;border-bottom-color:#2196F3;font-weight:600}
.auth-form{display:none;flex-direction:column;gap:12px}.auth-form.active{display:flex}
.auth-form input,.auth-form select{padding:12px 14px;border:1px solid #e0e0e0;border-radius:10px;font-size:14px;font-family:inherit;outline:none;transition:border .15s}
.auth-form input:focus,.auth-form select:focus{border-color:#2196F3}
.btn-primary{padding:12px;border:none;border-radius:10px;background:#2196F3;color:#fff;font-size:15px;font-weight:600;cursor:pointer;transition:background .15s;font-family:inherit}.btn-primary:hover{background:#1976D2}
.btn-guest{padding:12px;border:2px solid #e0e0e0;border-radius:10px;background:0 0;color:#666;font-size:14px;font-weight:500;cursor:pointer;transition:all .15s;font-family:inherit}.btn-guest:hover{border-color:#2196F3;color:#2196F3}
.error-msg{color:#e53935;font-size:13px;text-align:center;margin-top:8px;min-height:20px}

/* APP LAYOUT */
#chatScreen{flex-direction:column;height:100vh;max-height:100vh}
.app{display:flex;flex-direction:column;height:100%}

/* TOPBAR */
.topbar{display:flex;align-items:center;height:60px;min-height:60px;position:relative;background:#fff;border-bottom:1px solid #e0e0e0;padding:0;margin:0 0 14px;z-index:100;flex-shrink:0;font-family:Lato,"Helvetica Neue",Arial,Helvetica,sans-serif;color:#242424}
.topbar-left{display:flex;align-items:center;gap:8px;justify-content:center;flex:0 0 400px;max-width:400px;height:60px;overflow:hidden;padding:0 10px;box-sizing:border-box}
.topbar-icon{display:inline-flex;align-items:center;justify-content:center;width:56px;height:50px;border:none;background:transparent;border-radius:0;cursor:pointer;color:#9aa0a6;transition:all .15s;position:relative;flex-shrink:0;margin:0 3px;box-shadow:none}
.topbar-icon:hover{color:#1557b0;background:#d2e3fc}
.topbar-icon.active{color:#1a73e8;background:transparent}
.topbar-icon:hover{background:rgba(0,0,0,.05);color:#5f6368}.topbar-icon.active{color:#1a73e8;background:transparent}
  .topbar-icon.active::after{content:'';position:absolute;bottom:2px;left:50%;transform:translateX(-50%);width:28px;height:3px;background:#1a73e8;border-radius:2px}
.badge{position:absolute;top:-2px;right:-4px;background:#1a73e8;color:#fff;font-size:10px;font-weight:700;padding:2px 8px;border-radius:12px;min-width:22px;text-align:center;line-height:1.2;pointer-events:none;z-index:10;font-family:Lato,"Helvetica Neue",Arial,Helvetica,sans-serif;box-shadow:0 1px 3px rgba(26,115,232,.3)}
.topbar-center{flex:1;display:flex;align-items:center;justify-content:flex-start;padding:0 16px 0 12px;min-width:0}
.room-info-fixed{position:relative}
.room-avatar-fixed{width:44px;height:44px;border-radius:10px;overflow:hidden;flex-shrink:0;border:2px solid #e0e0e0}
.room-avatar-img{width:100%;height:100%;object-fit:cover}
.room-name-col{display:flex;flex-direction:column;gap:0}
.room-info-btn{width:32px;height:32px;border-radius:50%;border:2px solid #ccc;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;transition:all .15s;background:#fff}
.room-info-btn:hover{border-color:#1565C0;background:#f0f0f0}
.room-info-popup{display:none;position:fixed;top:52px;right:60px;background:#fff;border-radius:12px;box-shadow:0 4px 24px rgba(0,0,0,.18);min-width:260px;z-index:10000;padding:0;overflow:hidden;border:1px solid #e0e0e0}
.room-info-popup.show{display:block}
.room-popup-header{background:linear-gradient(135deg,#1565C0,#0D47A1);color:#fff;padding:10px 16px;font-size:14px;font-weight:700}
.room-popup-list{list-style:none;padding:10px 16px;margin:0}
.room-popup-list li{padding:6px 0;font-size:13px;color:#444;border-bottom:1px solid #f0f0f0;display:flex;align-items:center;gap:8px}
.room-popup-list li:last-child{border-bottom:none}
.room-popup-list li::before{content:'\2022';color:#1565C0;font-weight:700;font-size:16px}
.room-name{font-size:15px;font-weight:700;white-space:nowrap;color:#1f2937}
.room-desc{font-size:12px;color:#6b7280}

/* ANNOUNCEMENT BAR */
.announcement-bar{display:flex;align-items:center;justify-content:flex-start;padding:6px 12px;background:#fff;border-bottom:1px solid #e0e0e0;flex-shrink:0;min-height:48px}
.announcement-left{display:flex;align-items:center;gap:10px;flex:1;min-width:0}
.announcement-avatar{width:36px;height:36px;border-radius:50%;overflow:hidden;background:#ddd;flex-shrink:0}
.announcement-avatar img{width:100%;height:100%;object-fit:cover}
.announcement-info{flex:1;min-width:0}
.announcement-title{font-size:14px;font-weight:700;color:#333;white-space:nowrap}
.announcement-scroll{overflow:hidden;white-space:nowrap;width:100%;position:relative}
.announcement-scroll-text{display:inline-block;animation:scrollAnn 30s linear infinite;font-size:12px;color:#888;padding-left:100%}
@keyframes scrollAnn{0%{transform:translateX(0)}100%{transform:translateX(-100%)}}
.announcement-right{flex-shrink:0;margin-left:12px}
.ann-rank-badge{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:8px;font-size:12px;font-weight:600;background:#f5f5f5}

.topbar-right{display:flex;align-items:center;gap:6px;flex-shrink:0;position:relative}
.current-user-info{display:flex;align-items:center;gap:8px;padding:4px 10px 4px 4px;border-radius:8px;cursor:pointer}
.current-user-info:hover{background:#f0f0f0}
.avatar-small{width:34px;height:34px;border-radius:50%;overflow:hidden;background:#ddd;flex-shrink:0}
.avatar-small img{width:100%;height:100%;object-fit:cover;display:block}
.user-details-top{display:flex;flex-direction:column}
.username-top{font-size:13px;font-weight:600;line-height:1.2}
.flash-nick-top{font-size:11px;color:#999;line-height:1.2}
.topbar-rank-display{font-size:16px;font-weight:800;letter-spacing:1px;margin-right:4px;line-height:1}
.topbar-rank-display.rank-system{font-size:20px;font-weight:900;letter-spacing:4px;background:linear-gradient(90deg,#FF0000,#FF7700,#FFD700,#00CC00,#0066FF,#8800CC);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;filter:none;word-spacing:4px}
.topbar-rank-display.rank-kral{font-size:16px;font-weight:800;color:#FFD700;text-shadow:none}
.topbar-rank-display.rank-network{font-size:20px;font-weight:900;letter-spacing:4px;background:linear-gradient(90deg,#FF0000,#FF7700,#FFD700,#00CC00,#0066FF,#8800CC);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;filter:none;word-spacing:4px}
.hamburger-btn{display:none}

/* MAIN */
.main-content{display:flex;flex:1;min-height:0;overflow:hidden;}

/* SIDEBAR */
.sidebar{width:400px;min-width:400px;background:#ffffff;border-right:1px solid #e5e7eb;display:flex;flex-direction:column;flex-shrink:0;overflow:hidden}
.sidebar-header{padding:8px 8px 6px;display:flex;align-items:center;gap:2px}
.search-box{display:flex;align-items:center;background:#fff;border:1px solid #ddd;border-radius:24px;padding:0 16px;height:42px;flex:1;min-width:0;margin:0 8px}
.search-box input{flex:1;border:none;background:0 0;font-size:13px;color:#1f2937;outline:none;font-family:inherit;min-width:0}
.search-box input::placeholder{color:#9ca3af}
.search-btn{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border:none;background:0 0;cursor:pointer;color:#999;border-radius:4px;flex-shrink:0}
.sidebar-tabs{display:flex;padding:0 12px;gap:0;border-bottom:1px solid #e5e7eb;height:38px}
.sidebar-tab{flex:1;padding:12px 6px;border:none;background:0 0;font-size:13px;font-weight:600;color:#5f6368;cursor:pointer;border-bottom:2px solid transparent;transition:all .15s;font-family:Lato,"Helvetica Neue",Arial,sans-serif;white-space:nowrap}
.sidebar-tab:hover{color:#333}
.sidebar-tab.active{color:#2563eb;border-bottom-color:#2563eb;font-weight:600}
.tab-count{font-weight:400;color:#9ca3af}
.user-list{flex:1;overflow-y:auto;overflow-x:hidden}
.user-list::-webkit-scrollbar{width:4px}.user-list::-webkit-scrollbar-thumb{background:#ccc;border-radius:2px}
.user-item{display:flex;align-items:center;padding:12px 16px;gap:14px;cursor:pointer;transition:background .15s;border-bottom:1px solid #f0f0f0;min-height:80px}
.user-item:hover{background:#f9fafb}
.sidebar-room-item .user-avatar{border-radius:8px;background:transparent}
.sidebar-room-item:hover{background:#e8f0fe}
.sidebar-room-item.active-room{background:#e3f2fd;border-left:3px solid #1565C0}
.user-avatar{width:54px;height:54px;border-radius:50%;overflow:hidden;background:#e0e0e0;flex-shrink:0;position:relative;border:3px solid #2196F3}
.user-avatar.female{border-color:#E91E63}
.user-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.user-avatar.speaking{animation:speakPulse .6s ease-in-out infinite}
.user-avatar.speaking::after{content:'';position:absolute;inset:-3px;border-radius:50%;border:2.5px solid #4caf50;animation:speakRing .6s ease-in-out infinite;box-shadow:0 0 8px #4caf5080}
.user-avatar.speaking.female::after{border-color:#e91e9c;box-shadow:0 0 8px #e91e9c80}
@keyframes speakPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}
@keyframes speakRing{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.15)}}
/* Voice level bar at bottom */
.voice-level-bar{position:fixed;bottom:60px;left:340px;height:4px;background:rgba(0,0,0,.1);border-radius:2px;z-index:100;transition:width .1s}
.voice-level-fill{height:100%;border-radius:2px;transition:width 50ms,background 200ms;width:0%;background:#4caf50}
.voice-level-fill.female{background:#e91e9c}
/* Video chat overlay */
.video-overlay{position:fixed;inset:0;background:rgba(0,0,0,.85);z-index:10000;display:flex;align-items:center;justify-content:center}
.video-container{position:relative;width:800px;max-width:95vw;aspect-ratio:16/9;background:#000;border-radius:16px;overflow:hidden;box-shadow:0 8px 40px rgba(0,0,0,.5)}
.video-remote{width:100%;height:100%;background:#111}
.video-remote video{width:100%;height:100%;object-fit:cover}
.video-remote-label{position:absolute;top:12px;left:12px;background:rgba(0,0,0,.6);color:#fff;padding:4px 12px;border-radius:20px;font-size:12px;font-weight:600}
.video-local{position:absolute;bottom:70px;right:12px;width:140px;height:105px;border-radius:10px;overflow:hidden;border:2px solid #fff;box-shadow:0 2px 12px rgba(0,0,0,.4)}
.video-local video{width:100%;height:100%;object-fit:cover}
.video-controls{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);display:flex;gap:12px}
.video-ctrl-btn{width:44px;height:44px;border-radius:50%;border:none;background:rgba(255,255,255,.2);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .15s;backdrop-filter:blur(8px)}
.video-ctrl-btn:hover{background:rgba(255,255,255,.35)}
.video-ctrl-btn.end-call{background:#e53935}
.video-ctrl-btn.end-call:hover{background:#c62828}
/* Cam button active */
.msg-icon.active-cam{color:#2196f3;background:#e3f2fd}
.user-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.user-name{font-size:15px;font-weight:700;color:#1a1a1a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2;font-family:Lato,"Helvetica Neue",Arial,sans-serif}
.user-flash-nick{font-size:12px;color:#e53935;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3;display:flex;align-items:center;gap:1px;flex-wrap:nowrap}
.user-flash-nick .fn-dot{display:inline-block;width:8px;height:8px;border-radius:50%;flex-shrink:0}
.user-status-text{font-size:11px;color:#888;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2}
.user-role{font-size:11px;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:280px;line-height:1.4}
.user-role.special{font-size:16px;font-weight:800;text-shadow:none;letter-spacing:1px;max-width:340px;word-break:break-all;line-height:1.5;margin-top:2px}
.user-role.rank-network{font-size:16px;font-weight:900;letter-spacing:2px;max-width:380px;word-spacing:2px;overflow:visible;text-overflow:clip;white-space:nowrap;line-height:1.4}
.rank-gradient-text{background:linear-gradient(90deg,#FF0000,#FF7700,#FFD700,#00CC00,#0066FF,#8800CC);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;font-size:inherit;font-weight:inherit;letter-spacing:inherit}
.user-role.rank-system{font-size:16px;font-weight:900;letter-spacing:2px;background:linear-gradient(90deg,#FF0000,#FF7700,#FFD700,#00CC00,#0066FF,#8800CC);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-shadow:none;filter:none;max-width:380px;word-spacing:2px;line-height:1.4}
.user-role.rank-kral{font-size:20px;font-weight:900;letter-spacing:2px;text-shadow:none;filter:none;max-width:380px}
.user-role.rank-agent{font-size:17px;font-weight:800;letter-spacing:2px;text-shadow:none;filter:none;max-width:340px}
.user-type{font-size:12px;color:#2196F3;font-weight:600;margin-top:1px}
.user-status-text{font-size:11px;color:#888;margin-top:1px}
.user-stars{display:block;font-size:10px;letter-spacing:1px;line-height:1.2;margin-top:1px}
.user-avatar{position:relative}
.user-avatar::after{content:'';position:absolute;bottom:0;left:0;width:12px;height:12px;border-radius:50%;background:#4caf50;border:2px solid #fff}
.user-avatar.female::after{background:#e91e63}
.user-mic-icon{flex-shrink:0;width:18px;height:18px;color:#4caf50}
.user-actions{display:flex;align-items:center;gap:6px;flex-shrink:0;margin-top:4px}
.user-actions .mic-indicator{width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px;background:linear-gradient(135deg,#4caf50,#66bb6a);color:#fff;box-shadow:0 0 8px rgba(76,175,80,0.5);animation:micPulse 2s ease-in-out infinite}
.user-actions .mic-indicator.female{background:linear-gradient(135deg,#e91e63,#f06292);box-shadow:0 0 8px rgba(233,30,99,0.5)}
@keyframes micPulse{0%,100%{box-shadow:0 0 8px rgba(76,175,80,0.5)}50%{box-shadow:0 0 16px rgba(76,175,80,0.8)}}
.user-actions .cam-indicator{width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px}

/* CHAT */
.chat-column{flex:1;display:flex;flex-direction:column;min-width:0;overflow:hidden}
.chat-area{flex:1;position:relative;overflow:hidden;display:flex;flex-direction:column;min-width:0}
.chat-background{position:absolute;inset:0;z-index:0;background:linear-gradient(180deg,rgba(10,10,30,.7) 0%,rgba(20,30,60,.5) 30%,rgba(10,20,40,.6) 100%);background-size:cover;background-position:center}
.chat-messages{position:relative;z-index:1;flex:1;display:flex;flex-direction:column;justify-content:flex-start;padding:20px 28px;gap:8px;overflow-y:auto;color:#1f2937}
.chat-messages::-webkit-scrollbar{width:4px}.chat-messages::-webkit-scrollbar-thumb{background:rgba(0,0,0,.15);border-radius:2px}
.sys-message{display:inline-flex;align-items:center;gap:8px;background:rgba(0,0,0,.55);backdrop-filter:blur(4px);color:#fff;padding:8px 16px;border-radius:20px;font-size:13px;font-weight:500;align-self:center;animation:fadeInMsg .3s ease}
.sys-message .room-link{color:#90caf9;font-weight:700}.sys-message .user-link{color:#ffeb3b;font-weight:700}
.sys-message .msg-time{font-size:11px;color:rgba(255,255,255,.5);flex-shrink:0}
.chat-bubble{display:flex;gap:8px;align-items:flex-start;max-width:70%;animation:fadeInMsg .2s ease}
.bubble-avatar{width:32px;height:32px;border-radius:50%;overflow:hidden;flex-shrink:0;background:#ddd}.bubble-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.bubble-content{background:rgba(0,0,0,.55);backdrop-filter:blur(4px);color:#fff;padding:8px 14px;border-radius:16px;border-top-left-radius:4px}
.bubble-header{display:flex;align-items:center;gap:6px;margin-bottom:2px}
.bubble-name{font-size:12px;font-weight:700;color:#90caf9}.bubble-role{font-size:10px;color:rgba(255,255,255,.5)}
.bubble-text{font-size:14px;line-height:1.5;word-break:break-word}
.bubble-time{font-size:10px;color:rgba(255,255,255,.4);margin-top:2px}
.typing-indicator{position:relative;z-index:1;padding:0 28px;font-size:12px;color:#999;min-height:0;transition:all .2s}
.typing-indicator.active{min-height:20px;padding:4px 28px}

/* MESSAGE BAR */
.message-bar{display:flex;align-items:center;height:52px;min-height:52px;background:#ffffff;border-top:1px solid #e5e7eb;padding:0 12px;padding-bottom:env(safe-area-inset-bottom,0);gap:6px;z-index:100;flex-shrink:0;position:relative}
.msg-icon{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:none;background:0 0;border-radius:8px;cursor:pointer;color:#6b7280;transition:all .15s;flex-shrink:0}
.msg-icon:hover{background:#f0f0f0;color:#333}
.msg-icon.active-mic{color:#e53935;background:#ffebee}
.message-input-wrapper{flex:1;display:flex;align-items:center;background:#f9fafb;border:1px solid #e5e7eb;border-radius:20px;padding:0 14px;height:36px;min-width:0}
.message-input{flex:1;border:none;background:0 0;font-size:14px;color:#1f2937;outline:none;font-family:inherit;min-width:0}
.message-input::placeholder{color:#bbb}
.msg-actions{display:flex;align-items:center;gap:2px;flex-shrink:0}
.send-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:none;background:0 0;border-radius:8px;cursor:pointer;color:#2196F3;transition:all .15s;flex-shrink:0}
.send-btn:hover{background:rgba(33,150,243,.1)}

/* Live Dropdown */
.live-dropdown-wrap{position:relative;display:flex;align-items:center;flex-shrink:0}
.live-dropdown-btn{font-size:0;line-height:0}
.live-dropdown{position:absolute;bottom:calc(100% + 4px);left:0;transform:none;background:#fff;border:1px solid #e0e0e0;border-radius:10px;box-shadow:0 4px 20px rgba(0,0,0,.15);padding:6px 0;min-width:200px;z-index:10001;margin-bottom:4px;animation:popIn .15s ease}
.live-dropdown-item{display:flex;align-items:center;gap:8px;padding:10px 16px;font-size:13px;color:#333;cursor:pointer;white-space:nowrap;transition:background .1s}
.live-dropdown-item:hover{background:#f5f5f5}
.live-dot{width:10px;height:10px;border-radius:50%;background:#ccc;flex-shrink:0}
.live-dot.green{background:#4caf50}
.live-dot.red{background:#e53935}
.live-dot.active{background:#4caf50;box-shadow:0 0 6px #4caf50}

/* Mic connect button */
#micConnectBtn.active-mic-connect{color:#4caf50;background:#e8f5e9;animation:micGlow 1.5s ease-in-out infinite}
@keyframes micGlow{0%,100%{box-shadow:0 0 4px rgba(76,175,80,.3)}50%{box-shadow:0 0 12px rgba(76,175,80,.6)}}
/* Hand button active */
.msg-icon.active-hand{color:#ff9800;background:#fff3e0}
.msg-icon.active-radio{color:#4caf50;background:#e8f5e9}
.live-indicator{font-size:14px;animation:livePulse 1.5s ease-in-out infinite}
.hand-indicator{font-size:14px;animation:handWave 1s ease-in-out infinite}
@keyframes livePulse{0%,100%{opacity:1}50%{opacity:.5}}
@keyframes handWave{0%,100%{transform:rotate(0)}50%{transform:rotate(15deg)}}
.user-avatar.speaking{animation:speakingGlow 0.8s ease-in-out infinite}
.user-avatar.speaking img{border:2px solid #4caf50;box-shadow:0 0 12px rgba(76,175,80,0.6)}
.user-avatar.speaking.female img{border-color:#e91e63;box-shadow:0 0 12px rgba(233,30,99,0.6)}
@keyframes speakingGlow{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}
.speaking-wave{display:flex;align-items:center;gap:2px;margin-left:4px}
.speaking-wave span{width:3px;background:#4caf50;border-radius:2px;animation:waveBar 0.6s ease-in-out infinite}
.speaking-wave span:nth-child(1){animation-delay:0s;height:8px}
.speaking-wave span:nth-child(2){animation-delay:0.15s;height:14px}
.speaking-wave span:nth-child(3){animation-delay:0.3s;height:8px}
@keyframes waveBar{0%,100%{transform:scaleY(0.5)}50%{transform:scaleY(1.2)}}

/* Radio Player Panel */
#playBtn{position:relative}
.radio-player-panel{position:absolute;bottom:100%;right:0;background:#fff;border:1px solid #e0e0e0;border-radius:10px;box-shadow:0 4px 20px rgba(0,0,0,.15);padding:8px 12px;z-index:10001;margin-bottom:4px;min-width:160px;animation:popIn .15s ease}
.radio-player-inner{display:flex;align-items:center;gap:10px;font-size:12px;color:#333}
.radio-player-info{display:flex;align-items:center;gap:6px}
.radio-player-pause{border:none;background:none;cursor:pointer;display:flex;align-items:center;padding:0}

/* Sidebar live user */
.sidebar-live-user{display:flex;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid #f0f0f0}
.sidebar-live-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;border:2px solid #4caf50}
.sidebar-live-info{display:flex;flex-direction:column;gap:1px;flex:1}
.sidebar-live-name{font-size:13px;font-weight:600;color:#333}
.sidebar-live-status{font-size:11px;color:#4caf50;display:flex;align-items:center;gap:4px}
.sidebar-live-mic{color:#4caf50;font-size:14px}

/* ROOMS PANEL */
.rooms-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:10000;display:none;align-items:flex-start;justify-content:center;padding:60px 16px 16px;animation:fadeIn .15s ease}
.rooms-overlay.show{display:flex}
.rooms-panel{background:#fff;border-radius:16px;width:720px;max-width:96vw;box-shadow:0 16px 48px rgba(0,0,0,.25);animation:popIn .2s ease;overflow:hidden;display:flex;flex-direction:column;max-height:calc(100vh - 80px)}
.rooms-head{display:flex;align-items:center;justify-content:flex-start;padding:18px 22px 14px;border-bottom:1px solid #f0f0f0}
.rooms-head h2{font-size:18px;font-weight:700;margin:0}.rooms-head .room-count{font-size:13px;color:#999;font-weight:400}
.rooms-close{width:32px;height:32px;border-radius:50%;border:none;background:#f0f0f0;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:18px;color:#666;transition:all .15s}
.rooms-close:hover{background:#e0e0e0;color:#333}
.rooms-search{padding:12px 22px;border-bottom:1px solid #f0f0f0}
.rooms-search input{width:100%;padding:9px 14px;border:1px solid #e0e0e0;border-radius:8px;font-size:13px;font-family:inherit;outline:none}
.rooms-search input:focus{border-color:#2196F3}
.rooms-list{overflow-y:auto;flex:1;padding:8px 14px}
.room-card{display:flex;align-items:center;gap:14px;padding:12px;border-radius:10px;cursor:pointer;transition:background .12s;border:1px solid transparent}
.room-card:hover{background:#f5f9ff;border-color:#e3f2fd}
.room-icon-box{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0;color:#fff}
.room-body{flex:1;min-width:0}
.room-title{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.room-desc-text{font-size:12px;color:#999;margin-top:2px}
.room-meta{display:flex;align-items:center;gap:12px;flex-shrink:0}
.room-users{display:flex;align-items:center;gap:4px;font-size:13px;color:#555;font-weight:600}
.room-users svg{width:16px;height:16px;color:#999}

/* CONTEXT MENU */
.context-menu{position:fixed;background:#fff;border:1px solid #e0e0e0;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.18);padding:6px 0;min-width:200px;z-index:9999;display:none;animation:fadeIn .1s ease}
.context-header{padding:8px 14px 6px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#374151;border-bottom:1px solid #f3f4f6}
.context-item{padding:8px 14px;font-size:13px;cursor:pointer;transition:all .1s;display:flex;align-items:center;gap:8px;color:#333}
.context-item:hover{background:#eff6ff}
.context-item .ctx-icon{width:16px;height:16px;flex-shrink:0;opacity:.8;color:#555}.context-item:hover .ctx-icon{opacity:1;color:#2196F3}
.ctx-header{padding:6px 14px;font-size:12px;font-weight:700;color:#1565C0;background:#f0f4ff;border-bottom:1px solid #e0e0e0;text-transform:uppercase;letter-spacing:.5px}
.context-item.danger{color:#dc2626}.context-item.danger:hover{background:#fef2f2}
.context-divider{height:1px;background:#e0e0e0;margin:4px 8px}
.ctx-submenu-arrow{margin-left:auto;font-size:10px;color:#6b7280}
.ctx-submenu{position:absolute;left:100%;top:0;background:#fff;border:1px solid #e0e0e0;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.18);padding:6px 0;min-width:180px;display:none;z-index:10000}
.ctx-submenu.show{display:block}
.ctx-toggle{display:flex;align-items:center;justify-content:flex-start;padding:8px 14px;font-size:13px;cursor:pointer}
.ctx-toggle:hover{background:#e3f2fd}
.toggle-switch{width:36px;height:20px;background:#ccc;border-radius:10px;position:relative;transition:background .2s;cursor:pointer}
.toggle-switch.active{background:#4caf50}
.toggle-switch::after{content:'';position:absolute;top:2px;left:2px;width:16px;height:16px;background:#fff;border-radius:50%;transition:transform .2s}
.toggle-switch.active::after{transform:translateX(16px)}
.color-picker{display:flex;gap:6px;padding:8px 14px;flex-wrap:wrap}
.color-dot{width:28px;height:28px;border-radius:50%;cursor:pointer;border:2px solid transparent;transition:all .15s}
.color-dot:hover{transform:scale(1.15)}
.color-dot.selected{border-color:#333}

/* SETTINGS PANEL */
.settings-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:15000;display:none;align-items:center;justify-content:center;padding:50px 16px 16px;animation:fadeIn .15s ease}
.settings-overlay.show{display:flex}
.settings-panel{background:#fff;border-radius:14px;width:520px;max-width:96vw;box-shadow:0 16px 48px rgba(0,0,0,.25);animation:popIn .2s ease;overflow:hidden;display:flex;flex-direction:column;max-height:calc(100vh - 80px)}
#settingsProfile{padding:16px;display:flex;align-items:center;gap:14px;background:#f9f9f9;border-bottom:1px solid #eee}
#settingsAvatarWrap{position:relative;width:64px;height:64px;border-radius:50%;overflow:hidden;cursor:pointer;border:3px solid #2196F3;flex-shrink:0}
#settingsAvatarWrap img{width:100%;height:100%;object-fit:cover}
#settingsAvatarOverlay{position:absolute;inset:0;background:rgba(0,0,0,.4);display:flex;align-items:center;justify-content:center;color:#fff;font-size:20px;opacity:0;transition:.2s}
#settingsAvatarWrap:hover #settingsAvatarOverlay{opacity:1}
#settingsUsername{font-size:16px;font-weight:700}
#settingsRankDisplay{font-size:12px;color:#999;margin-top:2px}
.settings-section{border-top:1px solid #eee;padding:12px 16px}
.settings-section-title{text-align:center;font-size:12px;color:#999;margin-bottom:10px;letter-spacing:1px}
.settings-toggle{display:flex;align-items:center;justify-content:flex-start;padding:10px 16px;border-bottom:1px solid #f0f0f0}
.settings-toggle span{font-size:14px}
.settings-more-link{font-size:12px;color:#2196F3;cursor:pointer}
.toggle-switch{position:relative;display:inline-block;width:44px;height:24px;flex-shrink:0}
.toggle-switch input{opacity:0;width:0;height:0}
.toggle-slider{position:absolute;cursor:pointer;inset:0;background:#ccc;border-radius:24px;transition:.3s}
.toggle-slider:before{content:'';position:absolute;height:18px;width:18px;left:3px;bottom:3px;background:#e0e0e0;border-radius:50%;transition:.3s}
.toggle-switch input:checked + .toggle-slider{background:#1a73e8}
.toggle-switch input:checked + .toggle-slider:before{transform:translateX(20px)}
#themeColors{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;padding:8px 16px 16px}
.theme-color{width:24px;height:24px;border-radius:50%;cursor:pointer;border:2px solid transparent;transition:.2s}
.theme-color:hover{transform:scale(1.2)}
.theme-color.active{border-color:#333}


.pm-msg-image{max-width:200px;border-radius:8px;cursor:pointer}

/* ADMIN PANEL */
.admin-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:20000;display:none;align-items:center;justify-content:center;animation:fadeIn .15s ease}
.admin-overlay.show{display:flex}
.admin-panel{background:#fff;border-radius:12px;width:600px;max-width:95vw;max-height:85vh;box-shadow:0 16px 48px rgba(0,0,0,.3);overflow:hidden;display:flex;flex-direction:column;animation:popIn .2s ease}
.admin-header{display:flex;align-items:center;justify-content:flex-start;padding:12px 16px;background:#e53935;color:#fff;font-size:15px;font-weight:700}
.admin-header-btns{display:flex;gap:4px}
.admin-hbtn{width:28px;height:28px;border:none;border-radius:4px;background:rgba(255,255,255,.2);color:#fff;cursor:pointer;font-size:16px;display:flex;align-items:center;justify-content:center;transition:background .15s}
.admin-hbtn:hover{background:rgba(255,255,255,.35)}
.admin-body{flex:1;overflow-y:auto;padding:16px}
.admin-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.admin-card{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 8px;border:1px solid #e0e0e0;border-radius:10px;cursor:pointer;transition:all .15s;text-align:center}
.admin-card:hover{background:#f5f5f5;border-color:#bdbdbd}
.admin-card-icon{width:40px;height:40px;display:flex;align-items:center;justify-content:center;font-size:22px;color:#555}
.admin-card span{font-size:12px;color:#333;font-weight:500}
@media(max-width:768px){.admin-grid{grid-template-columns:repeat(3,1fr)}.admin-panel{width:98vw}}
@media(max-width:480px){.admin-grid{grid-template-columns:repeat(2,1fr)}}

/* ADMIN SUB SECTIONS */
.admin-section{animation:fadeIn .15s ease}
.admin-back{display:flex;align-items:center;gap:4px;font-size:13px;font-weight:600;color:#e53935;cursor:pointer;padding:8px 0 14px;transition:opacity .15s}
.admin-back:hover{opacity:.7}
.sistem-form{display:flex;flex-direction:column;gap:10px}
.check-item{display:flex;align-items:center;gap:10px;padding:8px 12px;font-size:13px;cursor:pointer;border-radius:8px;transition:background .1s}
.check-item:hover{background:#f5f5f5}
.check-item input[type=checkbox]{width:18px;height:18px;accent-color:#2196F3;cursor:pointer;flex-shrink:0}
.sistem-hr{border:none;border-top:1px solid #e0e0e0;margin:6px 0}
.sistem-field{display:flex;flex-direction:column;gap:4px;padding:4px 12px}
.sistem-field label{font-size:12px;color:#666;font-weight:600}
.sistem-field input,.sistem-field select{padding:10px 12px;border:1px solid #e0e0e0;border-radius:8px;font-size:14px;font-family:inherit;outline:none}
.sistem-field input:focus,.sistem-field select:focus{border-color:#2196F3}
.btn-save{padding:10px 24px;border:none;border-radius:8px;background:#e53935;color:#fff;font-size:14px;font-weight:600;cursor:pointer;transition:background .15s;font-family:inherit;margin-top:8px}
.btn-save:hover{background:#c62828}
.btn-cancel{padding:10px 24px;border:1px solid #ddd;border-radius:8px;background:#fff;color:#333;font-size:14px;font-weight:500;cursor:pointer;font-family:inherit}
.btn-cancel:hover{background:#f5f5f5}

/* DURUM MODLARI */
.durum-list{display:flex;flex-direction:column;gap:2px}
.durum-item{display:flex;align-items:center;justify-content:flex-start;padding:10px 14px;border-radius:8px;transition:background .1s}
.durum-item:hover{background:#f5f5f5}
.durum-item-name{font-size:14px;color:#333}
.durum-del-btn{width:32px;height:32px;border:none;border-radius:8px;background:#f5f5f5;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#999;font-size:16px;transition:all .15s}
.durum-del-btn:hover{background:#ffebee;color:#e53935}
.durum-add-btn{position:fixed;bottom:24px;right:24px;width:56px;height:56px;border-radius:50%;border:none;background:#e53935;color:#fff;font-size:28px;font-weight:700;cursor:pointer;box-shadow:0 4px 16px rgba(229,57,53,.4);transition:all .2s;z-index:20001;display:none;align-items:center;justify-content:center}
.durum-add-btn:hover{background:#c62828;transform:scale(1.08)}
#adminDurum .durum-add-btn{display:flex}

/* GIRIS KAYITLARI */
.giris-list{display:flex;flex-direction:column;gap:2px}
.giris-item{display:flex;align-items:center;padding:10px 14px;border-radius:8px;gap:12px;transition:background .1s;cursor:pointer}
.giris-item:hover{background:#f5f5f5}
.giris-avatar{width:40px;height:40px;border-radius:50%;overflow:hidden;background:#e0e0e0;flex-shrink:0}
.giris-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.giris-avatar.male{border:2px solid #2196F3}
.giris-avatar.female{border:2px solid #e91e63}
.giris-info{flex:1;min-width:0}
.giris-name{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.giris-flash{font-size:12px;color:#e53935;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.giris-role{font-size:11px;color:#999}
.giris-browser{font-size:12px;color:#666;text-align:right;flex-shrink:0}
.giris-browser .os{font-weight:600}
.giris-browser .browser{color:#999}
.giris-info-btn{width:28px;height:28px;border-radius:50%;border:1px solid #e0e0e0;background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#2196F3;font-size:14px;font-weight:700;flex-shrink:0;transition:all .15s}
.giris-info-btn:hover{background:#e3f2fd}
.giris-search,.hareket-search{position:sticky;bottom:0;background:#fff;padding:10px 0;display:flex;gap:8px;align-items:center}
.giris-search input,.hareket-search input{flex:1;padding:10px 14px;border:1px solid #e0e0e0;border-radius:8px;font-size:13px;font-family:inherit;outline:none}
.search-icon-btn{width:36px;height:36px;border:none;background:#2196F3;color:#fff;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}

/* HAREKETLER */
.hareket-list{display:flex;flex-direction:column;gap:2px}
.hareket-item{display:flex;align-items:center;padding:10px 14px;border-radius:8px;gap:12px;transition:background .1s}
.hareket-item:hover{background:#f5f5f5}
.hareket-admin{font-size:13px;font-weight:600;min-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hareket-action{flex:1;font-size:13px}
.hareket-action .type{color:#2196F3;font-weight:500}
.hareket-action .target{color:#e53935;font-style:italic}
.hareket-detail-btn{width:28px;height:28px;border-radius:50%;border:1px solid #e0e0e0;background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#2196F3;font-size:14px;font-weight:700;flex-shrink:0;transition:all .15s}
.hareket-detail-btn:hover{background:#e3f2fd}

/* WEB KONSOL */
.konsol-desc{font-size:13px;color:#666;margin-bottom:14px;line-height:1.6}
.konsol-list{display:flex;flex-direction:column;gap:8px}
.konsol-item{display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:8px;font-size:13px;color:#555;transition:background .1s}
.konsol-item:hover{background:#f5f5f5}
.konsol-icon{font-size:18px}
.konsol-link{display:block;text-align:center;font-size:13px;color:#2196F3;text-decoration:none;padding:14px;border-radius:8px;transition:background .1s}
.konsol-link:hover{background:#e3f2fd}

/* BAN STATS */
.ban-stats{padding:8px 12px;font-size:13px;color:#666}
.ban-stats span{color:#333;font-weight:700}
.ulke-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.ulke-tag{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:6px;font-size:12px;background:#f0f0f0;color:#555}
.ulke-tag .ulke-x{cursor:pointer;color:#999;font-weight:700;transition:color .1s}
.ulke-tag .ulke-x:hover{color:#e53935}
.placeholder-msg{text-align:center;color:#999;font-size:14px;padding:40px}

/* PM BADGE */
.pm-badge{display:none!important}
.pm-badge.active{display:flex!important}

/* PRIVATE MESSAGE PANEL - WhatsApp Style */
.pm-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:16000;display:none;align-items:center;justify-content:center;padding:60px 16px 16px;animation:fadeIn .15s ease}
.pm-overlay.show{display:flex}
.pm-panel{background:#fff;border-radius:14px;box-shadow:0 16px 48px rgba(0,0,0,.25);animation:popIn .2s ease;overflow:hidden;height:80vh;max-height:80vh;display:flex;flex-direction:column}
.pm-conversations .pm-conv-item{display:flex;align-items:center;gap:10px;padding:10px 12px;cursor:pointer;border-bottom:1px solid #f5f5f5;transition:.15s}
.pm-conversations .pm-conv-item:hover{background:#f0f7ff}
.pm-conversations .pm-conv-item.active{background:#e3f2fd}
.pm-conv-avatar{width:40px;height:40px;border-radius:50%;overflow:hidden;background:#ddd;flex-shrink:0}
.pm-conv-avatar img{width:100%;height:100%;object-fit:cover}
.pm-conv-info{flex:1;min-width:0}
.pm-conv-name{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pm-conv-preview{font-size:12px;color:#999;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pm-conv-time{font-size:11px;color:#999;flex-shrink:0}
.pm-conv-badge{background:#e53935;color:#fff;font-size:10px;font-weight:700;padding:1px 6px;border-radius:10px}
.pm-msg{display:flex;gap:8px;max-width:75%;margin-bottom:4px}
.pm-msg.sent{margin-left:auto;flex-direction:row-reverse}
.pm-msg-bubble{padding:8px 12px;border-radius:12px;font-size:13px;line-height:1.4;word-break:break-word}
.pm-msg.received .pm-msg-bubble{background:#fff;border:1px solid #e0e0e0;border-top-left-radius:4px}
.pm-msg.sent .pm-msg-bubble{background:#dcf8c6;border-top-right-radius:4px}
.pm-msg-time{font-size:10px;color:#999;text-align:right;margin-top:2px}
.pm-msg-image{max-width:200px;border-radius:8px;cursor:pointer}
.pm-empty{text-align:center;color:#999;font-size:13px;padding:20px}

/* FRIENDS SYSTEM */
.friend-request{background:#fff8e1;border-left:3px solid #ff9800}
.friend-request:hover{background:#fff3e0}
.friend-actions{display:flex;gap:4px;flex-shrink:0}
.friend-accept,.friend-reject{width:28px;height:28px;border-radius:50%;border:none;cursor:pointer;font-size:14px;display:flex;align-items:center;justify-content:center;transition:all .15s}
.friend-accept{background:#4caf50;color:#fff}.friend-accept:hover{background:#388e3c}
.friend-reject{background:#e53935;color:#fff}.friend-reject:hover{background:#c62828}
.friend-remove-btn{width:26px;height:26px;border:none;background:0 0;border-radius:50%;cursor:pointer;color:#999;font-size:14px;display:flex;align-items:center;justify-content:center;transition:all .15s;flex-shrink:0;opacity:0}
.user-item:hover .friend-remove-btn{opacity:1}
.friend-remove-btn:hover{background:#ffebee;color:#e53935}
.online-dot{position:relative}
.online-dot::after{content:'';position:absolute;bottom:0;right:0;width:10px;height:10px;border-radius:50%;background:#4caf50;border:2px solid #fff}
.tab-count.friend-count{background:#ff9800;color:#fff;font-size:10px;font-weight:700;padding:0 5px;border-radius:8px;margin-left:4px;min-width:16px;text-align:center;line-height:1.5;display:none}
.tab-count.friend-count.active{display:inline-flex}

/* SORULAR / YARISMA */
.sorular-header{padding:4px 0 10px}
.sorular-count{font-size:14px;font-weight:700;color:#e53935}
.sorular-add-hint{font-size:12px;color:#999;display:block;margin-top:4px}
.sorular-list{display:flex;flex-direction:column;gap:2px;overflow-y:auto;flex:1;padding-bottom:60px}
.sorular-item{display:flex;align-items:center;padding:10px 14px;border-radius:8px;transition:background .1s;gap:10px;border-bottom:1px solid #f8f8f8}
.sorular-item:hover{background:#f5f5f5}
.sorular-item-info{flex:1;min-width:0}
.sorular-question{font-size:13px;color:#333;line-height:1.4}
.sorular-answer{font-size:13px;color:#e53935;font-weight:600;margin-top:2px}
.sorular-edit{width:28px;height:28px;border-radius:50%;border:1px solid #e0e0e0;background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#2196F3;font-size:14px;flex-shrink:0;transition:all .15s}
.sorular-edit:hover{background:#e3f2fd}

/* KOMUTLAR */
.komutlar-content{padding:4px 0}
.komutlar-title{font-size:16px;font-weight:700;margin-bottom:10px}
.komutlar-desc{font-size:13px;color:#666;line-height:1.6;margin-bottom:14px}
.komutlar-list{list-style:disc;padding-left:24px;margin-bottom:14px}
.komutlar-list li{font-size:13px;color:#333;padding:4px 0;line-height:1.6}
.komutlar-list li strong{color:#e53935}
.komutlar-note{font-size:12px;color:#999;font-style:italic}

/* QUIZ BOT MESSAGES */
.sys-message.quiz-bot{background:linear-gradient(135deg,#ff6f00,#ff8f00);border:1px solid #ff8f00}
.quiz-bot-header{display:flex;align-items:center;gap:6px;margin-bottom:4px}
.quiz-bot-name{font-weight:700;font-size:13px}
.quiz-question-text{font-size:14px;line-height:1.6;white-space:pre-wrap}
.quiz-hint{color:#ffeb3b;font-weight:700;margin-top:4px}
.quiz-correct{background:rgba(76,175,80,.3);border:1px solid #4caf50}
.quiz-wrong{background:rgba(244,67,54,.2);border:1px solid #f44336}
.quiz-score-table{font-size:13px;line-height:1.8}
.quiz-score-table .score-rank{color:#ffeb3b;font-weight:700}
.quiz-score-table .score-name{color:#fff}
.quiz-score-table .score-pts{color:#ffeb3b;font-weight:700}

/* ODALAR YONETIMI */
.odalar-yonetim-list{display:flex;flex-direction:column;gap:2px;overflow-y:auto;flex:1;padding-bottom:60px}
.odalar-yonetim-item{display:flex;align-items:center;padding:10px 14px;border-radius:8px;transition:background .1s;gap:10px;border-bottom:1px solid #f8f8f8}
.odalar-yonetim-item:hover{background:#f5f5f5}
.odalar-adi{font-size:13px;font-weight:600;min-width:120px;flex-shrink:0}
.odalar-sahip{font-size:12px;color:#666;flex:1;display:flex;align-items:center;gap:4px}
.odalar-sahip-icon{color:#999}
.odalar-sahip.yok{color:#bbb;font-style:italic}
.odalar-actions{display:flex;gap:4px;flex-shrink:0}
.odalar-edit-btn,.odalar-lock-btn,.odalar-del-btn{width:28px;height:28px;border-radius:50%;border:1px solid #e0e0e0;background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:14px;transition:all .15s}
.odalar-edit-btn{color:#2196F3}.odalar-edit-btn:hover{background:#e3f2fd}
.odalar-lock-btn{color:#ff9800}.odalar-lock-btn:hover{background:#fff3e0}
.odalar-del-btn{color:#e53935}.odalar-del-btn:hover{background:#ffebee}

/* USER PROFILE MODAL */
.profile-banner{height:100px;background:linear-gradient(135deg,#2196F3,#1565C0);position:relative;display:flex;align-items:flex-end;justify-content:center;padding-bottom:0}
.profile-avatar-wrap{position:relative;bottom:-36px}
.profile-avatar{width:72px;height:72px;border-radius:50%;overflow:hidden;background:#fff;border:3px solid #fff;box-shadow:0 2px 12px rgba(0,0,0,.2);cursor:pointer}
.profile-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.profile-avatar-edit{position:absolute;bottom:0;right:0;width:26px;height:26px;border-radius:50%;background:#2196F3;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;border:2px solid #fff;transition:background .15s}
.profile-avatar-edit:hover{background:#1976D2}
.profile-info{text-align:center;padding:42px 16px 10px}
.profile-name{font-size:18px;font-weight:700}
.profile-role{font-size:12px;margin-top:2px}
.profile-role-badge{display:inline-block;padding:2px 10px;border-radius:10px;font-size:11px;font-weight:600}
.profile-flashnick{font-size:13px;color:#e53935;margin-top:4px}
.profile-stats{display:flex;justify-content:center;gap:24px;padding:12px 16px;border-bottom:1px solid #f0f0f0}
.profile-stat{text-align:center}
.profile-stat-val{font-size:16px;font-weight:700;color:#333}
.profile-stat-label{font-size:11px;color:#999;margin-top:2px}
.profile-details{padding:8px 16px}
.profile-detail-row{display:flex;justify-content:flex-start;padding:8px 0;border-bottom:1px solid #f8f8f8;font-size:13px}
.pd-label{color:#999}
.pd-val{color:#333;font-weight:500}
.profile-actions{display:flex;gap:8px;padding:12px 16px;border-top:1px solid #f0f0f0;flex-wrap:wrap}
.profile-action-btn{flex:1;min-width:100px;display:flex;align-items:center;justify-content:center;gap:6px;padding:10px;border:1px solid #e0e0e0;border-radius:8px;background:#fff;font-size:12px;font-weight:500;cursor:pointer;transition:all .15s;font-family:inherit}
.profile-action-btn:hover{background:#f0f0f0;border-color:#bdbdbd}
.pm-action{color:#2196F3;border-color:#2196F3}.pm-action:hover{background:#e3f2fd}
.friend-action{color:#4caf50;border-color:#4caf50}.friend-action:hover{background:#e8f5e9}
.block-action{color:#e53935;border-color:#e53935}.block-action:hover{background:#ffebee}
.profile-edit-form{padding:12px 16px;border-top:1px solid #f0f0f0}
.profile-edit-title{font-size:14px;font-weight:700;margin-bottom:10px}
.profile-edit-form .sistem-field{padding:0 0 8px}

/* TOAST */
.toast{position:fixed;bottom:70px;left:50%;transform:translateX(-50%);background:#333;color:#fff;padding:10px 20px;border-radius:8px;font-size:13px;z-index:99999;animation:fadeInMsg .3s ease;pointer-events:none;max-width:350px;text-align:center}

/* SIDEBAR OVERLAY */
.sidebar-overlay{display:none;position:fixed;inset:0;top:54px;background:rgba(0,0,0,.4);z-index:49}

/* RESPONSIVE */
@media(max-width:768px){
  #chatScreen.app{height:100dvh;max-height:100dvh}
  /* Mobile topbar - blue gradient, sticky at top */
  .topbar{height:52px;min-height:52px;padding:0 8px!important;background:linear-gradient(135deg,#2196F3,#1976D2)!important;border-bottom:none!important;box-shadow:0 2px 8px rgba(33,150,243,.3);position:sticky;top:0;z-index:200;order:0}
  .topbar-icon{width:40px;height:40px;color:#fff!important}
  .topbar-icon svg{width:22px;height:22px;fill:#fff}
  .topbar-icon:hover{background:rgba(255,255,255,.15)!important}
  .topbar-icon.active{color:#fff!important;background:rgba(255,255,255,.2)!important}
  .topbar-icon.active::after{background:#fff!important}
  .badge{font-size:9px;top:2px;right:2px;background:#fff!important;color:#2196F3!important}
  #pmBtn .badge{color:#e53935!important}
  .topbar-center{padding:0 8px;justify-content:center}
  .room-name{font-size:15px;color:#fff!important;font-weight:700}
  .room-desc{font-size:11px;color:rgba(255,255,255,.7)!important}
  .topbar-right{display:none!important}
  .topbar-left{flex:0 0 auto;max-width:none;height:52px;gap:2px;padding:0;display:flex!important;align-items:center}
  .current-user-info .user-details-top{display:none}.avatar-small{width:30px;height:30px}
  .sidebar{position:fixed;left:0;top:52px;bottom:0;z-index:50;transform:translateX(-100%);transition:transform .25s ease;width:280px;min-width:280px}
  .sidebar.open{transform:translateX(0)}
  .sidebar-overlay.show{display:block}
  .message-bar{height:48px;min-height:48px;padding:0 8px;gap:4px}
  .msg-icon{width:32px;height:32px}.msg-icon svg{width:18px;height:18px}
  .message-input{font-size:16px}.message-input-wrapper{height:34px;border-radius:18px}
  .chat-messages{padding:12px 14px;padding-bottom:70px}
  .rooms-overlay{padding:40px 8px 8px}
  .rooms-panel{border-radius:12px;max-height:calc(100vh - 50px)}
  .user-edit-panel{width:380px!important;max-height:calc(100vh - 60px)}
}


  /* Mobile settings - full screen slide from right */
  .sidebar.settings-open{position:fixed;left:0;top:0;bottom:0;width:100%!important;max-width:100%!important;z-index:300!important;transform:translateX(0)!important;background:#fff}
  .sidebar.settings-open .sidebar-header,.sidebar.settings-open .sidebar-tabs{display:none!important}
  .sidebar.settings-open .sidebar-settings{display:flex!important;position:fixed!important;inset:0!important;top:0!important;left:0!important;width:100%!important;max-width:100%!important;z-index:301!important;padding-bottom:env(safe-area-inset-bottom,0)}
  .sidebar.settings-open .sidebar-settings .settings-profile-section{padding:16px;background:linear-gradient(135deg,#2196F3,#1976D2);color:#fff}
  .sidebar.settings-open .sidebar-settings .settings-profile-section #sidebarSettingsName{color:#fff}
  .sidebar.settings-open .sidebar-settings .settings-profile-section #sidebarCustomTag{color:rgba(255,255,255,.8)}
  /* Mobile user-item avatar bigger */
  .sidebar .user-item .user-avatar{width:48px;height:48px;min-width:48px;border-radius:50%;overflow:hidden;border:2px solid #e0e0e0;background:#f0f0f0}
  .sidebar .user-item .user-avatar img{width:100%;height:100%;object-fit:cover}
  /* Mobile mic active avatar glow */
  .user-item .user-avatar.mic-glow{box-shadow:0 0 0 3px #4caf50;animation:micPulse 1.5s infinite}
  @keyframes micPulse{0%,100%{box-shadow:0 0 0 3px #4caf50}50%{box-shadow:0 0 0 6px rgba(76,175,80,.3)}}

/* ===== YETKILILER / UYELER LISTS ===== */
.yetkililer-list,.uyeler-list{max-height:calc(100vh - 160px);overflow-y:auto;padding:4px 0}
.yetkili-item,.uye-item{display:flex;align-items:center;gap:10px;padding:8px 12px;border-bottom:1px solid #f0f0f0;cursor:pointer;transition:background .15s}
.yetkili-item:hover,.uye-item:hover{background:#f5f5f5}
.yetkili-avatar,.uye-avatar{width:44px;height:44px;border-radius:50%;object-fit:cover;border:2px solid #e0e0e0;flex-shrink:0}
.yetkili-avatar.male{border-color:#4caf50}
.yetkili-avatar.female{border-color:#e91e63}
.yetkili-info,.uye-info{flex:1;min-width:0}
.yetkili-name,.uye-name{font-weight:600;font-size:14px;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.yetkili-flash,.uye-flash{font-size:11px;color:#e53935;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.yetkili-stars{display:flex;gap:1px;margin-top:2px;flex-wrap:wrap}
.yetkili-stars span{font-size:12px}
.yetkili-edit-btn,.uye-edit-btn{width:36px;height:36px;border:none;border-radius:8px;background:#f0f0f0;cursor:pointer;font-size:18px;display:flex;align-items:center;justify-content:center;color:#666;transition:all .15s;flex-shrink:0}
.yetkili-edit-btn:hover,.uye-edit-btn:hover{background:#e0e0e0;color:#333}

/* ===== USER EDIT MODAL ===== */
.user-edit-panel{width:420px!important}
.user-edit-panel .admin-body{padding:16px 20px}
.user-edit-avatar-section{text-align:center;padding:16px 0;border-bottom:1px solid #eee;margin-bottom:16px}
.user-edit-avatar{width:80px;height:80px;border-radius:12px;object-fit:cover;border:3px solid #e0e0e0}
.user-edit-avatar-delete{display:inline-block;margin-top:8px;padding:6px 16px;background:#e53935;color:#fff;border:none;border-radius:6px;font-size:12px;font-weight:600;cursor:pointer;transition:background .15s}
.user-edit-avatar-delete:hover{background:#c62828}
.user-edit-field{margin-bottom:14px}
.user-edit-field label{display:block;font-weight:700;font-size:13px;color:#333;margin-bottom:4px}
.user-edit-field input[type="text"],.user-edit-field input[type="password"],.user-edit-field select{width:100%;padding:8px 12px;border:1px solid #ddd;border-radius:8px;font-size:13px;background:#fafafa;transition:border .15s}
.user-edit-field input:focus,.user-edit-field select:focus{border-color:#e53935;outline:none}
.user-edit-perms-section{margin-top:16px;border-top:1px solid #eee;padding-top:14px}
.user-edit-perms-title{font-weight:700;font-size:13px;color:#333;margin-bottom:10px;padding-bottom:6px;border-bottom:1px solid #f0f0f0}
.user-edit-perms-group{margin-bottom:12px}
.user-edit-perms-group-title{font-weight:700;font-size:12px;color:#555;margin-bottom:6px}
.user-edit-check{display:flex;align-items:center;gap:8px;padding:3px 0;font-size:13px;color:#444}
.user-edit-check input[type="checkbox"]{width:16px;height:16px;accent-color:#e53935}
.user-edit-info-row{display:flex;justify-content:flex-start;padding:6px 0;font-size:12px;color:#777;border-bottom:1px solid #f5f5f5}
.user-edit-info-row strong{color:#333}
.user-edit-save{width:100%;padding:10px;background:#e53935;color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:700;cursor:pointer;margin-top:16px;transition:background .15s}
.user-edit-save:hover{background:#c62828}
.user-edit-reset-section{margin-top:16px;padding:12px;background:#fff3e0;border-radius:8px;border:1px solid #ffe0b2}
.user-edit-reset-section label{display:flex;align-items:center;gap:8px;font-size:12px;color:#e65100}
.user-edit-protection{margin-top:8px}
.user-edit-protection select{width:100%;padding:6px 10px;border:1px solid #ddd;border-radius:6px;font-size:12px}
.user-edit-date-row{display:flex;gap:8px;margin-top:8px}
.user-edit-date-row select{flex:1;padding:6px 8px;border:1px solid #ddd;border-radius:6px;font-size:12px}

/* ===== BOT LIST ===== */
.bot-list{max-height:calc(100vh - 200px);overflow-y:auto;padding:4px 0}
.bot-item{display:flex;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid #f0f0f0;cursor:pointer;transition:background .15s}
.bot-item:hover{background:#f5f5f5}
.bot-item-avatar{width:42px;height:42px;border-radius:50%;overflow:hidden;flex-shrink:0;border:2px solid #e0e0e0}
.bot-item-avatar img{width:100%;height:100%;object-fit:cover}
.bot-item-info{flex:1;min-width:0}
.bot-item-name{font-size:14px;font-weight:600;color:#333}
.bot-item-stars{font-size:11px;line-height:1.3;word-break:break-all}
.bot-item-edit{width:36px;height:36px;border-radius:8px;border:1px solid #ddd;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;transition:all .15s;color:#555;font-size:16px}
.bot-item-edit:hover{background:#e53935;color:#fff;border-color:#e53935}
.bot-item-delete{width:36px;height:36px;border-radius:8px;border:1px solid #ddd;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;transition:all .15s;color:#999;font-size:16px}
.bot-item-delete:hover{background:#e53935;color:#fff;border-color:#e53935}

/* ===== BOT EDIT MODAL ===== */
.bot-edit-toggle{display:flex;align-items:center;gap:10px;padding:10px 0;margin-bottom:12px;border-bottom:1px solid #f0f0f0}
.toggle-switch{width:44px;height:24px;background:#ccc;border-radius:12px;position:relative;transition:background .2s;cursor:pointer;flex-shrink:0}
.toggle-switch.active{background:#e53935}
.toggle-switch::after{content:'';position:absolute;top:2px;left:2px;width:20px;height:20px;background:#fff;border-radius:50%;transition:transform .2s;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.toggle-switch.active::after{transform:translateX(20px)}
.bot-edit-expand{padding:10px 12px;background:#f9f9f9;border:1px solid #eee;border-radius:8px;margin-bottom:6px;cursor:pointer;font-size:13px;font-weight:600;color:#444;display:flex;align-items:center;gap:8px;transition:background .15s}
.bot-edit-expand:hover{background:#f0f0f0}
.expand-arrow{font-size:10px;color:#999;transition:transform .2s}
.bot-edit-expand.open .expand-arrow{transform:rotate(90deg)}
.bot-edit-expand-content{padding:10px 0;display:none}

/* ===== BANLILAR TABLE ===== */
.banlilar-table{max-height:calc(100vh - 180px);overflow-y:auto}
.banlilar-header{display:grid;grid-template-columns:1fr 1fr 1fr 1fr 44px;padding:8px 14px;background:#e53935;color:#fff;font-size:12px;font-weight:700;border-radius:8px 8px 0 0}
.banlilar-row{display:grid;grid-template-columns:1fr 1fr 1fr 1fr 44px;padding:10px 14px;border-bottom:1px solid #f0f0f0;font-size:13px;align-items:center;transition:background .15s}
.banlilar-row:hover{background:#f9f9f9}
.banlilar-row .ban-name{font-weight:600;color:#333}
.banlilar-row .ban-admin{font-size:12px}
.banlilar-row .ban-target{color:#e53935;font-weight:600}
.banlilar-row .ban-date{font-size:12px}
.banlilar-row .ban-delete{width:32px;height:32px;border-radius:6px;border:1px solid #eee;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#999;font-size:14px;transition:all .15s}
.banlilar-row .ban-delete:hover{background:#e53935;color:#fff;border-color:#e53935}

/* ===== YASAK LIST ===== */
.yasak-list{max-height:calc(100vh - 220px);overflow-y:auto;padding:4px 0}
.yasak-item{display:flex;align-items:center;padding:10px 14px;border-bottom:1px solid #f0f0f0;font-size:13px;transition:background .15s}
.yasak-item:hover{background:#f5f5f5}
.yasak-item-name{flex:1;font-weight:600;color:#e53935}
.yasak-item-rule{flex:1;color:#e53935;font-style:italic;font-size:12px}
.yasak-item-admin{flex:1;font-size:12px}
.yasak-item-date{flex:1;font-size:12px}
.yasak-item-delete{width:32px;height:32px;border-radius:6px;border:1px solid #eee;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#999;font-size:14px;transition:all .15s;flex-shrink:0}
.yasak-item-delete:hover{background:#e53935;color:#fff;border-color:#e53935}
.yasak-header-row{display:flex;padding:6px 14px;background:#e53333;color:#fff;font-size:11px;font-weight:700;border-radius:8px 8px 0 0;margin:0 0 4px}
.yasak-header-row span{flex:1}
.yasak-header-row .yasak-h-delete{width:32px;flex-shrink:0}

/* ===== YASAK PAGINATION ===== */
.yasak-pagination{display:flex;justify-content:center;gap:4px;padding:12px 0}
.yasak-page-btn{min-width:32px;height:32px;border-radius:6px;border:1px solid #ddd;background:#fff;color:#333;font-size:12px;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s}
.yasak-page-btn:hover{background:#f5f5f5}
.yasak-page-btn.active{background:#e53935;color:#fff;border-color:#e53935}

/* ===== SHOW DURUM ADD BTN IN ADMIN SECTIONS ===== */
#adminBot .durum-add-btn,#adminYasakKelime .durum-add-btn,#adminYasakNick .durum-add-btn,#adminSorular .durum-add-btn,#adminOdalarYonetim .durum-add-btn,#adminDurum .durum-add-btn,#adminRutbeler .durum-add-btn{display:flex}

/* ===== RUTBELER LIST ===== */
.rutbeler-list{max-height:calc(100vh - 200px);overflow-y:auto;padding:4px 0}
.rutbeler-item{display:flex;align-items:center;padding:10px 14px;border-bottom:1px solid #f0f0f0;font-size:13px;transition:background .15s}
.rutbeler-item:hover{background:#f5f5f5}
.rutbeler-item-name{flex:1;font-weight:600;color:#333}
.rutbeler-item-stars{font-size:11px;line-height:1.3;word-break:break-all;white-space:normal}
.rutbeler-item-edit{width:36px;height:36px;border-radius:8px;border:1px solid #ddd;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;transition:all .15s;color:#555;font-size:16px}
.rutbeler-item-edit:hover{background:#e53935;color:#fff;border-color:#e53935}

/* ===== CATI (ROOF) ===== */
#catiBanner{transition:all .2s;animation:catiSlide 0.3s ease}
#catiBanner:hover{background:linear-gradient(135deg,#6d4c41,#4e342e);transform:scale(1.01)}
@keyframes catiSlide{from{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}

/* ===== ANIMATED EMOJI ===== */
@keyframes bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes emojiFloat{0%,100%{transform:translateY(0) scale(1)}25%{transform:translateY(-3px) scale(1.05)}50%{transform:translateY(-5px) scale(1.1)}75%{transform:translateY(-3px) scale(1.05)}}
@keyframes emojiShake{0%,100%{transform:rotate(0deg)}25%{transform:rotate(-5deg)}75%{transform:rotate(5deg)}}
@keyframes emojiSpin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
@keyframes sparkle{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.7;transform:scale(1.2)}}
.emoji-animated{animation:emojiFloat 2s ease-in-out infinite}
.emoji-shake{animation:emojiShake 0.5s ease-in-out infinite}
.emoji-spin{animation:emojiSpin 2s linear infinite}
.emoji-sparkle{animation:sparkle 1.5s ease-in-out infinite}
.emoji-tab .emoji-glow{box-shadow:0 0 8px rgba(33,150,243,.5)}
/* GIF Sticker hover effect */
#emojiGrid span:hover{transform:scale(1.3);transition:transform .15s ease}

/* PM Chat Messages - sabit input, yukari kayan mesajlar */
#pmChatMessages{display:flex;flex-direction:column;justify-content:flex-start;flex:1;overflow-y:auto;padding:16px}
.pm-chat-input{flex-shrink:0 !important}

/* PM Chat - sabit cerceve, yukari kayan mesajlar */
#pmChat{display:flex;flex-direction:column;flex:1;overflow:hidden;min-height:0}
#pmChatMessages{flex:1;overflow-y:auto;padding:16px;min-height:0;display:flex;flex-direction:column}
.pm-chat-input{flex-shrink:0 !important;height:52px !important}

.pm-list{overflow:hidden !important;min-height:0}
.pm-body{min-height:0 !important}

/* Ana chat mesajlar - yukari kayan mesajlar, sabit input */
.chat-messages{min-height:0 !important}
.chat-column{min-height:0 !important}
.chat-area{min-height:0 !important}

/* PM resimleri kucult - yazi gozuksun */
.pm-msg-bubble img{max-width:160px;max-height:160px;object-fit:cover;display:block}
.pm-msg{max-height:none !important}
.pm-chat-messages img{max-width:160px;max-height:160px;object-fit:cover}

/* PM avatar kucult */
.pm-msg-avatar{width:32px;height:32px;border-radius:50%;overflow:hidden;flex-shrink:0;background:#ddd}
.pm-msg-avatar img{width:100%;height:100%;object-fit:cover}
.pm-msg{gap:6px !important;align-items:flex-end !important}
.pm-msg.received .pm-msg-avatar{display:none}
.pm-msg.sent .pm-msg-avatar{display:none}

/* =========================================== */
/* MOBILE VIEW - Referans: MoBiLDeTeKLoSy    */
/* =========================================== */

/* Mobile panels - ALWAYS styled (JS controls visibility) */
.mobile-bottom-nav{
  position:fixed!important;bottom:0;left:0;right:0;
  height:56px;min-height:56px;
  background:#fff;
  border-top:1px solid #e0e0e0;
  z-index:95;
  padding-bottom:env(safe-area-inset-bottom,0);
  display:none;
}
.mobile-bottom-nav .mob-nav-btn{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:2px;border:none;background:0 0;cursor:pointer;
  color:#9aa0a6;font-size:10px;font-weight:600;
  position:relative;transition:color .15s;
  padding:4px 0;
}
.mobile-bottom-nav .mob-nav-btn svg{width:24px;height:24px}
.mobile-bottom-nav .mob-nav-btn.active{color:#2196F3}
.mobile-bottom-nav .mob-nav-btn .mob-badge{
  position:absolute;top:2px;right:calc(50% - 18px);
  background:#e53935;color:#fff;font-size:9px;font-weight:700;
  padding:1px 5px;border-radius:8px;min-width:16px;text-align:center;
  line-height:1.2;pointer-events:none;
}

/* Mobile Rooms Panel - left slide */
.mobile-rooms-panel{
  position:fixed;top:0;left:0;bottom:0;width:80%;max-width:320px;
  background:#fff;z-index:200;
  transform:translateX(-100%);transition:transform .25s ease;
  display:flex;flex-direction:column;
  box-shadow:4px 0 20px rgba(0,0,0,.2);
}
.mobile-rooms-panel.open{transform:translateX(0)}
  .mobile-rooms-panel .mr-header{
    background:linear-gradient(135deg,#2196F3,#1976D2);
    padding:14px 16px;display:flex;align-items:center;gap:12px;
    min-height:56px;flex-shrink:0;
  }
  .mobile-rooms-panel .mr-header .mr-back{
    background:none;border:none;color:#fff;font-size:20px;cursor:pointer;
    width:32px;height:32px;display:flex;align-items:center;justify-content:center;
  }
  .mobile-rooms-panel .mr-header .mr-title{
    flex:1;display:flex;align-items:center;gap:8px;
    color:#fff;font-size:16px;font-weight:700;
  }
  .mobile-rooms-panel .mr-header .mr-heart{font-size:18px}
  .mobile-rooms-panel .mr-search{
    padding:10px 16px;border-bottom:1px solid #eee;flex-shrink:0;
  }
  .mobile-rooms-panel .mr-search input{
    width:100%;padding:10px 14px;border:1px solid #e0e0e0;border-radius:8px;
    font-size:14px;outline:none;background:#f5f5f5;
  }
  .mobile-rooms-panel .mr-list{flex:1;overflow-y:auto;padding:4px 0}
  .mobile-rooms-panel .mr-item{
    display:flex;align-items:center;padding:12px 16px;gap:12px;
    cursor:pointer;transition:background .12s;border-bottom:1px solid #f5f5f5;
  }
  .mobile-rooms-panel .mr-item:active{background:#e3f2fd}
  .mobile-rooms-panel .mr-item .mr-heart{color:#e91e63;font-size:16px}
  .mobile-rooms-panel .mr-item .mr-name{flex:1;font-size:14px;font-weight:600;color:#333}
  .mobile-rooms-panel .mr-item .mr-count{
    background:#e53935;color:#fff;font-size:11px;font-weight:700;
    padding:2px 8px;border-radius:10px;min-width:24px;text-align:center;
  }
  .mobile-rooms-panel .mr-item .mr-arrow{color:#ccc;font-size:14px}
  .mobile-rooms-overlay{
    position:fixed;top:0;left:0;right:0;bottom:0;
    background:rgba(0,0,0,.4);z-index:199;
    display:none;
  }
  .mobile-rooms-overlay.show{display:block}
  
  /* Mobile Users Panel - right slide */
  .mobile-users-panel{
    position:fixed;top:0;right:0;bottom:0;width:82%;max-width:340px;
    background:#fff;z-index:200;
    transform:translateX(100%);transition:transform .25s ease;
    display:flex;flex-direction:column;
    box-shadow:-4px 0 20px rgba(0,0,0,.2);
  }
  .mobile-users-panel.open{transform:translateX(0)}
  .mobile-users-panel .mu-header{
    background:linear-gradient(135deg,#2196F3,#1976D2);
    padding:14px 16px;display:flex;align-items:center;gap:12px;
    min-height:56px;flex-shrink:0;
  }
  .mobile-users-panel .mu-header .mu-back{
    background:none;border:none;color:#fff;font-size:20px;cursor:pointer;
    width:32px;height:32px;display:flex;align-items:center;justify-content:center;
  }
  .mobile-users-panel .mu-header .mu-title{
    flex:1;color:#fff;font-size:16px;font-weight:700;
  }
  .mobile-users-panel .mu-search{
    padding:10px 16px;border-bottom:1px solid #eee;flex-shrink:0;
  }
  .mobile-users-panel .mu-search input{
    width:100%;padding:10px 14px;border:1px solid #e0e0e0;border-radius:8px;
    font-size:14px;outline:none;background:#f5f5f5;
  }
  .mobile-users-panel .mu-list{flex:1;overflow-y:auto;padding:4px 0}
  .mobile-users-panel .mu-item{
    display:flex;align-items:center;padding:10px 16px;gap:12px;
    cursor:pointer;transition:background .12s;border-bottom:1px solid #f5f5f5;
  }
  .mobile-users-panel .mu-item:active{background:#f0f7ff}
  .mobile-users-panel .mu-avatar{
    width:46px;height:46px;border-radius:50%;overflow:hidden;
    background:#e0e0e0;flex-shrink:0;border:2px solid #2196F3;
    position:relative;
  }
  .mobile-users-panel .mu-avatar.female{border-color:#e91e63}
  .mobile-users-panel .mu-avatar img{width:100%;height:100%;object-fit:cover}
  .mobile-users-panel .mu-avatar::after{
    content:'';position:absolute;bottom:0;left:0;width:10px;height:10px;
    border-radius:50%;background:#4caf50;border:2px solid #fff;
  }
  .mobile-users-panel .mu-avatar.female::after{background:#e91e63}
  .mobile-users-panel .mu-info{flex:1;min-width:0}
  .mobile-users-panel .mu-name{font-size:14px;font-weight:700;color:#1a1a1a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mobile-users-panel .mu-rank{font-size:12px;color:#e53935;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mobile-users-panel .mu-status{font-size:11px;color:#888;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mobile-users-panel .mu-actions{display:flex;gap:6px;flex-shrink:0}
  .mobile-users-panel .mu-actions span{font-size:14px;opacity:.5}
  
  /* Mobile side arrows */
  .mobile-side-arrow{
    display:flex!important;position:fixed;top:50%;transform:translateY(-50%);
    z-index:80;width:28px;height:60px;align-items:center;justify-content:center;
    cursor:pointer;border:none;
    transition:all .2s;
  }
  .mobile-side-arrow.left-arrow{left:0;background:linear-gradient(90deg,rgba(33,150,243,.8),transparent);border-radius:0 8px 8px 0}
  .mobile-side-arrow.right-arrow{right:0;background:linear-gradient(270deg,rgba(33,150,243,.8),transparent);border-radius:8px 0 0 8px}
  .mobile-side-arrow svg{color:#fff;width:18px;height:18px}
  .mobile-side-arrow .arrow-badge{
    position:absolute;top:8px;background:#fff;color:#2196F3;font-size:9px;font-weight:700;
    padding:1px 5px;border-radius:6px;min-width:14px;text-align:center;
  }
  .mobile-side-arrow.left-arrow .arrow-badge{right:-2px}
  .mobile-side-arrow.right-arrow .arrow-badge{left:-2px}
  
  /* Mobile login */
  .mobile-auth .auth-container{width:100%;max-width:100%;border-radius:0;min-height:100dvh;padding:24px 20px;background:linear-gradient(135deg,#2196F3,#1565C0)}
  .mobile-auth .auth-logo h1{color:#fff;font-size:24px}
  .mobile-auth .auth-logo p{color:rgba(255,255,255,.7)}
  .mobile-auth .auth-tabs{border-bottom-color:rgba(255,255,255,.2)}
  .mobile-auth .auth-tab{color:rgba(255,255,255,.5)}
  .mobile-auth .auth-tab.active{color:#fff;border-bottom-color:#fff}
  .mobile-auth .auth-form input,.mobile-auth .auth-form select{background:rgba(255,255,255,.95);border-color:transparent}
  .mobile-auth .logo-icon{font-size:64px}
  .mobile-auth .btn-primary{background:#fff;color:#2196F3;font-weight:700}
  .mobile-auth .btn-guest{border-color:rgba(255,255,255,.3);color:#fff}
  .mobile-auth .error-msg{color:#ffeb3b}
  
  /* Mobile context menu */
  .user-context-menu{position:fixed!important;z-index:300!important}
  
  /* Mobile PM panel fullscreen */
  .pm-overlay{padding:0!important}
  .pm-panel{width:100%!important;height:100dvh!important;border-radius:0!important;max-height:100dvh!important}
  
  /* Mobile admin panel */
  .admin-overlay .admin-panel{width:100%!important;max-width:100%!important;border-radius:0!important;max-height:100dvh!important}
}

/* Smaller phones */
@media(max-width:380px){
  .mobile-bottom-nav .mob-nav-btn{font-size:9px}
  .mobile-bottom-nav .mob-nav-btn svg{width:20px;height:20px}
  .mobile-rooms-panel{width:85%}
  .mobile-users-panel{width:88%}
}

/* ===== MOBILE PANELS - ALWAYS ACTIVE (JS controls visibility) ===== */
.mobile-bottom-nav{
  position:fixed!important;bottom:0;left:0;right:0;
  height:56px;min-height:56px;background:#fff;
  border-top:1px solid #e0e0e0;z-index:95;
  padding-bottom:env(safe-area-inset-bottom,0);
}
.mobile-bottom-nav .mob-nav-btn{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:2px;border:none;background:0 0;cursor:pointer;
  color:#9aa0a6;font-size:10px;font-weight:600;position:relative;transition:color .15s;padding:4px 0;
}
.mobile-bottom-nav .mob-nav-btn svg{width:24px;height:24px}
.mobile-bottom-nav .mob-nav-btn.active{color:#2196F3}
.mobile-bottom-nav .mob-nav-btn .mob-badge{
  position:absolute;top:2px;right:calc(50% - 18px);background:#e53935;color:#fff;
  font-size:9px;font-weight:700;padding:1px 5px;border-radius:8px;min-width:16px;text-align:center;line-height:1.2;pointer-events:none;
}
.mobile-rooms-panel{
  position:fixed;top:0;left:0;bottom:0;width:80%;max-width:320px;background:#fff;z-index:200;
  transform:translateX(-100%);transition:transform .25s ease;display:flex;flex-direction:column;
  box-shadow:4px 0 20px rgba(0,0,0,.2);
}
.mobile-rooms-panel.open{transform:translateX(0)}
.mobile-rooms-panel .mr-header{
  background:linear-gradient(135deg,#2196F3,#1976D2);padding:14px 16px;display:flex;align-items:center;gap:12px;min-height:56px;flex-shrink:0;
}
.mobile-rooms-panel .mr-header .mr-back{background:none;border:none;color:#fff;font-size:20px;cursor:pointer;width:32px;height:32px;display:flex;align-items:center;justify-content:center}
.mobile-rooms-panel .mr-header .mr-title{flex:1;display:flex;align-items:center;gap:8px;color:#fff;font-size:16px;font-weight:700}
.mobile-rooms-panel .mr-header .mr-heart{font-size:18px}
.mobile-rooms-panel .mr-search{padding:10px 16px;border-bottom:1px solid #eee;flex-shrink:0}
.mobile-rooms-panel .mr-search input{width:100%;padding:10px 14px;border:1px solid #e0e0e0;border-radius:8px;font-size:14px;outline:none;background:#f5f5f5}
.mobile-rooms-panel .mr-list{flex:1;overflow-y:auto;padding:4px 0}
.mobile-rooms-panel .mr-item{display:flex;align-items:center;padding:12px 16px;gap:12px;cursor:pointer;transition:background .12s;border-bottom:1px solid #f5f5f5}
.mobile-rooms-panel .mr-item:active{background:#e3f2fd}
.mobile-rooms-panel .mr-item .mr-heart{color:#e91e63;font-size:16px}
.mobile-rooms-panel .mr-item .mr-name{flex:1;font-size:14px;font-weight:600;color:#333}
.mobile-rooms-panel .mr-item .mr-count{background:#e53935;color:#fff;font-size:11px;font-weight:700;padding:2px 8px;border-radius:10px;min-width:24px;text-align:center}
.mobile-rooms-panel .mr-item .mr-arrow{color:#ccc;font-size:14px}
.mobile-rooms-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.4);z-index:199;display:none}
.mobile-rooms-overlay.show{display:block}
.mobile-users-panel{
  position:fixed;top:0;right:0;bottom:0;width:82%;max-width:340px;background:#fff;z-index:200;
  transform:translateX(100%);transition:transform .25s ease;display:flex;flex-direction:column;
  box-shadow:-4px 0 20px rgba(0,0,0,.2);
}
.mobile-users-panel.open{transform:translateX(0)}
.mobile-users-panel .mu-header{background:linear-gradient(135deg,#2196F3,#1976D2);padding:14px 16px;display:flex;align-items:center;gap:12px;min-height:56px;flex-shrink:0}
.mobile-users-panel .mu-header .mu-back{background:none;border:none;color:#fff;font-size:20px;cursor:pointer;width:32px;height:32px;display:flex;align-items:center;justify-content:center}
.mobile-users-panel .mu-header .mu-title{flex:1;color:#fff;font-size:16px;font-weight:700}
.mobile-users-panel .mu-search{padding:10px 16px;border-bottom:1px solid #eee;flex-shrink:0}
.mobile-users-panel .mu-search input{width:100%;padding:10px 14px;border:1px solid #e0e0e0;border-radius:8px;font-size:14px;outline:none;background:#f5f5f5}
.mobile-users-panel .mu-list{flex:1;overflow-y:auto;padding:4px 0}
.mobile-users-panel .mu-item{display:flex;align-items:center;padding:10px 16px;gap:12px;cursor:pointer;transition:background .12s;border-bottom:1px solid #f5f5f5}
.mobile-users-panel .mu-item:active{background:#f0f7ff}
.mobile-users-panel .mu-avatar{width:46px;height:46px;border-radius:50%;overflow:hidden;background:#e0e0e0;flex-shrink:0;border:2px solid #2196F3;position:relative}
.mobile-users-panel .mu-avatar.female{border-color:#e91e63}
.mobile-users-panel .mu-avatar img{width:100%;height:100%;object-fit:cover}
.mobile-users-panel .mu-avatar::after{content:'';position:absolute;bottom:0;left:0;width:10px;height:10px;border-radius:50%;background:#4caf50;border:2px solid #fff}
.mobile-users-panel .mu-avatar.female::after{background:#e91e63}
.mobile-users-panel .mu-info{flex:1;min-width:0}
.mobile-users-panel .mu-name{font-size:14px;font-weight:700;color:#1a1a1a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mobile-users-panel .mu-rank{font-size:12px;color:#e53935;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mobile-users-panel .mu-status{font-size:11px;color:#888;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mobile-users-panel .mu-actions{display:flex;gap:6px;flex-shrink:0}
.mobile-users-panel .mu-actions span{font-size:14px;opacity:.5}
.mobile-side-arrow{display:flex!important;position:fixed;top:50%;transform:translateY(-50%);z-index:80;width:28px;height:60px;align-items:center;justify-content:center;cursor:pointer;border:none;transition:all .2s}
.mobile-side-arrow.left-arrow{left:0;background:linear-gradient(90deg,rgba(33,150,243,.8),transparent);border-radius:0 8px 8px 0}
.mobile-side-arrow.right-arrow{right:0;background:linear-gradient(270deg,rgba(33,150,243,.8),transparent);border-radius:8px 0 0 8px}
.mobile-side-arrow svg{color:#fff;width:18px;height:18px}
.mobile-side-arrow .arrow-badge{position:absolute;top:8px;background:#fff;color:#2196F3;font-size:9px;font-weight:700;padding:1px 5px;border-radius:6px;min-width:14px;text-align:center}
.mobile-side-arrow.left-arrow .arrow-badge{right:-2px}
.mobile-side-arrow.right-arrow .arrow-badge{left:-2px}
/* Message bar above bottom nav */
.mobile-visible .message-bar{bottom:56px!important}