/* ============================================================
   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 { overflow: hidden; background: #0d1117; }   /* AtmoSpace logosu (koyu zeminli uygulama ikonu) daireyi doldurur */
.bn-ai img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bn-ai-label { font-size: 10.5px; font-weight: 700; color: #1bc286;   /* logo renkleri: yeşil → mavi */
  background: linear-gradient(90deg, #1bc286, #008dd4); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.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:focus-within { border-color: color-mix(in srgb, #7b6cff 45%, var(--border)); box-shadow: var(--shadow); }
.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 { height: 132px; width: auto; filter: drop-shadow(0 0 14px rgba(56,220,255,.35)) drop-shadow(0 10px 16px rgba(30,40,90,.25)); }   /* atmos-ai-robot.webp dikey (643×900) */
.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); }
button.nd-hero-chip, a.nd-hero-chip { cursor: pointer; font-family: inherit; transition: border-color .15s, color .15s; }
button.nd-hero-chip:hover, a.nd-hero-chip:hover { border-color: #7b6cff; color: var(--text-primary); }

/* "Atmos AI'a yaz" kutusu (Enter → Atmos AI sayfası) */
.nd-ask { display: flex; align-items: flex-end; gap: 10px; background: var(--bg-base); border: 1px solid var(--border); border-radius: 14px; padding: 7px 7px 7px 14px; max-width: 760px; }
.nd-ask:focus-within { border-color: #7b6cff; }
.nd-ask textarea { flex: 1; min-width: 0; resize: none; border: 0; outline: 0; background: none; font: inherit; font-size: 14px; line-height: 1.45; color: var(--text-primary); padding: 8px 0; max-height: 120px; }
.nd-ask textarea::placeholder { color: var(--text-muted); }
.nd-ask .nd-hero-btn { border: 0; cursor: pointer; font-family: inherit; padding: 11px 18px; }
.nd-ask-hint { font-size: 11.5px; color: var(--text-muted); margin-top: 7px; }

/* ---------- Kalan kullanım hakları: açılır kapanır panel (ndu-*, masaüstü + mobil) ----------
   Kapalı: başlık + plan + limit etiketi + "Detaylar" ve tek satırlık özet. Açık: kartlar + uyarı + bağlantılar. */
.nd-usage { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 16px; padding: 11px 16px 12px; margin-bottom: 18px; }
.ndu-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; min-width: 0; }
.ndu-head:focus-visible { outline: 2px solid var(--accent2); outline-offset: 4px; border-radius: 8px; }
.nd-usage-t { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--text-primary); white-space: nowrap; }
.nd-usage-t svg { width: 17px; height: 17px; color: var(--accent2); }
.nd-usage-plan { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--nd-plan); color: #fff; font-size: 11.5px; font-weight: 700; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nd-usage-plan.free { background: var(--bg-elevated); color: var(--text-secondary); }
.nd-usage-plan svg { width: 13px; height: 13px; flex-shrink: 0; }
.ndu-flag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.ndu-flag svg { width: 13px; height: 13px; }
.ndu-flag.crit { background: color-mix(in srgb, #ef4444 16%, transparent); color: #f87171; }
.ndu-flag.warn { background: color-mix(in srgb, #f59e0b 16%, transparent); color: #fbbf24; }
:root[data-theme="light"] .ndu-flag.crit { color: #dc2626; }
:root[data-theme="light"] .ndu-flag.warn { color: #b45309; }
.ndu-more { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.ndu-more svg { width: 16px; height: 16px; transition: transform .2s; }
.ndu-head:hover .ndu-more { color: var(--text-primary); }
.nd-usage.open .ndu-more svg { transform: rotate(180deg); }
.ndu-sum { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 0 24px; font-size: 12.5px; color: var(--text-secondary); }
.ndu-s b { color: var(--text-primary); font-weight: 700; font-variant-numeric: tabular-nums; }
.ndu-s.warn b { color: #fbbf24; }
.ndu-s.crit b { color: #f87171; }
:root[data-theme="light"] .ndu-s.warn b { color: #b45309; }
:root[data-theme="light"] .ndu-s.crit b { color: #dc2626; }
.nd-usage.open .ndu-sum { display: none; }
/* Yükseklik animasyonu: 0fr → 1fr (içerik ölçmeden) */
.ndu-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.nd-usage.open .ndu-body { grid-template-rows: 1fr; }
.ndu-inner { min-height: 0; overflow: hidden; }
.ndu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.ndu-i { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); min-width: 0; transition: border-color .15s, transform .15s; }
.ndu-i:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.ndu-i-h { display: flex; align-items: center; gap: 7px; min-width: 0; }
.ndu-i-ic { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex-shrink: 0; }
.ndu-i-ic svg { width: 13px; height: 13px; }
.ndu-i-l { font-size: 12px; font-weight: 600; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ndu-i-v { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.1; }
.ndu-i-v b { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.ndu-i-v small { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.ndu-i-bar { height: 6px; border-radius: 999px; background: var(--bg-elevated); overflow: hidden; }
.ndu-i-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--nd-grad); min-width: 4px; }
.ndu-i-rem { font-size: 11.5px; font-weight: 600; color: var(--text-muted); }
.ndu-i.warn { border-color: color-mix(in srgb, #f59e0b 55%, var(--border)); }
.ndu-i.warn .ndu-i-bar > span { background: #f59e0b; }
.ndu-i.crit { border-color: color-mix(in srgb, #ef4444 55%, var(--border)); }
.ndu-i.crit .ndu-i-bar > span { background: #ef4444; }
.ndu-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: 12.5px; }
.ndu-warn { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 7px; color: var(--text-primary); }
.ndu-warn svg { width: 15px; height: 15px; color: #f59e0b; flex-shrink: 0; }
.ndu-note { flex: 1; min-width: 0; color: var(--text-muted); }
.ndu-links { display: inline-flex; flex-wrap: wrap; gap: 6px 16px; margin-left: auto; }
@media (prefers-reduced-motion: reduce) { .ndu-body, .ndu-more svg { transition: none; } }
@media (max-width: 860px) {
    .nd-usage { padding: 11px 13px; margin-bottom: 14px; border-radius: 14px; }
    .ndu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .ndu-i:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* Telefonda kapalıyken yalnız başlık + limit etiketi; ayrıntılar panelde */
@media (max-width: 600px) {
    .ndu-sum, .ndu-more-t { display: none; }
    .nd-usage-t { font-size: 14px; }
}
@media (max-width: 420px) {
    .ndu-head .nd-usage-plan { display: none; }
}

/* ---------- Günlük çalışma merkezi (ndw-*, masaüstü + mobil ortak) ---------- */
.ndw-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.ndw-tile { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--bg-surface); border: 1px solid var(--border); transition: transform .15s, border-color .15s; }
.ndw-tile:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.ndw-tile-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 6px; }
.ndw-tile-ic svg { width: 17px; height: 17px; }
.ndw-tile-v { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--text-primary); line-height: 1.05; }
.ndw-tile-l { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
.ndw-tile-s { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.ndw-tile-s.red { background: color-mix(in srgb, #ef4444 14%, transparent); color: #ef4444; }

.ndw-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.ndw-h-ic { width: 17px; height: 17px; color: #7b6cff; vertical-align: -2px; }
.ndw-list { display: flex; flex-direction: column; }
.ndw-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--border); min-width: 0; }
.ndw-row:last-child { border-bottom: 0; }
.ndw-row:hover .ndw-row-t { color: var(--accent2); }
.ndw-row-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.ndw-row-ic svg { width: 17px; height: 17px; }
.ndw-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ndw-row-t { font-size: 13.5px; font-weight: 700; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ndw-row-m { font-size: 11.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ndw-row-warn { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: #d97706; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ndw-row-warn svg { width: 13px; height: 13px; flex-shrink: 0; }
.ndw-row-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.ndw-next { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--text-primary); white-space: nowrap; }
.ndw-next svg { width: 13px; height: 13px; color: var(--text-muted); }
.ndw-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.ndw-more { font-size: 12px; color: var(--text-muted); padding: 8px 4px 0; }
.tone-red { background: color-mix(in srgb, #ef4444 13%, transparent); color: #ef4444; }
.tone-amber { background: color-mix(in srgb, #f59e0b 15%, transparent); color: #d97706; }
.tone-blue { background: color-mix(in srgb, #4a93ff 14%, transparent); color: #3b82f6; }
.tone-green { background: color-mix(in srgb, #12b981 14%, transparent); color: #0f9f6e; }
.tone-gray { background: var(--bg-elevated); color: var(--text-secondary); }

.ndw-cards { display: flex; flex-direction: column; gap: 10px; }
.ndw-card { display: flex; gap: 12px; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--border);
    background: linear-gradient(120deg, rgba(124,92,255,.07), rgba(74,147,255,.04)), var(--bg-surface); }
.ndw-card-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; background: var(--nd-grad); color: #fff; }
.ndw-card-ic svg { width: 17px; height: 17px; }
.ndw-card-b { flex: 1; min-width: 0; }
.ndw-card-t { font-size: 13.5px; font-weight: 800; color: var(--text-primary); }
.ndw-card-x { font-size: 12.5px; color: var(--text-secondary); line-height: 1.45; margin: 3px 0 8px; }
.ndw-card-btn { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 700; color: #7b6cff; cursor: pointer; }
.ndw-card-btn svg { width: 14px; height: 14px; }

/* İki kolon: Devam Et | Favoriler (masaüstü) */
.nd-two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }

@media (max-width: 1180px) {
    .ndw-grid, .nd-two { grid-template-columns: 1fr; }
}

/* ---------- 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); }


/* 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 { color: #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): 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; }

/* Çipler tek satırda kalır; sığmazsa parmakla sağa-sola kaydırılır (kaydırma çubuğu gizli) */
.ndm-chips { display: flex; gap: 10px; margin-bottom: 15px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.ndm-chips::-webkit-scrollbar { display: none; }
.ndm-chip { flex: 1 0 auto; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; 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: 2px; border-radius: 22px; padding: 14px 10px 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: 72px; flex-shrink: 0; display: grid; place-items: center; }
.ndm-ai-bot img { height: 88px; width: auto; filter: drop-shadow(0 0 10px rgba(56,220,255,.35)) drop-shadow(0 8px 14px rgba(30,40,90,.22)); }
.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; }
/* Tek satır: "›" hep sonda kalır; yer yetmezse (dar ekran / uzun çeviri) çip yazıları "…" ile kısalır */
.ndm-ai-chips { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 4px; min-width: 0; }
.ndm-ai-chip { display: inline-flex; align-items: center; gap: 4px; min-width: 0; 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-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.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; margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-elevated); display: grid; place-items: center; color: #7b6cff; }
.ndm-ai-go svg { width: 16px; height: 16px; }

/* Mobil "Atmos AI'a yaz" kutusu */
.ndm-ai { align-items: flex-start; padding-top: 16px; }
.ndm-ai-bot { align-self: center; }
.ndm-ask { padding: 5px 5px 5px 11px; border-radius: 12px; margin-bottom: 9px; gap: 6px; max-width: none; }
.ndm-ask textarea { font-size: 13px; padding: 6px 0; }
.ndm-ask-btn { flex-shrink: 0; width: 36px; height: 36px; border: 0; border-radius: 10px; display: grid; place-items: center; background: var(--nd-grad); color: #fff; cursor: pointer; }
.ndm-ask-btn svg { width: 16px; height: 16px; }
button.ndm-ai-chip { border: 0; font-family: inherit; cursor: pointer; padding: 7px 8px; font-size: 10.5px; }
.ndm-ai-chip:nth-child(3) svg { color: #f59e0b; }

/* Mobilde çalışma merkezi: 2×2 kutucuk, tek kolon, sıkı paneller */
@media (max-width: 860px) {
    .ndw-tiles { grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 14px; }
    .ndw-tile { padding: 11px 12px; border-radius: 14px; }
    .ndw-tile-ic { width: 28px; height: 28px; margin-bottom: 4px; }
    .ndw-tile-v { font-size: 20px; }
    .ndw-tile-l { font-size: 11.5px; }
    .ndw-tile-s { top: 10px; right: 10px; font-size: 10px; padding: 2px 6px; }
    .ndw-grid { gap: 0; }
    .ndw .nd-panel { padding: 14px 14px; border-radius: 16px; margin-bottom: 14px; }
    .ndw .nd-panel-h { margin-bottom: 8px; }
    .ndw .nd-panel-h h2 { font-size: 15.5px; }
    .ndw-row { gap: 10px; padding: 9px 2px; }
    .ndw-row-ic { width: 32px; height: 32px; }
    .ndw-row-t { font-size: 13px; }
    .ndw-row-m { font-size: 11px; }
    .ndw-badge { font-size: 10px; padding: 2px 7px; }
    .ndw-next { font-size: 11px; }
    .ndw-card { padding: 11px 12px; }
}

.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); }


/* Görüntülü reklam birimi (Views/Shared/_AdUnit) — Free plan, Ana Sayfa'nın altı */
.ad-unit { margin: 8px 0 16px; padding: 10px 12px 12px; border-radius: 14px; background: var(--bg-surface); border: 1px solid var(--border); overflow: hidden; }
.ad-unit-label { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.ad-unit ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.ad-unit:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }

[data-hscroll].dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }

.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 { color: #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; } }
