/* ============================================================
   DASHBOARD v2 (nd-*) - responsive: desktop web + mobile mockup
   Theme-aware (uses tokens); fixed brand gradient for AI/plan/active.
   ============================================================ */
.tb-sub { font-size: 10px; color: var(--text-secondary); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* bottom-nav center -> Atmos AI */
.bn-center { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.bn-ai { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-top: -22px; background: linear-gradient(135deg, #4f7dff, #7b5cff); color: #fff; box-shadow: 0 0 0 5px var(--bg-base), 0 8px 20px rgba(95,90,240,.5); }
.bn-ai svg { width: 24px; height: 24px; }
.bn-ai-label { font-size: 10.5px; font-weight: 700; color: #7b6cff; }

.nd { --nd-grad: linear-gradient(135deg, #4f7dff 0%, #7b5cff 100%); --nd-plan: linear-gradient(130deg, #5b6dff 0%, #7b5cff 55%, #9b7bff 100%); }
.nd-mobile { display: none; }

.nd-empty { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 13px; padding: 16px; }
.nd-empty.sm { font-size: 12px; padding: 10px 4px; }
.nd-empty svg { width: 18px; height: 18px; }
.nd-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--accent2); white-space: nowrap; }
.nd-link svg { width: 15px; height: 15px; }

/* ---------- Atmos AI hero (desktop) ---------- */
.nd-hero { position: relative; display: flex; align-items: center; gap: 22px; border-radius: 22px; padding: 22px 26px; margin-bottom: 20px; overflow: hidden; background: linear-gradient(120deg, rgba(124,92,255,.16), rgba(74,147,255,.10)), var(--bg-surface); border: 1px solid var(--border); transition: transform .15s, box-shadow .15s, border-color .15s; }
.nd-hero:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.nd-hero-spk { position: absolute; color: #a99bff; opacity: .55; }
.nd-hero-spk.a { top: 20px; right: 42%; font-size: 20px; }
.nd-hero-spk.b { top: 70px; right: 36%; font-size: 13px; }
.nd-hero-bot { width: 132px; flex-shrink: 0; display: grid; place-items: center; }
.nd-hero-bot img { width: 140px; filter: drop-shadow(0 12px 20px rgba(60,50,130,.3)); }
.nd-hero-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nd-hero-label { font-size: 11px; font-weight: 800; letter-spacing: 1.6px; color: #8b7bff; }
.nd-hero-title { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--text-primary); margin: 6px 0 14px; letter-spacing: -.4px; }
.nd-hero-title b { color: #7b6cff; }
.nd-hero-cta { display: flex; align-items: center; gap: 12px; background: var(--bg-base); border: 1px solid var(--border); border-radius: 14px; padding: 7px 7px 7px 18px; max-width: 640px; }
.nd-hero-fake { flex: 1; color: var(--text-muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-hero-btn { flex-shrink: 0; align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 12px; background: var(--nd-grad); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; box-shadow: 0 8px 18px rgba(95,90,240,.34); }
.nd-hero-btn svg { width: 16px; height: 16px; }
.nd-hero-chips { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.nd-hero-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 11px; background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-secondary); font-size: 12.5px; font-weight: 600; }
.nd-hero-chip svg { width: 15px; height: 15px; color: var(--accent2); }

/* ---------- Stat cards (desktop) ---------- */
.nd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 20px; }
.nd-stat { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 8px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.nd-stat:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.nd-stat-h { display: flex; align-items: center; gap: 9px; }
.nd-stat-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.nd-stat-ic svg { width: 19px; height: 19px; }
.nd-stat-l { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
.nd-stat-v { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.nd-stat-lim { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.nd-stat-bar { height: 7px; border-radius: 999px; background: var(--bg-elevated); overflow: hidden; }
.nd-stat-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--nd-grad); min-width: 6px; transition: width .5s ease; }
.nd-stat-rem { font-size: 11.5px; font-weight: 600; color: var(--text-muted); }

/* ---------- Two columns (desktop) ---------- */
.nd-cols { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.nd-panel { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px 22px; margin-bottom: 20px; }
.nd-side .nd-panel:last-child, .nd-main .nd-panel:last-child { margin-bottom: 0; }
.nd-panel-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.nd-panel-h h2 { font-family: var(--font-display); font-size: 17px; font-weight: 800; color: var(--text-primary); }

/* Quick actions (desktop) */
.nd-qa { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.nd-qa-item { position: relative; border: 1px solid var(--border); border-radius: 16px; padding: 15px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.nd-qa-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--border-strong); }
.nd-qa-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 12px; }
.nd-qa-ic svg { width: 22px; height: 22px; }
.nd-qa-t { display: block; font-size: 14px; font-weight: 700; color: var(--text-primary); }
.nd-qa-s { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.nd-qa-go { position: absolute; right: 14px; bottom: 14px; width: 16px; height: 16px; color: var(--text-muted); }

/* Recent (desktop) */
.nd-recent { display: flex; flex-direction: column; }
.nd-rrow { display: flex; align-items: center; gap: 15px; padding: 12px 6px; border-bottom: 1px solid var(--border); }
.nd-rrow:last-child { border-bottom: 0; }
.nd-rrow-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.nd-rrow-ic svg { width: 22px; height: 22px; }
.nd-rrow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nd-rrow-name { font-size: 14.5px; font-weight: 700; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-rrow-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.nd-rrow-tag { font-size: 11px; font-weight: 700; color: var(--text-secondary); background: var(--bg-elevated); padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.nd-rrow-star { color: var(--text-muted); display: grid; place-items: center; }
.nd-rrow-star.on { color: #f7b500; }
.nd-rrow-star.on svg { fill: #f7b500; }
.nd-rrow-star svg { width: 20px; height: 20px; }
.nd-rrow-more { color: var(--text-muted); }
.nd-rrow-more svg { width: 20px; height: 20px; }

/* Full-width stack (desktop): Hızlı İşlemler > Plan > Devam Et > Favoriler */
.nd-stack > *:last-child { margin-bottom: 0; }

/* Plan card (desktop) - full-width horizontal banner */
.nd-plan { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 22px; border-radius: 20px; padding: 22px 24px; overflow: hidden; background: var(--nd-plan); color: #fff; margin-bottom: 20px; box-shadow: 0 16px 34px rgba(95,90,240,.32); }
.nd-plan-crown { position: absolute; right: -14px; top: -22px; color: rgba(255,255,255,.15); }
.nd-plan-crown svg { width: 150px; height: 150px; }
.nd-plan-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); flex-shrink: 0; position: relative; z-index: 1; }
.nd-plan-ic svg { width: 30px; height: 30px; color: #fff; }
.nd-plan-body { flex: 1 1 240px; min-width: 0; position: relative; z-index: 1; }
.nd-plan-t { font-family: var(--font-display); font-size: 20px; font-weight: 800; }
.nd-plan-s { font-size: 13px; color: rgba(255,255,255,.9); line-height: 1.5; margin: 4px 0 12px; }
.nd-plan-feats { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 0; }
.nd-plan-feat { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.nd-plan-feat svg { width: 16px; height: 16px; color: #eafff4; flex-shrink: 0; }
.nd-plan-btn { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 13px 22px; border-radius: 12px; background: #fff; color: #5a4bd6; font-size: 13.5px; font-weight: 700; position: relative; z-index: 1; }
.nd-plan-btn svg { width: 15px; height: 15px; }

/* Favorites (desktop side) */
.nd-fav-list { display: flex; flex-direction: column; }
.nd-fav-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; }
.nd-fav-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.nd-fav-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex-shrink: 0; background: #4a93ff; }
.nd-fav-ic svg { width: 18px; height: 18px; }
.nd-fav-tx { flex: 1; min-width: 0; }
.nd-fav-tx b { display: block; font-size: 13px; font-weight: 700; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-fav-tx span { font-size: 11px; color: var(--text-muted); }
.nd-fav-go { color: var(--text-muted); }
.nd-fav-go svg { width: 16px; height: 16px; }

@media (max-width: 1180px) and (min-width: 861px) {
    .nd-cols { grid-template-columns: 1fr; }
}

/* ============================================================
   MOBILE variant (ndm-*)
   ============================================================ */
@media (max-width: 860px) {
    .nd-desktop { display: none; }
    .nd-mobile { display: block; padding-bottom: 6px; }
}

.ndm-searchrow { display: flex; gap: 10px; margin-bottom: 13px; }
.ndm-search { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px; padding: 11px 14px; min-width: 0; }
.ndm-search svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.ndm-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 13px; color: var(--text-primary); }
.ndm-search input::placeholder { color: var(--text-muted); }
.ndm-filter { width: 48px; flex-shrink: 0; border-radius: 14px; background: var(--bg-surface); border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-secondary); }
.ndm-filter svg { width: 18px; height: 18px; }
.ndm-results { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px; padding: 6px; margin-bottom: 12px; }
.ndm-res { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; }
.ndm-res:hover { background: var(--bg-elevated); }
.ndm-res-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.ndm-res-ic svg { width: 17px; height: 17px; }
.ndm-res-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ndm-res-name { font-size: 13px; font-weight: 600; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ndm-res-sub { font-size: 11px; color: var(--text-muted); }
.ndm-res-tag { font-size: 10px; font-weight: 700; color: var(--text-secondary); background: var(--bg-elevated); padding: 3px 8px; border-radius: 999px; }
.ndm-res-empty { padding: 12px; color: var(--text-muted); font-size: 12.5px; text-align: center; }

.ndm-chips { display: flex; gap: 10px; margin-bottom: 15px; }
.ndm-chip { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 6px; border-radius: 13px; background: var(--bg-surface); border: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.ndm-chip svg { width: 15px; height: 15px; }
.ndm-chip.active { background: var(--nd-grad); color: #fff; border-color: transparent; }

.ndm-ai { position: relative; display: flex; align-items: center; gap: 6px; border-radius: 22px; padding: 14px 14px 14px 4px; margin-bottom: 18px; overflow: hidden; background: linear-gradient(120deg, rgba(124,92,255,.18), rgba(74,147,255,.10)), var(--bg-surface); border: 1px solid var(--border); }
.ndm-ai-spk { position: absolute; color: #a99bff; opacity: .55; }
.ndm-ai-spk.a { top: 14px; right: 18%; font-size: 16px; }
.ndm-ai-spk.b { top: 60px; right: 8%; font-size: 11px; }
.ndm-ai-bot { width: 82px; flex-shrink: 0; display: grid; place-items: center; }
.ndm-ai-bot img { width: 90px; filter: drop-shadow(0 10px 18px rgba(60,50,130,.28)); }
.ndm-ai-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ndm-ai-label { font-size: 10.5px; font-weight: 800; letter-spacing: 1.4px; color: #8b7bff; }
.ndm-ai-title { font-family: var(--font-display); font-size: 14.5px; font-weight: 800; color: var(--text-primary); line-height: 1.24; margin: 4px 0 11px; letter-spacing: -.2px; }
.ndm-ai-title b { color: #7b6cff; }
.ndm-ai-chips { display: flex; flex-direction: row; align-items: center; gap: 6px; }
.ndm-ai-chip { display: inline-flex; align-items: center; gap: 4px; padding: 7px 2px; border-radius: 10px; background: var(--bg-elevated); color: var(--text-secondary); font-size: 9.5px; font-weight: 600; white-space: nowrap; }
.ndm-ai-chip svg { width: 12px; height: 12px; flex-shrink: 0; }
.ndm-ai-chip:nth-child(1) svg { color: var(--accent2); }
.ndm-ai-chip:nth-child(2) svg { color: #12b981; }
.ndm-ai-go { flex-shrink: 0; width: 31px; height: 31px; border-radius: 50%; background: var(--bg-elevated); display: grid; place-items: center; color: #7b6cff; }
.ndm-ai-go svg { width: 17px; height: 17px; }

.ndm-sec { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 12px; }
.ndm-sec h2 { font-family: var(--font-display); font-size: 17px; font-weight: 800; color: var(--text-primary); }

.ndm-qa { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.ndm-qa-item { position: relative; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px; padding: 9px 7px 8px; display: flex; flex-direction: column; min-height: 82px; }
.ndm-qa-ic { position: relative; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 6px; }
.ndm-qa-ic svg { width: 17px; height: 17px; }
.ndm-qa-t { font-size: 8px; font-weight: 700; color: var(--text-primary); line-height: 1.12; letter-spacing: -.2px; }
.ndm-qa-s { font-size: 8.5px; color: var(--text-muted); margin-top: 1px; }
.ndm-qa-go { position: absolute; right: 8px; bottom: 7px; width: 12px; height: 12px; color: var(--text-muted); }

.ndm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 16px; }
.ndm-stat { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 10px 9px; display: flex; flex-direction: column; gap: 4px; }
.ndm-stat-h { display: flex; align-items: center; gap: 5px; }
.ndm-stat-ic { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; flex-shrink: 0; }
.ndm-stat-ic svg { width: 12px; height: 12px; }
.ndm-stat-l { font-size: 9px; color: var(--text-secondary); font-weight: 600; line-height: 1.1; }
.ndm-stat-v { font-family: var(--font-display); font-size: 19px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.ndm-stat-bar { height: 6px; border-radius: 999px; background: var(--bg-elevated); overflow: hidden; margin-top: 2px; }
.ndm-stat-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--nd-grad); min-width: 5px; }
.ndm-stat-rem { font-size: 8.5px; color: var(--text-muted); }

.ndm-plan { position: relative; display: flex; align-items: center; gap: 13px; border-radius: 18px; padding: 13px 15px; margin-bottom: 18px; overflow: hidden; background: var(--nd-plan); color: #fff; box-shadow: 0 14px 30px rgba(95,90,240,.3); }
.ndm-plan-crown { position: absolute; right: -6px; top: -14px; color: rgba(255,255,255,.16); }
.ndm-plan-crown svg { width: 110px; height: 110px; }
.ndm-plan-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); flex-shrink: 0; }
.ndm-plan-ic svg { width: 26px; height: 26px; color: #fff; }
.ndm-plan-tx { flex: 1; min-width: 0; position: relative; z-index: 1; display: flex; flex-direction: column; }
.ndm-plan-t { font-family: var(--font-display); font-size: 16px; font-weight: 800; }
.ndm-plan-s { font-size: 11px; color: rgba(255,255,255,.9); margin-top: 2px; }
.ndm-plan-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; padding: 9px 12px; border-radius: 11px; background: #fff; color: #5a4bd6; font-size: 11px; font-weight: 700; white-space: nowrap; }
.ndm-plan-btn svg { width: 14px; height: 14px; }

.ndm-recent { display: flex; flex-direction: column; gap: 10px; }
.ndm-rrow { display: flex; align-items: center; gap: 12px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 15px; padding: 11px 13px; }
.ndm-rrow-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.ndm-rrow-ic svg { width: 21px; height: 21px; }
.ndm-rrow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ndm-rrow-name { font-size: 13px; font-weight: 800; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ndm-rrow-meta { font-size: 10.5px; color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ndm-rrow-star { color: var(--text-muted); display: grid; place-items: center; }
.ndm-rrow-star.on { color: #f7b500; }
.ndm-rrow-star.on svg { fill: #f7b500; }
.ndm-rrow-star svg { width: 18px; height: 18px; }
.ndm-rrow-more { color: var(--text-muted); }
.ndm-rrow-more svg { width: 18px; height: 18px; }

.ent-tab-badge { display:inline-grid; place-items:center; min-width:18px; height:18px; padding:0 5px; margin-left:4px; border-radius:9px; background:#f43f5e; color:#fff; font-size:11px; font-weight:800; line-height:1; vertical-align:middle; }

/* Kurumsal Loglar: beyaz kart (koyu temada da okunur) + Yonetim rozeti */
.lg-card { --text-primary:#1f2430; --text-secondary:#51627a; --text-muted:#8493a6; --border:rgba(15,27,45,.10); --border-strong:rgba(15,27,45,.18); --bg-surface:#ffffff; --bg-elevated:#f3f6fb; background:#ffffff; color:#1f2430; border:1px solid rgba(15,27,45,.12); border-radius:16px; padding:16px; box-shadow:0 10px 30px rgba(20,40,80,.08); }
.lg-card .lg-toolbar { margin-bottom:12px; }
.lg-type.audit { background:#ede9fe; color:#7c3aed; }
.lg-user { margin-left:auto; max-width:260px; padding:7px 10px; border-radius:9px; border:1px solid rgba(15,27,45,.16); background:#fff; color:#1f2430; font-size:12.5px; font-family:inherit; cursor:pointer; }
.lg-card .lg-filters { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.lg-search { position:relative; display:flex; align-items:center; flex:1 1 220px; max-width:340px; margin-left:auto; }
.lg-search > svg { position:absolute; left:10px; width:15px; height:15px; color:#8493a6; pointer-events:none; }
.lg-search input { width:100%; padding:7px 30px 7px 32px; border-radius:9px; border:1px solid rgba(15,27,45,.16); background:#fff; color:#1f2430; font-size:12.5px; font-family:inherit; outline:none; }
.lg-search input:focus { border-color:var(--accent, #14b8a6); box-shadow:0 0 0 3px rgba(20,184,166,.15); }
.lg-search input::-webkit-search-cancel-button { display:none; }
.lg-search-x { position:absolute; right:6px; display:grid; place-items:center; width:20px; height:20px; border:0; border-radius:6px; background:transparent; color:#8493a6; cursor:pointer; }
.lg-search-x:hover { background:#eef2f7; color:#1f2430; }
.lg-search-x[hidden] { display:none; }
.lg-search-x svg { width:14px; height:14px; }
.lg-search + .lg-user { margin-left:0; }
.lg-found { color:#51627a; }
mark.lg-hit { background:#fde68a; color:inherit; border-radius:3px; padding:0 1px; }
@media (max-width: 640px) { .lg-search { max-width:none; flex-basis:100%; margin-left:0; order:5; } }
