/* Bildirimler: hesapsız takip formu, bülten aboneliği (rehber sonu + alt bilgi), onay sayfaları,
   Yönetim > Bildirimler paneli. Renkler yalnızca token'lardan. */

/* Alt bilgi her iki temada koyu: oradaki hata yazısı için açık kırmızı (koyu zeminde kontrast ≥ 4.5:1) */
:root { --night-danger: #ff8a80; }

.nt-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nt-small { font-size: 0.8125rem; }
.nt-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.nt-row input[type='email'] { flex: 1 1 220px; min-width: 0; height: 46px; font-size: 0.9375rem; }
.nt-row .btn { flex-shrink: 0; }
.nt-ok { background: var(--lime-soft); color: var(--text); border-radius: 8px; padding: 10px 14px; font-size: 0.875rem; }

/* Ürün sayfası: misafir takip formu (alarm kutusunun içinde) */
.nt-follow { display: grid; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.nt-title { margin: 0; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
.nt-follow p { margin: 0; }
.nt-follow label.check, .nt-nl label.check { color: var(--text-2); }

/* Rehber sonu bülten kutusu */
.nt-signup { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.nt-signup h2 { margin: 0 0 6px; font-size: 1.5rem; }
.nt-signup > p { margin: 0 0 14px; }
.nt-nl { display: grid; gap: 12px; max-width: 640px; }

/* Alt bilgi (koyu zemin) */
.nt-footer-form { margin-top: 24px; max-width: 420px; }
.nt-footer-title { margin: 0; color: var(--night-text); font-weight: 600; font-size: 0.9375rem; }
.footer .nt-footer-form input[type='email'] { background: var(--night-2); border-color: #7b7a72; color: var(--night-text); } /* ≥ 3:1 (koyu zeminde) */
.footer .nt-footer-form input[type='email']::placeholder { color: var(--night-muted); }
.footer .nt-footer-form label.check { color: var(--night-muted); font-size: 0.75rem; }
.footer .nt-footer-form label.check input { accent-color: var(--lime); }
.footer .nt-footer-form .nt-ok { background: var(--night-2); color: var(--night-text); }
.footer .nt-footer-form .form-error { background: var(--night-2); color: var(--night-danger); }

/* Onay / abonelikten çıkma sayfaları (sunucuda üretilir) */
.nt-page { max-width: 560px; margin: 64px auto; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.nt-page h1 { margin: 0 0 10px; font-family: var(--display); font-size: 2rem; letter-spacing: -0.02em; }
.nt-page form { margin-top: 18px; }
.nt-page p .btn + .btn { margin-left: 8px; }

/* Yönetim > Bildirimler */
.nt-env { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; font-size: 0.875rem; }
.nt-env li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.nt-env code { font-family: var(--mono); font-size: 0.8125rem; }
.nt-env b { margin-left: auto; font-weight: 600; }
.nt-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warn); flex-shrink: 0; align-self: center; }
.nt-dot.on { background: var(--lime-text); }
.nt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 8px; }
.nt-stats div { border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: grid; gap: 4px; }
.nt-stats b { font-family: var(--mono); font-size: 1.375rem; }
.nt-stats span { font-size: 0.8125rem; color: var(--muted); }
.nt-h3 { margin: 22px 0 6px; font-size: 1.125rem; }
.nt-list { margin: 8px 0 0; padding-left: 18px; font-size: 0.875rem; }
.nt-pre { white-space: pre-wrap; word-break: break-word; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-family: var(--mono); font-size: 0.75rem; max-height: 320px; overflow: auto; }
#notify-panel form.nt-row { display: flex; }

@media (max-width: 640px) {
  .nt-page { margin: 24px auto; padding: 22px; }
  .nt-row .btn { flex: 1 1 100%; }
}

/* --- Hesabım › Alarmlarım: takip kartları (public/account.js tabAlerts) -------------------------------------------
   Renk: bekleyen nötr, hedefe ilerleme krem (bilgi), tutan yeşil (kazanç; limon değil), taksiti biten mercan (uyarı).
   Limon yalnızca dolu taksit kutusunda (--lime-text: açıkta yosun, koyuda limon). */
.al-stats { margin: 0 0 18px; border-top: 0; }
.al-list { display: grid; gap: 12px; }
.al-card { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 12px 16px 12px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.al-card.is-met { border-color: color-mix(in srgb, var(--good) 55%, var(--line)); }
.al-media { display: block; width: 120px; height: 96px; border-radius: 8px; overflow: hidden; background: var(--media-well); }
.al-media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.is-off .al-media img { filter: grayscale(1); opacity: 0.55; }
.al-main { min-width: 0; display: grid; gap: 10px; }
.al-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; }
.al-title { font-family: var(--display); font-size: 1.125rem; font-weight: 650; letter-spacing: -0.012em; line-height: 1.25; color: var(--text); text-decoration: none; min-width: 0; flex: 1 1 240px; }
.al-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.al-status { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; font-size: 0.75rem; font-weight: 600; padding: 3px 9px; border-radius: 6px; white-space: nowrap; }
.al-status .ico { width: 13px; height: 13px; stroke-width: 2.4; }
.al-wait { background: var(--line-soft); color: var(--text-2); }
.al-met { background: var(--good-soft); color: var(--good-text); }
.al-off { background: var(--warn-soft); color: var(--warn-text); }
.al-goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 22px; }
.al-goal { display: grid; gap: 6px; align-content: start; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.al-label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.al-vals { display: flex; gap: 22px; }
.al-vals > span { display: grid; }
.al-vals small { font-size: 0.75rem; color: var(--muted); }
.al-vals b { font-family: var(--display); font-size: 1.125rem; font-weight: 700; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.al-goal.is-met .al-vals > span:last-child b { color: var(--good-text); }
.al-bar { display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.al-bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.al-goal.is-met .al-bar i { background: var(--good); }
.al-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; height: 8px; max-width: 240px; }
.al-strip i { border-radius: 2px; background: var(--line); }
.al-strip i.on { background: var(--lime-text); }
.al-strip i.goal { box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 3px var(--accent); }
.al-note { font-size: 0.8125rem; color: var(--text-2); }
.al-note b { font-weight: 650; color: var(--text); }
.al-goal.is-met .al-note, .al-goal.is-met .al-note b { color: var(--good-text); }
.al-meta { margin: 0; font-size: 0.75rem; color: var(--muted); }
.al-down { color: var(--good-text); }
.al-up { color: var(--warn-text); }
.al-actions { display: grid; gap: 6px; justify-items: stretch; }
.al-actions .btn { justify-content: center; }
.al-del .ico { width: 14px; height: 14px; }
.al-foot { margin: 14px 0 0; font-size: 0.75rem; }
.al-how { list-style: none; counter-reset: alh; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.al-how li { counter-increment: alh; display: grid; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.al-how li::before { content: counter(alh); font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.al-how b { font-family: var(--display); font-weight: 650; }
.al-how span { font-size: 0.8125rem; color: var(--muted); }

/* --- Hesabım › Bildirimler: güne göre gruplu liste (tabNotifications) --------------------------------------------- */
.nr-unread-count { color: var(--text); font-weight: 600; }
.nr-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 4px; }
.nr-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text-2); font: inherit; font-size: 0.8125rem; cursor: pointer; }
.nr-chip .num { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.nr-chip:hover { border-color: var(--text); color: var(--text); }
.nr-chip[aria-pressed='true'] { background: var(--text); border-color: var(--text); color: var(--paper); }
.nr-chip[aria-pressed='true'] .num { color: inherit; opacity: 0.7; }
.nr-group[hidden] { display: none; }
.nr-day { margin: 22px 0 0; padding-bottom: 8px; font-family: var(--sans); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.nr-list { list-style: none; margin: 0; padding: 0; }
.nr { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.nr[hidden] { display: none; }
.nr-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--line-soft); color: var(--text-2); }
.nr-icon .ico { width: 17px; height: 17px; }
.nr-alert .nr-icon { background: var(--accent-soft); color: var(--accent-text); }
.nr-price-drop .nr-icon { background: var(--good-soft); color: var(--good-text); }
.nr-back .nr-icon { background: var(--lime-soft); color: var(--lime-text); }
.nr-unavailable .nr-icon { background: var(--warn-soft); color: var(--warn-text); }
.nr-body { min-width: 0; display: grid; gap: 3px; }
.nr-kind { display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.nr-new { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; background: var(--text); color: var(--paper); }
.nr-text { font-size: 0.9375rem; color: var(--text-2); text-decoration: none; overflow-wrap: anywhere; }
a.nr-text:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.nr.unread .nr-text { color: var(--text); font-weight: 600; }
.nr-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 0.8125rem; color: var(--text-2); }
.nr-detail { font-family: var(--mono); font-size: 0.8125rem; color: var(--text-2); }
.nr-unavailable .nr-detail, .nr-welcome .nr-detail { font-family: var(--sans); color: var(--muted); }
.nr-fact { font-size: 0.75rem; font-weight: 600; padding: 1px 7px; border-radius: 6px; background: var(--good-soft); color: var(--good-text); }
.nr-thumb { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--media-well); }
.nr-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.nr-unavailable .nr-thumb img { filter: grayscale(1); opacity: 0.55; }
.nr-time { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); white-space: nowrap; min-width: 64px; text-align: right; }

/* --- Hesabım › Kartlarım: cüzdan (seçilen kart tipleri ve kazandırdıkları; tabCards) ------------------------------ */
.wallet { margin: 18px 0 8px; }
.wallet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.wallet-card { display: grid; gap: 14px; align-content: start; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.wc-top { display: flex; align-items: center; gap: 14px; }
.wc-plate { flex-shrink: 0; width: 84px; height: 53px; border-radius: 7px; display: grid; place-items: center; background: var(--logo-well, #fff); box-shadow: inset 0 0 0 1px rgba(15, 16, 13, 0.08); overflow: hidden; }
.wc-plate .logo-badge { width: 100%; height: 100%; display: grid; place-items: center; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: var(--logo-bg, transparent); }
.wc-plate .logo-badge img { max-width: 70px; height: auto; max-height: 26px; }
.wc-plate > b { font-family: var(--display); font-size: 0.8125rem; color: #0f100d; text-align: center; padding: 0 6px; line-height: 1.1; }
.wc-name { min-width: 0; }
.wc-name h3 { margin: 0; font-family: var(--display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; }
.wc-name small { display: block; font-size: 0.8125rem; color: var(--muted); }
.wc-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line-soft); }
.wc-stats > div { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.wc-stats > div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line-soft); }
.wc-stats dt { font-size: 0.75rem; color: var(--muted); }
.wc-stats dd { margin: 2px 0 0; font-family: var(--display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wc-stats dd small { font-family: var(--sans); font-size: 0.75rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.wc-share { display: grid; gap: 6px; }
.wc-share small { font-size: 0.75rem; color: var(--muted); }
.wc-share b { color: var(--text); font-weight: 600; }
.wc-bar { display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.wc-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.wc-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.8125rem; }
.wc-links a { color: var(--text); text-underline-offset: 3px; }
.wc-empty { margin: 0; font-size: 0.8125rem; }
.cards-privacy { display: flex; gap: 10px; align-items: flex-start; }
.cards-privacy > .ico { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; color: var(--text-2); }
#cards-form .sub-title { margin-top: 8px; }

@media (max-width: 640px) {
  .al-card { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .al-main { display: contents; }
  .al-head { grid-column: 2; align-self: center; }
  .al-goals, .al-meta { grid-column: 1 / -1; }
  .al-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .al-stats .stat { padding-right: 8px; }
  .al-stats .stat:nth-child(n) { padding-left: 12px; border-left: 1px solid var(--line-soft); border-top: 0; }
  .al-stats .stat:first-child { padding-left: 0; border-left: 0; }
  .al-media { width: 76px; height: 76px; }
  .al-title { font-size: 1rem; flex-basis: 100%; }
  .al-goals { grid-template-columns: 1fr; }
  .al-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .al-how { grid-template-columns: 1fr; }
  .nr { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px 12px; align-items: start; }
  .nr-icon { width: 32px; height: 32px; }
  .nr-thumb { display: none; }
  .nr-chip { min-height: 44px; }
  .nr-time { min-width: 0; }
  .wallet-grid { grid-template-columns: 1fr; }
  .wc-plate { width: 72px; height: 45px; }
}
