*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

button, label, .qr-tab, .format-option, .type-option, .transit-option,
.color-swatch, .step-header, .btn-download, .btn-reset,
.badge, .step-badge, .step-number, .crop-page-btn {
  -webkit-user-select: none;
  user-select: none;
}

:root {
  --bg: #000000;
  --surface: #1c1c1e;
  --surface-alt: #2c2c2e;
  --border: rgba(255,255,255,0.1);
  --text: #f5f5f7;
  --muted: #86868b;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --green: #30d158;
  --red: #ff453a;
  --radius: 16px;
  /* WebGL Gradient colors */
  --gradient-color-1: #0a1628;
  --gradient-color-2: #1e46b4;
  --gradient-color-3: #502896;
  --gradient-color-4: #0071e3;
}

#gradient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.3;
  mix-blend-mode: screen;
  --gradient-color-1: #050d1a;
  --gradient-color-2: #0f2870;
  --gradient-color-3: #2d1660;
  --gradient-color-4: #003d7a;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(30,70,180,0.7) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 110%, rgba(80,40,150,0.5) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.container {
  max-width: 420px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.site-header .container {
  padding: 1.5rem 1rem 0;
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: calc(1rem - 25px);
  padding: 1.5rem 0 1rem;
  position: relative;
  animation: heroFadeIn 0.8s ease-out;
}

.hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  width: 280px;
  height: 180px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(0,113,227,0.25) 0%, rgba(80,40,150,0.15) 40%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}

.site-logo-img {
  width: 255px;
  height: auto;
  position: relative;
  animation: logoFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 24px rgba(0,113,227,0.3));
  margin-top: -30px;
  margin-bottom: -60px;
}

@media (min-width: 768px) {
  .site-logo-img {
    width: 340px;
    margin-top: -40px;
    margin-bottom: -80px;
  }
}

.site-tagline {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 0;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  animation: taglineFadeUp 1s ease-out 0.3s both;
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.15); }
}

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

/* Header row with lang switcher */
.header-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  margin-bottom: 10px;
}

h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0;
  text-align: center;
  letter-spacing: -0.01em;
  flex: 1;
}

h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.btn-reset {
  display: none;
  margin: 0.5rem auto 1rem;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.btn-reset:hover {
  color: var(--red);
  border-color: var(--red);
}

/* Step Cards — Liquid Glass */
.step-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px) saturate(140%) brightness(110%);
  -webkit-backdrop-filter: blur(20px) saturate(140%) brightness(110%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  transition: opacity 0.3s;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.08) inset,
    0 8px 32px rgba(0,0,0,0.3);
}

.step-card.locked {
  opacity: 0.35;
  pointer-events: none;
}

.step-card.collapsed .step-body {
  display: none;
}

.step-card.collapsed .step-header {
  margin-bottom: 0;
}

.step-body {
  /* intentionally empty — reserved for future use */
}

.step-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.step-header h2 {
  flex: 1;
}

.step-header[data-toggle] {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255,255,255,0.06);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.step-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
  pointer-events: auto;
}

.step-reset:hover {
  color: var(--red);
  background: rgba(255, 69, 58, 0.1);
}

.step-reset:active {
  background: rgba(255, 69, 58, 0.2);
}

/* When reset is visible, chevron should not push to right via margin-left auto */
.step-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
}

.step-chevron::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.step-card:not(.collapsed) .step-chevron::after {
  transform: rotate(-135deg);
  top: 8px;
}

/* Form */
.form-group {
  margin-bottom: 1rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

input[type="text"],
input[type="date"],
input[type="datetime-local"],
textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

input[type="text"]::placeholder,
textarea::placeholder {
  color: var(--muted);
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
textarea:focus {
  border-color: var(--blue);
}

input[type="file"] {
  font-size: 0.85rem;
  margin-top: 0.3rem;
  color: var(--muted);
}

input[type="file"]::file-selector-button {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 0.6rem;
  transition: background 0.15s;
}

input[type="file"]::file-selector-button:hover {
  background: rgba(255,255,255,0.1);
}

input[type="date"],
input[type="datetime-local"] {
  color-scheme: dark;
  -webkit-appearance: none;
  appearance: none;
  min-height: 2.6rem;
  max-width: 100%;
  box-sizing: border-box;
}

.hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* QR tabs */
.qr-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0.5rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.qr-tab {
  flex: 1;
  padding: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.qr-tab + .qr-tab {
  border-left: 1px solid rgba(255,255,255,0.08);
}

.qr-tab.active {
  background: var(--blue);
  color: #fff;
}

.qr-panel { display: none; }
.qr-panel.active { display: block; }

#qr-video {
  width: 100%;
  border-radius: 10px;
  background: #000;
  max-height: 240px;
  object-fit: cover;
}

/* Crop Modal */
.crop-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.crop-modal.open {
  display: flex;
}

.crop-modal-content {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.crop-modal-title {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.crop-page-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  max-width: 280px;
}

.crop-page-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.15s;
}

.crop-page-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.crop-page-btn:not(:disabled):active {
  background: rgba(255,255,255,0.15);
}

.crop-page-info {
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  white-space: nowrap;
}

.crop-viewport {
  position: relative;
  width: 280px;
  height: 280px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(28,28,30,0.6);
  touch-action: none;
  cursor: grab;
}

.crop-viewport:active {
  cursor: grabbing;
}

#crop-img {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  user-select: none;
  -webkit-user-drag: none;
}

.crop-frame {
  position: absolute;
  inset: 0;
  border: 2px solid var(--blue);
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.45);
}

.crop-controls {
  width: 100%;
  max-width: 280px;
}

.crop-zoom-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-size: 1.1rem;
}

.crop-zoom-label input[type="range"] {
  flex: 1;
  accent-color: var(--blue);
  height: 6px;
}

.crop-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  width: 100%;
  max-width: 280px;
}

.crop-buttons .btn-primary {
  flex: 1;
  padding: 0.7rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.crop-buttons .btn-primary:active { opacity: 0.7; }

.crop-buttons .btn-secondary {
  flex: 0;
  white-space: nowrap;
  margin-top: 0;
  color: #fff;
  border-color: rgba(255,255,255,0.3);
  background: transparent;
}

.crop-buttons .btn-secondary:active {
  background: rgba(255,255,255,0.1);
}

.crop-info {
  width: 100%;
  max-width: 280px;
  padding: 0.5rem 0.7rem;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.35;
}

.scan-info {
  margin-top: 0.4rem;
  padding: 0.4rem 0.6rem;
  background: rgba(255, 152, 0, 0.15);
  color: #ffb74d;
  border-radius: 8px;
  font-size: 0.75rem;
  line-height: 1.35;
}

.crop-error {
  width: 100%;
  max-width: 280px;
  padding: 0.55rem 0.7rem;
  background: rgba(255, 69, 58, 0.2);
  color: var(--red);
  border-radius: 8px;
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.35;
}

/* Camera Modal */
.camera-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.camera-modal.open {
  display: flex;
}

.camera-modal-content {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.camera-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 320px;
}

.camera-modal-title {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}

.camera-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}

.camera-close-btn:active {
  background: rgba(255, 255, 255, 0.2);
}

.camera-viewport {
  position: relative;
  width: 320px;
  height: 320px;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}

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

.camera-frame {
  position: absolute;
  inset: 40px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4);
}

.camera-status {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  text-align: center;
}

.btn-open-camera {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
}

.camera-hint {
  text-align: center;
  margin-top: 0.5rem;
}

/* Format picker */
.format-picker {
  display: flex;
  gap: 0.5rem;
  padding-bottom: 1.2rem;
}

.format-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.3rem;
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  font-size: 0.7rem;
  font-weight: 600;
  position: relative;
}

.format-option:hover {
  border-color: rgba(255,255,255,0.25);
}

.format-option.active {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(0, 113, 227, 0.1);
}

.format-option.originally-detected {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 8px rgba(255, 255, 255, 0.12);
}

.format-option.originally-detected:not(.active) {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--text);
}

.format-option.originally-detected::after {
  content: var(--auto-detected-label, "Automatisch erkannt");
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #000;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

.format-option.originally-detected::before {
  content: "";
  position: absolute;
  top: calc(100%);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--green);
  pointer-events: none;
  z-index: 2;
}

.format-option span {
  white-space: nowrap;
}

.format-warning {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  padding: 0.45rem 0.6rem;
  background: rgba(255, 159, 10, 0.12);
  border: 1px solid rgba(255, 159, 10, 0.3);
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.35;
}

/* Invalid input field border */
textarea.input-invalid,
input.input-invalid {
  border-color: rgba(255, 159, 10, 0.6) !important;
  box-shadow: 0 0 0 1px rgba(255, 159, 10, 0.3);
}

/* Pass type picker */
.pass-type-picker {
  display: flex;
  gap: 0.4rem;
}

.type-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.2rem;
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  font-size: 0.65rem;
  font-weight: 600;
}

.type-option:hover {
  border-color: rgba(255,255,255,0.25);
}

.type-option.active {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(0, 113, 227, 0.1);
}

.type-option span {
  white-space: nowrap;
}

/* Transit picker */
#google-transit-fields,
#boarding-fields {
  margin-bottom: 1rem;
}

.transit-picker {
  display: flex;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.transit-option {
  flex: 1;
  padding: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.transit-option.active {
  background: var(--blue);
  color: #fff;
}

/* Color picker */
.color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  outline: none;
  padding: 0;
}

.color-swatch:hover {
  transform: scale(1.12);
}

.color-swatch.active {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text);
}

/* Wallet Preview */
.wallet-preview {
  perspective: 600px;
  margin-bottom: 1.5rem;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.wallet-card {
  background: linear-gradient(145deg, rgba(0,122,255,0.7), rgba(0,94,196,0.7));
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.2rem;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.15) inset,
    0 8px 30px rgba(0,0,0,0.4);
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

/* Strip image (coupon/event/store) */
.wallet-strip {
  margin: -1.2rem -1.2rem 0.8rem;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  max-height: 100px;
}

.wallet-strip img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

/* Strip-active: realistic Apple overlay layout */
.wallet-card.strip-active .wallet-strip-wrap {
  position: relative;
  margin: -1.2rem -1.2rem 0.8rem;
}

.wallet-card.strip-active .wallet-strip {
  margin: 0;
  position: relative;
  max-height: 130px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.wallet-card.strip-active .wallet-strip img {
  height: 130px;
}

.wallet-card.strip-active .wallet-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
  pointer-events: none;
}

.wallet-card.strip-active .wallet-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.2rem 0;
  margin-bottom: 0;
  z-index: 1;
}

.wallet-card.strip-active .wallet-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 1.2rem 0.6rem;
  z-index: 1;
  margin-bottom: 0;
}

/* Image style picker */
.image-style-picker {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.img-style-btn {
  flex: 1;
  padding: 0.4rem 0.6rem;
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.img-style-btn:hover {
  border-color: rgba(255,255,255,0.25);
}

.img-style-btn.active {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(0, 113, 227, 0.1);
}

.wallet-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.wallet-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255,255,255,0.2);
}

.wallet-org {
  font-size: 0.75rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Boarding pass preview */
.wallet-boarding {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.boarding-code {
  font-size: 1.4rem;
  font-weight: 700;
}

.boarding-transit {
  font-size: 1.3rem;
  opacity: 0.7;
}

.wallet-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.wallet-desc {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 0.8rem;
}

.wallet-fields {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  margin-bottom: auto;
}

.wallet-field {
  display: flex;
  flex-direction: column;
}

.wallet-field-label {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
  font-size: 0.65rem;
  margin-bottom: 0.15rem;
}

.wallet-field-value {
  font-weight: 600;
}

.wallet-qr {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.wallet-qr canvas {
  max-width: 160px;
  max-height: 120px;
  width: auto;
  height: auto;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
}

/* Divider between preview and payment */
.payment-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* Coupon */
.coupon-section {
  margin-bottom: 1rem;
}

.coupon-row {
  display: flex;
  gap: 0.5rem;
}

.coupon-row input {
  flex: 1;
  margin: 0;
}

.coupon-row .btn-secondary {
  margin-top: 0;
  white-space: nowrap;
}

.coupon-status {
  font-size: 0.8rem;
  margin-top: 0.4rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
}

.coupon-status.success {
  background: rgba(48, 209, 88, 0.12);
  color: var(--green);
}

.coupon-status.error {
  background: rgba(255, 69, 58, 0.12);
  color: var(--red);
}

.currency-notice {
  font-size: 0.78rem;
  color: #8e8e93;
  text-align: center;
  margin: 0.5rem 0 0.8rem;
  line-height: 1.4;
}

/* Buttons */
.btn-secondary {
  display: inline-block;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.15s;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.06);
}

.btn-secondary:active {
  background: rgba(255,255,255,0.1);
}

/* Payment */
#paddle-container,
#free-container {
  text-align: center;
}

/* Done buttons */
.done-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.done-action-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.apple-wallet-badge {
  height: 44px;
  width: auto;
}

#btn-add-wallet {
  display: block;
  text-align: center;
  transition: opacity 0.15s;
}

#btn-add-wallet:active { opacity: 0.7; }

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  background: var(--blue);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-download:hover {
  background: var(--blue-hover);
}

.btn-download:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-download:active { opacity: 0.7; }

/* Format change confirmation modal */
.format-confirm-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.format-confirm-modal.open {
  display: flex;
}

.format-confirm-box {
  background: rgba(28,28,30,0.75);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 1.4rem;
  max-width: 320px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.08) inset,
    0 8px 32px rgba(0,0,0,0.4);
}

.format-confirm-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.format-confirm-text {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.format-confirm-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.35;
}

.format-confirm-buttons {
  display: flex;
  gap: 0.6rem;
}

.btn-format-confirm {
  flex: 1;
  padding: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.btn-format-confirm:active { opacity: 0.7; }

.btn-format-cancel {
  flex: 1;
  padding: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.btn-format-cancel:active { background: rgba(255,255,255,0.06); }

/* Spinner */
.spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 1rem;
}

.spin {
  width: 20px;
  height: 20px;
  border: 3px solid var(--surface-alt);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Inline spinner overlay for input fields during validation */
.input-spinner-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}
.input-spinner-wrap > input {
  width: 100%;
}
.input-spinner-wrap::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2.5px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  pointer-events: none;
}

/* Fullscreen loading overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.loading-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
}
.loading-overlay-spin {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* Expired link modal */
/* Error dialog (glass modal) */
.error-modal {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.error-modal-content {
  background: rgba(28,28,30,0.75);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  max-width: 340px;
  text-align: center;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.08) inset,
    0 8px 32px rgba(0,0,0,0.4);
}
.error-modal-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.error-modal-content h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}
.error-modal-content p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.expired-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.expired-modal-content {
  background: rgba(28,28,30,0.75);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  max-width: 340px;
  text-align: center;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.08) inset,
    0 8px 32px rgba(0,0,0,0.4);
}
.expired-modal-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.expired-modal-content h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}
.expired-modal-content p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

/* Verify */
.verify-section {
  margin-top: 0.6rem;
}

.verify-result {
  margin-top: 0.4rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.verify-result.match {
  background: rgba(48, 209, 88, 0.12);
  color: var(--green);
}

.verify-result.mismatch {
  background: rgba(255, 69, 58, 0.12);
  color: var(--red);
}

.verify-result .verify-label {
  font-weight: 700;
}

/* Section heading (Done) */
#step-done h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

#step-done,
#google-step-done {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px) saturate(140%) brightness(110%);
  -webkit-backdrop-filter: blur(20px) saturate(140%) brightness(110%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-top: 1rem;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.08) inset,
    0 8px 32px rgba(0,0,0,0.3);
}

/* Language Switcher */
.lang-switcher {
  position: absolute;
  top: 0;
  right: -1rem;
  z-index: 50;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.6rem;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: color 0.15s, border-color 0.15s;
}

.lang-toggle:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.25);
}

.lang-toggle svg {
  flex-shrink: 0;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: rgba(28,28,30,0.8);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 0.3rem;
  min-width: 140px;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.06) inset,
    0 8px 24px rgba(0,0,0,0.5);
}

.lang-option {
  display: block;
  width: 100%;
  padding: 0.45rem 0.7rem;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 500;
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s;
}

.lang-option:hover {
  background: rgba(255,255,255,0.08);
}

.lang-option.active {
  color: var(--blue);
  font-weight: 600;
}

.currency-select {
  border-top: 1px solid var(--border);
  margin-top: 0.3rem;
  padding-top: 0.3rem;
}

.currency-select select {
  width: 100%;
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: #1c1c1e;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  cursor: pointer;
  outline: none;
  color-scheme: dark;
}

.currency-select select option {
  background: #1c1c1e;
  color: var(--text);
}

/* Standalone Page Header (legal + pricing) */
.standalone-header {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
}

.standalone-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.standalone-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.15s;
}

.standalone-logo:hover {
  opacity: 0.8;
}

.standalone-logo img {
  border-radius: 8px;
  filter: drop-shadow(0 2px 8px rgba(0,113,227,0.25));
}

.standalone-logo span {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.standalone-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.standalone-back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  border: none;
  color: #fff;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.standalone-back-link:hover {
  background: var(--blue-hover);
  transform: scale(1.05);
}

.standalone-title-bar {
  margin-top: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.standalone-title-bar h1 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.standalone-main {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2rem;
}

.standalone-main:has(.blog-content) {
  max-width: 740px;
}

.standalone-header:has(+ .standalone-main .blog-content) {
  max-width: 740px;
}

.standalone-header:has(+ .standalone-main .blog-content) .standalone-title-bar h1 {
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.standalone-header:has(+ .standalone-main .blog-content) ~ .legal-footer {
  max-width: 740px;
}

/* Legal Footer */
.legal-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding: 1.5rem 1rem 2rem;
  max-width: 420px;
  margin: 0 auto;
}

/* Wider footer on standalone pages */
.standalone-main ~ .legal-footer {
  max-width: 640px;
}

.legal-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.15s;
}

.legal-footer a:hover {
  color: var(--text);
}

.legal-footer .version {
  color: var(--muted);
  font-size: 0.7rem;
  opacity: 0.5;
}

.legal-footer .footer-branding {
  width: 100%;
  text-align: center;
  font-size: 0.7rem;
  color: var(--muted);
  opacity: 0.4;
  padding-top: 0.5rem;
}

@media (max-width: 767px) {
  .legal-footer {
    padding-bottom: 120px;
  }
}

/* Cookie Consent Banner */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem 1.2rem;
  background: rgba(20, 20, 30, 0.92);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-consent p {
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 0.8rem;
  text-align: center;
}

.cookie-consent-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.cookie-consent-buttons {
  display: flex;
  gap: 0.5rem;
}

.cookie-consent-btn {
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.cookie-consent-btn:hover { opacity: 0.85; }

.cookie-consent-btn.accept {
  background: rgba(0, 122, 255, 0.25);
  color: #fff;
  border: 1px solid rgba(0, 122, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cookie-consent-btn.reject {
  background: transparent;
  color: var(--muted);
}

#cookie-consent-privacy {
  color: var(--muted);
  font-size: 0.72rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Legal Content (standalone pages) */
.legal-content {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 65ch;
  margin-inline: auto;
  overflow-wrap: break-word;
}

.legal-content p,
.legal-content li {
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.legal-content h2,
.legal-content h3 {
  text-wrap: balance;
  hyphens: none;
}

.legal-content h2 {
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1.2;
  margin: 2.5em 0 0.75em;
}

.legal-content h3 {
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.3;
  margin: 2em 0 0.5em;
}

.legal-content h3:first-child {
  margin-top: 0;
}

.legal-content p {
  margin: 0 0 1.25em;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 1.25em;
  padding-left: 1.5rem;
}

.legal-content li {
  margin: 0.4em 0;
  line-height: 1.55;
}

.legal-content a {
  color: var(--blue);
}

.legal-content strong {
  font-weight: 600;
}

@media (min-width: 768px) {
  .legal-content {
    font-size: 1.25rem;
  }
  .legal-content p,
  .legal-content li {
    hyphens: none;
    -webkit-hyphens: none;
  }
}

/* Legal tables (pricing etc.) */
.legal-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.2rem 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  font-size: 0.85rem;
}

.legal-content thead {
  background: rgba(0,122,255,0.15);
}

.legal-content th {
  font-weight: 600;
  text-align: left;
  padding: 0.65rem 0.8rem;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.legal-content td {
  padding: 0.55rem 0.8rem;
  color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.legal-content tr:last-child td {
  border-bottom: none;
}

.legal-content tbody tr:hover {
  background: rgba(255,255,255,0.04);
}

/* ============================================
   BLOG
   ============================================ */

.blog-content {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 65ch;
  margin-inline: auto;
  overflow-wrap: break-word;
}

.blog-content p,
.blog-content li {
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.blog-content h2,
.blog-content h3 {
  text-wrap: balance;
  hyphens: none;
}

.blog-content h2 {
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1.2;
  margin: 2.5em 0 0.75em;
}

.blog-content h3 {
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.3;
  margin: 2em 0 0.5em;
}

.blog-content p {
  margin: 0 0 1.25em;
}

.blog-content ul,
.blog-content ol {
  margin: 0 0 1.25em;
  padding-left: 1.5rem;
}

.blog-content li {
  margin: 0.4em 0;
  line-height: 1.55;
}

.blog-content a {
  color: var(--blue);
}

.blog-content blockquote {
  border-left: 3px solid var(--blue);
  margin: 1.5em 0;
  padding: 0.6rem 0 0.6rem 1.2rem;
  color: var(--muted);
  font-size: 0.95em;
  line-height: 1.55;
}

.blog-content pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  overflow-x: auto;
  font-size: 0.82rem;
  margin: 1.5em 0;
}

.blog-content code {
  font-family: "SF Mono", SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 0.85em;
  background: rgba(255,255,255,0.06);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

.blog-content pre code {
  background: none;
  padding: 0;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1.5em 0;
}

.blog-content strong {
  font-weight: 600;
}

@media (min-width: 768px) {
  .blog-content {
    font-size: 1.25rem;
  }
  .blog-content p,
  .blog-content li {
    hyphens: none;
    -webkit-hyphens: none;
  }
}

.blog-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.2rem 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  font-size: 0.85rem;
}

.blog-content thead {
  background: rgba(0,122,255,0.15);
}

.blog-content th {
  font-weight: 600;
  text-align: left;
  padding: 0.65rem 0.8rem;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.blog-content td {
  padding: 0.55rem 0.8rem;
  color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.blog-content tr:last-child td {
  border-bottom: none;
}

.blog-content tbody tr:hover {
  background: rgba(255,255,255,0.04);
}

/* Blog Visuals (SVG diagrams/charts) */
.blog-visual {
  margin: 2em 0;
  text-align: center;
}

.blog-visual svg {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.blog-visual figcaption {
  font-size: 0.8em;
  color: var(--muted);
  margin-top: 0.5em;
}

/* Blog Slideshow */
.blog-slideshow { margin: 2em 0; }

.blog-slideshow-track {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}

.blog-slideshow-viewport {
  aspect-ratio: 16 / 9;
  position: relative;
}

.blog-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none;
}

.blog-slide-active { opacity: 1; pointer-events: auto; }

.blog-slide img {
  display: block; width: 100%; height: 100%;
  object-fit: contain;
  margin: 0; border-radius: 0;
}

.blog-slideshow-prev, .blog-slideshow-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(0,0,0,0.5); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background 0.15s;
}
.blog-slideshow-prev:hover, .blog-slideshow-next:hover {
  background: rgba(0,0,0,0.7);
}
.blog-slideshow-prev { left: 10px; }
.blog-slideshow-next { right: 10px; }

.blog-slideshow-counter {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  padding: 4px 12px; background: rgba(0,0,0,0.5); border-radius: 12px;
  font-size: 0.75rem; color: rgba(255,255,255,0.85);
  font-variant-numeric: tabular-nums; z-index: 2;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

.blog-slideshow-viewport { cursor: pointer; }

@media (hover: none) {
  .blog-slideshow-prev, .blog-slideshow-next { width: 30px; height: 30px; }
}

/* Blog Lightbox */
.blog-lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  align-items: center; justify-content: center;
}
.blog-lightbox.blog-lb-open { display: flex; }

.blog-lb-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.9);
}

.blog-lb-close {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.15); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.15s;
}
.blog-lb-close:hover { background: rgba(255,255,255,0.3); }

.blog-lb-content {
  position: relative; z-index: 1;
  width: 90vw; height: 80vh;
  max-width: 1400px;
}

.blog-lb-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.blog-lb-slide-active { opacity: 1; pointer-events: auto; }

.blog-lb-slide img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  margin: 0;
}

.blog-lb-prev, .blog-lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.15); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background 0.15s;
}
.blog-lb-prev:hover, .blog-lb-next:hover { background: rgba(255,255,255,0.3); }
.blog-lb-prev { left: 16px; }
.blog-lb-next { right: 16px; }

.blog-lb-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  padding: 6px 16px; background: rgba(255,255,255,0.15); border-radius: 16px;
  font-size: 0.85rem; color: rgba(255,255,255,0.9);
  font-variant-numeric: tabular-nums; z-index: 2;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

@media (hover: none) {
  .blog-lb-prev, .blog-lb-next { width: 36px; height: 36px; }
  .blog-lb-close { top: 10px; right: 10px; width: 36px; height: 36px; }
}

/* Blog Index Cards */
.blog-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .blog-card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.blog-post-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.75rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
}

.blog-post-card a:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}

.blog-post-card h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.blog-card-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
  line-height: 1.5;
  flex: 1;
}

.blog-card-meta {
  font-size: 0.75rem;
  color: var(--blue);
  font-weight: 500;
}

/* Blog Post Meta */
.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.blog-back {
  font-size: 0.82rem;
  color: var(--blue);
  text-decoration: none;
}

.blog-back:hover {
  text-decoration: underline;
}

.blog-meta time {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Blog Hero Image */
.blog-hero {
  width: 100%;
  max-width: 65ch;
  height: auto;
  border-radius: 12px;
  margin: 0 auto 2em;
  display: block;
  object-fit: cover;
  max-height: 360px;
}

/* Blog Card Hero Thumbnail */
.blog-content .blog-card-hero {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 0 0.75rem 0;
}

/* Blog Author */
.blog-author {
  max-width: 65ch;
  margin: 2em auto 0;
  padding-top: 1em;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}

/* Blog Forward/Recommend */
.blog-forward {
  max-width: 65ch;
  margin: 1.5em auto 0;
  text-align: center;
}

.blog-forward-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: auto;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--muted);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.blog-forward-btn:hover {
  border-color: rgba(255,255,255,0.25);
  color: var(--text);
  background: rgba(255,255,255,0.1);
}

/* Blog CTA */
.blog-cta {
  max-width: 65ch;
  margin: 2.5em auto 0;
  padding: 1.5rem;
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.2);
  border-radius: 12px;
  text-align: center;
}

.blog-cta .btn-download {
  display: inline-flex;
  text-decoration: none;
  color: #fff;
}

/* Consent Checkbox */
.consent-section {
  margin-bottom: 1rem;
  padding: 0.8rem;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  margin-bottom: 0;
}

.consent-label input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 0.15rem;
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  cursor: pointer;
}

#consent-text a {
  color: #6cb4ff;
  text-decoration: underline;
}

#consent-text a:hover {
  color: #a0d0ff;
}

/* Done screen QR code */
.done-qr {
  text-align: center;
  margin-top: 1.2rem;
}

.done-qr-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

#done-qr-canvas {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
}

#btn-share,
#google-btn-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  margin-top: 0.8rem;
}

/* Disabled payment state (no consent) */
/* ============================================
   GLOBAL PAYMENT MODULE
   ============================================ */

/* Payment module uses step-card styling */
.payment-step-card {
  animation: fadeIn 0.3s ease-out;
}

.payment-step-card .step-header {
  margin-bottom: 1.2rem;
}

.payment-step-card .step-header h2 {
  flex: 1;
}

/* Payment icon instead of number */
.payment-step-number {
  border-color: var(--green);
  color: var(--green);
}

.payment-step-number svg {
  width: 16px;
  height: 16px;
}

/* OR Divider between secret input and packages */
.payment-or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.2rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.payment-or-divider::before,
.payment-or-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border);
}

.payment-or-divider span {
  padding: 0 1rem;
  text-transform: lowercase;
}

/* Payment Details (shown after package selection) */
.payment-details {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  animation: fadeIn 0.2s ease-out;
}

.payment-single-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
  text-align: center;
}

/* ============================================
   CREDIT SYSTEM STYLES
   ============================================ */

/* Secret Input Section */
.credit-section {
  margin-bottom: 1.2rem;
}

.secret-input-row {
  display: flex;
  gap: 0.5rem;
}

.secret-input-row input {
  flex: 1;
  font-family: "SF Mono", SFMono-Regular, Menlo, Monaco, monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.secret-input-row .btn-secondary {
  margin-top: 0;
  white-space: nowrap;
}

.secret-status {
  font-size: 0.8rem;
  margin-top: 0.4rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
}

.secret-status.success {
  background: rgba(48, 209, 88, 0.12);
  color: var(--green);
}

.secret-status.error {
  background: rgba(255, 69, 58, 0.12);
  color: var(--red);
}

/* Credit Balance Display */
.credit-balance {
  text-align: center;
  padding: 1rem 0;
}

.credit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--green), #28a745);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(48, 209, 88, 0.3);
}

.credit-badge #credit-count {
  font-size: 1.3rem;
  font-weight: 700;
}

.credit-balance .btn-download {
  width: 100%;
  margin-bottom: 0.6rem;
}

.buy-more-link {
  display: inline-block;
  color: var(--blue);
  font-size: 0.85rem;
  text-decoration: none;
}

.buy-more-link:hover {
  text-decoration: underline;
}

/* Package Selection */
.package-section {
  margin-bottom: 1.2rem;
}

.package-intro {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  text-align: center;
}

.package-benefits {
  display: flex;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.package-benefits li {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.package-benefits li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
}

/* Package Carousel */
.package-carousel {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

.carousel-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: background 0.15s, color 0.15s, opacity 0.15s;
}

.carousel-btn:hover:not(:disabled) {
  background: var(--border);
  color: var(--text);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-btn svg {
  width: 16px;
  height: 16px;
}

.package-cards-wrapper {
  flex: 1;
  overflow: hidden;
  padding: 14px 0 4px 0; /* Space for badge (14px) and hover lift (4px) */
  margin: -14px 0 -4px 0; /* Pull wrapper up/down to compensate */
}

.package-cards {
  display: flex;
  gap: 0.5rem;
  transition: transform 0.3s ease;
}


.package-card {
  flex: 0 0 calc((100% - 1.2rem) / 3);
  min-width: calc((100% - 1.2rem) / 3);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 0.7rem 0.4rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  position: relative;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s;
}

.carousel-dot.active {
  background: var(--blue);
}

.package-card:hover {
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.package-card.selected {
  border-color: var(--blue);
  background: rgba(0, 113, 227, 0.1);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
}

.package-card.popular {
  border-color: rgba(255, 255, 255, 0.25);
}

.package-card.popular.selected {
  border-color: var(--blue);
  background: rgba(0, 113, 227, 0.1);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
}

.package-popular-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #000;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.package-credits {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.package-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.package-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.package-per-pass {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* Paddle container already styled above */

/* Secret Modal (after package purchase) */
.secret-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}

.secret-modal.open {
  display: flex;
}

.secret-modal-content {
  background: rgba(28,28,30,0.75);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 360px;
  width: 100%;
  text-align: center;
  animation: slideUp 0.3s ease-out;
  position: relative;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.08) inset,
    0 8px 32px rgba(0,0,0,0.4);
}

.secret-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.secret-modal-close:hover {
  color: var(--text);
  background: rgba(255,255,255,0.1);
}

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

.secret-modal-icon {
  color: var(--green);
  margin-bottom: 0.8rem;
}

.secret-modal-icon svg {
  stroke: var(--green);
}

.secret-success {
  color: var(--green);
  font-weight: 600;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.secret-code-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.6rem;
}

.secret-code-box code {
  font-family: "SF Mono", SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.05em;
}

.btn-copy {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.btn-copy:hover {
  color: var(--text);
  background: rgba(255,255,255,0.1);
}

.btn-copy.copied {
  color: var(--green);
}

.secret-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.secret-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.secret-modal-buttons .btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.secret-modal .btn-download {
  width: 100%;
}

/* Icon button for file upload */
.btn-icon {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.btn-icon:hover {
  color: var(--text);
  border-color: var(--text);
  background: rgba(255,255,255,0.05);
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */

.how-it-works {
  margin-bottom: 4rem;
  text-align: center;
}

.how-it-works summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  list-style: none;
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  margin: 0 auto 0.8rem;
}

.how-it-works summary:hover {
  border-color: var(--blue);
  color: var(--text);
  background: rgba(0,113,227,0.06);
}

.how-it-works summary::-webkit-details-marker { display: none; }

.how-it-works summary .how-icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.how-it-works summary .how-chevron {
  width: 12px;
  height: 12px;
  opacity: 0.5;
  transition: transform 0.2s;
}

.how-it-works[open] summary .how-chevron {
  transform: rotate(180deg);
}

.how-it-works[open] summary {
  border-color: var(--blue);
  color: var(--text);
}

.how-steps {
  display: flex;
  gap: 0.8rem;
}

.how-step {
  flex: 1;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 1rem 0.6rem;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.06) inset,
    0 4px 16px rgba(0,0,0,0.2);
}

.how-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.how-step h3 {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.how-step p {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.3;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-section {
  margin-top: 5rem;
  margin-bottom: 0;
  padding: 0 1rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.faq-section h2 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.8rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.faq-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  padding: 0.7rem 0.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  transition: color 0.15s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s;
  flex-shrink: 0;
  opacity: 0.6;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-item summary:hover {
  color: var(--text);
}

.faq-item p {
  padding: 0 0.2rem 0.8rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ============================================
   CONFETTI ANIMATION
   ============================================ */

.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  opacity: 0;
  animation: confetti-fall 3s ease-out forwards;
}

.confetti.circle {
  border-radius: 50%;
}

.confetti.square {
  border-radius: 2px;
}

.confetti.strip {
  width: 4px;
  height: 16px;
  border-radius: 2px;
}

@keyframes confetti-fall {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(720deg) scale(0.5);
  }
}

/* ============================================
   RESPONSIVE: TABLET
   ============================================ */

@media (min-width: 768px) {
  .container {
    max-width: 600px;
  }
  .faq-section {
    max-width: 600px;
  }
  .package-cards {
    flex-direction: row;
    gap: 1rem;
  }
  .package-card {
    flex: 0 0 calc((100% - 2.2rem) / 3);
    min-width: calc((100% - 2.2rem) / 3);
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .hero { display: none; }
  .step-card { padding: 0.75rem; }
}

/* ============================================
   PLATFORM CHOICE
   ============================================ */

.platform-choice {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px) saturate(140%) brightness(110%);
  -webkit-backdrop-filter: blur(20px) saturate(140%) brightness(110%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 1.5rem 1.2rem 1.8rem;
  margin-bottom: 1rem;
  text-align: center;
  transition: padding 0.3s ease;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.08) inset,
    0 8px 32px rgba(0,0,0,0.3);
}

.platform-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: var(--text);
  transition: opacity 0.2s ease, max-height 0.3s ease, margin 0.3s ease;
  overflow: hidden;
}

.platform-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.platform-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.2rem 1.5rem;
  border-radius: 16px;
  cursor: pointer;
  min-width: 140px;
  flex: 1;
  max-width: 180px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, padding 0.3s ease, min-width 0.3s ease, border-radius 0.3s ease;
  border: none;
  font-family: inherit;
}

.platform-btn:hover {
  transform: translateY(-2px);
}

.platform-btn:active {
  transform: translateY(0);
}

.platform-btn svg {
  flex-shrink: 0;
}

.platform-btn span {
  font-size: 1rem;
  font-weight: 600;
  transition: opacity 0.2s ease, max-height 0.2s ease;
  overflow: hidden;
}

.platform-btn small {
  font-size: 0.75rem;
  opacity: 0.7;
  transition: opacity 0.2s ease, max-height 0.2s ease;
  overflow: hidden;
}

/* Apple Button */
.platform-btn.apple {
  background: linear-gradient(145deg, #1c1c1e, #000000);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.platform-btn.apple:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

/* Google Button */
.platform-btn.google {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px) brightness(110%);
  -webkit-backdrop-filter: blur(16px) brightness(110%);
  color: #1f1f1f;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.3) inset,
    0 4px 16px rgba(0,0,0,0.1);
}

.platform-btn.google:hover {
  background: rgba(255,255,255,0.92);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.4) inset,
    0 6px 24px rgba(66,133,244,0.25);
}

.platform-btn.google svg {
  width: 32px;
  height: 32px;
}

/* Mini/Compact Platform Navigation */
.platform-choice.mini {
  padding: 0.6rem 1rem;
  margin-bottom: 1rem;
  position: relative;
}

.platform-choice.mini .platform-title {
  display: none;
}

.platform-choice.mini .platform-buttons {
  justify-content: center;
  gap: 1rem;
}

.platform-choice.mini .platform-btn {
  padding: 0.6rem;
  min-width: auto;
  max-width: none;
  flex: none;
  border-radius: 12px;
  opacity: 0.5;
  transform: scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.platform-choice.mini .platform-btn:hover:not(.active) {
  opacity: 0.8;
  transform: scale(1.05);
}

.platform-choice.mini .platform-btn.active {
  opacity: 1;
  transform: scale(1.15);
  box-shadow:
    0 0 0 2px rgba(0, 113, 227, 0.6),
    0 0 20px rgba(0, 113, 227, 0.4),
    0 0 40px rgba(0, 113, 227, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.platform-choice.mini .platform-btn.active::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(0, 113, 227, 0.3) 45%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(0, 113, 227, 0.3) 55%,
    transparent 70%
  );
  animation: blueShimmer 3.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes blueShimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.platform-choice.mini .platform-btn span,
.platform-choice.mini .platform-btn small {
  display: none;
}

.platform-choice.mini .platform-btn svg {
  width: 28px;
  height: 28px;
}

/* Platform Reset Button */
.platform-reset {
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}

.platform-reset:hover {
  color: var(--red);
  background: rgba(255, 69, 58, 0.1);
}

.platform-reset:active {
  background: rgba(255, 69, 58, 0.2);
}

.platform-choice.mini .platform-reset {
  display: flex;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Back to Platform Button - hidden, using mini nav instead */
.btn-back-platform {
  display: none;
  margin: 1.5rem auto 0;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  font-family: inherit;
}

.btn-back-platform:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.3);
}

/* ============================================
   GOOGLE WALLET SPECIFIC
   ============================================ */

/* Google Wallet Preview Card */
.google-wallet-preview .wallet-card,
.google-wallet-card {
  background: linear-gradient(145deg, rgba(66,133,244,0.7), rgba(26,115,232,0.7));
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.google-wallet-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Google Wallet badge */
.google-wallet-badge {
  height: 44px;
  width: auto;
}

#google-btn-add-wallet {
  display: block;
  text-align: center;
  transition: opacity 0.15s;
}

#google-btn-add-wallet:active { opacity: 0.7; }

/* Google format picker - more items, needs wrapping */
.format-picker-google {
  flex-wrap: wrap;
}

.format-picker-google .format-option {
  flex: 0 0 calc(33.33% - 0.4rem);
  min-width: 0;
}

/* Google pass type picker - more items */
.pass-type-picker-google {
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pass-type-picker-google .type-option {
  flex: 0 0 calc(33.33% - 0.35rem);
  min-width: 0;
}

/* Google done section — inherits glass from combined #step-done, #google-step-done rule */

#google-step-done h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.google-validity-notice {
  font-size: 0.82rem;
  color: #8e8e93;
  text-align: center;
  margin: 1rem 0 0;
}

/* Hide Google module by default, show when selected */
.wallet-module {
  /* Container for each platform's UI */
}

/* Disabled state for Google button when not available */
.platform-btn.google.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.platform-btn.google.disabled::after {
  content: "Bald verfügbar";
  display: block;
  font-size: 0.65rem;
  color: #666;
  margin-top: 0.3rem;
}
