/* Binderly — aydınlık vitrin.
   Krem zemin, beyaz kart yüzeyleri, sıcak mürekkep; kartların kendi renkleri
   sahnenin yıldızı. Başlıklar Fraunces (koleksiyoncu sıcaklığı), veriler mono. */

:root {
  --bg:        #f6f3ec;
  --surface:   #ffffff;
  --surface-2: #fbf9f4;
  --ink:       #221c12;
  --muted:     #6d6353;
  --faint:     #9c927e;
  --line:      #e5ddcc;
  --line-soft: #eee8da;

  --accent:     #b06718;   /* koleksiyoncu amberi */
  --accent-ink: #7c470e;
  --accent-soft: #f6e7d2;
  --up:   #1c7c46;
  --down: #c22f4d;

  --holo: linear-gradient(100deg, #5ee7f0 0%, #a78bfa 45%, #ffd479 100%);

  --r-sm: 9px;
  --r-md: 13px;
  --r-lg: 18px;

  --shadow-card: 0 1px 2px rgba(70, 55, 25, .05), 0 14px 34px -22px rgba(70, 55, 25, .28);
  --shadow-lift: 0 2px 4px rgba(70, 55, 25, .06), 0 22px 44px -20px rgba(70, 55, 25, .32);
  --shadow-pop:  0 30px 70px -30px rgba(60, 45, 20, .45);

  --display: "Fraunces", Georgia, serif;
  --body:    "Inter", "Segoe UI", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(60rem 34rem at 85% -12%, rgba(167, 139, 250, .07), transparent 60%),
    radial-gradient(50rem 30rem at -10% 0%, rgba(94, 231, 240, .06), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

::selection { background: rgba(176, 103, 24, .18); }

* { scrollbar-width: thin; scrollbar-color: #d8cfba transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: #d8cfba; border-radius: 9px; border: 2px solid var(--bg); }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------------------------------------------------------------- brand */
.brand-img { height: 30px; display: block; }
.brand-img-lg { height: 46px; }

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }

.brand-mark {
  width: 26px; height: 26px;
  flex: none;
  border-radius: 8px;
  background: var(--holo);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 6px 16px -8px rgba(167, 139, 250, .7);
  transform: rotate(-8deg);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.brand:hover .brand-mark { transform: rotate(8deg); }

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.02em;
}

/* --------------------------------------------------------------- topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px clamp(16px, 4vw, 34px);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}
.tab {
  padding: 7px 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color .16s, background .16s, box-shadow .16s;
}
.tab:hover:not(.is-on) { color: var(--ink); }
.tab.is-on {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(70, 55, 25, .1), 0 4px 12px -6px rgba(70, 55, 25, .18);
}

.top-right { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.toggle {
  display: flex;
  padding: 3px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}
.toggle-opt {
  min-width: 34px;
  padding: 4px 9px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color .16s, background .16s;
}
.toggle-opt.is-on { background: var(--ink); color: #fff; }
.toggle-opt:hover:not(.is-on) { color: var(--ink); }

.user-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  max-width: 230px;
  min-width: 0;
}
.user-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .tool { border-radius: 999px; flex: none; }

.btn-share { height: 34px; padding: 0 12px; font-size: 13px; }

/* -------------------------------------------------------------- paylaşım */
.pubbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--accent-soft);
}
.pub-badge {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.pub-cta { height: 34px; font-size: 13px; }

.share-state {
  display: flex; align-items: center; gap: 8px;
  margin: 4px 0 12px;
  font-size: 13.5px; color: var(--muted);
}
.share-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line); flex: none;
}
.share-dot.on { background: var(--up); box-shadow: 0 0 0 3px rgba(28,124,70,.15); }

.share-link { display: flex; gap: 8px; margin-bottom: 4px; }
.share-link input {
  flex: 1; min-width: 0; height: 40px; padding: 0 12px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; color: var(--ink);
  font-family: var(--mono); font-size: 12.5px;
}
.share-link .btn { height: 40px; }

/* --------------------------------------------------------------- layout */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px clamp(16px, 4vw, 34px) 70px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
}

/* değer + eylemler */
.pagehead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 26px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.ph-left { min-width: 0; }

.ph-value-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 2px; }

.ph-value {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 48px);
  letter-spacing: -.02em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.ph-meta {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin-top: 6px;
  color: var(--muted); font-size: 13px;
}
.ph-meta b { color: var(--ink); font-family: var(--mono); font-weight: 600; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }

.delta {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.delta.up   { color: var(--up);   background: rgba(28, 124, 70, .1); }
.delta.down { color: var(--down); background: rgba(194, 47, 77, .1); }
.delta.flat { color: var(--faint); background: rgba(110, 99, 83, .08); }

/* movers: değer altında yatay çipler */
.movers { margin-top: 14px; }
.movers-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 7px; }
.mover {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(70, 55, 25, .05);
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.mover:hover { border-color: var(--line); box-shadow: var(--shadow-card); transform: translateY(-1px); }
.mover img { width: 24px; height: 33px; object-fit: cover; border-radius: 4px; background: var(--surface-2); }
.mover-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.mover .delta { padding: 1px 7px; font-size: 10.5px; }

.ph-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
  /* Sabit tavan yerine esneme: arama alanı daralır, butonlar tek satırda kalır.
     Değer şeridiyle aynı satıra sığmazsa tüm genişliği alıp sağa yaslanır —
     eskiden 620px'lik görünmez kutunun içinde ortada asılı kalıyordu. */
  flex: 1 1 auto;
  min-width: 0;
}

/* --------------------------------------------------------------- inputs */
.field {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(70, 55, 25, .04);
  transition: border-color .18s, box-shadow .18s;
}
.field:focus-within,
select.field:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(176, 103, 24, .14);
  outline: none;
}

.search { flex: 0 1 250px; min-width: 150px; }
.search svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; }
.search input {
  width: 100%;
  background: none; border: 0; outline: none;
  color: var(--ink); font: inherit; font-size: 14px;
}
.search input::placeholder { color: var(--faint); }

select.field { cursor: pointer; appearance: none; padding-right: 30px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239c927e' stroke-width='2' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 15px; }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(70, 55, 25, .05);
  transition: transform .12s, border-color .16s, box-shadow .16s, background .16s;
}
.btn:hover { border-color: #d5cab2; box-shadow: var(--shadow-card); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: progress; }

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: #3a3122; border-color: #3a3122; }

.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.is-busy .ico { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------- showcase */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}

/* vitrin karosu: beyaz kart, gölgeyle yüzer, hover'da yükselir */
.pocket {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform .2s cubic-bezier(.2,.8,.3,1), box-shadow .2s, border-color .2s;
  animation: tileIn .34s cubic-bezier(.2,.8,.25,1) both;
}
@keyframes tileIn { from { opacity: 0; transform: translateY(8px); } }
.pocket:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: var(--shadow-lift);
}

.pocket.is-busy { opacity: .55; }

.pocket.flash { animation: flashPulse 1.4s ease-out; }
@keyframes flashPulse {
  0%, 60% { outline: 2px solid var(--accent); outline-offset: 3px; }
  100% { outline: 2px solid transparent; outline-offset: 3px; }
}

/* iskelet */
.pocket.skel { pointer-events: none; cursor: default; }
.pocket.skel .art { position: relative; overflow: hidden; background: var(--surface-2); }
.skl {
  display: block;
  height: 10px;
  margin-top: 8px;
  border-radius: 5px;
  background: var(--line-soft);
  position: relative;
  overflow: hidden;
}
.skl.w60 { width: 60%; } .skl.w40 { width: 40%; } .skl.w80 { width: 80%; }
.pocket.skel .art::after, .skl::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.75) 50%, transparent 70%);
  animation: shimmer 1.5s linear infinite;
  transform: translateX(-100%);
}
@keyframes shimmer { to { transform: translateX(100%); } }

.art {
  position: relative;
  aspect-ratio: 63 / 88;
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface-2);
}
.art img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.pocket:hover .art img { transform: scale(1.04); }

.qty-badge {
  position: absolute;
  right: 7px; bottom: 7px;   /* nadirlik çipiyle çakışmasın */
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  font-family: var(--mono); font-size: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px -4px rgba(70, 55, 25, .4);
}
.qty-badge b { padding: 0 3px; font-weight: 600; min-width: 20px; text-align: center; }
.qty-badge button {
  width: 22px; height: 26px;
  border: 0; background: none;
  color: var(--muted);
  font: inherit; font-size: 14px; line-height: 1;
  cursor: pointer;
}
.qty-badge button:hover { color: var(--ink); background: var(--surface-2); }

.tools {
  position: absolute;
  top: 7px; right: 7px;
  display: flex; gap: 4px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s, transform .2s;
}
.pocket:hover .tools,
.pocket:focus-within .tools { opacity: 1; transform: none; }

.tool {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(6px);
  color: var(--muted);
  cursor: pointer;
  box-shadow: 0 2px 8px -4px rgba(70, 55, 25, .35);
  transition: color .16s, border-color .16s;
}
.tool:hover { color: var(--ink); border-color: #cdc2a8; }
.tool svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tool.danger:hover { color: var(--down); border-color: rgba(194, 47, 77, .45); }
.tool.confirm { width: auto; padding: 0 8px; color: var(--down); border-color: rgba(194, 47, 77, .5); font-family: var(--mono); font-size: 11px; }

.info { padding-top: 10px; }

.line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  margin-top: 5px;
}

.name, .sub {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.name {
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -.01em;
}
.sub { margin-top: 1px; color: var(--muted); font-size: 11px; }
.sub .num { font-family: var(--mono); color: var(--faint); }

.price {
  flex: none;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.price.none { color: var(--faint); font-weight: 400; font-size: 11px; }
.line .delta { flex: none; padding: 0 5px; font-size: 9.5px; }

/* keşfet ekleme butonu */
.ex-add {
  width: 100%;
  height: 34px;
  margin-top: 10px;
  justify-content: center;
  font-size: 12.5px;
  border-radius: 9px;
}
.ex-add.is-owned {
  color: var(--up);
  border-color: rgba(28, 124, 70, .3);
  background: rgba(28, 124, 70, .06);
  cursor: default;
}

.ex-note {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--faint);
  font-size: 13.5px;
  padding: 30px 0;
}

/* "hot" bolum basligi + mini grafik */
.ex-sec {
  grid-column: 1 / -1;
  padding: 4px 2px 0;
}
.mini-spark {
  width: 64px;
  height: 22px;
  flex: none;
  opacity: .9;
}

/* --------------------------------------------------------------- grade */
.grade-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  padding: 2px 6px 2px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .16s, border-color .16s, background .16s;
}
.grade-chip:hover { color: var(--ink); border-color: #cdc2a8; }
.grade-chip.graded {
  color: var(--accent-ink);
  border-color: rgba(176, 103, 24, .35);
  background: var(--accent-soft);
}
.grade-chip svg { width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.gmenu {
  position: fixed;
  z-index: 60;
  min-width: 216px;
  max-height: 62vh;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-pop);
  animation: popIn .14s ease-out;
}
@keyframes popIn { from { opacity: 0; transform: translateY(6px) scale(.99); } }
.gmenu-head {
  padding: 6px 9px 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--faint);
}
.gmenu-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
}
.gmenu-item:hover { background: var(--accent-soft); }
.gmenu-item.is-on { color: var(--accent-ink); background: var(--accent-soft); }
.gmenu-item em { font-style: normal; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.gmenu-item.is-on em { color: var(--accent-ink); }
.gmenu-note { padding: 10px 9px 4px; color: var(--faint); font-size: 11px; line-height: 1.45; }
.gmenu-sep { height: 1px; margin: 5px 4px; background: var(--line-soft); }

/* --------------------------------------------------------------- rarity */
.rar {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rar .sym { font-size: 9px; line-height: 1; opacity: .9; }
.rar.common   { color: #6d6353; background: #efeadd; border-color: #e2dac7; }
.rar.uncommon { color: #0e6f74; background: #e0f3f2; border-color: #bfe4e2; }
.rar.rare     { color: #8a5a00; background: #faedcd; border-color: #eeddb0; }
.rar.foil {
  color: #241b3a;
  background: linear-gradient(100deg, #b6f4ec 0%, #d3c5fb 34%, #ffd6ec 60%, #ffe9b3 100%);
  background-size: 220% 100%;
  animation: foilShift 7s linear infinite;
}
.rar.secret {
  color: #3a2410;
  background: linear-gradient(100deg, #ffe9a8 0%, #ffc9e2 38%, #d3c5fb 70%, #b6f4ec 100%);
  background-size: 220% 100%;
  animation: foilShift 5s linear infinite;
}
@keyframes foilShift { to { background-position: 220% 0; } }

/* Nadirlik çipi kartın ÜSTÜNE değil altına: üstte kartın kendi adı ve HP'si
   var, onları kapatıyordu. Alt şerit (telif/flavor) en az önemli bölge. */
.art .rar {
  position: absolute;
  bottom: 7px; left: 7px;
  z-index: 1;
  font-size: 8.5px;
  padding: 2px 7px 2px 5px;
  box-shadow: 0 2px 8px -4px rgba(70, 55, 25, .4);
}
.art .rar.common, .art .rar.uncommon, .art .rar.rare { background-color: rgba(255, 255, 255, .93); }

/* ----------------------------------------------------------------- list */
.listing {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
}
.table { width: 100%; border-collapse: collapse; min-width: 860px; }
.table th {
  padding: 13px 14px;
  text-align: left;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
  position: sticky;
  top: 0;
  background: var(--surface);
}
.table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.table tbody tr { transition: background .15s; cursor: pointer; }
.table tbody tr:hover { background: var(--surface-2); }
.table tfoot td {
  border-bottom: 0;
  padding: 13px 14px;
  font-family: var(--mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: var(--surface-2);
}
.table tfoot .t-label {
  text-align: right;
  color: var(--faint);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.c-right { text-align: right; }
.c-art { width: 46px; }
.c-num, .c-qty { white-space: nowrap; }
.c-act { width: 96px; }

.row-art { width: 32px; height: 45px; border-radius: 4px; object-fit: cover; display: block; background: var(--surface-2); }
.row-name { font-weight: 600; }
.row-sub { color: var(--muted); font-size: 13px; }
.row-mono { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.row-price { font-family: var(--mono); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.row-total { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; color: var(--muted); }

.row-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: var(--surface); }
.row-qty button { width: 23px; height: 25px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; }
.row-qty button:hover { background: var(--surface-2); color: var(--ink); }
.row-qty b { padding: 0 6px; font-family: var(--mono); font-weight: 600; font-size: 13px; }

.row-tools { display: flex; gap: 5px; justify-content: flex-end; }
.row-tools .tool { position: static; opacity: 1; box-shadow: none; background: var(--surface); }

/* -------------------------------------------------------------- explore */
.explore-hero {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin: 4px auto 0;
}
.explore-search { flex: 1; height: 48px; }
.explore-search input { font-size: 15px; }
.explore-hero .btn { height: 48px; }

.explore-hint {
  margin: 13px auto 24px;
  max-width: 58ch;
  text-align: center;
  color: var(--faint);
  font-size: 13px;
}

/* --------------------------------------------------------------- states */
.empty { display: grid; place-items: center; padding: 70px 20px; text-align: center; }
.empty-pockets { display: flex; gap: 12px; margin-bottom: 22px; }
.empty-pockets i {
  width: 54px; height: 76px;
  border: 1.5px dashed var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.empty h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 600; font-size: 22px; }
.empty p { margin: 0 0 20px; max-width: 44ch; color: var(--muted); font-size: 14px; }
.nores { padding: 44px 4px; text-align: center; color: var(--muted); font-size: 14px; }

.foot {
  margin-top: 46px;
  text-align: center;
  color: var(--faint);
  font-size: 12px;
}

/* ---------------------------------------------------------------- modal */
.modal {
  width: min(560px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-pop);
}
.modal::backdrop { background: rgba(50, 40, 22, .35); backdrop-filter: blur(3px); }
.modal[open] { animation: modalIn .2s cubic-bezier(.2,.8,.25,1); }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.99); } }

.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-head h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -.01em; }

.modal-x {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border: 1px solid var(--line-soft); border-radius: 8px;
  background: var(--surface); color: var(--muted); cursor: pointer;
  transition: color .16s, border-color .16s;
}
.modal-x:hover { color: var(--ink); border-color: #cdc2a8; }
.modal-x svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.modal-hint { margin: 8px 0 12px; color: var(--muted); font-size: 13px; }
.modal-hint code {
  padding: 1px 5px; border-radius: 4px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-family: var(--mono); font-size: 12px;
}

.modal textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  resize: vertical;
  transition: border-color .18s, box-shadow .18s;
}
.modal textarea::placeholder { color: var(--faint); }
.modal textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(176, 103, 24, .12);
}

.modal-actions { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.modal-kbd { margin-right: auto; font-family: var(--mono); font-size: 11px; color: var(--faint); }

.modal-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.modal-sep::before, .modal-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}

/* ---------------------------------------------------- katalog araması */
.scan-query { display: flex; gap: 8px; margin-top: 8px; }
.scan-query input {
  flex: 1;
  height: 42px;
  padding: 0 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font: inherit; font-size: 14px;
}
.scan-query input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(176, 103, 24, .12);
}
.scan-query .btn { height: 42px; }

.scan-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 9px;
  margin-top: 14px;
  max-height: 300px;
  overflow-y: auto;
}
.scan-hit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.scan-hit:hover { border-color: var(--line); box-shadow: var(--shadow-card); }
.scan-hit:disabled { opacity: .5; cursor: progress; }
.scan-hit img { width: 36px; height: 50px; flex: none; object-fit: cover; border-radius: 5px; background: var(--surface-2); }
.scan-hit .h-name { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scan-hit .h-sub { display: block; color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scan-hit.is-added {
  border-color: rgba(28, 124, 70, .3);
  background: rgba(28, 124, 70, .05);
  cursor: default;
}
.h-add {
  flex: none;
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}
.scan-hit.is-added .h-add { background: rgba(28, 124, 70, .12); color: var(--up); }

.scan-note { margin: 10px 0 0; color: var(--faint); font-size: 11.5px; }

/* --------------------------------------------------------------- detail */
.modal.detail {
  width: min(880px, calc(100vw - 24px));
  padding: 0;
  overflow: hidden;
}
.detail-x {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(6px);
}
.detail-body { display: flex; max-height: min(86vh, 720px); }

.detail-art {
  flex: 0 0 46%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 26px;
  background:
    radial-gradient(26rem 20rem at 50% 0%, rgba(167, 139, 250, .12), transparent 65%),
    linear-gradient(180deg, #f3efe6, #ece6d8);
  border-right: 1px solid var(--line-soft);
}
.detail-art img {
  width: 100%;
  max-width: 330px;
  border-radius: 14px;
  box-shadow: 0 34px 60px -30px rgba(60, 45, 20, .55), 0 0 0 1px rgba(255,255,255,.6);
}

.detail-side {
  flex: 1;
  min-width: 0;
  padding: 26px 26px 22px;
  overflow-y: auto;
}

.detail-title {
  margin: 0;
  padding-right: 40px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 27px;
  letter-spacing: -.015em;
  line-height: 1.08;
}
.detail-sub { margin: 5px 0 10px; color: var(--muted); font-size: 14px; }
.detail-sub .num { font-family: var(--mono); color: var(--faint); }

.detail-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  color: var(--faint);
  font-size: 12px;
}

.spark-wrap { margin-bottom: 16px; }
.spark-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}
#dSpark {
  width: 100%;
  height: 56px;
  display: block;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
}

.ladder {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}
.lrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.lrow:hover { border-color: var(--line); background: var(--surface-2); }
.lrow.is-on {
  border-color: rgba(176, 103, 24, .45);
  background: var(--accent-soft);
}
.lrow em { font-style: normal; font-family: var(--mono); font-weight: 700; font-variant-numeric: tabular-nums; }
.lrow .l-note { color: var(--faint); font-size: 11px; margin-left: auto; }

.mathbox {
  margin-bottom: 18px;
  padding: 13px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.math-base { font-family: var(--mono); font-size: 11px; color: var(--accent-ink); }
.mathrows { display: flex; flex-direction: column; gap: 2px; }
.mrow {
  display: grid;
  grid-template-columns: 52px 1fr 1fr 1fr;
  gap: 8px;
  padding: 5px 2px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px dashed var(--line-soft);
}
.mrow:last-child { border-bottom: 0; }
.mrow .m-k { color: var(--faint); }
.mrow em { font-style: normal; text-align: right; color: var(--ink); }
.mrow.base .m-k { color: var(--accent-ink); font-weight: 700; }
.mrow.base em { font-weight: 700; }

.detail-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.detail-actions .btn { flex: 1; justify-content: center; min-width: 120px; }
#dAdd.is-owned {
  color: var(--up);
  border-color: rgba(28, 124, 70, .3);
  background: rgba(28, 124, 70, .06);
}

/* ---------------------------------------------------------------- toast */
.toasts {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 70;
  display: flex; flex-direction: column; gap: 9px;
  max-width: min(380px, calc(100vw - 44px));
}
.toast {
  display: flex; gap: 10px;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lift);
  font-size: 13.5px;
  animation: toastIn .26s cubic-bezier(.2,.8,.25,1) both;
}
.toast.ok   { border-left-color: var(--up); }
.toast.err  { border-left-color: var(--down); }
.toast.info { border-left-color: var(--accent); }
.toast.out  { animation: toastOut .22s ease-in forwards; }
.toast small { display: block; margin-top: 3px; color: var(--muted); font-family: var(--mono); font-size: 11px; white-space: pre-line; }
@keyframes toastIn  { from { opacity: 0; transform: translateY(10px); } }
@keyframes toastOut { to   { opacity: 0; transform: translateX(12px); } }

/* ----------------------------------------------------------------- auth */
.auth {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  background: var(--bg);
}
.auth-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(28px, 6vw, 84px);
  background:
    radial-gradient(46rem 30rem at 85% -10%, rgba(167, 139, 250, .12), transparent 62%),
    radial-gradient(40rem 26rem at -10% 95%, rgba(94, 231, 240, .1), transparent 60%),
    linear-gradient(160deg, #f2ede2, #ece5d5);
  border-right: 1px solid var(--line-soft);
}
.auth-brand-inner { position: relative; max-width: 580px; }
.auth-headline {
  margin: 38px 0 16px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -.02em;
}
.auth-headline em {
  font-style: italic;
  background: linear-gradient(100deg, #2ab6c2 0%, #7c5bd6 45%, #cf8c1e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-sub { margin: 0; max-width: 47ch; color: var(--muted); font-size: 15.5px; line-height: 1.65; }

.fan { position: relative; height: 200px; margin-top: 52px; }
.fan i {
  position: absolute;
  top: 12px;
  width: 126px;
  aspect-ratio: 63 / 88;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 26px 44px -24px rgba(60, 45, 20, .5);
  animation: fanFloat 7s ease-in-out infinite;
}
.fan i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.4) 45%, transparent 60%);
}
.fan i:nth-child(1) { left: 0; transform: rotate(-10deg); background: linear-gradient(160deg, #9ad7cf, #5aa8a0 72%); }
.fan i:nth-child(2) { left: 116px; top: 0; transform: rotate(-1deg); background: linear-gradient(160deg, #b7a5ef, #8a72d8 72%); animation-delay: 1.1s; }
.fan i:nth-child(3) { left: 232px; transform: rotate(9deg); background: linear-gradient(160deg, #ffd98c, #f0ad4a 72%); animation-delay: 2.2s; }
@keyframes fanFloat { 50% { translate: 0 -7px; } }

.auth-panel { display: grid; place-items: center; padding: 28px 22px; overflow-y: auto; background: var(--surface); }
.auth-card { width: min(400px, 100%); }
.auth-card h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 27px; letter-spacing: -.015em; }
.auth-hint { margin: 6px 0 24px; color: var(--muted); font-size: 13.5px; }
.auth-field { display: block; margin-bottom: 14px; }
.auth-field span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.auth-field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  transition: border-color .18s, box-shadow .18s;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(176, 103, 24, .13);
}
.auth-error { margin: 2px 0 12px; color: var(--down); font-size: 13px; }
.auth-submit { width: 100%; height: 46px; justify-content: center; font-size: 14.5px; }
.auth-switch { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: 13.5px; }
.auth-switch button {
  border: 0; background: none;
  color: var(--accent-ink);
  font: inherit; font-size: 13.5px; font-weight: 600;
  cursor: pointer;
}
.auth-switch button:hover { text-decoration: underline; }
.auth-lang { margin: 22px auto 0; width: fit-content; }

/* ------------------------------------------------ herkese açık (salt-okunur) */
body.is-public .ph-actions,
body.is-public .top-right .user-chip,
body.is-public #openShare,
body.is-public [data-view="explore"],
body.is-public .movers { display: none !important; }
body.is-public .grade-chip { cursor: default; }
body.is-public .pocket { cursor: pointer; }   /* detay hâlâ açılır */

/* ----------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .topbar { padding: 10px 14px; gap: 10px; }
  .tabs { order: 3; width: 100%; }
  .tab { flex: 1; padding: 8px 10px; }
  .top-right { gap: 7px; }
  .btn-share span { display: none; }          /* ikon-only paylaş */
  .btn-share { padding: 0 10px; }
  .wrap { padding: 18px 14px 60px; }
  /* column + wrap birlesimi sarma satirini icerige gore buyutuyor: hareketli
     kart seridi 4 cipe cikinca .ph-left 679px olup sayfayi yatay tasiriyordu.
     nowrap ile satir kabin genisligini alir, serit kendi icinde kayar. */
  .pagehead { align-items: stretch; flex-direction: column; flex-wrap: nowrap; }
  .ph-left, .ph-actions { max-width: 100%; }
  .ph-actions { width: 100%; max-width: none; justify-content: stretch; }
  .search { flex: 1 1 150px; }
  .ph-value { font-size: clamp(30px, 9vw, 40px); }
  .tools, .qty-badge { opacity: 1; transform: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .pubbar { flex-direction: column; align-items: stretch; text-align: center; }
  .pub-cta { justify-content: center; }
  .movers-row { gap: 6px; }
  .mover-name { max-width: 96px; }
  .explore-hero { flex-wrap: wrap; }
  .explore-hero .btn { flex: 1; justify-content: center; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  /* liste: telefonda Set/No/Nadirlik sütunlarını gizle — kalanlar sığsın */
  .table { min-width: 0; }
  .table th:nth-child(3), .table td:nth-child(3),
  .table th:nth-child(4), .table td:nth-child(4),
  .table th:nth-child(5), .table td:nth-child(5) { display: none; }
  .table tfoot .t-label { font-size: 9.5px; letter-spacing: .1em; }
  .table th, .table td { padding: 9px 8px; }
  .row-art { width: 28px; height: 39px; }

  /* movers: alt alta yığılmak yerine yatay kaydırılır */
  .movers-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .movers-row::-webkit-scrollbar { display: none; }
  .mover { flex: none; }
  .ph-actions .btn span { display: none; }
  .ph-actions .btn { padding: 0 12px; }
  .ph-actions .search { flex: 1 1 100%; }
  .scan-results { grid-template-columns: 1fr; }
  .user-chip { padding-left: 9px; }
  .user-chip span { max-width: 64px; }
  .brand-img { height: 26px; }
  .mrow { grid-template-columns: 44px 1fr 1fr 1fr; font-size: 11.5px; }
  .modal { padding: 18px 16px; }
  .modal-actions { gap: 8px; }
  .modal-actions .btn { flex: 1; justify-content: center; }
  .modal-kbd { display: none; }
  .share-link { flex-wrap: wrap; }
  .share-link input { flex: 1 1 100%; }
  .share-link .btn { flex: 1; justify-content: center; }
  .toasts { right: 10px; left: 10px; bottom: 10px; max-width: none; }
  .gmenu { max-width: calc(100vw - 20px); }
  .name { font-size: 12.5px; }
  .price { font-size: 13px; }
}

@media (max-width: 760px) {
  .detail-body { flex-direction: column; max-height: 88vh; overflow-y: auto; }
  .detail-art { flex: none; border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 20px; }
  .detail-art img { max-width: 210px; }
  .detail-side { overflow: visible; padding: 20px 18px; }
}

@media (max-width: 880px) {
  .auth { grid-template-columns: 1fr; overflow-y: auto; }
  .auth-brand { border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 26px 22px 30px; }
  .auth-headline { margin-top: 24px; font-size: clamp(32px, 9vw, 44px); }
  .fan { display: none; }
  .auth-panel { align-items: start; padding-top: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ==================================================================== */
/*  Koleksiyonlar (binder) + herkese açık keşif                          */
/* ==================================================================== */

/* --- üst bardaki koleksiyon seçici --- */
.binder-pick { position: relative; flex: 0 1 auto; min-width: 0; }

.binder-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 220px;
  height: 34px;
  padding: 0 10px;
  font: 500 13.5px/1.4 var(--body);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.binder-btn:hover { border-color: var(--accent); }
.binder-btn .ico { width: 15px; height: 15px; flex: none; stroke: var(--accent-ink); fill: none; stroke-width: 1.7; }
.binder-btn .caret { width: 13px; height: 13px; flex: none; stroke: var(--faint); fill: none; stroke-width: 2; }
.binder-btn #binderName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.binder-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  min-width: 240px;
  max-width: 300px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-pop);
}

.bin-item, .bin-act {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  font: 400 13.5px/1.4 var(--body);
  color: var(--ink);
  cursor: pointer;
}
.bin-item:hover, .bin-act:hover:not(:disabled) { background: var(--surface-2); }
.bin-item.is-on { background: var(--accent-soft); }
.bin-item .bin-name { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bin-item .bin-meta { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }

.bin-sep { height: 1px; margin: 6px 4px; background: var(--line-soft); }
.bin-act { font-size: 13px; color: var(--muted); }
.bin-act.danger { color: var(--down); }
.bin-act:disabled { opacity: .4; cursor: default; }

/* --- paylaşım modalındaki keşfet anahtarı --- */
.share-listed {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.share-listed input { margin-top: 2px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.share-listed b { display: block; font: 500 13.5px/1.4 var(--body); }
.share-listed small { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }

/* --- koleksiyon adı modalı --- */
.modal.narrow { max-width: 420px; }

.field-block { display: block; margin: 4px 0 0; }
.field-block > span {
  display: block;
  margin-bottom: 6px;
  font: 500 12px/1.4 var(--body);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--faint);
}
.field-block input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  font: 400 15px/1.4 var(--body);
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  outline: none;
}
.field-block input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(176, 103, 24, .13);
}

/* --- paylaşım şeridindeki koleksiyon adı --- */
.pub-name {
  font: 600 15px/1.3 var(--display);
  color: var(--ink);
  margin-right: auto;
}

/* --- herkese açık koleksiyon kartları --- */
.pub-collections { margin-top: 44px; }

.pc-head { margin-bottom: 16px; }
.pc-head h2 { font: 600 20px/1.2 var(--display); margin: 0 0 4px; }
.pc-head p { margin: 0; color: var(--muted); font-size: 13.5px; }

.pc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.pc-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.pc-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: var(--accent);
}

.pc-art {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  height: 104px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-soft);
}
.pc-art img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.pc-art:has(img:only-child) { grid-template-columns: 1fr; }
.pc-noart { grid-column: 1 / -1; background: var(--surface-2); }

.pc-body { display: block; padding: 12px 13px 13px; }
.pc-name {
  display: block;
  font: 500 14.5px/1.3 var(--body);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pc-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--muted);
}
.pc-meta .pc-val { font-family: var(--mono); color: var(--accent-ink); }

.pc-empty {
  padding: 34px 10px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

/* --- /kesfet: giriş gerektirmeyen sayfa --- */
.pubex-hero { padding: 34px 0 26px; text-align: center; }
.pubex-hero h1 { font: 600 32px/1.15 var(--display); margin: 0 0 8px; }
.pubex-hero p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* --- giriş ekranındaki "göz at" çıkışı --- */
.auth-peek { margin: 2px 0 0; text-align: center; }
.auth-peek a {
  font-size: 13px;
  color: var(--accent-ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.auth-peek a:hover { border-bottom-color: currentColor; }

@media (max-width: 900px) {
  .binder-btn { max-width: 150px; }
}

@media (max-width: 560px) {
  .binder-menu { min-width: 220px; }
  .pc-grid { grid-template-columns: 1fr; }
  .pubex-hero { padding: 24px 0 18px; }
  .pubex-hero h1 { font-size: 25px; }
  .pub-name { font-size: 14px; }
}
