/* MÜSİAD B2B — ui-design-notes.md token'ları (lacivert + altın, mobil öncelikli) */
:root {
  --navy-950: #14213D;   /* en derin lacivert — sidebar/login derinliği */
  --navy-900: #1B2A4A;
  --navy-700: #24365C;
  --gold-500: #C9A227;
  --gold-600: #B08E1E;
  --gold-100: #F6EED9;
  --bg:       #F6F7F9;
  --card:     #FFFFFF;
  --ink-900:  #182230;
  --ink-500:  #667085;
  --ok:       #1F8A5B;
  --warn:     #D99A18;
  --danger:   #B42318;
  --line:     #E3E7F0;
  --radius:   12px;
}
* { -webkit-tap-highlight-color: transparent; }
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; background: var(--bg); color: var(--ink-900); }

.brand-mark {
  width: 56px; height: 56px; border-radius: 14px; background: var(--navy-900); color: var(--gold-500);
  display: flex; align-items: center; justify-content: center; font-weight: 800; letter-spacing: .5px;
}
.brand-mark.sm { width: 36px; height: 36px; border-radius: 10px; font-size: .7rem; }

/* Login */
.login-wrap { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-700) 100%); }
.login-card { background: var(--card); border-radius: 18px; padding: 32px 28px; width: 100%; max-width: 420px;
  box-shadow: 0 24px 60px rgba(10,18,40,.35); }

/* Layout */
#appShell { display: flex; min-height: 100dvh; }
.sidebar { width: 248px; background: var(--navy-950); color: #fff; position: sticky; top: 0; height: 100dvh; padding: 18px 14px; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; padding: 4px 8px 18px; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; color: #cdd5e6; text-decoration: none;
  padding: 11px 12px; border-radius: 10px; margin-bottom: 4px; font-weight: 500; }
.sidebar nav a.active { background: var(--gold-500); color: var(--navy-900); font-weight: 700; }
.sidebar nav a:hover:not(.active) { background: var(--navy-700); color: #fff; }
.nav-badge { background: var(--danger); color: #fff; border-radius: 11px; font-size: .68rem; font-weight: 800;
  padding: 1px 7px; min-width: 20px; text-align: center; }
.sidebar nav a.active .nav-badge { background: var(--navy-900); color: #fff; }
.topnav .bn-ico { position: relative; }
.topnav .nav-badge { position: absolute; top: -4px; right: -10px; padding: 0 5px; min-width: 16px; font-size: .6rem; }
.sidebar-foot { border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; color: #cdd5e6; }
.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar { display: flex; align-items: center; gap: 12px; background: var(--card); border-bottom: 1px solid var(--line);
  padding: 12px 18px; position: sticky; top: 0; z-index: 50; }
.topbar-title { font-weight: 700; font-size: 1.05rem; }
.bell { position: relative; font-size: 1.15rem; text-decoration: none; }
.bell-badge { position: absolute; top: -4px; right: -8px; background: var(--danger); color: #fff;
  border-radius: 10px; font-size: .62rem; font-weight: 700; padding: 1px 5px; }
.user-chip { background: var(--gold-100); color: var(--navy-900); border-radius: 999px; padding: 6px 14px;
  font-weight: 600; font-size: .85rem; }

.content { padding: 18px 16px 28px; max-width: 1180px; width: 100%; margin: 0 auto; }
@media (min-width: 992px) { .content { padding: 24px 28px 40px; } }

/* Üst menü (mobil) — topbar'ın altında, kaydırınca üstte yapışık kalır */
.topnav { position: sticky; top: 0; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--line);
  display: flex; z-index: 55; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a { flex: 0 0 auto; min-width: 62px; text-align: center; padding: 7px 8px 6px; text-decoration: none; color: var(--ink-500);
  font-size: .66rem; font-weight: 600; white-space: nowrap; }
.topnav a .bn-ico { display: block; font-size: 1.2rem; line-height: 1.2; }
.topnav a.active { color: var(--gold-600); border-bottom: 2px solid var(--gold-500); margin-bottom: -1px; }
/* mobilde topbar kaymasın diye değil — menü üstte yapışsın diye topbar normal akışta */
@media (max-width: 991px) { .topbar { position: static; } }

/* Kartlar */
.dcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.dcard .dtitle { font-weight: 700; font-size: .98rem; color: var(--ink-900); text-decoration: none; display: block; }
.dcard .dtitle:hover { color: var(--gold-600); }
.dmeta { color: var(--ink-500); font-size: .8rem; display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.dno { color: var(--ink-500); font-size: .72rem; letter-spacing: .4px; }
.flagchip { background: var(--bg); border-radius: 8px; padding: 2px 9px; font-size: .8rem; font-weight: 600; }

.badge-soft { border-radius: 8px; padding: 3px 10px; font-size: .72rem; font-weight: 700; display: inline-block; }
.bs-navy  { background: #E8EDF8; color: var(--navy-900); }
.bs-warn  { background: #FBEFE0; color: var(--warn); }
.bs-gold  { background: var(--gold-100); color: var(--gold-600); }
.bs-ok    { background: #E2F3EA; color: var(--ok); }
.bs-mute  { background: #EDEFF4; color: var(--ink-500); }
.bs-danger{ background: #F9E4E1; color: var(--danger); }

/* Buton hiyerarşisi: ana=altın dolu · ikincil=lacivert outline · riskli=kırmızı sade */
.btn-gold { background: var(--gold-500); border: none; color: var(--navy-900); font-weight: 700; }
.btn-gold:hover { background: var(--gold-600); color: #fff; }
.btn-outline-navy { border: 1.5px solid var(--navy-900); color: var(--navy-900); font-weight: 600; }
.btn-outline-navy:hover { background: var(--navy-900); color: #fff; }
.btn-danger-soft, .btn-outline-danger { background: transparent; border: 1.5px solid #e7c3bf; color: var(--danger); font-weight: 600; }
.btn-danger-soft:hover, .btn-outline-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }

.statcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; text-align: center; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.statcard .v { font-size: 1.5rem; font-weight: 800; color: var(--navy-900); }
.statcard .l { font-size: .74rem; color: var(--ink-500); font-weight: 600; }

.section-h { font-weight: 800; font-size: .95rem; margin: 20px 0 10px; display: flex; align-items: center; gap: 8px; }
/* ikon dili — hizalama ve tutarlı buton köşesi */
.btn { border-radius: 8px; }
.sidebar nav a .bi, .menu .bi { width: 1.25em; text-align: center; flex-shrink: 0; }
.section-h .bi { color: var(--gold-600); }
.chart-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.chart-box canvas { max-height: 230px; }

.ai-hint { background: var(--gold-100); border: 1px dashed var(--gold-500); border-radius: 10px;
  padding: 8px 12px; font-size: .8rem; color: var(--gold-600); font-weight: 600; }
.lock-note { background: #EDF1FA; border-radius: 10px; padding: 10px 14px; font-size: .85rem; color: var(--navy-700); }
.sla-row { background: #FDF3F1 !important; }

.filterbar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.filterbar .form-select, .filterbar .form-control { min-width: 130px; font-size: .85rem; }
.table-sm td, .table-sm th { font-size: .84rem; vertical-align: middle; }
a { color: var(--navy-700); }
.min-w-0 { min-width: 0; }

/* === Codex görsel dili: sağ ray + görsel kartlar (ui-design-notes §2) === */
.rail-grid { display: grid; gap: 18px; }
@media (min-width: 1100px) { .rail-grid { grid-template-columns: 1fr 300px; align-items: start; } }
.grid-cards { display: grid; gap: 12px; }
@media (min-width: 768px)  { .grid-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .grid-cards { grid-template-columns: 1fr 1fr 1fr; } }

.dcard.cx { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.dvisual { position: relative; height: 92px; display: flex; align-items: center; justify-content: center; }
.dvemoji { font-size: 2.3rem; opacity: .95; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.dvflag { position: absolute; top: 8px; left: 8px; background: rgba(255,255,255,.93); border-radius: 8px;
  padding: 2px 9px; font-size: .74rem; font-weight: 700; color: var(--ink-900); }
.dvstar { position: absolute; top: 6px; right: 8px; background: rgba(255,255,255,.93); border: none;
  border-radius: 8px; padding: 1px 9px; font-size: .95rem; color: var(--gold-600); }
.dvchip { position: absolute; bottom: 8px; right: 8px; }
/* gradyan üstünde çıplak tarih silik kalıyordu — okunur beyaz çip */
.dv-date { background: rgba(255,255,255,.94); color: var(--navy-900); border-radius: 8px;
  padding: 2px 8px; font-size: .7rem; font-weight: 700; }
.dbody { padding: 11px 14px 13px; display: flex; flex-direction: column; flex: 1; }
.dbody .dtitle { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.dmeta-rows { font-size: .77rem; color: var(--ink-500); display: grid; gap: 2px; margin-top: 6px; }

.sv-0 { background: linear-gradient(135deg, #33415F, #1B2A4A); }
.sv-1 { background: linear-gradient(135deg, #7A4E9E, #4A2C66); }   /* tekstil */
.sv-2 { background: linear-gradient(135deg, #C96F2B, #8C4A14); }   /* gıda */
.sv-3 { background: linear-gradient(135deg, #4E6E8E, #2C4258); }   /* makine */
.sv-4 { background: linear-gradient(135deg, #A08A3C, #6E5E22); }   /* inşaat */
.sv-5 { background: linear-gradient(135deg, #8A5A3B, #5C3A24); }   /* mobilya */
.sv-6 { background: linear-gradient(135deg, #3A8A8C, #226062); }   /* kimya */
.sv-7 { background: linear-gradient(135deg, #5F8C3A, #3E6022); }   /* tarım */
.sv-8 { background: linear-gradient(135deg, #46648C, #2C4060); }   /* hizmet */

.rail-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin-bottom: 14px; }
.rail-item { display: flex; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink-900); }
.rail-item:last-child { border-bottom: none; }
.rail-title { font-size: .8rem; font-weight: 600; line-height: 1.3; flex: 1; }
.rank-no { width: 22px; height: 22px; min-width: 22px; border-radius: 7px; background: var(--gold-100);
  color: var(--gold-600); font-weight: 800; font-size: .75rem; display: flex; align-items: center; justify-content: center; }
.cta-panel { background: linear-gradient(150deg, var(--navy-900), var(--navy-700)); color: #fff;
  border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }

/* Modal (Bootstrap JS yok — hafif overlay) */
.mb2b-modal { position: fixed; inset: 0; background: rgba(13,20,40,.55); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 14px; }
.mb2b-modal-card { background: var(--card); border-radius: 16px; padding: 20px; width: 100%; max-width: 480px;
  max-height: 90dvh; overflow-y: auto; box-shadow: 0 24px 60px rgba(10,18,40,.4); }

/* Mesajlaşma */
.msg-list { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.msg { border-radius: 12px; padding: 8px 12px; max-width: 85%; font-size: .85rem; }
.msg-uye { background: var(--bg); align-self: flex-start; }
.msg-gm { background: var(--gold-100); align-self: flex-end; }
.msg-time { font-size: .65rem; color: var(--ink-500); text-align: right; margin-top: 2px; }
.pe-none { pointer-events: none; }

/* === Codex 1:1 — topbar arama, avatar, sidebar promo, özet listesi, harita === */
.brand-b2b { background: var(--gold-500); color: var(--navy-900); font-weight: 800; font-size: .78rem;
  padding: 2px 10px; border-radius: 6px; letter-spacing: 1px; }
.sidebar-brand { flex-direction: column; align-items: flex-start; gap: 4px; }
.side-promo { background: var(--navy-700); border-radius: 14px; padding: 14px; margin: 10px 4px 12px; color: #dde4f2; }
.side-promo-emoji { font-size: 1.6rem; margin-bottom: 6px; }

/* MÜSİAD resmi logosu — prototip "MB2B" kutusu yerine (Codex #1) */
.brand-logo-lg { height: 34px; width: auto; max-width: 72%; object-fit: contain; }
.brand-tag { font-size: .8rem; color: var(--ink-500); font-weight: 600; margin-top: 2px; }
.brand-tag span { background: var(--gold-500); color: var(--navy-900); font-weight: 800; font-size: .72rem;
  padding: 1px 7px; border-radius: 5px; letter-spacing: .5px; margin-right: 5px; }
.brand-logo-side { height: 26px; width: auto; max-width: 150px; object-fit: contain; filter: brightness(0) invert(1); }
.brand-logo-top { height: 22px; width: auto; object-fit: contain; }
.brand-b2b.sm { font-size: .6rem; padding: 1px 6px; letter-spacing: .5px; }

.topsearch { flex: 1; max-width: 420px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 7px 12px; display: flex; align-items: center; gap: 8px; }
.topsearch input { border: none; outline: none; background: transparent; width: 100%; font-size: .86rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gold-500); color: var(--navy-900);
  font-weight: 800; font-size: .82rem; display: flex; align-items: center; justify-content: center; }

.ozet-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ozet-row:last-child { border-bottom: none; }
.ozet-ico { width: 32px; height: 32px; border-radius: 9px; background: var(--gold-100); display: flex;
  align-items: center; justify-content: center; font-size: .95rem; }
.ozet-label { flex: 1; font-size: .8rem; color: var(--ink-500); font-weight: 600; }
.ozet-val { font-weight: 800; font-size: 1.05rem; color: var(--navy-900); }

.map-box canvas { max-height: 250px; }

/* Onay kutusu (GM) */
.approve-panel { background: #FFF9EC; border: 1px solid var(--gold-500); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.approve-row { display: flex; gap: 12px; align-items: center; justify-content: space-between;
  padding: 10px 0; border-top: 1px dashed var(--gold-500); }
.approve-row:first-of-type { border-top: none; }
.approve-actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 575px) { .approve-row { flex-direction: column; align-items: stretch; } .approve-actions { justify-content: stretch; } .approve-actions .btn { flex: 1; } }
.mb2b-toast { position: fixed; bottom: 78px; left: 50%; transform: translateX(-50%); z-index: 300;
  background: var(--navy-900); color: #fff; padding: 11px 20px; border-radius: 10px; font-size: .88rem;
  font-weight: 600; box-shadow: 0 10px 30px rgba(10,18,40,.4); max-width: 90vw; text-align: center; }
@media (min-width: 992px) { .mb2b-toast { bottom: 28px; } }

/* Sezgisel form: ikonlu seçim kartları (yemekhaneci wizard'dan) + chip ülke seçici */
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 560px) { .choice-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .choice-grid { grid-template-columns: repeat(4, 1fr); } }
.choice-card { border: 2px solid var(--line); border-radius: 12px; padding: 12px 8px; cursor: pointer;
  background: #fafbfd; text-align: center; transition: .12s; display: flex; flex-direction: column;
  align-items: center; gap: 5px; font: inherit; }
.choice-card:hover { border-color: var(--gold-500); background: #fff; }
.choice-card.selected { border-color: var(--navy-900); background: var(--gold-100); }
.choice-card .cc-ico { font-size: 1.5rem; line-height: 1; }
.choice-card .cc-label { font-size: .8rem; font-weight: 600; color: var(--ink-900); line-height: 1.2; }

.chip-wrap { display: flex; flex-wrap: wrap; gap: 7px; max-height: 168px; overflow-y: auto; padding: 2px; }
.chip { border: 1.5px solid var(--line); border-radius: 20px; padding: 6px 13px; font-size: .84rem;
  cursor: pointer; background: #fafbfd; transition: .12s; font: inherit; white-space: nowrap; }
.chip:hover { border-color: var(--gold-500); }
.chip.on { border-color: var(--navy-900); background: var(--navy-900); color: #fff; font-weight: 600; }

/* Eşleşme skoru rozeti (üye kartı — Fable farkı) */
.match-chip { font-size: .68rem; font-weight: 800; padding: 2px 8px; border-radius: 7px; white-space: nowrap; }
.match-chip.m-hi { background: #E2F3EA; color: var(--ok); }
.match-chip.m-mid { background: var(--gold-100); color: var(--gold-600); }
.match-chip.m-lo { background: #EDEFF4; color: var(--ink-500); }
.homefilters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
@media (min-width: 768px) { .homefilters { grid-template-columns: repeat(4, 1fr); } }
.homefilters .form-select { background-color: var(--card); font-size: .85rem; }
.see-all { margin-left: auto; font-size: .78rem; font-weight: 700; color: var(--gold-600); text-decoration: none; }

/* ---------- partner kuruluşlar & duyurular ---------- */
.pbadge { color: #fff; font-weight: 800; font-size: .62rem; border-radius: 6px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center; letter-spacing: .3px; white-space: nowrap; }
.plogo { object-fit: contain; border-radius: 4px; background: transparent; }
/* koyu zeminlerde menüdeki gibi beyaz logo (kutu yok) */
.ann-banner .plogo { filter: brightness(0) invert(1); }
.partner-line { display: flex; align-items: center; gap: 6px; color: var(--gold-600); font-weight: 600; }
.partner-strip { display: flex; align-items: center; gap: 10px; background: var(--gold-100);
  border: 1px solid var(--gold-500); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; font-size: .86rem; }
.ann-banner { display: flex; align-items: center; gap: 10px; background: linear-gradient(90deg, #1B2A4A, #24365e);
  color: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; text-decoration: none; font-size: .86rem; }
.ann-banner:hover { color: #fff; filter: brightness(1.08); }
.ann-banner .ab-type { background: var(--gold-500); color: #1B2A4A; border-radius: 8px; padding: 2px 8px;
  font-weight: 700; font-size: .72rem; white-space: nowrap; }
.ann-banner .ab-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ann-banner .ab-more { margin-left: auto; color: var(--gold-500); font-weight: 700; white-space: nowrap; }
.ann-card { border-left: 3px solid var(--line); }
.ann-pinned { border-left-color: var(--gold-500); }

/* ---------- organizasyon detay bilgi kutuları (60+ kullanıcı: büyük, net) ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 6px; }
.info-box { background: #f4f6fa; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  display: flex; align-items: center; gap: 11px; }
.info-ic { font-size: 1.9rem; line-height: 1; flex-shrink: 0; }
.info-txt { min-width: 0; }
.info-label { font-size: .72rem; color: var(--navy-700, #4a5a7a); font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.info-val { font-size: 1.02rem; font-weight: 700; color: var(--navy-900); margin: 2px 0; }

/* ---------- profil tamamlama uyarısı + yönlendirici boş durum ---------- */
.profile-nudge { display:flex; align-items:center; gap:12px; background:var(--gold-100); border:1px solid var(--gold-500);
  border-radius:12px; padding:11px 15px; margin-bottom:12px; text-decoration:none; color:var(--ink); }
.profile-nudge:hover { filter:brightness(.98); color:var(--ink); }
.profile-nudge .pn-ic { font-size:1.6rem; flex-shrink:0; }
.profile-nudge .pn-txt { font-size:.86rem; line-height:1.35; }
.profile-nudge .pn-go { margin-left:auto; color:var(--gold-600); font-weight:800; white-space:nowrap; }
.empty-state { text-align:center; padding:34px 18px; color:var(--mut,#6a7588); }
.empty-state .es-ic { font-size:2.6rem; }
.empty-state .es-title { font-size:1.02rem; font-weight:700; color:var(--navy-900); margin-top:6px; }
.empty-state .es-desc { font-size:.88rem; max-width:420px; margin:5px auto 0; }

/* ---------- tıkla-ara, WhatsApp paylaş, relatif zaman ---------- */
.tel-link { color:var(--navy-900,#1B2A4A); font-weight:600; text-decoration:none; white-space:nowrap; }
.tel-link:hover { text-decoration:underline; }
.wa-share { background:#25D366; color:#fff; font-weight:700; font-size:.78rem; padding:3px 11px; border-radius:18px;
  text-decoration:none; white-space:nowrap; }
.wa-share:hover { color:#fff; filter:brightness(.95); }
.ago { color:var(--gold-600,#a8851f); font-weight:600; }

/* ---------- üye kartı: faaliyet özeti + etiketler ---------- */
.member-card .member-about { font-size:.84rem; color:var(--ink,#222a36); margin-top:3px;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.member-card .member-tags { display:flex; flex-wrap:wrap; gap:5px; margin-top:6px; }
.member-card .member-tags .tag { background:var(--soft,#f4f6fa); border:1px solid var(--line); border-radius:14px;
  padding:1px 9px; font-size:.74rem; color:var(--navy-900,#1B2A4A); }

/* ---------- ilan iletişim modu seçimi ---------- */
.contact-mode { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:6px; }
.contact-mode .cm-opt { display:flex; gap:8px; align-items:flex-start; border:1.5px solid var(--line); border-radius:11px;
  padding:10px 12px; cursor:pointer; background:#fafbfd; }
.contact-mode .cm-opt:has(input:checked) { border-color:var(--gold-500); background:var(--gold-100); }
.contact-mode .cm-opt input { margin-top:3px; }
@media (max-width:600px){ .contact-mode { grid-template-columns:1fr; } }

/* ---------- yasal sayfalar (KVKK / şartlar) ---------- */
.legal-card .legal-body { font-size:.9rem; line-height:1.55; max-height:70vh; overflow-y:auto; }
.legal-card .legal-body h3 { font-size:.96rem; color:var(--navy-900,#1B2A4A); margin:14px 0 4px; }
.legal-card .legal-body p { margin:4px 0 8px; }

/* ---------- aktif / süresi dolmuş ilan ayracı ---------- */
.list-divider { display:flex; align-items:center; gap:12px; margin:22px 0 12px; color:var(--mut,#6a7588); }
.list-divider::before, .list-divider::after { content:''; flex:1; height:1px; background:var(--line); }
.list-divider span { font-weight:700; font-size:.86rem; white-space:nowrap; }
.grid-cards.faded { opacity:.72; }
.grid-cards.faded .dcard { background:#fbfbfc; }

/* ---------- talepler sayfası hızlı erişim çubuğu ---------- */
.hub-actions { display:flex; flex-wrap:wrap; gap:8px; }
.hub-actions .btn { font-weight:600; }

/* ---------- heyet/fuar yatay-kaydırmalı satırlar ---------- */
.ev-rowhead { margin:18px 0 8px; }
.ev-rowtitle { font-size:1.05rem; font-weight:800; color:var(--navy-900,#1B2A4A); text-decoration:none; display:inline-flex; align-items:center; gap:8px; }
.ev-rowtitle:hover { color:var(--gold-600,#a8851f); }
.ev-rowtitle .ev-rowgo { font-size:.8rem; font-weight:700; color:var(--gold-600,#a8851f); }
.hscroll { display:flex; gap:12px; overflow-x:auto; padding:2px 2px 10px; scroll-snap-type:x proximity; -webkit-overflow-scrolling:touch; }
.hscroll-item { flex:0 0 290px; max-width:290px; scroll-snap-align:start; }
.hscroll-item .dcard { height:100%; }
.hscroll::-webkit-scrollbar { height:8px; }
.hscroll::-webkit-scrollbar-thumb { background:var(--line); border-radius:8px; }
@media (max-width:480px){ .hscroll-item { flex-basis:78vw; max-width:78vw; } }

/* ---------- destek & duyurular 3 sütun ---------- */
.ann-cols { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; align-items:start; }
.ann-col { min-width:0; }
.ann-coltitle { display:flex; align-items:center; gap:8px; font-size:1rem; font-weight:800; color:var(--navy-900,#1B2A4A);
  text-decoration:none; padding-bottom:8px; border-bottom:2px solid var(--gold-500,#C9A227); margin-bottom:10px; }
.ann-coltitle:hover { color:var(--gold-600,#a8851f); }
.ann-collist { display:flex; flex-direction:column; gap:10px; }
@media (max-width:840px){ .ann-cols { grid-template-columns:1fr; } }

/* ---------- bülten kayıt seçenekleri ---------- */
.nl-opt { display:flex; gap:10px; align-items:flex-start; border:1.5px solid var(--line); border-radius:11px;
  padding:10px 12px; cursor:pointer; background:#fafbfd; margin-bottom:8px; }
.nl-opt:has(input:checked) { border-color:var(--gold-500,#C9A227); background:var(--gold-100,#faf3dd); }
.nl-opt input { margin-top:4px; }

/* ---------- profil ülke bölge grupları ---------- */
.region-group { margin-bottom:10px; }
.region-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:4px; }
.region-head b { color:var(--navy-900,#1B2A4A); }
.region-all { color:var(--gold-600,#a8851f); font-weight:700; text-decoration:none; white-space:nowrap; }
.region-group .chip-wrap { max-height:none; }

/* ---------- kutucuklu tercih listesi + ülke bölge akordeonu ---------- */
.check-list { border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.check-row { display:flex; align-items:center; gap:9px; padding:8px 12px; margin:0; cursor:pointer;
  border-bottom:1px solid var(--line); font-size:.9rem; }
.check-row:last-child { border-bottom:0; }
.check-row:hover { background:var(--soft,#f5f7fb); }
.check-row input[type=checkbox] { width:17px; height:17px; flex-shrink:0; accent-color:var(--gold-600,#a8851f); }
.flagimg { width:20px; height:15px; object-fit:cover; border-radius:2px; box-shadow:0 0 0 1px rgba(0,0,0,.08); flex-shrink:0; }

.region-acc { border:1px solid var(--line); border-radius:10px; margin-bottom:8px; overflow:hidden; }
.region-bar { display:flex; align-items:center; gap:9px; padding:9px 12px; cursor:pointer; background:#fafbfd; user-select:none; }
.region-bar:hover { background:var(--soft,#f5f7fb); }
.region-bar input.region-check { width:17px; height:17px; accent-color:var(--gold-600,#a8851f); }
.region-name { font-weight:700; color:var(--navy-900,#1B2A4A); flex:1; font-size:.9rem; }
.region-caret { transition:transform .15s; color:var(--mut,#6a7588); }
.region-acc.open .region-caret { transform:rotate(180deg); }
.region-body { display:none; border-top:1px solid var(--line); max-height:260px; overflow-y:auto; }
.region-acc.open .region-body { display:block; }
.region-body .check-row { border-bottom:1px solid #eef1f6; }

/* ---------- duyuru kartı gradyan başlıkta partner logosu ---------- */
.dvisual .dvlogo { height:30px; max-width:60%; object-fit:contain; filter: brightness(0) invert(1); }
/* son tarih çipi HER ZAMAN zeminin en sağ altında — logo çipe taşmasın (geniş kurum logoları) */
.dvchip { z-index: 2; }
.dvisual:has(.dvchip) .dvemoji { transform: translateY(-9px); }
.dvflag { max-width: 68%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- ana ekrana ekle önerisi (yalnız mobil, login) ---------- */
#installPrompt { margin-top: 12px; }
.install-cta { display: block; width: 100%; text-align: left; border: 1.5px solid var(--gold-500, #C9A227);
  background: var(--gold-100, #faf3dd); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.install-cta .ic-title { font-weight: 800; color: var(--navy-900, #1B2A4A); font-size: .98rem; }
.install-cta .ic-desc { font-size: .82rem; color: var(--ink, #333); margin-top: 2px; }
.install-btn:active { filter: brightness(.97); }

/* ---------- ana ekrana ekle rehber adımları ---------- */
.install-steps { margin: 4px 0 6px; padding-left: 20px; }
.install-steps li { margin: 6px 0; font-size: .9rem; line-height: 1.4; }

/* ---------- ilgi süreç timeline'ı (kapalı döngü görseli) ---------- */
.track { display: flex; align-items: flex-start; gap: 0; margin: 8px 0 2px; }
.track .tk { flex: 1; text-align: center; position: relative; min-width: 0; }
.track .tk::before { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px;
  background: #dde3ee; z-index: 0; }
.track .tk:first-child::before { display: none; }
.track .tk-dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%;
  background: #eef1f7; color: #97a1b5; border: 2px solid #dde3ee; font-size: .74rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; }
.track .tk-lbl { display: block; font-size: .68rem; color: #97a1b5; margin-top: 3px; line-height: 1.2; font-weight: 600; }
.track .tk.done .tk-dot { background: var(--ok); color: #fff; border-color: var(--ok); }
.track .tk.done::before { background: var(--ok); }
.track .tk.done .tk-lbl { color: var(--ok); }
.track .tk.now .tk-dot { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500);
  box-shadow: 0 0 0 4px var(--gold-100); }
.track .tk.now .tk-lbl { color: var(--gold-600); font-weight: 800; }
.track .tk.neg .tk-dot { background: #C0392B; color: #fff; border-color: #C0392B; }
.track .tk.neg::before { background: #e7b6b0; }
.track .tk.neg .tk-lbl { color: #C0392B; }

/* ---------- mobil sabit aksiyon barı (detay sayfası) ---------- */
.mobile-actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
  display: flex; gap: 4px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line, #e2e7f0); box-shadow: 0 -3px 14px rgba(20,30,55,.1); }
.mab-btn { flex: 1; border: 0; background: #f4f6fb; border-radius: 11px; padding: 7px 4px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 1.1rem; color: var(--navy-900); }
.mab-btn small { font-size: .64rem; font-weight: 700; }
.mab-btn.on { background: var(--gold-100); color: var(--gold-600); }
.mab-btn:active { filter: brightness(.96); }
.mab-spacer { height: 70px; }

/* ---------- GM giriş: bekleyen iş aksiyon kartları ---------- */
.gm-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.gm-act { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold-500);
  border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--ink-900);
  display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 4px 10px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04); transition: border-color .12s, transform .12s; }
.gm-act:hover { border-color: var(--gold-500); transform: translateY(-1px); color: var(--ink-900); }
.gm-act .bi { font-size: 1.3rem; color: var(--navy-900); grid-row: span 2; }
.gm-act .ga-n { font-size: 1.45rem; font-weight: 800; color: var(--navy-900); line-height: 1; }
.gm-act .ga-l { font-size: .74rem; font-weight: 700; color: var(--ink-500); grid-column: 2 / 4; }
.gm-act .ga-go { font-size: .72rem; font-weight: 800; color: var(--gold-600); text-align: right; }

/* ---------- GM aksiyon kuyruğu (mini-CRM iş listesi) ---------- */
.aq-panel { border: 1px solid var(--line, #e2e7f0); border-left: 4px solid var(--gold-500);
  border-radius: 12px; padding: 12px 14px; margin: 12px 0; background: #fff; }
.aq-panel.aq-ok { color: var(--ok); font-weight: 600; font-size: .9rem; }
.aq-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.aq-chip { background: #eef1f7; color: var(--navy-900); border-radius: 999px; padding: 3px 11px; font-size: .78rem; }
.aq-chip.aq-danger { background: #fbe6e3; color: #C0392B; }
.aq-sec { font-size: .8rem; font-weight: 800; color: var(--navy-900); margin: 10px 0 4px; }
.aq-row { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px dashed var(--line, #e2e7f0);
  text-decoration: none; color: var(--ink, #222a36); }
.aq-row:last-child { border-bottom: 0; }
.aq-row:hover { background: #f6f8fc; }
.aq-row.sla { background: #fdf2f0; }
.aq-co { font-weight: 700; font-size: .82rem; white-space: nowrap; max-width: 34%; overflow: hidden; text-overflow: ellipsis; }
.aq-tt { flex: 1; font-size: .82rem; color: #51607a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.aq-meta { font-size: .72rem; color: #8a93a6; white-space: nowrap; display: flex; align-items: center; gap: 3px; }
.aq-miss { background: #fbe6e3; color: #C0392B; border-radius: 6px; padding: 1px 6px; font-weight: 700; }

/* ---------- rapor KPI kartları (yönetici karar metriği) ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 14px; }
.kpi-card { background: #fff; border: 1px solid var(--line, #e2e7f0); border-top: 3px solid var(--gold-500);
  border-radius: 11px; padding: 10px 8px; text-align: center; }
.kpi-ic { font-size: 1.15rem; }
.kpi-val { font-size: 1.05rem; font-weight: 800; color: var(--navy-900); line-height: 1.15; margin: 2px 0; }
.kpi-lbl { font-size: .68rem; color: #8a93a6; font-weight: 600; line-height: 1.15; }
@media (max-width: 991px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- üye ana ekran: ilgilendiklerim son durum ---------- */
.mi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 6px; }
.mi-card { background: #fff; border: 1px solid var(--line, #e2e7f0); border-radius: 11px; padding: 10px 12px;
  text-decoration: none; color: var(--ink, #222a36); display: block; }
.mi-card:hover { border-color: var(--gold-500); }
.mi-card.upd { border-left: 3px solid var(--ok); }
.mi-tt { font-weight: 700; font-size: .84rem; color: var(--navy-900); line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 991px) { .mi-row { grid-template-columns: repeat(2, 1fr); } }
