/* ==========================================================================
   ZdjecieDoDowodu.pl — Premium Apple-Inspired Design System
   Elegancki, minimalistyczny styl z płynnymi animacjami scroll-reveal
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
  --bg-page: #ffffff;
  --bg-surface: rgba(255, 255, 255, 0.82);
  --bg-card: #ffffff;
  --bg-card-subtle: #f5f5f7;
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(0, 0, 0, 0.14);
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-glow: rgba(0, 113, 227, 0.15);
  --green: #34c759;
  --green-subtle: rgba(52, 199, 89, 0.1);
  --amber: #ff9f0a;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 24px 60px -12px rgba(0, 0, 0, 0.12);
  --shadow-float: 0 20px 50px -10px rgba(0, 0, 0, 0.15), 0 8px 24px -4px rgba(0, 113, 227, 0.08);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Base Reset & Typography
   -------------------------------------------------------------------------- */
@layer base {
  *, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body.apple-scrolly-body {
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font);
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

/* --------------------------------------------------------------------------
   Scroll-Reveal Animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for child reveals */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes subtlePulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(0, 113, 227, 0.25); }
  50% { box-shadow: 0 4px 24px rgba(0, 113, 227, 0.4); }
}

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

/* --------------------------------------------------------------------------
   Fixed Top Navigation — Frosted Glass
   -------------------------------------------------------------------------- */
.apple-nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

/* Gwarancja idealnego wyśrodkowania na ekranach desktopowych */
.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

.apple-nav-fixed > div {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: auto !important;
  margin-right: auto !important;
}

.clean-stage-wrap,
main,
footer {
  margin-left: auto !important;
  margin-right: auto !important;
}


/* --------------------------------------------------------------------------
   HERO Section
   -------------------------------------------------------------------------- */
.hero-section-wrap {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 3rem;
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(0, 113, 227, 0.04) 0%, transparent 60%),
    var(--bg-page);
}

.hero-inner {
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Hero preview — large, floating photo */
.hero-preview-frame {
  width: 180px;
  height: 232px;
  aspect-ratio: 35 / 45;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  animation: float 6s ease-in-out infinite;
}

[data-theme="dark"] .hero-preview-frame {
  background: #1c1c1e;
}

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

.hero-preview-tag {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

[data-theme="dark"] .hero-preview-tag {
  background: rgba(44, 44, 46, 0.9);
  color: var(--text-primary);
}

/* Hero text */
.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 400px;
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
  .hero-preview-frame {
    width: 200px;
    height: 258px;
  }
}

/* --------------------------------------------------------------------------
   Choice Cards (two main options)
   -------------------------------------------------------------------------- */
.choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 520px;
}

@media (min-width: 640px) {
  .choice-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.choice-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.choice-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.03), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.choice-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.choice-card:hover::before {
  opacity: 1;
}

.choice-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 1rem;
  background: var(--bg-card-subtle);
  transition: transform 0.3s var(--ease-spring);
}

.choice-card:hover .choice-card-icon {
  transform: scale(1.1);
}

.choice-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.choice-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   Flow Container & Step Cards
   -------------------------------------------------------------------------- */
.flow-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 5.5rem 1.25rem 4rem;
}

.flow-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
}

@media (min-width: 640px) {
  .flow-step-card {
    padding: 2.5rem 2.25rem;
  }
}

.flow-step-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.flow-step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .flow-step-title {
    font-size: 1.75rem;
  }
}

.step-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Unified Scrolly Flow: Single Sticky Photo Stage + Vertical Scroll Track
   -------------------------------------------------------------------------- */
.scrolly-flow-wrap {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
}

.sticky-stage-wrap {
  position: sticky;
  top: 56px;
  z-index: 40;
  background: var(--bg-page);
  padding: 0.6rem 0.5rem 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease;
}

[data-theme="dark"] .sticky-stage-wrap {
  background: var(--bg-page);
}

.sticky-stage-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stage-frame-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scrolly-step-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-tertiary);
}

.step-dot {
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  transition: all 0.25s var(--ease);
}

.step-dot.active {
  color: #ffffff;
  background: var(--accent);
}

.step-dot-sep {
  opacity: 0.4;
  font-size: 0.625rem;
}

.scrolly-steps-track {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.scrolly-card-step {
  padding: 1.75rem 0.75rem 3rem;
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-bottom: 1px dashed var(--border-subtle);
}

.scrolly-card-step:last-child {
  border-bottom: none;
}

.scrolly-nav-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 1.5rem;
  opacity: 0.85;
}

/* Desktop layout: Side-by-side sticky experience */
@media (min-width: 860px) {
  .flow-container {
    max-width: 1040px;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .scrolly-flow-wrap {
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
  }

  .sticky-stage-wrap {
    width: 44%;
    position: sticky;
    top: 76px;
    background: transparent;
    border-bottom: none;
    padding: 0;
  }

  .scrolly-steps-track {
    width: 56%;
    max-width: none;
    padding-bottom: 8rem;
  }

  .scrolly-card-step {
    padding: 2.5rem 1.5rem 5rem;
    min-height: 70vh;
  }
}

/* --------------------------------------------------------------------------
   Big Photo Frame (Editor & Assessment) — Floating, Centered, Responsive
   -------------------------------------------------------------------------- */
.big-photo-frame-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
}

.big-photo-frame {
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 35 / 45;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  touch-action: none !important; /* CRITICAL: Prevents mobile page scroll while dragging photo */
  user-select: none;
  -webkit-user-select: none;
  transition: aspect-ratio 0.5s var(--ease-out), 
              box-shadow 0.4s var(--ease),
              max-width 0.4s var(--ease);
}

@media (max-width: 640px) {
  .big-photo-frame {
    max-width: min(230px, 62vw);
  }
}

[data-theme="dark"] .big-photo-frame {
  background: #1c1c1e;
}

.big-photo-frame:hover {
  box-shadow: 0 28px 60px -12px rgba(0, 0, 0, 0.18), 0 12px 28px -4px rgba(0, 113, 227, 0.12);
}

.big-photo-frame.wiza {
  aspect-ratio: 1 / 1;
  max-width: 300px;
}

@media (max-width: 400px) {
  .big-photo-frame.wiza {
    max-width: 80vw;
  }
}

/* Print sheet frame */
.sheet-photo-frame {
  width: 100%;
  max-width: 520px;
  height: auto;
  aspect-ratio: 15 / 10;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto;
}

@media (max-width: 560px) {
  .sheet-photo-frame {
    max-width: 94vw;
  }
}

[data-theme="dark"] .sheet-photo-frame {
  background: #ffffff;
}

.main-stage-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Pan hint */
.pan-hint-pill {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
}

[data-theme="dark"] .pan-hint-pill {
  background: rgba(44, 44, 46, 0.95);
}

.biometric-svg-wireframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* Live Biometric Template in Editor */
.editor-template-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
  transition: opacity 0.25s var(--ease);
}

.editor-template-overlay.hidden {
  display: none !important;
}

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

.template-toolbar-wrap {
  margin: 0.75rem auto 1rem;
}

.template-ratio-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent);
  border: 1px solid rgba(0, 113, 227, 0.2);
  transition: all 0.25s var(--ease);
}

.template-ratio-badge.pass {
  background: rgba(52, 199, 89, 0.12);
  color: #10b981;
  border-color: rgba(52, 199, 89, 0.3);
}

.template-ratio-badge.warn {
  background: rgba(255, 159, 10, 0.12);
  color: #f59e0b;
  border-color: rgba(255, 159, 10, 0.3);
}

.btn-apple-secondary.active {
  background: var(--accent);
  color: #ffffff !important;
  border-color: var(--accent);
}

/* --------------------------------------------------------------------------
   Buttons — Pill shaped, with spring feel
   -------------------------------------------------------------------------- */
.btn-apple-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.25);
  transition: all 0.3s var(--ease-spring);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-apple-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.35);
}

.btn-apple-primary:active {
  transform: translateY(0) scale(0.98);
}

/* Subtle pulse glow on CTA */
.hero-section-wrap .btn-apple-primary,
.flow-step-card .btn-apple-primary:last-of-type {
  animation: subtlePulse 3s ease-in-out infinite;
}

.btn-apple-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--bg-card-subtle);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  text-decoration: none;
}

.btn-apple-secondary:hover {
  background: var(--bg-card);
  border-color: var(--border-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.btn-apple-secondary:active {
  transform: translateY(0) scale(0.98);
}

.btn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-pill);
  transition: all 0.25s var(--ease);
}

.btn-back-link:hover {
  color: var(--accent);
  background: var(--accent-glow);
}

/* --------------------------------------------------------------------------
   Controls: Sliders, Toggles, Chips
   -------------------------------------------------------------------------- */
.control-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
}

.apple-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.06);
  outline: none;
  cursor: pointer;
}

[data-theme="dark"] .apple-range {
  background: rgba(255, 255, 255, 0.12);
}

.apple-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring);
}

.apple-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.apple-toggle {
  width: 40px;
  height: 24px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Format Chips */
.format-chip-btn {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  text-align: left;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
}

.format-chip-btn:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.format-chip-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.3);
}

.format-chip-btn.active span {
  color: #ffffff !important;
}

/* Segmented Picker */
.segmented-picker {
  display: inline-flex;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  padding: 3px;
  border-radius: var(--radius-pill);
}

.picker-btn {
  background: none;
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.picker-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   Verdict Card (Biometric Assessment Result)
   -------------------------------------------------------------------------- */
.verdict-card {
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 1.25rem auto;
  max-width: 480px;
  text-align: left;
  transition: all 0.4s var(--ease);
}

.verdict-card.pass {
  background: var(--green-subtle);
  border: 1px solid rgba(52, 199, 89, 0.25);
}

.verdict-card.warn {
  background: rgba(255, 159, 10, 0.08);
  border: 1px solid rgba(255, 159, 10, 0.25);
}

.verdict-card.checking {
  background: var(--accent-glow);
  border: 1px solid rgba(0, 113, 227, 0.2);
}

/* --------------------------------------------------------------------------
   Tutorial Cards & Tutorial Modal
   -------------------------------------------------------------------------- */
.tutorial-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.tutorial-modal-overlay.hidden {
  display: none !important;
}

.tutorial-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.tutorial-modal-card {
  position: relative;
  z-index: 10;
  background: #ffffff;
  border-radius: 24px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.tutorial-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.tutorial-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.25;
}

.tutorial-modal-subtitle {
  font-size: 0.8rem;
  color: #6e6e73;
  margin: 3px 0 0 0;
  line-height: 1.4;
}

.tutorial-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5f5f7;
  color: #6e6e73;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.tutorial-modal-close:hover {
  background: #e5e5ea;
  color: #1d1d1f;
}

.tutorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 22px;
  text-align: left;
}

@media (min-width: 480px) {
  .tutorial-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.tutorial-tile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #fbfbfd;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.tutorial-tile:hover {
  border-color: rgba(0, 113, 227, 0.25);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.tutorial-tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.tutorial-tile-content {
  flex: 1;
  min-width: 0;
}

.tutorial-tile-heading {
  font-size: 0.84rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 3px;
  line-height: 1.25;
}

.tutorial-tile-text {
  font-size: 0.74rem;
  color: #6e6e73;
  line-height: 1.35;
}

.tutorial-modal-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.tutorial-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 9999px;
  background: #0071e3;
  color: #ffffff;
  border: 1px solid #0071e3;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.28);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.tutorial-btn-primary:hover {
  background: #0077ed;
  border-color: #0077ed;
  transform: translateY(-1px);
}

.tutorial-btn-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #6e6e73;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  transition: color 0.15s ease;
}

.tutorial-btn-cancel:hover {
  color: #1d1d1f;
}

/* --------------------------------------------------------------------------
   Kawaii Cat Assistant
   -------------------------------------------------------------------------- */
.cat-assistant-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

@media (max-width: 640px) {
  .cat-assistant-container {
    right: 12px;
    bottom: 12px;
    transform: scale(0.82);
    transform-origin: bottom right;
  }
}

.cat-speech-bubble {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.1rem 1rem;
  box-shadow: var(--shadow-xl);
  max-width: 260px;
  margin-bottom: 0.65rem;
  position: relative;
  transform-origin: bottom right;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease-spring);
}

[data-theme="dark"] .cat-speech-bubble {
  background: rgba(44, 44, 46, 0.96);
}

.cat-speech-tail {
  position: absolute;
  bottom: -6px;
  right: 32px;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.96);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  transform: rotate(45deg);
}

[data-theme="dark"] .cat-speech-tail {
  background: rgba(44, 44, 46, 0.96);
}

.cat-speech-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.cat-name-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.cat-bubble-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text-tertiary);
  cursor: pointer;
}

.cat-speech-text {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-primary);
}

.cat-character-wrap {
  pointer-events: auto;
  width: 110px;
  height: 121px;
  cursor: pointer;
  position: relative;
  user-select: none;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s var(--ease-spring);
}

.cat-character-wrap:hover {
  transform: scale(1.08);
}

.cat-character-wrap:active {
  transform: scale(0.94);
}

.cat-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cat-tap-hint {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
  white-space: nowrap;
}

.cat-character-wrap:hover .cat-tap-hint {
  opacity: 1;
}

/* Cat Pose Groups */
.cat-pose-group { display: none; }
.cat-pose-group.active { display: block; }
.cat-head-group {}
.cat-tail-group {}

/* Cat Animations */
@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-12deg); }
  75% { transform: rotate(12deg); }
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.waving-paw {
  transform-origin: 125px 135px;
  animation: wave 1.8s ease-in-out infinite;
}

.sparkles-anim {
  animation: sparkle 2.2s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Camera Modal
   -------------------------------------------------------------------------- */
.apple-camera-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.camera-stage-box {
  background: #1c1c1e;
  border-radius: var(--radius-xl);
  max-width: 440px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 1.25rem;
}

.camera-viewport-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000000;
}

.camera-video-feed {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-silhouette-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.camera-bottom-bar {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.cam-shutter-trigger {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #ffffff;
  border: 3.5px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease-spring);
}

.cam-shutter-trigger:hover {
  transform: scale(1.1);
}

.cam-shutter-trigger:active {
  transform: scale(0.92);
}

.shutter-inner-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid rgba(0, 0, 0, 0.2);
}

.cam-aux-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  transition: background 0.2s var(--ease);
}

.cam-aux-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   Top Logo Peeking Cat (Drapak & Miau Asystent)
   ========================================================================== */
.cat-logo-container,
.navbar-brand-cat {
  position: relative;
  display: flex;
  align-items: center;
}

.cat-logo-peeker,
.cat-peeker-wrap {
  position: absolute;
  top: -22px;
  left: 2px;
  width: 56px;
  height: 42px;
  z-index: 5;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-logo-peeker:hover,
.cat-peeker-wrap:hover {
  transform: translateY(-4px) scale(1.1);
}

.cat-peeker-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.06));
}

@keyframes catScratchAction {
  0%, 70%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  75% {
    transform: translate(-3px, -2px) rotate(-18deg);
  }
  80% {
    transform: translate(1px, 2px) rotate(10deg);
  }
  85% {
    transform: translate(-4px, -1px) rotate(-14deg);
  }
  90% {
    transform: translate(0, 1px) rotate(4deg);
  }
}

.cat-scratching-paw {
  transform-origin: 58px 48px;
  animation: catScratchAction 2.8s ease-in-out infinite;
}

.logo-fd-box {
  position: relative;
}

.fd-scratch-mark {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.6);
  border-top: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  pointer-events: none;
}

.cat-logo-peeker.tucked {
  opacity: 0.55;
  transform: translateY(8px) scale(0.9);
}

.cat-logo-peeker.tucked:hover {
  opacity: 1;
  transform: translateY(-2px) scale(1.05);
}

.logo-cat-bubble {
  position: absolute;
  top: 42px;
  left: 20px;
  background: #ffffff;
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
}

.logo-cat-bubble.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes catScratchFast {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(-5px, -3px) rotate(-24deg);
  }
  50% {
    transform: translate(2px, 3px) rotate(14deg);
  }
  75% {
    transform: translate(-4px, -2px) rotate(-18deg);
  }
}

/* --------------------------------------------------------------------------
   SEO Feature Cards (High-Contrast Apple Bento Style with Cat Badges)
   -------------------------------------------------------------------------- */

/* Grid wrapper centrowanie na desktopie */
.grid.grid-cols-1.sm\:grid-cols-3 {
  justify-items: center;
  width: 100%;
}

@media (min-width: 640px) {
  .grid.grid-cols-1.sm\:grid-cols-3 {
    justify-items: stretch;
    place-content: center;
  }
}

.apple-feature-card {
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.apple-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.08);
}

.cat-badge-illustration {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-feature-card:hover .cat-badge-illustration {
  transform: scale(1.08) rotate(2deg);
}

.cat-pill-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
}

/* --------------------------------------------------------------------------
   3-Step Rossmann Printing Guide Box
   -------------------------------------------------------------------------- */
.apple-guide-box {
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.guide-step-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 1.35rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.guide-step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.guide-step-card.highlight {
  border-color: #fcd34d;
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.12);
}

.step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0071e3;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* FAQ Accordion — smooth transitions on high-contrast cards */
.faq-accordion-item {
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease);
}

.faq-accordion-item:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.faq-toggle {
  width: 100%;
  padding: 1.1rem 1.25rem;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.faq-toggle:hover {
  color: var(--accent);
}

.faq-chevron {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}

.faq-body {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.hidden:not(.sm\:block):not(.sm\:inline):not(.sm\:inline-block):not(.sm\:flex):not(.sm\:inline-flex):not(.sm\:grid):not(.md\:block):not(.md\:inline):not(.md\:flex):not(.md\:grid):not(.lg\:block):not(.lg\:flex):not(.lg\:grid) {
  display: none !important;
}

/* ==========================================================================
   Apple-Grade Showcase (Mac mini inspired aesthetic)
   ========================================================================== */
.apple-announcement-bar {
  background: #f5f5f7;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 12px 16px;
  text-align: center;
  font-size: 13px;
  color: #1d1d1f;
  line-height: 1.4;
  margin-top: 56px; /* offset for fixed navbar */
  font-weight: 400;
}

.apple-announcement-bar a.apple-bar-link {
  color: #0071e3;
  text-decoration: none;
  margin-left: 4px;
}

.apple-announcement-bar a.apple-bar-link:hover {
  text-decoration: underline;
}

.clean-stage-wrap {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-page);
  box-sizing: border-box;
  scroll-margin-top: 100px;
}

#stageUpload,
#stageEditor,
#stageSheet {
  scroll-margin-top: 100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clean-header {
  margin: 0 auto 1.5rem auto;
  max-width: 680px;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

/* Big Bold Headline — Mac mini style */
.clean-title {
  font-size: clamp(2rem, 6.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  word-break: break-word;
  text-align: center;
}

/* Crisp Subtitle — "Teraz z M6 i M5 Pro." style */
.clean-subtitle {
  font-size: clamp(1.05rem, 2.8vw, 1.85rem);
  color: var(--text-primary);
  line-height: 1.35;
  font-weight: 400;
  margin: 0 auto;
  max-width: 100%;
  word-break: break-word;
  text-align: center;
}

/* Buttons Container */
.clean-buttons-container {
  margin-top: 1.5rem;
  margin-bottom: 3.25rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.clean-btn-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Left Pill Button: Solid Blue ("Dowiedz się więcej" style) */
.btn-clean-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0071e3;
  color: #ffffff;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.17648;
  min-width: 28px;
  padding: 10px 22px;
  border-radius: 9999px;
  border: 1px solid #0071e3;
  cursor: pointer;
  box-shadow: none;
  text-decoration: none;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.btn-clean-primary:hover {
  background: #0077ed;
  border-color: #0077ed;
}

.btn-clean-primary:active {
  transform: scale(0.98);
}

/* Right Pill Button: Outlined Blue ("Kup" style) */
.btn-clean-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #0071e3;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.17648;
  min-width: 28px;
  padding: 10px 22px;
  border-radius: 9999px;
  border: 1px solid #0071e3;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.btn-clean-secondary:hover {
  background: rgba(0, 113, 227, 0.08);
}

.btn-clean-secondary:active {
  transform: scale(0.98);
}

/* Subtle Link Button ("Zacznij od nowa") */
.btn-clean-text {
  background: none;
  border: none;
  color: #0071e3;
  font-size: 14px;
  font-weight: 400;
  padding: 6px 12px;
  margin-top: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease;
}

.btn-clean-text:hover {
  text-decoration: underline;
}

/* Central Product Showcase Stage */
.clean-photo-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 1rem;
}

/* Single 35x45 mm Card with Apple Studio Ambient Shadow */
.clean-frame-single {
  width: 280px;
  height: 360px; /* 35:45 aspect ratio */
  max-width: 82vw;
  max-height: calc(82vw * (45 / 35));
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 
    0 35px 70px -15px rgba(0, 0, 0, 0.16),
    0 12px 28px -6px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.clean-frame-single:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 
    0 45px 85px -18px rgba(0, 0, 0, 0.2),
    0 16px 36px -8px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* 10x15 cm Rossmann Sheet Card */
.clean-frame-sheet {
  width: 450px;
  height: 300px; /* 15:10 aspect ratio (3:2) */
  max-width: 92vw;
  max-height: calc(92vw * (2 / 3));
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 
    0 35px 70px -15px rgba(0, 0, 0, 0.16),
    0 12px 28px -6px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.clean-frame-sheet:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 
    0 45px 85px -18px rgba(0, 0, 0, 0.2),
    0 16px 36px -8px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.05);
}

.clean-photo-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   NEW APPLE STUDIO UI: UPLOAD DROPZONE & EDITOR WORKSPACE
   ========================================================================== */

/* --- Apple Dropzone --- */
.apple-dropzone {
  width: 100%;
  max-width: 620px;
  margin: 1.5rem auto 2.5rem;
  padding: 2.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1.5px dashed rgba(0, 0, 0, 0.14);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.apple-dropzone:hover,
.apple-dropzone.dragover {
  background: rgba(0, 113, 227, 0.04);
  border-color: #0071e3;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 113, 227, 0.08);
}

.apple-dropzone.dragover {
  border-style: solid;
  border-width: 2px;
}

.dropzone-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #f5f5f7;
  color: #0071e3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.apple-dropzone:hover .dropzone-icon-box {
  transform: scale(1.08);
  background: #e8f2fd;
}

.dropzone-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 0.35rem;
}

.dropzone-sub {
  font-size: 0.84rem;
  color: #86868b;
  margin-bottom: 1.25rem;
}

.dropzone-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dropzone-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  width: 100%;
}

.dropzone-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6e6e73;
}

/* --- Apple Studio Layout (Editing Mode) --- */
.studio-layout {
  width: 100%;
  max-width: 520px;
  margin: 1rem auto 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

/* Studio Viewport & Tools */
.studio-viewport-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.studio-photo-wrapper {
  position: relative;
  width: 280px;
  height: 360px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.16),
    0 10px 24px -5px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.studio-photo-wrapper.format-square {
  width: 320px;
  height: 320px;
}

.studio-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: grab;
}

.studio-canvas:active {
  cursor: grabbing;
}

/* Biometric SVG Guide Overlay */
.biometric-guide-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.25s ease;
}

.biometric-guide-overlay.hidden {
  display: none !important;
}

/* --- Prominent Live Biometric Ratio Banner (Zgodność MSWiA / ICAO) --- */
.live-ratio-pill {
  width: 100%;
  max-width: 540px;
  margin: 14px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 16px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: #f8fafc;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.live-ratio-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.live-ratio-text {
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.live-ratio-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: #94a3b8;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.live-ratio-pill.pass {
  background: #f0fdf4;
  color: #15803d;
  border-color: #86efac;
  box-shadow: 0 4px 16px -2px rgba(34, 197, 94, 0.15), 0 2px 6px -1px rgba(34, 197, 94, 0.08);
}

.live-ratio-pill.pass .live-ratio-dot {
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
  animation: pulseGreen 2.2s infinite;
}

.live-ratio-pill.warn {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
  box-shadow: 0 4px 16px -2px rgba(245, 158, 11, 0.15), 0 2px 6px -1px rgba(245, 158, 11, 0.08);
}

.live-ratio-pill.warn .live-ratio-dot {
  background: #d97706;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25);
  animation: pulseAmber 2.2s infinite;
}

@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.08); }
}

@keyframes pulseAmber {
  0%, 100% { box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.08); }
}

/* Biometric ratio meter track & marker */
.live-ratio-meter {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 2px;
}

.live-ratio-meter-track {
  position: relative;
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
}

.live-ratio-target-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 70%;
  width: 10%;
  background: #22c55e;
  border-radius: 9999px;
  opacity: 0.85;
}

.live-ratio-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #15803d;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  transition: left 0.15s ease-out, border-color 0.2s ease;
  z-index: 2;
}

.live-ratio-pill.warn .live-ratio-marker {
  border-color: #d97706;
}

.live-ratio-meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
  padding: 0 4px;
}

.live-ratio-target-label {
  font-weight: 700;
  color: #15803d;
}

.live-ratio-pill.warn .live-ratio-target-label {
  color: #b45309;
}

/* Viewport Top & Bottom Tools / Studio Photo Toolbar */
.viewport-top-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 0.75rem;
  width: 100%;
}

/* Elegancka, czytelna sekcja narzędziowa pod zdjęciem (Apple Studio Toolbar) */
.studio-photo-toolbar {
  width: 100%;
  max-width: 540px;
  margin: 16px auto 0 auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 7px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  box-sizing: border-box;
}

@media (max-width: 560px) {
  .studio-photo-toolbar {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
  }
}

.studio-tool-btn,
.btn-tool-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 10px;
  min-height: 44px;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.studio-tool-btn:hover,
.btn-tool-pill:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0284c7;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.studio-tool-btn:hover .studio-tool-icon,
.btn-tool-pill:hover .studio-tool-icon {
  color: #0284c7;
}

.studio-tool-btn:active,
.btn-tool-pill:active {
  transform: translateY(0);
  background: #f1f5f9;
}

.studio-tool-icon {
  flex-shrink: 0;
  color: #64748b;
  transition: color 0.18s ease;
}

.studio-tool-label {
  font-size: 0.85rem;
  letter-spacing: -0.01em;
}

/* Auto-dopasuj AI */
#btnAutoFit .studio-tool-icon {
  color: #6366f1;
}

#btnAutoFit:hover {
  background: #faf5ff;
  border-color: #c7d2fe;
  color: #4338ca;
}

#btnAutoFit:hover .studio-tool-icon {
  color: #4338ca;
}

/* Przełącznik tła wewnątrz paska narzędzi */
.studio-tool-btn--switch,
.btn-tool-switch {
  cursor: pointer;
}

.studio-tool-btn--switch:has(input:checked) {
  background: #f0f7ff;
  border-color: #bae6fd;
  color: #0369a1;
}

.studio-tool-btn--switch:has(input:checked) .studio-tool-icon {
  color: #0284c7;
}

.studio-mini-toggle,
.mini-toggle-pill {
  position: relative;
  width: 26px;
  height: 16px;
  background: #cbd5e1;
  border-radius: 9999px;
  transition: background-color 0.2s ease;
  display: inline-block;
  flex-shrink: 0;
  margin-left: 2px;
}

.studio-mini-toggle::after,
.mini-toggle-pill::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

input:checked + .studio-mini-toggle,
input:checked + .mini-toggle-pill {
  background: #0284c7;
}

input:checked + .studio-mini-toggle::after,
input:checked + .mini-toggle-pill::after {
  transform: translateX(10px);
}

/* Wyróżniony przycisk Oceń zgodność – główna weryfikacja biometryczna */
.btn-tool-scan {
  background: #0071e3 !important;
  border-color: #0071e3 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 113, 227, 0.28) !important;
}

.btn-tool-scan .studio-tool-icon {
  color: #ffffff !important;
}

.btn-tool-scan:hover {
  background: #005bb5 !important;
  border-color: #005bb5 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.38) !important;
  transform: translateY(-1px) !important;
}

.btn-tool-scan:hover .studio-tool-icon {
  color: #ffffff !important;
}

.btn-tool-scan:active {
  transform: translateY(0) !important;
  background: #004d99 !important;
}

/* Document Rich Details Card - Krótki opis wybranego formatu */
.clean-doc-details-card {
  width: 100%;
  max-width: 540px;
  margin: 10px auto 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  box-sizing: border-box;
  animation: docFadeIn 0.25s ease-out;
}

.clean-doc-details-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.clean-doc-details-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: #334155;
}

.clean-doc-meta-badge {
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
}

.clean-doc-meta-dot {
  color: #cbd5e1;
  font-weight: bold;
}

.clean-doc-meta-item {
  color: #475569;
  font-weight: 500;
  font-size: 0.8rem;
}

.clean-doc-details-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.clean-doc-chip {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 8px 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.chip-k {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.chip-v {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 1px;
}

.clean-doc-details-uses {
  font-size: 0.76rem;
  color: #475569;
  line-height: 1.45;
  padding-top: 6px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.uses-label {
  font-weight: 700;
  color: #0369a1;
}

.uses-list {
  color: #64748b;
}

.viewport-bottom-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.85rem;
  width: 100%;
}

.btn-scan-trigger-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  padding: 10px 20px;
  background: #ffffff;
  color: #1d1d1f;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-scan-trigger-large:hover {
  background: #f8fafc;
  border-color: #0284c7;
  color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12);
}

.btn-scan-trigger-large:active {
  transform: translateY(0);
}

.viewport-quick-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn-quick-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f5f5f7;
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 7px 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-quick-tool:hover {
  background: #ebebee;
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.btn-quick-tool.active {
  background: #0071e3;
  color: #ffffff;
  border-color: #0071e3;
}

.viewport-hint {
  font-size: 0.72rem;
  color: #86868b;
  margin-top: 0.75rem;
  text-align: center;
}

/* Studio Right Column (Inspector Cards) */
.studio-inspector {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.inspector-card {
  background: #f5f5f7;
  border-radius: 18px;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.inspector-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.inspector-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1d1d1f;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.inspector-card-val {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0071e3;
}

/* Apple Segmented Controls */
.apple-segmented-group {
  display: flex;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 3px;
  gap: 2px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.apple-segmented-btn {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  border-radius: 9px;
  padding: 8px 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #6e6e73;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  white-space: normal;
  word-break: break-word;
  line-height: 1.25;
}

.apple-segmented-btn.active {
  background: #ffffff;
  color: #1d1d1f;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Slider with Step Buttons */
.slider-control-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-slider-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 14px;
  font-weight: 700;
  color: #1d1d1f;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.btn-slider-step:hover {
  background: #e8e8ed;
}

/* Apple Style Switch Toggle */
.apple-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.apple-switch-label {
  display: flex;
  flex-direction: column;
}

.apple-switch-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1d1d1f;
}

.apple-switch-desc {
  font-size: 0.74rem;
  color: #86868b;
  margin-top: 2px;
}

.apple-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
}

.apple-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.apple-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #d1d1d6;
  border-radius: 34px;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-switch-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-switch input:checked + .apple-switch-slider {
  background-color: #34c759;
}

.apple-switch input:checked + .apple-switch-slider:before {
  transform: translateX(18px);
}

/* Studio Bottom Actions */
.studio-action-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 1.5rem;
  width: 100%;
}

.studio-main-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

/* Sheet Mode Options Toolbar */
.sheet-options-box {
  background: #f5f5f7;
  border-radius: 16px;
  padding: 1rem 1.5rem;
  margin: 1.5rem auto;
  max-width: 520px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sheet-option-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sheet-option-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1d1d1f;
}



/* =====================================================================
   MODE CHOICE GRID – Stage 1 hero, dwa karty-guziki
   ===================================================================== */
.mode-choice-grid,
.action-choice-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.mode-choice-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  padding: 18px 20px;
  cursor: pointer;
  text-align: left;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  width: 100%;
}

.mode-choice-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  border-color: rgba(0,113,227,0.35);
  transform: translateY(-1px);
}

.mode-choice-card:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.mode-choice-card--self:hover {
  border-color: rgba(124,58,237,0.35);
}

.mode-choice-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mode-choice-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mode-choice-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.mode-choice-desc {
  font-size: 0.78rem;
  color: #6e6e73;
  line-height: 1.45;
}

.mode-choice-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #c7c7cc;
  stroke: #c7c7cc;
  transition: color 0.15s ease;
}

.mode-choice-card:hover .mode-choice-arrow {
  color: #0071e3;
  stroke: #0071e3;
}

.mode-choice-card--self:hover .mode-choice-arrow {
  color: #7c3aed;
  stroke: #7c3aed;
}

/* =====================================================================
   SELF-PHOTO GUIDE BANNER – Panel z poradnikiem dla trybu selfie (Stage 2)
   ===================================================================== */
.selfie-guide-banner {
  background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
  border: 1.5px solid #c4b5fd;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.selfie-guide-banner-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.selfie-guide-banner-body {
  flex: 1;
}

.selfie-guide-banner-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #4c1d95;
  margin-bottom: 6px;
}

.selfie-guide-banner-tips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.selfie-guide-banner-tips li {
  font-size: 0.77rem;
  color: #5b21b6;
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.selfie-guide-banner-tips li::before {
  content: "✓";
  color: #7c3aed;
  font-weight: 700;
  flex-shrink: 0;
}

/* =====================================================================
   SELFIE CHOICE STAGE – Stage 1.5
   ===================================================================== */
.selfie-guide-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #7c3aed;
  text-decoration: none;
  opacity: 0.85;
}
.selfie-guide-link:hover { opacity: 1; text-decoration: underline; }

.selfie-action-grid {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  margin: 16px auto 0;
  flex-wrap: wrap;
}

.selfie-action-card {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  padding: 24px 16px;
  cursor: pointer;
  text-align: center;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.selfie-action-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.11);
  transform: translateY(-2px);
}
.selfie-action-card--camera:hover { border-color: rgba(52,199,89,0.45); }
.selfie-action-card--gallery:hover { border-color: rgba(0,113,227,0.4); }

.selfie-action-icon {
  font-size: 2.2rem;
  line-height: 1;
}
.selfie-action-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1d1d1f;
}
.selfie-action-desc {
  font-size: 0.75rem;
  color: #6e6e73;
  line-height: 1.4;
}

/* =====================================================================
   SCAN BUTTON (special style)
   ===================================================================== */
.btn-scan-trigger {
  background: linear-gradient(135deg, #0071e3 0%, #5e5ce6 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  font-weight: 700 !important;
}
.btn-scan-trigger:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,113,227,0.35) !important;
}

/* =====================================================================
   SCAN OVERLAY – animowana linia skanowania na kanvasie
   ===================================================================== */
.scan-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
  z-index: 10;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, rgba(52,199,89,0.4) 20%, #34c759 50%, rgba(52,199,89,0.4) 80%, transparent 100%);
  box-shadow: 0 0 14px 3px rgba(52,199,89,0.55);
  animation: icaoScanDown 1.5s cubic-bezier(0.4,0,0.2,1) forwards;
}

@keyframes icaoScanDown {
  0%   { top: 0%;   opacity: 0; }
  5%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* =====================================================================
   SCAN RESULTS – wyniki analizy biometrycznej
   ===================================================================== */
.scan-results-area {
  width: 100%;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scan-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  animation: scanItemIn 0.28s ease both;
}
@keyframes scanItemIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.scan-item--pending {
  background: #f5f5f7;
  border: 1px solid #e5e5ea;
}
.scan-item--pass {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.scan-item--fail {
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.scan-item-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.scan-item-body { flex: 1; }
.scan-item-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1.3;
}
.scan-item-detail {
  font-size: 0.74rem;
  color: #6e6e73;
  margin-top: 2px;
  line-height: 1.35;
}
.scan-item--fail .scan-item-label { color: #9a3412; }
.scan-item--fail .scan-item-detail { color: #c2410c; }
.scan-item--pass .scan-item-label { color: #166534; }
.scan-item--pass .scan-item-detail { color: #15803d; }

/* Scan summary card */
.scan-summary-card {
  margin-top: 4px;
  padding: 12px 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: scanItemIn 0.35s ease both;
  font-size: 0.82rem;
  font-weight: 600;
}
.scan-summary-card--pass {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1.5px solid #6ee7b7;
  color: #065f46;
}
.scan-summary-card--fail {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 1.5px solid #fdba74;
  color: #7c2d12;
}
.scan-summary-emoji { font-size: 1.4rem; }


/* =====================================================================
   STUDIO PHOTO ANCHOR & PEEKING CATS (INSPECTOR & TAILOR)
   ===================================================================== */
.studio-photo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.studio-frame-anchor,
.sheet-frame-anchor {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* 1. Kotek z lupą wyglądający zza kadru w Studio Edycji */
.cat-peeker-inspector {
  position: absolute;
  top: -44px;
  right: 14px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  transform-origin: bottom center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  animation: catPeekerEmerge 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* 2. Kotek krawiec z metrem i nożyczkami na arkuszu 10x15 cm */
.cat-peeker-tailor {
  position: absolute;
  top: -46px;
  right: 20px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  cursor: pointer;
  transform-origin: bottom center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  animation: catPeekerEmerge 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cat-peeker-tailor:hover .cat-peeker-figure {
  transform: translateY(-2px);
}

@keyframes catPeekerEmerge {
  0% {
    opacity: 0;
    transform: translateY(32px) scale(0.85);
  }
  70% {
    transform: translateY(-4px) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cat-peeker-inspector.vanishing {
  opacity: 0 !important;
  transform: translateY(36px) scale(0.8) !important;
  pointer-events: none;
}

/* Figurki kotków i cienie */
.cat-peeker-figure {
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
  transition: transform 0.2s ease;
}

/* Animacja lupy detektywa */
.cat-inspector-lupa {
  transform-origin: 65px 46px;
  animation: lupaInspectTilt 2.2s ease-in-out infinite alternate;
}

@keyframes lupaInspectTilt {
  0%   { transform: rotate(-5deg); }
  100% { transform: rotate(6deg); }
}

/* Animacja nożyczek krawieckich */
.cat-tailor-scissors {
  transform-origin: 81px 46px;
  animation: scissorSnipIdle 3.2s ease-in-out infinite;
}

@keyframes scissorSnipIdle {
  0%, 100% { transform: rotate(0deg); }
  12%      { transform: rotate(-12deg); }
  24%      { transform: rotate(4deg); }
  36%      { transform: rotate(-8deg); }
  48%      { transform: rotate(0deg); }
}

@keyframes scissorSnipFast {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(-16deg); }
  50%      { transform: rotate(6deg); }
  75%      { transform: rotate(-12deg); }
}

/* Chmurka mowy kotka */
.cat-speech-bubble {
  background: #ffffff;
  color: #1d1d1f;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
  white-space: nowrap;
  margin-bottom: 6px;
  position: relative;
  animation: speechBubblePop 0.3s ease;
  line-height: 1.3;
}

@keyframes speechBubblePop {
  from { opacity: 0; transform: scale(0.85) translateY(4px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.cat-speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 5px;
  background: #ffffff;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* =====================================================================
   SCAN STATUS PILL AT BOTTOM OF PHOTO
   ===================================================================== */
.scan-status-pill {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
  white-space: nowrap;
  z-index: 15;
  animation: scanPillIn 0.3s ease;
}

@keyframes scanPillIn {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.scan-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 8px #34c759;
  animation: scanDotPulse 0.8s infinite alternate;
}

@keyframes scanDotPulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 1; }
}

/* =====================================================================
   ZGRABNY RAPORT POD ZDJĘCIEM CO POPRAWIĆ
   ===================================================================== */
.report-box {
  width: 100%;
  border-radius: 16px;
  padding: 16px 18px;
  margin-top: 10px;
  animation: reportBoxIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
  text-align: left;
}

@keyframes reportBoxIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.report-box--issues {
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
}

.report-box--pass {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
}

.report-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.report-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 6px;
}

.report-badge--warn {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fdba74;
}

.report-badge--pass {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.report-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #1d1d1f;
}

.report-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.report-item {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #7c2d12;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.report-item-bullet {
  flex-shrink: 0;
  color: #ea580c;
  font-weight: 700;
  margin-top: 1px;
}

.report-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid rgba(234, 88, 12, 0.15);
}

.btn-report-autofix {
  background: #ea580c;
  color: #ffffff;
  border: none;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-report-autofix:hover {
  background: #c2410c;
  transform: translateY(-1px);
}

.mode-choice-card--camera:hover {
  border-color: rgba(16, 185, 129, 0.45);
}
.mode-choice-card--pro:hover {
  border-color: rgba(0, 113, 227, 0.45);
}

/* =====================================================================
   MOBILE CENTERING & ZERO-OVERFLOW RESPONSIVENESS FIX (v3.1)
   Gwarantuje idealne wycentrowanie całego interfejsu i brak wychodzenia za ekran
   ===================================================================== */
html, body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

*, *::before, *::after {
  box-sizing: border-box !important;
}

/* Zapobiegaj przekraczaniu szerokości przez obrazy, canavasy i wideo */
img, canvas, svg, video {
  max-width: 100% !important;
  height: auto;
}

@media (max-width: 640px) {
  /* 1. Header i nawigacja */
  .apple-nav-fixed {
    width: 100% !important;
    max-width: 100% !important;
  }
  .apple-announcement-bar {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 14px !important;
    font-size: 12px !important;
    box-sizing: border-box !important;
    word-break: normal !important;
  }

  /* 2. Główny kontener widoku */
  .clean-stage-wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.75rem 1rem 3rem !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .clean-header {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 4px !important;
    margin-bottom: 1.25rem !important;
    box-sizing: border-box !important;
  }

  .clean-title {
    font-size: clamp(1.8rem, 7.5vw, 2.35rem) !important;
    line-height: 1.15 !important;
    word-break: break-word !important;
    letter-spacing: -0.02em !important;
  }

  .clean-subtitle {
    font-size: 0.92rem !important;
    line-height: 1.4 !important;
    padding: 0 4px !important;
    word-break: break-word !important;
  }

  /* 3. Karty wyboru trybu na stronie głównej */
  .mode-choice-grid {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 1.5rem !important;
    padding: 0 !important;
    gap: 10px !important;
    box-sizing: border-box !important;
  }

  .mode-choice-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 14px !important;
    gap: 12px !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
  }

  .mode-choice-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    flex-shrink: 0 !important;
  }

  .mode-choice-icon svg {
    width: 24px !important;
    height: 24px !important;
  }

  .mode-choice-title {
    font-size: 0.88rem !important;
    line-height: 1.25 !important;
  }

  .mode-choice-desc {
    font-size: 0.74rem !important;
    line-height: 1.35 !important;
  }

  .mode-choice-arrow {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
  }

  /* 4. Baner z poradnikiem galerii */
  .selfie-guide-banner {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 14px !important;
    gap: 10px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }
  .selfie-guide-banner-icon {
    font-size: 1.25rem !important;
  }
  .selfie-guide-banner-title {
    font-size: 0.82rem !important;
  }
  .selfie-guide-banner-tips li {
    font-size: 0.73rem !important;
    line-height: 1.35 !important;
  }

  /* 5. Studio Edycji (Layout i kontener zdjęcia) */
  .studio-layout {
    width: 100% !important;
    max-width: 100% !important;
    margin: 1rem auto 2rem !important;
    gap: 1.25rem !important;
    box-sizing: border-box !important;
  }

  .studio-viewport-col {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .studio-photo-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  .studio-photo-wrapper {
    width: min(280px, calc(100vw - 32px)) !important;
    height: calc(min(280px, calc(100vw - 32px)) * (45 / 35)) !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
  }

  .studio-photo-wrapper.format-square {
    width: min(290px, calc(100vw - 32px)) !important;
    height: min(290px, calc(100vw - 32px)) !important;
  }

  .clean-frame-single {
    width: min(280px, calc(100vw - 32px)) !important;
    height: calc(min(280px, calc(100vw - 32px)) * (45 / 35)) !important;
    margin: 0 auto !important;
  }

  .clean-frame-sheet {
    width: 100% !important;
    max-width: calc(100vw - 32px) !important;
    height: auto !important;
    aspect-ratio: 3/2 !important;
    margin: 0 auto !important;
  }

  /* 6. Narzędzia nad i pod zdjęciem */
  .viewport-top-tools {
    width: 100% !important;
    max-width: 100% !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    margin-bottom: 8px !important;
  }

  .viewport-bottom-tools {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 10px !important;
  }

  .btn-scan-trigger-large {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 16px !important;
    font-size: 0.92rem !important;
    box-sizing: border-box !important;
  }

  .viewport-quick-tools {
    width: 100% !important;
    max-width: 100% !important;
    gap: 6px !important;
    box-sizing: border-box !important;
  }

  .btn-quick-tool {
    font-size: 0.74rem !important;
    padding: 8px 12px !important;
    flex: 1 1 calc(50% - 6px) !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .live-ratio-pill {
    max-width: 100% !important;
    font-size: 0.88rem !important;
    padding: 10px 14px !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }
  .live-ratio-text {
    font-size: 0.88rem !important;
  }

  /* Tutorial Modal Mobile */
  .tutorial-modal-card {
    padding: 18px 14px !important;
    border-radius: 20px !important;
    max-height: 92vh !important;
  }

  .tutorial-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
  }

  /* Kotki peeker na telefonie */
  .cat-speech-bubble {
    white-space: normal !important;
    max-width: 180px !important;
    font-size: 0.68rem !important;
    padding: 5px 8px !important;
    text-align: center !important;
    line-height: 1.25 !important;
  }

  .cat-peeker-inspector {
    top: -38px !important;
    right: 8px !important;
    transform: scale(0.88) !important;
    transform-origin: bottom right !important;
  }

  .cat-peeker-tailor {
    top: -40px !important;
    right: 12px !important;
    transform: scale(0.88) !important;
    transform-origin: bottom right !important;
  }

  /* 7. Panel opcji (Segmented Control i Switch) */
  .studio-inspector {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .inspector-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 14px !important;
    box-sizing: border-box !important;
  }

  .apple-segmented-group {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .apple-segmented-btn {
    padding: 8px 4px !important;
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  /* 8. Przyciski akcji studia (Utwórz formatkę / Pobierz) */
  .studio-action-row {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .studio-main-btns {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 10px !important;
    box-sizing: border-box !important;
  }

  .btn-clean-primary,
  .btn-clean-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 16px !important;
    font-size: 0.88rem !important;
    white-space: normal !important;
    text-align: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    line-height: 1.3 !important;
  }

  /* 9. Pasek opcji arkusza */
  .sheet-options-box {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 14px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    box-sizing: border-box !important;
  }

  /* 10. Główna sekcja informacyjna i stopka */
  main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 2.5rem 1rem !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .apple-feature-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.25rem !important;
    box-sizing: border-box !important;
  }

  footer {
    width: 100% !important;
    max-width: 100% !important;
    padding: 2rem 1rem !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
}

/* ==========================================================================
   NOWY INTERFEJS: MENU JĘZYKÓW, SELEKTOR ROZMIARÓW I DOKUMENTÓW (Z KOTKIEM)
   ORAZ SEKCJE PORADNIKÓW I SEO W STYLU PHOTOAID
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. NOWE ELEGANCKIE MENU JĘZYKOWE (DROPDOWN)
   -------------------------------------------------------------------------- */
.lang-dropdown-wrap {
  position: relative;
  display: inline-block;
  z-index: 60;
}

.lang-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.lang-dropdown-btn:hover {
  background: #ffffff;
  border-color: rgba(0, 113, 227, 0.35);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.12);
  transform: translateY(-1px);
}

.lang-dropdown-btn:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 2px;
}

.lang-current-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
}

.lang-chevron {
  width: 14px;
  height: 14px;
  color: #64748b;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-dropdown-wrap.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 280px;
  max-width: 90vw;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  box-shadow: 
    0 20px 40px -10px rgba(0, 0, 0, 0.14),
    0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease;
  pointer-events: none;
  z-index: 100;
}

.lang-dropdown-wrap.open .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-dropdown-header {
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 4px;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #334155;
  transition: all 0.15s ease;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.lang-option:hover {
  background: rgba(0, 113, 227, 0.06);
  color: #0071e3;
  transform: translateX(2px);
}

.lang-option.active {
  background: rgba(0, 113, 227, 0.09);
  color: #0071e3;
}

.lang-option-flag {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.lang-option-text {
  flex: 1 1 auto;
  text-align: left;
  min-width: 0;
}

.lang-option-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.25;
}

.lang-option.active .lang-option-name {
  color: #0071e3;
  font-weight: 700;
}

.lang-option-desc {
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.25;
  margin-top: 1px;
}

.lang-option.active .lang-option-desc {
  color: #2563eb;
  opacity: 0.85;
}

.lang-check {
  font-size: 0.85rem;
  color: #0071e3;
  font-weight: 800;
  margin-left: auto;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   2. SELEKTOR ROZMIARÓW I DOKUMENTÓW (DLA KAŻDEGO KRAJU + MOTYW KOTKA)
   -------------------------------------------------------------------------- */
.doc-selector-section {
  width: 100%;
  max-width: 980px;
  margin: 28px auto 36px;
  padding: 0 16px;
}

.doc-country-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.doc-country-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid transparent;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.doc-country-tab:hover {
  background: rgba(0, 113, 227, 0.08);
  color: #0071e3;
  transform: translateY(-1px);
}

.doc-country-tab.active {
  background: #0071e3;
  color: #ffffff;
  border-color: #005bb5;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.32);
}

/* Grid kart dokumentów */
.doc-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  width: 100%;
}

/* Karta pojedynczego formatu dokumentu */
.doc-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.07);
  border-radius: 20px;
  padding: 18px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: 
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.22s ease;
  user-select: none;
}

/* Estetyczny efekt powiększenia i poświaty przy najechaniu */
.doc-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: #3b82f6;
  box-shadow: 
    0 20px 38px -10px rgba(0, 113, 227, 0.22),
    0 4px 12px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

/* Karta wybrana / aktywna */
.doc-card.selected {
  border-color: #0071e3;
  box-shadow: 
    0 0 0 2px #0071e3,
    0 16px 36px -8px rgba(0, 113, 227, 0.28);
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

.doc-card-badge-selected {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #0071e3;
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0, 113, 227, 0.35);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.doc-card.selected .doc-card-badge-selected {
  opacity: 1;
  transform: scale(1);
}

/* Nagłówek karty z ilustracją kotka i dokumentu */
.doc-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.doc-cat-thumb {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  background: #f8fafc;
}

.doc-card:hover .doc-cat-thumb {
  transform: rotate(-3deg) scale(1.08);
}

.doc-card-info {
  flex: 1;
  min-width: 0;
}

.doc-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 4px;
}

.doc-card-dim {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #0071e3;
  background: rgba(0, 113, 227, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
}

/* Wymóg biometryczny */
.doc-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  font-size: 0.74rem;
  color: #64748b;
}

.doc-card-ratio {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

/* Hover Preview: Wyświetlenie listy pasujących dokumentów w danym kraju */
.doc-matches-preview {
  margin-top: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.doc-card:hover .doc-matches-preview {
  background: #eff6ff;
  border-color: rgba(0, 113, 227, 0.2);
}

.doc-matches-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #475569;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.doc-matches-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.doc-matches-item {
  font-size: 0.76rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}

.doc-matches-item .check {
  color: #10b981;
  font-size: 0.8rem;
  font-weight: bold;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   3. SEKCJA PORÓWNAŃ DO'S & DON'TS W STYLU PHOTOAID
   -------------------------------------------------------------------------- */
.photoaid-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.compare-card {
  border-radius: 20px;
  padding: 22px;
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.compare-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.compare-card--good {
  border-color: #86efac;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.compare-card--bad {
  border-color: #fca5a5;
  background: linear-gradient(180deg, #fef2f2 0%, #ffffff 100%);
}

.compare-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 14px;
}

.compare-badge--good {
  background: #dcfce7;
  color: #15803d;
}

.compare-badge--bad {
  background: #fee2e2;
  color: #b91c1c;
}

/* Spec table */
.photoaid-spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin: 24px 0;
  font-size: 0.88rem;
}

.photoaid-spec-table th {
  background: #f8fafc;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  color: #1e293b;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.photoaid-spec-table td {
  padding: 12px 16px;
  color: #334155;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.photoaid-spec-table tr:last-child td {
  border-bottom: none;
}

.photoaid-spec-table tr:nth-child(even) td {
  background: #fbfcfe;
}

/* Kotek asystent w poradnikach */
.cat-tip-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: 18px;
  padding: 18px 20px;
  margin: 24px 0;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.08);
}

.cat-tip-icon {
  flex-shrink: 0;
}

.cat-tip-content h2,
.cat-tip-content h3,
.cat-tip-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #92400e;
  margin: 0 0 4px 0;
}

.cat-tip-content p {
  font-size: 0.84rem;
  color: #78350f;
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   4. CZYSTY, ELEGANCKI SELEKTOR WYMIARÓW I DOKUMENTÓW (POD ZDJĘCIEM)
   ========================================================================== */
.clean-dim-picker {
  width: 100%;
  max-width: 580px;
  margin: 20px auto 0;
  text-align: center;
}

.clean-dim-picker-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.clean-dim-tiles {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Minimalistyczny kontener formatu na arkuszu 10x15 cm */
.sheet-format-box {
  width: 100%;
  max-width: 620px;
  margin: 0 auto 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sheet-format-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Minimalistyczne guziki rozmiaru (Apple style, bez emotek, bez krzykliwych kolorów) */
.clean-size-btns {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.clean-size-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.clean-size-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.clean-size-btn.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

.clean-size-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.clean-size-expand-btn:hover {
  border-color: #94a3b8;
  color: #0f172a;
  background: #f8fafc;
}

.clean-size-expand-btn.active {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

/* Rozwijana sekcja z dokumentami (minimalistyczna lista z kotko-dokumentami) */
.clean-dim-expand {
  margin-top: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.clean-dim-expand.hidden {
  display: none;
}

.clean-dim-expand-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 10px;
}

.clean-dim-expand-heading {
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: -0.01em;
}

.clean-dim-toggle-btn {
  background: transparent;
  border: none;
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.clean-dim-toggle-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.clean-dim-docs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clean-doc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.clean-doc-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.clean-doc-item.selected {
  background: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 0 0 1px #0f172a;
}

.clean-doc-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clean-doc-content {
  flex: 1;
  min-width: 0;
}

.clean-doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.clean-doc-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: #0f172a;
}

.clean-doc-matches-list {
  list-style: none;
  padding: 0;
  margin: 2px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
}

.clean-doc-matches-list li {
  font-size: 0.72rem;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.clean-doc-matches-list .dot {
  color: #94a3b8;
  font-weight: bold;
}

/* =========================================================================
   NOWOCZESNY SELEKTOR "RODZAJ DOKUMENTU" (Z KOTKAMI I FORMATAMI)
   ========================================================================= */
.clean-doc-selector-card {
  width: 100%;
  max-width: 540px;
  margin: 12px auto 0 auto;
  text-align: left;
}

.clean-doc-selector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  padding: 0 4px;
}

.clean-doc-selector-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.clean-doc-selector-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 9999px;
  padding: 2px 8px;
}

/* Przycisk Trigger wyboru dokumentu (spoczynkowy) */
.clean-doc-trigger-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 10px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.clean-doc-trigger-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.clean-doc-trigger-btn.open {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.clean-doc-trigger-thumb {
  width: 48px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.clean-doc-trigger-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.clean-doc-trigger-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.clean-doc-trigger-meta {
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clean-doc-trigger-arrow {
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.clean-doc-trigger-btn.open .clean-doc-trigger-arrow {
  transform: rotate(180deg);
  color: #0284c7;
}

/* Rozwijana lista dokumentów */
.clean-doc-dropdown-panel {
  margin-top: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  animation: docFadeIn 0.2s ease-out;
}

@keyframes docFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.clean-doc-dropdown-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 10px 6px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 8px;
}

.clean-doc-dropdown-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}

.clean-doc-dropdown-close {
  background: transparent;
  border: none;
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 6px;
}

.clean-doc-dropdown-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.clean-doc-dropdown-items {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 146px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.clean-doc-dropdown-items::-webkit-scrollbar {
  width: 5px;
}

.clean-doc-dropdown-items::-webkit-scrollbar-track {
  background: transparent;
}

.clean-doc-dropdown-items::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.clean-doc-dropdown-items::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Pojedynczy wiersz dokumentu */
.clean-doc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.16s ease;
  text-align: left;
}

.clean-doc-row:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.clean-doc-row.selected {
  background: #f0f9ff;
  border-color: #38bdf8;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.08);
}

.clean-doc-row-thumb {
  width: 54px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.clean-doc-row-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.clean-doc-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.clean-doc-row-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
}

.clean-doc-row-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: #0369a1;
  background: #e0f2fe;
  padding: 1px 7px;
  border-radius: 9999px;
  white-space: nowrap;
}

.clean-doc-row-specs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.clean-spec-pill {
  font-size: 0.68rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
}

.clean-spec-text {
  font-size: 0.68rem;
  color: #94a3b8;
}

.clean-doc-row-matches {
  font-size: 0.7rem;
  color: #64748b;
  line-height: 1.3;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clean-doc-row-action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clean-doc-active-check {
  color: #0284c7;
  font-weight: 800;
  font-size: 1.1rem;
}

.clean-doc-select-arrow {
  color: #cbd5e1;
  font-size: 0.95rem;
  transition: transform 0.15s ease, color 0.15s ease;
}

.clean-doc-row:hover .clean-doc-select-arrow {
  color: #0284c7;
  transform: translateX(2px);
}

/* ==========================================================================
   5. NOWOCZESNY DESIGN SUBSTRON (SUBPAGE DESIGN SYSTEM)
   ========================================================================== */

/* Nawigacja w nagłówku */
.subpage-nav-links {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .subpage-nav-links {
    display: flex;
  }
}

.subpage-nav-link {
  font-size: 0.84rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.subpage-nav-link:hover {
  color: #0071e3;
  background: rgba(0, 113, 227, 0.08);
}

.subpage-nav-link.active {
  color: #0071e3;
  background: rgba(0, 113, 227, 0.1);
  font-weight: 600;
}

/* Subpage Main Padding Guarantee (Clears 56px fixed header with breathing space) */
.apple-scrolly-body main {
  padding-top: 84px !important;
  padding-bottom: 4rem !important;
}

/* Breadcrumbs */
.subpage-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.subpage-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.subpage-breadcrumb a:hover {
  color: #0071e3;
}

.subpage-breadcrumb-sep {
  color: #cbd5e1;
  font-size: 0.75rem;
}

/* Hero Badge */
.subpage-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(0, 113, 227, 0.08);
  color: #0071e3;
  border: 1px solid rgba(0, 113, 227, 0.15);
  margin-bottom: 1rem;
}

.subpage-badge--emerald {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.2);
}

/* Stat Grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 2rem 0;
}

@media (min-width: 640px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.stat-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.stat-card-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0071e3;
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-card-label {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
  line-height: 1.3;
}

/* Subpage Card & Feature Box */
.subpage-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  margin-bottom: 1.5rem;
}

/* Compare Grid (DOs & DONTs) */
.compare-grid-clean {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 1.5rem 0;
}

@media (min-width: 640px) {
  .compare-grid-clean {
    grid-template-columns: 1fr 1fr;
  }
}

.compare-card-clean {
  border-radius: 18px;
  padding: 20px;
  border: 1px solid transparent;
}

.compare-card-clean--good {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.compare-card-clean--bad {
  background: #fef2f2;
  border-color: #fecaca;
}

.compare-card-clean-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.compare-card-clean--good .compare-card-clean-title {
  color: #166534;
}

.compare-card-clean--bad .compare-card-clean-title {
  color: #991b1b;
}

.compare-card-clean ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.85rem;
  line-height: 1.6;
}

.compare-card-clean--good ul {
  color: #15803d;
}

.compare-card-clean--bad ul {
  color: #b91c1c;
}

/* Call to Action Banner */
.cta-banner-subpage {
  background: linear-gradient(135deg, #0071e3 0%, #0056b3 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  margin: 3rem 0 1rem;
  box-shadow: 0 12px 32px rgba(0, 113, 227, 0.2);
}

.cta-banner-subpage h2,
.cta-banner-subpage h3 {
  color: #ffffff !important;
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  margin: 0 0 8px 0 !important;
}

.cta-banner-subpage p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.92rem !important;
  max-width: 480px;
  margin: 0 auto 20px auto !important;
  line-height: 1.5;
}

.cta-btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: #0071e3;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cta-btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  background: #f8fafc;
}

/* FAQ Filter & Category Pills */
.faq-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}

.faq-filter-pill {
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-filter-pill:hover,
.faq-filter-pill.active {
  background: #0071e3;
  color: #ffffff;
  border-color: #0071e3;
}




/* Fix FAQ accordion button focus & contrast */
.faq-toggle:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 2px;
}

/* ==========================================================================
   Modern Apple-Style Search Bar & Accordion Enhancement (FAQ)
   ========================================================================== */
.faq-search-wrapper {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.faq-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.09);
  border-radius: 9999px;
  padding: 6px 16px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-search-box:focus-within {
  border-color: #0071e3;
  box-shadow: 0 8px 30px -4px rgba(0, 113, 227, 0.2), 0 0 0 4px rgba(0, 113, 227, 0.12);
  transform: translateY(-1px);
}

.faq-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #0071e3;
  margin-right: 12px;
  flex-shrink: 0;
}

.faq-search-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  color: #1e293b;
  outline: none;
  padding: 8px 0;
  font-family: inherit;
}

.faq-search-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.faq-search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  color: #64748b;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  margin-left: 8px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.faq-search-clear.hidden {
  display: none !important;
}

.faq-toggle h2,
.faq-toggle h3 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  text-align: left;
}

.faq-search-clear:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* FAQ Accordion Item Active State */
.faq-accordion-item.open {
  border-color: rgba(0, 113, 227, 0.3);
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.06);
  background: #ffffff;
}

.faq-accordion-item.open .faq-toggle {
  color: #0071e3;
}

/* ==========================================================================
   NOWY DESIGN: DOODLES, TELEFONY JAKO PRZYCISKI, WYSZUKIWARKA
   ========================================================================== */
.doodle-bg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.doodle-shape {
  position: absolute;
  opacity: 0.92;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.03));
}

.doodle-top-left-yellow {
  top: 40px;
  left: 6%;
  transform: rotate(-10deg);
}

.doodle-top-right-red {
  top: 45px;
  right: 7%;
  transform: rotate(15deg);
}

.doodle-mid-left-teal {
  top: 250px;
  left: 4%;
  transform: rotate(-5deg);
}

.doodle-mid-right-purple {
  top: 310px;
  right: 6%;
  transform: rotate(10deg);
}

.doodle-bottom-left-blue {
  top: 590px;
  left: 5%;
  transform: rotate(8deg);
}

.doodle-bottom-right-cyan {
  top: 670px;
  right: 5%;
  transform: rotate(-15deg);
}

.doodle-mid-right-pink {
  top: 480px;
  right: 7%;
  transform: rotate(-8deg);
}

/* Phone Duo Stage */
.phones-duo-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.phones-interactive-container {
  transition: transform 0.25s ease;
}

.phones-interactive-container:hover {
  transform: translateY(-2px);
}

.phone-interactive-zone {
  z-index: 10;
  border: none;
  background: transparent;
}

.phone-callout-tag {
  position: relative;
  z-index: 25;
}

.callout-pill {
  white-space: nowrap;
}

@keyframes bounceXLeft {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

@keyframes bounceXRight {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-5px); }
}

.animate-bounce-x-left {
  animation: bounceXLeft 1.6s ease-in-out infinite;
}

.animate-bounce-x-right {
  animation: bounceXRight 1.6s ease-in-out infinite;
}

/* Search bar styling */
.search-capsule-wrap {
  border-radius: 9999px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
  background-color: #ffffff !important;
}

.search-capsule-wrap input {
  font-size: 14px !important;
}

.btn-search-black {
  border-radius: 9999px !important;
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* ==========================================================================
   Reference Inspiration Design (Inspiracja Bez nazwy.jpg)
   ========================================================================== */
.clean-stage-wrap {
  position: relative;
  background-color: #ffffff;
  overflow: hidden;
  width: 100%;
  max-width: 100% !important;
  padding: 1.75rem 0 4rem !important;
}

#stageUpload {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-bottom: 2rem;
}

/* ==========================================================================
   HERO STORY SHOWCASE (2-KOLUMNOWY SPLIT HERO WG "tak ma to wygladac.jpg")
   ========================================================================== */
.hero-story-showcase {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 2rem;
  padding: 0.5rem 24px 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

.xander-hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  align-items: end;
  gap: 12px;
  width: 100%;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 28px;
}

.xander-hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 28px 0 38px;
  position: relative;
  z-index: 2;
}

.xander-hero-title {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: clamp(2.15rem, 3.65vw, 3.15rem);
  font-weight: 800;
  color: #171717;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.xander-hero-desc {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.96rem;
  color: #4b5563;
  line-height: 1.65;
  max-width: 470px;
  margin: 0 0 28px;
}

.xander-hero-desc strong {
  color: #111827;
  font-weight: 700;
}

.xander-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 42px;
}

.xander-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 30px;
  border-radius: 9999px;
  background: #2563eb;
  color: #ffffff !important;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.24);
  transition: all 0.22s ease;
}

.xander-btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.32);
}

.xander-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 28px;
  border-radius: 9999px;
  background: #ffffff;
  color: #1f2937 !important;
  border: 1.3px solid #374151;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.22s ease;
}

.xander-btn-outline:hover {
  background: #f8fafc;
  border-color: #0f172a;
  transform: translateY(-2px);
}

.xander-hero-stats {
  display: flex;
  align-items: flex-start;
  gap: 38px;
  flex-wrap: wrap;
}

.xander-stat-item {
  display: flex;
  flex-direction: column;
}

.xander-stat-num {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.xander-stat-label {
  font-size: 0.76rem;
  color: #6b7280;
  line-height: 1.35;
}

.xander-hero-right {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  align-self: end;
  position: relative;
  z-index: 1;
}

.xander-hero-img {
  width: 108%;
  max-width: 760px;
  height: auto;
  display: block;
  background: transparent;
  margin-left: -8%;
  margin-bottom: -1px;
}

/* 3 Karty Kroków pod sekcją Hero */
.hero-story-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 1130px;
  margin: 0 auto;
  box-sizing: border-box;
  scroll-margin-top: 84px;
}

.hero-story-step-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px 20px 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.hero-story-step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.hero-story-step-card--orange {
  border-top: 3.5px solid #ff6a33;
}
.hero-story-step-card--teal {
  border-top: 3.5px solid #3ebfb0;
}
.hero-story-step-card--purple {
  border-top: 3.5px solid #b985f4;
}

.hero-story-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.hero-story-step-num {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  color: #ffffff;
  flex-shrink: 0;
}

.hero-story-step-num--orange {
  background: #ff6a33;
  box-shadow: 0 4px 10px rgba(255, 106, 51, 0.28);
}
.hero-story-step-num--teal {
  background: #3ebfb0;
  box-shadow: 0 4px 10px rgba(62, 191, 176, 0.28);
}
.hero-story-step-num--purple {
  background: #b985f4;
  box-shadow: 0 4px 10px rgba(185, 133, 244, 0.28);
}

.hero-story-step-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 3px 9px;
  border-radius: 9999px;
  white-space: nowrap;
}

.hero-story-step-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.hero-story-step-desc {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

.hero-story-connector {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-story-scroll-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 9999px;
  background: #0f172a;
  color: #ffffff !important;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
  transition: all 0.22s ease;
}

.hero-story-scroll-pill:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.22);
}

.creator-playground-wrap {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 110px;
  scroll-margin-top: 72px;
}

.creator-playground-wrap .blob-tr-orange {
  top: 12px;
}

.creator-playground-wrap .blob-tr-teal {
  top: 155px;
}

@media (max-width: 860px) {
  .xander-hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 22px;
  }
  .xander-hero-left {
    align-items: center;
    text-align: center;
    padding: 8px 0 12px;
  }
  .xander-hero-desc {
    margin: 0 auto 22px;
  }
  .xander-hero-actions {
    justify-content: center;
    margin-bottom: 28px;
  }
  .xander-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    text-align: center;
  }
  .xander-stat-num {
    font-size: 1.35rem;
  }
  .xander-hero-img {
    width: 100%;
    margin-left: 0;
  }
  .xander-stat-item {
    align-items: center;
  }
  .hero-story-steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 520px;
  }
}

/* Background Blobs Layer */
.hero-blobs-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 980px;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.blob-tr-orange {
  position: absolute;
  top: -55px;
  right: calc(50% - 500px);
  width: 275px;
  height: auto;
  pointer-events: none;
  z-index: 1;
}

.blob-tr-teal {
  position: absolute;
  top: 110px;
  right: calc(50% - 370px);
  width: 66px;
  height: auto;
  pointer-events: none;
  z-index: 2;
}

.blob-ml-teal {
  position: absolute;
  top: 220px;
  left: calc(50% - 470px);
  width: 250px;
  height: auto;
  pointer-events: none;
  z-index: 1;
}

.bean-ml {
  position: absolute;
  top: 235px;
  left: calc(50% - 440px);
  width: 82px;
  height: auto;
  pointer-events: none;
  z-index: 3;
  transform: rotate(-32deg);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.1));
}

.blob-mr-purple {
  position: absolute;
  top: 310px;
  right: calc(50% - 440px);
  width: 195px;
  height: auto;
  pointer-events: none;
  z-index: 1;
}

.blob-bl-orange {
  position: absolute;
  top: 550px;
  left: calc(50% - 480px);
  width: 255px;
  height: auto;
  pointer-events: none;
  z-index: 1;
}

.bean-bl {
  position: absolute;
  top: 565px;
  left: calc(50% - 375px);
  width: 72px;
  height: auto;
  pointer-events: none;
  z-index: 3;
  transform: rotate(26deg);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.1));
}

.blob-br-purple {
  position: absolute;
  top: 710px;
  right: calc(50% - 440px);
  width: 155px;
  height: auto;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 768px) {
  .clean-stage-wrap {
    padding: 4.5rem 0 3.5rem !important;
  }
  .blob-tr-orange {
    top: -50px;
    right: -75px;
    width: 110px;
    opacity: 0.8;
  }
  .blob-tr-teal {
    top: 55px;
    right: 10px;
    width: 32px;
  }
  .blob-ml-teal {
    top: 240px;
    left: -50px;
    width: 140px;
  }
  .bean-ml {
    top: 250px;
    left: 5px;
    width: 52px;
  }
  .blob-mr-purple {
    top: 490px;
    right: -40px;
    width: 110px;
  }
  .blob-bl-orange {
    top: 770px;
    left: -50px;
    width: 150px;
  }
  .bean-bl {
    top: 790px;
    left: 15px;
    width: 46px;
  }
  .blob-br-purple {
    top: 1000px;
    right: -30px;
    width: 95px;
  }
}

/* Header Text */
.hero-title-text {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  color: #111827;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.hero-subtitle-text {
  font-size: 15.5px;
  font-weight: 400;
  color: #4b5563;
  line-height: 1.5;
  max-width: 420px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .hero-title-text {
    font-size: 28px;
  }
  .hero-subtitle-text {
    font-size: 14px;
  }
}

/* Search Capsule */
.hero-search-capsule-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 24px auto 30px;
  z-index: 30;
}

/* Carousel wrapper */
.hero-doc-carousel-wrapper {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 0;
  pointer-events: none;
  transition: max-height 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.28s ease,
              margin 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 25;
}

.hero-doc-carousel-wrapper.open {
  max-height: 420px;
  opacity: 1;
  margin-top: 10px;
  margin-bottom: 30px;
  pointer-events: auto;
}

.hero-doc-carousel-inner {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 46px;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .hero-doc-carousel-inner {
    padding: 8px 10px;
  }
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 35;
  transition: all 0.2s ease;
  color: #1e293b;
}

.carousel-nav-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transform: translateY(-50%) scale(1.08);
}

.carousel-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-prev-btn {
  left: 4px;
}

.carousel-next-btn {
  right: 4px;
}

.hero-doc-cards-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.hero-doc-card {
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 16px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              box-shadow 0.3s ease;
  box-sizing: border-box;
  flex-shrink: 0;
  text-decoration: none;
}

.hero-doc-card.side {
  width: 215px;
  height: 245px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  opacity: 0.72;
  transform: scale(0.93);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
  cursor: pointer;
}

.hero-doc-card.side:hover {
  opacity: 0.92;
  transform: scale(0.96);
  border-color: #cbd5e1;
}

.hero-doc-card.center {
  width: 250px;
  height: 270px;
  background: #ffffff;
  border: 1.5px solid rgba(203, 213, 225, 0.85);
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.1), 0 6px 12px -4px rgba(0, 0, 0, 0.04);
  cursor: pointer;
}

.hero-doc-card.center:hover {
  border-color: #2563eb;
  box-shadow: 0 20px 40px -8px rgba(37, 99, 235, 0.16), 0 6px 14px -4px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.hero-doc-card.center:hover .hero-doc-card-btn {
  background: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.hero-doc-card.side .hero-doc-card-btn {
  background: #f1f5f9;
  color: #475569;
  box-shadow: none;
}

.hero-doc-card.side:hover .hero-doc-card-btn {
  background: #e2e8f0;
  color: #0f172a;
}

.hero-doc-card-thumb {
  width: 100%;
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-doc-card.center .hero-doc-card-thumb {
  height: 115px;
}

.hero-doc-card-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
  transition: transform 0.3s ease;
}

.hero-doc-card:hover .hero-doc-card-thumb img {
  transform: scale(1.04);
}

.hero-doc-card-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 800;
  font-size: 14.5px;
  color: #0f172a;
  text-align: center;
  margin: 6px 0 10px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-doc-card.center .hero-doc-card-title {
  font-size: 16px;
  color: #090d16;
}

.hero-doc-card-btn {
  width: 100%;
  padding: 8px 16px;
  border-radius: 9999px;
  background: #0f172a;
  color: #ffffff;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.hero-doc-card-btn:hover {
  background: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .hero-doc-cards-track {
    gap: 10px;
  }
  .hero-doc-card.side {
    width: 85px;
    height: 190px;
    padding: 10px 4px;
    opacity: 0.45;
    transform: scale(0.86);
    justify-content: center;
  }
  .hero-doc-card.side .hero-doc-card-title,
  .hero-doc-card.side .hero-doc-card-btn {
    display: none;
  }
  .hero-doc-card.side .hero-doc-card-thumb {
    height: 100%;
    margin-bottom: 0;
  }
  .hero-doc-card.center {
    width: 225px;
    height: 250px;
    padding: 14px 12px 12px;
  }
  .hero-doc-card.center .hero-doc-card-thumb {
    height: 105px;
  }
  .hero-doc-card.center .hero-doc-card-title {
    font-size: 14.5px;
  }
  .hero-doc-card.center .hero-doc-card-btn {
    padding: 8px 14px;
    font-size: 12.5px;
  }
  .carousel-nav-btn {
    width: 36px;
    height: 36px;
  }
  .carousel-prev-btn {
    left: 2px;
  }
  .carousel-next-btn {
    right: 2px;
  }
}

.hero-search-capsule {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 9999px;
  height: 48px;
  padding: 4px 5px 4px 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-search-capsule:focus-within {
  border-color: #94a3b8;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.hero-search-capsule.search-capsule-selected {
  border-color: #10b981;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.14);
}

.hero-search-capsule.search-capsule-selected .hero-search-lupka {
  color: #10b981 !important;
}

.hero-search-capsule.search-capsule-error {
  border-color: #ef4444 !important;
  background: #fff5f5;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18), 0 8px 24px rgba(239, 68, 68, 0.16) !important;
  animation: searchCapsuleShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.hero-search-capsule.search-capsule-error .hero-search-lupka {
  color: #dc2626 !important;
  transform: scale(1.22);
  filter: drop-shadow(0 0 6px rgba(220, 38, 38, 0.45));
  transition: all 0.2s ease;
}

.hero-search-capsule.search-capsule-error input::placeholder {
  color: #dc2626;
  font-weight: 600;
}

@keyframes searchCapsuleShake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

.doc-required-alert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 16px;
  border-radius: 9999px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
  animation: alertSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.doc-required-alert.hidden {
  display: none !important;
}

@keyframes alertSlideIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-search-capsule input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 13.5px;
  color: #1e293b;
  font-family: inherit;
  padding: 0 8px;
}

.hero-search-capsule input::placeholder {
  color: #94a3b8;
}

.hero-search-btn {
  background-color: #0f172a;
  color: #ffffff;
  border: none;
  outline: none;
  border-radius: 9999px;
  height: 38px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.hero-search-btn:hover {
  background-color: #1e293b;
}

/* Hero Cards */
.hero-cards-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.hero-card-left {
  width: 255px;
  max-width: 100%;
  position: relative;
  cursor: pointer;
  border-radius: 28px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  will-change: transform;
}

.hero-card-right {
  width: 255px;
  max-width: 100%;
  position: relative;
  cursor: pointer;
  border-radius: 28px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  will-change: transform;
}

@media (min-width: 640px) {
  .hero-card-left {
    transform: rotate(-4.5deg);
  }
  .hero-card-left:hover {
    transform: rotate(0deg) scale(1.03) !important;
    z-index: 25;
  }
  .hero-card-right {
    transform: rotate(4.5deg) translateY(16px);
  }
  .hero-card-right:hover {
    transform: rotate(0deg) translateY(0px) scale(1.03) !important;
    z-index: 25;
  }
}

@media (max-width: 639px) {
  .hero-cards-container {
    flex-direction: column;
    gap: 20px;
  }
  .hero-card-left,
  .hero-card-right {
    width: 275px;
    transform: none !important;
  }
  .hero-card-left:hover,
  .hero-card-right:hover {
    transform: scale(1.02) !important;
  }
}

.hero-card-left img,
.hero-card-right img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.4s ease;
}

.hero-card-left:hover img,
.hero-card-right:hover img {
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Rossmann Section */
.hero-rossmann-block {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 520px;
  margin: 44px auto 8px;
  text-align: center;
}

.hero-rossmann-title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 27px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 28px;
}

@media (min-width: 640px) {
  .hero-rossmann-title {
    font-size: 30px;
  }
}

.hero-rossmann-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 440px;
  margin: 0 auto;
}

.hero-rossmann-step {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-rossmann-badge {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: transform 0.25s ease;
}

.hero-rossmann-step:hover .hero-rossmann-badge {
  transform: scale(1.1);
}

.hero-rossmann-text {
  font-size: 12.5px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
  text-align: center;
}

/* ==========================================================================
   Photo Editor Stage (Inspiracja Gemini_Generated_Image_ek2yczek2yczek2y.jpg)
   ========================================================================== */
.editor-title-text {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  color: #111827;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

@media (min-width: 640px) {
  .editor-title-text {
    font-size: 38px;
  }
}

.editor-stage-layout {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.35s ease;
}

@media (min-width: 768px) {
  .editor-stage-layout.has-compliance {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 36px;
  }
}

.editor-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Photo Frame Card */
.editor-photo-frame-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 14px;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease;
  margin-bottom: 20px;
}

.editor-canvas-wrapper {
  position: relative;
  width: 270px;
  height: 347px;
  border-radius: 20px;
  overflow: hidden;
  background-color: #f8fafc;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.editor-canvas-wrapper:active {
  cursor: grabbing;
}

.editor-photo-canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Biometric SVG Guide Overlay */
.biometric-guide-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

/* Quick Tool Buttons */
.editor-tools-row-1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  width: 100%;
}

.editor-tools-row-2 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 8px;
}

.editor-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.editor-pill-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.editor-pill-btn:active {
  transform: scale(0.97);
}

.editor-pill-btn.active {
  background: #ffffff;
  border-color: #e5e7eb;
  color: #111827;
}

.editor-pill-btn--scan {
  border-radius: 20px;
  padding: 11px 24px;
}

/* Compliance Card (Ocena zgodności zdjęcia) */
.compliance-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 26px 24px;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
  width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.35s ease;
  margin-top: 14px;
}

@media (min-width: 768px) {
  .compliance-card {
    margin-top: 40px;
  }
}

.compliance-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
  margin-bottom: 14px;
}

.compliance-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  transition: all 0.2s;
}

.compliance-badge.pass {
  background-color: #27ae60;
  color: #ffffff;
}

.compliance-badge.warn {
  background-color: #f59e0b;
  color: #ffffff;
}

.compliance-checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}

.compliance-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  text-align: left;
}

.compliance-check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.compliance-item.pass .compliance-check-icon {
  background-color: #10b981;
  color: #ffffff;
}

.compliance-item.warn .compliance-check-icon {
  background-color: #f59e0b;
  color: #ffffff;
}

.compliance-tips {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  font-size: 11.5px;
  color: #64748b;
  text-align: left;
  line-height: 1.4;
  width: 100%;
}

/* Bottom Actions */
.editor-main-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
  position: relative;
  z-index: 10;
}

.editor-btn-black {
  background-color: #111827;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}

.editor-btn-black:hover {
  background-color: #27272a;
  transform: translateY(-1px);
}

.editor-btn-navy {
  background-color: #1e293b;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}

.editor-btn-navy:hover {
  background-color: #334155;
  transform: translateY(-1px);
}

.editor-btn-back {
  background: transparent;
  border: none;
  color: #4b5563;
  font-size: 13px;
  font-weight: 500;
  margin-top: 16px;
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
  z-index: 10;
}

.editor-btn-back:hover {
  color: #111827;
  text-decoration: underline;
}

/* ==========================================================================
   AI Background Removal Loader (ISNet Alpha Matting)
   ========================================================================== */
.bg-removal-loader {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.84);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bg-removal-loader.hidden {
  display: none !important;
}

.bg-removal-card {
  width: 100%;
  max-width: 232px;
  background: #ffffff;
  border-radius: 20px;
  padding: 22px 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.bg-removal-spinner-ring {
  position: relative;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}

.bg-removal-spinner-svg {
  width: 100%;
  height: 100%;
  animation: bgSpinRotate 1.4s linear infinite;
}

.bg-removal-spinner-bg {
  stroke: #e2e8f0;
}

.bg-removal-spinner-path {
  stroke: #10b981;
  stroke-linecap: round;
  stroke-dasharray: 90, 150;
  stroke-dashoffset: 0;
  animation: bgSpinDash 1.4s ease-in-out infinite;
}

.bg-removal-sparkle {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  animation: bgSparklePulse 1.2s ease-in-out infinite alternate;
}

@keyframes bgSpinRotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes bgSpinDash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

@keyframes bgSparklePulse {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.bg-removal-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.bg-removal-status {
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 12px;
  min-height: 16px;
  line-height: 1.35;
}

.bg-removal-progress-track {
  width: 100%;
  height: 6px;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.bg-removal-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #06b6d4 100%);
  border-radius: 9999px;
  transition: width 0.25s ease;
}

.bg-removal-meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.bg-removal-percent {
  color: #0f172a;
  font-weight: 700;
}

.bg-removal-badge {
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 9.5px;
  color: #475569;
}

/* =========================================================================
   DEDYKOWANY PEŁNOEKRANOWY WYBÓR DOKUMENTÓW NA MOBILE (MODAL & KARUZELA)
   ========================================================================= */
.mobile-doc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-sizing: border-box;
}

@media (min-width: 641px) {
  .mobile-doc-modal-overlay {
    align-items: center;
    padding: 20px;
  }
}

.mobile-doc-modal-overlay.hidden {
  display: none !important;
}

.mobile-doc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
}

.mobile-doc-modal-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 28px 28px 0 0;
  padding: 14px 16px max(26px, env(safe-area-inset-bottom, 26px));
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.24);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 94dvh;
  overflow-y: auto;
  overflow-x: hidden;
  animation: mobileSheetUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: padding 0.2s ease, border-radius 0.2s ease;
}

html.no-anim .mobile-doc-modal-card,
body.no-anim .mobile-doc-modal-card {
  animation: none !important;
  transform: translateY(0) !important;
  opacity: 1 !important;
}

@media (min-width: 641px) {
  .mobile-doc-modal-card {
    border-radius: 28px;
    padding: 22px 24px 30px;
  }
}

@keyframes mobileSheetUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.mobile-doc-modal-handle {
  width: 40px;
  height: 5px;
  border-radius: 9999px;
  background: #cbd5e1;
  margin: 2px auto 12px;
  flex-shrink: 0;
}

@media (min-width: 641px) {
  .mobile-doc-modal-handle {
    display: none;
  }
}

.mobile-doc-modal-header {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
  box-sizing: border-box;
  gap: 12px;
}

.mobile-doc-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  letter-spacing: -0.015em;
}

.mobile-doc-modal-subtitle {
  font-size: 0.8rem;
  color: #64748b;
  margin: 3px 0 0;
  line-height: 1.35;
}

.mobile-doc-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  border: none;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.mobile-doc-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.mobile-doc-search-capsule {
  width: 100%;
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  height: 46px;
  padding: 0 14px;
  box-sizing: border-box;
  margin-bottom: 14px;
  transition: all 0.2s ease;
}

.mobile-doc-search-capsule:focus-within {
  background: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.mobile-doc-search-capsule input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px !important; /* 16px zapobiega auto-zoomowi w iOS/Android */
  color: #0f172a;
  font-family: inherit;
  font-weight: 600;
  padding: 0 4px;
}

.mobile-doc-search-capsule input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.mobile-doc-search-clear {
  background: none;
  border: none;
  font-size: 18px;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.mobile-doc-search-clear:hover {
  color: #475569;
}

.mobile-doc-carousel-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  box-sizing: border-box;
  min-height: 250px;
  touch-action: pan-y;
}

.mobile-doc-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
  flex-wrap: wrap;
  max-width: 280px;
}

.mobile-doc-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: all 0.2s ease;
  cursor: pointer;
}

.mobile-doc-dots .dot.active {
  width: 18px;
  border-radius: 9999px;
  background: #0f172a;
}

/* =========================================================================
   TRYB WYKRYTEJ KLAWIATURY NA TELEFONIE (KOMPAKTOWY UKŁAD)
   Zapobiega zasłonięciu lupki i miniatur przez klawiaturę telefonu
   ========================================================================= */
.mobile-doc-modal-card.keyboard-open {
  padding: 8px 14px 12px !important;
  border-radius: 18px 18px 0 0 !important;
  max-height: 100% !important;
  justify-content: flex-start !important;
}

.mobile-doc-modal-card.keyboard-open .mobile-doc-modal-handle {
  display: none !important;
}

.mobile-doc-modal-card.keyboard-open .mobile-doc-modal-header {
  margin-bottom: 6px !important;
}

.mobile-doc-modal-card.keyboard-open .mobile-doc-modal-title {
  font-size: 0.95rem !important;
}

.mobile-doc-modal-card.keyboard-open .mobile-doc-modal-subtitle {
  display: none !important;
}

.mobile-doc-modal-card.keyboard-open .mobile-doc-modal-close {
  width: 28px !important;
  height: 28px !important;
  font-size: 1.1rem !important;
}

.mobile-doc-modal-card.keyboard-open .mobile-doc-search-capsule {
  height: 38px !important;
  margin-bottom: 6px !important;
  padding: 0 10px !important;
}

.mobile-doc-modal-card.keyboard-open .mobile-doc-carousel-wrap {
  min-height: 165px !important;
  padding: 2px 0 !important;
  margin: 0 !important;
}

.mobile-doc-modal-card.keyboard-open .hero-doc-card.center {
  width: 175px !important;
  height: 165px !important;
  padding: 8px 8px 8px !important;
  border-radius: 16px !important;
}

.mobile-doc-modal-card.keyboard-open .hero-doc-card.center .hero-doc-card-thumb {
  height: 70px !important;
}

.mobile-doc-modal-card.keyboard-open .hero-doc-card.center .hero-doc-card-title {
  font-size: 12.5px !important;
  margin: 3px 0 5px !important;
  min-height: 24px !important;
}

.mobile-doc-modal-card.keyboard-open .hero-doc-card.center .hero-doc-card-btn {
  padding: 5px 10px !important;
  font-size: 11.5px !important;
}

.mobile-doc-modal-card.keyboard-open .hero-doc-card.side {
  width: 55px !important;
  height: 130px !important;
  padding: 4px 2px !important;
  border-radius: 12px !important;
}

.mobile-doc-modal-card.keyboard-open .carousel-nav-btn {
  width: 32px !important;
  height: 32px !important;
}

.mobile-doc-modal-card.keyboard-open .mobile-doc-dots {
  display: none !important;
}

/* Zapobieganie auto-zoomowi na Safari/Chrome mobile */
@media (max-width: 768px) {
  #heroDocSearchInput {
    font-size: 16px !important;
  }
}

/* =========================================================================
   STAGE 3: ARKUSZ 10×15 CM — CTA POBIERANIA + WYSZUKIWARKA FOTOKIOSKÓW
   ========================================================================= */
.sheet-cta-wrapper {
  width: 100%;
  max-width: 540px;
  margin: 1.25rem auto 1rem;
  box-sizing: border-box;
}

.sheet-cta-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1.5px solid rgba(226, 232, 240, 0.95);
  padding: 20px 22px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}

.sheet-cta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sheet-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 4px 10px;
  border-radius: 9999px;
}

.sheet-cta-dpi {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.2px;
}

.sheet-cta-main-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #0f172a;
  color: #ffffff;
  border-radius: 18px;
  padding: 16px 20px;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  box-sizing: border-box;
}

.sheet-cta-main-btn:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.32);
}

.sheet-cta-main-btn:active {
  transform: translateY(0);
}

.sheet-cta-btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #38bdf8;
}

.sheet-cta-btn-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sheet-cta-btn-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.sheet-cta-btn-desc {
  font-size: 0.76rem;
  color: #94a3b8;
  line-height: 1.35;
}

.sheet-cta-btn-arrow {
  color: #94a3b8;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.sheet-cta-secondary-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f8fafc;
  border: 1.2px solid #e2e8f0;
  border-radius: 14px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.sheet-cta-secondary-btn:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#stageSheet .studio-layout {
  max-width: 680px;
}

/* =========================================================================
   STAGE 3: ARKUSZ 10×15 CM — CZYSTE ELEMENTY POD SZABLONEM
   ========================================================================= */
.sheet-kiosks-clean-wrap {
  width: 100%;
  max-width: 580px;
  margin: 1.5rem auto 0.75rem;
  box-sizing: border-box;
}

.sheet-kiosks-clean-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.sheet-kiosks-clean-desc {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0 auto 16px;
  max-width: 520px;
  line-height: 1.45;
}

.sheet-kiosks-btns-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.sheet-kiosk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: 9999px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.sheet-kiosk-btn:active {
  transform: translateY(0) scale(0.98);
}

/* 1. Rossmann: czerwone tło, zaoblone brzegi, biały napis */
.kiosk-btn-rossmann {
  background: #dc2626;
  color: #ffffff !important;
  border: 1.5px solid #dc2626;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.22);
}

.kiosk-btn-rossmann:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35);
}

/* 2. PhotoAiD: żółte tło, zaoblone brzegi, czarny napis */
.kiosk-btn-photoaid {
  background: #ffcc00;
  color: #000000 !important;
  border: 1.5px solid #ffcc00;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.22);
}

.kiosk-btn-photoaid:hover {
  background: #f5be00;
  border-color: #f5be00;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}

/* 3. dm: białe tło, zaoblone brzegi, napis kolorem dm */
.kiosk-btn-dm {
  background: #ffffff;
  color: #003087 !important;
  border: 1.5px solid #cbd5e1;
  font-style: italic;
  font-size: 17px;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.kiosk-btn-dm:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 48, 135, 0.14);
}

/* Box z linkami do wyszukiwarek fotokiosków w poradniku i FAQ */
.kiosk-finder-box {
  margin-top: 20px;
  padding: 20px 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  text-align: center;
  box-sizing: border-box;
}

.kiosk-finder-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  margin: 0 0 14px 0 !important;
  line-height: 1.5;
  display: block;
}

.kiosk-finder-box .sheet-kiosks-btns-row {
  gap: 14px;
  margin-top: 4px;
}

.blog-article-card {
  scroll-margin-top: 96px;
}

/* Duży, czysty guzik CTA do pobierania */
.sheet-download-cta-wrap {
  width: 100%;
  max-width: 480px;
  margin: 1.75rem auto 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.btn-clean-download {
  width: 100%;
  height: 56px;
  background: #0f172a;
  color: #ffffff;
  border-radius: 9999px;
  border: none;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.22);
  box-sizing: border-box;
}

.btn-clean-download:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.30);
}

.btn-clean-download:active {
  transform: translateY(0);
}

@media (max-width: 640px) {
  .sheet-kiosks-clean-title {
    font-size: 1.15rem;
  }
  .sheet-kiosks-clean-desc {
    font-size: 0.82rem;
    margin-bottom: 12px;
  }
  .sheet-kiosks-btns-row {
    gap: 8px;
  }
  .sheet-kiosk-btn {
    flex: 1 1 calc(33.333% - 8px);
    min-width: 90px;
    padding: 0 12px;
    height: 44px;
    font-size: 14px;
  }
  .kiosk-btn-dm {
    font-size: 16px;
  }
  .btn-clean-download {
    height: 52px;
    font-size: 0.95rem;
  }
}

/* =========================================================================
   UNIVERSAL MODERN SITE FOOTER (ODWZOROWANIE DESIGNU REFERENCYJNEGO)
   ========================================================================= */
.site-footer-modern {
  width: 100% !important;
  border-top: 1px solid rgba(226, 232, 240, 0.85) !important;
  background-color: transparent !important;
  padding: 44px 16px 36px !important;
  color: #64748b !important;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  box-sizing: border-box !important;
}

.site-footer-container {
  max-width: 1024px !important;
  margin: 0 auto !important;
  padding: 0 8px !important;
  box-sizing: border-box !important;
}

.site-footer-top {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  margin-bottom: 26px !important;
}

@media (min-width: 768px) {
  .site-footer-top {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
  }
}

.site-footer-brand {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.site-footer-logo-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  color: #0f172a !important;
  transition: opacity 0.15s ease !important;
}

.site-footer-logo-link:hover {
  opacity: 0.85 !important;
}

.site-footer-logo-svg {
  width: 30px !important;
  height: 22px !important;
  fill: #0f172a !important;
  flex-shrink: 0 !important;
}

.site-footer-brand-name {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  color: #0f172a !important;
}

.site-footer-brand-desc {
  font-size: 0.82rem !important;
  line-height: 1.45 !important;
  color: #64748b !important;
  margin: 0 !important;
}

.site-footer-links-col {
  text-align: left !important;
}

@media (min-width: 768px) {
  .site-footer-links-col {
    text-align: right !important;
    max-width: 580px !important;
  }
}

.site-footer-links-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px 8px !important;
  font-size: 0.82rem !important;
  line-height: 1.6 !important;
}

@media (min-width: 768px) {
  .site-footer-links-row {
    justify-content: flex-end !important;
  }
}

.site-footer-link {
  color: #334155 !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

.site-footer-link:hover {
  color: #0f172a !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

.site-footer-bullet {
  color: #94a3b8 !important;
  user-select: none !important;
  font-size: 0.75rem !important;
}

.site-footer-disclaimer-box {
  background-color: #f1f5f9 !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 14px !important;
  padding: 16px 20px !important;
  margin-bottom: 28px !important;
  text-align: left !important;
  font-size: 0.735rem !important;
  line-height: 1.6 !important;
  color: #475569 !important;
}

.site-footer-disclaimer-box strong {
  color: #1e293b !important;
  font-weight: 600 !important;
}

.site-footer-bottom {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px 10px !important;
  font-size: 0.76rem !important;
  color: #64748b !important;
  text-align: center !important;
}

.site-footer-bottom-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  color: #475569 !important;
}

.site-footer-lock-icon {
  width: 14px !important;
  height: 14px !important;
  fill: #64748b !important;
  vertical-align: -1px !important;
  display: inline-block !important;
}

/* =========================================================================
   6. ROZBUDOWANY SYSTEM NAWIGACJI GÓRNEJ + MINI-BLOG & CENTRUM WIEDZY SEO
   ========================================================================= */

/* Nawigacja górna widoczna na każdej stronie (w tym mobile scroll bar) */
.apple-nav-fixed {
  height: auto !important;
  min-height: 60px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
  z-index: 100 !important;
}

.apple-nav-inner {
  max-width: 1120px !important;
  margin: 0 auto !important;
  padding: 0 16px !important;
  height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.subpage-nav-links {
  display: none !important;
  align-items: center !important;
  gap: 4px !important;
  background: #f1f5f9 !important;
  padding: 4px !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
}

@media (min-width: 860px) {
  .subpage-nav-links {
    display: inline-flex !important;
  }
}

.subpage-nav-link {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #475569 !important;
  text-decoration: none !important;
  padding: 6px 14px !important;
  border-radius: 9999px !important;
  transition: all 0.18s ease !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.subpage-nav-link:hover {
  color: #0f172a !important;
  background: rgba(255, 255, 255, 0.6) !important;
}

.subpage-nav-link.active {
  color: #0071e3 !important;
  background: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

/* Pasek zakładek na telefonach (poniżej głównego wiersza headera) */
.mobile-top-tabs {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  overflow-x: auto !important;
  padding: 6px 16px 8px !important;
  border-top: 1px solid rgba(241, 245, 249, 0.9) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
}

.mobile-top-tabs::-webkit-scrollbar {
  display: none !important;
}

@media (min-width: 860px) {
  .mobile-top-tabs {
    display: none !important;
  }
}

.mobile-top-tab {
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  color: #475569 !important;
  background: #f1f5f9 !important;
  padding: 5px 12px !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.mobile-top-tab.active {
  background: #0071e3 !important;
  color: #ffffff !important;
}

/* Odstęp od paska nawigacyjnego na podstronach i stronie głównej */
.apple-scrolly-body main {
  padding-top: 108px !important;
  padding-bottom: 4rem !important;
}

.clean-stage-wrap {
  padding-top: 72px !important;
}

@media (max-width: 859px) {
  .apple-scrolly-body main {
    padding-top: 118px !important;
  }
  .clean-stage-wrap {
    padding-top: 106px !important;
  }
}

@media (max-width: 640px) {
  .blog-meta-bar {
    border-radius: 18px !important;
    padding: 10px 14px !important;
  }
}

/* Naprawa klas compare-good i compare-bad */
.compare-good,
.compare-card-clean--good {
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
}

.compare-bad,
.compare-card-clean--bad {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
}

/* Editorial Blog Header & Meta Bar */
.blog-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 20px;
  padding: 12px 20px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 9999px;
  display: inline-flex;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  font-size: 0.78rem;
  color: #475569;
}

.blog-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

/* Spis treści (Table of Contents) */
.blog-toc-box {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid #dbeafe;
  border-radius: 22px;
  padding: 24px 28px;
  margin-bottom: 36px;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.04);
}

.blog-toc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

@media (min-width: 640px) {
  .blog-toc-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.blog-toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid rgba(219, 234, 254, 0.9);
  border-radius: 12px;
  text-decoration: none;
  color: #1e293b;
  font-size: 0.83rem;
  font-weight: 600;
  transition: all 0.18s ease;
}

.blog-toc-link:hover {
  border-color: #3b82f6;
  color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.blog-toc-num {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Karty rozdziałów blogowych */
.blog-article-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  padding: 28px 24px;
  margin-bottom: 32px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.03);
}

@media (min-width: 640px) {
  .blog-article-card {
    padding: 36px 36px;
  }
}

/* Kontener na infografiki i ilustracje SVG */
.blog-infographic-box {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px 20px;
  margin: 24px 0;
  overflow: hidden;
}

.blog-infographic-caption {
  font-size: 0.76rem;
  color: #64748b;
  text-align: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #cbd5e1;
}

/* Ramki eksperckie (Callouts) */
.blog-callout {
  border-radius: 16px;
  padding: 18px 22px;
  margin: 20px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.blog-callout--law {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #4c1d95;
}

.blog-callout--expert {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
}

.blog-callout--tip {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.blog-callout--warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #78350f;
}

/* Siatka 6 kart Pozy Biometrycznych (DOs & DONTs z grafikami SVG) */
.pose-visual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 24px 0;
}

@media (min-width: 640px) {
  .pose-visual-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .pose-visual-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pose-visual-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Tabela porównawcza 3 opcji */
.comparison-3col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 24px 0;
}

@media (min-width: 768px) {
  .comparison-3col-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.comparison-col-card {
  border-radius: 20px;
  padding: 24px 20px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.comparison-col-card--highlight {
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  border: 2px solid #2563eb;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
  position: relative;
}

/* ==========================================================================
   6. TYPOGRAFIA I SEPARACJA TEKSTU NA PODSTRONACH (PROSE-LEGAL & BLOG CARDS)
   ========================================================================== */
.prose-legal p + p,
.blog-article-card > p + p {
  margin-top: 1rem;
}

.prose-legal h2,
.blog-article-card > h2 {
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.prose-legal h3,
.blog-article-card > h3 {
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.blog-article-card ul,
.blog-article-card ol {
  line-height: 1.65;
}

/* Odstęp od paska nawigacyjnego bez nadmiarowego breadcrumb */
.apple-scrolly-body main {
  padding-top: 96px !important;
  padding-bottom: 4.5rem !important;
}

@media (max-width: 859px) {
  .apple-scrolly-body main {
    padding-top: 112px !important;
  }
}

/* --------------------------------------------------------------------------
   Odstęp i wyrównanie 3 kart informacyjnych pod przekrzywionymi kartami
   -------------------------------------------------------------------------- */
.creator-playground-wrap {
  padding-bottom: 60px !important;
}

.landing-info-section {
  padding-top: 50px !important;
  position: relative;
  z-index: 20;
}

.apple-feature-card.text-left {
  text-align: left !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.apple-feature-card.text-left .feature-card-header {
  width: 100%;
}

.apple-feature-card.text-left h3,
.apple-feature-card.text-left p {
  text-align: left !important;
}






