/*
 * junly-rewards.css — [JUNLY-REWARDS] Ödül Sitesi sayfası (docs/design-system.md §7.81).
 * Üstte tek kart: durum (anahtar + evre cümlesi) · bu dönem · adres · Ayarlar | Alanlar
 * (hücreler arasında saç çizgisi). Ayarlar: bölüm listesi | seçili bölümün formu
 * (altta kaydet çubuğu) | sitenin önizlemesi. Alanlar: özet kutuları + son alımlar +
 * dönemler. Masaüstünde sayfa kaymaz; yalnız form, önizleme ve listeler içeriden
 * kayar. Döngü yok; hover yalnız ışık. Önek jnr-.
 */

#view-junly-rewards { font-family: var(--wf-font-text); color: var(--wf-text-1); }
#view-junly-rewards :is(button, a, input):focus-visible {
  outline: 2px solid rgba(244, 236, 234, 0.6);
  outline-offset: -2px;
}

.jnr {
  --hue: #f0b45a;
  --surf: rgba(255, 255, 255, 0.025);
  --edge: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: calc(100dvh - 64px - 48px);
  min-height: 560px;
}
.jnr-body { position: relative; flex: 1; min-height: 0; }
.jnr[data-tab='settings'] .jnr-claims,
.jnr[data-tab='claims'] .jnr-set,
.jnr.is-unknown .jnr-set,
.jnr.is-unknown .jnr-claims { display: none; }
.jnr-note { margin: 0; font-size: 0.78rem; line-height: 1.45; text-wrap: pretty; color: var(--wf-text-4); }

/* Ortak ince çubuk: kontenjan, dönemler, sitenin kalan yer ölçeği (durağan scaleX) */
.jnr-bar { display: block; height: 4px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, 0.08); }
.jnr-bar i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--hue);
  transform-origin: left center;
  transition: transform var(--wf-dur-state) var(--wf-ease-out);
}
.jnr-bar.is-full i { background: var(--wf-danger); }

/* İç kaydırma: ok düğmesiz ince çubuk (genel kırmızı çubuk ezilir) */
.jnr :is(.jnr-form-body, .jnr-pv-site, .jnr-rounds-list) {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: auto;
  scrollbar-color: auto;
}
.jnr :is(.jnr-form-body, .jnr-pv-site, .jnr-rounds-list)::-webkit-scrollbar { width: 12px; }
.jnr :is(.jnr-form-body, .jnr-pv-site, .jnr-rounds-list)::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.jnr :is(.jnr-form-body, .jnr-pv-site, .jnr-rounds-list)::-webkit-scrollbar-thumb {
  border: 4px solid transparent;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1) padding-box;
}

/* ── durum kartı ── */
.jnr-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  flex-shrink: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018) 46%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.065);
}
.jnr-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  padding: 14px 20px;
}
.jnr-cell + .jnr-cell { border-left: 1px solid var(--line); }
.jnr-k { font-size: 0.74rem; font-weight: 600; color: var(--wf-text-4); }
.jnr-v {
  font-family: var(--wf-font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  color: var(--wf-text-1);
}
.jnr-s { font-size: 0.78rem; line-height: 1.4; text-wrap: pretty; color: var(--wf-text-3); }
.jnr-url {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--wf-font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  color: var(--wf-text-1);
  transition: color var(--wf-dur-hover) ease;
}
.jnr-url svg { width: 14px; height: 14px; color: var(--hue); }
.jnr-tabcell { align-items: flex-end; padding: 0 16px; }
.jnr-tabs button { height: 34px; }
.jnr-tab-dot { display: none; width: 6px; height: 6px; border-radius: 50%; background: var(--hue); }
.jnr-tab-dot.is-on { display: inline-block; }

/* Anahtar: pencerelerin .dlg-switch'i, açıkken yeşil */
.jnr-state { flex-direction: row; justify-content: flex-start; align-items: center; gap: 14px; }
.jnr-sw {
  display: grid;
  place-items: center;
  width: 42px;
  height: 30px;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  transition: transform var(--wf-dur-press) var(--wf-ease-out), opacity var(--wf-dur-state) ease;
}
.jnr-sw .dlg-switch { margin: 0; transition: background-color var(--wf-dur-state) ease, box-shadow var(--wf-dur-hover) ease; }
.jnr-sw.is-on .dlg-switch { background: var(--wf-success); }
.jnr-sw.is-on .dlg-switch::after { transform: translateX(14px); }
.jnr-sw:active:not(:disabled) { transform: scale(0.94); }
.jnr-sw:disabled { opacity: 0.5; cursor: default; }
.jnr-sw[aria-busy='true'] { cursor: progress; }
.jnr-state-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jnr-state-text b {
  font-family: var(--wf-font-display);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--wf-text-1);
}
.jnr-state-text b em { font-style: normal; color: var(--wf-text-3); transition: color var(--wf-dur-state) ease; }
.jnr-state-text b em.is-open { color: #a7f0c1; }
.jnr-state-text b em.is-upcoming { color: #f6b4d6; }
.jnr-state-text b em.is-full { color: #f6c98a; }
.jnr-state-text > span { font-size: 0.8rem; line-height: 1.45; text-wrap: pretty; color: var(--wf-text-3); }
.jnr-state-text > .jnr-err { font-weight: 600; color: #fda4af; }
.jnr-err:empty { display: none; }

/* ── Ayarlar: bölümler | form | önizleme ── */
.jnr-set {
  display: grid;
  grid-template-columns: clamp(232px, 17%, 330px) minmax(0, 1fr) clamp(320px, 33%, 760px);
  gap: 14px;
  height: 100%;
}
.jnr-nav,
.jnr-form,
.jnr-pv {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surf);
  box-shadow: var(--edge);
}

/* Bölüm listesi: seçilinin solunda kehribar şerit, değişen bölümde nokta */
.jnr-nav-list { display: flex; flex-direction: column; gap: 2px; padding: 8px; }
.jnr-sec {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 9px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: background-color var(--wf-dur-hover) ease, transform var(--wf-dur-press) var(--wf-ease-out);
}
.jnr-sec:active { transform: scale(0.985); }
.jnr-sec.is-sel { background: rgba(255, 255, 255, 0.065); }
.jnr-sec.is-sel::before {
  content: '';
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--hue);
}
.jnr-sec-ico { display: grid; flex-shrink: 0; color: var(--hue); opacity: 0.6; transition: opacity var(--wf-dur-hover) ease; }
.jnr-sec-ico svg { width: 19px; height: 19px; }
.jnr-sec.is-sel .jnr-sec-ico { opacity: 1; }
.jnr-sec-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.jnr-sec-text b { font-size: 0.9rem; font-weight: 700; line-height: 1.35; color: var(--wf-text-1); }
.jnr-sec-text span { font-size: 0.76rem; line-height: 1.4; text-wrap: pretty; color: var(--wf-text-4); }
.jnr-sec.is-sel .jnr-sec-text span { color: var(--wf-text-3); }
.jnr-sec-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--hue);
  opacity: 0;
  transition: opacity var(--wf-dur-state) ease;
}
.jnr-sec.is-dirty .jnr-sec-dot { opacity: 1; }
.jnr-sec.has-err .jnr-sec-dot { opacity: 1; background: var(--wf-danger); }
.jnr-nav-foot {
  margin: auto 0 0;
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  line-height: 1.45;
  text-wrap: pretty;
  color: var(--wf-text-4);
}

/* Form */
.jnr-form-head { display: flex; align-items: center; gap: 12px; flex-shrink: 0; padding: 15px 20px 14px; border-bottom: 1px solid var(--line); }
.jnr-form-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  background: color-mix(in srgb, var(--hue) 13%, transparent);
  color: var(--hue);
}
.jnr-form-ico svg { width: 19px; height: 19px; }
.jnr-form-titles { min-width: 0; }
.jnr-form-titles h3 { margin: 0; font-family: var(--wf-font-display); font-size: 1.08rem; font-weight: 600; line-height: 1.3; color: var(--wf-text-1); }
.jnr-form-titles p { margin: 2px 0 0; font-size: 0.8rem; line-height: 1.45; text-wrap: pretty; color: var(--wf-text-3); }
.jnr-form-body {
  flex: 1;
  min-height: 0;
  padding: 18px 20px 22px;
  container: jnrform / inline-size;
}
.jnr-form-body > * + * { margin-top: 20px; }
.jnr-form-body > .dlg-field + .dlg-field { margin-top: 22px; }
.jnr-form-body .dlg-field-msg:empty { display: none; }

/* Seçenek kartları (pencerelerin .dlg-opt'u, seçili olan kehribar) */
.jnr-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.jnr-opt { --c: var(--hue); min-height: 66px; }
.jnr-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 4px; }
.jnr-inline > .dlg-label { margin-right: 2px; }
.jnr-num { display: inline-flex; align-items: center; gap: 8px; }
.ops-form .jnr-num .dlg-input {
  width: 112px;
  font-family: var(--wf-font-display);
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.jnr-num span { font-size: 0.86rem; font-weight: 600; color: var(--wf-text-3); }
.ops-form .jnr-dt.dlg-input { width: auto; min-width: 214px; max-width: 100%; color-scheme: dark; font-variant-numeric: tabular-nums; }
.jnr-mode { align-self: flex-start; }
.jnr-mode button { height: 30px; }
.jnr-when2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.jnr-when2 .dlg-field + .dlg-field { margin-top: 0; }

/* Ödül kartları: rolün renginde ikon ve ad */
.jnr-rws { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.jnr-rw {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 14px 16px 16px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--c) 6%, transparent), transparent 120px),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.065);
}
.jnr-rw .dlg-field + .dlg-field { margin-top: 0; }
.jnr-rw-head { display: flex; align-items: center; gap: 12px; }
.jnr-rw-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 10px;
  background: color-mix(in srgb, var(--c) 15%, transparent);
  color: var(--c);
}
.jnr-rw-ico svg { width: 17px; height: 17px; }
.jnr-rw-ico .ri-img { width: 100%; height: 100%; object-fit: cover; }
.jnr-rw-title { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.jnr-rw-title b {
  font-family: var(--wf-font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: color-mix(in srgb, var(--c) 80%, #ffffff);
}
.jnr-rw-title em { font-style: normal; font-size: 0.76rem; color: var(--wf-text-4); }
.jnr-rw-x svg { color: #fb7185; }
.jnr-rw-x:disabled { opacity: 0.4; cursor: default; }
.jnr-rw-x:disabled:active { transform: none; }
.jnr-descs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.jnr-lab { display: flex; justify-content: space-between; gap: 8px; }
.jnr-lab em { font-style: normal; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--wf-text-4); }
.jnr-lab em .is-near { color: var(--hue); }
.ops-form .jnr-dur .cdk-custom .dlg-input {
  width: 110px;
  font-family: var(--wf-font-display);
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.jnr-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.jnr-add .usr-btn svg { color: var(--hue); }
.jnr-add .usr-btn:disabled { opacity: 0.45; cursor: default; }

/* Dönem kutusu (Tekrar alma) */
.jnr-roundbox {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.065);
}
.jnr-roundbox-n {
  min-width: 1.4ch;
  font-family: var(--wf-font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--hue);
}
.jnr-roundbox-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jnr-roundbox-text b { font-size: 0.92rem; font-weight: 700; line-height: 1.35; }
.jnr-roundbox-text span { font-size: 0.78rem; line-height: 1.4; color: var(--wf-text-3); }
.jnr-roundbox .dlg-btn svg { color: var(--hue); }
.jnr-roundbox-hint { grid-column: 1 / -1; margin-top: 6px; }

/* Kontenjan: kullanılan / kalan */
.jnr-quota { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.jnr-quota:empty { display: none; }
.jnr-quota-text { font-size: 0.8rem; line-height: 1.45; color: var(--wf-text-3); }
.jnr-quota-text b { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--wf-text-1); }

/* Çizelge: dikey akış, şimdi kehribar, geçmiş soluk */
.jnr-tl { display: flex; flex-direction: column; margin: 2px 0 0; padding: 0; list-style: none; }
.jnr-tl-i {
  position: relative;
  display: grid;
  grid-template-columns: minmax(118px, auto) minmax(0, 1fr);
  align-items: baseline;
  gap: 2px 16px;
  padding: 0 0 14px 22px;
}
.jnr-tl-i:last-child { padding-bottom: 0; }
.jnr-tl-i::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #141013;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.34);
}
.jnr-tl-i:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  bottom: 2px;
  left: 7px;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.jnr-tl-when { font-family: var(--wf-font-display); font-size: 0.86rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--wf-text-1); }
.jnr-tl-what { font-size: 0.8rem; line-height: 1.45; color: var(--wf-text-3); }
.jnr-tl-i.is-past .jnr-tl-when,
.jnr-tl-i.is-past .jnr-tl-what { color: var(--wf-text-4); }
.jnr-tl-i.is-past::before { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.16); }
.jnr-tl-i.is-go::before { box-shadow: inset 0 0 0 2px #7ee2a0; }
.jnr-tl-i.is-stop::before { box-shadow: inset 0 0 0 2px #fda4af; }
.jnr-tl-i.is-open::before { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2); background: transparent; }
.jnr-tl-i.is-now::before { background: var(--hue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hue) 18%, transparent); }
.jnr-tl-i.is-now .jnr-tl-when { color: var(--hue); }
.jnr-tl-i.is-now .jnr-tl-what { color: var(--wf-text-2); }
.jnr-rds-mini { display: flex; flex-direction: column; margin: 0 -10px; }

/* Kaydet çubuğu */
.jnr-save {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 58px;
  padding: 10px 14px 10px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
}
.jnr-save-text { flex: 1; min-width: 0; font-size: 0.8rem; line-height: 1.4; text-wrap: pretty; color: var(--wf-text-4); }
.jnr-save.is-dirty .jnr-save-text { font-weight: 600; color: var(--hue); }
.jnr-save.is-err .jnr-save-text { font-weight: 600; color: #fda4af; }
.jnr-save [hidden] { display: none; }

/* ── önizleme: sitenin sol panelinin küçüğü (gece moru zemin, sitenin sözleri) ── */
.jnr-pv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  min-height: 52px;
  padding: 8px 10px 8px 18px;
  border-bottom: 1px solid var(--line);
}
.jnr-pv-title { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 600; color: var(--wf-text-2); }
.jnr-pv-title svg { width: 16px; height: 16px; color: var(--hue); }
.jnr-pv-lang button { height: 26px; padding: 0 10px; font-size: 0.76rem; }
.jnr-pv-site {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-height: 0;
  padding: 20px 20px 0;
  background:
    radial-gradient(90% 55% at 100% 0%, rgba(246, 140, 190, 0.15), transparent 70%),
    radial-gradient(70% 45% at 0% 100%, rgba(140, 110, 240, 0.12), transparent 70%),
    linear-gradient(180deg, #120e1b, #0b0911);
}
.jnr-pv-gate h4 {
  margin: 0;
  font-family: var(--wf-font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
  color: #ffffff;
}
.jnr-pv-gate h4 span {
  background: linear-gradient(90deg, #ffe1ef, #f6a7cf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.jnr-pv-gate p { margin: 8px 0 0; font-size: 0.8rem; line-height: 1.5; text-wrap: pretty; color: rgba(255, 255, 255, 0.7); }

.jnr-rcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.jnr-rcs.is-one { grid-template-columns: minmax(0, 1fr); }
.jnr-rc {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px 13px 10px;
  border-radius: 13px;
  background: linear-gradient(165deg, color-mix(in srgb, var(--c) 11%, #16111e), #100c16 62%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 36%, rgba(255, 255, 255, 0.04));
}
.jnr-rc-kind { display: flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 500; color: rgba(255, 255, 255, 0.62); }
.jnr-rc-kind i { display: grid; flex-shrink: 0; color: var(--c); }
.jnr-rc-kind svg,
.jnr-rc-kind .ri-img { width: 14px; height: 14px; object-fit: contain; }
.jnr-rc-amt { display: flex; align-items: baseline; gap: 5px; margin-top: 6px; }
.jnr-rc-amt b {
  font-family: var(--wf-font-display);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}
.jnr-rc-amt b.is-word { font-size: 1.35rem; line-height: 1.2; }
.jnr-rc-amt em { font-style: normal; font-family: var(--wf-font-display); font-size: 0.92rem; font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.jnr-rc-name {
  margin-top: 4px;
  font-family: var(--wf-font-display);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
  color: color-mix(in srgb, var(--c) 78%, #ffffff);
}
.jnr-rc-desc { margin-bottom: 8px; font-size: 0.72rem; line-height: 1.45; text-wrap: pretty; color: rgba(255, 255, 255, 0.62); }
.jnr-rc-st {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
}
.jnr-rc-st i { width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.45); }
.jnr-rc.is-muted .jnr-rc-amt,
.jnr-rc.is-muted .jnr-rc-name,
.jnr-rc.is-muted .jnr-rc-kind i { opacity: 0.5; }

.jnr-led-wrap { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.jnr-led-cap { font-size: 0.7rem; font-weight: 600; color: rgba(255, 255, 255, 0.5); }
.jnr-led { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0; }
.jnr-fact { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jnr-fact.is-wide { grid-column: 1 / -1; }
.jnr-fact dt { font-size: 0.7rem; color: rgba(255, 255, 255, 0.52); }
.jnr-fact dd {
  margin: 0;
  font-family: var(--wf-font-display);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  text-wrap: pretty;
  color: #ffffff;
}
.jnr-fact dd.jnr-fact-sub { font-family: var(--wf-font-text); font-size: 0.72rem; font-weight: 500; color: rgba(255, 255, 255, 0.6); }
.jnr-fact .jnr-bar { height: 3px; margin-top: 6px; }
.jnr-bar.is-site i { background: linear-gradient(90deg, #f6b4d6, #c78bff); }

/* Sitenin eşlikçisi Alya: kalan yükseklik yeterse önizlemenin tabanına basar */
.jnr-pv-alya {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex: 1 1 0;
  min-height: 0;
  container: jnralya / size;
}
.jnr-pv-alya img {
  display: block;
  width: auto;
  height: 100%;
  max-height: 300px;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: bottom;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent);
  mask-image: linear-gradient(180deg, #000 82%, transparent);
}
@container jnralya (max-height: 140px) {
  .jnr-pv-alya img { display: none; }
}
.jnr-pv-note {
  flex-shrink: 0;
  margin: 0;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--wf-text-4);
}

/* ── Alanlar ── */
.jnr-claims { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.jnr-stats { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
.jnr-stats .usr-stat-ico { overflow: hidden; }
.jnr-stats .usr-stat-ico .ri-img { width: 17px; height: 17px; object-fit: contain; }
.jnr-claims-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 30%, 520px);
  gap: 14px;
  flex: 1;
  min-height: 0;
}
.jnr-table { --usr-cols: minmax(200px, 1.6fr) minmax(150px, 1fr) minmax(100px, 0.6fr); min-height: 0; }
.jnr-row { min-height: 54px; cursor: default; }
.jnr-row .usr-who { padding: 8px 0; cursor: default; }
.jnr-row .usr-ava { width: 32px; height: 32px; border-radius: 10px; font-size: 0.74rem; }
.jnr-ago { font-size: 0.82rem; font-variant-numeric: tabular-nums; color: var(--wf-text-3); }
.jnr-empty { min-height: 100%; }
.jnr-empty img,
.jnr-unknown img {
  width: 116px;
  height: 116px;
  margin-bottom: 6px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 12%;
  background: radial-gradient(closest-side, rgba(240, 180, 90, 0.16), rgba(240, 180, 90, 0.04));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.jnr-rounds {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surf);
  box-shadow: var(--edge);
}
.jnr-rounds-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  min-height: 50px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--line);
}
.jnr-rounds-head b { font-family: var(--wf-font-display); font-size: 1rem; font-weight: 600; }
.jnr-rounds-head span { font-size: 0.8rem; color: var(--wf-text-4); }
.jnr-rounds-list { flex: 1; min-height: 0; padding: 6px 8px; }
.jnr-rd {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 10px;
  border-radius: 11px;
}
.jnr-rd + .jnr-rd { margin-top: 2px; }
.jnr-rd.is-cur { background: rgba(240, 180, 90, 0.06); }
.jnr-rd-n {
  grid-row: span 2;
  font-family: var(--wf-font-display);
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--wf-text-3);
}
.jnr-rd.is-cur .jnr-rd-n { color: var(--hue); }
.jnr-rd-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.jnr-rd-text b { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 700; }
.jnr-rd-text b em { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 0.72rem; font-weight: 600; color: #a7f0c1; }
.jnr-rd-text b em::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--wf-success); }
.jnr-rd-text span { font-size: 0.76rem; color: var(--wf-text-4); }
.jnr-rd-num { font-size: 0.78rem; text-align: right; white-space: nowrap; color: var(--wf-text-3); }
.jnr-rd-num b { font-family: var(--wf-font-display); font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--wf-text-1); }
.jnr-rd-num i { display: block; font-style: normal; font-size: 0.72rem; color: var(--wf-text-4); }
.jnr-rd .jnr-bar { grid-column: 2 / -1; height: 3px; }
.jnr-rd:not(.is-cur) .jnr-bar i { background: rgba(255, 255, 255, 0.26); }
.jnr-rounds-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  flex-shrink: 0;
  padding: 10px 12px 10px 18px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--wf-text-4);
}
.jnr-rounds-foot .usr-btn svg { color: var(--hue); }

/* Sunucu tanımıyor */
.jnr-unknown {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  border-radius: 16px;
  background: var(--surf);
  box-shadow: var(--edge);
  text-align: center;
  font-size: 0.9rem;
  color: var(--wf-text-3);
}
.jnr-unknown[hidden] { display: none; }
.jnr-unknown b { font-family: var(--wf-font-display); font-size: 1.15rem; font-weight: 600; color: var(--wf-text-1); }
.jnr-unknown span { max-width: 460px; line-height: 1.5; text-wrap: pretty; }

/* ── geniş form: iki ödül yan yana, açıklamalar iki sütun ── */
@container jnrform (min-width: 820px) {
  .jnr-rws { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container jnrform (min-width: 560px) and (max-width: 819px) {
  .jnr-descs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── hover: yalnız ışık ── */
@media (hover: hover) and (pointer: fine) {
  .jnr-sec:not(.is-sel):hover { background: rgba(255, 255, 255, 0.035); }
  .jnr-sec:hover .jnr-sec-ico { opacity: 1; }
  .jnr-url:hover { color: #ffe9c4; }
  .jnr-sw:not(:disabled):hover .dlg-switch { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05); }
  .jnr-rw-x:not(:disabled):hover { background: rgba(251, 113, 133, 0.1); color: #fecdd3; }
  .jnr-row:hover { background: rgba(255, 255, 255, 0.03); }
}

/* ── kısa ekran (1366 × 768): önizleme kaydırmadan sığsın ── */
@media (max-height: 800px) and (min-width: 1181px) {
  .jnr-cell { padding-top: 12px; padding-bottom: 12px; }
  .jnr-sec { min-height: 56px; }
  .jnr-pv-site { gap: 12px; padding: 16px 16px 0; }
  .jnr-pv-gate h4 { font-size: 1.3rem; }
  .jnr-pv-gate p { margin-top: 6px; }
  .jnr-rc-amt { margin-top: 4px; }
  .jnr-rc-amt b { font-size: 1.8rem; }
  .jnr-led-wrap { padding-top: 12px; }
  .jnr-led { gap: 10px 14px; }
}

/* ── büyük ekran (≈2560 × 1280): yazı, kart ve önizleme büyür, Alya boş yüksekliği alır ── */
@media (min-width: 2000px) and (min-height: 1150px) {
  .jnr-cell { padding: 18px 24px; }
  .jnr-state-text b { font-size: 1.3rem; }
  .jnr-state-text > span,
  .jnr-s { font-size: 0.86rem; }
  .jnr-v,
  .jnr-url { font-size: 1.12rem; }
  .jnr-sec { min-height: 72px; padding: 12px 16px; }
  .jnr-sec-text b { font-size: 1rem; }
  .jnr-sec-text span,
  .jnr-nav-foot { font-size: 0.84rem; }
  .jnr-form-head { padding: 20px 26px 18px; }
  .jnr-form-titles h3 { font-size: 1.26rem; }
  .jnr-form-titles p { font-size: 0.88rem; }
  .jnr-form-body { padding: 24px 26px 28px; }
  .jnr-form-body .dlg-label { font-size: 0.88rem; }
  .jnr-form-body :is(.dlg-hint, .jnr-note, .jnr-quota-text, .jnr-tl-what) { font-size: 0.86rem; }
  .jnr-opt { min-height: 82px; padding-top: 14px; padding-bottom: 14px; }
  .jnr-opt .dlg-opt-text b { font-size: 1rem; }
  .jnr-opt .dlg-opt-text span { font-size: 0.84rem; }
  .jnr-tl-when { font-size: 0.96rem; }
  .jnr-tl-i { padding-bottom: 18px; }
  .jnr-save { min-height: 66px; padding-left: 26px; }
  .jnr-save-text { font-size: 0.86rem; }
  .jnr-pv-site { gap: 22px; padding: 28px 28px 0; }
  .jnr-pv-gate h4 { font-size: 2.1rem; }
  .jnr-pv-gate p { font-size: 0.95rem; }
  .jnr-rcs { gap: 14px; }
  .jnr-rc { padding: 18px 18px 14px; border-radius: 16px; }
  .jnr-rc-kind { font-size: 0.8rem; }
  .jnr-rc-amt b { font-size: 3rem; }
  .jnr-rc-amt b.is-word { font-size: 1.8rem; }
  .jnr-rc-amt em { font-size: 1.1rem; }
  .jnr-rc-name { font-size: 1.18rem; }
  .jnr-rc-desc { font-size: 0.84rem; }
  .jnr-rc-st { font-size: 0.8rem; }
  .jnr-led-cap,
  .jnr-fact dt { font-size: 0.8rem; }
  .jnr-fact dd { font-size: 1.08rem; }
  .jnr-fact dd.jnr-fact-sub { font-size: 0.82rem; }
  .jnr-pv-alya img { max-height: 460px; }
  .jnr-pv-note { font-size: 0.84rem; }
}

/* ── boylar: 1180 px altında önizleme alta iner ve sayfa kayar, 760 px altında hepsi alt alta ── */
@media (max-width: 1180px) {
  .jnr { height: auto; min-height: 0; }
  .jnr-top { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
  .jnr-tabcell { grid-column: 1 / -1; align-items: flex-start; padding: 10px 16px; border-top: 1px solid var(--line); }
  .jnr-cell.jnr-tabcell { border-left: 0; }
  .jnr-set { grid-template-columns: 232px minmax(0, 1fr); height: auto; align-items: start; }
  .jnr-pv { grid-column: 1 / -1; }
  .jnr :is(.jnr-form-body, .jnr-pv-site, .jnr-rounds-list) { overflow: visible; }
  .jnr-pv-alya { display: none; }
  .jnr-pv-site { padding-bottom: 20px; }
  .jnr-claims { height: auto; }
  .jnr-claims-body { grid-template-columns: minmax(0, 1fr); }
  .jnr-table .usr-rows { overflow: visible; }
  .jnr-unknown { position: static; min-height: 360px; }
}
@media (max-width: 760px) {
  .jnr-top { grid-template-columns: minmax(0, 1fr); }
  .jnr-cell + .jnr-cell { border-left: 0; border-top: 1px solid var(--line); }
  .jnr-cell { padding: 14px 16px; }
  .jnr-tabcell { padding: 10px 12px; }
  .jnr-tabs { width: 100%; }
  .jnr-set { grid-template-columns: minmax(0, 1fr); }
  .jnr-sec { min-height: 54px; }
  .jnr-nav-foot { display: none; }
  /* Kaydet çubuğu telefonda formun altına yapışır */
  .jnr-form { overflow: visible; }
  .jnr-save { position: sticky; bottom: 0; z-index: 2; border-radius: 0 0 16px 16px; background: #1a1215; }
  .jnr-form-head,
  .jnr-form-body { padding-left: 16px; padding-right: 16px; }
  .jnr-save { padding-left: 16px; }
  /* users.css'in telefon kuralı (flex: 1 1 100%) sütun alanda seçiciyi boyuna uzatıyordu: tam genişlik, kendi boyu */
  .jnr-form .dlg-field > .jnr-mode { flex: none; align-self: stretch; }
  .jnr-roundbox { grid-template-columns: auto minmax(0, 1fr); }
  .jnr-roundbox .dlg-btn { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }
  .jnr .usr-btn span { display: inline; }
  .jnr .usr-btn { width: auto; padding: 0 12px 0 10px; }
  .jnr-pv-site { padding: 18px 16px; }
  .jnr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jnr-stats .usr-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  /* Satır: üstte üye + zaman, altta ödül (avatarın hizasında) */
  .jnr-row .usr-who { flex: 1 1 0; min-width: 0; padding: 0; }
  .jnr-ago { order: 1; flex: 0 0 auto; }
  .jnr-row .cdl-access { order: 2; flex: 1 1 100%; flex-direction: row; align-items: center; gap: 8px; padding-left: 44px; }
}
