/* Esilehe dünaamiliste lisade stiilid — Allani disaini peale (samad muutujad) */

/* ── HERO KARUSSELL — päris pildid coin-stage'is ── */
.coin-frame {
  position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: radial-gradient(circle at 38% 32%, #2a2620, #0c0a07 78%);
  border: 1px solid var(--border);
  opacity: 0; transition: opacity 1.1s ease; pointer-events: none;
}
.coin-frame.active { opacity: 1; }
.coin-frame .coin-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.coin-frame .coin-img.is-note { object-fit: contain; padding: 16%; border-radius: 0; }
.coin-disc-ph { color: var(--idle); font-size: 13px; letter-spacing: 1px; text-align: center; padding: 20px; }
html.light .coin-frame { background: radial-gradient(circle at 38% 32%, #efe9dd, #d9d1c0 80%); }

/* ── MÜÜGIS — liikuvad ribad ── */
/* #87: forsale-block — desktop: pealkiri vasak + nupp parem, riba all; mobiil/tahvel: nupp riba ALLA */
.forsale-block { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "title btn" "strip strip"; align-items: end; column-gap: 20px; row-gap: 18px; margin: 6px 0 0; }
.forsale-title { grid-area: title; margin: 0; }
.forsale-btn { grid-area: btn; justify-self: end; }
.forsale-block .sale-strip { grid-area: strip; }
.sale-strip { position: relative; overflow: hidden; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,.012); }
.sale-strip::before, .sale-strip::after { content: ''; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none; }
.sale-strip::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.sale-strip::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.sale-track { display: flex; width: max-content; gap: 24px; animation: saleScroll 40s linear infinite; will-change: transform; }
.sale-strip:hover .sale-track { animation-play-state: paused; }
@keyframes saleScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.sale-item { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.sale-item.coin { --w: min(220px, 56vw); --h: min(300px, 76vw); }
.sale-item.note { --w: min(420px, 86vw); --h: min(258px, 52vw); }
.sale-media { width: var(--w); height: var(--h); border: 1px solid var(--border); border-radius: var(--radius); background: #11100c; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 12px 34px rgba(0,0,0,.4); }
.sale-media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
/* #79: light mode — ei mingit valget kasti, taust sulandub sektsiooniga (nagu riba) */
html.light .sale-media { background: transparent; border-color: transparent; box-shadow: none; }

/* ── SERTIFITSEERIMISSTANDARDID — liikuv riba ── */
.cert-ticker { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; position: relative; }
.cert-ticker::before, .cert-ticker::after { content: ''; position: absolute; top: 0; bottom: 0; width: 110px; z-index: 2; pointer-events: none; }
.cert-ticker::before { left: 0; background: linear-gradient(to right, var(--bg-2), transparent); }
.cert-ticker::after { right: 0; background: linear-gradient(to left, var(--bg-2), transparent); }
.cert-track { display: flex; width: max-content; align-items: center; padding: 22px 0; animation: certScroll 48s linear infinite; }
.cert-ticker:hover .cert-track { animation-play-state: paused; }
@keyframes certScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.cert-item { display: inline-flex; align-items: center; gap: 12px; padding: 0 48px; white-space: nowrap; }
.cert-logo { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: .06em; color: var(--muted); transition: color .3s; }
.cert-ticker:hover .cert-logo { color: var(--gold); }
.cert-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-dim); }
.cert-desc { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ── HINDAMISASUTUSED — tekst-logo (mitte kaubamärgi pilt) ── */
.grad-logo--text { display: inline-flex; align-items: center; justify-content: center; min-width: 76px; height: 54px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .04em; color: var(--gold); background: var(--surface); }

/* ── VORM — lisad (flash, failinimekiri) ── */
.form-flash { padding: 12px 16px; margin: 0 0 14px; font-size: 13px; border: 1px solid; border-radius: var(--radius-sm); }
.form-flash-ok { color: #9fd39f; border-color: rgba(120,200,120,.4); background: rgba(120,200,120,.06); }
.form-flash-err { color: #e0a3a3; border-color: rgba(200,120,120,.4); background: rgba(200,120,120,.06); }
.upload-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.upload-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px 7px 12px; font-size: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(201,167,106,.05); }
.upload-item-name { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-item-del { flex-shrink: 0; width: 22px; height: 22px; font-size: 18px; line-height: 1; border: none; background: none; color: #d46a6a; cursor: pointer; padding: 0; }
.upload-item-del:hover { color: #ff5050; }

@media (max-width: 900px) {
  .forsale-block { grid-template-columns: 1fr; grid-template-areas: "title" "strip" "btn"; justify-items: start; row-gap: 14px; }
  .forsale-btn { justify-self: start; }
}
/* #113: hero pealdised — kõik DOM-is, nähtav ainult aktiivne */
.coin-cap .cap-txt { display: none; }
.coin-cap .cap-txt.active { display: inline; }
