
/* Türkiye 81 İl Sohbeti — responsive layer */
:root{
  --tr-red:#e11d48;
  --tr-red-dark:#be123c;
  --tr-soft:#fff1f2;
  --tr-border:rgba(98,105,118,.16);
}
.tr-hero{margin:78px 0 22px;padding:28px 22px;border-radius:24px;background:linear-gradient(135deg,rgba(225,29,72,.12),rgba(255,255,255,.96));border:1px solid var(--tr-border);box-shadow:0 12px 40px rgba(15,23,42,.08)}
.dark .tr-hero{background:linear-gradient(135deg,rgba(225,29,72,.16),rgba(15,23,42,.75))}
.tr-hero h1{font-weight:800;letter-spacing:-.03em;font-size:clamp(1.8rem,4vw,3.1rem);margin:10px 0 6px;color:var(--tr-red)!important}
.dark .tr-hero h1{color:#fb7185!important}
.tr-hero p{max-width:720px;margin:0 auto;font-size:1.05rem}
.tr-hero-badge{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:7px 12px;background:var(--tr-soft);color:var(--tr-red-dark);font-weight:700;font-size:.82rem}
.tr-stats-row{display:flex;justify-content:center;gap:12px;margin-top:20px;flex-wrap:wrap}
.tr-stats-row>div{min-width:125px;text-align:center;padding:10px 16px;border-radius:14px;background:rgba(255,255,255,.72);border:1px solid var(--tr-border)}
.dark .tr-stats-row>div{background:rgba(15,23,42,.6)}
.tr-stats-row strong{display:block;font-size:1.25rem;color:var(--tr-red)}
.tr-stats-row span{display:block;font-size:.75rem;color:#475569}
.dark .tr-stats-row span{color:#b6c2d4}
.tr-toolbar{position:sticky;top:66px;z-index:20;margin:0 0 12px;padding:8px 0;background:var(--tblr-body-bg,white)}
.dark .tr-toolbar{background:#182433}
.tr-region-scroll{display:flex;gap:8px;overflow:auto;padding:2px 1px;scrollbar-width:none}
.tr-region-scroll::-webkit-scrollbar{display:none}
.tr-region-btn{white-space:nowrap;border:1px solid var(--tr-border);background:transparent;border-radius:999px;padding:8px 13px;font-size:.82rem;font-weight:600}
.tr-region-btn.active,.tr-region-btn:hover{background:var(--tr-red);border-color:var(--tr-red);color:#fff}
.tr-favorites-panel{margin:8px 0 18px;padding:15px;border:1px solid var(--tr-border);border-radius:16px;background:rgba(225,29,72,.045)}
.tr-favorites-list{display:flex;gap:8px;overflow:auto}
.tr-fav-chip{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;background:var(--tr-soft);color:var(--tr-red-dark);text-decoration:none;font-weight:600;white-space:nowrap}
.room-list-row{grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:14px}
.tr-city-card{height:100%;border-radius:18px;transition:transform .18s ease,box-shadow .18s ease;border:1px solid var(--tr-border)}
.tr-city-card:hover{transform:translateY(-3px)}
.tr-city-cover{height:92px;position:relative;display:flex;align-items:center;padding:15px;background:radial-gradient(circle at 85% 20%,rgba(225,29,72,.28),transparent 45%),linear-gradient(135deg,#7f1d1d,#e11d48)}
.tr-city-code{font-size:2rem;font-weight:900;color:#fff;opacity:.95}
.tr-city-online{position:absolute;bottom:10px;left:13px;right:13px;color:#fff;font-size:.72rem;display:flex;align-items:center;gap:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;z-index:3;max-width:calc(100% - 96px);background:rgba(15,23,42,.32);backdrop-filter:blur(3px);padding:3px 8px;border-radius:999px;width:fit-content}
.tr-city-online span{width:7px;height:7px;border-radius:50%;background:#4ade80;flex:none}
.tr-fav-btn{position:absolute;right:10px;top:10px;width:34px;height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;display:grid;place-items:center;z-index:4}
.tr-fav-btn.active{background:#fff;color:var(--tr-red)}
.tr-share-btn{position:absolute;right:50px;top:10px;width:34px;height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;display:grid;place-items:center;z-index:4}
.tr-city-icon{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:var(--tr-soft);color:var(--tr-red);flex:none}
.tr-city-region{font-size:.73rem;color:var(--tr-red);font-weight:700}
.tr-city-description{font-size:.82rem;line-height:1.45;margin-top:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tr-join-label{color:var(--tr-red);font-weight:700;font-size:.78rem}
.tr-mobile-nav,.tr-mobile-chat-nav{display:none}
@media(max-width:768px){
 body{padding-bottom:68px}
 /* Dokunma alanı düzeltmesi (WCAG / Apple-Google min 44x44px) */
 .auth-dd-mobile .btn-pill{min-height:44px;padding-top:0;padding-bottom:0;display:inline-flex;align-items:center}
 .navbar-toggler{min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center}
 .tr-region-btn{min-height:40px;display:inline-flex;align-items:center}
 /* Üst navbar sağdaki elemanların taşıp metnin kesilmesini engelle (ör. kayıt/giriş metni) */
 .navbar .container{flex-wrap:nowrap;gap:6px}
 .navbar-brand{flex:none;max-width:150px;overflow:hidden}
 .navbar-brand img.logo{max-height:30px;width:auto}
 .auth-dd-mobile, .lang-dd-mobile{flex:none}
 .auth-dd-mobile .btn-pill{white-space:nowrap;font-size:.82rem;padding-left:14px;padding-right:14px}
 .tr-hero{margin-top:62px;padding:22px 14px;border-radius:18px}
 .tr-hero p{font-size:.9rem}
 .tr-stats-row{gap:6px}
 .tr-stats-row>div{min-width:90px;padding:8px 10px}
 .tr-toolbar{top:55px}
 .homepage-filters{display:none}
 .room-list-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .tr-city-cover{height:74px;padding:11px}
 .tr-city-code{font-size:1.45rem}
 .tr-city-card .card-body{padding:12px}
 .tr-city-description{font-size:.76rem}
 .tr-city-icon{width:30px;height:30px}
 .tr-mobile-nav,.tr-mobile-chat-nav{display:flex;position:fixed;left:8px;right:8px;bottom:8px;height:58px;z-index:1030;border:1px solid var(--tr-border);border-radius:18px;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);box-shadow:0 10px 30px rgba(15,23,42,.18);align-items:center;justify-content:space-around}
 /* BT-FIX: Alt menünün z-index'i modal(1055)/offcanvas(1045)/toast(1090) katmanlarından
    DÜŞÜK tutulmalı. Eskiden 5000 idi ve bu, açılan HER modal/offcanvas/dropdown içindeki
    "Kaydet" ve diğer butonların üzerine binmesine, tıklanamaz hale gelmesine sebep
    oluyordu (profil düzenleme, ayarlar vb. formlar). Artık modal/offcanvas açıldığında
    alt menü otomatik olarak onların ARKASINDA kalıyor. */
 body.modal-open .tr-mobile-nav,body.modal-open .tr-mobile-chat-nav,
 body:has(.offcanvas.show) .tr-mobile-nav,body:has(.offcanvas.show) .tr-mobile-chat-nav{
   z-index:1 !important;
 }
 .dark .tr-mobile-nav,.dark .tr-mobile-chat-nav{background:rgba(24,36,51,.94)}
 .tr-mobile-nav-item,.tr-mobile-chat-nav button,.tr-mobile-chat-nav a{border:0;background:transparent;color:inherit;text-decoration:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:.62rem;min-width:54px;height:100%}
 .tr-mobile-nav-item i,.tr-mobile-chat-nav i{font-size:20px}
 .tr-mobile-nav-item:active,.tr-mobile-chat-nav button:active,.tr-mobile-chat-nav a:active{color:var(--tr-red)}
}
@media(max-width:390px){.room-list-row{grid-template-columns:1fr}.tr-stats-row>div:nth-child(3){display:none}}
@media(prefers-reduced-motion:reduce){.tr-city-card{transition:none}.tr-city-card:hover{transform:none}}

/* =========================================================
   TÜRKİYE 81 İL — MODERN UI / MOBİL STABİLİTE KATMANI
   ========================================================= */
:root{
  --tr-red:#d90429;
  --tr-red-2:#ef233c;
  --tr-red-dark:#9d0208;
  --tr-white:#fff;
  --tr-ink:#172033;
  --tr-muted:#64748b;
  --tr-border:rgba(15,23,42,.10);
  --tr-glass:rgba(255,255,255,.82);
  --tr-shadow:0 18px 50px rgba(15,23,42,.10);
  --tr-radius:22px;
}

/* Ana sayfada global overflow kilidini kaldır: mobil kaydırma takılmalarının ana nedeni. */
html:has(body.tr-site-shell), body.tr-site-shell{
  overflow-x:hidden !important;
  overflow-y:auto !important;
  min-height:100%;
  height:auto !important;
}
body.tr-site-shell{background:linear-gradient(180deg,#fff 0%,#fff7f7 48%,#fff 100%);color:var(--tr-ink);}
body.tr-site-shell::before{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;
  background:radial-gradient(circle at 10% 8%,rgba(217,4,41,.08),transparent 30%),radial-gradient(circle at 90% 18%,rgba(239,35,60,.06),transparent 28%);
}
/* BT: proje kararı gereği koyu tema kaldırıldı; .dark her zaman açık paletle render edilir. */
.dark body.tr-site-shell,.dark body.tr-chat-shell{background:#f6f7fb;color:#172033;}

.navbar-scroll{transition:background .25s ease,box-shadow .25s ease,backdrop-filter .25s ease;}
body.tr-site-shell .navbar-scroll.navbar-scrolled,
body.tr-site-shell .navbar-scroll{background:rgba(255,255,255,.86);backdrop-filter:blur(18px);box-shadow:0 5px 30px rgba(15,23,42,.07);}
.dark body.tr-site-shell .navbar-scroll{background:rgba(12,20,34,.86);}

.tr-hero{
  position:relative;overflow:hidden;margin:88px 0 24px!important;padding:42px 24px 30px!important;
  border:1px solid rgba(217,4,41,.12)!important;border-radius:28px!important;
  background:linear-gradient(135deg,rgba(217,4,41,.12),rgba(255,255,255,.94) 55%,rgba(239,35,60,.06))!important;
  box-shadow:var(--tr-shadow)!important;
}
.tr-hero::after{content:"";position:absolute;width:220px;height:220px;border-radius:50%;right:-80px;top:-100px;background:rgba(217,4,41,.10);animation:trFloat 7s ease-in-out infinite;}
.tr-hero-badge{position:relative;z-index:1;background:#fff1f2!important;color:var(--tr-red-dark)!important;box-shadow:0 8px 25px rgba(217,4,41,.08);}
.tr-hero h1{position:relative;z-index:1;font-size:clamp(2rem,5vw,3.7rem)!important;line-height:1.05!important;}
.tr-hero p{position:relative;z-index:1;color:var(--tr-muted);}
.tr-pwa-actions{position:relative;z-index:2;margin-top:18px;}

.tr-stats-row>div{background:rgba(255,255,255,.75)!important;border-color:rgba(217,4,41,.10)!important;box-shadow:0 7px 25px rgba(15,23,42,.05);transition:transform .2s ease,box-shadow .2s ease;}
.tr-stats-row>div:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(15,23,42,.09);}
.tr-stats-row strong{color:var(--tr-red)!important;}

.tr-toolbar{top:64px!important;padding:10px 0!important;background:rgba(255,255,255,.80)!important;backdrop-filter:blur(16px);}
.dark .tr-toolbar{background:rgba(12,20,34,.80)!important;}
.tr-region-scroll{padding:3px 2px 7px!important;}
.tr-region-btn{cursor:pointer;transition:all .2s ease;}
.tr-region-btn.active,.tr-region-btn:hover{background:linear-gradient(135deg,var(--tr-red),var(--tr-red-2))!important;border-color:transparent!important;box-shadow:0 8px 18px rgba(217,4,41,.22);}

.tr-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 22px;}
.tr-feature-grid article{display:flex;align-items:center;gap:12px;padding:16px;border:1px solid var(--tr-border);border-radius:18px;background:var(--tr-glass);box-shadow:0 10px 30px rgba(15,23,42,.05);transition:transform .2s ease,box-shadow .2s ease;}
.tr-feature-grid article:hover{transform:translateY(-3px);box-shadow:0 15px 35px rgba(15,23,42,.09);}
.tr-feature-grid i{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#fff1f2;color:var(--tr-red);font-size:22px;flex:none;}
.tr-feature-grid strong,.tr-feature-grid span{display:block}.tr-feature-grid strong{font-size:.9rem}.tr-feature-grid span{font-size:.73rem;color:var(--tr-muted);margin-top:2px;}

.room-list-row{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;}
.room-loop-link{display:block;min-width:0;text-decoration:none;}
.tr-city-card{overflow:hidden!important;border:1px solid rgba(15,23,42,.08)!important;border-radius:20px!important;background:rgba(255,255,255,.92)!important;box-shadow:0 8px 28px rgba(15,23,42,.06)!important;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease!important;}
.tr-city-card:hover{transform:translateY(-5px)!important;box-shadow:0 18px 40px rgba(15,23,42,.12)!important;border-color:rgba(217,4,41,.20)!important;}
.tr-city-cover{height:108px!important;background:radial-gradient(circle at 84% 15%,rgba(255,255,255,.25),transparent 20%),linear-gradient(135deg,#7f0000 0%,var(--tr-red) 58%,#ef233c 100%)!important;}
.tr-city-cover::before{content:"";position:absolute;inset:0;opacity:.13;background-image:radial-gradient(#fff 1px,transparent 1px);background-size:14px 14px;}
.tr-city-code{position:relative;z-index:1;text-shadow:0 3px 12px rgba(0,0,0,.2);}
.tr-city-online{z-index:2;}
.tr-city-card .card-body{padding:16px!important;}
.tr-city-description{color:#475569!important;}
.dark .tr-city-description{color:#cbd5e1!important;}
.tr-city-icon{box-shadow:0 5px 15px rgba(217,4,41,.08);}
.tr-join-label{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;}

/* Chat sayfası: uygulama içi kaydırma, klavye ve sabit editör stabilitesi. */
body.tr-chat-shell{width:100vw;max-width:100vw;overflow:hidden!important;overscroll-behavior:none;background:#f8fafc;}
body.tr-chat-shell #wrapper{height:100dvh;min-height:100dvh;max-height:100dvh;overflow:hidden!important;}
body.tr-chat-shell .main-panel{min-width:0;}
body.tr-chat-shell .chat-scroll{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable;}
body.tr-chat-shell .room-editor,body.tr-chat-shell .private-editor{flex:none;z-index:30;}
.tr-send-message{border:0;min-width:44px;height:38px;margin-left:8px;padding:0 13px;border-radius:12px;background:linear-gradient(135deg,var(--tr-red),var(--tr-red-2));color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;box-shadow:0 7px 18px rgba(217,4,41,.25);transition:transform .16s ease,box-shadow .16s ease;}
.tr-send-message:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(217,4,41,.30);}
.tr-send-message:active{transform:scale(.96);}
.tr-send-message i{font-size:18px;}

/* Admin */
body.layout-fluid{background:linear-gradient(180deg,#f8fafc,#fff)!important;}
body.layout-fluid .navbar-vertical{border-right:1px solid rgba(217,4,41,.10);box-shadow:8px 0 30px rgba(15,23,42,.04);}
body.layout-fluid .page-title{font-weight:850;letter-spacing:-.03em;}
body.layout-fluid .card{border-radius:18px!important;border-color:rgba(15,23,42,.08)!important;box-shadow:0 8px 30px rgba(15,23,42,.05);}

@keyframes trFloat{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(-15px,15px,0)}}

@media(max-width:1100px){
  .room-list-row{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  .tr-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:768px){
  html:has(body.tr-site-shell),body.tr-site-shell{width:100%;overflow-x:hidden!important;}
  body.tr-site-shell{padding-bottom:78px!important;}
  .tr-hero{margin:70px 0 16px!important;padding:28px 16px 22px!important;border-radius:22px!important;}
  .tr-hero h1{font-size:clamp(1.75rem,9vw,2.7rem)!important;}
  .tr-hero p{font-size:.88rem;line-height:1.55;}
  .tr-toolbar{top:55px!important;}
  .tr-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:14px;}
  .tr-feature-grid article{padding:11px;gap:9px;border-radius:15px;}
  .tr-feature-grid i{width:34px;height:34px;font-size:18px;border-radius:10px;}
  .tr-feature-grid strong{font-size:.78rem}.tr-feature-grid span{font-size:.63rem;}
  .room-list-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}
  .tr-city-cover{height:82px!important;}
  .tr-city-card .card-body{padding:11px!important;}
  .tr-city-card .card-title{font-size:.9rem!important;}
  .tr-city-description{font-size:.71rem!important;}
  .tr-city-online{font-size:.62rem;}
  .tr-send-message{width:42px;min-width:42px;padding:0;margin-left:5px;border-radius:11px;}
  .tr-send-label{display:none;}
  body.tr-chat-shell #wrapper{height:100dvh;min-height:100dvh;}
  body.tr-chat-shell .editor-container{margin:8px!important;padding:6px!important;border-radius:14px!important;}
  body.tr-chat-shell .editor-col{min-width:0;}
  body.tr-chat-shell .emoji-col{flex:none;}
  .tr-mobile-nav,.tr-mobile-chat-nav{left:7px!important;right:7px!important;bottom:max(7px,env(safe-area-inset-bottom))!important;height:60px!important;border-radius:18px!important;}
}
@media(max-width:390px){
  .room-list-row{grid-template-columns:1fr!important;}
  .tr-feature-grid{grid-template-columns:1fr 1fr;}
}
@media(prefers-reduced-motion:reduce){*{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important;}}

/* Son mobil stabilite düzeltmeleri */
@media(max-width:768px){
  body.tr-chat-shell .page-content-wrapper{height:100dvh!important;min-height:100dvh!important;}
  body.tr-chat-shell .main-panel{height:calc(100dvh - 50px)!important;min-height:0!important;}
  body.tr-chat-shell .chat-scroll{min-height:0!important;flex:1 1 auto!important;height:auto!important;overflow-y:auto!important;overflow-x:hidden!important;}
  body.tr-chat-shell .rightbar-wrapper{max-height:calc(100dvh - 50px)!important;}
  body.tr-chat-shell .sidebar-wrapper,.tr-chat-shell .room-bar{max-height:100dvh!important;}
  body.tr-chat-shell .room-editor{padding-bottom:2px;}
}
@media(max-width:768px){
  body.tr-chat-shell .room-editor,body.tr-chat-shell .private-editor{padding-bottom:64px!important;}
  body.tr-chat-shell .tr-mobile-chat-nav{background:rgba(255,255,255,.96)!important;}
  .dark body.tr-chat-shell .tr-mobile-chat-nav{background:rgba(12,20,34,.96)!important;}
}

/* KRİTİK DÜZELTME: Profil / Keşfet / Yönetim sekmeleri (chat mesaj listesi olmayan
   sekmeler) sabit yükseklikli (100dvh) kabuk içinde kalıyor ama kendi iç kaydırmaları
   yoktu -> içerik viewport'tan uzun olduğunda kesiliyor, kaydırılamıyor, "takılmış"
   gibi görünüyordu (özellikle Profil > Genel/Overview sekmesi). */
body.tr-chat-shell .page-content-wrapper{display:flex!important;flex-direction:column!important;}
body.tr-chat-shell .page-content-wrapper>.tab-content{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
}

/* BT-FIX: "Kaydet butonu alt mobil menünün arkasında kalıyor" kesin çözümü.
   Kök neden: Profil / Keşfet / Yönetim sekmeleri yukarıdaki kuralla kendi
   içinde kayan (overflow-y:auto) bir kutuydu, ama bu kutunun kendisi
   viewport'un en altına kadar (100dvh) uzanıyordu. Sabit (position:fixed)
   alt menü (.tr-mobile-chat-nav) bu kutunun ÜZERİNE, viewport'a göre binen
   ayrı bir katmandı. Sayfayı sonuna kadar kaydırsanız bile içeriğin son
   ~70-90px'i fiziksel olarak hep alt menünün arkasında kalıyordu — "Kaydet
   Değişiklikleri", "Deaktive Et" gibi kart-footer butonları tam bu bölgeye
   düşüyordu ve tıklanamıyordu. Çözüm: kayan kutunun EN ALTINA, alt menünün
   yüksekliği + boşluğu kadar padding-bottom ekleyerek içeriğin gerçekten
   menünün ÜSTÜNE çıkana kadar kaydırılabilmesini sağlamak. */
@media(max-width:768px){
  body.tr-chat-shell .page-content-wrapper>.tab-content{
    padding-bottom: calc(74px + env(safe-area-inset-bottom)) !important;
  }
  /* Profil/Keşfet/Yönetim içindeki kart-footer'lar (Kaydet/Deaktive Et vb.)
     ekstra can suyu için biraz daha fazla boşluk alsın. */
  #main-profile .card-footer,
  #main-explore .card-footer,
  #main-manage .card-footer{
    margin-bottom: 8px;
  }
}

/* =========================================================
   GİRİŞ / KAYIT SAYFALARI — Türkiye temalı cam (glass) tasarım
   ========================================================= */
body.auth-body{
  min-height:100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(225,29,72,.16), transparent 45%),
    radial-gradient(circle at 88% 92%, rgba(225,29,72,.12), transparent 40%),
    linear-gradient(160deg,#fff5f6 0%,#ffffff 45%,#fff1f2 100%);
  position:relative;
  overflow-x:hidden;
}
.dark body.auth-body{
  background:
    radial-gradient(circle at 12% 8%, rgba(225,29,72,.22), transparent 45%),
    radial-gradient(circle at 88% 92%, rgba(225,29,72,.16), transparent 40%),
    linear-gradient(160deg,#0b1220 0%,#111a2c 45%,#150c12 100%);
}
body.auth-body::before{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:0;
  background-image:radial-gradient(rgba(225,29,72,.10) 1.5px, transparent 1.5px);
  background-size:26px 26px;
  -webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,.5),transparent 70%);
  mask-image:linear-gradient(180deg,rgba(0,0,0,.5),transparent 70%);
}
body.auth-body .container-tight{
  position:relative;z-index:1;
  background:rgba(255,255,255,.62);
  backdrop-filter:blur(18px) saturate(160%);
  -webkit-backdrop-filter:blur(18px) saturate(160%);
  border:1px solid rgba(225,29,72,.14);
  border-radius:22px;
  padding:34px 30px!important;
  box-shadow:0 18px 50px rgba(15,23,42,.10), 0 2px 6px rgba(225,29,72,.06);
  animation:tr-auth-in .5s ease both;
}
.dark body.auth-body .container-tight{
  background:rgba(17,24,39,.62);
  border-color:rgba(225,29,72,.22);
}
@keyframes tr-auth-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
body.auth-body .btn-primary{
  background:linear-gradient(135deg,var(--tr-red),var(--tr-red-dark))!important;
  border:0!important;box-shadow:0 10px 24px rgba(225,29,72,.28);
  transition:transform .16s ease,box-shadow .16s ease;
}
body.auth-body .btn-primary:hover{transform:translateY(-1px);box-shadow:0 14px 30px rgba(225,29,72,.34);}
body.auth-body a{color:var(--tr-red-dark)}
body.auth-body .form-control:focus{border-color:var(--tr-red)!important;box-shadow:0 0 0 3px rgba(225,29,72,.12)!important;}
@media(prefers-reduced-motion:reduce){body.auth-body .container-tight{animation:none}}

/* BT: four-item mobile navigation stays structurally identical on every page. */
.tr-mobile-nav-item.active{color:var(--tr-red)!important;font-weight:700}
.tr-mobile-nav-item.active i{transform:translateY(-1px)}
.bt-admin-profile-link{border-color:rgba(217,4,41,.18)!important}
@media(max-width:768px){
  .bt-profile-actions{display:flex;flex-wrap:wrap;gap:8px}
  .bt-profile-actions .bt-profile-edit-btn{min-height:42px}
}

/* =========================================================
   BT FINAL — Türkiye kırmızı/beyaz grup sohbeti + sabit 4'lü menü
   ========================================================= */
@media(max-width:768px){
  body.tr-chat-shell{
    background:
      radial-gradient(circle at 15% 0%,rgba(217,4,41,.10),transparent 34%),
      radial-gradient(circle at 90% 100%,rgba(217,4,41,.05),transparent 38%),
      #f6f7fb !important;
  }
  body.tr-chat-shell .main-panel{
    background:
      linear-gradient(rgba(246,247,251,.92),rgba(246,247,251,.96)),
      var(--bg-image, none) center/auto repeat !important;
  }
  body.tr-chat-shell .room-editor,
  body.tr-chat-shell .private-editor{
    position:relative !important;
    z-index:35 !important;
    padding:0 0 calc(68px + env(safe-area-inset-bottom)) !important;
    background:transparent !important;
  }
  body.tr-chat-shell .editor-container{
    margin:8px 8px 0 !important;
    min-height:52px !important;
    border-radius:18px !important;
    background:rgba(255,255,255,.96) !important;
    border:1px solid rgba(217,4,41,.16) !important;
    box-shadow:0 8px 24px rgba(0,0,0,.18) !important;
  }
  body.tr-chat-shell .chat-scroll{
    padding-bottom:0 !important;
  }
  body.tr-chat-shell .messages{
    padding-bottom:24px !important;
  }
  body.tr-chat-shell .new-messages-indicator{
    bottom:calc(74px + env(safe-area-inset-bottom)) !important;
    z-index:34 !important;
  }
  .tr-mobile-chat-nav{
    left:7px !important;
    right:7px !important;
    bottom:max(7px,env(safe-area-inset-bottom)) !important;
    height:60px !important;
    z-index:1030 !important;
    border:1px solid rgba(217,4,41,.22) !important;
    border-radius:19px !important;
    background:rgba(255,255,255,.97) !important;
    backdrop-filter:blur(18px) saturate(150%) !important;
    -webkit-backdrop-filter:blur(18px) saturate(150%) !important;
    box-shadow:0 10px 32px rgba(0,0,0,.25) !important;
  }
  .dark .tr-mobile-chat-nav{
    background:rgba(17,25,38,.97) !important;
    border-color:rgba(217,4,41,.32) !important;
  }
  .tr-mobile-chat-nav .tr-mobile-nav-item{
    color:#475569 !important;
    text-decoration:none !important;
    display:flex !important;
    flex:1 1 25% !important;
    min-width:0 !important;
    height:100% !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:2px !important;
    font-size:.62rem !important;
  }
  .dark .tr-mobile-chat-nav .tr-mobile-nav-item{color:#cbd5e1 !important;}
  .tr-mobile-chat-nav .tr-mobile-nav-item i{font-size:21px !important;line-height:1 !important;}
  .tr-mobile-chat-nav .tr-mobile-nav-item.active,
  .tr-mobile-chat-nav .tr-mobile-nav-item:active{color:#d90429 !important;font-weight:800 !important;}
  .tr-mobile-chat-nav .tr-mobile-nav-item.active i{transform:translateY(-1px);}

  /* Mesaj balonları Türkiye temasına göre: gönderilen kırmızı, gelen beyaz/cam. */
  body.tr-chat-shell .cht.sent .message-data{
    background:linear-gradient(135deg,#d90429,#b00020) !important;
    color:#fff !important;
    border-color:rgba(255,255,255,.20) !important;
  }
  body.tr-chat-shell .cht.replies .message-data{
    background:rgba(255,255,255,.94) !important;
    color:#172033 !important;
    border-color:rgba(217,4,41,.12) !important;
  }
  body.tr-chat-shell .cht.sent .message-meta-inline{color:rgba(255,255,255,.78) !important;}
  body.tr-chat-shell .cht.replies .message-meta-inline{color:#64748b !important;}
}

/* Nav modal/offcanvas açıldığında onun arkasında kalmaya devam etsin. */
@media(max-width:768px){
  body.modal-open .tr-mobile-chat-nav,
  body:has(.offcanvas.show) .tr-mobile-chat-nav{z-index:1 !important;}
}

/* BT FINAL-2: Mobil sohbet editörü alt menünün ÜSTÜNDE sabitlenir. Böylece
   emoji/GIF/dosya/gönder butonları hiçbir zaman 4'lü navigasyonun altında kalmaz. */
@media(max-width:768px){
  body.tr-chat-shell .room-editor,
  body.tr-chat-shell .private-editor{
    position:fixed !important;
    left:0 !important;
    right:0 !important;
    bottom:calc(67px + env(safe-area-inset-bottom)) !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    z-index:1025 !important;
    pointer-events:none;
  }
  body.tr-chat-shell .room-editor > *,
  body.tr-chat-shell .private-editor > *{
    pointer-events:auto;
  }
  body.tr-chat-shell .room-editor .editor-container,
  body.tr-chat-shell .private-editor .editor-container{
    margin:8px !important;
  }
  body.tr-chat-shell .chat-scroll{
    padding-bottom:130px !important;
  }
  body.tr-chat-shell .messages{
    padding-bottom:110px !important;
  }
}


/* =========================================================
   BİZİM TOPRAKLAR — GLOBAL 2026 MODERN UI
   Tek tasarım dili: kırmızı/beyaz + koyu lacivert, cam yüzeyler,
   yumuşak radius, net hiyerarşi ve mobil-first kullanım.
   ========================================================= */
:root{
  --bt-red:#d90429;--bt-red-2:#ef233c;--bt-navy:#0b1626;--bt-ink:#172033;
  --bt-surface:rgba(255,255,255,.88);--bt-glass:rgba(255,255,255,.72);
  --bt-line:rgba(15,23,42,.09);--bt-shadow:0 16px 48px rgba(15,23,42,.09);
  --bt-radius:24px;
}
html{scroll-behavior:smooth}
body.tr-site-shell,body.tr-chat-shell{font-family:Poppins,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
body.tr-site-shell main{padding-bottom:20px}
body.tr-site-shell .container{max-width:1180px}
body.tr-site-shell .navbar-scroll{border-bottom:1px solid rgba(15,23,42,.06)!important}
body.tr-site-shell .navbar-brand{font-weight:800;letter-spacing:-.02em}
body.tr-site-shell .navbar .nav-link{border-radius:14px;transition:background .18s,transform .18s}
body.tr-site-shell .navbar .nav-link:hover{background:rgba(217,4,41,.07);transform:translateY(-1px)}

/* Homepage */
body.tr-site-shell .tr-hero{isolation:isolate}
body.tr-site-shell .tr-hero h1{letter-spacing:-.055em;text-wrap:balance}
body.tr-site-shell .tr-toolbar{border-bottom:1px solid var(--bt-line);box-shadow:0 8px 24px rgba(15,23,42,.04);border-radius:18px;padding:10px 12px!important}
body.tr-site-shell .room-list-row{display:grid!important;align-items:stretch}
body.tr-site-shell .tr-city-card{overflow:hidden;background:var(--bt-surface);box-shadow:0 10px 30px rgba(15,23,42,.055);border-color:rgba(15,23,42,.075)}
body.tr-site-shell .tr-city-card:hover{box-shadow:0 18px 42px rgba(217,4,41,.12);transform:translateY(-4px)}
body.tr-site-shell .tr-city-cover{background:linear-gradient(135deg,#8b071f 0%,#d90429 58%,#ef233c 100%);height:112px}
body.tr-site-shell .tr-city-card .card-body{padding:17px}
body.tr-site-shell .tr-city-card .card-title{font-size:1.04rem;font-weight:800;letter-spacing:-.02em}
body.tr-site-shell .tr-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 20px}
body.tr-site-shell .tr-feature-grid article{display:flex;align-items:center;gap:12px;padding:16px;border:1px solid var(--bt-line);border-radius:20px;background:rgba(255,255,255,.72);box-shadow:0 8px 24px rgba(15,23,42,.04)}
body.tr-site-shell .tr-feature-grid article>i{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:#fff1f2;color:var(--bt-red);font-size:21px;flex:none}
body.tr-site-shell .tr-feature-grid strong{display:block;font-size:.9rem}.tr-feature-grid span{font-size:.72rem;color:#64748b}
body.tr-site-shell .tr-faq-section{margin:34px 0 20px;padding:22px;border:1px solid var(--bt-line);border-radius:26px;background:rgba(255,255,255,.72);box-shadow:var(--bt-shadow)}
body.tr-site-shell .tr-faq-heading{font-size:1.45rem;font-weight:800;letter-spacing:-.03em;margin-bottom:14px}
body.tr-site-shell .tr-faq-accordion .accordion-item{border:1px solid var(--bt-line);border-radius:16px!important;overflow:hidden;margin-bottom:8px;background:rgba(255,255,255,.72)}
body.tr-site-shell .tr-faq-accordion .accordion-button{font-weight:700;background:transparent}

/* Generic pages/forms: make existing components look like the homepage */
body.tr-site-shell .card,body.tr-site-shell .alert,body.tr-site-shell .form-control,body.tr-site-shell .form-select,body.tr-site-shell .btn{border-radius:16px}
body.tr-site-shell .card{border-color:var(--bt-line);box-shadow:0 10px 30px rgba(15,23,42,.045)}
body.tr-site-shell .btn-primary{background:linear-gradient(135deg,var(--bt-red),var(--bt-red-2));border-color:transparent;box-shadow:0 8px 20px rgba(217,4,41,.18)}
body.tr-site-shell .btn-primary:hover{background:linear-gradient(135deg,#bd0525,#d90429);border-color:transparent;transform:translateY(-1px)}
body.tr-site-shell .form-control:focus,body.tr-site-shell .form-select:focus{border-color:rgba(217,4,41,.45);box-shadow:0 0 0 4px rgba(217,4,41,.08)}
body.tr-site-shell footer.footer{border-top:1px solid var(--bt-line);background:rgba(255,255,255,.55);backdrop-filter:blur(16px)}

/* Chat shell: desktop + mobile (BT: kaynak seviyesinde koyu/lacivert yüzeyler kaldırıldı) */
body.tr-chat-shell #wrapper{min-height:100dvh;background:#f6f7fb}
body.tr-chat-shell .main-panel{min-width:0}
body.tr-chat-shell .group-chat,body.tr-chat-shell .private-chat{min-width:0}
body.tr-chat-shell .messages{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
body.tr-chat-shell .cht .message-data{border-radius:20px!important;box-shadow:0 3px 14px rgba(15,23,42,.07);border:1px solid rgba(15,23,42,.06)}
body.tr-chat-shell .cht.sent .message-data{background:linear-gradient(135deg,#d90429,#b00020)!important;border-color:transparent!important}
body.tr-chat-shell .cht.replies .message-data{background:#ffffff!important}
body.tr-chat-shell .room-editor{background:rgba(255,255,255,.9)}

/* Fixed bottom navigation: always four items, always same position. */
@media(max-width:768px){
  body.tr-site-shell,body.tr-chat-shell{padding-bottom:78px!important}
  .tr-mobile-nav,.tr-mobile-chat-nav{display:flex!important;position:fixed!important;left:8px!important;right:8px!important;bottom:max(8px,env(safe-area-inset-bottom))!important;height:62px!important;z-index:1030!important;padding:4px!important;border-radius:22px!important;background:rgba(255,255,255,.93)!important;border:1px solid rgba(217,4,41,.14)!important;box-shadow:0 14px 38px rgba(15,23,42,.22)!important;backdrop-filter:blur(22px) saturate(150%)!important;-webkit-backdrop-filter:blur(22px) saturate(150%)!important}
  .dark .tr-mobile-nav,.dark .tr-mobile-chat-nav{background:rgba(12,22,36,.94)!important;border-color:rgba(255,255,255,.10)!important}
  .tr-mobile-nav-item{flex:1 1 25%!important;min-width:0!important;height:54px!important;border-radius:17px!important;gap:3px!important;font-size:.61rem!important;font-weight:600!important;color:#64748b!important}
  .tr-mobile-nav-item i{font-size:21px!important;line-height:1!important}
  .tr-mobile-nav-item.active,.tr-mobile-nav-item[aria-current="page"]{background:#fff1f2!important;color:var(--bt-red)!important;font-weight:800!important}
  .dark .tr-mobile-nav-item{color:#aebbd0!important}.dark .tr-mobile-nav-item.active{background:rgba(217,4,41,.15)!important;color:#ff667d!important}
  /* All chat controls stay above the nav. */
  body.tr-chat-shell .room-editor{position:fixed!important;left:0!important;right:0!important;bottom:calc(70px + env(safe-area-inset-bottom))!important;z-index:1020!important;padding:8px 8px 4px!important;background:rgba(255,255,255,.92)!important;backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important}
  body.tr-chat-shell .room-editor .editor-container{margin:0!important}
  body.tr-chat-shell .messages{padding-bottom:112px!important}
  body.tr-chat-shell .new-messages-indicator{bottom:calc(140px + env(safe-area-inset-bottom))!important;z-index:1021!important}
  body.tr-chat-shell .chat-actions,.chat-actions{z-index:1022!important}
  body.tr-chat-shell .attachments-container{z-index:1025!important}
  body.tr-site-shell .tr-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.tr-site-shell .tr-hero{margin-top:72px!important}
  body.tr-site-shell .tr-faq-section{padding:16px;border-radius:20px}
  body.tr-site-shell .tr-faq-heading{font-size:1.2rem}
}
@media(max-width:430px){
  body.tr-site-shell .tr-feature-grid{grid-template-columns:1fr}
  body.tr-site-shell .room-list-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.tr-site-shell .tr-city-card .card-body{padding:12px}
}

/* Profile editor: save bar is always reachable above the fixed nav. */
@media(max-width:768px){
  #profile-form .bt-save-btn{min-height:48px!important;flex:1 1 auto!important;font-weight:800!important}
  #city-profile{min-height:48px!important}
}

/* BT-CHAT: İl odalarında tek sohbet alanı. Kanal/"Genel Sohbet" listesi kullanıcıya gösterilmez. */
.channel-list,
.channel-list-wrap,
.channel-sidebar,
#channel-list,
.bt-channel-list,
.group-chat .channel-list { display:none !important; }

.channel-list-bottom { display:none !important; }
.channel-cat-actions, .channel-actions { display:none !important; }


/* ================================================================
   BT-FIX v9.19 — PROFİL (Genel / Düzenle / Güvenlik) MOBİL KAYDIRMA
   Kök neden (v9.17 + v9.18 denemeleri neden tutmadı):
   1) html,body{overflow:hidden;height:100%} (chatnet.css) sohbet kabuğunu
      kilitler. Sayfa (body) kaydırmaya çalışmak bu yüzden hiç çalışmaz.
   2) Profil yüksekliği JS'e / % / dvh zincirine bağlıydı; bu zincirin
      herhangi bir halkası (eski --vh, adres çubuğu, yatay-dikey geçişi)
      küçük kalınca sayfa yarıda kesilip altı BOŞ görünüyordu.
   3) v9.18 CSS'i turkiye.css içindeydi ama ?v=bt20260921v6 aynı kaldığı
      için telefon/LiteSpeed eski dosyayı sunmaya devam etti (sticky Kaydet
      çubuğu hâlâ görünüyordu). Bu sürümde önbellek anahtarı v7'ye çıktı.
   Çözüm: Profil sekmesi mobilde ekrana SABİTLENEN (position:fixed) ve
   KENDİ İÇİNDE kayan tek bir kutu olur. Yüksekliği tarayıcının görünen
   alanından (top:0/bottom:0) gelir; JS, dvh, %, --vh hiçbiri gerekmez.
   İçindeki her şey doğal yüksekliğinde akar; alt menü için boşluk bırakılır.
   ================================================================ */
@media (max-width: 768px){
  body.tr-chat-shell.sb-sidenav-toggled #main-profile.active{
    position:fixed !important;
    top:0 !important; right:0 !important; bottom:0 !important; left:0 !important;
    width:100% !important;
    height:auto !important; min-height:0 !important; max-height:none !important;
    margin:0 !important;
    padding:0 0 calc(var(--bt-mobile-nav-h, 64px) + 48px + env(safe-area-inset-bottom, 0px)) !important;
    box-sizing:border-box !important;
    display:block !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-y:contain;
    touch-action:pan-y;
    background:var(--bt-canvas, #f6f7fb);
    z-index:1000;
  }

  /* İçteki hiçbir kutu yükseklik/taşma kısıtı taşımasın: kaydırmayı yalnızca #main-profile yapar. */
  body.tr-chat-shell.sb-sidenav-toggled #main-profile.active > .page-content-wrapper,
  body.tr-chat-shell.sb-sidenav-toggled #main-profile.active #v-profile-tabContent,
  body.tr-chat-shell.sb-sidenav-toggled #main-profile.active #v-profile-tabContent > .tab-pane,
  body.tr-chat-shell.sb-sidenav-toggled #main-profile.active .bt-profile-edit-wrap,
  body.tr-chat-shell.sb-sidenav-toggled #main-profile.active #profile-form,
  body.tr-chat-shell.sb-sidenav-toggled #main-profile.active #password-form{
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    overflow:visible !important;
    flex:none !important;
  }
  body.tr-chat-shell.sb-sidenav-toggled #main-profile.active > .page-content-wrapper{
    display:block !important;
  }
  body.tr-chat-shell.sb-sidenav-toggled #main-profile.active #v-profile-tabContent{
    padding-bottom:0 !important;
  }

  /* Üst bar kaydırırken üstte kalsın. */
  body.tr-chat-shell.sb-sidenav-toggled #main-profile.active .navbar.topbar{
    position:sticky !important;
    top:0 !important;
    z-index:6;
  }

  /* Kaydet çubuğu formun gerçek sonunda, normal akışta durur; alanların üstüne binmez. */
  body.tr-chat-shell #main-profile #profile-form .bt-profile-savebar,
  body.tr-chat-shell #main-profile #password-form .bt-profile-savebar{
    position:static !important;
    top:auto !important; bottom:auto !important; left:auto !important; right:auto !important;
    transform:none !important;
    float:none !important;
    width:100% !important;
    margin:16px 0 0 !important;
    padding:14px 0 !important;
    background:transparent !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
  }
}

/* Masaüstü: v9.18'in masaüstünde sayfayı kilitleyen kuralları kaldırıldı;
   orijinal davranış (sekme içeriği kendi içinde kayar) geri geldi. */
