/*
 * "Liman" teması — e-Denizcilik giriş sisteminin (e-denizcilikv2/ui, css/harbor.css + css/login.css) tasarımının yönetim paneline uyarlaması.
 * İki bölüm vardır:
 *  1) Menüsüz sayfalar (_LayoutEmpty: giriş, hata, yetkisiz erişim): gökyüzü (alacakaranlık, yıldızlar, güneş, deniz feneri)
 *     → ufuk dalgaları → deniz + alt bilgi. Giriş sayfasında "Biniş Kartı", diğerlerinde gökyüzünde beyaz "pano kartı" (.hb-card).
 *     Ortak parçalar: Pages/Shared/_HarborSkyTop, _HarborHorizon, _HarborFooter.
 *  2) Panel kabuğu (_Layout, body.liman-app): gece mavisi üst çubuk + altın çizgi, lacivert yan menü (altın vurgulu aktif öğe),
 *     sayfa başlığı küçük bir "ufuk bandı" (gökyüzü + dalgalar), içerik açık zeminde altın şeritli kartlar, lacivert alt bilgi.
 *     Izgaralar / formlar (DevExtreme) okunaklı kalsın diye içerik alanı açık renktedir; tema yalnızca çerçeveyi boyar.
 * Tüm dekor satır içi SVG / CSS'tir (dış kaynak yok, CSP uyumlu). Hareketler yalnızca transform/opacity ile yapılır;
 * "azaltılmış hareket" tercihinde tamamen durur.
 */

/* ============================== RENKLER ============================== */
.layout-liman, .liman-app {
    --hb-night: #06152b; --hb-navy: #0a2342; --hb-sea: #0b3a66; --hb-deep: #061f3a;
    --hb-gold: #e0b44c; --hb-red: #b3261e; --hb-ink: #13243a; --hb-muted: #5d6f84; --hb-paper: #f7f1e3;
}

/* ===================================================================================
 * 1) MENÜSÜZ SAYFALAR (_LayoutEmpty)
 * =================================================================================== */
.layout-liman { background: var(--hb-deep); color: var(--hb-ink); }
.hb-container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 28px; position: relative; }
/* Sayfa en az ekran yüksekliğinde: deniz kalan alanı doldurur, alt bilgi en altta kalır */
.hb { min-height: 100vh; display: flex; flex-direction: column; }
.hb > * { flex-shrink: 0; }

/* ---------- Gökyüzü ---------- */
.hb-sky {
    position: relative; overflow: hidden; color: #fff; padding-bottom: 170px;
    background: linear-gradient(180deg, var(--hb-night) 0%, #0d2b52 38%, #2b5b8c 70%, #d98c5f 93%, #f2b36d 100%);
}
.hb-stars {
    position: absolute; inset: 0 0 45% 0; pointer-events: none; opacity: 0.7;
    background-image:
        radial-gradient(1px 1px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 28% 8%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 44% 30%, #fff, transparent), radial-gradient(1px 1px at 63% 12%, #fff, transparent),
        radial-gradient(1px 1px at 77% 34%, #fff, transparent), radial-gradient(1.5px 1.5px at 88% 16%, #fff, transparent),
        radial-gradient(1px 1px at 6% 40%, #fff, transparent), radial-gradient(1px 1px at 54% 4%, #fff, transparent);
    animation: hb-twinkle 6s ease-in-out infinite alternate;
}
@keyframes hb-twinkle { from { opacity: 0.35; } to { opacity: 0.8; } }
.hb-sun {
    position: absolute; left: 12%; bottom: 60px; width: 220px; height: 220px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(255, 214, 140, 0.95) 0%, rgba(255, 170, 90, 0.55) 35%, rgba(255, 140, 70, 0) 70%);
    filter: blur(2px);
}

/* Üst bant: bakanlık logosu, başlık, DGM logosu */
.hb-topbar {
    position: relative; z-index: 3; display: flex; align-items: center; gap: 20px; max-width: 1280px; margin: 0 auto;
    padding: 14px 28px; border-bottom: 1px solid rgba(224, 180, 76, 0.45);
}
.hb-logo img { height: 72px; width: auto; display: block; }
.hb-topbar-title { flex: 1; text-align: center; line-height: 1.3; }
.hb-topbar-title span { display: block; color: var(--hb-gold); font-size: 1.05rem; letter-spacing: 0.16em; margin-bottom: 2px; text-transform: uppercase; font-weight: 600; }
.hb-topbar-title strong { display: block; font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 700; letter-spacing: 0.03em; }
.hb-dgm {
    width: 84px; height: 84px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 3px rgba(224, 180, 76, 0.7), 0 6px 18px rgba(0, 0, 0, 0.35);
}
.hb-dgm img { width: 74px; height: 74px; object-fit: contain; }

/* Deniz feneri: ufukta, ışık huzmesi gökyüzünü tarar */
.hb-lighthouse { position: absolute; right: 4%; bottom: 44px; width: 62px; height: 134px; overflow: visible; z-index: 1; pointer-events: none; }
.hb-beam { transform-box: view-box; transform-origin: 60px 52px; animation: hb-sweep 7s ease-in-out infinite alternate; }
@keyframes hb-sweep { from { transform: rotate(-16deg); } to { transform: rotate(22deg); } }
.hb-lamp { animation: hb-lamp 2.4s ease-in-out infinite alternate; }
@keyframes hb-lamp { from { opacity: 0.75; } to { opacity: 1; } }

/* Karşılama yazıları */
.hb-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--hb-gold); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.8rem; }
.hb-kicker svg { width: 18px; height: 18px; }
.hb-title { margin: 0; color: #fff; font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; line-height: 1.1; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35); }
.hb-sub { margin: 12px 0 0; color: rgba(255, 255, 255, 0.85); font-size: 1.08rem; }

/* Ufuk dalgaları (iki katman, farklı hızda akar) */
.hb-horizon { position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; overflow: hidden; pointer-events: none; }
.hb-wave { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; animation: hb-flow 18s linear infinite; }
.hb-wave-a path { fill: rgba(16, 72, 122, 0.75); }
.hb-wave-b { animation-duration: 11s; animation-direction: reverse; }
.hb-wave-b path { fill: #0e4476; }
@keyframes hb-flow { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Deniz + alt bilgi ---------- */
.hb-sea {
    position: relative; overflow: hidden; padding-top: 20px; flex: 1 0 auto; display: flex; flex-direction: column;
    background:
        repeating-linear-gradient(170deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 38px),
        linear-gradient(180deg, #0e4476 0%, var(--hb-sea) 30%, #082d52 65%, var(--hb-deep) 100%);
}
/* Güneşin denizdeki yansıması */
.hb-sea::before {
    content: ""; position: absolute; top: 0; left: calc(12% + 70px); width: 80px; height: 180px; pointer-events: none;
    background: repeating-linear-gradient(180deg, rgba(255, 196, 120, 0.16) 0 2px, transparent 2px 16px);
    mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent);
    animation: hb-glint 3s ease-in-out infinite alternate;
}
@keyframes hb-glint { from { opacity: 0.4; transform: scaleX(0.8); } to { opacity: 0.9; transform: scaleX(1.15); } }
.hb-sea > .hb-footer { margin-top: auto; }
.hb-footer { position: relative; border-top: 1px solid rgba(224, 180, 76, 0.35); background: rgba(3, 14, 28, 0.6); color: rgba(255, 255, 255, 0.72); font-size: 0.88rem; }
.hb-footer-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 18px; }
.hb-coords { font-family: ui-monospace, Consolas, monospace; letter-spacing: 0.1em; color: var(--hb-gold); }

/* ---------- Düğmeler ---------- */
.hb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px;
    border: 1px solid transparent; font-weight: 700; font-size: 0.95rem; cursor: pointer; text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.hb-btn svg { width: 18px; height: 18px; }
.hb-btn:focus-visible { outline: 3px solid var(--hb-gold); outline-offset: 2px; }
.hb-btn-gold { background: var(--hb-gold); color: var(--hb-navy); height: 52px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }
.hb-btn-gold:hover { background: #f0c75d; color: var(--hb-navy); transform: translateY(-1px); }
.hb-btn-navy { background: linear-gradient(135deg, #0f4c8a, var(--hb-navy)); color: #fff; }
.hb-btn-navy:hover { filter: brightness(1.15); color: #fff; }
.hb-btn-outline { background: #fff; color: var(--hb-navy); border-color: #d2dce7; }
.hb-btn-outline:hover { border-color: var(--hb-gold); background: #fff8e6; color: var(--hb-navy); }
.hb-btn-block { width: 100%; }

/* ---------- Pano kartı (hata, yetkisiz erişim): gökyüzünün ortasında beyaz kart + madalyon simge ---------- */
.hb-card-wrap { z-index: 2; display: flex; justify-content: center; margin-top: 48px; }
.hb-card {
    position: relative; width: 100%; max-width: 640px; padding: 56px 36px 32px; text-align: center;
    background: #fff; color: var(--hb-ink); border-radius: 20px; border-top: 6px solid var(--hb-gold);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
.hb-card-icon {
    position: absolute; top: -40px; left: 50%; transform: translateX(-50%); width: 76px; height: 76px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: var(--hb-gold);
    background: linear-gradient(135deg, #0f4c8a, var(--hb-navy)); box-shadow: 0 0 0 5px #fff, 0 10px 24px rgba(0, 0, 0, 0.35);
}
.hb-card-icon svg { width: 38px; height: 38px; }
.hb-card-icon.is-danger { background: linear-gradient(135deg, #d0453b, var(--hb-red)); color: #fff; }
.hb-card-kicker { display: block; margin-bottom: 6px; font-family: ui-monospace, Consolas, monospace; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: #8f6c37; font-weight: 700; }
.hb-card-title { margin: 0 0 10px; color: var(--hb-navy); font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; line-height: 1.2; }
.hb-card-text { margin: 0 auto; max-width: 480px; color: var(--hb-muted); font-size: 1.02rem; line-height: 1.55; }
.hb-card-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hb-card code { color: var(--hb-red); background: #fbeae8; padding: 2px 8px; border-radius: 6px; }

/* ---------- Giriş sayfası: solda karşılama + şamandıralar, sağda "Biniş Kartı" ---------- */
.lg-hero { z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: center; margin-top: 40px; }
.lg-title-accent { display: inline-block; margin-top: 6px; color: #ffe7b0; font-size: 0.62em; font-weight: 700; letter-spacing: 0.01em; }
.lg-intro .hb-sub { max-width: 560px; }
.lg-buoys { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; max-width: 520px; }
.lg-buoys li {
    display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px;
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.82); font-size: 0.92rem; line-height: 1.35;
}
.lg-buoys strong { display: block; color: #fff; font-size: 1rem; }
/* Şamandıra simgesi: kırmızı-beyaz bantlı yuvarlak */
.lg-buoy-icon {
    width: 42px; height: 42px; min-width: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3), inset 0 0 0 3px rgba(255, 255, 255, 0.85);
    background: conic-gradient(var(--hb-red) 0 25%, #c8d4e0 0 50%, var(--hb-red) 0 75%, #c8d4e0 0);
}
.lg-buoy-icon svg { width: 20px; height: 20px; padding: 2px; border-radius: 50%; background: var(--hb-navy); box-sizing: content-box; }

.lg-pass {
    position: relative; background: #fff; color: var(--hb-ink); border-radius: 20px; overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(224, 180, 76, 0.4);
    animation: lg-float 6s ease-in-out infinite;
}
@keyframes lg-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.lg-pass-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px;
    background: linear-gradient(135deg, #0f4c8a, var(--hb-navy)); color: #fff; border-bottom: 4px solid var(--hb-gold);
}
.lg-pass-kicker { display: block; color: var(--hb-gold); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 800; }
.lg-pass-head h2 { margin: 2px 0 0; color: #fff; font-size: 1.5rem; font-weight: 800; }
.lg-pass-anchor { width: 40px; height: 40px; color: rgba(255, 231, 176, 0.9); }
/* Rota: Kalkış (giriş sistemi) → Varış (yönetim paneli) */
.lg-route { display: flex; align-items: center; gap: 12px; padding: 18px 24px 4px; }
.lg-route > div { min-width: 0; }
/* Uzun proje adı kesilmez, alt satıra geçer (dar kartta "Yönetim Paneli" tam okunur) */
.lg-route strong { display: block; font-size: 1.15rem; font-weight: 800; line-height: 1.2; color: var(--hb-navy); white-space: normal; overflow-wrap: anywhere; }
.lg-route-to { flex: 1; text-align: right; }
.lg-route-label { display: block; font-family: ui-monospace, Consolas, monospace; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8f6c37; font-weight: 700; }
.lg-route-ship {
    flex: 1; height: 24px; min-width: 70px; color: var(--hb-navy);
    background: linear-gradient(90deg, #c9d6e4 50%, transparent 50%) left center / 10px 2px repeat-x;
}
.lg-pass-body { padding: 18px 24px 22px; }
.lg-pass-body .hb-btn-navy { height: 52px; font-size: 1.02rem; }
.lg-note { margin: 14px 0 0; font-size: 0.86rem; line-height: 1.45; text-align: center; color: var(--hb-muted); }
.lg-error { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #fbeae8; color: var(--hb-red); font-weight: 600; font-size: 0.92rem; }
/* Koçan: delikli ayraç + dekoratif barkod */
.lg-pass-stub {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px 24px; border-top: 2px dashed #d2dce7; background: #f7f9fc;
    font-family: ui-monospace, Consolas, monospace; font-size: 0.78rem; letter-spacing: 0.2em; color: var(--hb-muted); font-weight: 700;
}
.lg-pass-stub::before, .lg-pass-stub::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: #2b5b8c; }
.lg-pass-stub::before { left: -10px; }
.lg-pass-stub::after { right: -10px; }
.lg-barcode {
    width: 140px; height: 26px; opacity: 0.75;
    background: repeating-linear-gradient(90deg, var(--hb-ink) 0 2px, transparent 2px 4px, var(--hb-ink) 4px 5px, transparent 5px 9px, var(--hb-ink) 9px 12px, transparent 12px 14px);
}
.lg-sea-space { min-height: 60px; }

@media (max-width: 1100px) { .lg-hero { grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; } }
@media (max-width: 900px) {
    .lg-hero { grid-template-columns: 1fr; }
    .lg-pass { order: -1; max-width: 480px; width: 100%; margin: 0 auto; }
    .lg-buoys { max-width: none; }
}
@media (max-width: 768px) {
    .hb-container, .hb-topbar { padding-left: 16px; padding-right: 16px; }
    .hb-logo img { height: 54px; }
    .hb-dgm { width: 64px; height: 64px; }
    .hb-dgm img { width: 56px; height: 56px; }
    .hb-topbar-title span { font-size: 0.8rem; }
    .hb-topbar-title strong { font-size: 1.25rem; }
    .hb-lighthouse { right: -6px; width: 64px; height: 140px; }
    .hb-sun { width: 150px; height: 150px; left: 4%; }
}
@media (max-width: 600px) { .hb-card { padding: 52px 20px 24px; } }
@media (max-width: 480px) {
    .hb-topbar-title { display: none; }
    .hb-topbar { justify-content: space-between; }
    .lg-pass-head, .lg-route, .lg-pass-body, .lg-pass-stub { padding-left: 16px; padding-right: 16px; }
    .lg-barcode { width: 90px; }
    .lg-route strong { white-space: normal; font-size: 1.02rem; }
    .lg-route-ship { min-width: 44px; }
}

/* ===================================================================================
 * 2) PANEL KABUĞU (_Layout, body.liman-app)
 * =================================================================================== */
body.liman-app { background: #eef2f7; }

/* ---------- Üst çubuk: gece mavisi, altta altın çizgi ---------- */
.liman-app #kt_app_header.ess-headerbar {
    background: linear-gradient(90deg, var(--hb-night) 0%, #0d2b52 60%, #13406f 100%) !important;
    border-bottom: 1px solid rgba(224, 180, 76, 0.55); box-shadow: 0 6px 18px rgba(3, 14, 28, 0.35);
}
.lm-header-title { display: flex; flex-direction: column; line-height: 1.2; color: #fff; }
.lm-header-title span { color: var(--hb-gold); font-size: 0.7rem; line-height: 1.5; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; }
.lm-header-title strong { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.02em; }
.lm-user { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; }
/* Kullanıcı rozeti: dümen simgesi */
.lm-user-badge {
    width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(224, 180, 76, 0.7); color: var(--hb-gold);
}
.lm-user-badge svg { width: 20px; height: 20px; }
.lm-icon-btn {
    width: 35px; height: 35px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3); color: #fff;
}
.lm-icon-btn:hover { background: rgba(255, 255, 255, 0.22); border-color: var(--hb-gold); }
.lm-icon-btn i, .lm-icon-btn i span::before { color: #fff !important; }
.lm-exit { height: 35px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255, 201, 196, 0.6); background: transparent; color: #ffc9c4; font-weight: 700; font-size: 0.88rem; }
.lm-exit:hover { background: var(--hb-red); border-color: var(--hb-red); color: #fff; }

/* ---------- Yan menü: lacivert, dipte küçük dalgalar; aktif öğe altın ---------- */
.liman-app #kt_app_sidebar {
    background: linear-gradient(180deg, var(--hb-navy) 0%, #0b2c52 70%, #0e3e6c 100%) !important;
    border-right: 1px solid rgba(224, 180, 76, 0.25);
}
.liman-app #kt_app_sidebar::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; pointer-events: none; opacity: 0.55;
    background: radial-gradient(28px 10px at 14px 10px, transparent 96%, rgba(14, 68, 118, 0.9) 100%) 0 0 / 28px 70px repeat-x;
}
.lm-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; height: auto !important; padding: 16px 20px !important; border-bottom: 1px solid rgba(224, 180, 76, 0.3); text-decoration: none; }
.lm-brand img { height: 46px; width: auto; flex-shrink: 0; display: block; }
.lm-brand span { display: flex; flex-direction: column; line-height: 1.2; }
.lm-brand small { color: var(--hb-gold); font-size: 0.66rem; line-height: 1.5; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }
.lm-brand strong { color: #fff; font-size: 1.05rem; }
.lm-brand span { padding-left: 2px; border-left: 2px solid var(--hb-gold); padding-left: 10px; }
.liman-app #kt_app_sidebar .menu-heading { color: var(--hb-gold) !important; opacity: 0.85; letter-spacing: 0.14em; font-size: 0.72rem !important; }
.liman-app #kt_app_sidebar .menu-link { border-radius: 10px; position: relative; }
.liman-app #kt_app_sidebar .menu-link .menu-title { color: rgba(255, 255, 255, 0.78); }
.liman-app #kt_app_sidebar .menu-link .menu-icon i, .liman-app #kt_app_sidebar .menu-link .menu-icon i span::before { color: rgba(201, 214, 228, 0.7) !important; }
.liman-app #kt_app_sidebar .menu-link:hover { background: rgba(255, 255, 255, 0.07) !important; }
.liman-app #kt_app_sidebar .menu-link:hover .menu-title { color: #fff; }
.liman-app #kt_app_sidebar .menu-link.active { background: rgba(224, 180, 76, 0.16) !important; box-shadow: inset 3px 0 0 var(--hb-gold); }
.liman-app #kt_app_sidebar .menu-link.active .menu-title { color: #ffe7b0 !important; font-weight: 700; }
.liman-app #kt_app_sidebar .menu-link.active .menu-icon i, .liman-app #kt_app_sidebar .menu-link.active .menu-icon i span::before { color: var(--hb-gold) !important; }

/* ---------- Sayfa başlığı: küçük ufuk bandı (gökyüzü + akan dalgalar + güneş ışığı) ----------
   ESS master.css bu kutuyu !important ile gri boyar; tema bu yüzden aynı önemle ezer. */
.liman-app .ess-subheader {
    position: relative; overflow: hidden; color: #fff;
    border: 0 !important; border-radius: 18px !important; padding: 22px 26px 46px !important;
    background: linear-gradient(180deg, var(--hb-night) 0%, #0d2b52 45%, #2b5b8c 80%, #d98c5f 100%) !important;
    box-shadow: 0 14px 30px rgba(6, 21, 43, 0.25) !important;
}
/* İçerik dekorun önünde; dekor (yıldız, ışık, dalga) mutlak konumlu kalır. ESS'in soldaki mavi şeridi kaldırılır. */
.liman-app .ess-subheader > :not(.hb-stars):not(.lm-sub-glow):not(.hb-horizon) { position: relative; z-index: 2; }
.liman-app .ess-subheader::before { content: none !important; }
.liman-app .ess-subheader .hb-stars { inset: 0 0 40% 0; z-index: 0; }
.liman-app .ess-subheader .lm-sub-glow {
    position: absolute; right: 9%; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; pointer-events: none; z-index: 0;
    background: radial-gradient(circle, rgba(255, 214, 140, 0.7) 0%, rgba(255, 170, 90, 0.3) 40%, transparent 70%);
}
.liman-app .ess-subheader .hb-horizon { height: 34px; z-index: 1; }
.liman-app .ess-subheader__title { color: #fff !important; font-weight: 800 !important; font-size: 1.5rem !important; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
.liman-app .ess-subheader__subtitle { color: rgba(255, 231, 176, 0.92) !important; }
.lm-sub-kicker { display: block; margin-bottom: 4px; color: var(--hb-gold); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; }
/* Başlık bandındaki sayfa düğmeleri: koyu zeminde okunur */
.liman-app .ess-subheader .btn-light, .liman-app .ess-subheader .btn-light-primary, .liman-app .ess-subheader .btn-secondary {
    background: rgba(255, 255, 255, 0.14) !important; border: 1px solid rgba(255, 255, 255, 0.4) !important; color: #fff !important;
}
.liman-app .ess-subheader .btn-light:hover, .liman-app .ess-subheader .btn-light-primary:hover { background: rgba(255, 255, 255, 0.26) !important; }
.liman-app .ess-subheader .btn-primary { background: var(--hb-gold) !important; border-color: var(--hb-gold) !important; color: var(--hb-navy) !important; font-weight: 700; }
.liman-app .ess-subheader .btn-primary:hover { background: #f0c75d !important; }
.liman-app .ess-subheader .btn i, .liman-app .ess-subheader .btn i span::before { color: inherit !important; }

/* ---------- İçerik: altın şeritli kartlar, lacivert birincil düğmeler ---------- */
.liman-app .app-main .card { border: 1px solid #dfe6ef; border-top: 3px solid var(--hb-gold); border-radius: 14px; box-shadow: 0 8px 22px rgba(10, 35, 66, 0.06); }
.liman-app .app-main .card .card-header { border-bottom: 1px dashed #d2dce7; }
.liman-app .app-main .card .card-title { color: var(--hb-navy); font-weight: 800; }
.liman-app .btn.btn-primary { background: linear-gradient(135deg, #0f4c8a, var(--hb-navy)); border-color: var(--hb-navy); color: #fff; }
.liman-app .btn.btn-primary:hover { filter: brightness(1.15); }
.liman-app .btn.btn-light-primary { background: #e6eef8; color: var(--hb-navy); }
.liman-app .btn.btn-light-primary:hover { background: var(--hb-navy) !important; color: #fff !important; }
.liman-app .nav-line-tabs .nav-link.active { border-bottom-color: var(--hb-gold) !important; color: var(--hb-navy) !important; }

/* Ana sayfa göstergeleri: "pano" kartları — solda madalyon simge, rakam lacivert */
.liman-app .panel-kpi .card { border-top: 0; border-left: 4px solid var(--hb-gold); overflow: hidden; }
.liman-app .panel-kpi .card-body { display: flex; align-items: center; gap: 18px; }
.lm-kpi-icon {
    width: 58px; height: 58px; min-width: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--hb-gold); background: linear-gradient(135deg, #0f4c8a, var(--hb-navy)); box-shadow: 0 0 0 4px #fff, 0 6px 16px rgba(10, 35, 66, 0.3);
}
.lm-kpi-icon svg { width: 28px; height: 28px; }
.liman-app .panel-kpi .fs-2hx { color: var(--hb-navy); }
.lm-kpi-label { font-family: ui-monospace, Consolas, monospace; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8f6c37; font-weight: 700; margin-bottom: 4px; }

/* DevExtreme ızgara başlığı ve seçim rengi temaya uysun */
/* (ESS başlık satırı #3176B1 → Liman laciverti, altta altın çizgi) */
.liman-app .dx-datagrid .dx-header-row { background-color: var(--hb-navy); box-shadow: inset 0 -2px 0 var(--hb-gold); }
.liman-app .dx-datagrid .dx-header-row > td { border-color: rgba(255, 255, 255, 0.12) !important; }
.liman-app .dx-datagrid-rowsview .dx-selection.dx-row > td { background-color: #fff3d6 !important; }

/* ---------- Alt bilgi ---------- */
.liman-app .lm-footer {
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 24px; margin-top: 24px;
    background: var(--hb-navy); color: rgba(255, 255, 255, 0.72); font-size: 0.85rem; border-top: 1px solid rgba(224, 180, 76, 0.35);
}

@media (max-width: 991px) {
    .lm-header-title { display: none; }
    /* ESS master.css gövdeye her genişlikte üst boşluk verir, Metronic ise başlığı yalnız geniş ekranda sabitler;
       mobilde de sabitleyerek başlık üstündeki boş şerit kaldırılır. */
    .liman-app #kt_app_header.ess-headerbar { position: fixed; top: 0; left: 0; right: 0; z-index: 105; }
}

/* Azaltılmış hareket: tüm animasyonlar durur */
@media (prefers-reduced-motion: reduce) {
    .hb-stars, .hb-beam, .hb-lamp, .hb-wave, .hb-sea::before, .lg-pass { animation: none !important; }
    .hb-btn-gold:hover { transform: none; }
}
