/* KMTSO Üye Portalı */
:root {
    --portal-lacivert: #1e3a5f;
    --portal-lacivert-koyu: #152b47;
    --portal-kirmizi: #c8102e;
    --portal-zemin: #f3f5f8;
    --portal-kenar: #e3e8ef;
    --portal-metin: #1f2d3d;
    --portal-soluk: #6b7785;
}

body { background: var(--portal-zemin); color: var(--portal-metin); }
body.portal-dis { min-height: 100vh; background: linear-gradient(160deg, #eef2f7 0%, #dfe7f1 100%); }
a { color: var(--portal-lacivert); }

/* Üst menü */
.portal-nav { background: var(--portal-lacivert); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12); }
.portal-nav .navbar-brand { color: #fff; font-weight: 600; }
.portal-nav .navbar-brand img { background: #fff; border-radius: 6px; padding: 2px 4px; }
.portal-nav .nav-link { color: rgba(255, 255, 255, 0.78); border-radius: 6px; padding: 0.45rem 0.75rem !important; }
.portal-nav .nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.portal-nav .nav-link.active { color: #fff; background: rgba(255, 255, 255, 0.16); }
.portal-nav .navbar-toggler { border-color: rgba(255, 255, 255, 0.4); }
.portal-nav .navbar-toggler-icon { filter: invert(1); }
.portal-kullanici { color: rgba(255, 255, 255, 0.85); max-width: 100%; }
.portal-kullanici .text-truncate { max-width: 260px; }
@media (max-width: 991.98px) {
    .portal-kullanici { padding: 0.75rem 0 0.25rem; border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 0.5rem; justify-content: space-between; }
}

/* Giriş */
.giris-kutu { max-width: 440px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 2rem 1.75rem;
              box-shadow: 0 10px 40px rgba(30, 58, 95, 0.12); }
@media (max-width: 575.98px) { .giris-kutu { padding: 1.5rem 1.1rem; border-radius: 12px; } }
.giris-logo { max-width: 140px; height: auto; }
.giris-adimlar { display: flex; list-style: none; padding: 0; margin: 0 0 1.5rem; gap: 0.35rem; counter-reset: adim; }
.giris-adimlar li { flex: 1; text-align: center; font-size: 0.78rem; color: var(--portal-soluk); padding-top: 0.5rem;
                    border-top: 3px solid var(--portal-kenar); counter-increment: adim; }
.giris-adimlar li::before { content: counter(adim) ". "; }
.giris-adimlar li.aktif { border-color: var(--portal-lacivert); color: var(--portal-lacivert); font-weight: 600; }
.giris-adimlar li.tamam { border-color: #7fa6d3; color: #4a6f99; }
.kanal-secenek { cursor: pointer; }
.kanal-secenek:has(input:checked) { background: #eef4fb; border-color: #9dbbe0; }
.kod-girisi { letter-spacing: 0.6em; font-size: 1.6rem; font-weight: 600; }

/* İç sayfalar */
.sayfa-baslik { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1.25rem; }
.sayfa-baslik h1 { font-size: 1.35rem; margin: 0; }
.kart { background: #fff; border: 1px solid var(--portal-kenar); border-radius: 12px; padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.kart-baslik { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--portal-soluk);
               margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.ozet-kutu { background: #fff; border: 1px solid var(--portal-kenar); border-radius: 12px; padding: 1rem 1.1rem; height: 100%; }
.ozet-kutu .etiket { font-size: 0.78rem; color: var(--portal-soluk); }
.ozet-kutu .deger { font-size: 1.45rem; font-weight: 700; line-height: 1.25; margin-top: 0.15rem; }
.ozet-kutu.uyari { border-color: #f1b5bf; background: #fff6f7; }
.ozet-kutu.uyari .deger { color: var(--portal-kirmizi); }
.ozet-kutu.iyi .deger { color: #1b7f4b; }
.tablo-kart { padding: 0; overflow: hidden; }
.tablo-kart .table { margin: 0; font-size: 0.9rem; }
.tablo-kart .table th { background: #f7f9fb; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--portal-soluk);
                        font-weight: 600; white-space: nowrap; }
.tablo-kart .table td, .tablo-kart .table th { padding: 0.6rem 0.9rem; vertical-align: middle; }
.tablo-kart tfoot td { background: #f7f9fb; font-weight: 700; }
.satir-gecikmis td { background: #fff4f5; }
.alan-listesi dt { font-weight: 500; color: var(--portal-soluk); font-size: 0.88rem; }
.alan-listesi dd { margin-bottom: 0.5rem; word-break: break-word; }
.bos-durum { text-align: center; color: var(--portal-soluk); padding: 2rem 1rem; }
.bos-durum i { font-size: 2rem; opacity: 0.4; display: block; margin-bottom: 0.5rem; }

/* Dar ekranda tablo satırları kart gibi */
@media (max-width: 575.98px) {
    .tablo-mobil thead { display: none; }
    .tablo-mobil tr { display: block; border-bottom: 1px solid var(--portal-kenar); padding: 0.4rem 0; }
    .tablo-mobil td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: 0.25rem 0.9rem !important; text-align: right; }
    .tablo-mobil td::before { content: attr(data-etiket); color: var(--portal-soluk); font-size: 0.8rem; text-align: left; }
    .tablo-mobil tfoot tr { display: block; }
    .tablo-mobil tfoot td { display: flex; justify-content: space-between; }
}
.giris-veya { display: flex; align-items: center; gap: 0.75rem; color: var(--portal-soluk); font-size: 0.8rem; margin: -0.25rem 0 0.75rem; }
.giris-veya::before, .giris-veya::after { content: ""; flex: 1; border-top: 1px solid var(--portal-kenar); }

/* Duyurular ve kampanyalar */
.duyuru-kart { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--portal-kenar); border-radius: 12px;
               overflow: hidden; color: var(--portal-metin); text-decoration: none; transition: box-shadow 0.15s, transform 0.15s; }
.duyuru-kart:hover { box-shadow: 0 6px 20px rgba(30, 58, 95, 0.12); transform: translateY(-1px); color: var(--portal-metin); }
.duyuru-kart.yeni { border-color: #9dbbe0; }
.duyuru-kart-gorsel { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; background: #eef2f7; }
.duyuru-kart-govde { padding: 0.85rem 1rem 1rem; }
.duyuru-detay { max-width: 860px; }
.duyuru-detay-gorsel { width: 100%; max-height: 420px; object-fit: contain; border-radius: 10px; background: #f7f9fb; }
.duyuru-metin { line-height: 1.7; word-break: break-word; }

/* Kampanya QR */
.kampanya-qr { border: 2px dashed #f0c36d; background: #fffdf6; }
.kampanya-qr-gorsel { width: 240px; max-width: 80%; height: auto; background: #fff; padding: 12px; border-radius: 12px; border: 1px solid var(--portal-kenar); image-rendering: pixelated; }
.dogrula-durum { border-radius: 16px; padding: 1.5rem; text-align: center; color: #fff; }
.dogrula-durum.gecerli { background: #1b7f4b; }
.dogrula-durum.gecersiz { background: var(--portal-kirmizi); }
.dogrula-durum i { font-size: 3rem; display: block; margin-bottom: 0.5rem; }

/* Uygulama tanıtımı */
.uygulama-tanitim { border-color: #b9cde6; background: #f2f7fd; }
.uygulama-tanitim:hover { background: #e8f1fb; }

/* Meslek grubum — üst bant */
.mg-bant { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; color: #fff; border-radius: 16px;
           padding: 1.75rem 2rem; background: linear-gradient(120deg, var(--portal-lacivert-koyu) 0%, var(--portal-lacivert) 55%, #2b5486 100%);
           box-shadow: 0 10px 30px rgba(21, 43, 71, 0.18); position: relative; overflow: hidden; }
.mg-bant::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
                  border: 28px solid rgba(255, 255, 255, 0.05); pointer-events: none; }
.mg-bant-sol { display: flex; align-items: center; gap: 1.25rem; min-width: 0; flex: 1 1 420px; }
.mg-no { width: 78px; height: 78px; border-radius: 18px; background: #fff; color: var(--portal-lacivert); font-size: 2.1rem; font-weight: 800;
         display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: inset 0 -4px 0 var(--portal-kirmizi); }
.mg-ust-etiket { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.mg-baslik { font-size: 1.6rem; font-weight: 700; margin: 0.1rem 0 0.15rem; }
.mg-alt { opacity: 0.85; font-size: 0.95rem; }
.mg-etiketler { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.65rem; }
.mg-cip { font-size: 0.78rem; padding: 0.25rem 0.65rem; border-radius: 999px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18); }
.mg-cip-vurgu { background: #1b7f4b; border-color: #1b7f4b; }
.mg-istatistik { display: flex; gap: 0.75rem; position: relative; z-index: 1; }
.mg-istatistik > div { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 12px; padding: 0.7rem 1.1rem;
                       min-width: 104px; text-align: center; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.mg-istatistik span { display: block; font-size: 1.6rem; font-weight: 700; letter-spacing: 0; text-transform: none; line-height: 1.2; }
@media (max-width: 575.98px) {
    .mg-bant { padding: 1.25rem; }
    .mg-no { width: 60px; height: 60px; font-size: 1.6rem; }
    .mg-baslik { font-size: 1.3rem; }
    .mg-istatistik { width: 100%; }
    .mg-istatistik > div { flex: 1; min-width: 0; padding: 0.6rem 0.4rem; }
}

/* Bölüm başlıkları */
.bolum-baslik { border-left: 4px solid var(--portal-kirmizi); padding-left: 0.85rem; margin: 0.5rem 0 1rem; }
.bolum-baslik h2 { font-size: 1.15rem; font-weight: 700; margin: 0; color: var(--portal-lacivert); }
.bolum-baslik span { font-size: 0.85rem; color: var(--portal-soluk); }
.alt-bolum { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--portal-soluk); margin: 0.25rem 0 0.6rem; }

/* Komite yönetimi (başkan, başkan yardımcısı) */
.yonetim-kart { display: flex; align-items: center; gap: 1.25rem; height: 100%; background: #fff; border: 1px solid var(--portal-kenar);
                border-radius: 14px; padding: 1.25rem 1.4rem; border-top: 4px solid #8fa8c8; }
.yonetim-kart.baskan { border-top-color: var(--portal-kirmizi); box-shadow: 0 6px 22px rgba(30, 58, 95, 0.08); }
.yonetim-foto { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--portal-kenar), 0 4px 12px rgba(30, 58, 95, 0.15); }
.yonetim-ad { font-size: 1.15rem; font-weight: 700; color: var(--portal-metin); margin: 0.35rem 0 0.2rem; }
.gorev-rozet { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.2rem 0.6rem;
               border-radius: 6px; background: #eef3f9; color: var(--portal-lacivert); }
.yonetim-kart.baskan .gorev-rozet { background: var(--portal-lacivert); color: #fff; }
.min-w-0 { min-width: 0; }

/* Rehber kartı (komite üyesi, meclis temsilcisi) */
.rehber-kart { display: flex; align-items: flex-start; gap: 0.9rem; background: #fff; border: 1px solid var(--portal-kenar); border-radius: 12px; padding: 1rem 1.1rem;
               transition: box-shadow 0.15s ease, border-color 0.15s ease; }
.rehber-kart:hover { border-color: #c9d6e6; box-shadow: 0 4px 16px rgba(30, 58, 95, 0.07); }
.rehber-foto { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--portal-kenar); }
.rehber-bilgi { min-width: 0; }
.rehber-ad { font-weight: 700; line-height: 1.25; }
.rehber-gorev { font-size: 0.78rem; color: var(--portal-lacivert); font-weight: 600; margin-top: 0.1rem; }
.rehber-firma { font-size: 0.8rem; color: var(--portal-soluk); margin-top: 0.3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rehber-tel { margin-top: 0.4rem; }
.rehber-tel a { color: var(--portal-metin); }
.rehber-tel a:hover { color: var(--portal-lacivert); }
.kisi-bas-harf { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e6edf6, #d3dfee); color: var(--portal-lacivert);
                 font-weight: 700; font-size: 1.3rem; letter-spacing: 0.02em; }
.yonetim-foto.kisi-bas-harf { font-size: 2rem; }

/* Yedekler */
.yedek-liste { padding: 0.75rem 1.25rem 0.75rem 2.5rem; columns: 2 320px; column-gap: 2rem; }
.yedek-liste li { padding: 0.35rem 0; break-inside: avoid; font-size: 0.9rem; }

/* Firma rehberi */
.rehber-ara { position: relative; width: 300px; max-width: 100%; }
.rehber-ara i { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); color: var(--portal-soluk); font-size: 0.85rem; }
.rehber-ara input { padding-left: 2.2rem; border-radius: 999px; }
.grup-tablo { max-height: 680px; overflow: auto; }
.firma-tablo thead th { position: sticky; top: 0; z-index: 1; background: var(--portal-lacivert) !important; color: #fff !important; border-bottom: 0; }
.firma-tablo tbody tr:nth-child(even) td { background: #fafbfd; }
.firma-tablo tbody tr:hover td { background: #f1f5fa; }
.firma-tablo .sira-no { width: 52px; color: var(--portal-soluk); font-variant-numeric: tabular-nums; text-align: right; }
.firma-tablo thead .sira-no { color: rgba(255, 255, 255, 0.7) !important; }
.firma-tablo tr.kendi-firma td { background: #eaf2fc !important; }
.firma-tablo tr.kendi-firma td:first-child { box-shadow: inset 4px 0 0 var(--portal-lacivert); }
.firma-tablo a { text-decoration: none; }
.nace-kod { font-variant-numeric: tabular-nums; background: #eef3f9; color: var(--portal-lacivert); border-radius: 6px; padding: 0.1rem 0.45rem; font-size: 0.85rem; cursor: help; }
@media (max-width: 575.98px) {
    .firma-tablo .sira-no { display: none !important; }
    .rehber-ara { width: 100%; }
    .yonetim-kart { padding: 1rem; gap: 1rem; }
    .yonetim-foto { width: 72px; height: 72px; }
    .yonetim-foto.kisi-bas-harf { font-size: 1.5rem; }
    .yonetim-ad { font-size: 1.05rem; }
}

/* ================================================================== */
/* Uygulama düzeni: zil/rozetler, telefon üst çubuğu, alt sekmeler      */
/* ================================================================== */
body { -webkit-tap-highlight-color: transparent; }
.portal-rozet { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
                background: var(--portal-kirmizi); color: #fff; font-size: 0.68rem; font-weight: 700; line-height: 1; box-shadow: 0 0 0 2px #fff; }
.portal-rozet.satir-ici { box-shadow: none; vertical-align: 1px; }
.portal-zil { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
              color: #fff; font-size: 1.1rem; text-decoration: none; flex-shrink: 0; }
.portal-zil:hover, .portal-zil.active { color: #fff; background: rgba(255, 255, 255, 0.14); }
.portal-zil .portal-rozet { position: absolute; top: 1px; right: -2px; box-shadow: 0 0 0 2px var(--portal-lacivert); }

/* Sayfa geçiş çubuğu */
.portal-yukleniyor { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 2000; background: var(--portal-kirmizi); opacity: 0; pointer-events: none; }
.portal-yukleniyor.aktif { opacity: 1; width: 85%; transition: width 2.5s cubic-bezier(0.1, 0.7, 0.2, 1); }

/* Telefon üst çubuğu */
.portal-mobil-ust { position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; gap: 0.6rem; background: var(--portal-lacivert); color: #fff;
                    padding: calc(0.45rem + env(safe-area-inset-top)) calc(0.75rem + env(safe-area-inset-right)) 0.45rem calc(0.75rem + env(safe-area-inset-left));
                    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15); min-height: 54px; }
.portal-mobil-logo img { height: 32px; background: #fff; border-radius: 6px; padding: 2px 4px; display: block; }
.portal-mobil-baslik { flex: 1; font-weight: 600; font-size: 1.02rem; min-width: 0; }
.portal-geri { border: 0; background: transparent; color: #fff; width: 32px; height: 38px; margin-right: -0.35rem; font-size: 1.1rem; }

/* Alt sekmeler */
.portal-alt-menu { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; background: rgba(255, 255, 255, 0.97);
                   backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
                   border-top: 1px solid var(--portal-kenar); box-shadow: 0 -4px 18px rgba(30, 58, 95, 0.08);
                   padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.portal-alt-menu a, .portal-alt-menu button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
                   padding: 7px 2px 6px; color: var(--portal-soluk); text-decoration: none; border: 0; background: transparent; font-size: 0.68rem; min-height: 58px; }
.portal-alt-menu .ikon { position: relative; font-size: 1.2rem; line-height: 1; padding: 4px 16px; border-radius: 999px; transition: background 0.15s; }
.portal-alt-menu .ikon .portal-rozet { position: absolute; top: -4px; right: 4px; }
.portal-alt-menu .active { color: var(--portal-lacivert); font-weight: 700; }
.portal-alt-menu .active .ikon { background: #e4ecf6; }
@media (max-width: 1199.98px) {
    body.portal-ic { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
    body.portal-ic .portal-icerik { padding-left: calc(0.85rem + env(safe-area-inset-left)); padding-right: calc(0.85rem + env(safe-area-inset-right)); }
    body.portal-ic .sayfa-baslik { margin-bottom: 0.9rem; }
    body.portal-ic .sayfa-baslik h1 { font-size: 1.15rem; }
}
@media (display-mode: standalone) {
    body.portal-ic { overscroll-behavior-y: none; }
    .portal-altbilgi { display: none; }
}

/* Menü paneli (telefon) */
.portal-menu-panel { height: auto !important; max-height: 85vh; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); }
.portal-menu-panel .offcanvas-header { padding-bottom: 0.75rem; }
.portal-menu-izgara { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.portal-menu-izgara a { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; text-align: center; padding: 0.85rem 0.35rem; border-radius: 12px;
                        background: var(--portal-zemin); color: var(--portal-metin); text-decoration: none; font-size: 0.78rem; line-height: 1.2; }
.portal-menu-izgara a i { font-size: 1.3rem; color: var(--portal-lacivert); }
.portal-menu-izgara a.active { background: #e4ecf6; font-weight: 700; }

/* Yeni bildirim uyarısı */
.portal-toast-kap { top: calc(60px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(420px, 100%); z-index: 1090; }
.portal-toast { width: 100%; border: 0; border-radius: 14px; box-shadow: 0 10px 30px rgba(21, 43, 71, 0.25); }
.portal-toast .toast-body { color: var(--portal-metin); }
.portal-toast-ikon { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
                     background: var(--portal-lacivert); color: #fff; }
@media (min-width: 1200px) { .portal-toast-kap { top: 70px; left: auto; right: 1rem; transform: none; } }

/* Bildirim merkezi */
.filtre-cipleri { display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filtre-cipleri::-webkit-scrollbar { display: none; }
.filtre-cipleri a { flex-shrink: 0; padding: 0.35rem 0.85rem; border-radius: 999px; border: 1px solid var(--portal-kenar); background: #fff;
                    color: var(--portal-metin); font-size: 0.85rem; text-decoration: none; }
.filtre-cipleri a.active { background: var(--portal-lacivert); border-color: var(--portal-lacivert); color: #fff; }
.bildirim-liste { background: #fff; border: 1px solid var(--portal-kenar); border-radius: 14px; overflow: hidden; }
.bildirim-gun { padding: 0.5rem 1rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--portal-soluk);
                background: #f7f9fb; border-bottom: 1px solid var(--portal-kenar); }
.bildirim-satir { display: flex; align-items: flex-start; gap: 0.85rem; padding: 0.85rem 1rem; border-bottom: 1px solid var(--portal-kenar);
                  color: var(--portal-metin); text-decoration: none; position: relative; }
.bildirim-satir:last-child { border-bottom: 0; }
.bildirim-satir:hover { background: #f8fafc; color: var(--portal-metin); }
.bildirim-satir.yeni { background: #f2f7fd; }
.bildirim-ikon { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.bildirim-govde { flex: 1; min-width: 0; display: block; }
.bildirim-baslik { font-weight: 600; line-height: 1.3; }
.bildirim-satir.yeni .bildirim-baslik { font-weight: 700; }
.bildirim-saat { font-size: 0.75rem; color: var(--portal-soluk); flex-shrink: 0; }
.bildirim-metin { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.87rem; color: #4a5866; margin-top: 0.15rem; }
.bildirim-etiket { display: inline-block; font-size: 0.7rem; color: var(--portal-soluk); margin-top: 0.25rem; }
.bildirim-nokta { width: 9px; height: 9px; border-radius: 50%; background: var(--portal-kirmizi); flex-shrink: 0; margin-top: 0.4rem; }

/* ================================================================== */
/* Firma bilgileri                                                     */
/* ================================================================== */
.fb-bant { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; color: #fff; border-radius: 18px;
           padding: 1.6rem 1.75rem; background: linear-gradient(120deg, var(--portal-lacivert-koyu) 0%, var(--portal-lacivert) 55%, #2b5486 100%);
           box-shadow: 0 10px 30px rgba(21, 43, 71, 0.18); position: relative; overflow: hidden; }
.fb-bant::after { content: ""; position: absolute; right: -70px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%;
                  border: 30px solid rgba(255, 255, 255, 0.05); pointer-events: none; }
.fb-bant-sol { min-width: 0; flex: 1 1 420px; position: relative; z-index: 1; }
.fb-ust-etiket { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.fb-unvan { font-size: 1.45rem; font-weight: 700; margin: 0.2rem 0 0.1rem; line-height: 1.3; }
.fb-tabela { opacity: 0.85; font-size: 0.95rem; }
.fb-bant .mg-istatistik { position: relative; z-index: 1; }

.fb-kart { padding: 0; overflow: hidden; }
.fb-kart-baslik { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.85rem 1.15rem;
                  border-bottom: 1px solid var(--portal-kenar); font-weight: 700; color: var(--portal-lacivert); }
.fb-kart-baslik > span > i { width: 30px; height: 30px; border-radius: 9px; background: #eef3f9; display: inline-flex; align-items: center;
                             justify-content: center; margin-right: 0.6rem; font-size: 0.85rem; }
.fb-duzelt { font-size: 0.78rem; font-weight: 500; color: var(--portal-soluk); text-decoration: none; white-space: nowrap; padding: 0.25rem 0.55rem;
             border-radius: 999px; }
.fb-duzelt:hover { background: #f1f5fa; color: var(--portal-lacivert); }
.fb-duzelt i { margin-right: 0.3rem; font-size: 0.7rem; }
.fb-kart > p, .fb-kart > .alert { margin: 1rem 1.15rem; }

.fb-alanlar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fb-alan { padding: 0.75rem 1.15rem; border-bottom: 1px solid #eef1f5; min-width: 0; }
.fb-alan:nth-child(odd):not(.genis) { border-right: 1px solid #eef1f5; }
.fb-alan.genis, .fb-alan:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0 !important; }
.fb-etiket { display: block; font-size: 0.74rem; color: var(--portal-soluk); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.fb-deger { display: block; font-weight: 600; margin-top: 0.15rem; word-break: break-word; color: var(--portal-metin); }
.fb-kopyala { border: 0; background: transparent; color: var(--portal-soluk); padding: 0 0.3rem; margin-left: 0.15rem; font-size: 0.85rem; border-radius: 6px; }
.fb-kopyala:hover { color: var(--portal-lacivert); background: #eef3f9; }
.fb-kopyala.tamam { color: #1b7f4b; }

.fb-iletisim { padding: 0.35rem 0; }
.fb-iletisim-satir { display: flex; align-items: center; gap: 0.85rem; padding: 0.6rem 1.15rem; text-decoration: none; color: var(--portal-metin); }
.fb-iletisim-satir:hover { background: #f8fafc; color: var(--portal-metin); }
.fb-ikon { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
           background: #eef3f9; color: var(--portal-lacivert); }
.fb-iletisim-satir .fb-deger { font-weight: 600; }

.fb-adres { padding: 0.9rem 1.15rem; border-bottom: 1px solid #eef1f5; }
.fb-adres:last-child { border-bottom: 0; }

.fb-yetki { display: inline-block; font-size: 0.72rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 6px; background: #eaf6ef; color: #1b7f4b; margin-top: 0.3rem; }

.fb-talep form, .fb-talep > p, .fb-talep > .alert, .fb-talep > .fb-tamam, .fb-talep > .btn { margin-left: 1.15rem; margin-right: 1.15rem; }
.fb-talep form { margin-bottom: 1.15rem; }
.fb-talep > p { margin-top: 0.9rem; }
.fb-talep > .alert { margin-top: 0.9rem; }
.fb-talep > .btn { margin-bottom: 1.15rem; }
.fb-konu-secim { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.fb-konu-secim .btn { border: 1px solid var(--portal-kenar); border-radius: 999px; background: #fff; color: var(--portal-metin); padding: 0.35rem 0.85rem; }
.fb-konu-secim .btn-check:checked + .btn { background: var(--portal-lacivert); border-color: var(--portal-lacivert); color: #fff; }
.fb-tamam { display: flex; align-items: center; gap: 0.9rem; margin-top: 1rem; padding: 1rem; border-radius: 12px; background: #eaf6ef; }
.fb-tamam > i { font-size: 1.8rem; color: #1b7f4b; }

.fb-talepler { padding: 0.25rem 0; }
.fb-talep-satir { display: flex; gap: 0.85rem; padding: 0.75rem 1.15rem; border-bottom: 1px solid #eef1f5; }
.fb-talep-satir:last-child { border-bottom: 0; }
.fb-talep-satir .fb-ikon { width: 34px; height: 34px; border-radius: 10px; font-size: 0.85rem; }

@media (max-width: 575.98px) {
    .fb-bant { padding: 1.25rem; border-radius: 14px; }
    .fb-unvan { font-size: 1.2rem; }
    .fb-bant .mg-istatistik { width: 100%; }
    .fb-bant .mg-istatistik > div { flex: 1; min-width: 0; padding: 0.6rem 0.4rem; }
    .fb-alan { padding: 0.7rem 1rem; border-right: 0 !important; }
    .fb-alan.uzun { grid-column: 1 / -1; border-right: 0 !important; }
    .fb-alanlar { grid-auto-flow: row dense; }
    .fb-alan:last-child:nth-child(odd):not(.genis):not(.uzun) { grid-column: auto; }
    .fb-duzelt span { display: none; }
}

/* Masaüstü menü: dar masaüstünde sıkışmasın */
.portal-nav .nav-link { white-space: nowrap; }
@media (max-width: 1399.98px) {
    .portal-nav .nav-link { padding: 0.45rem 0.5rem !important; font-size: 0.92rem; }
    .portal-nav .portal-kullanici .text-truncate { display: none; }
}
#duzeltme { scroll-margin-top: 80px; }

/* ================================================================== */
/* Borçlarım                                                           */
/* ================================================================== */
.bk-bant { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; color: #fff; border-radius: 18px;
           padding: 1.6rem 1.75rem; background: linear-gradient(120deg, var(--portal-lacivert-koyu) 0%, var(--portal-lacivert) 55%, #2b5486 100%);
           box-shadow: 0 10px 30px rgba(21, 43, 71, 0.18); position: relative; overflow: hidden; }
.bk-bant::after { content: ""; position: absolute; right: -70px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%;
                  border: 30px solid rgba(255, 255, 255, 0.05); pointer-events: none; }
.bk-bant.bk-gecikmeli { background: linear-gradient(120deg, #5a1220 0%, #8e1a2e 50%, var(--portal-kirmizi) 100%); box-shadow: 0 10px 30px rgba(142, 26, 46, 0.25); }
.bk-bant.bk-temiz { justify-content: flex-start; background: linear-gradient(120deg, #13573a 0%, #1b7f4b 60%, #2a9d62 100%); box-shadow: 0 10px 30px rgba(27, 127, 75, 0.2); }
.bk-temiz-ikon { font-size: 2.6rem; opacity: 0.9; position: relative; z-index: 1; }
.bk-bant-sol { min-width: 0; flex: 1 1 380px; position: relative; z-index: 1; }
.bk-ust-etiket { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; }
.bk-tutar { font-size: 2.3rem; font-weight: 800; line-height: 1.15; margin: 0.2rem 0 0.15rem; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
h2.bk-tutar { font-size: 1.6rem; }
.bk-alt { opacity: 0.85; }
.bk-cip-kirmizi { background: rgba(255, 255, 255, 0.95) !important; color: var(--portal-kirmizi); border-color: transparent !important; font-weight: 600; }
.bk-eylem { display: flex; flex-direction: column; align-items: stretch; gap: 0.5rem; position: relative; z-index: 1; min-width: 210px; }
.bk-eylem .btn-light { color: var(--portal-lacivert); border-radius: 12px; }
.bk-gecikmeli .bk-eylem .btn-light { color: var(--portal-kirmizi); }
.bk-link-kart { transition: box-shadow 0.15s, border-color 0.15s; }
.bk-link-kart:hover { border-color: #c9d6e6; box-shadow: 0 4px 16px rgba(30, 58, 95, 0.08); }
.bk-link-kart.fb-kart { padding: 0.85rem 1.15rem; }
.bk-link-kart .etiket i { font-size: 0.7rem; opacity: 0.6; margin-top: 0.2rem; }

.bk-grup-baslik { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; font-weight: 700; color: var(--portal-lacivert);
                  margin: 1.25rem 0 0.6rem; padding: 0 0.25rem; }
.bk-nokta { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 0.5rem; vertical-align: 1px; }
.bk-liste { background: #fff; border: 1px solid var(--portal-kenar); border-radius: 14px; overflow: hidden; }
.bk-satir { display: flex; align-items: center; gap: 1rem; padding: 0.85rem 1.15rem; border-bottom: 1px solid #eef1f5; position: relative; }
.bk-satir:last-child { border-bottom: 0; }
.bk-satir.bk-gecikmis { background: #fff8f9; }
.bk-satir.bk-gecikmis::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--portal-kirmizi); }
.bk-tarih { width: 58px; flex-shrink: 0; text-align: center; border-radius: 12px; padding: 0.4rem 0.2rem; background: #eef3f9; color: var(--portal-lacivert); line-height: 1.1; }
.bk-tarih .gun { display: block; font-size: 1.35rem; font-weight: 800; }
.bk-tarih .ay { display: block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.03em; font-weight: 600; }
.bk-gecikmis .bk-tarih { background: #fde8eb; color: var(--portal-kirmizi); }
.bk-yakin .bk-tarih { background: #fff4dc; color: #8a5a00; }
.bk-govde { flex: 1; min-width: 0; }
.bk-baslik { font-weight: 600; line-height: 1.3; }
.bk-meta { display: flex; flex-wrap: wrap; gap: 0.2rem 0.6rem; font-size: 0.8rem; color: var(--portal-soluk); margin-top: 0.15rem; }
.bk-meta span + span:not(.badge)::before { content: "·"; margin-right: 0.6rem; }
.bk-durum { display: inline-block; margin-top: 0.35rem; font-size: 0.74rem; font-weight: 600; padding: 0.12rem 0.55rem; border-radius: 999px; background: #eef3f9; color: var(--portal-lacivert); }
.bk-durum-gecikmis { background: #fde8eb; color: var(--portal-kirmizi); }
.bk-durum-yakin { background: #fff4dc; color: #8a5a00; }
.bk-tutarlar { text-align: right; flex-shrink: 0; }
.bk-toplam { font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-kirilim { font-size: 0.74rem; color: var(--portal-soluk); white-space: nowrap; }
.bk-alt-toplam { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--portal-kenar);
                 border-radius: 14px; padding: 0.9rem 1.15rem; font-size: 1.05rem; }
.bk-alt-toplam strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }

@media (max-width: 575.98px) {
    .bk-bant { padding: 1.3rem; border-radius: 14px; }
    .bk-tutar { font-size: 1.9rem; }
    .bk-eylem { width: 100%; min-width: 0; }
    .bk-satir { gap: 0.75rem; padding: 0.8rem 0.9rem; align-items: flex-start; }
    .bk-tarih { width: 50px; }
    .bk-tarih .gun { font-size: 1.15rem; }
    .bk-toplam { font-size: 0.98rem; }
    .bk-kirilim { white-space: normal; }
    .bk-kirilim span { display: block; white-space: nowrap; }
}

/* ================================================================== */
/* Ödemelerim                                                          */
/* ================================================================== */
.od-sekmeler { display: flex; gap: 0.25rem; padding: 0.25rem; background: #e6ebf2; border-radius: 12px; }
.od-sekmeler a { flex: 1; text-align: center; padding: 0.5rem 0.75rem; border-radius: 9px; color: var(--portal-soluk); text-decoration: none; font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.od-sekmeler a.active { background: #fff; color: var(--portal-lacivert); box-shadow: 0 1px 4px rgba(30, 58, 95, 0.12); }
.od-bant { background: linear-gradient(120deg, #13573a 0%, #1b7f4b 60%, #2a9d62 100%); box-shadow: 0 10px 30px rgba(27, 127, 75, 0.2); }
.od-bant .od-yil-tutar { font-size: 1.15rem !important; white-space: nowrap; }
.od-ikon { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
           background: #eaf6ef; color: #1b7f4b; font-size: 1rem; }
.od-ikon-hata { background: #f1f3f6; color: var(--portal-soluk); }
.bk-satir.od-iptal .bk-baslik, .bk-satir.od-iptal .bk-toplam { color: var(--portal-soluk); }
.bk-satir.od-iptal .bk-toplam { text-decoration: line-through; }
.od-durum-iptal { background: #f1f3f6; color: var(--portal-soluk); }
.od-durum-tamam { background: #eaf6ef; color: #1b7f4b; }
.od-sonuc { border-width: 0; border-left: 5px solid; }
.od-sonuc-tamam { border-left-color: #1b7f4b; background: #f3fbf6; }
.od-sonuc-hata { border-left-color: var(--portal-kirmizi); background: #fff6f7; }
@media (max-width: 575.98px) {
    .od-bant .mg-istatistik > div { padding: 0.55rem 0.3rem; }
    .od-bant .od-yil-tutar { font-size: 0.98rem !important; }
    .od-sekmeler a { font-size: 0.85rem; padding: 0.5rem 0.4rem; }
}
.bk-meta.ikonlu { column-gap: 0.9rem; }
.bk-meta.ikonlu span::before { content: none !important; }
.bk-meta.ikonlu i { margin-right: 0.3rem; opacity: 0.7; font-size: 0.72rem; }
.bk-durum { white-space: nowrap; }

/* ================================================================== */
/* Duyurular                                                           */
/* ================================================================== */
.dy-tur { display: inline-flex; align-items: center; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; padding: 0.22rem 0.6rem; border-radius: 999px;
          background: var(--portal-lacivert); color: #fff; }
.dy-kampanya .dy-tur { background: #f0a800; color: #3b2a00; }
.dy-tur-koyu { background: rgba(21, 43, 71, 0.85) !important; color: #fff !important; }
.dy-tarih { display: inline-flex; align-items: center; font-size: 0.8rem; color: var(--portal-soluk); padding: 0.2rem 0.55rem; border-radius: 999px; background: #f1f4f8; }
.dy-tarih.dy-acil { background: #fde8eb; color: var(--portal-kirmizi); font-weight: 600; }

/* Kart (büyük ve yatay) */
.dy-kart { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--portal-kenar); border-radius: 16px; overflow: hidden;
           color: var(--portal-metin); text-decoration: none; transition: box-shadow 0.15s, transform 0.15s; position: relative; }
.dy-kart:hover { color: var(--portal-metin); box-shadow: 0 8px 24px rgba(30, 58, 95, 0.12); transform: translateY(-1px); }
.dy-kart.yeni { border-color: #9dbbe0; box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.06); }
.dy-kart-gorsel { position: relative; display: block; aspect-ratio: 16 / 9; background: #eef2f7; overflow: hidden; }
.dy-kart-gorsel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dy-kart-yer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; color: rgba(255, 255, 255, 0.9);
               background: linear-gradient(135deg, var(--portal-lacivert-koyu), var(--portal-lacivert) 60%, #2b5486); }
.dy-kampanya .dy-kart-yer { background: linear-gradient(135deg, #b87500, #f0a800 70%, #ffc94d); }
.dy-kart-rozetler { position: absolute; left: 0.75rem; top: 0.75rem; display: flex; gap: 0.35rem; }
.dy-kart-govde { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.9rem 1.05rem 1.05rem; min-width: 0; }
.dy-kart-ust { display: flex; align-items: center; gap: 0.5rem; font-size: 0.76rem; color: var(--portal-soluk); }
.dy-yeni-nokta { width: 8px; height: 8px; border-radius: 50%; background: var(--portal-kirmizi); margin-left: auto; }
.dy-kart-baslik { font-weight: 700; font-size: 1.05rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dy-kart-ozet { font-size: 0.87rem; color: #4a5866; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dy-kart-sure { font-size: 0.76rem; font-weight: 600; color: #8a5a00; }
.dy-kart-sure.acil { color: var(--portal-kirmizi); }
.dy-tur-kucuk { font-weight: 700; color: var(--portal-lacivert); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.68rem; }
.dy-kampanya .dy-tur-kucuk { color: #8a5a00; }

.dy-liste { display: flex; flex-direction: column; gap: 0.65rem; }
.dy-kart.dy-yatay { flex-direction: row; height: auto; border-radius: 14px; }
.dy-yatay .dy-kart-gorsel { width: 108px; flex-shrink: 0; aspect-ratio: auto; min-height: 96px; }
.dy-yatay .dy-kart-yer { font-size: 1.6rem; }
.dy-yatay .dy-kart-govde { padding: 0.7rem 0.85rem; gap: 0.2rem; flex: 1; }
.dy-yatay .dy-kart-baslik { font-size: 0.95rem; }
.dy-yatay .dy-kart-ozet { font-size: 0.8rem; -webkit-line-clamp: 1; }

/* Detay */
.dy-detay { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid var(--portal-kenar); border-radius: 18px; overflow: hidden;
            box-shadow: 0 6px 24px rgba(30, 58, 95, 0.06); }
.dy-gorsel-kap { display: block; position: relative; background: #f1f4f8; }
.dy-gorsel { display: block; width: 100%; max-height: 520px; object-fit: contain; }
.dy-buyut { position: absolute; right: 0.75rem; bottom: 0.75rem; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
            background: rgba(21, 43, 71, 0.7); color: #fff; font-size: 0.85rem; }
.dy-govde { padding: 1.25rem 1.4rem 1.4rem; }
.dy-etiketler { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.dy-baslik { font-size: 1.5rem; font-weight: 800; line-height: 1.25; color: var(--portal-lacivert-koyu); margin-bottom: 0.75rem; }
.dy-ozet { font-size: 1.02rem; font-weight: 600; color: #34465a; border-left: 4px solid var(--portal-kirmizi); padding: 0.15rem 0 0.15rem 0.85rem; margin-bottom: 1rem; }
.dy-kampanya .dy-ozet { border-left-color: #f0a800; }
.dy-metin { font-size: 1rem; line-height: 1.75; color: #2a3a4c; }
.dy-metin p { margin-bottom: 0.9rem; }
.dy-metin ul { padding-left: 1.2rem; margin-bottom: 0.9rem; }
.dy-metin li { margin-bottom: 0.3rem; }
.dy-metin li::marker { color: var(--portal-kirmizi); }
.dy-metin a { word-break: break-word; }
.dy-baglanti { border-radius: 12px; }
.dy-ek { display: flex; align-items: center; gap: 0.85rem; padding: 0.8rem 1rem; border: 1px solid var(--portal-kenar); border-radius: 14px; background: #f8fafc;
         color: var(--portal-metin); text-decoration: none; min-width: 0; }
.dy-ek:hover { background: #f1f5fa; color: var(--portal-metin); border-color: #c9d6e6; }
.dy-ek-ikon { font-size: 1.8rem; width: 40px; text-align: center; flex-shrink: 0; }
.dy-ek-ad { flex: 1; min-width: 0; }
.dy-ek-indir { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--portal-lacivert); color: #fff; }
.dy-alt { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #eef1f5; }
.dy-qr { max-width: 860px; margin: 1rem auto 0; border-radius: 18px; }
.dy-qr-baslik { font-weight: 800; color: #8a5a00; font-size: 1.05rem; margin-bottom: 0.5rem; }
.dy-avantaj { display: inline-block; font-weight: 700; background: #fff1c7; color: #6b4600; padding: 0.4rem 0.9rem; border-radius: 10px; }
@media (max-width: 575.98px) {
    .dy-detay { border-radius: 14px; margin-left: -0.25rem; margin-right: -0.25rem; }
    .dy-govde { padding: 1rem 1rem 1.1rem; }
    .dy-baslik { font-size: 1.25rem; }
    .dy-metin { font-size: 0.97rem; }
}

/* Üye kartı sayfası */
.kk-adimlar { margin: 0.9rem 1.15rem 0.5rem 0; padding-left: 2.4rem; }
.kk-adimlar li { margin-bottom: 0.5rem; }
.kk-panel-kisayol { border-color: #c9d6e6; background: linear-gradient(90deg, #f2f7fd, #fff); }
.kk-panel-kisayol:hover { border-color: #9dbbe0; }
/* Büyük kartta afiş kırpılmasın: görsel sığdırılır, arkası aynı görselin bulanık hâli */
.dy-kart:not(.dy-yatay) .dy-kart-gorsel { aspect-ratio: 4 / 3; }
.dy-bulanik { position: absolute; inset: -20px; background-position: center; background-size: cover; filter: blur(18px) brightness(0.9); }
.dy-kart:not(.dy-yatay) .dy-bulanik + img { position: relative; object-fit: contain; }
.dy-kart-rozetler { z-index: 1; }
.dy-ek-dosya { word-break: break-all; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }

/* ================================================================== */
/* Telefon uygulama kabuğu: üst çubuk ve alt menü sabit, yalnız içerik kayar.
   iOS tam ekran web uygulamasında position: fixed/sticky kaydırırken yerinden oynayabildiği için
   pencere yerine iç kap kaydırılır. */
/* ================================================================== */
@media (max-width: 1199.98px) {
    html:has(body.portal-ic) { height: 100%; overflow: hidden; }
    body.portal-ic { height: 100%; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; padding-bottom: 0 !important; }
    body.portal-ic .portal-mobil-ust { position: relative; top: auto; flex-shrink: 0; z-index: 5; }
    body.portal-ic .portal-kaydirma { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
    body.portal-ic .portal-alt-menu { position: relative; left: auto; right: auto; bottom: auto; flex-shrink: 0; }
    /* iOS, 16px'ten küçük yazılı alana dokununca sayfayı yakınlaştırır; bu da düzeni bozar */
    body.portal-ic .form-control, body.portal-ic .form-select { font-size: 16px; }
}

/* Belgelerim */
.bk-cip-sari { background: #fff1c7 !important; color: #6b4600; border-color: transparent !important; font-weight: 600; }
.bl-ikon { width: 42px; text-align: center; font-size: 1.9rem; flex-shrink: 0; }
.bl-ek { display: inline-flex; align-items: center; font-size: 0.76rem; font-weight: 600; padding: 0.22rem 0.6rem; border-radius: 999px;
         background: #eef3f9; color: var(--portal-lacivert); text-decoration: none; }
.bl-ek:hover { background: #dfe8f3; color: var(--portal-lacivert); }
.bk-satir[hidden] { display: none !important; }

/* ================================================================== */
/* Meslek grubum (liste düzeni)                                        */
/* ================================================================== */
.mg-gezinti { position: sticky; top: 0; z-index: 4; background: var(--portal-zemin); padding: 0.5rem 0; margin-bottom: 0.25rem; }
@media (min-width: 1200px) { .mg-gezinti { top: 60px; } }
.mg-bolum { scroll-margin-top: 64px; }
@media (min-width: 1200px) { .mg-bolum { scroll-margin-top: 124px; } }
.mg-kisi-foto { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--portal-kenar);
                font-size: 1.05rem; }
.mg-gorev { display: inline-block; font-size: 0.72rem; font-weight: 700; color: var(--portal-lacivert); background: #eef3f9; padding: 0.1rem 0.5rem; border-radius: 6px; margin-top: 0.2rem; }
.mg-kisi-firma { font-size: 0.8rem; color: var(--portal-soluk); margin-top: 0.25rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mg-kisi-tel { font-size: 0.78rem; color: var(--portal-soluk); margin-top: 0.15rem; font-variant-numeric: tabular-nums; }
.mg-eylemler { display: flex; gap: 0.4rem; flex-shrink: 0; align-self: center; }
.mg-eylem { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
            background: #eaf6ef; color: #1b7f4b; font-size: 0.95rem; transition: background 0.15s; }
.mg-eylem:hover { background: #d3eedd; color: #13573a; }
.mg-sira { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
           background: #f1f3f6; color: var(--portal-soluk); font-weight: 800; }
.mg-firma.kendi-firma { background: #eaf2fc; box-shadow: inset 4px 0 0 var(--portal-lacivert); }
.mg-firma .nace-kod { font-size: 0.74rem; padding: 0.05rem 0.4rem; }
.yonetim-kart .mg-eylemler { align-self: flex-start; }
.bk-grup-baslik .rehber-ara { font-weight: 400; }
@media (max-width: 575.98px) {
    .mg-eylem { width: 36px; height: 36px; }
    .yonetim-kart { align-items: flex-start; }
}
