/* Krok 2: stavy „volno / plno“ a panel s nabídkou */

/* ---------- přepínání stavů ---------- */

.state-full { display: none; }
body.is-full .state-open { display: none; }
body.is-full .state-full { display: block; }
body.is-full .places-left { color: var(--red); }
body.is-full .places .bar i { width: 100%; background: var(--red); }

.privacy-card { margin-top: 14px; }

/* ---------- výsledky ověření ---------- */

body.has-result .state-open,
body.has-result .state-full,
body.has-result .places { display: none; }

.state-box { text-align: center; animation: rise 0.5s ease-out both; }
.state-box .btn-link { margin-top: 18px; }
.state-box .lead b { color: var(--text); }

.big-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 8px auto 22px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.big-icon svg { width: 32px; height: 32px; }
.big-icon.warn { color: #b3261e; }

.spin-ring { border: 3px solid #e6e6e8; border-top-color: var(--text); animation: spin 1s linear infinite; }

.small-note { margin: 16px 0 0; font-size: 0.85rem; color: var(--muted); }
.small-note a { color: var(--text); }

.verified-seal {
  width: 96px;
  height: 96px;
  margin: 8px auto 18px;
  border-radius: 50%;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18), 0 0 0 8px rgba(226, 181, 79, 0.18);
  animation: seal-pop 0.8s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.verified-seal svg { width: 100%; height: 100%; display: block; }

.kicker-dark {
  margin: 0 0 8px;
  font: 600 0.75rem ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b8862b;
}

@keyframes seal-pop {
  from { opacity: 0; transform: scale(0.5) rotate(-12deg); }
  to { opacity: 1; transform: none; }
}

/* ---------- živý QR kód ---------- */

.qr-live {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: opacity 0.3s, filter 0.3s;
}

.qr-live svg { width: 100%; height: 100%; display: block; }
.qr-live svg rect { fill: #ffffff; }
.qr-live svg path { fill: #1d1d1f; }
.qr-off { opacity: 0.35; filter: blur(3px); }

.qr-loading {
  width: 28px;
  height: 28px;
  border: 2px solid #e6e6e8;
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

a.btn-link {
  display: grid;
  place-items: center;
  color: #ffffff;
  text-decoration: none;
}

.link-btn {
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  background: none;
  border: 0;
  cursor: pointer;
}

button.pill { border: 1px solid var(--line); cursor: pointer; }

.mail-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 12px 14px;
  font-size: 0.86rem;
  line-height: 1.45;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 3px solid #e2b54f;
  border-radius: var(--radius);
  animation: rise 0.4s ease-out both;
}

.mail-banner svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); }
.mail-banner span { flex: 1; }

.mail-banner button {
  padding: 6px 10px;
  font: 600 0.82rem var(--font);
  color: var(--text);
  background: #f2f2f3;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}

.mail-banner button:disabled { opacity: 0.5; cursor: default; }

/* ---------- velká nabídka ---------- */

.state-full .lead b { color: var(--text); }

.offer {
  position: relative;
  padding: 30px 26px 22px;
  text-align: center;
  color: #ffffff;
  background: radial-gradient(circle at 80% 0%, #3a3a40 0%, #151517 60%);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.offer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1.4px);
  background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
          mask-image: linear-gradient(180deg, #000, transparent 70%);
  pointer-events: none;
}

.offer > * { position: relative; }

.offer-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  font: 600 0.72rem ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1d1d1f;
  background: #f1d48a;
  border-radius: 999px;
}

.offer h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.offer-line {
  margin: 0 auto 18px;
  max-width: 30ch;
  font-size: 1.08rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.offer-line b { color: #ffffff; }

.offer-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.offer-price .big { font-size: 2.6rem; font-weight: 700; color: #ffffff; letter-spacing: -0.03em; }

.btn-offer {
  color: #1d1d1f;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-offer:hover { background: #f1d48a; }

.offer-foot { margin: 12px 0 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); }

.wait-free { margin: 16px 0 0; text-align: center; font-size: 0.9rem; color: var(--muted); }
.wait-free a { color: var(--text); font-weight: 600; }

/* ---------- přechod: střed odjede doleva, vpravo se otevře panel ---------- */

.signup-wrap {
  transition: translate 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (min-width: 1000px) {
  body.split .signup-wrap { translate: -25vw 0; }
}

.preview {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  width: 50vw;
  overflow-y: auto;
  color: #ffffff;
  background: #151517;
  transform: translateX(100%);
  transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.split .preview { box-shadow: -30px 0 60px rgba(0, 0, 0, 0.12); }

.preview::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1.4px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 65%);
          mask-image: radial-gradient(circle at 70% 30%, #000, transparent 65%);
  pointer-events: none;
}

body.split .preview { transform: translateX(0); }

.preview-inner {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  padding: 64px 28px 40px;
}

.preview-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.preview-close:hover { background: rgba(255, 255, 255, 0.16); }
.preview-close svg { width: 18px; height: 18px; }

.preview .kicker { margin: 0 0 10px; }

.preview-title {
  margin: 0 0 24px;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* prvky panelu naskočí postupně, až se panel otevře */
.preview-inner > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

body.split .preview-inner > * { opacity: 1; transform: none; }
body.split .preview-inner > :nth-child(1) { transition-delay: 0.35s; }
body.split .preview-inner > :nth-child(2) { transition-delay: 0.42s; }
body.split .preview-inner > :nth-child(3) { transition-delay: 0.5s; }
body.split .preview-inner > :nth-child(4) { transition-delay: 0.6s; }
body.split .preview-inner > :nth-child(5) { transition-delay: 0.66s; }
body.split .preview-inner > :nth-child(6) { transition-delay: 0.72s; }
body.split .preview-inner > :nth-child(7) { transition-delay: 0.78s; }
body.split .preview-inner > :nth-child(n+8) { transition-delay: 0.84s; }

/* ---------- ukázka profilu v telefonu ---------- */

.showcase {
  position: relative;
  padding: 10px 0 20px;
}

.phone {
  position: relative;
  width: 290px;
  margin: 0 auto;
  padding: 10px;
  background: #0b0b0c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 42px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 2px #2a2a2e;
}

.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 3;
  width: 78px;
  height: 22px;
  transform: translateX(-50%);
  background: #0b0b0c;
  border-radius: 20px;
}

.screen {
  overflow: hidden;
  color: var(--text);
  background: #ffffff;
  border-radius: 33px;
}

.cover { height: 110px; }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

.p-body { padding: 0 16px 16px; }

.p-avatar {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-top: -37px;
  padding: 3px;
  background: conic-gradient(from 200deg, #f8e3a3, #e2b54f, #b8862b, #f8e3a3);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.p-avatar span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #2b2b30, #5a5a63);
  border: 3px solid #ffffff;
  border-radius: 50%;
}

.p-name {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.badges { display: inline-flex; gap: 3px; }
.badge { width: 22px; height: 22px; flex-shrink: 0; }

/* Gold Premium: jeden odznak místo dvou, otisk zlatě a kolem dokola zářící prstenec */
.badge.gold { overflow: visible; }
.badge.gold .ring { animation: gold-glow 3.2s ease-in-out infinite; transform-origin: 50% 50%; }

@keyframes gold-glow {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

.p-handle { margin: 1px 0 0; font-size: 0.8rem; color: #9a9aa0; }
.p-bio { margin: 6px 0 0; font-size: 0.8rem; color: #3a3a3f; }

.p-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 12px 0;
  text-align: center;
}

.p-stats b { display: block; font-size: 0.98rem; }
.p-stats small { font-size: 0.68rem; color: var(--muted); }

.p-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

.p-btn {
  display: grid;
  place-items: center;
  height: 32px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #f2f2f3;
  border-radius: 8px;
}

.p-dark { color: #ffffff; background: #1d1d1f; }

.p-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin: 12px -16px -16px;
}

.p-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }

/* plovoucí kartičky kolem telefonu */
.float {
  position: absolute;
  z-index: 4;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--text);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  animation: bob 5s ease-in-out infinite;
}

.float b { font-weight: 700; }
.float-1 { top: 60%; left: -6px; }
.float-2 { bottom: 4px; right: -6px; animation-delay: -2.5s; }

.float .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--green);
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* lupa, která ukazuje odznaky */
.lens {
  position: absolute;
  z-index: 5;
  top: 118px;
  left: 50%;
  margin-left: 40px;
  width: 128px;
  transform: scale(0.4);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.3, 1.5, 0.5, 1) 1s, opacity 0.4s ease 1s;
}

body.split .lens { transform: scale(1); opacity: 1; }

.lens-glass {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  width: 128px;
  height: 128px;
  background: radial-gradient(circle at 35% 30%, #ffffff, #f4f4f6);
  border: 5px solid #e2b54f;
  border-radius: 50%;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.lens-badges { display: flex; gap: 6px; }
.badge.big { width: 40px; height: 40px; }
.lens-glass small {
  max-width: 88px;
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: var(--text);
}

/* držadlo lupy: vychází z pravého dolního okraje skla šikmo dolů, jako u ikony lupy */
.lens-handle {
  position: absolute;
  top: 98px;
  left: 103px;
  width: 12px;
  height: 52px;
  background: linear-gradient(180deg, #e2b54f, #b8862b);
  border-radius: 999px;
  transform: rotate(-45deg);
  transform-origin: top center;
  z-index: -1;
}

.lens-label {
  position: absolute;
  top: -30px;
  right: 4px;
  padding: 5px 10px;
  font: 700 0.72rem ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d1d1f;
  background: #f1d48a;
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .phone { width: 250px; }
  .lens { top: 128px; left: 50%; margin-left: 30px; width: 104px; }
  .lens-glass small { font-size: 0.58rem; }
  .lens-glass { width: 104px; height: 104px; }
  .badge.big { width: 32px; height: 32px; }
  .lens-glass small { max-width: 72px; font-size: 0.56rem; }
  .lens-handle { top: 80px; left: 84px; width: 10px; height: 42px; }
  .float-1 { left: -12px; }
  .float-2 { right: -12px; }
  .float { font-size: 0.72rem; }
}

/* ---------- menší obrazovky: panel přes celou šířku ---------- */

@media (max-width: 999px) {
  .preview { width: 100%; }
}

@media (max-width: 480px) {
  .offer { padding: 26px 18px 20px; }
  /* na úzkém displeji bubliny překrývaly tlačítka v náhledu profilu */
  .float { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .signup-wrap, .preview, .preview-inner > * { transition: none !important; }
}
