:root {
  --accent: #e11d48;
  --accent-600: #be123c;
  --accent-50: #fff1f2;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f6f7fb;
  --card: #ffffff;
  --ok: #059669;
  --ok-50: #ecfdf5;
  --warn: #d97706;
  --warn-50: #fffbeb;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, .12);

  /* Grafik rolleri (dataviz doğrulayıcısından geçti: #2a78d6 / #eb6834, beyaz yüzey) */
  --viz-read: #2a78d6;
  --viz-added: #eb6834;
  --viz-surface: #ffffff;
  --viz-ink: #0b0b0b;
  --viz-muted: #6b6a66;
  --viz-grid: #e9e8e3;
  --viz-axis: #c3c2b7;
  --viz-empty: #f1f1ee;
  --viz-seq-1: #cde2fb;
  --viz-seq-2: #86b6ef;
  --viz-seq-3: #3987e5;
  --viz-seq-4: #1c5cab;
  --viz-seq-5: #0d366b;
}

html { font-size: 15px; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.link-accent { color: var(--accent); text-decoration: none; }
.link-accent:hover { color: var(--accent-600); text-decoration: underline; }
.link-muted { color: var(--muted); text-decoration: none; }
.link-muted:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn-accent:hover, .btn-accent:focus { background: var(--accent-600); border-color: var(--accent-600); color: #fff; }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.2); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn:focus-visible, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 .2rem rgba(225, 29, 72, .2);
  border-color: var(--accent);
}
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; letter-spacing: -.01em; }
.brand strong { font-weight: 800; }
.brand-logo { width: 34px; height: 34px; object-fit: contain; }
.brand-lg { font-size: 1.35rem; }
.brand-lg .brand-logo { width: 48px; height: 48px; }
.auth-logo { display: block; width: 120px; height: auto; margin: 0 auto 1.75rem; }

/* ---------- App header ---------- */
.app-header { background: #0f172a; position: sticky; top: 0; z-index: 1030; }
.app-header .navbar { padding: .7rem 0; }
.main-nav .nav-link { white-space: nowrap; color: rgba(255,255,255,.7); font-weight: 500; border-radius: 10px; padding: .45rem .8rem !important; display: flex; align-items: center; gap: .4rem; }
.main-nav .nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.main-nav .nav-link.active { color: #fff; background: rgba(255,255,255,.1); }
.badge-pending { background: var(--accent); font-weight: 600; }
.badge-read { background: rgba(255,255,255,.18); font-weight: 600; }
.badge-fav { background: #f59e0b; color: #1f1300; font-weight: 600; }
.js-fetch { white-space: nowrap; }
.js-fetch.loading i { animation: spin 1s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.app-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; padding: 1.25rem 0; margin-top: 2rem; background: #fff; }
.app-footer a { color: var(--ink-2); }

/* ---------- Stats ---------- */
.stats-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.stat-card {
  display: flex; align-items: center; gap: .9rem;
  background: var(--card); border-radius: var(--radius); padding: 1rem 1.1rem;
  box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s;
}
a.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; flex-shrink: 0; }
.stat-icon.pending { background: var(--accent-50); color: var(--accent); }
.stat-icon.read { background: var(--ok-50); color: var(--ok); }
.stat-icon.fav { background: #fef3c7; color: #f59e0b; }
.stat-icon.total { background: #eef2ff; color: #4f46e5; }
.stat-icon.today { background: var(--warn-50); color: var(--warn); }
.stat-value { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.stat-label { display: block; color: var(--muted); font-size: .82rem; }

/* ---------- Page head ---------- */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.25rem; }
.page-title { font-family: "Playfair Display", Georgia, serif; font-weight: 800; font-size: 1.9rem; margin: 0; letter-spacing: -.01em; }
.page-title i { color: var(--accent); font-size: 1.4rem; vertical-align: .15em; }
.page-sub { color: var(--muted); margin: .25rem 0 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.search-box { position: relative; }
.search-box i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box input { padding-left: 2.3rem; min-width: 280px; border-radius: 10px; }

/* ---------- News grid / card ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.25rem; }
.news-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, opacity .35s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.news-card.removing { opacity: 0; transform: scale(.96); }
.news-card-media { position: relative; display: block; aspect-ratio: 16 / 9; background: #e2e8f0; overflow: hidden; }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-card-media img { transform: scale(1.04); }
.news-card-noimg { display: grid; place-items: center; height: 100%; color: #94a3b8; font-size: 2rem; }
.news-card-cat {
  position: absolute; left: .75rem; top: .75rem; background: rgba(15,23,42,.75); color: #fff;
  font-size: .72rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; backdrop-filter: blur(4px);
}
.news-card-readflag {
  position: absolute; right: .75rem; top: .75rem; background: var(--ok); color: #fff;
  font-size: .72rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; display: none;
}
.news-card.is-read .news-card-readflag { display: inline-block; }
.news-card.is-read .news-card-media img { filter: saturate(.6); }
.news-card-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.news-card-meta { color: var(--muted); font-size: .78rem; margin-bottom: .4rem; }
.news-card-title { font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin: 0 0 .5rem; }
.news-card-title a { text-decoration: none; }
.news-card-title a:hover { color: var(--accent); }
.news-card-summary {
  color: var(--ink-2); font-size: .88rem; line-height: 1.5; margin: 0 0 1rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-actions { margin-top: auto; display: flex; align-items: center; gap: .5rem; }
.btn-read {
  border: 1px solid var(--line); color: var(--ink-2); background: #fff; font-weight: 600; border-radius: 999px;
  padding: .3rem .8rem; transition: all .15s;
}
.btn-read:hover { border-color: var(--ok); color: var(--ok); }
.btn-read.active { background: var(--ok-50); border-color: var(--ok); color: var(--ok); }
.btn-read.active:hover { background: #fff; border-color: var(--muted); color: var(--muted); }
.btn-read:disabled { opacity: .6; }
.btn-fav {
  border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px;
  width: 34px; height: 31px; padding: 0; display: inline-grid; place-items: center; transition: all .15s;
}
.btn-fav:hover { border-color: #f59e0b; color: #f59e0b; }
.btn-fav.active { background: #fef3c7; border-color: #f59e0b; color: #f59e0b; }
.btn-fav.pop i { animation: pop .3s ease; }
@keyframes pop { 50% { transform: scale(1.35); } }
.btn-fav-wide { border: 1px solid var(--line); color: var(--ink-2); background: #fff; }
.btn-fav-wide:hover, .btn-fav-wide.active { background: #fef3c7; border-color: #f59e0b; color: #b45309; }

.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.empty-state > i { font-size: 3rem; color: #cbd5e1; display: block; margin-bottom: .5rem; }

.pagination .page-link { color: var(--ink-2); border-radius: 10px !important; margin: 0 .15rem; border: 1px solid var(--line); }
.pagination .page-item.active .page-link { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Detail ---------- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; }
.detail { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem 2.25rem; }
.detail-meta { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; color: var(--muted); font-size: .85rem; margin-bottom: .9rem; }
.chip { background: var(--accent-50); color: var(--accent); font-weight: 600; font-size: .78rem; padding: .25rem .7rem; border-radius: 999px; text-decoration: none; }
.chip-outline { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }
.chip-outline:hover { border-color: var(--accent); color: var(--accent); }
.detail-title { font-family: "Playfair Display", Georgia, serif; font-weight: 800; font-size: 2.2rem; line-height: 1.2; letter-spacing: -.01em; }
.detail-summary { font-size: 1.12rem; color: var(--ink-2); line-height: 1.6; font-weight: 500; margin-top: .75rem; }
.detail-hero { margin: 1.5rem -2.25rem; }
.detail-hero img { width: 100%; max-height: 520px; object-fit: cover; }
.detail-content { font-size: 1.05rem; line-height: 1.8; color: #1e293b; }
.detail-content p { margin-bottom: 1.1rem; }
.detail-content h2, .detail-content h3, .detail-content h4 { font-weight: 700; font-size: 1.15rem; margin: 1.75rem 0 .75rem; color: var(--ink); }
.detail-content img { max-width: 100%; height: auto; border-radius: 12px; margin: .5rem 0; display: block; }
.detail-content .key-points { background: var(--accent-50); border-left: 4px solid var(--accent); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.detail-content .key-points h4 { margin: 0 0 .5rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.detail-content .key-points ul { margin: 0; padding-left: 1.1rem; font-size: .95rem; line-height: 1.6; }
.detail-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.detail-source { color: var(--muted); font-size: .85rem; margin: 1.25rem 0 0; }
.detail-source a { color: var(--ink-2); }
.side-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; top: 90px !important; }
.side-title { text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; color: var(--muted); font-weight: 700; margin-bottom: .75rem; }
.status-pill { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; border-radius: 12px; font-weight: 600; }
.status-pill.read { background: var(--ok-50); color: var(--ok); }
.status-pill.pending { background: var(--warn-50); color: var(--warn); }

/* ---------- Panels / Users ---------- */
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.section-title { text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; color: var(--muted); font-weight: 700; margin-bottom: 1rem; }
.user-table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; border-bottom-color: var(--line); padding: .9rem 1rem; background: #f8fafc; }
.user-table td { padding: .85rem 1rem; border-color: var(--line); }
.user-table tr.is-inactive td { opacity: .6; }
.user-table tr.is-inactive td:last-child { opacity: 1; }
.user-cell { display: flex; align-items: center; gap: .75rem; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0;
  background: #e0e7ff; color: #4338ca; font-weight: 700; font-size: .85rem;
}
.avatar.admin { background: var(--accent-50); color: var(--accent); }
.avatar-lg { width: 84px; height: 84px; font-size: 1.6rem; display: grid; background: linear-gradient(135deg, #fb7185, var(--accent)); color: #fff; }
.role-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; }
.role-badge.admin { background: var(--accent-50); color: var(--accent); }
.role-badge.editor { background: #eef2ff; color: #4f46e5; }
.status-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; white-space: nowrap; }
.status-badge.on { background: var(--ok-50); color: var(--ok); }
.status-badge.off { background: #f1f5f9; color: var(--muted); }
.status-badge.invite { background: var(--warn-50); color: var(--warn); }
.status-badge.locked { background: #fef2f2; color: #dc2626; }
.form-layout { max-width: 760px; }
.role-options { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.role-option { position: relative; cursor: pointer; }
.role-option input { position: absolute; opacity: 0; }
.role-option-body { display: block; border: 1.5px solid var(--line); border-radius: 12px; padding: .85rem 1rem; transition: all .15s; height: 100%; }
.role-option:hover .role-option-body { border-color: #cbd5e1; }
.role-option input:checked + .role-option-body { border-color: var(--accent); background: var(--accent-50); }
.role-option input:focus-visible + .role-option-body { box-shadow: 0 0 0 .2rem rgba(225, 29, 72, .2); }
.role-option.disabled { cursor: not-allowed; opacity: .5; }
.form-switch .form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.profile-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.profile-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: 1.25rem 0; }
.profile-facts div { background: #f8fafc; border-radius: 12px; padding: .6rem; }
.profile-facts dt { font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.profile-facts dd { margin: 0; font-size: 1.3rem; font-weight: 700; }

/* ---------- Stats ---------- */
.stats-filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1.25rem; }
.segmented { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.segmented-item { position: relative; margin: 0; }
.segmented-item input { position: absolute; opacity: 0; }
.segmented-item span { display: block; padding: .35rem .8rem; border-radius: 8px; font-size: .85rem; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.segmented-item input:checked + span { background: var(--ink); color: #fff; }
.segmented-item input:focus-visible + span { box-shadow: 0 0 0 .2rem rgba(225, 29, 72, .25); }
.stats-scope { width: auto; min-width: 180px; border-radius: 10px; }
.kpi-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.kpi { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .2rem; }
.kpi-label { font-size: .82rem; color: var(--muted); }
.kpi-value { font-size: 1.85rem; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.kpi-value small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.kpi-sub { font-size: .78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.kpi-delta { font-weight: 600; }
.kpi-delta.up { color: #006300; }
.kpi-delta.down { color: #b42318; }
.meter { height: 6px; border-radius: 999px; background: var(--viz-seq-1); overflow: hidden; margin: .35rem 0 .15rem; }
.meter span { display: block; height: 100%; background: var(--viz-read); border-radius: 999px; }
.chart-card { background: var(--viz-surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem 1.25rem 1rem; margin-bottom: 1.25rem; min-width: 0; }
.chart-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.chart-grid .chart-card { margin-bottom: 1.25rem; }
.chart-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: .75rem; flex-wrap: wrap; }
.chart-title { font-size: 1rem; font-weight: 600; margin: 0; }
.chart-sub { font-size: .8rem; color: var(--muted); margin: .15rem 0 0; }
.chart { width: 100%; min-height: 60px; }
.chart svg { display: block; overflow: visible; }
.chart-empty { color: var(--muted); text-align: center; padding: 2.5rem 1rem; margin: 0; font-size: .9rem; }
.legend, .scale-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .9rem; margin: 0; padding: 0; font-size: .8rem; color: var(--ink-2); }
.legend li, .scale-legend > span { display: inline-flex; align-items: center; gap: .35rem; }
.scale-legend { gap: .6rem; margin-top: .6rem; color: var(--muted); font-size: .75rem; }
.swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.viz-band .viz-mark, .viz-cell { transition: opacity .12s; }
.viz-band:hover .viz-mark, .viz-band:focus .viz-mark { opacity: .78; }
.viz-cell:hover, .viz-cell:focus { stroke: var(--viz-ink); stroke-width: 1.5; }
.viz-band:focus, .viz-cell:focus { outline: none; }
.viz-band:focus .viz-hit { fill: rgba(42, 120, 214, .06); }
.viz-tooltip {
  position: fixed; left: 0; top: 0; z-index: 1080; pointer-events: none;
  background: #fff; color: var(--viz-ink); border: 1px solid rgba(11,11,11,.10); border-radius: 10px;
  box-shadow: var(--shadow-lg); padding: .5rem .7rem; font-size: .8rem; min-width: 120px;
}
.viz-tooltip-title { color: var(--muted); font-size: .75rem; margin-bottom: .25rem; }
.viz-tooltip-row { display: flex; align-items: center; gap: .4rem; }
.viz-tooltip-row strong { font-variant-numeric: tabular-nums; font-size: .9rem; }
.viz-tooltip-row span:last-child { color: var(--ink-2); }
.viz-tooltip-key { width: 10px; height: 2px; border-radius: 1px; display: inline-block; }
.chart-table { margin-top: .75rem; font-size: .85rem; }
.chart-table summary { color: var(--muted); cursor: pointer; font-size: .8rem; width: max-content; }
.chart-table summary:hover { color: var(--ink); }
.chart-table table { margin: .5rem 0 0; font-variant-numeric: tabular-nums; }
.team-table .num { font-variant-numeric: tabular-nums; }
.team-table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }

/* ---------- Fetch admin ---------- */
.kpi-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi-value-sm { font-size: 1.35rem; }
.fetch-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 1.5rem; align-items: start; }
.fetch-layout > * { min-width: 0; }
/* Hata yokken boş özet kutusu görünmesin. */
.validation-summary-valid { display: none; }
.status-badge.ok { background: var(--ok-50); color: var(--ok); }
.status-badge.failed { background: #fef2f2; color: #dc2626; }
.status-badge.partial { background: var(--warn-50); color: #b45309; }
.status-badge.sm { font-size: .72rem; padding: .15rem .5rem; }
.empty-inline { color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: .4rem; }
.empty-inline i { color: var(--ok); }
.failed-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.failed-list li { display: flex; gap: .75rem; justify-content: space-between; align-items: center; padding: .75rem 0; border-top: 1px solid var(--line); }
.failed-list li:first-child { border-top: 0; padding-top: 0; }
.failed-list a { color: var(--ink); text-decoration: none; }
.failed-list a:hover { color: var(--accent); }
.min-w-0 { min-width: 0; }
.segmented-link { display: block; padding: .3rem .75rem; border-radius: 8px; font-size: .82rem; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.segmented-link.active { background: var(--ink); color: #fff; }
.log-table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: #f8fafc; padding: .7rem 1rem; }
.log-table td { padding: .6rem 1rem; font-size: .88rem; }
.log-table .num { font-variant-numeric: tabular-nums; }
.trigger-cell { max-width: 220px; }
.error-cell { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Toast ---------- */
#appToast { background: #0f172a; color: #fff; border-radius: 12px; }

/* ---------- Auth ---------- */
body.auth { background: #fff; }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-hero {
  position: relative; overflow: hidden; color: #fff; display: flex; align-items: center; padding: 3rem;
  background:
    radial-gradient(1200px 600px at -10% -10%, rgba(251,113,133,.45), transparent 60%),
    radial-gradient(800px 500px at 110% 110%, rgba(129,140,248,.35), transparent 60%),
    #0f172a;
}
.auth-hero-inner { max-width: 460px; margin: 0 auto; }
.auth-hero h1 { font-family: "Playfair Display", Georgia, serif; font-weight: 800; font-size: 2.8rem; line-height: 1.1; margin: 2.5rem 0 1rem; }
.auth-hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; line-height: 1.6; }
.auth-features { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .8rem; }
.auth-features li { display: flex; gap: .7rem; align-items: center; color: rgba(255,255,255,.85); }
.auth-features i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.1); color: #fda4af; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.auth-card { width: 100%; max-width: 400px; }
.auth-title { font-weight: 700; font-size: 1.6rem; margin-bottom: .35rem; letter-spacing: -.01em; }
.auth-sub { color: var(--muted); margin-bottom: 1.75rem; }
.auth-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: var(--accent-50); color: var(--accent); margin-bottom: 1.25rem; }
.auth-icon.success { background: var(--ok-50); color: var(--ok); }
.auth .form-label { font-weight: 600; font-size: .88rem; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .form-control { padding: .7rem .9rem .7rem 2.5rem; border-radius: 10px; }
.btn-eye { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); padding: .25rem .5rem; }
.auth .btn { border-radius: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-row > :last-child { grid-column: 1 / -1; }
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-row > :last-child { grid-column: 1 / -1; }
  .chart-grid { grid-template-columns: 1fr; }
  .fetch-layout { grid-template-columns: minmax(0, 1fr); }
  .kpi-row-4 > :last-child { grid-column: auto; }
  .detail-layout { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .detail-side { order: -1; }
  .side-card { position: static !important; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-hero { padding: 2rem 1.5rem; }
  .auth-hero h1 { font-size: 2rem; margin-top: 1.5rem; }
  .auth-features { display: none; }
}
@media (max-width: 575.98px) {
  .detail { padding: 1.25rem; }
  .detail-hero { margin: 1rem -1.25rem; }
  .detail-title { font-size: 1.6rem; }
  .search-box, .search-box input { min-width: 0; width: 100%; }
  .page-actions { width: 100%; }
  .page-actions > * { flex: 1; }
  .role-options { grid-template-columns: 1fr; }
}
