/* =========================================
   Matrix Panel - Clean Single CSS
   (Admin + User + Auth)
   ========================================= */

:root{
  --bg1:#050b1a;
  --bg2:#07142a;

  --card:#071427;
  --card2:#061021;

  --text:#e5e7eb;
  --muted:#9ca3af;

  --border:rgba(255,255,255,.08);

  --accent:#00f2ff;
  --accent2:#21c55d;
  --danger:#ef4444;
  --warn:#f59e0b;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 70% 30%, rgba(0,242,255,.08), transparent 60%),
    radial-gradient(900px 600px at 30% 70%, rgba(33,197,93,.07), transparent 60%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
}

a{ color:inherit; text-decoration:none; }

/* =========================================
   Layout: Sidebar + Content
   ========================================= */

.sidebar{
  width:260px;
  position:fixed;
  left:0; top:0;
  height:100vh;
  padding:22px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.35));
  border-right:1px solid var(--border);
}

.sidebar h2{
  margin:0 0 16px 0;
  font-size:26px;
  font-weight:900;
  color:#22c55e;
  letter-spacing:.2px;
}


/* Brand (Logo + Title) */
.sidebar .brand{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 16px 0;
}
.sidebar .brand-logo{
  width:40px;
  height:40px;
  object-fit:contain;
  filter: drop-shadow(0 0 10px rgba(0,242,255,.35));
}
.sidebar .brand-text{
  font-size:24px;
  font-weight:900;
  color:#22c55e;
  letter-spacing:.2px;
  line-height:1;
}
@media (max-width: 640px){
  .sidebar .brand-logo{ width:34px; height:34px; }
  .sidebar .brand-text{ font-size:20px; }
}


.sidebar ul{
  list-style:none;
  padding:0;
  margin:14px 0 0 0;
}

.sidebar li{ margin:8px 0; }

.sidebar a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 12px;
  border-radius:10px;
  color:var(--text);
  transition:.15s;
  border:1px solid transparent;
}

.sidebar a:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
}

.sidebar a.active{
  background: rgba(0,242,255,.12);
  border-color: rgba(0,242,255,.25);
}

.content{
  margin-left:260px;
  padding:28px 28px;

  /* ESKİ: max-width:1280px;  -> tabloyu sıkıştırıyordu */
  max-width:none;

  /* Tam genişlikte yayıl */
  width: calc(100% - 260px);

  overflow-x:hidden; /* sayfa genelinde gereksiz sağ scroll barı kes */
}

/* =========================================
   Top Wallet Widget (Firma + Bayi)
   ========================================= */

.top-wallet{
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,242,255,.22);
  background: rgba(0,0,0,.38);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(0,242,255,.12);
}
.top-wallet-amount{
  font-weight: 1000;
  font-size: 13px;
  letter-spacing: .2px;
}
.top-wallet-amount span{
  color: rgba(0,242,255,1);
  text-shadow: 0 0 10px rgba(0,242,255,.45), 0 0 24px rgba(0,242,255,.20);
}
.top-wallet-actions{
  display:flex;
  gap:8px;
  align-items:center;
}
@media (max-width: 640px){
  .top-wallet{ right: 10px; top: 10px; padding: 8px 10px; gap: 8px; }
  .top-wallet-amount{ font-size: 12px; }
  .top-wallet-actions{ gap:6px; }
}

.wallet-warning{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(239,68,68,.45);
  background: rgba(239,68,68,.10);
  color: rgba(255,120,120,1);
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(255,80,80,.50), 0 0 24px rgba(255,80,80,.22);
}

/* Responsive sidebar */
@media (max-width: 900px){
  .sidebar{ width:220px; }
  .content{ margin-left:220px; width: calc(100% - 220px); }
}
@media (max-width: 640px){
  .sidebar{ width:190px; padding:18px 14px; }
  .content{ margin-left:190px; width: calc(100% - 190px); padding:18px 14px; }
}

/* =========================================
   Typography
   ========================================= */

.page-title{
  margin:0 0 18px 0;
  font-size:24px;
  font-weight:900;
  letter-spacing:.2px;
}

h2,h3{ margin:0 0 12px 0; }
h3{ font-size:18px; font-weight:900; }

/* =========================================
   Cards
   ========================================= */

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--border);
  border-radius:14px;
  padding:18px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  max-width:100%;
}

/* =========================================
   Grid system
   ========================================= */

.grid{ display:grid; gap:16px; }
@media (min-width: 1100px){
  .grid{ grid-template-columns: repeat(12, 1fr); }
}
@media (max-width: 1099px){
  .grid{ grid-template-columns: repeat(12, 1fr); }
}

.col-12{ grid-column: span 12; }
.col-8{ grid-column: span 8; }
.col-6{ grid-column: span 6; }
.col-7{ grid-column: span 7; }
.col-5{ grid-column: span 5; }
.col-4{ grid-column: span 4; }
.col-3{ grid-column: span 3; }

/* ✅ Büyük ekranda: Filtre daha dar, Liste daha geniş (Domain Yönetimi & Kullanıcılar için ideal) */
@media (min-width: 1100px){
  .col-4{ grid-column: span 3; }
  .col-8{ grid-column: span 9; }
}

@media (max-width: 1099px){
  .col-8,.col-7,.col-6,.col-5,.col-4{ grid-column: span 12; }
  .col-3{ grid-column: span 6; }
}
@media (max-width: 640px){
  .col-3{ grid-column: span 12; }
}

/* =========================================
   Forms
   ========================================= */

label{
  display:block;
  margin-bottom:6px;
  font-weight:800;
  color: var(--text);
}

input, select, textarea{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline:none;
}

/* Native select dropdown bazı tarayıcılarda beyaz kalabiliyor */
select{ color-scheme: dark; }
select option{
  background: #0b1119;
  color: #eaffff;
}

input:focus, select:focus, textarea:focus{
  border-color: rgba(0,242,255,.45);
  box-shadow: 0 0 0 3px rgba(0,242,255,.10);
}

input[type="checkbox"]{
  width:auto;
  transform: translateY(1px);
}

/* =========================================
   Buttons
   ========================================= */

button, .btn{
  width:auto;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: var(--text);
  padding:10px 14px;
  border-radius:10px;
  font-weight:900;
  cursor:pointer;
  transition: .15s;
  white-space:nowrap;
}

button:hover, .btn:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.22);
}

button:active, .btn:active{ transform: translateY(1px); }

button[type="submit"]{
  background: rgba(0,242,255,.18);
  border-color: rgba(0,242,255,.32);
}

button[type="submit"]:hover{ background: rgba(0,242,255,.24); }

.btn-ghost{ background: rgba(0,0,0,.12); }

.btn-danger{
  background: rgba(239,68,68,.12);
  border-color: rgba(239,68,68,.30);
}

.btn-danger:hover{ background: rgba(239,68,68,.18); }

/* =========================================
   Neon action buttons (Deal / Warning)
   ========================================= */

.btn-neon-cyan{
  background: rgba(0,242,255,.18);
  border-color: rgba(0,242,255,.40);
  box-shadow: 0 0 18px rgba(0,242,255,.18);
}
.btn-neon-cyan:hover{
  background: rgba(0,242,255,.24);
  border-color: rgba(0,242,255,.55);
  box-shadow: 0 0 22px rgba(0,242,255,.28);
}

.btn-neon-magenta{
  background: rgba(236,72,153,.14);
  border-color: rgba(236,72,153,.42);
  box-shadow: 0 0 18px rgba(236,72,153,.16);
}
.btn-neon-magenta:hover{
  background: rgba(236,72,153,.20);
  border-color: rgba(236,72,153,.58);
  box-shadow: 0 0 22px rgba(236,72,153,.26);
}

.neon-warn-text{
  color: rgba(255,80,80,1);
  text-shadow: 0 0 10px rgba(255,80,80,.55), 0 0 24px rgba(255,80,80,.25);
}

.btn-neon-red{
  background: rgba(239,68,68,.14);
  border-color: rgba(239,68,68,.55);
  box-shadow: 0 0 20px rgba(239,68,68,.22);
}
.btn-neon-red:hover{
  /* hoverda yesil yansin */
  background: rgba(34,197,94,.16);
  border-color: rgba(34,197,94,.58);
  box-shadow: 0 0 22px rgba(34,197,94,.28);
}

.tick-ok{
  color: rgba(34,197,94,1);
  text-shadow: 0 0 10px rgba(34,197,94,.55), 0 0 24px rgba(34,197,94,.25);
  font-weight: 900;
}

.btn-wide{ width:100%; }

.btn-sm{ padding:8px 10px; border-radius:9px; font-size:13px; }
.btn-row{ display:flex; gap:8px; flex-wrap:wrap; }

.btn-sm{
  padding:8px 10px;
  border-radius:10px;
  font-size:13px;
}

.btn-sm{ padding:8px 10px; border-radius:10px; font-size:13px; }

/* =========================================
   Modal
   ========================================= */

.modal-backdrop{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  display:none;
  align-items:center;
  justify-content:center;
  padding: 20px;
  z-index: 9999;
}
.modal-backdrop.open{ display:flex; }

.modal{
  width:min(860px, 98vw);
  max-height: 86vh;
  overflow:auto;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}

.modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.modal-title{ font-weight: 1000; }
.modal-body{ padding: 14px 16px 16px; }


/* Kart içindeki form submit default full */
.content .card form button[type="submit"]{
  width:100%;
}

/* Ama tablo içi butonlar asla full olmasın */
.table button,
.table .btn,
.table form button{
  width:auto !important;
}

/* =========================================
   Alerts
   ========================================= */

.alert{
  border-radius:12px;
  padding:12px 14px;
  margin: 0 0 14px 0;
  border:1px solid var(--border);
}

.alert-ok{
  background: rgba(33,197,93,.12);
  border-color: rgba(33,197,93,.25);
}

.alert-error{
  background: rgba(239,68,68,.12);
  border-color: rgba(239,68,68,.25);
}

/* =========================================
   Badges
   ========================================= */

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  letter-spacing:.2px;
  border:1px solid rgba(255,255,255,.10);
  white-space:nowrap;
  min-width: 74px;
}

.badge-ok{
  background: rgba(33,197,93,.14);
  border-color: rgba(33,197,93,.28);
}
.badge-bad{
  background: rgba(239,68,68,.14);
  border-color: rgba(239,68,68,.28);
}
.badge-warn{
  background: rgba(245,158,11,.14);
  border-color: rgba(245,158,11,.28);
}
.badge-info{
  background: rgba(0,242,255,.12);
  border-color: rgba(0,242,255,.25);
}

/* =========================================
   Tables
   ========================================= */

.table-wrap{
  width:100%;
  overflow-x:auto;
  border-radius:12px;
}

/* ✅ Tablo: yazıların alt satıra düşmesini azalt */
.table{
  width:100%;
  border-collapse:collapse;

  /* ESKİ: table-layout: fixed; -> sütunları daraltıp kırdırıyordu */
  table-layout:auto;
}

.table th, .table td{
  padding:12px 10px;
  border-bottom:1px solid rgba(255,255,255,.06);
  vertical-align:middle;

  /* kırılmayı azalt */
  white-space:nowrap;

  overflow:hidden;
  text-overflow: ellipsis;
}

.table th{
  font-weight:900;
  color: var(--text);
  font-size:13px;
}

.table td{
  font-size:13px;
  color: var(--text);

  /* ESKİ: word-break: break-word; -> domain gibi şeyleri parçalıyordu */
  word-break: normal;
}

/* Mesaj sütununda ellipsis istemiyorsan aç: (istersen kapatabilirsin)
.table td:nth-child(7){ overflow:visible; text-overflow:clip; }
*/

/* İşlem hücresi */
.table td:last-child{ white-space:nowrap; }

.table td:last-child form{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-right:10px;
}
.table td:last-child form:last-child{ margin-right:0; }

/* === Admin Domain Yönetimi: Periyot select + Kaydet butonu hizası === */
.table select{
  max-width: 130px;
}

.table td form{
  display:inline-flex;
  align-items:center;
  gap:10px;
  flex-wrap:nowrap;
}

/* satır yüksekliği */
.table td{ min-height: 52px; }

/* ✅ Başlıkların (Mesaj vs) kırılmasını azaltmak için min genişlikler */
.table th:nth-child(1), .table td:nth-child(1){ min-width:60px; }   /* ID */
.table th:nth-child(2), .table td:nth-child(2){ min-width:140px; }  /* Kullanıcı */
.table th:nth-child(3), .table td:nth-child(3){ min-width:170px; }  /* Domain */
.table th:nth-child(4), .table td:nth-child(4){ min-width:150px; }  /* Periyot */
.table th:nth-child(5), .table td:nth-child(5){ min-width:110px; }  /* Durum */
.table th:nth-child(6), .table td:nth-child(6){ min-width:220px; }  /* Son/Sonraki */
.table th:nth-child(7), .table td:nth-child(7){ min-width:160px; }  /* Mesaj */
.table th:nth-child(8), .table td:nth-child(8){ min-width:160px; }  /* İşlem */

/* scrollbar */
.table-wrap::-webkit-scrollbar{ height: 10px; }
.table-wrap::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.15);
  border-radius: 10px;
}
.table-wrap::-webkit-scrollbar-track{
  background: rgba(255,255,255,.05);
}

/* =========================================
   Telegram page: buttons side-by-side
   ========================================= */

.telegram-actions{
  display:flex !important;
  gap:12px !important;
  flex-wrap:nowrap !important;
  margin-top:12px !important;
}

.telegram-actions button{
  flex:1 1 0 !important;
  width:auto !important;
  min-width:0 !important;
}

.content .card form .telegram-actions button[type="submit"]{
  width:auto !important;
}

@media (max-width: 520px){
  .telegram-actions{ flex-wrap:wrap !important; }
  .telegram-actions button{ flex:1 1 100% !important; }
}

/* =========================================
   Login page (Auth) - center
   ========================================= */

body:has(.card form):not(:has(.sidebar)) {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100vh;
}

body:has(.card form):not(:has(.sidebar)) .card{
  width: min(560px, calc(100% - 30px));
  margin: 0 auto;
}

body:has(.card form):not(:has(.sidebar)) .card form{
  display:grid;
  gap: 10px;
}

body:has(.card form):not(:has(.sidebar)) .card input{
  height: 44px;
}

body:has(.card form):not(:has(.sidebar)) .card button{
  height: 44px;
  width: 140px;
}

body:has(.card form):not(:has(.sidebar)) .card form button[type="submit"]{
  width: 140px !important;
}

/* =========================================
   Minor helpers
   ========================================= */

.muted{ color: var(--muted); }

/* =========================================
   AUTH PAGE - Video/GIF Background
   ========================================= */

body.auth-page{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
  position: relative;
  overflow:hidden;
}

.auth-bg-video{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: .22;
  filter: saturate(1.1) contrast(1.05) brightness(.85);
  transform: scale(1.02);
}

.auth-overlay{
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 700px at 70% 30%, rgba(0,242,255,.12), transparent 60%),
    radial-gradient(900px 600px at 30% 70%, rgba(33,197,93,.10), transparent 60%),
    linear-gradient(135deg, rgba(5,11,26,.78), rgba(7,20,42,.82));
}

.auth-card{ width: min(620px, 100%); }
.auth-actions{ display:flex; justify-content:flex-start; gap:12px; margin-top:2px; }
.auth-actions button{ height: 46px; width: 140px; .auth-logo{
  width:78px;
  height:78px;
  object-fit:contain;
  display:block;
  margin: 0 auto 10px auto;
  filter: drop-shadow(0 0 16px rgba(0,242,255,.35));
}

}

/* =========================================
   SIDEBAR - User Profile (Neon)
   ========================================= */

.side-profile{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  margin: 10px 0 14px 0;
}

.side-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  flex:1 1 auto;
}

.side-avatar{
  width:44px;
  height:44px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid rgba(255,255,255,.14);
  box-shadow: 0 0 0 3px rgba(0,0,0,.25);
}

.side-meta{ line-height:1.12; min-width:0; flex:1 1 auto; }
.side-sub{ font-size:12px; opacity:.9; }

/* only the online line gets a dot */
.online-dot{
  position:relative;
  padding-left:14px;
}
.online-dot::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:#22c55e;
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  box-shadow:0 0 10px rgba(34,197,94,.9);
}

/* compact subscription badge */
.sub-badge{
  flex:0 0 auto;
  max-width:90px;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:11px;
  line-height:1;
  white-space:nowrap;
  padding:6px 8px;
  border-radius:999px;
  border:1px solid rgba(0,242,255,.35);
  background:rgba(0,242,255,.08);
  color:#aefcff;
  filter: drop-shadow(0 0 10px rgba(0,242,255,.18));
}

.sub-badge.wide{
  max-width:260px;
  font-size:12px;
  padding:7px 10px;
}


.side-name{
  font-weight:1000;
  font-size:18px;
  letter-spacing:.2px;
  color: var(--neon, #00f2ff);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  text-shadow:
    0 0 10px color-mix(in srgb, var(--neon, #00f2ff) 60%, transparent),
    0 0 18px color-mix(in srgb, var(--neon, #00f2ff) 45%, transparent);
}

.neon-flicker{ animation: neonFlicker 2.6s infinite; }

@keyframes neonFlicker{
  0%, 100% { opacity: 1; filter: brightness(1); }
  48% { opacity: .95; }
  50% { opacity: .55; filter: brightness(1.35); }
  52% { opacity: .9; }
  72% { opacity: .85; }
  74% { opacity: .6; filter: brightness(1.25); }
  76% { opacity: 1; }
}

/* (eski GIF pseudo-element arkaplanı kaldırıldı; artık video tag kullanıyoruz) */



/* =========================================
   Notifications + Chat UI helpers
   ========================================= */

.nav-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:22px;
  margin-right:6px;
}

.mini-badge{
  margin-left:auto;
  background: rgba(0,242,255,.18);
  border:1px solid rgba(0,242,255,.35);
  padding:2px 8px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  white-space:nowrap;
}

.blink{
  filter: drop-shadow(0 0 10px rgba(0,242,255,.55));
  animation: blinkNeon 1.2s infinite;
}
@keyframes blinkNeon{
  0%, 100% { opacity: .55; transform: translateY(0); }
  50%      { opacity: 1;   transform: translateY(-1px); }
}

/* Online green dot */
.online-dot{
  display:flex;
  align-items:center;
  gap:8px;
}
.online-dot::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background: rgba(34,197,94,.95);
  box-shadow: 0 0 10px rgba(34,197,94,.55);
}

/* Notice list */
.notice-item{
  padding: 10px 2px 14px;
}
.notice-title{
  font-weight: 1000;
  font-size: 16px;
  margin-bottom: 4px;
}
.notice-meta{
  font-size: 12px;
  margin-bottom: 10px;
}
.notice-body{
  color: rgba(255,255,255,.90);
  line-height: 1.45;
}
.divider{
  height:1px;
  background: rgba(255,255,255,.06);
  margin: 8px 0;
}

/* Chat layout */
.chat-user-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:10px;
}
.chat-user{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.10);
}
.chat-user:hover{
  background: rgba(255,255,255,.05);
}
.chat-user.active{
  background: rgba(0,242,255,.10);
  border-color: rgba(0,242,255,.20);
}
.chat-user-name{
  font-weight:900;
}

.chat-box{
  display:flex;
  flex-direction:column;
  min-height: 520px;
}

.chat-messages{
  flex:1 1 auto;
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.10);
  overflow:auto;
  max-height: 560px;
}

.chat-msg{
  display:flex;
  margin: 8px 0;
}
.chat-msg.mine{ justify-content:flex-end; }
.chat-msg.theirs{ justify-content:flex-start; }

.chat-bubble{
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.chat-msg.mine .chat-bubble{
  background: rgba(0,242,255,.08);
  border-color: rgba(0,242,255,.18);
}
.chat-text{
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-meta{
  margin-top: 6px;
  font-size: 12px;
}

.chat-form{
  display:flex;
  gap:10px;
  margin-top: 12px;
}
.chat-form textarea{
  flex: 1 1 auto;
  min-height: 52px;
  resize: vertical;
}
.chat-form button{
  width: 140px;
  height: 52px;
}

/* Sidebar: copy id */
.side-id{
  margin-top:8px;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color: rgba(255,255,255,.75);
}
.copy-btn{
  padding:4px 8px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  cursor:pointer;
}
.copy-btn:hover{ background: rgba(255,255,255,.06); }

/* Sidebar notification icon */
.nav-icon{ min-width:22px; display:inline-flex; justify-content:center; }
.dim{ opacity:.55; filter:none; }

.mini-badge{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:2px 8px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  background: rgba(0,242,255,.18);
  border:1px solid rgba(0,242,255,.35);
}

.blink{
  animation: blinkNeon 1.2s infinite;
  filter: drop-shadow(0 0 10px rgba(0,242,255,.55));
}
@keyframes blinkNeon{
  0%,100%{ opacity:.55; transform:translateY(0); }
  50%{ opacity:1; transform:translateY(-1px); }
}

/* Online green dot */
.online-dot{ display:flex; align-items:center; gap:8px; }
.online-dot::before{
  content:"";
  width:8px; height:8px;
  border-radius:999px;
  background: rgba(34,197,94,.95);
  box-shadow: 0 0 10px rgba(34,197,94,.55);
}

/* Chat layout */
.chat-grid{ align-items:start; }
.chat-history{ display:flex; flex-direction:column; gap:10px; margin-top:10px; }
.chat-item{
  display:block;
  padding:12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.16);
}
.chat-item:hover{ background: rgba(255,255,255,.05); }
.chat-item.active{
  border-color: rgba(0,242,255,.25);
  background: rgba(0,242,255,.08);
}
.chat-item-top{ display:flex; justify-content:space-between; gap:10px; }
.chat-item-name{ font-weight:900; }
.chat-item-time{ font-size:11px; }
.chat-item-snippet{ margin-top:6px; font-size:12px; }

.chat-card{ padding:14px; }
.chat-header{
  padding-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,.08);
  margin-bottom:10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.deal-bar{
  margin-bottom:10px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(0,242,255,.18);
  background: rgba(0,242,255,.06);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.deal-title{ font-weight:900; }
.deal-sub{ font-size:12px; margin-top:2px; }
.tick-ok{
  color: rgba(34,197,94,.98);
  text-shadow: 0 0 10px rgba(34,197,94,.55), 0 0 24px rgba(34,197,94,.22);
  font-weight: 1000;
}
.tick-miss{ color: var(--muted); }
.deal-actions{ display:flex; align-items:center; gap:8px; }
.deal-actions .btn{ white-space:nowrap; }

.chat-title{ font-weight:1000; font-size:16px; }
.chat-presence{ display:flex; align-items:center; gap:8px; }
.presence-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  background: rgba(255,255,255,.18);
  box-shadow: 0 0 0 2px rgba(0,0,0,.35);
}
.presence-dot.on{
  background: rgba(33,197,93,1);
  box-shadow: 0 0 12px rgba(33,197,93,.85);
}
.presence-text{ font-size:12px; color: var(--muted); }

/* Chat peer online/offline */
.chat-presence{ display:inline-flex; align-items:center; gap:8px; white-space:nowrap; }
.presence-dot{
  width:8px; height:8px;
  border-radius:999px;
  background: rgba(148,163,184,.55);
  box-shadow: 0 0 8px rgba(148,163,184,.25);
}
.presence-dot.on{
  background: rgba(34,197,94,.95);
  box-shadow: 0 0 10px rgba(34,197,94,.55);
}

.chat-box{
  height: 460px;
  overflow-y:auto;
  padding:10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.14);
}

.msg{ max-width:80%; margin:8px 0; }
.msg.mine{ margin-left:auto; text-align:right; }
.msg.theirs{ margin-right:auto; }
.msg-body{
  display:inline-block;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
}
.msg.mine .msg-body{
  background: rgba(0,242,255,.10);
  border-color: rgba(0,242,255,.20);
}
.msg-time{
  font-size:11px;
  opacity:.7;
  margin-top:4px;
}

.chat-send{
  display:flex;
  gap:10px;
  margin-top:10px;
  align-items:stretch;
}
.chat-send input{
  flex:1;
  height:44px;
  min-width:0;
}
.chat-send button{
  height:44px;
  width:140px !important; /* global submit %100 kuralını ezer */
  flex:0 0 140px;
}

/* chat-send formu card içindeyken global %100 submit kuralını kesin iptal et */
.content .card form.chat-send button[type="submit"]{
  width:140px !important;
}

/* ================================
   CHAT: compose bar fix
   ================================ */

.chat-compose{
  display:flex;
  gap:12px;
  align-items:stretch;
  width:100%;
}

.chat-compose input,
.chat-compose textarea{
  flex:1 1 auto;
  min-width:0;              /* çok önemli: input/textarea'nın görünmesi için */
  height:44px;
}

.chat-compose textarea{
  height:44px;
  resize:none;
  padding-top:11px;
}

.chat-compose button,
.chat-compose .btn{
  flex:0 0 160px;           /* Gönder sabit genişlik */
  width:auto !important;    /* global submit %100 kuralını ezer */
}

/* Eğer sohbet formu card içindeyse global %100 kuralını özellikle burada iptal et */
.chat-compose button[type="submit"]{
  width:auto !important;
}

/* =====================
   Global Footer Signature
   ===================== */
.app-footer{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 10px 14px;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,.78);
  background: rgba(0,0,0,.35);
  border-top: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}

/* İçerik altta footer'a çarpmasın */
body{ padding-bottom: 64px; }

.auth-footer{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 10px 14px;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,.78);
  background: rgba(0,0,0,.25);
  border-top: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}

/* Bayi kartları (firma paneli) */
.profile-card{
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 0 0 1px rgba(0,242,255,.07), 0 16px 40px rgba(0,0,0,.35);
}
.profile-card-top{
  display: flex;
  gap: 14px;
  align-items: center;
}
.profile-card-avatar{
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.12);
  box-shadow: 0 0 14px rgba(0,242,255,.18);
}
.profile-card-name{
  font-weight: 900;
  letter-spacing: .5px;
  font-size: 16px;
}
.profile-card-about{
  color: rgba(255,255,255,.86);
  line-height: 1.45;
  min-height: 42px;
}

.link-neon{
  color: rgba(0,242,255,.95);
  text-decoration: none;
}
.link-neon:hover{ text-decoration: underline; }

/* =========================================
   Modals (firma: bayi alanları / fiyatlar)
   ========================================= */

.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.62);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}
.modal-backdrop.show{ display:flex; }

.modal{
  width: min(900px, 100%);
  max-height: 84vh;
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: 0 20px 70px rgba(0,0,0,.55);
}
.modal-header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,.22);
}
.modal-title{ font-weight: 900; }
.modal-body{ padding: 16px; }

