@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root{
    --bg:#12141B; --bg-panel:#181B24; --bg-elevated:#1E222D; --bg-input:#232733; --bg-hover:#262B38;
    --text:#F0F1F5; --text-dim:#8B90A0; --border:#282C38;
    --accent:#6C63FF; --accent-soft:rgba(108,99,255,0.16);
    --online:#2FD3A7; --alert:#FF6478;
    --shadow:0 12px 32px rgba(0,0,0,0.35);
    /* mIRC renkleri — koyu tema için parlaklaştırılmış, okunaklı versiyon */
    --mc0:#FFFFFF; --mc1:#E4E6EE; --mc2:#6C8CFF; --mc3:#4ADE80; --mc4:#FF6B6B; --mc5:#E0574A; --mc6:#D48FE8; --mc7:#FFB454;
    --mc8:#FFE066; --mc9:#7CFC7C; --mc10:#45E0CB; --mc11:#7DE8FF; --mc12:#7C93FF; --mc13:#FF8FE0; --mc14:#B8BEC9; --mc15:#E3E6EC;
  }
  [data-theme="light"]{
    --bg:#F4F5F9; --bg-panel:#FFFFFF; --bg-elevated:#FFFFFF; --bg-input:#EEF0F5; --bg-hover:#EEF0FA;
    --text:#15161D; --text-dim:#5A5E6C; --border:#E2E4EC;
    --accent:#5B4FE0; --accent-soft:rgba(91,79,224,0.10);
    --online:#0E9E7D; --alert:#DC3D54;
    --shadow:0 12px 32px rgba(30,32,60,0.10);
    /* mIRC renkleri — klasik palet, açık zeminde doğru görünüyor */
    --mc0:#FFFFFF; --mc1:#000000; --mc2:#00007F; --mc3:#009300; --mc4:#FF0000; --mc5:#7F0000; --mc6:#9C009C; --mc7:#FC7F00;
    --mc8:#FFFF00; --mc9:#00FC00; --mc10:#009393; --mc11:#00FFFF; --mc12:#0000FC; --mc13:#FF00FF; --mc14:#7F7F7F; --mc15:#D2D2D2;
  }

  *{box-sizing:border-box; margin:0; padding:0;}
  html,body{ height:100%; }
  body{ font-family:'Poppins',system-ui,sans-serif; overflow:hidden; }

  .app{ width:100vw; height:100vh; background:var(--bg); color:var(--text); display:flex; flex-direction:column; position:relative; }

  /* HEADER */
  .header{ display:flex; align-items:center; justify-content:space-between; padding:10px 16px; background:var(--bg-panel); border-bottom:2px solid var(--accent-soft); flex-shrink:0; position:relative; z-index:30; }
  .header-left, .header-right{ display:flex; align-items:center; gap:8px; }
  .iconbtn{ width:36px; height:36px; border-radius:10px; border:1px solid var(--border); background:var(--bg-elevated); display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--text); flex-shrink:0; position:relative; }
  .iconbtn:hover{ background:var(--accent-soft); }
  .iconbtn.on{ background:var(--accent-soft); border-color:var(--accent); color:var(--accent); }
  .iconbtn svg{ width:17px; height:17px; stroke:currentColor; }
  .badge-dot{ position:absolute; top:-2px; right:-2px; width:8px; height:8px; border-radius:50%; background:var(--alert); border:2px solid var(--bg-panel); }
  @keyframes pmBlink{ 0%,100%{ opacity:1; } 50%{ opacity:.3; } }
  #pmToggleBtn.pm-blink svg{ animation:pmBlink 1s ease-in-out infinite; color:var(--alert); }
  #pmToggleBtn.pm-blink .badge-dot{ animation:pmBlink 1s ease-in-out infinite; }

  .theme-pill{ width:60px; height:30px; border-radius:20px; position:relative; cursor:pointer; border:1px solid var(--border); display:flex; align-items:center; padding:0 6px; justify-content:space-between; }
  [data-theme="light"] .theme-pill{ background:linear-gradient(135deg,#FFE9B8,#BFE3FF); }
  [data-theme="dark"] .theme-pill{ background:linear-gradient(135deg,#1B2036,#0B0E1A); }
  .theme-pill svg{ width:12px; height:12px; position:relative; z-index:1; }
  .theme-pill .sun-fixed{ color:#B9770E; } .theme-pill .moon-fixed{ color:#C9D3F5; }
  .theme-knob{ position:absolute; top:3px; left:3px; width:24px; height:24px; border-radius:50%; background:#fff; display:flex; align-items:center; justify-content:center; box-shadow:0 2px 5px rgba(0,0,0,0.25); transition:transform .25s ease, background .25s ease; }
  [data-theme="light"] .theme-knob{ transform:translateX(30px); background:#FFF7E4; }
  [data-theme="dark"] .theme-knob{ background:#232946; }
  .theme-knob svg{ width:13px; height:13px; stroke:currentColor; }
  [data-theme="light"] .theme-knob svg{ color:#E8A21A; } [data-theme="dark"] .theme-knob svg{ color:#C9D3F5; }

  .profile-chip{ display:flex; align-items:center; gap:7px; padding:4px 10px 4px 4px; border-radius:20px; background:var(--bg-elevated); border:1px solid var(--border); cursor:pointer; }
  .profile-avatar{ width:24px; height:24px; border-radius:50%; flex-shrink:0; background:var(--accent); color:#fff; display:flex; align-items:center; justify-content:center; font-size:10.5px; font-weight:700; }
  .profile-nick{ font-size:12px; font-weight:600; }

  @media(max-width:899px){ #chToggleBtn{ display:none; } .profile-nick{ display:none; } }
  @media(max-width:899px){
    .inputbar{ gap:6px; padding:8px 10px; }
    .inputbar .iconbtn{ width:30px; height:30px; }
    .inputbar .iconbtn svg{ width:17px; height:17px; }
    .radio-btn{ width:30px; height:30px; }
    .radio-btn svg{ width:13px; height:13px; }
    .radio-icon-playing{ height:12px; }
    .send{ width:32px; height:32px; }
    .send svg{ width:16px; height:16px; }
  }
  @media(min-width:900px){ #pmToggleBtn{ display:none; } }

  /* MOBILE CHANNEL ROW */
  .mobile-channel-row{ display:none; gap:8px; padding:10px 14px; overflow-x:auto; background:var(--bg); border-bottom:1px solid var(--border); flex-shrink:0; scrollbar-width:none; }
  .mobile-channel-row::-webkit-scrollbar{ display:none; }
  @media(max-width:899px){ .mobile-channel-row{ display:flex; } }

   .chip{ display:flex; align-items:center; gap:6px; font-size:12.5px; font-weight:600; padding:6px 10px; border-radius:9px; background:var(--bg-elevated); color:var(--text-dim); border:1px solid var(--border); white-space:nowrap; cursor:pointer; flex-shrink:0; }
  .chip.active{ color:#fff; background:var(--accent); border-color:var(--accent); font-weight:600; }
  .chip.unread .chip-name{ color:var(--online); font-weight:700; }
  .chip-count{ font-size:10px; font-weight:700; background:rgba(0,0,0,0.15); padding:1px 5px; border-radius:7px; }
  .chip.active .chip-count{ background:rgba(255,255,255,0.25); }
  .status-chip{ border-color:var(--online); color:var(--online); font-weight:600; }
  .status-chip.active{ background:var(--online); border-color:var(--online); color:#052922; }
  .status-chip svg{ width:13px; height:13px; stroke:currentColor; }

  /* TOPIC BAR (both layouts) */
  .topic-bar{ padding:8px 16px; background:var(--bg-panel); border-bottom:2px solid var(--accent-soft); flex-shrink:0; min-height:46px; }
  .topic-main{ display:flex; align-items:center; gap:8px; }
  .topic-name{ font-size:13.5px; font-weight:700; }
  .topic-count{ font-size:11px; color:var(--text-dim); }
  .topic-text{ font-size:11px; color:var(--text-dim); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .topic-text b{ color:var(--text); font-weight:600; }

  /* BODY */
  .body{ flex:1; display:flex; min-height:0; position:relative; }
  .chat-col{ flex:1; display:flex; flex-direction:column; min-width:0; min-height:0; overflow:hidden; }
  .messages{ flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:4px; background-image: radial-gradient(circle at 15% 0%, var(--accent-soft), transparent 45%); }
  .status-log{ flex:1; overflow-y:auto; padding:16px; display:none; flex-direction:column; gap:6px; font-family:'Poppins',sans-serif; font-size:12.5px; }
  .log-line{ color:var(--text-dim); } .log-line.ok{ color:var(--online); } .log-line.dim{ color:var(--text-dim); font-style:italic; }

  .log-msg{ display:flex; flex-wrap:wrap; gap:6px; padding:5px 10px; border-radius:9px; font-size:13.5px; line-height:1.55; background:var(--bg-elevated); border:1px solid var(--border); border-left:3px solid var(--accent-soft); }
  .app.fontsize-small .log-msg, .app.fontsize-small .system-msg{ font-size:12px; }
  .app.fontsize-large .log-msg, .app.fontsize-large .system-msg{ font-size:15.5px; }
  .app.hide-timestamp .log-time{ display:none; }
  .log-msg:hover{ background:var(--bg-hover); }
  .log-msg.me{ background:var(--accent-soft); border-color:var(--accent); }
  .log-msg.mention{ background:rgba(240,168,96,0.16); border-color:#F0A860; border-left-width:4px; box-shadow:0 0 0 1px rgba(240,168,96,0.25); }
  .log-time{ color:var(--text-dim); font-size:11.5px; flex-shrink:0; }
  .log-nick{ font-weight:700; flex-shrink:0; cursor:pointer; }
  .log-nick:hover{ opacity: 0.5; }
  .log-nick.n1{ color:var(--accent); } .log-nick.n2{ color:var(--online); } .log-nick.n3{ color:#F0A860; }
  .log-text{ color:var(--text); word-break:break-word; }
  .system-msg{ font-size:12px; color:var(--text-dim); font-style:italic; padding:3px 8px; }
  .system-msg.ok{ color:var(--online); }
  .log-typing{ display:flex; align-items:center; gap:6px; padding:4px 8px; color:var(--accent); font-style:italic; font-size:12.5px; }
  .typing-dot{ width:5px; height:5px; border-radius:50%; background:var(--text-dim); animation:tb 1.2s infinite ease-in-out; }
  .typing-dot:nth-child(2){ animation-delay:.15s; } .typing-dot:nth-child(3){ animation-delay:.3s; }
  @keyframes tb{ 0%,60%,100%{ transform:translateY(0); opacity:.5; } 30%{ transform:translateY(-3px); opacity:1; } }

  .inputbar{ display:flex; align-items:center; gap:7px; padding:12px 14px; background:var(--bg-panel); border-top:1px solid var(--border); flex-shrink:0; }
  .inputbar .iconbtn{ background:transparent; border-color:transparent; }
.inputbar input{ flex:1; min-width:0; background:var(--bg-input); border:1px solid var(--border); border-radius:20px; padding:10px 16px; font-family:'Poppins',sans-serif; font-size:13.5px; color:var(--text); outline:none; }
  .radio-btn{ width:38px; height:38px; border-radius:50%; background:var(--bg-elevated); border:1.5px solid var(--accent); display:flex; align-items:center; justify-content:center; cursor:pointer; flex-shrink:0; color:var(--accent); }
  .radio-btn svg{ width:17px; height:17px; stroke:currentColor; }
  .radio-btn .radio-icon-play svg{ stroke:none; }
  .radio-btn .radio-icon-playing{ display:none; align-items:flex-end; gap:2.5px; height:15px; }
  .radio-btn.playing{ background:var(--accent-soft); box-shadow:0 0 10px var(--accent-soft); }
  .radio-btn.playing .radio-icon-play{ display:none; }
  .radio-btn.playing .radio-icon-playing{ display:flex; }
  .eq-bar{ width:3px; background:currentColor; border-radius:2px; transform-origin:bottom; animation:eqBounce 0.9s ease-in-out infinite; }
  .eq-bar:nth-child(1){ height:6px; animation-delay:0s; }
  .eq-bar:nth-child(2){ height:14px; animation-delay:.2s; }
  .eq-bar:nth-child(3){ height:9px; animation-delay:.4s; }
  @keyframes eqBounce{ 0%,100%{ transform:scaleY(.35); } 50%{ transform:scaleY(1); } }
  .send{ width:38px; height:38px; border-radius:50%; background:var(--accent); border:none; display:flex; align-items:center; justify-content:center; cursor:pointer; flex-shrink:0; }
  .send svg{ width:16px; height:16px; }

  .emoji-picker{ position:fixed; width:230px; background:var(--bg-elevated); border:1px solid var(--border); border-radius:12px; box-shadow:var(--shadow); padding:8px; z-index:200; display:none; grid-template-columns:repeat(7,1fr); gap:3px; }
  .emoji-picker.show{ display:grid; }
  .emoji-picker span{ font-size:17px; text-align:center; padding:4px 0; border-radius:7px; cursor:pointer; }
  .emoji-picker span:hover{ background:var(--accent-soft); }

  /* DESKTOP CHANNELS COLUMN */
  .channels-col{ width:190px; flex-shrink:0; background:var(--bg-panel); border-left:1px solid var(--border); display:flex; flex-direction:column; overflow:hidden; transition:width .22s ease; }
  .channels-col.closed{ width:0; border-left:none; }
  @media(max-width:899px){ .channels-col{ display:none; } }
  .app.chpos-top .channels-only-block{ display:none; }
  @media(min-width:900px){ .app.chpos-top .mobile-channel-row{ display:flex; } }
  .col-block{ display:flex; flex-direction:column; min-height:0; }
  .col-block.grow{ flex:1; }
  .col-head{ font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:var(--text-dim); padding:12px 14px 8px; flex-shrink:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; border-bottom:2px solid var(--accent-soft); margin:0 6px; }
  .col-scroll{ overflow-y:auto; overflow-x:hidden; flex:1; min-width:0; }

  /* Şık, ince özel scrollbar — mesajlar, kanal/kullanıcı listeleri, dropdown'lar */
  .messages, .status-log, .col-scroll, .pm-overlay, .dropdown{
    scrollbar-width:thin;
    scrollbar-color:var(--border) transparent;
  }
  .messages::-webkit-scrollbar, .status-log::-webkit-scrollbar,
  .col-scroll::-webkit-scrollbar, .pm-overlay::-webkit-scrollbar, .dropdown::-webkit-scrollbar{
    width:7px;
  }
  .messages::-webkit-scrollbar-track, .status-log::-webkit-scrollbar-track,
  .col-scroll::-webkit-scrollbar-track, .pm-overlay::-webkit-scrollbar-track, .dropdown::-webkit-scrollbar-track{
    background:transparent;
  }
  .messages::-webkit-scrollbar-thumb, .status-log::-webkit-scrollbar-thumb,
  .col-scroll::-webkit-scrollbar-thumb, .pm-overlay::-webkit-scrollbar-thumb, .dropdown::-webkit-scrollbar-thumb{
    background:var(--border);
    border-radius:20px;
    transition:background .15s ease;
  }
  .messages:hover::-webkit-scrollbar-thumb, .status-log:hover::-webkit-scrollbar-thumb,
  .col-scroll:hover::-webkit-scrollbar-thumb, .pm-overlay:hover::-webkit-scrollbar-thumb, .dropdown:hover::-webkit-scrollbar-thumb{
    background:var(--accent);
  }
 .ch-row{ display:flex; align-items:center; gap:7px; padding:7px 8px 7px 14px; cursor:pointer; font-size:12px; font-weight:600; color:var(--text-dim); white-space:nowrap; }
  .ch-row:hover{ background:var(--bg-hover); }
  .ch-row.active{ background:var(--accent-soft); color:var(--accent); font-weight:600; }
  .ch-row.unread .n{ color:var(--online); font-weight:800; }
  .ch-row .n{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; }
  .ch-row .c{ font-size:10.5px; color:var(--text-dim); }
  .ch-row.active .c{ color:var(--accent); }
  .row-x{ width:18px; height:18px; border-radius:5px; display:flex; align-items:center; justify-content:center; opacity:.5; flex-shrink:0; color:inherit; }
  .row-x:hover{ opacity:1; background:rgba(0,0,0,0.15); }
  .row-x svg{ width:10px; height:10px; stroke:currentColor; }
  .ch-status-row{ color:var(--online); font-weight:600; }
  .ch-status-row.active{ background:rgba(47,211,167,0.14); color:var(--online); }
  .ch-status-row svg{ width:14px; height:14px; stroke:currentColor; }
  .ch-join{ color:var(--accent); font-weight:600; padding:8px 14px; cursor:pointer; font-size:13px; }
  .col-divider{ height:1px; background:var(--border); margin:4px 0; flex-shrink:0; }

  /* USERS COLUMN */
  .users-col{ width:150px; flex-shrink:0; background:var(--bg-panel); border-left:1px solid var(--border); display:flex; flex-direction:column; overflow:hidden; transition:width .22s ease; }
  .users-col.closed{ width:0; border-left:none; }
  @media(max-width:899px){
    .users-col{ width:min(130px,42vw); }
    .users-col.closed{ width:0; }
  }
  .search-box{ display:flex; align-items:center; gap:7px; background:var(--bg-input); border:1px solid var(--border); border-radius:9px; padding:7px 10px; margin:10px 14px 4px; }
  .search-box svg{ width:14px; height:14px; stroke:currentColor; color:var(--text-dim); flex-shrink:0; }
  .search-box input{ border:none; background:transparent; outline:none; font-family:'Poppins',sans-serif; font-size:12.5px; color:var(--text); width:100%; }
  .user-row{ display:flex; align-items:center; gap:6px; padding:5px 14px; cursor:pointer; white-space:nowrap; transition:background .25s ease, border-left-color .25s ease; border-left:3px solid transparent; }
  .user-row:hover{ background:var(--accent-soft); }
  .user-row.highlight{ background:var(--accent-soft); border-left-color:var(--accent); }
  .avatar{ width:22px; height:22px; border-radius:7px; color:#fff; display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:700; flex-shrink:0; position:relative; }
  .avatar .status-dot{ position:absolute; bottom:-2px; right:-2px; width:8px; height:8px; border-radius:50%; background:var(--online); border:2px solid var(--bg-panel); }
  .user-name{ font-size:12.5px; font-weight:500; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; }
  .star{ color:#F0A860; width:13px; height:13px; flex-shrink:0; }
  .rank{ width:16px; height:16px; border-radius:5px; display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:800; flex-shrink:0; }
  .rank-founder{ background:linear-gradient(135deg,#FFD87A,#F0A860); color:#4A2800; box-shadow:0 0 6px rgba(240,168,96,.55), inset 0 1px 0 rgba(255,255,255,.35); }
  .rank-sop{ background:linear-gradient(135deg,#FF8FA3,var(--alert)); color:#fff; box-shadow:0 0 6px rgba(255,100,120,.5), inset 0 1px 0 rgba(255,255,255,.3); }
  .rank-op{ background:linear-gradient(135deg,#A79CFF,var(--accent)); color:#fff; box-shadow:0 0 6px rgba(124,108,246,.5), inset 0 1px 0 rgba(255,255,255,.3); }
  .rank-halfop{ background:linear-gradient(135deg,#7CF3CE,var(--online)); color:#04241c; box-shadow:0 0 6px rgba(47,211,167,.5), inset 0 1px 0 rgba(255,255,255,.3); }
  .rank-voice{ background:linear-gradient(135deg,#B9BFCB,var(--text-dim)); color:#fff; box-shadow:0 0 4px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.25); }

  .pm-row{ display:flex; align-items:center; gap:9px; padding:7px 10px; margin:2px 6px; cursor:pointer; border-radius:11px; transition:background .15s ease; }
  .pm-row:hover{ background:var(--accent-soft); }
  .pm-row .avatar{ width:28px; height:28px; border-radius:9px; font-size:11px; }
  .pm-row.unread{ background:var(--bg-elevated); }
  .pm-row.unread .pm-name{ font-weight:800; }
  .pm-row.unread .pm-preview{ color:var(--text); font-weight:600; }
  .pm-text{ flex:1; min-width:0; }
  .pm-name{ font-size:12px; font-weight:600; color:var(--accent); }
  .pm-preview{ font-size:10.5px; color:var(--text-dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .pm-typing{ color:var(--accent); font-style:italic; display:flex; align-items:center; gap:4px; }
  .pm-typing .typing-dot{ background:var(--accent); }
  .pm-badge{ background:var(--alert); color:#fff; font-size:9.5px; font-weight:700; min-width:16px; height:16px; border-radius:8px; display:flex; align-items:center; justify-content:center; padding:0 4px; flex-shrink:0; }

  /* MOBILE PM OVERLAY (opens from top) */
  .pm-overlay{ position:fixed; left:0; right:0; top:0; background:var(--bg-panel); border-bottom:1px solid var(--border); z-index:60; transform:translateY(-100%); transition:transform .25s ease; max-height:75vh; overflow-y:auto; box-shadow:var(--shadow); }
  .pm-overlay.open{ transform:translateY(0); }
  .pm-overlay-head{ display:flex; align-items:center; justify-content:space-between; padding:14px; border-bottom:1px solid var(--border); }
  .pm-overlay-head span{ font-size:13.5px; font-weight:700; }

  .backdrop{ position:fixed; inset:0; background:rgba(0,0,0,0.35); opacity:0; pointer-events:none; transition:opacity .2s ease; z-index:40; }
  .backdrop.show{ opacity:1; pointer-events:auto; }

  /* DROPDOWNS */
  .dropdown{ position:fixed; min-width:220px; max-height:80vh; overflow-y:auto; background:var(--bg-elevated); border:1px solid var(--border); border-radius:12px; box-shadow:var(--shadow); padding:6px; z-index:300; opacity:0; visibility:hidden; transform:translateY(-6px); transition:opacity .15s ease, transform .15s ease; }
  .dropdown.show{ opacity:1; visibility:visible; transform:translateY(0); }
  .dd-item{ display:flex; align-items:center; gap:9px; padding:8px 11px; border-radius:8px; cursor:pointer; font-size:12.5px; font-weight:500; }
  .dd-item:hover{ background:var(--accent-soft); }
  .dd-item svg{ width:14px; height:14px; stroke:currentColor; color:var(--text-dim); flex-shrink:0; }
  .dd-divider{ height:1px; background:var(--border); margin:5px 7px; }
  .dd-notif{ padding:9px 11px; border-radius:8px; }
  .dd-notif:hover{ background:var(--bg-hover); }
  .dd-notif-title{ font-size:12px; font-weight:600; } .dd-notif-sub{ font-size:10.5px; color:var(--text-dim); margin-top:1px; }
  .dd-notif-text{ font-size:11px; color:var(--text); margin-top:4px; background:var(--bg-hover); padding:5px 8px; border-radius:7px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .guide-section{ margin-bottom:16px; padding-bottom:16px; border-bottom:1px solid var(--border); }
  .guide-section:last-child{ border-bottom:none; margin-bottom:0; padding-bottom:0; }
  .guide-head{ display:flex; align-items:center; gap:9px; font-weight:700; font-size:13.5px; color:var(--text); margin-bottom:8px; }
  .guide-icon{ width:28px; height:28px; border-radius:9px; display:flex; align-items:center; justify-content:center; font-size:14px; flex-shrink:0; color:#fff; box-shadow:0 2px 6px rgba(0,0,0,0.2); }
  .guide-item{ display:flex; gap:8px; margin-bottom:7px; align-items:flex-start; }
  .guide-item:last-child{ margin-bottom:0; }
  .guide-num{ width:18px; height:18px; border-radius:50%; background:var(--accent-soft); color:var(--accent); font-size:10px; font-weight:800; display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:1px; }
  .guide-cmd{ display:inline-block; background:var(--bg-elevated); border:1px solid var(--border); border-radius:6px; padding:2px 7px; font-family:'Courier New',monospace; font-size:11px; color:var(--accent); font-weight:700; }
  .guide-cmd-row{ display:flex; align-items:center; gap:8px; margin-bottom:6px; flex-wrap:wrap; }
  .guide-cmd-row:last-child{ margin-bottom:0; }
  .guide-desc{ font-size:12px; color:var(--text-dim); }
  .notif-header{ display:flex; align-items:center; justify-content:space-between; padding:6px 9px 2px; }
  .notif-header span{ font-size:11px; font-weight:700; color:var(--text-dim); text-transform:uppercase; }
  .clear-btn{ font-size:11px; font-weight:600; color:var(--accent); cursor:pointer; padding:3px 7px; border-radius:6px; }
  .clear-btn:hover{ background:var(--accent-soft); }
  .notif-empty{ padding:20px 10px; text-align:center; font-size:12px; color:var(--text-dim); display:none; }

  .ctx-menu{ position:fixed; min-width:220px; background:var(--bg-elevated); border:1px solid var(--border); border-radius:14px; box-shadow:var(--shadow); padding:6px; z-index:300; display:none; }
  .ctx-menu.show{ display:block; }
  .ctx-header{ display:flex; align-items:center; gap:10px; padding:10px 10px 12px; }
  .ctx-header .avatar{ width:34px; height:34px; border-radius:50%; font-size:13px; }
  .ctx-header .ctx-name{ font-size:14px; font-weight:700; }
  .ctx-divider{ height:1px; background:var(--border); margin:6px 4px; }
  .ctx-section-label{ font-size:10px; font-weight:700; letter-spacing:.5px; text-transform:uppercase; color:var(--text-dim); padding:8px 11px 4px; }
  .ctx-item{ display:flex; align-items:center; gap:10px; padding:9px 11px; border-radius:9px; font-size:12.5px; font-weight:500; cursor:pointer; }
  .ctx-item:hover{ background:var(--accent-soft); }
  .ctx-item svg{ width:15px; height:15px; stroke:currentColor; color:var(--text-dim); flex-shrink:0; }
  .ctx-item.danger{ color:var(--alert); } .ctx-item.danger svg{ color:var(--alert); }
  .ctx-item.ok{ color:var(--online); } .ctx-item.ok svg{ color:var(--online); }
  .ctx-item.active-toggle{ color:var(--accent); } .ctx-item.active-toggle svg{ color:var(--accent); }

  .modal-backdrop{ position:fixed; inset:0; background:rgba(0,0,0,0.5); display:none; align-items:center; justify-content:center; z-index:250; }
  .modal-backdrop.show{ display:flex; }
  .modal{ width:320px; max-width:90%; background:var(--bg-panel); border-radius:16px; border:1px solid var(--border); border-top:3px solid var(--accent); padding:18px; box-shadow:var(--shadow), 0 0 0 1px var(--accent-soft); }
  .modal-title{ font-size:15px; font-weight:700; margin-bottom:14px; display:flex; justify-content:space-between; align-items:center; }
  .setting-row{ display:flex; align-items:center; justify-content:space-between; padding:11px 0; border-bottom:1px solid var(--border); }
  .setting-row:last-child{ border-bottom:none; }
  .setting-label{ font-size:12.5px; font-weight:500; }
  .swatches{ display:flex; gap:8px; flex-wrap:wrap; max-width:150px; justify-content:flex-end; }
  .swatch{ width:22px; height:22px; border-radius:50%; cursor:pointer; border:2px solid transparent; box-shadow:0 2px 6px rgba(0,0,0,0.25); }
  .swatch.selected{ border-color:var(--text); }
  .segmented{ display:flex; background:var(--bg-input); border-radius:7px; padding:3px; }
  .segmented span{ padding:4px 9px; font-size:11px; border-radius:5px; cursor:pointer; color:var(--text-dim); }
  .segmented span.sel{ background:var(--accent); color:#fff; }
  .mini-toggle{ width:36px; height:21px; border-radius:20px; background:var(--border); position:relative; border:none; cursor:pointer; }
  .mini-toggle::after{ content:''; position:absolute; top:2px; left:2px; width:17px; height:17px; border-radius:50%; background:var(--accent); transition:transform .2s ease; }
  .mini-toggle.on::after{ transform:translateX(15px); }

  /* LOGIN SCREEN */
  #loginScreen{
    position:fixed; inset:0; z-index:500; overflow:hidden; font-family:'Poppins',sans-serif; color:var(--text);
    display:flex; align-items:center; justify-content:center;
    background:radial-gradient(circle at 15% 20%, rgba(124,108,246,0.35), transparent 45%),
               radial-gradient(circle at 85% 15%, rgba(47,211,167,0.28), transparent 45%),
               radial-gradient(circle at 50% 90%, rgba(240,168,96,0.20), transparent 50%),
               var(--bg);
  }
  [data-theme="light"] #loginScreen{
    background:radial-gradient(circle at 15% 20%, rgba(108,99,255,0.22), transparent 45%),
               radial-gradient(circle at 85% 15%, rgba(14,158,125,0.18), transparent 45%),
               radial-gradient(circle at 50% 90%, rgba(240,168,96,0.16), transparent 50%),
               var(--bg);
  }
  .login-blob{ position:absolute; border-radius:50%; filter:blur(50px); opacity:.5; animation:blobFloat 12s ease-in-out infinite; pointer-events:none; }
  .login-blob.b1{ width:220px; height:220px; background:var(--accent); top:8%; left:8%; }
  .login-blob.b2{ width:260px; height:260px; background:var(--online); bottom:5%; right:10%; animation-delay:-4s; }
  .login-blob.b3{ width:160px; height:160px; background:#F0A860; bottom:15%; left:20%; animation-delay:-8s; }
  @keyframes blobFloat{ 0%,100%{ transform:translate(0,0) scale(1); } 50%{ transform:translate(20px,-24px) scale(1.12); } }

  .login-card{
    position:relative; width:360px; max-width:90vw; background:color-mix(in srgb, var(--bg-panel) 82%, transparent);
    backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
    border:1px solid var(--border); border-radius:26px; padding:36px 30px; box-shadow:var(--shadow); text-align:center;
  }
  .login-logo{
    width:64px; height:64px; border-radius:50%; margin:0 auto 18px; position:relative;
    display:flex; align-items:center; justify-content:center;
    background:linear-gradient(135deg,var(--accent),var(--online)); color:#fff;
  }
  .login-logo svg{ width:28px; height:28px; stroke:currentColor; position:relative; z-index:1; }
  .login-logo::before, .login-logo::after{
    content:''; position:absolute; inset:0; border-radius:50%; border:2px solid var(--accent);
    animation:ringPulse 2.4s ease-out infinite; opacity:0;
  }
  .login-logo::after{ animation-delay:1.2s; }
  @keyframes ringPulse{ 0%{ transform:scale(1); opacity:.6; } 100%{ transform:scale(1.7); opacity:0; } }

  .login-title{ font-size:20px; font-weight:800; margin-bottom:4px; }
  .login-sub{ font-size:12.5px; color:var(--text-dim); margin-bottom:26px; line-height:1.5; }
  .login-field{ text-align:left; margin-bottom:16px; position:relative; }
  .login-field label{ font-size:11.5px; font-weight:600; color:var(--text-dim); display:block; margin-bottom:7px; }
  .login-field .field-icon{ position:absolute; left:14px; bottom:12.5px; width:15px; height:15px; color:var(--text-dim); stroke:currentColor; pointer-events:none; transition:color .2s ease; }
  .login-field:focus-within .field-icon{ color:var(--accent); }
  .login-field input{
    width:100%; background:var(--bg-input); border:1.5px solid var(--border); border-radius:14px;
    padding:13px 14px 13px 40px; font-family:'Poppins',sans-serif; font-size:13.5px; color:var(--text); outline:none;
    transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
  }
  .login-field input:focus{ border-color:var(--accent); box-shadow:0 0 0 4px var(--accent-soft); background:var(--bg-elevated); }
  .login-btn{
    width:100%; background:linear-gradient(135deg,var(--accent),var(--online)); color:#fff; border:none; border-radius:12px;
    padding:13px; font-family:'Poppins',sans-serif; font-size:14px; font-weight:700; cursor:pointer; margin-top:8px;
    display:flex; align-items:center; justify-content:center; gap:8px; transition:transform .15s ease, opacity .15s ease;
  }
  .login-btn:hover{ opacity:.92; transform:translateY(-1px); }
  .login-btn svg{ width:16px; height:16px; stroke:currentColor; }
  .login-status{ font-size:11.5px; color:var(--text-dim); margin-top:14px; min-height:16px; }
  .login-theme{ position:absolute; top:18px; right:18px; z-index:1; }

  /* TOAST BİLDİRİMLERİ */
  .toast-container{ position:fixed; top:20px; left:50%; transform:translateX(-50%); z-index:1000; display:flex; flex-direction:column; gap:10px; align-items:center; pointer-events:none; }
  .toast{
    display:flex; align-items:center; gap:11px;
    background:color-mix(in srgb, var(--bg-elevated) 92%, transparent);
    backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
    color:var(--text); border:1px solid var(--border); border-left:3px solid var(--accent);
    padding:12px 20px 12px 15px; border-radius:13px; font-size:13px; font-weight:600;
    box-shadow:0 16px 40px rgba(0,0,0,0.28);
    opacity:0; transform:translateY(-18px) scale(.95);
    transition:opacity .35s cubic-bezier(.34,1.56,.64,1), transform .35s cubic-bezier(.34,1.56,.64,1);
    white-space:nowrap;
  }
  .toast.show{ opacity:1; transform:translateY(0) scale(1); }
  .toast-icon{ width:20px; height:20px; border-radius:50%; background:var(--accent-soft); color:var(--accent); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
  .toast-icon svg{ width:11px; height:11px; }
/* mobilde giriş çubuğu son/kesin ayar — sıralama sorunlarını önlemek için dosyanın en sonunda */
  @media(max-width:899px){
    .inputbar .radio-btn{ width:30px !important; height:30px !important; }
    .inputbar .send{ width:32px !important; height:32px !important; }
    .inputbar .send svg{ width:16px !important; height:16px !important; }
  }
  @media(max-width:480px){
    #mentionBtn{ display:none !important; }
  }