.navbar {
  background-color: #f5f5f5;
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
/* Bootstrap navbar içinde yalnızca kendi .navbar-nav'ı şekillendir */
.navbar .navbar-nav{
  display:flex;
  align-items:center;
  gap:14px;
  margin:0;
  padding:0;
}
/* Merkezleme Bootstrap'e bırakılıyor (container + ms-auto/ms-*) */

/* Dropdown görünürlüğü Bootstrap'e uygun olsun */
.navbar .dropdown-menu{
  position:absolute;
  display:none;
  flex-direction:column;
  gap:0;
}
.navbar .dropdown-menu.show{ display:block; }

.navbar a{ background:transparent !important; border-radius:10px; }
.navbar a:hover {
  color: #0d6efd;
  background: rgba(13,110,253,.06) !important;
}

.navbar .nav-link.active{
  color:#0d6efd !important;
  font-weight:700;
}

.chat-box {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #ccc;
  background-color: #fff;
  margin-bottom: 10px;
}

.chat-input-container {
  display: flex;
  gap: 10px;
}

.chat-input-container input {
  flex: 1;
  padding: 8px;
  font-size: 14px;
}

.chat-input-container button {
  padding: 8px 12px;
  background-color: #f15b5b;
  color: white;
  border: none;
  cursor: pointer;
}

/* Sadece site içi klasik nav listeleri (NAVBAR HARİÇ) */
nav:not(.navbar) ul{
  list-style:none;
  display:flex;
  gap:20px;
  padding:0;
}

/* Site içi klasik listeler için (navbar HARİÇ) */
nav:not(.navbar) ul li a{
  text-decoration:none;
  padding:10px 15px;
  background-color:#ffcce0;
  color:#333;
  border-radius:8px;
  font-weight:bold;
}


/* NAVBAR hizalama – tek satır yüksekliği */
.navbar .nav-link,
.navbar .dropdown-toggle{
  display:inline-flex;
  align-items:center;
  height:38px;
  line-height:1;
  padding:.4rem .6rem;
  font-weight:600;
}
.navbar .dropdown-menu .dropdown-item{
  display:block;
  height:auto;
  line-height:1.2;
  padding:.45rem .85rem;
}

/* Navbar dışındaki basit menüler için hover */
nav:not(.navbar) ul li a:hover{
  background-color:#ff99cc;
  color:#fff;
}

.header-container {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 30px;
}

.main-title {
  font-size: 38px;
  font-family: 'Brush Script MT', cursive;
  color: #e91e63;
}

.welcome-message {
  font-size: 18px;
  font-style: italic;
  color: #333;
  margin-top: 10px;
}

#psychologist-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.psychologist-card {
  background-color: #fff0f5;
  border: 2px solid #ff69b4;
  border-radius: 10px;
  padding: 15px;
  width: 220px;
  text-align: center;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}

.psychologist-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.psychologist-name {
  font-weight: bold;
  color: #d1006f;
  margin: 5px 0;
}

.psychologist-expertise {
  font-style: italic;
  color: #555;
  font-size: 14px;
}

#chat-container {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
}

#user-input {
  width: 100%;
  height: 80px;
  resize: none;
  padding: 10px;
  margin-bottom: 10px;
}

:root{
  --user-bg-start:#7aa8ff;   /* kullanıcı balonu gradyan */
  --user-bg-end:#3b82f6;
  --bot-bg:#f6f7fb;          /* asistan balonu */
  --bot-border:#e7eaf3;
  --text-dark:#1f2937;
  --pill-bg:#eef2ff;
  --pill-text:#374151;
  --shadow:0 4px 14px rgba(2,6,23,0.08);
  --nav-h: 64px;
}

.chat-wrap{display:flex;flex-direction:column;gap:12px;max-width:900px;margin:0 auto;padding:12px}
#chat-log{height:48vh;min-height:320px;max-height:62vh;overflow:auto;border:1px solid #e5e7eb;border-radius:12px;padding:12px;background:#fff}

/* ===== Ana Sayfa V1 – ek stiller ===== */
.hero-section {
  background: radial-gradient(100% 100% at 0% 0%, #f6f7ff 0%, #ffffff 60%);
}
.hero-photo {
  max-width: 300px;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-inline: auto;
}
.about-card { background: #f8fafc; border: 1px solid #eef2f7; border-radius: 12px; }
.about-list { margin: 0; padding-left: 1.2rem; }
.about-list li { margin-bottom: .4rem; }

.feature-card{
  border:1px solid rgba(0,0,0,.06);
  border-radius:1rem;
  transition:transform .2s ease, box-shadow .2s ease;
}
.feature-icon { font-size: 1.6rem; }

.cta-section { background: #f7f9ff; border-top: 1px solid #eef2f7; }


/* ===== Terapi UX eklentileri ===== */

/* Uyarı bandı */
.risk-alert {
  background: #fff1f0;
  color: #b42318;
  border: 1px solid #ffcdc7;
  border-radius: 10px;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* Chat alanı */
.chat-log {
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 1rem;
  height: 420px;
  overflow-y: auto;
}

/* Mesaj balonları */
.msg{display:flex;margin:8px 0}
.msg-user{justify-content:flex-end}
.msg-bot{justify-content:flex-start}
msg{ display:flex; margin:10px 0; }
.msg-ai { justify-content: flex-start; }

.bubble {
  position: relative;
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 14px;
  line-height: 1.45;
  box-shadow: var(--shadow);
  word-wrap: break-word;
}
.msg-user .bubble { background: #e7f1ff; border: 1px solid #cfe3ff; }
.msg-ai .bubble   { background: #f6f7fb; border: 1px solid #e8ebf3; }

/* Kullanıcı balonu */
.msg-user .bubble{
  background: linear-gradient(135deg, var(--user-bg-start), var(--user-bg-end));
  color: #fff;
  border: none;
}
.msg-user .bubble::after{
  content:"";
  position:absolute; right:-6px; bottom:10px;
  border-width:7px 0 7px 7px; border-style:solid;
  border-color: transparent transparent transparent var(--user-bg-end);
}

/* Asistan balonu */
.msg-bot .bubble{
  background: var(--bot-bg);
  color: var(--text-dark);
  border: 1px solid var(--bot-border);
}
.msg-bot .bubble::after{
  content:"";
  position:absolute; left:-6px; bottom:10px;
  border-width:7px 7px 7px 0; border-style:solid;
  border-color: transparent var(--bot-border) transparent transparent;
}

/* Duygu etiketi ve zaman */
.bubble .emo{
  display:inline-block; margin-left:6px;
  padding:2px 8px; border-radius:999px; font-size:12px;
  background: var(--pill-bg); color: var(--pill-text);
}
.bubble .ts{ margin-left:6px; font-size:12px; opacity:.7; }

/* Duygu bazlı renk (data-emotion ile) */
.emo[data-emotion="kaygı"]{ background:#fff1f2; color:#b91c1c; }
.emo[data-emotion="öfke"]{ background:#fee2e2; color:#dc2626; }
.emo[data-emotion="üzgün"]{ background:#e0e7ff; color:#4338ca; }
.emo[data-emotion="yalnızlık"]{ background:#fef3c7; color:#b45309; }
.emo[data-emotion="yorgunluk"]{ background:#e5e7eb; color:#374151; }
.emo[data-emotion="umut"]{ background:#dcfce7; color:#16a34a; }

/* Quick reply butonları */
#quick-replies{ gap:8px; }
#quick-replies .qr-btn{
  border-radius:999px; padding:6px 12px; font-size:13px;
  border:1px solid var(--bot-border); background:#fff; cursor:pointer;
  transition: transform .06s ease, box-shadow .06s ease;
}
#quick-replies .qr-btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow); }

/* 'Yaverin yazıyor...' hayaleti (opsiyonel) */
.msg-bot.typing .bubble{ font-style: italic; opacity:.8; }

/* Yazıyor göstergesi */
.typing { display: flex; align-items: center; gap: 4px; margin-top: .5rem; }
.dot {
  width: 6px; height: 6px; border-radius: 50%; background: #888;
  display: inline-block; animation: blink 1.2s infinite ease-in-out;
}
.dot:nth-child(2) { animation-delay: .2s; }
.dot:nth-child(3) { animation-delay: .4s; }
@keyframes blink {
  0%, 80%, 100% { opacity: .2; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

/* Yardımcı */
.d-none { display: none !important; }
.quick-replies .btn { margin-right: .4rem; margin-bottom: .4rem; }

.navbar .nav-link.active { font-weight: 700; color: #0d6efd !important; }
.navbar .nav-link {
  padding: .5rem .8rem;
  border-radius: 10px;
  transition: background-color .15s ease, color .15s ease, transform .12s ease;
}
.navbar .nav-link:hover {
  background: rgba(13, 110, 253, 0.06);
  color: #0d6efd !important;
}
.navbar-brand span{
  font-weight: 800;
  letter-spacing: -.02em;
}

.hero-gradient{
  background: radial-gradient(1000px 420px at 10% 0%, #eaf2ff 0%, #ffffff 60%);
}

.feature-card:hover{ transform:translateY(-2px); box-shadow:0 12px 28px rgba(0,0,0,.06); }

.icon-wrap{
  width:48px;height:48px;border-radius:12px;
  background:#eef5ff;color:#0d6efd;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:20px;
}

.cta-box{
  background: linear-gradient(135deg,#f8f9ff,#eef3ff);
  border:1px solid rgba(0,0,0,.06);
}

/* --- About (Sümeyye) zengin görünüm --- */
.about-section{
  background: radial-gradient(900px 380px at 95% -10%, #f5f7ff 0%, #ffffff 60%);
}

.stat-card { transition: transform .15s ease, box-shadow .15s ease; }

.stat-card:hover { transform: translateY(-2px); box-shadow: 0 0.5rem 1rem rgba(0,0,0,.08); }

.about-badges .badge{
  padding: .55rem .85rem;
  font-weight: 600;
}
.about-photo{
  border-radius: 1rem;
  box-shadow: 0 16px 36px rgba(0,0,0,.08);
}

/* About – görsel iyileştirmeler */
.about-points li { line-height: 1.5; }

.about-quote{
  background: #f8fafc;
  border-left: 4px solid #0d6efd;
  padding: 1rem 1.25rem;
  border-radius: .75rem;
  color: #334155;
}

.about-stats .stat{
  border: 1px solid rgba(0,0,0,.06);
  border-radius: .85rem;
  padding: .6rem .9rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
}
.about-stats .icon{
  width: 36px; height: 36px;
  border-radius: .6rem;
  background: #eef5ff;
  color: #0d6efd;
  display:inline-flex; align-items:center; justify-content:center;
}

/* ---- Global tipografi ---- */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; letter-spacing: .1px; }

h1,h2,h3 { line-height: 1.2; font-weight: 800; }

/* ---- About (Sümeyye) tipografi dengeleme ---- */
.about-section h2 { letter-spacing: .2px; }

/* İki paragrafı uyumlu boy/renk ile hizala */
.about-lead{
  font-size: clamp(1.125rem, 0.9vw + 1rem, 1.35rem); /* ~18–22px */
  font-weight: 500;
  color: #334155;            /* koyu gri-mavi */
  margin-bottom: .6rem;
}
.about-sub{
  font-size: clamp(1.05rem, 0.6vw + .95rem, 1.2rem);  /* ~17–19px */
  font-weight: 400;
  color: #475569;            /* bir ton daha açık */
  margin-top: .25rem;
}

.about-checks li { margin-bottom: .55rem; }
.about-checks i  { color: #16a34a; }

/* Smooth scroll + aktif menü alt çizgi */
html { scroll-behavior: smooth; }
.navbar .nav-link { position: relative; }
.navbar .nav-link.active::after {
  content:""; position:absolute; left:.75rem; right:.75rem; bottom:.35rem;
  height:2px; background:#0d6efd; border-radius:2px;
}

:root { --nav-h: 64px; }                /* navbar yüksekliği */
#about-sumeyye { scroll-margin-top: calc(var(--nav-h) + 16px); }
.navbar.is-sticky { box-shadow: 0 6px 24px rgba(0,0,0,.06); }
/* Küçük ekranlar için nefes alanı */
#about-sumeyye .stat-card .h4 { font-weight: 800; }

.section-title { position: relative; padding-bottom: .35rem; }
.section-title::after{
  content:""; position:absolute; left:0; bottom:-.1rem; height:3px; width:64px;
  background: linear-gradient(90deg,#0d6efd 0%, #8ab4ff 100%); border-radius:3px;
}

/* DARK */
[data-bs-theme="dark"] body { background-color:#0b1220; }
[data-bs-theme="dark"] .navbar.is-sticky { box-shadow: 0 6px 24px rgba(0,0,0,.4); }
[data-bs-theme="dark"] .hero-gradient{
  background: radial-gradient(1000px 420px at 10% 0%, #0f1b35 0%, #0b1220 60%);
}
[data-bs-theme="dark"] .feature-card{ border-color: rgba(255,255,255,.08); }
[data-bs-theme="dark"] .cta-box{
  background: linear-gradient(135deg,#0f172a,#0b1220);
  border-color: rgba(255,255,255,.08);
}
[data-bs-theme="dark"] .section-title::after{
  background: linear-gradient(90deg,#60a5fa 0%, #93c5fd 100%);
}

/* Sohbet balonlarında \n -> yeni satır olarak işlensin */
.assistant-message, .ai-text, .chat-message, .bot-bubble {
  white-space: pre-wrap;   /* \n’leri koru, satır sarma açık */
  word-wrap: break-word;
}

/* Kart görseli */
.card-img-top{ height:180px; object-fit:cover; }

/* Detay sayfası büyük görsel */
.product-hero{ max-height:360px; object-fit:cover; width:100%; }

/* Kadın El Emeği sayfası üst aksiyon barı */
.shop-action-bar{
  display:flex;
  justify-content:flex-end; /* sağa yasla */
  gap:12px;
  margin: 12px 0 16px;
}

/* Mobil floating action button (+) */
.shop-fab{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #0d6efd;   /* Bootstrap primary */
  color: #fff;
  box-shadow: 0 6px 12px rgba(13,110,253,.3);
  font-size: 22px;
  z-index: 1030;
}
.shop-fab:hover{ filter: brightness(0.95); }

/* --- Ürün Grid --- */
.products-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;                 /* kartlar arası boşluk */
}

/* --- Kart --- */
.product-card{
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

/* --- Görsel alanı (sabit oran) --- */
.product-thumb{
  position: relative;
  background: #f8f9fa;
  aspect-ratio: 4 / 3;          /* modern tarayıcılar */
  width: 100%;
  overflow: hidden;
}
.product-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;             /* farklı oranları şık kırpar */
  display: block;
}

/* Rozet */
.product-badge{
  position: absolute;
  top: .6rem;
  left: .6rem;
  padding: .35rem .55rem;
  font-size: .75rem;
  border-radius: 999px;
  background: #0d6efd;
  color: #fff;
}

/* Açıklamayı 2 satırda kes */
.clamp-2{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Fiyat */
.price .amount{ font-weight: 700; font-size: 1.05rem; }
.price .currency{ font-size: .9rem; opacity: .8; margin-left: .1rem; }

/* ===== HARD FIX: Ürün listesi her koşulda grid olsun ===== */
.shop-grid{
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 1.25rem !important;
  max-width: 1200px;          /* merkezde genişlik sınırı */
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100%;
}

/* .row içindeki .col paddinglerini sıfırla, grid item yap */
.shop-grid > [class*="col"]{
  padding: 0 !important;
  width: auto !important;
}

/* Ürün görseli yüksekliği sabitle – kırık görselde bile kutu şişmesin */
.shop-grid .card-img-top{
  height: 200px !important;
  object-fit: cover !important;
  display: block;
}

/* Yalnızca shop list kartı için sabit oranlı görsel */
/* Kart görseli hover-zoom + rozet */
.shop-card .thumb{
  position: relative;
  aspect-ratio: 4/3;
  background: #f8f9fa;
  overflow: hidden;
  border-top-left-radius: .375rem;
  border-top-right-radius: .375rem;
}

.shop-card .thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}

.shop-card:hover .thumb img{ transform: scale(1.04); }

/* İndirim rozeti */
.shop-card .sale-badge{
  position: absolute;
  top: .5rem;
  left: .5rem;
  background: #dc3545;  /* Bootstrap danger */
  color: #fff;
  padding: .3rem .5rem;
  font-size: .75rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(220,53,69,.25);
}

/* 2 satır açıklama (… ile) */
.clamp-2{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* mini bar */
.bars .bar-row{display:flex;align-items:center;gap:8px;margin:4px 0}
.bars .bar-label{width:54px;font-size:12px;color:#666}
.bars .bar{flex:1;height:10px;background:#eee;border-radius:6px;overflow:hidden}
.bars .bar-fill{display:block;height:100%}
.bars .bar-val{width:28px;text-align:right;font-size:12px;color:#333}

.mood-chip{
  display:inline-flex; align-items:center; gap:.35rem;
  padding:.2rem .5rem; border-radius:999px;
  font-size:.85rem; font-weight:600;
  border:1px solid var(--chip, #9e9e9e);
  color:var(--chip, #9e9e9e);
  background:color-mix(in srgb, var(--chip, #9e9e9e) 12%, transparent);
}
.mood-chip small{ font-weight:700; opacity:.9 }

/* Kartı esnek ve sabit oranlı kapakla kur */
.card-psych{display:flex;flex-direction:column;border:1px solid rgba(0,0,0,.06);border-radius:1rem;overflow:hidden;transition:transform .15s,box-shadow .15s;}
.card-psych:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(0,0,0,.06);}

/* Kapak görseli */
.card-psych .thumb{position:relative;background:#f8fafc;}
.card-psych .thumb::after{content:"";display:block;aspect-ratio:4/3;width:100%;}
.card-psych .thumb > img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* Görüntülü rozeti */
.card-psych .badge-vo{position:absolute;top:.5rem;right:.5rem}
.badge-soft{background:#eef5ff;color:#0d6efd;border-radius:9999px;padding:.15rem .5rem;font-size:.75rem}

/* Gövde */
.card-psych .body{padding:.9rem;display:flex;flex-direction:column;gap:.35rem;flex:1}
.card-psych .name{font-weight:600}
.card-psych .meta{color:#64748b;font-size:.85rem}
.card-psych .meta .chip{background:#f1f5f9;border:1px solid rgba(0,0,0,.06);border-radius:9999px;padding:.1rem .5rem}
.card-psych .price{font-weight:600;margin-top:auto}

/* Admin aksiyonları – hover’da belirginleşsin */
.card-psych .admin-actions{display:flex;gap:.4rem;margin-top:.5rem;opacity:0;transition:opacity .15s}
.card-psych:hover .admin-actions{opacity:1}

/* Tema sabit: açık mod */
.card-psych{border-color:rgba(0,0,0,.06)}
.card-psych .meta{color:#64748b}
.card-psych .meta .chip{background:#f1f5f9;border-color:rgba(0,0,0,.06)}

/* ---- Accessible Tag (Rozet) ---- */
.tags { display:flex; flex-wrap:wrap; gap:.5rem; row-gap:.6rem; }

.tag {
  display:inline-flex; align-items:center; gap:.4rem;
  font-size:.925rem; /* ~15px */
  line-height:1; font-weight:600;
  padding:.5rem .75rem; /* dokunmatik alan */
  border-radius:999px; border:1px solid transparent;
  letter-spacing:.2px; user-select:none;
  text-decoration:none; white-space:nowrap;
}

/* Yüksek kontrastlı renk seti */
.tag--engineer { background:#0B5ED7; color:#fff; }       /* mavi */
.tag--author   { background:#198754; color:#fff; }       /* yeşil */
.tag--founder  { background:#6C2BD9; color:#fff; }       /* mor */

/* Hover/Focus (klavye erişilebilir) */
.tag:focus-visible { outline:3px solid #ffd166; outline-offset:2px; }
.tag:hover { filter: brightness(1.05); }

/* Tema sabit: açık mod */
.tag--engineer { background:#0B5ED7; }
.tag--author   { background:#198754; }
.tag--founder  { background:#6C2BD9; }

/* Küçük ekranlarda satır sonu kırılması daha rahat */
@media (max-width:480px){
  .tag { font-size:1rem; padding:.55rem .85rem; }
}

/* === Kullanıcı Paneli Grid (içeriğe göre yükseklik) === */
.panel-grid{
  display:grid;
  grid-template-columns: 280px 1fr;          /* Sol Profil + Orta içerik */
  grid-auto-rows: min-content;               /* Satır yükseklikleri içeriğe göre */
  gap: 16px;
  align-items:start;
}

/* Kartların sabit yüksekliklerini iptal et */
.panel-grid .card,
.panel-grid .profile-card,
.panel-grid .quick-actions,
.panel-grid .content-body{
  height:auto !important;
  min-height:auto !important;
}

/* Alt bloklar üst satırı takiben gelsin */
.panel-bottom{ grid-column: 1 / -1; }        /* tüm genişlik */

/* Panelde kartlar içeriğe göre uzasın */
.col-lg-4 .card,
.col-lg-8 .card { height:auto !important; min-height:auto !important; }

/* içerik nefes alsın */
.container-lg, .container-xl {
  padding-bottom: 2rem;
}

/* kart başlık/çizgi aralıkları */
.card { border-radius: 14px; }

/* tabloda sayıları sağa hizala */
.table td:nth-child(2),
.table td:nth-child(3),
.table td:nth-child(4),
.table th:nth-child(2),
.table th:nth-child(3),
.table th:nth-child(4) {
  text-align: right;
}

/* 'Ödeme Yap' butonu için üst boşluk */
.pay-actions { margin-top: .75rem; }

/* === Kadın El Emeği – kompakt grid === */
/* Eskisi: #products-grid.shop-grid { ... } */
#products-grid{
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 320px)) !important;
  gap: 1.1rem !important;
  justify-content: center;
  align-content: start;
  margin-inline: auto;
}

/* Kart ölçüsü ve görünümü */
.product-card{
  width: 100%;
  max-width: 320px;               /* kart asla sonsuza kadar uzamasın */
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Kapak daha konsantre: sabit oran + makul yükseklik */
.product-thumb{
  aspect-ratio: 4 / 3;
  background: #f4f6fb;
}
.product-thumb img{
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Kart içi tipografi biraz sıkı */
.product-card .card-body{ padding: .9rem .95rem 1rem; display:flex; flex-direction:column; gap:.45rem; }
.product-title{ font-size: 1rem; font-weight: 700; margin: 0; }
.product-desc{ font-size: .9rem; line-height: 1.35; margin: 0; }

/* Aksiyonlar tek satır, taşma yok */
.product-actions{ display: inline-flex; align-items: center; gap: .4rem; }
.product-actions form{ margin: 0; }

@media (max-width: 576px){
  #products-grid.shop-grid{ grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important; gap: .9rem !important; }
}

/* ==== Kadın El Emeği – temiz grid ve kartlar ==== */

/* Sayfa içi maksimum genişlik & nefes */
.shop-page { max-width: 1200px; margin-inline: auto; padding: 0 12px 24px; }

/* Üst araç çubuğu ve arama */
.shop-toolbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; margin: 12px 0 10px;
}
.shop-search{ margin: 6px 0 8px; }

/* Grid — her zaman ortalı ve dengeli */
#products-grid,
.shop-grid{
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 320px)) !important;
  gap: 1.1rem !important;
  justify-content: center;   /* tek/az ürün varsa bile ortala */
  align-content: start;
}

/* Kart */
.product-card{
  width: 100%;
  max-width: 320px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover{ transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.07); }

/* Kapak */
.product-thumb{ aspect-ratio: 4 / 3; background: #f4f6fb; }
.product-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

/* İçerik */
.product-card .card-body{ padding: .9rem .95rem 1rem; display:flex; flex-direction:column; gap:.45rem; }
.product-title{ font-size: 1rem; font-weight: 700; }
.product-desc{ font-size: .9rem; line-height: 1.35; }

/* Fiyat */
.price .amount{ font-weight: 700; font-size: 1.05rem; }
.price .currency{ font-size: .9rem; opacity: .8; margin-left: .1rem; }

/* Aksiyonlar tek satır */
.product-actions{ display: inline-flex; align-items: center; gap: .4rem; }
.product-actions form{ margin: 0; }

/* Küçük ekran: daha kompakt kart genişliği */
@media (max-width: 576px){
  #products-grid,
  .shop-grid{
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: .9rem !important;
  }
}

/* ==== Kadın El Emeği – kartları toparla (kompakt & tok) ==== */

/* Grid aynı kalsın; kartları ortaya diziyoruz */
#products-grid,
.shop-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fill, minmax(250px, 300px))!important;
  gap:1.1rem!important;
  justify-content:center;
  align-content:start;
}

/* Kart: daha kompakt, daha tok gölge ve net kenar */
.product-card{
  width:100%;
  max-width:300px;                 /* hantal büyümesin */
  border-radius:12px;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 6px 18px rgba(0,0,0,.05);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s;
}
.product-card:hover{
  transform:translateY(-2px);
  border-color: rgba(13,110,253,.22);
  box-shadow:0 14px 30px rgba(13,110,253,.12);
}

/* Kapak: sabit yükseklik ver, “boşluk” hissini al */
.product-thumb{
  height:200px;                    /* aspect-ratio yerine net yükseklik */
  background:#f2f4f9;
}
.product-thumb img{
  width:100%; height:100%; object-fit:cover; display:block;
}

/* Gövde: sıkı tipografi + hafif ayıraç */
.product-card .card-body{
  padding:.85rem .9rem .95rem;
  display:flex; flex-direction:column; gap:.4rem;
  border-top:1px solid rgba(0,0,0,.04);
}

/* Başlık & açıklama: sık ve okunur */
.product-title{ font-size:.98rem; font-weight:700; letter-spacing:.1px; margin:0; }
.product-desc{  font-size:.87rem; line-height:1.35; color:#6b7280; margin:0; }

/* Fiyat belirgin */
.price .amount{ font-weight:800; font-size:1.06rem; }

/* Aksiyonlar: tek satır, daha küçük yastık */
.product-actions{ display:inline-flex; align-items:center; gap:.4rem; }
.product-actions .btn{ padding:.34rem .6rem; border-radius:8px; }
.product-actions .btn-outline-primary{ border-color:#d6e3ff; }

/* Küçük ekranlarda biraz daha sıkıştır */
@media (max-width:576px){
  .product-card{ max-width:270px; }
  .product-thumb{ height:180px; }
  #products-grid, .shop-grid{
    grid-template-columns:repeat(auto-fill, minmax(220px, 1fr))!important;
    gap:.9rem!important;
  }
}


.product-actions .btn{ line-height:1.1; padding:.36rem .62rem; }

.product-title{ display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }

/* === Ürünlerim – grid ve kart === */
.my-products-page .shop-toolbar{
  display:flex;justify-content:space-between;align-items:center;gap:12px;margin:8px 0 12px;
}

#my-products{
  display:grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 320px)) !important;
  gap: 1.1rem !important;
  justify-content:center;
  align-content:start;
  margin-inline:auto;
}

/* Kart, kapak ve rozetler (shop ile uyumlu) */
.owner-card{ border:1px solid rgba(0,0,0,.06); border-radius:14px; box-shadow:0 4px 16px rgba(0,0,0,.04); }
.owner-card .product-thumb{ aspect-ratio:4/3; background:#f4f6fb; position:relative; overflow:hidden; }
.owner-card .product-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

.status-badge{
  position:absolute; top:.6rem; left:.6rem; padding:.28rem .55rem;
  border-radius:999px; font-size:.75rem; font-weight:600; color:#fff;
  box-shadow:0 6px 16px rgba(0,0,0,.12);
}
.status-badge.is-approved{ background:#16a34a; }
.status-badge.is-pending { background:#f59e0b; }
.status-badge.is-rejected{ background:#ef4444; }

.owner-card .card-body{ padding:.9rem .95rem 1rem; display:flex; flex-direction:column; gap:.45rem; }
.product-title{ font-size:1rem; font-weight:700; margin:0; }
.product-desc{ font-size:.9rem; line-height:1.35; margin:0; }

/* Aksiyonlar kompakt ve tek satır */
.owner-actions{ display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; justify-content:flex-end; }
.owner-actions .btn{ white-space:nowrap; }

/* Mini form (stok/fiyat) */
.owner-actions .mini-form{ display:inline-flex; align-items:center; gap:.35rem; }
.owner-actions .mini-form .form-control{ width:84px; padding:.2rem .4rem; }

/* büyük ekranlarda bir tık daha sık grid */
@media (min-width:1400px){
  #my-products{ grid-template-columns:repeat(auto-fill,minmax(260px, 1fr)) !important; }
}

/* === Ürün Detay (clean layout) === */
.prod-wrap{max-width:1100px;margin:0 auto;padding-bottom:24px;}
.prod{
  display:grid; gap:20px;
  grid-template-columns: 1fr;
}
@media (min-width:992px){
  .prod{ grid-template-columns: 520px 1fr; }
  .prod .gallery{ position: sticky; top: 84px; }
}
.gallery .frame{
  border-radius:16px; overflow:hidden;
  background:linear-gradient(135deg,#f6f8ff,#eef2f8);
  border:1px solid #eef2f7;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
}
.gallery .frame .ratio{ width:100%; }
.gallery img{ width:100%; height:100%; object-fit:cover; display:block; }

.prod-title{ margin-bottom:.35rem; font-weight:800; letter-spacing:.2px; }
.prod-meta{ color:#6b7280; font-size:.925rem; }
.prod-price{ margin:.35rem 0 1rem; }
.prod-price .amount{ font-weight:800; font-size:clamp(1.4rem, 1vw + 1.2rem, 1.9rem); }
.prod-price .currency{ opacity:.8; margin-left:.1rem; }

.stock-badge{ font-size:.75rem; font-weight:700; border-radius:999px; padding:.25rem .55rem; }
.stock-ok{ background:#dcfce7; color:#166534; border:1px solid #bbf7d0; }
.stock-low{ background:#fef9c3; color:#854d0e; border:1px solid #fde68a; }
.stock-out{ background:#fee2e2; color:#991b1b; border:1px solid #fecaca; }

.qty-group .form-control{ max-width:110px; text-align:center; }
.prod-actions{ display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; }
.prod-admin{ display:flex; gap:.5rem; margin:.5rem 0 1rem; }
.prod-desc{ color:#475569; line-height:1.55; }

/* Ürün detay – kompakt */
.prod { grid-template-columns: 420px 1fr; gap: 16px; } /* 520px → 420px */
.gallery .frame { border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.gallery .frame .ratio { aspect-ratio: 3/2; }          /* 4:3 yerine 3:2, daha sığ */
.prod-title { margin-bottom: .25rem; font-size: clamp(1.1rem, .8vw + .95rem, 1.45rem); }
.prod-meta  { font-size: .9rem; }
.prod-price { margin: .25rem 0 .75rem; }
.prod-price .amount { font-size: clamp(1.15rem, .85vw + 1rem, 1.5rem); }
.stock-badge { padding: .2rem .5rem; font-size: .72rem; }

/* Buton & adet alanı daha sıkı */
.qty-group .btn { padding: .32rem .55rem; }
.qty-group .form-control { max-width: 90px; height: 36px; font-size: .95rem; }
.prod-actions { gap: .4rem; }
.prod-actions .btn { padding: .42rem .7rem; }

/* Büyük ekranın altında otomatik daha küçük olsun */
@media (max-width: 1200px){
  .prod { grid-template-columns: 380px 1fr; }
}

/* --- Reset page polish --- */
.auth-wrap{
  min-height: calc(100dvh - 120px);
  display:flex; align-items:center; justify-content:center;
  padding:24px;
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.04));
}

.auth-card{
  width:100%; max-width:460px;
  background:#fff;
  border:1px solid rgba(0,0,0,0.06);
  border-radius:18px;
  box-shadow:0 10px 30px rgba(0,0,0,0.08);
  padding:28px;
}

.auth-title{
  margin:0 0 6px; font-size:22px; font-weight:700;
}

.auth-subtitle{
  margin:0 0 18px; color:#666; font-size:14px;
}

.form-row{ margin-bottom:16px; }
.form-row label{ display:block; font-weight:600; margin-bottom:8px; }
.hint{ color:#888; font-size:12px; }

.pw-field{
  position:relative; display:flex; align-items:center;
}
.pw-field input{
  width:100%;
  padding:12px 42px 12px 12px;
  border:1px solid #dcdcdc; border-radius:12px; outline:none;
  font-size:14px; transition:border .15s ease, box-shadow .15s ease;
}
.pw-field input:focus{
  border-color:#5b8cff;
  box-shadow:0 0 0 3px rgba(91,140,255,0.2);
}

.pw-toggle{
  position:absolute; right:8px; top:50%; transform:translateY(-50%);
  border:none; background:transparent; cursor:pointer; padding:6px 8px;
  font-size:16px; line-height:1; opacity:.7; transition:opacity .15s;
}
.pw-toggle:hover{ opacity:1; }

.btn-primary{
  display:inline-block; padding:12px 16px; border:0; border-radius:12px;
  background:#2f66ff; color:#fff; font-weight:700; cursor:pointer;
  transition:transform .05s ease, filter .15s ease;
}
.btn-primary:hover{ filter:brightness(1.05); }
.btn-primary:active{ transform:translateY(1px); }

.w-100{ width:100%; }

/* ============ GLOBAL RESPONSIVE LAYER ============ */

/* 1) Akışkan layout temel kuralları */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
img, video, canvas, svg { max-width: 100%; height: auto; display: block; }
.container, .container-lg, .container-xl, .shop-page, .prod-wrap {
  width: min(100% - 24px, 1200px);
  margin-inline: auto;
}

/* 2) Tipografi akışkan ölçek */
:root{
  --step--1: clamp(.9rem, .2vw + .85rem, 1rem);
  --step-0 : clamp(1rem, .6vw + .95rem, 1.1rem);
  --step-1 : clamp(1.25rem, 1.2vw + 1rem, 1.6rem);
  --step-2 : clamp(1.5rem, 1.8vw + 1.1rem, 2rem);
}
body { font-size: var(--step-0); }
h1 { font-size: var(--step-2); }
h2 { font-size: var(--step-1); }
small, .hint { font-size: var(--step--1); }

/* 3) Navbar: mobil kırılım */
.navbar { position: sticky; top: 0; z-index: 100; }
.navbar .nav-toggle{
  display: none; background:#ffcce0; border:0; border-radius:8px;
  padding:8px 10px; font-weight:700; cursor:pointer;
}
/* Bootstrap navbar: desktop'ta yatay, mobilde tam kontrollü */
.navbar .navbar-nav{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
}

@media (max-width: 1199.98px){
  .navbar{
    padding: 8px 0;
  }

  .navbar .navbar-collapse{
    width: 100%;
    flex-basis: 100%;
  }

  .navbar .navbar-nav{
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 6px 0 0;
    margin: 0;
    width: 100%;
  }

  .navbar .nav-item{
    width: 100%;
  }

  .navbar .nav-link,
  .navbar .dropdown-toggle{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    white-space: normal;
    line-height: 1.25;
    text-align: left;
  }

  .navbar .dropdown-menu{
    position: static;
    width: 100%;
    margin-top: 4px;
  }
}


/* 4) Grid normalizasyonu (tüm kart sayfaları) */
.grid, .products-grid, .shop-grid, #products-grid, #my-products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 1rem !important;
  justify-content: center;
}
@media (min-width: 992px){
  .grid, .products-grid, .shop-grid, #products-grid, #my-products {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  }
}

/* 5) Form ve butonlar */
input[type="text"], input[type="email"], input[type="password"], textarea, select {
  width: 100%; max-width: 100%;
}
.button, .btn, #send-button { touch-action: manipulation; }

/* 6) Chat/therapy ortak: yükseklik ve yönelim uyarlaması */
#chat-log { height: 48vh; min-height: 300px; max-height: 66vh; }
.input-area { display:flex; gap:10px; align-items:flex-end; }
.input-area #user-input { flex:1; }
@media (max-width: 420px){
  .input-area { flex-direction: column; align-items: stretch; }
  #send-button { width: 100%; }
}

/* 7) Kartlar: çıtasız, eş yükseklik */
.card, .product-card, .owner-card, .card-psych {
  display:flex; flex-direction:column; height: 100%;
}

/* 8) Tablo taşması */
.table-wrap { width:100%; overflow-x:auto; }
.table-wrap table { min-width: 640px; }

/* 9) Sayfa başlık blokları – mobilde tek sütun */
.header, .header-container, .shop-toolbar, .prod-actions, .prod-admin {
  display:flex; flex-wrap:wrap; gap:.6rem; align-items:center;
  justify-content: space-between;
}
@media (max-width: 768px){
  .header, .header-container { flex-direction: column; align-items: flex-start; }
  .stats-link { width:100%; text-align:center; }
}

/* 10) Tema sabit: tüm cihazlarda açık mod */
.navbar ul { background: #ffffff; }
.table-wrap { scrollbar-color: auto; }

/* 11) Erişilebilir odak ve dokunma alanı */
a, button { outline-offset: 2px; }
@media (pointer: coarse){ .btn, .tag { padding: .6rem .9rem; } }
 
/* Eğer bazı sayfalarda nav altına ikinci bir admin şeridi basılıyorsa gizle */
.admin-toolbar,
.admin-actions,
.admin-actions-bar{ display:none !important; }

/* Navbar içeriği ile tekrar eden sayfa içi admin şeridini kapat */
.admin-inline-quickbar{ display:none !important; }

/* --- Terapi kota balonu --- */
.msg.msg-bot.msg-quota .quota-bubble {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.msg.msg-bot.msg-quota .quota-text {
  font-size: 14px;
  line-height: 1.4;
}

.quota-plans-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 4px 14px;               /* biraz daha kaliteli durması için */
  font-size: 12px;
  line-height: 1.1;

  min-width: unset;
  width: auto;

  border-radius: 9999px;
  background: #2563eb;             /* Mavi arka plan */
  color: #ffffff;                  /* Beyaz yazı */
  border: none;

  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25); /* hafif premium shadow */
  cursor: pointer;
  transition: all 0.2s ease;

  text-align: center;
}

.quota-plans-btn:hover {
  background: #1d4ed8;             /* daha koyu mavi */
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);     /* hafif kaldırma efekti */
}

.quota-plans-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.25);
}


/* Ortalamak için */
.quota-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;       /* butonu tam ortaya al */
  align-items: center;           /* dikey hizalama */
  margin-top: 12px;
  text-align: center;            /* metni ortala */
}

/* ===== MOBILE POLISH / FINAL ===== */

@media (max-width: 991.98px){
  html, body{
    overflow-x: hidden;
  }

  .container,
  .container-lg,
  .container-xl{
    width: min(100% - 20px, 1200px);
  }
}

@media (max-width: 767.98px){
  body{
    -webkit-text-size-adjust: 100%;
  }

  .btn,
  button,
  input,
  textarea,
  select{
    font-size: 16px !important;
  }

  .table-responsive{
    border-radius: 14px;
    overflow: auto;
  }

  .card,
  .modal-content{
    border-radius: 16px;
  }
}

@media (max-width: 575.98px){
  .container,
  .container-lg,
  .container-xl{
    width: min(100% - 16px, 1200px);
  }

  h1{
    font-size: clamp(1.7rem, 6vw, 2.2rem);
    line-height: 1.14;
  }

  h2{
    font-size: clamp(1.28rem, 5vw, 1.7rem);
  }

  .btn{
    min-height: 46px;
    border-radius: 12px;
  }
}

/* ===== TEMA ZORUNLU AÇIK MOD ===== */
:root,
html,
body{
  color-scheme: light !important;
}

html[data-bs-theme="dark"],
body[data-bs-theme="dark"],
:root[data-bs-theme="dark"]{
  color-scheme: light !important;
}

html[data-bs-theme="dark"] body{
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

html[data-bs-theme="dark"] .navbar,
body[data-bs-theme="dark"] .navbar{
  background: #ffffff !important;
  color: #0f172a !important;
}

html[data-bs-theme="dark"] .card,
html[data-bs-theme="dark"] .modal-content,
html[data-bs-theme="dark"] .dropdown-menu,
html[data-bs-theme="dark"] .list-group-item,
body[data-bs-theme="dark"] .card,
body[data-bs-theme="dark"] .modal-content,
body[data-bs-theme="dark"] .dropdown-menu,
body[data-bs-theme="dark"] .list-group-item{
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, .08) !important;
}

html[data-bs-theme="dark"] input,
html[data-bs-theme="dark"] textarea,
html[data-bs-theme="dark"] select,
body[data-bs-theme="dark"] input,
body[data-bs-theme="dark"] textarea,
body[data-bs-theme="dark"] select{
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, .14) !important;
}

/* ===== HOMEPAGE / NAVBAR FINAL RESPONSIVE FIX ===== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
}

@media (max-width: 767.98px){
  .hero-section .btn,
  .hero-gradient .btn,
  .cta-section .btn{
    width: 100%;
    min-height: 48px;
  }

  .hero-section .d-flex.gap-2,
  .hero-gradient .d-flex.gap-2{
    flex-direction: column;
    align-items: stretch !important;
  }
}

html, body{
  max-width: 100%;
  overflow-x: hidden;
}

/* [YAMA] Ana sayfa logo showcase mobil/desktop boyut sabitleme */
.logo-showcase{
  overflow: hidden;
}

.logo-showcase-card{
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.logo-showcase-img{
  display: block;
  width: min(280px, 70vw);
  max-width: 280px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

@media (max-width: 768px){
  .logo-showcase{
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
  }

  .logo-showcase-img{
    width: min(170px, 54vw);
    max-width: 170px;
  }

  .logo-showcase-card h3{
    font-size: 1.25rem;
  }

  .logo-showcase-card p{
    font-size: .95rem;
  }
}

/* [YAMA] Navbar logosu küçük, ana sayfa showcase logosu göz alıcı */
.navbar .navbar-brand-logo{
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  min-width: 42px !important;
  flex: 0 0 42px !important;
  object-fit: contain !important;
  padding: 2px !important;
  border-radius: 10px !important;
}

@media (max-width: 768px){
  .navbar .navbar-brand-logo{
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    min-width: 38px !important;
    flex-basis: 38px !important;
  }
}

.logo-showcase-img{
  width: 230px !important;
  max-width: 230px !important;
  height: auto !important;
}

@media (max-width: 768px){
  .logo-showcase-img{
    width: 190px !important;
    max-width: 190px !important;
  }
}

/* [YAMA] Logo ayrımı: navbar küçük, orta showcase kontrollü */
.navbar .brand-logo,
.navbar .navbar-brand-logo{
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  min-width: 42px !important;
  flex: 0 0 42px !important;
  object-fit: contain !important;
}

@media (max-width: 768px){
  .navbar .brand-logo,
  .navbar .navbar-brand-logo{
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    min-width: 38px !important;
    flex-basis: 38px !important;
  }
}

.logo-showcase .logo-showcase-img{
  display: block !important;
  width: 240px !important;
  max-width: 240px !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

@media (max-width: 768px){
  .logo-showcase .logo-showcase-img{
    width: 210px !important;
    max-width: 210px !important;
  }
}

/* [YAMA FINAL] Navbar logosu ve ana sayfa logo ayrımı */
.navbar img.navbar-brand-logo{
  width: 38px !important;
  height: 38px !important;
  max-width: 38px !important;
  min-width: 38px !important;
  flex: 0 0 38px !important;
  object-fit: contain !important;
}

.logo-showcase img.logo-showcase-img{
  width: 220px !important;
  max-width: 220px !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

@media (max-width: 768px){
  .navbar img.navbar-brand-logo{
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    min-width: 36px !important;
    flex-basis: 36px !important;
  }

  .logo-showcase img.logo-showcase-img{
    width: 200px !important;
    max-width: 200px !important;
  }
}

.weekly-insight-card{
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(250,245,255,.82));
  border: 1px solid rgba(124,58,237,.12);
}

.weekly-insight-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:14px;
}

.weekly-insight-head h3{
  margin:0;
}

.weekly-range{
  font-size:.76rem;
  font-weight:800;
  color:#7c3aed;
  background:rgba(124,58,237,.08);
  border:1px solid rgba(124,58,237,.12);
  padding:5px 9px;
  border-radius:999px;
  white-space:nowrap;
}

.weekly-summary-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:10px;
  margin:12px 0 14px;
}

.weekly-summary-grid > div{
  border:1px solid rgba(15,23,42,.07);
  border-radius:16px;
  padding:11px 10px;
  background:#fff;
}

.weekly-label{
  display:block;
  font-size:.72rem;
  color:#64748b;
  font-weight:800;
  margin-bottom:4px;
}

.weekly-summary-grid strong{
  display:block;
  color:#111827;
  font-size:.9rem;
  line-height:1.25;
}

.weekly-insight-text{
  color:#475569;
  font-size:.9rem;
  line-height:1.6;
  margin:0 0 14px;
}

.weekly-emotion-bars{
  display:flex;
  flex-direction:column;
  gap:9px;
  margin:12px 0;
}

.weekly-bar-row{
  display:grid;
  grid-template-columns:96px 1fr 42px;
  align-items:center;
  gap:9px;
  font-size:.78rem;
  font-weight:800;
  color:#334155;
}

.weekly-bar-track{
  height:8px;
  border-radius:999px;
  background:rgba(124,58,237,.08);
  overflow:hidden;
}

.weekly-bar-track i{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#8b5cf6,#ec4899);
}

.weekly-bar-row b{
  font-size:.76rem;
  color:#7c3aed;
  text-align:right;
}

.weekly-advice-list{
  margin:12px 0 0;
  padding-left:18px;
  color:#475569;
  font-size:.86rem;
  line-height:1.55;
}

@media (max-width: 768px){
  .weekly-summary-grid{
    grid-template-columns:1fr;
  }

  .weekly-bar-row{
    grid-template-columns:86px 1fr 38px;
  }
}

/* [YAMA] Haftalık Duygu Haritan - Premium Grafik UI */
.weekly-insight-card{
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(124,58,237,.16), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(236,72,153,.12), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,245,255,.92)) !important;
  border: 1px solid rgba(124,58,237,.16) !important;
}

.weekly-insight-card::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.52), transparent);
  transform: translateX(-120%);
  animation: weeklyShine 4.5s ease-in-out infinite;
  pointer-events:none;
}

@keyframes weeklyShine{
  0%, 55%{ transform: translateX(-120%); }
  100%{ transform: translateX(120%); }
}

.weekly-visual-grid{
  display:grid;
  grid-template-columns: 118px minmax(0,1fr);
  gap:14px;
  align-items:center;
  margin-top:12px;
}

.weekly-ring-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  padding:12px 10px;
  border-radius:18px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(124,58,237,.12);
}

.weekly-ring{
  --weekly-ring-value:0;
  width:82px;
  height:82px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:
    radial-gradient(circle closest-side, #fff 72%, transparent 73%),
    conic-gradient(#7c3aed calc(var(--weekly-ring-value) * 1%), rgba(124,58,237,.12) 0);
  box-shadow: 0 14px 28px rgba(124,58,237,.14);
}

.weekly-ring span{
  font-weight:900;
  color:#6d28d9;
  font-size:.95rem;
}

.weekly-ring-card small{
  text-align:center;
  color:#64748b;
  font-size:.7rem;
  line-height:1.35;
  font-weight:800;
}

.weekly-chart-title{
  font-size:.78rem;
  font-weight:900;
  color:#334155;
  margin-bottom:8px;
}

.premium-weekly-bar{
  animation: weeklyBarIn .45s ease both;
  animation-delay: var(--bar-delay, 0ms);
}

@keyframes weeklyBarIn{
  from{ opacity:0; transform:translateY(6px); }
  to{ opacity:1; transform:translateY(0); }
}

.weekly-bar-track{
  height:10px !important;
  background:rgba(124,58,237,.10) !important;
}

.weekly-bar-track i{
  background:linear-gradient(90deg,#7c3aed,#a855f7,#ec4899) !important;
  box-shadow:0 8px 20px rgba(124,58,237,.22);
}

.weekly-summary-grid > div{
  transition: transform .18s ease, box-shadow .18s ease;
}

.weekly-summary-grid > div:hover{
  transform: translateY(-2px);
  box-shadow:0 12px 24px rgba(124,58,237,.10);
}

.weekly-advice-list li{
  margin-bottom:6px;
}

@media (max-width:768px){
  .weekly-visual-grid{
    grid-template-columns:1fr;
  }

  .weekly-ring-card{
    flex-direction:row;
    justify-content:flex-start;
  }

  .weekly-ring{
    width:70px;
    height:70px;
    flex:0 0 70px;
  }
}

/* [YAMA] Haftalık Duygu Haritan - bar görünürlük fix */
.weekly-visual-grid{
  grid-template-columns: 118px minmax(220px, 1fr) !important;
  align-items: stretch !important;
}

.weekly-emotion-bars{
  display: grid !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 72px;
}

.weekly-bar-row{
  display: grid !important;
  grid-template-columns: 92px minmax(90px, 1fr) 42px !important;
  width: 100% !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.weekly-bar-track{
  width: 100% !important;
  min-width: 80px !important;
}

.weekly-bar-track i{
  min-width: 8px;
}

@media (max-width:768px){
  .weekly-visual-grid{
    grid-template-columns: 1fr !important;
  }

  .weekly-bar-row{
    grid-template-columns: 84px minmax(90px, 1fr) 38px !important;
  }
}

/* [YAMA] DuyguMap = Chat + AI Dashboard */
.weekly-ai-dashboard{
  display:grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap:12px;
  margin-top:14px;
}

.weekly-ai-card,
.weekly-radar-section{
  position:relative;
  border:1px solid rgba(124,58,237,.13);
  border-radius:18px;
  background:rgba(255,255,255,.72);
  padding:13px;
  box-shadow:0 12px 24px rgba(124,58,237,.07);
}

.weekly-ai-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}

.weekly-ai-card-head span{
  font-size:.82rem;
  font-weight:950;
  color:#111827;
}

.weekly-ai-card-head small{
  font-size:.68rem;
  font-weight:900;
  color:#7c3aed;
  background:rgba(124,58,237,.08);
  border:1px solid rgba(124,58,237,.10);
  border-radius:999px;
  padding:5px 8px;
}

.weekly-area-chart{
  height:120px;
  display:flex;
  align-items:flex-end;
  gap:8px;
  padding:8px 2px 0;
}

.weekly-area-col{
  flex:1;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
}

.weekly-area-col span{
  width:100%;
  height:var(--h);
  min-height:18px;
  border-radius:999px 999px 12px 12px;
  background:linear-gradient(180deg,#c084fc,#7c3aed);
  box-shadow:0 12px 22px rgba(124,58,237,.18);
  animation:weeklyColumnRise .55s ease both;
}

.weekly-area-col small{
  font-size:.66rem;
  color:#64748b;
  font-weight:900;
}

@keyframes weeklyColumnRise{
  from{height:10%; opacity:.3;}
  to{height:var(--h); opacity:1;}
}

.weekly-score-grid{
  display:grid;
  gap:10px;
}

.weekly-score-item{
  padding:9px 10px;
  border-radius:14px;
  background:rgba(248,250,252,.92);
  border:1px solid rgba(15,23,42,.06);
}

.weekly-score-top{
  display:flex;
  justify-content:space-between;
  gap:8px;
  margin-bottom:7px;
  font-size:.74rem;
  font-weight:950;
  color:#334155;
}

.weekly-score-top b{
  color:#6d28d9;
}

.weekly-score-track{
  height:7px;
  border-radius:999px;
  background:rgba(124,58,237,.10);
  overflow:hidden;
}

.weekly-score-track i{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#7c3aed,#ec4899);
}

.weekly-radar-section{
  margin-top:12px;
  min-height:220px;
}

.weekly-radar-chart{
  position:relative;
  height:170px;
  display:grid;
  place-items:center;
  overflow:hidden;
}

.weekly-radar-chart::before{
  content:"";
  width:112px;
  height:112px;
  border-radius:50%;
  background:
    radial-gradient(circle, rgba(124,58,237,.18) 0 2px, transparent 3px),
    repeating-radial-gradient(circle, rgba(124,58,237,.10) 0 1px, transparent 1px 24px);
  border:1px solid rgba(124,58,237,.13);
}

.weekly-radar-chart::after{
  content:"";
  position:absolute;
  width:74px;
  height:74px;
  border-radius:50%;
  background:linear-gradient(135deg, rgba(124,58,237,.28), rgba(236,72,153,.20));
  clip-path:polygon(50% 0%, 95% 30%, 80% 90%, 20% 90%, 5% 30%);
  filter:drop-shadow(0 12px 22px rgba(124,58,237,.18));
}

.weekly-radar-point{
  position:absolute;
  left:50%;
  top:50%;
  transform:
    rotate(var(--angle))
    translate(var(--radius))
    rotate(calc(var(--angle) * -1));
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:2px;
  max-width:82px;
  text-align:center;
  z-index:2;
}

.weekly-radar-point span{
  font-size:.65rem;
  font-weight:950;
  color:#334155;
  line-height:1.15;
}

.weekly-radar-point b{
  font-size:.62rem;
  color:#7c3aed;
  background:#fff;
  border:1px solid rgba(124,58,237,.12);
  border-radius:999px;
  padding:2px 6px;
}

@media (max-width:768px){
  .weekly-ai-dashboard{
    grid-template-columns:1fr;
  }

  .weekly-radar-section{
    min-height:200px;
  }
}

/* [YAMA] AI Dashboard iç doluluk fix */
.weekly-score-grid{
  display:grid !important;
  grid-template-columns:1fr 1fr;
  gap:10px !important;
}

.weekly-score-item small{
  display:block;
  margin-top:6px;
  font-size:.66rem;
  color:#64748b;
  font-weight:800;
}

.weekly-area-col span{
  position:relative;
  display:flex !important;
  align-items:flex-start;
  justify-content:center;
  padding-top:6px;
}

.weekly-area-col span b{
  font-size:.62rem;
  color:#fff;
  font-weight:950;
}

.weekly-radar-core{
  position:relative;
  width:170px;
  height:170px;
  display:grid;
  place-items:center;
}

.weekly-radar-core::before{
  content:"";
  width:120px;
  height:120px;
  border-radius:50%;
  background:
    repeating-radial-gradient(circle, rgba(124,58,237,.12) 0 1px, transparent 1px 24px);
  border:1px solid rgba(124,58,237,.14);
}

.weekly-radar-core::after{
  content:"";
  position:absolute;
  width:78px;
  height:78px;
  border-radius:30px;
  background:linear-gradient(135deg, rgba(124,58,237,.28), rgba(236,72,153,.22));
  clip-path:polygon(50% 0%, 95% 30%, 80% 90%, 20% 90%, 5% 30%);
}

.weekly-radar-point{
  z-index:3 !important;
}

@media (max-width:768px){
  .weekly-score-grid{
    grid-template-columns:1fr;
  }
}

/* [YAMA] AI Skorları görünürlük kesin fix */
.weekly-score-card{
  min-height: 150px !important;
}

.weekly-score-grid{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:10px !important;
  opacity:1 !important;
  visibility:visible !important;
}

.force-visible-score,
.weekly-score-item{
  display:block !important;
  opacity:1 !important;
  visibility:visible !important;
  background:#fff !important;
  border:1px solid rgba(124,58,237,.12) !important;
  box-shadow:0 8px 18px rgba(124,58,237,.06) !important;
}

.weekly-score-top span,
.weekly-score-top b,
.weekly-score-item small{
  opacity:1 !important;
  visibility:visible !important;
}

.weekly-score-track{
  display:block !important;
  width:100% !important;
  height:8px !important;
}

.weekly-score-track i{
  display:block !important;
  min-width:8px !important;
}

@media (max-width:768px){
  .weekly-score-grid{
    grid-template-columns:1fr !important;
  }
}

/* [YAMA] Radar taşma fix + premium hazırlık */
.premium-pill{
  background:linear-gradient(135deg, rgba(124,58,237,.12), rgba(236,72,153,.10)) !important;
  color:#6d28d9 !important;
  border:1px solid rgba(124,58,237,.16) !important;
}

.weekly-radar-section{
  overflow:hidden !important;
}

.weekly-radar-chart{
  height:auto !important;
  min-height:230px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:14px !important;
  overflow:hidden !important;
  padding:14px 8px 8px !important;
}

.weekly-radar-chart::before,
.weekly-radar-chart::after{
  display:none !important;
}

.weekly-radar-core{
  position:relative !important;
  width:138px !important;
  height:138px !important;
  display:grid !important;
  place-items:center !important;
  margin:0 auto !important;
  overflow:visible !important;
}

.weekly-radar-orbit{
  position:absolute;
  inset:0;
  border-radius:50%;
  background:
    radial-gradient(circle, rgba(124,58,237,.18) 0 2px, transparent 3px),
    repeating-radial-gradient(circle, rgba(124,58,237,.13) 0 1px, transparent 1px 24px);
  border:1px solid rgba(124,58,237,.14);
}

.weekly-radar-shape{
  position:absolute;
  width:82px;
  height:82px;
  border-radius:28px;
  background:linear-gradient(135deg, rgba(124,58,237,.30), rgba(236,72,153,.20));
  clip-path:polygon(50% 0%, 95% 30%, 80% 90%, 20% 90%, 5% 30%);
  filter:drop-shadow(0 14px 24px rgba(124,58,237,.18));
}

.weekly-radar-point{
  display:none !important;
}

.weekly-radar-legend{
  width:100%;
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:8px;
}

.weekly-radar-legend span{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  padding:8px 9px;
  border-radius:14px;
  background:#fff;
  border:1px solid rgba(124,58,237,.11);
  color:#334155;
  font-size:.68rem;
  font-weight:900;
  min-width:0;
}

.weekly-radar-legend span i{
  width:7px;
  height:7px;
  border-radius:999px;
  background:linear-gradient(135deg,#7c3aed,#ec4899);
  flex:0 0 7px;
}

.weekly-radar-legend span b{
  color:#7c3aed;
  font-size:.66rem;
  flex-shrink:0;
}

@media (max-width:768px){
  .weekly-radar-chart{
    min-height:260px !important;
  }

  .weekly-radar-legend{
    grid-template-columns:1fr 1fr;
  }
}

/* [YAMA] Premium Lock UI */

/* Apple Review: premium/ödeme kilidi kapalı */
.premium-lock-overlay,
.account-premium-lock,
.premium-upgrade-btn{
  display:none !important;
}

.premium-feature.is-locked > :not(.premium-lock-overlay){
  filter:none !important;
  opacity:1 !important;
  pointer-events:auto !important;
  user-select:auto !important;
}

.premium-feature{
  position:relative;
}

.premium-feature.is-locked{
  overflow:hidden;
}

.premium-feature.is-locked > :not(.premium-lock-overlay){
  filter: blur(5px);
  opacity:.38;
  pointer-events:none;
  user-select:none;
}

.premium-lock-overlay{
  position:absolute;
  inset:0;
  z-index:20;
  display:grid;
  place-items:center;
  padding:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,.86));
  backdrop-filter: blur(2px);
}

.premium-lock-box{
  width:min(360px, 92%);
  text-align:center;
  border-radius:22px;
  padding:18px;
  background:#fff;
  border:1px solid rgba(124,58,237,.18);
  box-shadow:0 22px 55px rgba(124,58,237,.18);
}

.premium-lock-box strong{
  display:block;
  color:#111827;
  font-size:1rem;
  font-weight:950;
  margin-bottom:6px;
}

.premium-lock-box span{
  display:block;
  color:#64748b;
  font-size:.84rem;
  line-height:1.45;
  margin-bottom:12px;
}

.premium-upgrade-btn{
  border:0;
  border-radius:999px;
  padding:10px 14px;
  background:linear-gradient(135deg,#7c3aed,#ec4899);
  color:#fff;
  font-weight:950;
  font-size:.84rem;
  box-shadow:0 12px 25px rgba(124,58,237,.22);
}

.account-premium-lock{
  border-radius:16px;
}

@media (max-width:768px){
  .premium-lock-box{
    padding:15px;
  }
}

/* [YAMA] Dinamik acil destek kişileri */
.emergency-contact-list{
  display:grid;
  gap:10px;
}

.emergency-contact-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px;
  border:1px solid rgba(15,23,42,.10);
  border-radius:14px;
  background:#fff;
}

.emergency-contact-item strong{
  color:#111827;
}

.emergency-contact-item .btn{
  width:auto !important;
  min-width:64px;
}

/* =========================================================
   EtheriaX Community Hub V2 UI
   ========================================================= */

.community-shell{
  max-width: 1120px;
}

.community-ticket-hero{
  margin-bottom: 22px;
}

.community-back-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
  color: #475569;
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 16px;
  box-shadow: 0 8px 18px rgba(15,23,42,.04);
}

.community-back-link:hover{
  color: #0d6efd;
  border-color: rgba(13,110,253,.25);
  background: rgba(13,110,253,.04);
}

.community-ticket-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.community-ticket-head h1{
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -.04em;
}

.community-ticket-head p{
  margin: 0;
  color: #64748b;
  max-width: 760px;
  line-height: 1.7;
}

.community-mini-kicker{
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(13,110,253,.10);
  color: #0d6efd;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 10px;
}

.community-ticket-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.community-ticket-meta span{
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: #eef2ff;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.community-ticket-meta .is-status{
  background: #dcfce7;
  color: #166534;
}

.community-admin-info{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  font-weight: 700;
}

.community-chat-card,
.community-compose-card,
.community-admin-compose{
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(15,23,42,.06);
  padding: 22px;
}

.community-card-title{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 18px;
  letter-spacing: -.03em;
}

.community-card-title i{
  color: #0d6efd;
}

.community-chat-timeline{
  display: grid;
  gap: 16px;
}

.community-msg{
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.community-msg.is-user{
  flex-direction: row-reverse;
}

.community-avatar{
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: #eef2ff;
  color: #0d6efd;
  box-shadow: 0 8px 18px rgba(15,23,42,.05);
}

.community-msg.is-admin .community-avatar{
  background: #ecfdf5;
  color: #15803d;
}

.community-msg.is-internal .community-avatar{
  background: #fef3c7;
  color: #92400e;
}

.community-bubble{
  max-width: min(760px, calc(100% - 56px));
  padding: 16px 17px;
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,.08);
  background: #f8fafc;
  color: #0f172a;
}

.community-msg.is-user .community-bubble{
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  border-color: transparent;
}

.community-msg.is-user .community-bubble .community-bubble-head span{
  color: rgba(255,255,255,.78);
}

.community-msg.is-user .community-bubble .community-visibility{
  color: rgba(255,255,255,.78);
}

.community-msg.is-admin .community-bubble{
  background: #f8fafc;
}

.community-msg.is-internal .community-bubble{
  background: #fffbeb;
  border-color: #fde68a;
}

.community-bubble-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.community-bubble-head strong{
  font-size: 14px;
  font-weight: 900;
}

.community-bubble-head span{
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.community-bubble-body{
  line-height: 1.7;
  word-break: break-word;
}

.community-visibility{
  margin-top: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.community-empty-state{
  padding: 18px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px dashed rgba(15,23,42,.14);
  color: #64748b;
  font-weight: 700;
}

.community-compose-card{
  margin-top: 22px;
}

.community-compose-card h4,
.community-admin-compose h4{
  font-weight: 900;
  margin-bottom: 14px;
}

.community-compose-textarea{
  border-radius: 18px !important;
  min-height: 140px;
}

.community-admin-layout{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.community-admin-compose{
  position: sticky;
  top: 92px;
}

.community-checks{
  display: grid;
  gap: 10px;
}

.community-checks label{
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px;
  background: #f8fafc;
  font-weight: 700;
  color: #334155;
}

.community-public-note{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 14px;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 700;
  font-size: 13px;
}

.community-public-updates{
  border-top: 1px solid rgba(15,23,42,.08);
  padding-top: 12px;
}

.community-public-updates-title{
  font-size: 13px;
  font-weight: 900;
  color: #15803d;
  margin-bottom: 10px;
}

.community-public-update{
  padding: 12px;
  border-radius: 16px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  margin-top: 8px;
}

.community-public-update-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.community-public-update-head strong{
  color: #166534;
  font-size: 13px;
}

.community-public-update-head span{
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.community-public-update-body{
  color: #14532d;
  line-height: 1.6;
}

@media (max-width: 991.98px){
  .community-admin-layout{
    grid-template-columns: 1fr;
  }

  .community-admin-compose{
    position: static;
  }

  .community-ticket-head{
    display: block;
  }

  .community-ticket-meta{
    justify-content: flex-start;
    margin-top: 14px;
  }

  .community-bubble{
    max-width: calc(100% - 54px);
  }
}

@media (max-width: 575.98px){
  .community-chat-card,
  .community-compose-card,
  .community-admin-compose{
    padding: 16px;
    border-radius: 20px;
  }

  .community-msg{
    gap: 8px;
  }

  .community-avatar{
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 13px;
  }

  .community-bubble{
    padding: 13px;
    border-radius: 18px;
  }
}

/* =========================================================
   Community Hub V2
   ========================================================= */

.community-v2{
  --c-bg:#f8fafc;
  --c-card:#ffffff;
  --c-text:#0f172a;
  --c-muted:#64748b;
  --c-border:#e5e7eb;
  --c-soft:#eef5ff;
  --c-primary:#0d6efd;
}

.community-hero-v2{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:1.25rem;
  margin-bottom:1.5rem;
  padding:1.5rem;
  border:1px solid var(--c-border);
  border-radius:24px;
  background:linear-gradient(135deg,#ffffff,#f3f7ff);
  box-shadow:0 12px 34px rgba(15,23,42,.06);
}

.community-kicker{
  display:inline-flex;
  margin-bottom:.45rem;
  padding:.35rem .7rem;
  border-radius:999px;
  background:var(--c-soft);
  color:var(--c-primary);
  font-weight:800;
  font-size:.8rem;
}

.community-hero-v2 h1,
.community-form-head h1{
  margin:0;
  font-size:clamp(2rem,3vw,3rem);
  font-weight:900;
  letter-spacing:-.04em;
  color:var(--c-text);
}

.community-hero-v2 p,
.community-form-head p{
  margin:.35rem 0 0;
  color:var(--c-muted);
  font-size:1rem;
}

.community-hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
}

.community-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1rem;
  margin-bottom:1rem;
}

.community-stat-card{
  padding:1rem;
  border:1px solid var(--c-border);
  border-radius:18px;
  background:#fff;
  box-shadow:0 8px 24px rgba(15,23,42,.04);
}

.community-stat-card strong{
  display:block;
  font-size:1.5rem;
  font-weight:900;
  color:var(--c-text);
}

.community-stat-card span{
  color:var(--c-muted);
  font-size:.9rem;
}

.community-grid-v2{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(320px,.8fr);
  gap:1rem;
  align-items:start;
}

.community-panel-v2,
.community-form-card,
.community-empty-card{
  border:1px solid var(--c-border);
  border-radius:24px;
  background:#fff;
  box-shadow:0 10px 30px rgba(15,23,42,.05);
}

.community-panel-v2{
  padding:1.2rem;
}

.community-panel-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:1rem;
}

.community-panel-head h2{
  margin:0;
  font-size:1.15rem;
  font-weight:900;
  display:flex;
  align-items:center;
  gap:.55rem;
}

.community-roadmap-list,
.community-ticket-list{
  display:grid;
  gap:.85rem;
}

.community-roadmap-item,
.community-ticket-row{
  border:1px solid var(--c-border);
  border-radius:18px;
  background:#fff;
}

.community-roadmap-item{
  padding:1rem;
}

.community-roadmap-top,
.community-ticket-title{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:.75rem;
}

.community-roadmap-top h3,
.community-ticket-title h2{
  margin:0;
  font-size:1rem;
  font-weight:850;
  color:var(--c-text);
}

.community-roadmap-item p,
.community-ticket-row p{
  margin:.45rem 0 0;
  color:var(--c-muted);
  line-height:1.55;
}

.community-status{
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
  padding:.28rem .65rem;
  border-radius:999px;
  font-size:.78rem;
  font-weight:800;
  background:#f1f5f9;
  color:#475569;
}

.status-new{ background:#f1f5f9; color:#475569; }
.status-reviewing{ background:#e0f2fe; color:#0369a1; }
.status-planned{ background:#eef5ff; color:#0d6efd; }
.status-in_progress{ background:#fef3c7; color:#92400e; }
.status-completed{ background:#dcfce7; color:#166534; }
.status-rejected{ background:#fee2e2; color:#991b1b; }

.community-note{
  padding:.75rem .85rem;
  border-radius:14px;
  background:#f8fafc;
  border:1px solid var(--c-border);
  color:#475569;
  font-size:.92rem;
}

.community-updates{
  margin-top:.8rem;
  display:grid;
  gap:.6rem;
}

.community-update{
  padding:.75rem;
  border-radius:14px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
}

.community-update strong{
  font-size:.86rem;
}

.community-update span{
  margin-left:.35rem;
  color:var(--c-muted);
  font-size:.78rem;
}

.community-update p{
  margin:.35rem 0 0;
}

.community-faq-v2 .accordion-item{
  border:1px solid var(--c-border);
  border-radius:16px;
  overflow:hidden;
  margin-bottom:.65rem;
}

.community-faq-v2 .accordion-button{
  font-weight:800;
  border-radius:16px;
}

.community-empty{
  padding:1rem;
  border-radius:16px;
  background:#f8fafc;
  color:var(--c-muted);
}

.community-form-shell{
  max-width:760px;
  margin:0 auto;
}

.community-form-head{
  text-align:center;
  margin-bottom:1rem;
}

.community-form-card{
  padding:1.25rem;
}

.community-form-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
  margin-top:1rem;
}

.community-ticket-row{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  padding:1rem;
  align-items:center;
}

.community-ticket-main{
  min-width:0;
}

.community-ticket-meta-line{
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
  margin-top:.7rem;
  color:var(--c-muted);
  font-size:.85rem;
}

.community-ticket-meta-line span{
  padding:.22rem .55rem;
  border-radius:999px;
  background:#f8fafc;
  border:1px solid var(--c-border);
}

.community-ticket-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  justify-content:flex-end;
}

.community-ticket-actions form{
  margin:0;
}

.community-empty-card{
  text-align:center;
  padding:2rem 1rem;
}

.community-empty-card i{
  font-size:2rem;
  color:var(--c-primary);
  margin-bottom:.75rem;
}

.community-empty-card h3{
  font-weight:900;
  margin-bottom:.25rem;
}

.community-empty-card p{
  color:var(--c-muted);
}

@media (max-width: 992px){
  .community-hero-v2,
  .community-ticket-row{
    flex-direction:column;
    align-items:stretch;
  }

  .community-grid-v2,
  .community-stats{
    grid-template-columns:1fr;
  }

  .community-hero-actions,
  .community-ticket-actions{
    justify-content:flex-start;
  }
}

/* =========================================================
   ACIL FIX - Global CSS toparlama
   ========================================================= */

/* Bootstrap container'ı bozma */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl{
  max-width: 1140px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

/* Navbar tekrar düzgün hizalansın */
.navbar{
  width: 100% !important;
  background: #ffffff !important;
  padding: .75rem 1rem !important;
}

.navbar .container,
.navbar .container-fluid{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  max-width: 1140px !important;
  width: 100% !important;
}

.navbar .navbar-nav{
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: .75rem !important;
  background: transparent !important;
}

.navbar .nav-link{
  font-size: .95rem !important;
  font-weight: 600 !important;
  padding: .5rem .65rem !important;
  color: #111827 !important;
}

/* Sayfa içerikleri normal genişliğe dönsün */
main,
.main-content{
  width: 100% !important;
}

/* Community stilleri sadece community ekranlarında çalışsın */


/* =========================================================
   ACIL COMMUNITY ADMIN TOPARLAMA
   ========================================================= */

.community-v2,
.community-admin-page,
.community-shell{
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.community-admin-page{
  font-size: 14px;
}

.community-admin-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}

.community-admin-header h1{
  margin:0;
  font-size:28px;
  font-weight:900;
  letter-spacing:-.03em;
}

.community-admin-header p{
  margin:6px 0 0;
  color:#64748b;
}

.community-admin-tabs{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
  margin-bottom:16px;
}

.community-admin-tab{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px;
  border:1px solid #e5e7eb;
  border-radius:18px;
  background:#fff;
  color:#0f172a;
  text-decoration:none;
  font-weight:800;
  box-shadow:0 8px 22px rgba(15,23,42,.04);
}

.community-admin-tab strong{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:28px;
  height:28px;
  padding:0 8px;
  border-radius:999px;
  background:#eef5ff;
  color:#0d6efd;
}

.community-admin-tab.active{
  border-color:#0d6efd;
  background:#f4f8ff;
  color:#0d6efd;
}

.community-admin-layout-clean{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 340px;
  gap:16px;
  align-items:start;
}

.community-admin-list-card,
.community-admin-create-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:22px;
  box-shadow:0 10px 28px rgba(15,23,42,.05);
}

.community-admin-list-card{
  padding:16px;
}

.community-admin-create-card{
  padding:16px;
  position:sticky;
  top:90px;
}

.community-admin-list-head h2,
.community-admin-create-card h2{
  margin:0;
  font-size:19px;
  font-weight:900;
}

.community-admin-list-head p,
.community-admin-create-card p{
  margin:5px 0 14px;
  color:#64748b;
}

.community-admin-ticket-list{
  display:grid;
  gap:10px;
}

.community-admin-ticket{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:14px;
  border:1px solid #e5e7eb;
  border-radius:18px;
  background:#fff;
}

.community-admin-ticket-top{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.community-admin-ticket-top strong{
  font-size:15px;
  font-weight:900;
}

.community-admin-ticket p{
  margin:6px 0 0;
  color:#64748b;
  line-height:1.5;
}

.community-admin-meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:10px;
}

.community-admin-meta span{
  padding:4px 8px;
  border-radius:999px;
  background:#f8fafc;
  border:1px solid #e5e7eb;
  color:#64748b;
  font-size:12px;
  font-weight:700;
}

@media (max-width: 992px){
  .community-admin-header,
  .community-admin-ticket{
    flex-direction:column;
    align-items:stretch;
  }

  .community-admin-tabs,
  .community-admin-layout-clean{
    grid-template-columns:1fr;
  }

  .community-admin-create-card{
    position:static;
  }
}

/* =========================================================
   COMMUNITY SAYFALARI ORTALAMA FIX
   ========================================================= */

.community-v2{
  width: min(100% - 32px, 1120px) !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
  padding-top: 2rem !important;
}

.community-v2 .community-hero-v2{
  margin-left: auto !important;
  margin-right: auto !important;
}

.community-v2 .community-stats,
.community-v2 .community-grid-v2,
.community-v2 .community-ticket-list{
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Hub daha dengeli dursun */
.community-grid-v2{
  grid-template-columns: minmax(0, 1fr) 360px !important;
  gap: 1rem !important;
}

/* Taleplerim kartı çok yayılmasın */
.community-ticket-row{
  max-width: 100% !important;
}

/* Büyük ekranda içerik ortada kalsın */
@media (min-width: 1200px){
  .community-v2{
    width: 1120px !important;
  }
}

/* Orta ekran */
@media (max-width: 992px){
  .community-v2{
    width: min(100% - 20px, 100%) !important;
  }

  .community-grid-v2{
    grid-template-columns: 1fr !important;
  }
}

/* static/css/style.css */
/* [YAMA] Gelişim Merkezi sayfa ortalama + kart görünümü */

.community-page,
.hub-page,
.my-feedback-page{
  width: min(100% - 32px, 1180px) !important;
  margin: 0 auto !important;
  padding: 28px 0 48px !important;
}

.community-hero,
.hub-hero{
  text-align: left;
  margin-bottom: 18px;
}

.community-hero h1,
.hub-hero h1,
.my-feedback-page h1{
  font-size: clamp(2rem, 3vw, 3rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -.04em;
  margin-bottom: 8px !important;
}

.community-actions,
.hub-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}

.community-stats,
.hub-stats{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px !important;
  margin: 18px 0 !important;
}

.community-stats > *,
.hub-stats > *{
  background: #fff !important;
  border: 1px solid rgba(15,23,42,.08) !important;
  border-radius: 18px !important;
  padding: 18px !important;
  box-shadow: 0 10px 28px rgba(15,23,42,.05) !important;
}

.community-section,
.hub-section,
.feedback-card,
.roadmap-card,
.faq-card{
  background: #fff !important;
  border: 1px solid rgba(15,23,42,.08) !important;
  border-radius: 22px !important;
  padding: 18px !important;
  margin: 14px 0 !important;
  box-shadow: 0 10px 28px rgba(15,23,42,.045) !important;
}

.roadmap-item,
.feedback-item{
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #f8fafc !important;
  border: 1px solid rgba(15,23,42,.07) !important;
  border-radius: 16px !important;
  padding: 16px !important;
  margin-top: 12px !important;
}

.roadmap-item h3,
.feedback-item h3{
  margin: 0 0 8px !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
}

.roadmap-item p,
.feedback-item p{
  margin: 0 !important;
  color: #475569 !important;
}

.feedback-actions{
  display: flex;
  gap: 8px;
  align-items: center;
}

@media (max-width: 768px){
  .community-page,
  .hub-page,
  .my-feedback-page{
    width: min(100% - 18px, 1180px) !important;
    padding-top: 18px !important;
  }

  .community-stats,
  .hub-stats{
    grid-template-columns: 1fr !important;
  }

  .roadmap-item,
  .feedback-item{
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .feedback-actions{
    justify-content: flex-end;
  }
}

/* [YAMA] Gelişim Merkezi açılır kartlar */
.community-accordion-card{
  overflow:hidden;
}

.community-accordion-card summary{
  cursor:pointer;
  list-style:none;
}

.community-accordion-card summary::-webkit-details-marker{
  display:none;
}

.community-accordion-card summary::after{
  content:"⌄";
  font-weight:900;
  color:#2563eb;
  margin-left:auto;
}

.community-accordion-card[open] summary::after{
  content:"⌃";
}

.community-accordion-body{
  margin-top:.75rem;
}

.community-accordion-card:not([open]) .community-accordion-body{
  display:none;
}

/* [YAMA] MOBILE NAVBAR FINAL FIX */
@media (max-width: 991.98px){

  .navbar{
    padding: 10px 14px !important;
  }

  .navbar .container,
  .navbar .container-fluid{
    flex-wrap: wrap !important;
  }

  /*
   * Eski mobile drawer konumlandırması devre dışı.
   * Aktif drawer davranışı aşağıdaki max-width:1199.98px
   * responsive blok tarafından yönetiliyor.
   */

  .navbar-collapse:not(.show){
    display: none !important;
  }

  .navbar-collapse.show{
    display: block !important;
  }

  .navbar .navbar-nav{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .navbar .nav-item{
    width: 100% !important;
    display: block !important;
  }

  .navbar .nav-link,
  .navbar .dropdown-toggle{
    width: 100% !important;
    min-height: 44px !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
  }

  .navbar .nav-link.active::after{
    bottom: 4px !important;
    width: 44px !important;
  }

  .navbar .dropdown-menu{
    position: static !important;
    width: 100% !important;
    border: 0 !important;
    box-shadow: none !important;
    background: #f8fafc !important;
    border-radius: 14px !important;
    margin-top: 6px !important;
    text-align: center !important;
  }

  .navbar .lang-switch{
    margin: 8px auto !important;
    justify-content: center !important;
  }
}

.social-login{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:18px;
}

.btn-social{
  width:100%;
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  text-decoration:none;
  font-weight:700;
  border:1px solid #e5e7eb;
  transition:transform .15s ease, box-shadow .15s ease;
}

.btn-social:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(0,0,0,.08);
}

.btn-google{
  background:#fff;
  color:#111827;
}

.btn-apple{
  background:#111827;
  color:#fff;
}

.social-login{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:18px;
}

.btn-social{
  width:100%;
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  text-decoration:none;
  font-weight:800;
  border:1px solid #e5e7eb;
}

.btn-google{
  background:#fff;
  color:#111827;
}

.btn-apple{
  background:#111827;
  color:#fff;
  opacity:.55;
  cursor:not-allowed;
}

/* ============================================================
   EtheriaX Mobile UI V2
   Amaç: TWA/iOS içinde web sitesi hissini azaltmak
============================================================ */

/* Standalone/TWA app shell. This is intentionally isolated so browser navigation remains unchanged. */
.app-shell-header{
  display:none;
  position:sticky;
  top:0;
  z-index:1100;
  min-height:calc(56px + env(safe-area-inset-top));
  padding:max(8px, env(safe-area-inset-top)) 14px 8px;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid rgba(15,23,42,.08);
  box-shadow:0 4px 18px rgba(15,23,42,.06);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

html.is-standalone body,
html.is-standalone #page-content{
  min-height:100dvh;
}

html.is-standalone body{
  padding-bottom:env(safe-area-inset-bottom);
}

html.is-standalone .site-navbar {
  display: block !important;
}

html.is-standalone .site-footer {
  display: block !important;
}

html.is-standalone .app-shell-header{
  display: none !important;
}

.app-shell-brand,
.app-shell-actions,
.app-shell-primary{
  display:inline-flex;
  align-items:center;
}

.app-shell-brand{
  min-width:0;
  gap:8px;
  color:#111827;
  font-size:1rem;
  font-weight:850;
  letter-spacing:-.03em;
  text-decoration:none;
}

.app-shell-logo{
  width:32px;
  height:32px;
  flex:0 0 32px;
  object-fit:contain;
  border-radius:10px;
}

.app-shell-actions{ gap:8px; }

.app-shell-primary{
  min-height:38px;
  padding:0 12px;
  border-radius:12px;
  background:#7c3aed;
  color:#fff;
  font-size:.82rem;
  font-weight:800;
  text-decoration:none;
}

.app-shell-menu{ position:relative; }

.app-shell-menu summary{
  display:grid;
  width:38px;
  height:38px;
  place-items:center;
  list-style:none;
  cursor:pointer;
  border:1px solid rgba(15,23,42,.12);
  border-radius:12px;
  color:#111827;
  background:#fff;
}

.app-shell-menu summary::-webkit-details-marker{ display:none; }

.app-shell-menu-panel{
  position:absolute;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  top:calc(100% + 4px);
  right:0;
  width:min(360px, calc(100vw - 28px));
  height:auto;
  min-height:0;
  max-height:calc(100vh - 72px - env(safe-area-inset-top));
  max-height:calc(100dvh - 72px - env(safe-area-inset-top));
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:10px;
  border:1px solid rgba(15,23,42,.10);
  border-radius:16px;
  background:#fff;
  box-shadow:0 18px 42px rgba(15,23,42,.16);
}

.app-shell-menu-group{
  display:flex;
  flex-direction:column;
  flex:0 0 auto;
  height:auto;
  min-height:0;
  justify-content:flex-start;
  align-content:flex-start;
  gap:4px;
}

.app-shell-menu-group + .app-shell-menu-group{
  margin-top:6px;
  padding-top:6px;
  border-top:1px solid rgba(15,23,42,.07);
}

.app-shell-menu-label{
  flex:0 0 auto;
  height:auto;
  min-height:0;
  margin:0;
  padding:2px 8px 4px;
  color:#64748b;
  font-size:.69rem;
  font-weight:850;
  letter-spacing:.08em;
  line-height:1.2;
  text-transform:uppercase;
}

.app-shell-menu-panel a{
  display:flex;
  align-items:center;
  flex:0 0 44px;
  height:44px;
  min-height:44px;
  max-height:44px;
  box-sizing:border-box;
  margin:0 !important;
  padding:0 14px;
  border-radius:10px;
  color:#1f2937;
  font-size:.9rem;
  font-weight:700;
  line-height:1.2;
  text-decoration:none;
}

.app-shell-menu-panel a:hover,
.app-shell-menu-panel a:focus{
  background:rgba(124,58,237,.08);
  color:#5b21b6;
}

.app-shell-menu-logout{
  color:#b91c1c !important;
}

@media (display-mode: standalone){
  html body,
  html #page-content{ min-height:100dvh; }

  html body{ padding-bottom:env(safe-area-inset-bottom); }

  html .site-navbar {
    display: block !important;
  }

  html .site-footer {
    display: block !important;
  }

  html .app-shell-header{
    display: none !important;
  }
}

@media (max-width: 1199.98px){

  body{
    background:#f8fafc !important;
    -webkit-font-smoothing: antialiased;
  }

  .navbar{
    min-height: 56px !important;
    padding: 6px 0 !important;
    background: rgba(255,255,255,.96) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 6px 24px rgba(15,23,42,.08) !important;
    border-bottom: 1px solid rgba(15,23,42,.06) !important;
    z-index: 1040 !important;
  }

  .navbar .container{
    min-height: 48px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .brand-logo{
    width: 34px !important;
    height: 34px !important;
    flex-basis: 34px !important;
  }

  .brand-wordmark{
    font-size: .95rem !important;
    font-weight: 900 !important;
    letter-spacing: -.04em !important;
  }

  .navbar-toggler{
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border-radius: 16px !important;
    border: 1px solid rgba(15,23,42,.12) !important;
    background: #fff !important;
    box-shadow: 0 8px 20px rgba(15,23,42,.08) !important;
  }

  .navbar-toggler:focus{
    box-shadow: 0 0 0 4px rgba(124,58,237,.12) !important;
  }

  .navbar-collapse{
    position: fixed !important;
    top: 66px !important;
    right: 12px !important;
    left: auto !important;
    width: min(330px, calc(100vw - 24px)) !important;
    max-height: calc(100vh - 92px) !important;
    overflow-y: auto !important;
    padding: 18px !important;
    border-radius: 28px !important;
    background: rgba(255,255,255,.98) !important;
    border: 1px solid rgba(15,23,42,.08) !important;
    box-shadow: 0 28px 70px rgba(15,23,42,.22) !important;
  }

  .navbar-collapse:not(.show){
    display: none !important;
  }

  .navbar-collapse.show{
    display: block !important;
    animation: etheriaxDrawerIn .18s ease-out;
  }

  @keyframes etheriaxDrawerIn{
    from{ opacity:0; transform: translateX(18px) scale(.98); }
    to{ opacity:1; transform: translateX(0) scale(1); }
  }

  .navbar .navbar-nav{
    gap: 4px !important;
    align-items: stretch !important;
  }

  .navbar .nav-item{
    width: 100% !important;
  }

  .navbar .nav-link,
  .navbar .dropdown-toggle{
    width: 100% !important;
    min-height: 42px !important;
    height: auto !important;
    justify-content: center !important;
    padding: 10px 12px !important;
    border-radius: 16px !important;
    font-size: .98rem !important;
    font-weight: 850 !important;
    color: #111827 !important;
  }

  .navbar .nav-link.active{
    background: rgba(124,58,237,.10) !important;
    color: #6d28d9 !important;
  }

  .navbar .lang-switch{
    margin: 8px auto 6px !important;
  }

  .hero-gradient{
    min-height: auto !important;
    padding-top: 0 !important;
    background:
      radial-gradient(circle at 0% 0%, rgba(124,58,237,.10), transparent 32%),
      #fff !important;
  }

  .hero-gradient .container{
    padding-top: 18px !important;
    padding-bottom: 22px !important;
  }

  .hero-gradient h1{
    font-size: clamp(2rem, 9vw, 3.05rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -.055em !important;
    margin-bottom: 14px !important;
  }

  .hero-gradient .lead{
    font-size: 1.02rem !important;
    line-height: 1.55 !important;
    margin-bottom: 18px !important;
  }

  .hero-gradient .lead br{
    display: none !important;
  }

  .hero-gradient .btn-lg{
    width: 100% !important;
    justify-content: center !important;
    border-radius: 18px !important;
    min-height: 52px !important;
    font-weight: 900 !important;
  }

  .hero-gradient .card{
    border-radius: 24px !important;
    box-shadow: 0 18px 48px rgba(15,23,42,.08) !important;
  }

  .hero-gradient .card-body{
    padding: 24px 18px !important;
    text-align: center !important;
  }

  .user-panel-wrap{
    padding-top: 14px !important;
  }

  .user-panel-wrap h1{
    font-size: 1.55rem !important;
    font-weight: 900 !important;
    letter-spacing: -.04em !important;
  }

  .user-panel-wrap .card{
    border-radius: 22px !important;
    border: 1px solid rgba(15,23,42,.08) !important;
    box-shadow: 0 12px 34px rgba(15,23,42,.07) !important;
  }

  .user-panel-wrap input,
  .user-panel-wrap textarea,
  .user-panel-wrap select,
  .form-control{
    border-radius: 16px !important;
    min-height: 46px !important;
  }

  .user-panel-wrap .btn{
    border-radius: 16px !important;
    min-height: 44px !important;
    font-weight: 800 !important;
  }
}

/* Account Security Center */
.account-security-card { border: 1px solid rgba(124,58,237,.16); overflow: hidden; }
.security-card-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; }
.security-eyebrow { color:#7c3aed; font-size:.7rem; font-weight:800; letter-spacing:.12em; }
.security-status { display:inline-flex; align-items:center; gap:.5rem; padding:.55rem .75rem; border-radius:999px; font-size:.78rem; font-weight:700; white-space:nowrap; }
.security-status-dot { width:.55rem; height:.55rem; border-radius:50%; background:currentColor; box-shadow:0 0 0 4px color-mix(in srgb, currentColor 15%, transparent); }
.security-status--protected { color:#067647; background:#ecfdf3; }
.security-status--warning { color:#a15c00; background:#fffaeb; }
.security-status--attention { color:#b54708; background:#fff4ed; }
.security-grid { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); gap:1rem; }
.security-section { min-width:0; padding:1rem; border:1px solid rgba(15,23,42,.09); border-radius:16px; background:rgba(255,255,255,.55); }
.security-password-wrap { position:relative; }
.security-password-wrap .form-control { padding-right:4.5rem; min-height:44px; }
.password-visibility { position:absolute; right:.5rem; top:50%; transform:translateY(-50%); border:0; background:transparent; color:#6d28d9; font-size:.78rem; font-weight:700; padding:.35rem; }
.password-visibility:focus-visible { outline:2px solid #7c3aed; outline-offset:2px; border-radius:6px; }
.password-strength-track { height:6px; border-radius:999px; background:rgba(100,116,139,.18); overflow:hidden; }
.password-strength-track span { display:block; height:100%; width:0; border-radius:inherit; transition:width .2s ease, background .2s ease; }
.strength-weak { background:#dc2626; } .strength-medium { background:#d97706; }
.strength-strong { background:#16a34a; } .strength-very-strong { background:#059669; }
.connected-account-row { display:flex; align-items:center; gap:.75rem; padding:.75rem 0; border-bottom:1px solid rgba(15,23,42,.08); }
.connected-account-icon { display:grid; place-items:center; width:34px; height:34px; border-radius:10px; background:#f1f5f9; }
.connected-account-icon--google { color:#4285f4; } .connected-account-icon--apple { color:#111827; }
.last-login-panel dl div { display:flex; justify-content:space-between; gap:1rem; padding:.35rem 0; }
.last-login-panel dt { color:#64748b; font-weight:500; } .last-login-panel dd { margin:0; text-align:right; }
.security-tips { display:flex; flex-wrap:wrap; gap:.5rem; }
.security-tip { padding:.4rem .65rem; border-radius:999px; font-size:.75rem; font-weight:600; }
.security-tip.is-ok { color:#067647; background:#ecfdf3; } .security-tip.is-warning { color:#a15c00; background:#fffaeb; }
@media (max-width: 767.98px) {
  .security-card-heading { flex-direction:column; }
  .security-grid { grid-template-columns:1fr; }
  .security-status { align-self:flex-start; }
}
@media (prefers-color-scheme: dark) {
  .security-section { background:rgba(15,23,42,.28); border-color:rgba(255,255,255,.12); }
  .connected-account-row { border-color:rgba(255,255,255,.12); }
  .connected-account-icon { background:rgba(255,255,255,.1); }
}

.voice-emotion-feedback { margin:.65rem 0; padding:.75rem; border:1px solid rgba(124,58,237,.2); border-radius:14px; background:rgba(124,58,237,.05); font-size:.85rem; }
.voice-emotion-feedback p { margin:0 0 .5rem; }
.voice-feedback-actions { display:flex; flex-wrap:wrap; gap:.4rem; align-items:center; }
.voice-feedback-actions .form-select { width:auto; min-width:145px; }
[dir="rtl"] .voice-feedback-actions { flex-direction:row-reverse; justify-content:flex-end; }
@media (max-width:575.98px) { .voice-feedback-actions > * { flex:1 1 calc(50% - .4rem); } .voice-feedback-actions .form-select { width:100%; } }

/* [YAMA] Ana sayfa hero CTA — yalnız ilk DuyguMap butonu */
.hero-gradient .hero-cta {
  width: 100%;
  justify-content: center !important;
}

.hero-gradient .hero-cta-button {
  width: min(82%, 360px) !important;
  max-width: 360px !important;
  min-height: 50px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto !important;
  padding-inline: 1.25rem;
  border-radius: 999px !important;
  font-weight: 700;
  flex: 0 0 auto !important;
}

@media (min-width: 992px) {
  .hero-gradient .hero-cta {
    justify-content: flex-start !important;
  }

  .hero-gradient .hero-cta-button {
    width: auto;
    min-width: 280px;
    margin-inline: 0;
  }
}

/* Homepage refinement: keep the landing page focused and mobile-safe. */
.homepage-hero,
.homepage-content-card {
  max-width: 880px;
}

.homepage-ecosystem-link {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  gap: .35rem;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .09);
  border-radius: 1rem;
}

.homepage-ecosystem-link:hover {
  color: inherit;
  border-color: rgba(13, 110, 253, .35);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.homepage-ecosystem-link > span {
  color: #64748b;
  font-size: .9rem;
}

.app-downloads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

.app-download-placeholder {
  display: inline-flex;
  min-width: 210px;
  align-items: center;
  gap: .7rem;
  padding: .65rem .9rem;
  color: #64748b;
  text-align: left;
  background: rgba(255, 255, 255, .7);
  border: 1px dashed rgba(100, 116, 139, .4);
  border-radius: .85rem;
}

.app-download-placeholder > i {
  font-size: 1.5rem;
}

.app-download-placeholder strong,
.app-download-placeholder small {
  display: block;
}

.app-download-placeholder small {
  font-size: .75rem;
}

@media (max-width: 575.98px) {
  .app-downloads,
  .app-download-placeholder {
    width: 100%;
  }

  .app-download-placeholder {
    min-width: 0;
  }
}
