/* Veresiye sayfasına özel: örnek müşteri kartı ve rol listesi. Ortak parçalar ../yenisoypos/pos.css */

/* ---------- hero görseli: müşteri kartı ---------- */
.vrs-visual { position: relative; display: grid; place-items: center; min-height: 540px; }

.ledger {
  width: min(100%, 380px);
  padding: 24px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 50px 90px -40px #000;
  rotate: -2deg;
}
.ledger p { margin: 0; }
.ledger-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line-on-paper); }
.ledger-head b { display: block; font-size: 1.05rem; }
.ledger-head .mono { color: var(--mute-on-paper); font-size: .62rem; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 700; font-size: .85rem; }
.bal-label { margin-top: 18px !important; color: var(--mute-on-paper); font-size: .62rem; }
.bal { font-weight: 800; font-size: 2.6rem; letter-spacing: -.03em; line-height: 1.1; }

/* bakiye sayacı: CSS sayacı 0'dan 840'a sayar; destek yoksa doğrudan 840 görünür */
@property --bal { syntax: '<integer>'; inherits: false; initial-value: 840; }
.bal-num { --bal: 840; counter-reset: bal var(--bal); }
.bal-num::after { content: counter(bal); }

.limit { height: 8px; margin-top: 14px; border-radius: 99px; background: #ddd7ca; overflow: hidden; }
.limit-fill { display: block; width: 42%; height: 100%; border-radius: inherit; background: var(--signal-deep); transform-origin: left; }
.limit-text { display: flex; justify-content: space-between; margin-top: 6px !important; color: var(--mute-on-paper); font-size: .62rem; }

.moves { margin: 18px 0; }
.moves li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-on-paper); font-size: .88rem; }
.moves .mono { flex: none; width: 4.6em; color: var(--mute-on-paper); font-size: .62rem; }
.moves b { margin-left: auto; font-family: var(--f-mono); font-size: .82rem; }
.moves .debt { color: #b3261e; }
.moves .paid { color: var(--signal-deep); }
.ledger-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ledger-actions span { padding: 11px; border-radius: 8px; text-align: center; font-weight: 700; font-size: .9rem; background: var(--ink); color: var(--paper); }
.ledger-actions span + span { background: var(--signal); color: var(--ink); }

.chip { position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 99px; font-weight: 600; font-size: .85rem; box-shadow: 0 20px 40px -20px #000; }
.chip-ok { right: 0; bottom: 12%; background: var(--signal); color: var(--ink); }

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .ledger { animation: ledger-in 1.2s var(--ease) .2s both; }
  .bal-num { animation: count 1.8s cubic-bezier(.2, .7, .2, 1) 1s both; }
  .limit-fill { animation: grow 1.8s cubic-bezier(.2, .7, .2, 1) 1s both; }
  .moves li { animation: fade .5s var(--ease) both; }
  .moves li:nth-child(1) { animation-delay: 1.2s; }
  .moves li:nth-child(2) { animation-delay: 1.45s; }
  .moves li:nth-child(3) { animation-delay: 1.7s; }
  .moves li:nth-child(4) { animation-delay: 1.95s; }
  .chip-ok { animation: toast 6s var(--ease) 3.2s infinite; }
}
@keyframes ledger-in { from { opacity: 0; translate: 0 50px; rotate: -8deg; } }
@keyframes count { from { --bal: 0; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes toast { 0% { opacity: 0; translate: 0 16px; } 8%, 70% { opacity: 1; translate: 0 0; } 80%, 100% { opacity: 0; translate: 0 -8px; } }

/* ---------- sürümler ---------- */
.editions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.edition { padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line-on-paper); border-radius: 12px; }
.edition header { padding-bottom: 22px; border-bottom: 1px solid var(--line-on-paper); }
.ed-tag { color: var(--signal-deep); }
.edition h3 { margin: 8px 0 10px; font-weight: 800; font-stretch: 108%; font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -.02em; }
.ed-for { color: var(--mute-on-paper); max-width: 44ch; }
.ed-list li { padding: 16px 0; border-bottom: 1px solid var(--line-on-paper); }
.ed-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.ed-list h4 { margin-bottom: 4px; font-weight: 700; font-size: 1.05rem; }
.ed-list h4::before { content: '✓ '; color: var(--signal-deep); }
.ed-list p { color: var(--mute-on-paper); font-size: .95rem; }
.edition-web { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.edition-web header, .edition-web .ed-list li { border-color: var(--line-on-ink); }
.edition-web .ed-tag, .edition-web .ed-list h4::before { color: var(--signal); }
.edition-web .ed-for, .edition-web .ed-list p { color: var(--mute-on-ink); }

/* ---------- kimler için ---------- */
.vrs-duo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); }
.duo-tag { margin-bottom: 14px; color: var(--signal); }
.vrs-duo .hw-list li { font-size: clamp(1.1rem, 1.7vw, 1.45rem); }

/* ---------- duyarlı ---------- */
@media (max-width: 900px) {
  .vrs-visual { min-height: 0; padding: 40px 0 60px; }
  .vrs-duo, .editions { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top nav a:not(.nav-cta):not([href*="/login"]) { display: none; } /* mobilde Giriş ve Bilgi alın kalır */
  .ledger { padding: 18px; }
  .bal { font-size: 2.1rem; }
  .chip { font-size: .75rem; padding: 8px 12px; }
  .chip-ok { bottom: 10px; }
}

/* kart altı: indirme ya da giriş düğmesi ve kısa not */
.ed-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line-on-paper); }
.ed-foot p { color: var(--mute-on-paper); font-size: .92rem; }
.ed-foot p a { color: var(--signal-deep); text-underline-offset: 3px; }
.edition-web .ed-foot { border-color: var(--line-on-ink); }
.edition-web .ed-foot p { color: var(--mute-on-ink); }
.edition-web .ed-foot p a { color: var(--signal); }
.platforms a { text-decoration: none; }
.platforms a:hover { color: var(--signal); }
