:root {
  --primary: #6d28d9;
  --accent: #ec4899;
  --bg: #f5f3ff;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(76, 29, 149, 0.25);
  --bottom-nav-h: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(circle at 10% -10%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 40%),
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 35%);
  background-attachment: fixed;
  line-height: 1.5;
}
img { max-width: 100%; }
a { color: var(--primary); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.2; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 16px; }
.page-loading { padding: 40px; text-align: center; color: var(--muted); }

/* ---------- header / footer ---------- */
.site-header { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.top-nav { display: flex; gap: 4px; }
.top-nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.top-nav a.active, .top-nav a:hover { color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.site-footer { margin-top: 40px; padding: 28px 0; background: #111827; color: #9ca3af; font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-inner a { color: #d1d5db; text-decoration: none; }

/* ---------- 3-column layout with side ads ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 16px; }
.side { display: none; }
.main { min-width: 0; }
@media (min-width: 1200px) {
  .layout { grid-template-columns: 160px minmax(0, 1fr) 160px; }
  .side { display: block; }
  .side-sticky { position: sticky; top: 76px; }
}
@media (min-width: 1400px) { .layout { grid-template-columns: 300px minmax(0, 1fr) 300px; } }

/* ---------- ads ---------- */
.ad-slot { margin: 12px 0; text-align: center; overflow: hidden; }
.ad-label { display: block; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #9ca3af; margin-bottom: 4px; }
.ad-placeholder { border: 2px dashed #c4b5fd; border-radius: 12px; padding: 24px 8px; color: #7c3aed; background: rgba(237, 233, 254, 0.5); font-size: 0.85rem; min-height: 90px; display: grid; place-items: center; }
.ad-left .ad-placeholder, .ad-right .ad-placeholder { min-height: 600px; }
.adgate-backdrop { position: fixed; inset: 0; background: rgba(17, 24, 39, 0.65); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade 0.2s; }
.adgate { background: var(--surface); border-radius: var(--radius); width: 100%; max-width: 420px; padding: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
.adgate-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 8px; }
.adgate-x { border: 0; background: #f3f4f6; width: 32px; height: 32px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.adgate-body { min-height: 250px; display: grid; align-items: center; margin-bottom: 12px; }
.adgate-body .ad-placeholder { min-height: 250px; }
@keyframes fade { from { opacity: 0; } }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 12px 0 20px; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); margin: 0 0 8px; background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0 auto; max-width: 640px; color: var(--muted); }

/* ---------- cards / buttons / inputs ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(124, 58, 237, 0.08); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 10px 16px; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform 0.1s, box-shadow 0.2s, background 0.2s; white-space: nowrap; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, var(--accent))); color: #fff; box-shadow: 0 6px 16px -6px var(--primary); }
.btn-accent { background: color-mix(in srgb, var(--accent) 12%, white); color: color-mix(in srgb, var(--accent) 80%, black); }
.btn-ghost { background: #f3f4f6; color: var(--text); }
.btn-ghost:hover { background: #e5e7eb; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 20px; font-size: 1.05rem; }
.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 50%, transparent); } 50% { box-shadow: 0 0 0 8px transparent; } }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; font-weight: 600; color: #374151; min-width: 0; }
.field input:not([type='range']), .field select, .field textarea, .panel-row select {
  width: 100%; border: 1.5px solid var(--border); border-radius: 12px; padding: 11px 12px; background: #fff; font-weight: 400; font-size: 16px; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent); }
.field textarea { resize: vertical; }
input[type='range'] { width: 100%; accent-color: var(--primary); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 0.9rem; }
.warn { color: #b45309; background: #fffbeb; border: 1px solid #fde68a; padding: 8px 12px; border-radius: 10px; font-size: 0.88rem; margin: 8px 0 0; }
.hint { color: var(--muted); font-size: 0.82rem; margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1.5px solid var(--border); background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 0.88rem; cursor: pointer; text-transform: capitalize; }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chips.sm .chip { padding: 5px 11px; font-size: 0.8rem; }

.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.slider { width: 40px; height: 22px; background: #d1d5db; border-radius: 999px; position: relative; transition: background 0.2s; flex: none; }
.slider::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider::after { transform: translateX(18px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--primary); outline-offset: 2px; }

.color { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--border); border-radius: 12px; padding: 4px 10px 4px 4px; cursor: pointer; background: #fff; font-size: 0.85rem; font-family: ui-monospace, monospace; }
.color input { width: 32px; height: 32px; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 8px; }
.color input::-webkit-color-swatch-wrapper { padding: 0; }
.color input::-webkit-color-swatch { border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 8px; }

/* ---------- generator ---------- */
.gen-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.gen-editor { padding: 8px 20px 20px; min-width: 0; }
.gen-preview { padding: 20px; position: sticky; top: 76px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 0 -20px 16px; padding: 0 12px; overflow-x: auto; }
.tab { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 14px 14px 12px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.show { display: block; animation: fade 0.2s; }
.panel { display: flex; flex-direction: column; gap: 14px; }
.panel fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel fieldset.muted { opacity: 0.45; }
.panel-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 6px 0 -6px; }
.panel-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.panel-row select { width: auto; padding: 8px 10px; }

.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.preset { border: 1.5px solid var(--border); background: #fff; border-radius: 12px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 600; cursor: pointer; }
.preset:hover { border-color: var(--primary); }
.swatch { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; border: 1px solid rgba(0, 0, 0, 0.08); }
.swatch span { width: 20px; height: 20px; border-radius: 5px; }

.qr-frame { position: relative; border-radius: 14px; overflow: hidden; background: #f9fafb; aspect-ratio: 1; display: grid; place-items: center; }
.qr-frame.checker { background: repeating-conic-gradient(#e5e7eb 0% 25%, #fff 0% 50%) 50% / 20px 20px; }
.qr-canvas { width: 100%; height: 100%; }
.qr-canvas canvas, .qr-canvas svg { width: 100% !important; height: 100% !important; display: block; }
.qr-overlay { position: absolute; inset: auto 12px 12px; border: 0; border-radius: 10px; padding: 10px; background: rgba(17, 24, 39, 0.85); color: #fff; font-weight: 600; cursor: pointer; }
.qr-data { text-align: center; color: var(--muted); font-size: 0.82rem; margin: 10px 0 12px; word-break: break-all; }

.format-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.compact .format-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
.format-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; padding: 12px 6px; cursor: pointer; color: var(--primary); transition: all 0.15s; }
.format-btn strong { color: var(--text); font-size: 0.9rem; }
.format-btn small { color: var(--muted); font-size: 0.72rem; }
.format-btn:hover { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, white); }
.compact .format-btn { padding: 8px 2px; }
.compact .size-field { flex-direction: row; align-items: center; justify-content: space-between; }
.compact .size-field select { width: auto; padding: 6px 10px; }
.download-panel.compact { gap: 10px; }
.download-panel.compact .panel-row .btn { flex: 1; padding: 8px; font-size: 0.85rem; }

.dropzone { border: 2px dashed #c4b5fd; border-radius: 14px; padding: 24px; text-align: center; cursor: pointer; display: flex; flex-direction: column; gap: 4px; align-items: center; background: #faf5ff; transition: all 0.15s; }
.dropzone.drag, .dropzone:hover { border-color: var(--primary); background: #f3e8ff; }
.dropzone span { color: var(--muted); font-size: 0.85rem; }
.logo-preview { max-height: 90px; border-radius: 8px; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; }
.logo-pick { border: 2px solid transparent; background: #f9fafb; border-radius: 12px; padding: 6px; cursor: pointer; display: grid; place-items: center; }
.logo-pick.active { border-color: var(--primary); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #111827; color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; z-index: 90; animation: fade 0.2s; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }

.mobile-only, .mobile-quick { display: none !important; }
.mobile-only-pane.show { display: none; }

/* ---------- SEO content ---------- */
.content { margin-top: 32px; }
.content section { margin-bottom: 36px; }
.content h2 { font-size: 1.5rem; text-align: center; margin: 0 0 18px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.steps li { display: flex; gap: 12px; background: var(--surface); padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow); }
.steps h3 { margin: 0 0 4px; font-size: 1rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.step-n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.feature { background: var(--surface); padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-icon { font-size: 1.6rem; }
.feature h3 { margin: 6px 0 4px; font-size: 1rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.faq-q { width: 100%; text-align: left; border: 0; background: none; padding: 16px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; cursor: pointer; }
.faq-a { margin: 0; padding: 0 16px 16px; color: var(--muted); }
.static-page { padding: 28px; max-width: 820px; margin: 0 auto; }
.static-page.center { text-align: center; }
.static-page h1 { margin-top: 0; }
.prose { color: #374151; }
.contact-email { font-size: 1.1rem; font-weight: 600; }

/* ---------- tablet / mobile ---------- */
@media (max-width: 900px) {
  .gen-grid { grid-template-columns: 1fr; }
  .gen-preview { order: -1; position: static; scroll-margin-top: 72px; }
  .qr-frame { max-width: 300px; margin: 0 auto; }
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }
  .mobile-quick { display: flex !important; gap: 8px; justify-content: center; }
  .mobile-only-pane.show { display: block; }
  .generator { scroll-margin-top: 64px; }
  .site { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
  .has-dock-ad .site { padding-bottom: calc(var(--bottom-nav-h) + 70px + env(safe-area-inset-bottom)); }
  .mobile-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; }
  .dock-ad { margin: 0; background: #fff; border-top: 1px solid var(--border); padding: 2px 0; max-height: 110px; }
  .dock-ad .ad-label { display: none; }
  .dock-ad .ad-placeholder { min-height: 50px; padding: 8px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(4, 1fr); height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06); }
  .bn-item { border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 0.72rem; font-weight: 700; color: var(--muted); cursor: pointer; }
  .bn-item.active { color: var(--primary); }
  .bn-item.active svg { background: color-mix(in srgb, var(--primary) 12%, transparent); border-radius: 999px; padding: 2px 14px; width: 52px; box-sizing: content-box; }
  .gen-editor .tabs { display: none; }
  .gen-editor { padding-top: 20px; }
  .toast { bottom: calc(var(--bottom-nav-h) + 20px + env(safe-area-inset-bottom)); }
  .site-footer { margin-top: 24px; }
}
@media (max-width: 520px) {
  .top-nav a:not(.active) { display: none; }
  .row2 { grid-template-columns: 1fr; }
  .gen-editor, .gen-preview { padding: 16px; }
  .static-page { padding: 20px; }
}

/* =====================================================================
   Design refresh: header account, trial banner, ad frames, auth popup
   ===================================================================== */
.btn-sm { padding: 7px 14px; font-size: 0.88rem; border-radius: 10px; }
.btn-light { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }

.header-inner { gap: 16px; }
.top-nav { margin-left: auto; }
.brand-logo { display: grid; place-items: center; padding: 2px; border-radius: 11px; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.brand-logo img { display: block; border-radius: 9px; }
.auth-btns { display: flex; gap: 8px; }
.user-menu { position: relative; }
.avatar { width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 4px 12px -4px var(--primary); }
.user-pop { position: absolute; right: 0; top: 46px; width: 240px; background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18); padding: 14px; display: flex; flex-direction: column; gap: 4px; z-index: 60; animation: fade 0.15s; }
.user-pop small { color: var(--muted); word-break: break-all; }
.badge-free { display: inline-block; margin: 6px 0 8px; font-size: 0.78rem; font-weight: 700; color: #047857; background: #ecfdf5; border-radius: 999px; padding: 3px 10px; align-self: flex-start; }

.trial-banner { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 10px 16px; text-align: center; font-size: 0.92rem; color: #fff; background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 50%, var(--accent)), var(--accent)); }
.trial-banner.expired { background: linear-gradient(90deg, #b91c1c, #ea580c); }
.trial-banner .btn { padding: 6px 14px; font-size: 0.85rem; }

.hero { padding: 20px 0 26px; }
.hero-pill { display: inline-block; font-size: 0.82rem; font-weight: 700; color: var(--primary); background: #fff; border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); border-radius: 999px; padding: 5px 14px; margin-bottom: 12px; box-shadow: 0 4px 14px -6px var(--primary); }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 16px 0 0; }
.hero-badges li { font-size: 0.85rem; font-weight: 600; color: #065f46; background: rgba(255, 255, 255, 0.85); border: 1px solid #d1fae5; border-radius: 999px; padding: 5px 12px; }

/* ad frames */
.ad-slot { position: relative; }
.side .ad-slot { margin: 0; background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(124, 58, 237, 0.12); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); }
.ad-bottom-wide { margin-top: 28px; background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(124, 58, 237, 0.12); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.ad-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 2px dashed color-mix(in srgb, var(--primary) 35%, transparent); background:
  linear-gradient(135deg, color-mix(in srgb, var(--primary) 6%, white), color-mix(in srgb, var(--accent) 6%, white)); color: var(--primary); }
.ad-placeholder strong { font-size: 0.95rem; }
.ad-placeholder small { color: var(--muted); font-size: 0.75rem; }
.ph-badge { font-size: 0.7rem; font-weight: 800; color: #fff; background: #f59e0b; border-radius: 4px; padding: 1px 6px; }
.ad-left .ad-placeholder, .ad-right .ad-placeholder { min-height: 600px; }
.ad-bottom .ad-placeholder { min-height: 120px; }

/* preview card: gradient ring */
.gen-preview { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--primary), var(--accent)) border-box; }
.gen-editor { border-top: 4px solid var(--primary); }
.qr-lock { position: absolute; inset: 0; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(4px); color: var(--text); }
.qr-lock span { font-size: 2.2rem; }
.qr-lock small { color: var(--primary); font-weight: 700; }

/* auth popup */
.auth-modal { position: relative; background: #fff; border-radius: 20px; width: 100%; max-width: 400px; padding: 28px 24px 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); max-height: calc(100vh - 32px); overflow-y: auto; animation: pop 0.2s; }
@keyframes pop { from { transform: scale(0.96); opacity: 0; } }
.auth-x { position: absolute; right: 12px; top: 12px; }
.auth-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; align-self: center; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 15%, white), color-mix(in srgb, var(--accent) 15%, white)); }
.auth-modal h2 { margin: 0; text-align: center; font-size: 1.35rem; }
.auth-sub { margin: -4px 0 0; text-align: center; color: var(--muted); font-size: 0.92rem; }
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; background: #f3f4f6; border-radius: 12px; padding: 4px; }
.auth-switch button { border: 0; background: none; padding: 8px; border-radius: 9px; font-weight: 700; color: var(--muted); cursor: pointer; }
.auth-switch button.active { background: #fff; color: var(--primary); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); }
.otp { text-align: center; font-size: 1.6rem !important; letter-spacing: 0.5em; font-weight: 700 !important; }
.auth-info { margin: 0; color: #065f46; background: #ecfdf5; border-radius: 10px; padding: 8px 12px; font-size: 0.88rem; }
.auth-links { display: flex; justify-content: center; gap: 18px; }
.auth-links button { border: 0; background: none; color: var(--primary); font-weight: 600; cursor: pointer; font-size: 0.9rem; }

.site-footer { background: linear-gradient(180deg, #111827, #0b0f1a); }
.footer-brand { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.footer-brand img { border-radius: 7px; }

@media (max-width: 720px) {
  .top-nav { display: none; }
  .auth-btns { margin-left: auto; }
  .user-menu { margin-left: auto; }
  .trial-banner { font-size: 0.82rem; padding: 8px 12px; gap: 8px; }
  .hero-badges li { font-size: 0.78rem; padding: 4px 10px; }
  .hero-pill { font-size: 0.75rem; }
}

/* =====================================================================
   One-screen step wizard: Content → Design → Logo → Generate → Download
   (--gen-h is set from JS so the generator exactly fills the screen)
   ===================================================================== */
.layout { padding-top: 8px; }
.hero { padding: 6px 0 12px; }
.hero h1 { font-size: clamp(1.3rem, 2.4vw, 1.95rem); margin: 0 0 8px; }
.hero-badges { margin: 0; gap: 6px; }
.hero-badges li { font-size: 0.78rem; padding: 3px 10px; }

.gen-grid { height: var(--gen-h, auto); grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); align-items: stretch; gap: 16px; }

/* editor card */
.gen-editor { display: flex; flex-direction: column; min-height: 0; padding: 0; overflow: hidden; border-top: 0; }
.stepper { list-style: none; margin: 0; padding: 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 7%, white), color-mix(in srgb, var(--accent) 6%, white)); }
.st { position: relative; min-width: 0; }
.st:not(:last-child)::after { content: ''; position: absolute; top: 50%; right: -6px; width: 6px; height: 2px; background: color-mix(in srgb, var(--primary) 25%, transparent); }
.st button { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 8px 10px; border-radius: 12px; cursor: pointer; text-align: left; color: var(--muted); transition: background 0.2s, box-shadow 0.2s; }
.st button:hover { background: rgba(255, 255, 255, 0.7); }
.st.active button { background: #fff; color: var(--text); box-shadow: 0 6px 18px -10px var(--primary); }
.st-dot { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--border); font-weight: 800; font-size: 0.9rem; transition: all 0.2s; }
.st.active .st-dot { border-color: transparent; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 4px 12px -4px var(--primary); }
.st.done .st-dot { border-color: transparent; color: #fff; background: #10b981; }
.st-label { display: flex; flex-direction: column; min-width: 0; font-weight: 700; font-size: 0.92rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-label small { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.step-head { padding: 14px 20px 0; }
.step-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.step-head h2 svg { color: var(--primary); flex: none; }
.step-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 20px 18px; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--primary) 30%, transparent) transparent; animation: fade 0.2s; }
.step-foot { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--border); background: #fcfbff; }
.step-count { margin: 0 auto; color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.btn-go { padding: 12px 22px; font-size: 1rem; }

.success { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, #ecfdf5, #f0fdfa); border: 1px solid #a7f3d0; }
.success > span { font-size: 1.8rem; }
.success strong { display: block; color: #065f46; }
.success small { color: #047857; }

/* preview card */
.gen-preview { position: static; display: flex; flex-direction: column; gap: 12px; padding: 16px; min-height: 0; }
.preview-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.live-badge { flex: none; font-size: 0.75rem; font-weight: 800; color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, white); padding: 4px 10px; border-radius: 999px; }
.live-badge.ok { color: #047857; background: #ecfdf5; }
.gen-preview .qr-data { margin: 0; min-width: 0; font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.gen-preview .qr-frame { flex: 1 1 0; min-height: 0; width: 100%; aspect-ratio: auto; background: none; container-type: size; display: grid; place-items: center; overflow: visible; }
.gen-preview .qr-canvas { width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); border-radius: 14px; overflow: hidden; background: #f9fafb; box-shadow: 0 14px 40px -18px var(--primary); }
.gen-preview .qr-frame.checker { background: none; }
.gen-preview .qr-frame.checker .qr-canvas { background: repeating-conic-gradient(#e5e7eb 0% 25%, #fff 0% 50%) 50% / 20px 20px; }
.preview-actions { display: flex; gap: 8px; }

/* mobile: compact preview strip on top, wizard below, still one screen */
@media (max-width: 900px) {
  .hero { padding: 4px 0 8px; }
  .hero-badges { display: none; }
  .gen-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 10px; }
  .gen-preview { order: -1; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'qr top' 'qr act'; align-items: center; gap: 8px 14px; padding: 10px; }
  .gen-preview .qr-frame { grid-area: qr; flex: none; width: clamp(110px, 20vh, 170px); height: clamp(110px, 20vh, 170px); max-width: none; margin: 0; }
  .preview-top { grid-area: top; flex-direction: column; align-items: flex-start; gap: 4px; }
  .gen-preview .qr-data { text-align: left; max-width: 100%; }
  .preview-actions { grid-area: act; flex-direction: column; }
  .gen-editor { padding: 0; }
  .stepper { padding: 6px; gap: 4px; }
  .st:not(:last-child)::after { display: none; }
  .st button { flex-direction: column; gap: 4px; padding: 6px 2px; text-align: center; }
  .st-dot { width: 30px; height: 30px; }
  .st-label { font-size: 0.74rem; align-items: center; }
  .st-label small { display: none; }
  .step-head { padding: 10px 14px 0; }
  .step-head h2 { font-size: 0.95rem; }
  .step-body { padding: 12px 14px 14px; }
  .step-foot { padding: 10px 14px; }
  .step-foot .btn { padding: 10px 14px; }
  .site { padding-bottom: 0; }
  .has-dock-ad .site { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .toast { bottom: 90px; }
}
@media (max-width: 380px) { .step-count { display: none; } .step-foot .btn-primary { margin-left: auto; } }

/* fit-ups */
.stepper { container-type: inline-size; }
@container (max-width: 620px) {
  .st button { gap: 7px; padding: 6px 8px; }
  .st-dot { width: 30px; height: 30px; }
  .st-label { font-size: 0.86rem; }
}
.toast { top: 74px; bottom: auto !important; white-space: nowrap; }
@media (max-width: 900px) {
  .preview-actions .btn { white-space: normal; padding: 10px 12px; font-size: 0.92rem; line-height: 1.2; }
}
@media (max-width: 520px) {
  .trial-banner { flex-wrap: nowrap; text-align: left; font-size: 0.78rem; line-height: 1.3; }
  .trial-banner .btn { flex: none; padding: 6px 10px; font-size: 0.78rem; }
  .hero h1 { font-size: 1.2rem; }
}

/* content type dropdown */
.field select.type-select { appearance: none; -webkit-appearance: none; cursor: pointer; font-weight: 700; padding: 13px 44px 13px 14px; border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236d28d9' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  background-color: color-mix(in srgb, var(--primary) 4%, white); }
.field select.type-select:hover { border-color: var(--primary); }

/* mobile bottom menu bar (steps) */
@media (max-width: 900px) {
  .stepper { display: none; }
  .site { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
  .has-dock-ad .site { padding-bottom: calc(var(--bottom-nav-h) + 70px + env(safe-area-inset-bottom)); }
  .bottom-nav { background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px); }
  .bn-item { position: relative; transition: color 0.2s; }
  .bn-icon { position: relative; display: grid; place-items: center; height: 30px; border-radius: 999px; padding: 0 16px; transition: background 0.2s; }
  .bn-item.active svg { background: none; padding: 0; width: auto; }
  .bn-item.active .bn-icon { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; box-shadow: 0 4px 12px -4px var(--primary); }
  .bn-item.done:not(.active) { color: #059669; }
  .bn-item.done:not(.active) .bn-icon::after { content: '✓'; position: absolute; top: -3px; right: 6px; width: 15px; height: 15px; border-radius: 50%; background: #10b981; color: #fff; font-size: 9px; font-weight: 900; display: grid; place-items: center; }
}

/* =====================================================================
   Responsive pass: wider page so side ads don't squeeze the generator,
   bottom banner on the first screen, small phones, short screens
   ===================================================================== */
.container { max-width: 1680px; }
.brand { white-space: nowrap; }

/* side ads: 160px columns on laptops, 300px only on big screens */
@media (min-width: 1200px) { .layout { grid-template-columns: 160px minmax(0, 1fr) 160px; } }
@media (min-width: 1600px) { .layout { grid-template-columns: 300px minmax(0, 1fr) 300px; } }
.ad-left .ad-placeholder, .ad-right .ad-placeholder { min-height: min(600px, calc(100vh - 120px)); }
.side-sticky { top: 72px; }

/* generator columns share space instead of a fixed-width preview */
.gen-grid { grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); }
@media (min-width: 1200px) { .main { container-type: inline-size; } }
@container (min-width: 1100px) { .gen-grid { grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); } }

/* stepper adapts to the editor width */
@container (max-width: 520px) {
  .st-label small { display: none; }
  .st button { justify-content: center; }
}
@container (max-width: 560px) {
  .st button { flex-direction: column; gap: 3px; padding: 6px 2px; text-align: center; }
  .st-label { font-size: 0.74rem; align-items: center; }
  .st:not(:last-child)::after { display: none; }
}

/* bottom banner directly under the generator */
.gen-bottom-ad { margin: 12px 0 0; padding: 6px 10px; }
.gen-bottom-ad .ad-label { margin-bottom: 2px; }
.gen-bottom-ad .ad-placeholder { min-height: 90px; padding: 8px; }
.ad-bottom-wide .ad-placeholder { min-height: 90px; }

/* short laptop screens: give the space to the generator */
@media (min-width: 901px) and (max-height: 820px) {
  .hero { padding: 2px 0 8px; }
  .hero h1 { font-size: 1.55rem; margin-bottom: 4px; }
  .hero-badges { display: none; }
  .trial-banner { padding: 6px 16px; font-size: 0.85rem; }
  .trial-banner .btn { padding: 4px 12px; }
  .step-head { padding-top: 10px; }
  .step-foot { padding: 8px 20px; }
}

/* tablet */
@media (max-width: 900px) {
  .tb-long { display: none; }
  .trial-banner { flex-wrap: nowrap; justify-content: space-between; text-align: left; padding: 6px 12px; }
  .trial-banner .btn { flex: none; }
}
@media (min-width: 600px) and (max-width: 900px) {
  .gen-preview { padding: 14px 18px; }
  .gen-preview .qr-frame { width: clamp(130px, 22vh, 200px); height: clamp(130px, 22vh, 200px); }
  .preview-actions { flex-direction: row; }
}

/* small phones */
@media (max-width: 400px) {
  .container { padding: 0 10px; }
  .header-inner { gap: 8px; height: 54px; }
  .brand { font-size: 1.05rem; gap: 8px; }
  .brand-logo img { width: 28px; height: 28px; }
  .auth-btns { gap: 6px; }
  .auth-btns .btn { padding: 6px 10px; font-size: 0.82rem; }
  .hero h1 { font-size: 1.05rem; }
  .gen-preview { gap: 6px 10px; }
  .preview-actions .btn { font-size: 0.85rem; padding: 9px 10px; }
  .step-head h2 { font-size: 0.9rem; }
  .step-foot { gap: 6px; }
  .step-foot .btn { padding: 9px 12px; font-size: 0.88rem; }
  .bn-icon { padding: 0 12px; }
}
@media (max-width: 900px) and (max-height: 700px) {
  .hero h1 { font-size: 1rem; margin-bottom: 4px; }
  .gen-preview .qr-frame { width: 100px; height: 100px; }
  .step-head { padding-top: 8px; }
  .step-body { padding-top: 8px; }
}
@media (max-width: 900px) { .gen-grid { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   "More below" indicators
   ===================================================================== */
/* inside a step: fade at the bottom + "Scroll for more ↓" pill */
.step-body-wrap { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.step-body-wrap .step-body { flex: 1; }
.step-body-wrap::after { content: ''; position: absolute; left: 0; right: 8px; bottom: 0; height: 56px; pointer-events: none; opacity: 0; transition: opacity 0.25s;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 85%); }
.step-body-wrap.has-more::after { opacity: 1; }
.more-hint { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 2; display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer;
  padding: 6px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: #fff; white-space: nowrap;
  background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 6px 16px -6px var(--primary); animation: fade 0.2s; }
.more-hint span { display: inline-block; animation: nudge 1.2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(3px); } }

/* page level: round ↓ button while the page continues below the screen */
.page-scroll-hint { position: fixed; right: 18px; bottom: 18px; z-index: 45; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  font-size: 1.2rem; font-weight: 800; color: var(--primary); background: #fff; box-shadow: 0 8px 22px -6px rgba(76, 29, 149, 0.45); border: 1.5px solid color-mix(in srgb, var(--primary) 25%, transparent); animation: fade 0.25s; }
.page-scroll-hint span { animation: nudge 1.2s ease-in-out infinite; }
.page-scroll-hint:hover { background: var(--primary); color: #fff; }
@media (max-width: 900px) {
  .page-scroll-hint { right: 12px; bottom: calc(var(--bottom-nav-h) + 12px + env(safe-area-inset-bottom)); width: 40px; height: 40px; }
  .has-dock-ad .page-scroll-hint { bottom: calc(var(--bottom-nav-h) + 82px + env(safe-area-inset-bottom)); }
}
@media (max-width: 900px) {
  .page-scroll-hint, .has-dock-ad .page-scroll-hint { left: 50%; right: auto; transform: translateX(-50%); width: auto; height: 20px; padding: 0 14px; border-radius: 10px 10px 0 0; border-bottom: 0;
    bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); font-size: 0.72rem; box-shadow: 0 -4px 12px -6px rgba(76, 29, 149, 0.4); }
  .has-dock-ad .page-scroll-hint { bottom: calc(var(--bottom-nav-h) + 70px + env(safe-area-inset-bottom)); }
  .page-scroll-hint::before { content: 'More'; margin-right: 4px; font-weight: 700; }
  .page-scroll-hint { display: flex; align-items: center; }
}

/* =====================================================================
   "QR ready → Download" guidance
   ===================================================================== */
.dl-hero { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; padding: 16px; border-radius: 16px; text-align: center;
  background: linear-gradient(135deg, #ecfdf5, color-mix(in srgb, var(--primary) 7%, white)); border: 1.5px solid #a7f3d0; }
.dl-hero-text strong { display: block; font-size: 1.15rem; color: #065f46; }
.dl-hero-text small { font-size: 0.95rem; color: #047857; font-weight: 600; }
.success .btn { margin-left: auto; flex: none; }
.format-btn { position: relative; }
.format-btn.rec { border-color: color-mix(in srgb, var(--primary) 45%, transparent); background: color-mix(in srgb, var(--primary) 5%, white); }
.rec-tag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.02em; color: #fff; background: #10b981; border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
.format-grid { padding-top: 6px; }

/* popup */
.ready-backdrop { position: fixed; inset: 0; z-index: 95; background: rgba(17, 24, 39, 0.6); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; animation: fade 0.2s; }
.ready-modal { position: relative; width: 100%; max-width: 400px; max-height: calc(100dvh - 32px); overflow-y: auto; background: #fff; border-radius: 22px; padding: 26px 22px 18px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); animation: pop 0.25s; }
.ready-x { position: absolute; right: 12px; top: 12px; }
.ready-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 1.9rem; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 14%, white), color-mix(in srgb, var(--accent) 14%, white)); }
.ready-icon.ok { background: #10b981; color: #fff; font-weight: 900; border-radius: 50%; }
.ready-modal h2 { margin: 0; font-size: 1.4rem; }
.ready-sub { margin: -4px 0 0; color: var(--muted); }
.ready-sub b { color: var(--text); }
.ready-qr { width: min(220px, 52vw, 30dvh); aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #f9fafb; display: grid; place-items: center; box-shadow: 0 14px 34px -16px var(--primary); margin: 4px 0; }
.ready-qr img { width: 100%; height: 100%; display: block; }
.ready-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #e5e7eb; border-top-color: var(--primary); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ready-row { display: flex; gap: 8px; width: 100%; }
.ready-row .btn { flex: 1; }
.ready-formats { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; font-size: 0.85rem; color: var(--muted); }
.ready-formats .chip { padding: 5px 12px; font-size: 0.8rem; text-transform: none; }
.ready-link { border: 0; background: none; color: var(--muted); font-weight: 600; font-size: 0.88rem; cursor: pointer; text-decoration: underline; padding: 4px; }
.btn-lg svg { flex: none; }

/* =====================================================================
   Multi-type download + "Create new QR code" + auto back to start
   ===================================================================== */
.dl-pick-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.dl-pick-head .panel-title { margin: 0; }
.dl-all { font-weight: 700; font-size: 0.85rem; color: var(--primary); cursor: pointer; }
.dl-all input { accent-color: var(--primary); width: 16px; height: 16px; }
.format-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding-top: 8px; }
.format-btn { position: relative; padding: 14px 4px 10px; color: var(--muted); }
.format-btn.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, white); color: var(--primary); box-shadow: 0 6px 16px -10px var(--primary); }
.format-btn.on strong { color: var(--primary); }
.fmt-check { position: absolute; top: 6px; left: 6px; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--border); background: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 900; color: #fff; }
.format-btn.on .fmt-check { background: var(--primary); border-color: var(--primary); }
.fmt-done { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 0.62rem; font-weight: 800; color: #fff; background: #10b981; border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
.format-btn.ok { border-color: #10b981; }
.format-btn.rec:not(.on) { background: #fff; }
.compact .format-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.compact .format-btn { padding: 12px 2px 8px; }
.ready-modal .download-panel { width: 100%; gap: 10px; }
.ready-modal .dl-pick-head .panel-title { font-size: 0.72rem; }
.btn-dl { margin-top: 2px; }
.btn-dl:disabled { animation: none; }

.dl-hero-line { padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, #ecfdf5, color-mix(in srgb, var(--primary) 6%, white)); border: 1.5px solid #a7f3d0; margin-bottom: 12px; }
.dl-hero-line strong { font-size: 1.05rem; }

/* highlighted "Create new QR code" */
.btn-new { color: #fff; background: linear-gradient(135deg, #10b981, #059669 45%, var(--primary)); background-size: 200% 200%; animation: shine 2.4s ease infinite, pulse-green 1.6s infinite;
  box-shadow: 0 8px 22px -8px #059669; }
.btn-new:hover { filter: brightness(1.06); }
@keyframes shine { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes pulse-green { 0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); } 50% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); } }
.new-code { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.home-count { margin: 0; text-align: center; font-size: 0.86rem; color: var(--muted); }
.home-count b { color: var(--primary); }
.home-count button { margin-left: 8px; border: 0; background: none; padding: 0; color: var(--primary); font-weight: 700; text-decoration: underline; cursor: pointer; }

@media (max-width: 520px) {
  .format-grid { gap: 5px; }
  .format-btn { padding: 14px 2px 8px; }
  .format-btn strong { font-size: 0.8rem; }
  .format-btn small { display: none; }
  .fmt-check { width: 15px; height: 15px; top: 4px; left: 4px; font-size: 9px; }
  .rec-tag, .fmt-done { font-size: 0.55rem; padding: 0 5px; }
}
.compact .format-btn { flex-direction: row; justify-content: center; gap: 5px; padding: 10px 2px; }
.compact .fmt-check { position: static; flex: none; }
.compact .format-btn strong { font-size: 0.82rem; }
.toast { white-space: normal; text-align: center; max-width: calc(100vw - 24px); width: max-content; border-radius: 14px; }

/* ---------- QR validity (website) ---------- */
.validity-box { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--primary) 5%, white); border: 1.5px dashed color-mix(in srgb, var(--primary) 30%, transparent); }
.validity-box small { color: var(--muted); font-size: 0.8rem; }
.validity-badge { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 0.75rem; font-weight: 700; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.validity-badge.forever { color: #065f46; background: #ecfdf5; border-color: #a7f3d0; }
.validity-row { margin: -4px 0 12px; }
.preview-top { flex-wrap: wrap; }
.ready-modal .validity-badge { font-size: 0.82rem; }

/* =====================================================================
   Wallet, credits, add-on prices, robot check
   ===================================================================== */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.turnstile { display: flex; justify-content: center; min-height: 65px; }

.wallet-chip { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid color-mix(in srgb, #f59e0b 45%, transparent); background: #fffbeb; color: #92400e;
  border-radius: 999px; padding: 6px 10px 6px 12px; font-weight: 700; font-size: 0.9rem; cursor: pointer; white-space: nowrap; }
.wallet-chip b { color: #78350f; }
.wallet-chip .wc-plus { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #f59e0b; color: #fff; font-size: 0.8rem; margin-left: 2px; }
.wallet-chip:hover { background: #fef3c7; }
.user-menu, .auth-btns { margin-left: 0; }
.header-inner .wallet-chip { margin-left: auto; }
@media (min-width: 721px) { .header-inner .wallet-chip { margin-left: 0; } }
@media (max-width: 420px) { .wallet-chip .wc-label { display: none; } }

.cost-box { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 8px; width: 100%; font-size: 0.8rem; color: var(--muted); text-align: center; }
.cost-box b { color: var(--text); }
.cost-box small { padding: 1px 8px; border-radius: 999px; background: #ecfdf5; color: #047857; font-weight: 700; }
.cost-box small.low { background: #fef2f2; color: #b91c1c; }
.preview-actions { flex-wrap: wrap; }
@media (max-width: 900px) { .cost-box { justify-content: flex-start; text-align: left; font-size: 0.72rem; } }
.charged-line { margin: 0; font-size: 0.85rem; color: var(--muted); }
.addon-note { margin: 0; padding: 8px 12px; border-radius: 12px; font-size: 0.84rem; background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.addon-note.on { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.fmt-lock { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 0.62rem; font-weight: 800; color: #92400e; background: #fde68a; border-radius: 999px; padding: 1px 7px; white-space: nowrap; }

.wallet-modal { position: relative; width: 100%; max-width: 440px; max-height: calc(100dvh - 32px); overflow-y: auto; background: #fff; border-radius: 22px; padding: 22px 20px 18px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); animation: pop 0.2s; }
.wallet-x { position: absolute; right: 12px; top: 12px; }
.wallet-head { display: flex; align-items: center; gap: 12px; }
.wallet-coin { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; background: linear-gradient(135deg, #fef3c7, #fde68a); flex: none; }
.wallet-head h2 { margin: 0; font-size: 1.2rem; }
.wallet-head p { margin: 0; color: var(--muted); }
.wallet-head p b { font-size: 1.4rem; color: var(--text); }
.wallet-need { margin: 0; padding: 10px 12px; border-radius: 12px; background: #fef2f2; color: #991b1b; font-size: 0.88rem; border: 1px solid #fecaca; }
.wallet-form { display: flex; flex-direction: column; gap: 10px; }
.w-step { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.92rem; margin-top: 4px; }
.w-step span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.w-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
.w-pack { border: 1.5px solid var(--border); background: #fff; border-radius: 12px; padding: 8px 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.w-pack strong { font-size: 1.05rem; }
.w-pack small { color: var(--muted); font-size: 0.72rem; }
.w-pack.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, white); color: var(--primary); }
.w-custom input { font-size: 16px; }
.w-pay { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: #f9fafb; border: 1px solid var(--border); }
.upi-qr { width: 150px; height: 150px; border-radius: 10px; overflow: hidden; background: #fff; }
.upi-qr svg { width: 100% !important; height: 100% !important; display: block; }
.w-pay-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 0.85rem; }
.w-pay-info small { color: var(--muted); }
.w-upi { display: flex; align-items: center; gap: 6px; min-width: 0; }
.w-upi code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px; font-size: 0.82rem; }
.w-upi button { border: 0; background: var(--primary); color: #fff; border-radius: 8px; padding: 5px 10px; font-weight: 700; font-size: 0.78rem; cursor: pointer; }
.w-amount { color: #047857; font-size: 1rem; }
@media (max-width: 400px) { .w-pay { grid-template-columns: 1fr; justify-items: center; text-align: center; } .w-upi { width: 100%; } }
.w-sent { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.w-sent h3 { margin: 0; }
.w-sent p { margin: 0; color: var(--muted); }
.btn-whatsapp { background: #25d366; color: #fff; box-shadow: 0 8px 20px -8px #128c7e; }
.btn-whatsapp:hover { background: #1fb855; }
.w-history h3 { margin: 6px 0 6px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.w-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.w-row small { display: block; color: var(--muted); font-size: 0.75rem; }
.w-row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.w-pill { font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.w-pill.amber { background: #fffbeb; color: #92400e; }
.w-pill.green { background: #ecfdf5; color: #047857; }
.w-pill.red { background: #fef2f2; color: #b91c1c; }
.w-wa { font-size: 0.75rem; color: #128c7e; font-weight: 700; }
.w-plus { color: #047857; }
.w-minus { color: #b91c1c; }
.cost-box.free { color: #065f46; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 10px; padding: 6px 10px; }
.validity-box.fixed strong { font-size: 0.92rem; }

/* ---------- SEO landing pages ---------- */
.hero-intro { margin: 0 auto 4px; max-width: 760px; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 900px) { .hero-intro { display: none; } }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--primary); text-decoration: none; }
.seo-body { padding: 22px 26px; margin-bottom: 28px; line-height: 1.65; }
.seo-body h2 { font-size: 1.25rem; text-align: left; margin: 18px 0 8px; }
.seo-body h2:first-child { margin-top: 0; }
.seo-body ol, .seo-body ul { padding-left: 22px; }
.seo-body li { margin: 4px 0; }
.seo-body code { background: #f3f4f6; border-radius: 6px; padding: 1px 6px; font-size: 0.88em; }
.popular { margin: 32px 0; }
.popular-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.popular-link { display: block; padding: 12px 14px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.92rem; border: 1px solid transparent; transition: border-color 0.15s, transform 0.15s; }
.popular-link:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.popular-link::before { content: '▸ '; color: var(--primary); }
@media (max-width: 520px) { .seo-body { padding: 16px; } }
.w-apps { display: grid; gap: 6px; margin: 4px 0 10px; }
.w-apps small { color: var(--muted, #6b7280); }
.w-apps-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.w-app { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 10px; border-radius: 10px; background: var(--app); color: #fff; font-weight: 700; font-size: 0.9rem; text-decoration: none; text-align: center; }
.w-app:active { transform: scale(0.98); }
.upi-apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 6px; }
.upi-app { min-height: 38px; padding: 6px 8px; border-radius: 10px; border: 2px solid var(--app); background: #fff; color: var(--app); font-weight: 700; font-size: 0.85rem; cursor: pointer; }
.upi-app.on { background: var(--app); color: #fff; }
.qr-canvas img { width: 100%; height: 100%; object-fit: contain; display: block; }
.step-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.step-head h2 { min-width: 0; }
.btn-reset { flex: none; border: 1px solid var(--border, #e5e7eb); background: #fff; color: var(--muted, #6b7280); border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: 0.8rem; cursor: pointer; }
.btn-reset:hover { color: #dc2626; border-color: #fca5a5; }
/* Share on WhatsApp next to Download */
.btn-whatsapp { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font-weight: 800; }
.btn-wa { flex: none; }
.btn-wa-icon { flex: none; padding: 10px 12px; border-radius: 12px; }
.download-panel .btn-whatsapp { margin-top: 8px; }
/* "QR is ready" popup: never squash items (the QR got cut); scroll the popup instead */
.ready-modal > * { flex-shrink: 0; }
.ready-qr img { object-fit: contain; } /* UPI QR with name / UPI ID below is taller than wide */
/* QR in the "ready" popup: fixed square that can never be squashed or cropped */
.ready-qr { --rq: min(220px, 52vw, 30dvh); flex: none; width: var(--rq); height: var(--rq); min-height: var(--rq); aspect-ratio: auto; }
.ready-qr img { object-fit: contain; }
/* About / Contact / Privacy / Terms text */
.prose { line-height: 1.7; }
.prose h2 { margin: 1.6em 0 0.5em; font-size: 1.2rem; color: var(--text, #111827); }
.prose h3 { margin: 1.2em 0 0.4em; font-size: 1.02rem; color: var(--text, #111827); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.3em 0; }
.prose a { color: var(--primary); font-weight: 600; }
.prose .cta { display: inline-block; margin-top: 6px; padding: 10px 18px; border-radius: 12px; background: var(--primary); color: #fff; text-decoration: none; }
.contact-ways { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.contact-ways .btn { text-decoration: none; }

/* ---- Core PHP version ---- */
[hidden] { display: none !important; }
.account-area { display: contents; }

/* "SAMPLE" watermark drawn on top of the QR itself (no extra element, no layout change) */
.qr-canvas.is-sample { position: relative; }
.qr-canvas.is-sample::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg transform='rotate(-30 50 50)'%3E%3Crect x='7' y='36' width='86' height='28' rx='4' fill='white' fill-opacity='.45' stroke='%23dc2626' stroke-opacity='.65' stroke-width='1.6'/%3E%3Ctext x='50' y='57' text-anchor='middle' font-family='Arial,sans-serif' font-weight='900' font-size='22' letter-spacing='2' fill='%23dc2626' fill-opacity='.65'%3ESAMPLE%3C/text%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat; }

/* ---------- visual polish (colors, shadows, hover only: no sizing / layout changes) ---------- */
.site-header { box-shadow: 0 6px 24px -14px rgba(76, 29, 149, 0.45); border-bottom-color: transparent; }
.site-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary)); opacity: 0.85; }
.brand { letter-spacing: -0.01em; }
.top-nav a { transition: color 0.15s, background 0.15s; }

.hero-pill { box-shadow: 0 6px 16px -10px var(--primary); }
.hero-badges li { box-shadow: 0 4px 10px -8px #059669; transition: transform 0.15s; }
.hero-badges li:hover { transform: translateY(-2px); }

.card { box-shadow: 0 18px 40px -22px rgba(76, 29, 149, 0.4), 0 2px 6px rgba(76, 29, 149, 0.05); border-color: rgba(124, 58, 237, 0.14); }
.gen-preview { background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--primary) 4%, white)); }

.steps li, .feature { border: 1px solid rgba(124, 58, 237, 0.1); transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; }
.steps li:hover, .feature:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -20px rgba(109, 40, 217, 0.45); border-color: color-mix(in srgb, var(--primary) 35%, transparent); }
.feature-icon { display: inline-block; filter: drop-shadow(0 4px 6px rgba(109, 40, 217, 0.25)); }

.btn-primary { box-shadow: 0 10px 22px -10px var(--primary); transition: transform 0.12s, box-shadow 0.15s, filter 0.15s; }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 14px 26px -10px var(--primary); }
.btn-ghost { transition: background 0.15s, transform 0.12s; }
.btn-ghost:hover:not(:disabled) { transform: translateY(-1px); }

input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea { transition: border-color 0.15s, box-shadow 0.15s; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); }

.gen-preview .qr-canvas { box-shadow: 0 22px 50px -22px var(--primary), 0 0 0 6px #fff, 0 0 0 7px color-mix(in srgb, var(--primary) 18%, transparent); }
.live-badge { box-shadow: 0 4px 10px -6px var(--primary); }
.site-footer { background: linear-gradient(135deg, #111827, #1e1b4b); }

@media (prefers-reduced-motion: reduce) {
  .steps li, .feature, .hero-badges li, .btn-primary, .btn-ghost { transition: none; }
}

/* Reserve space for content that arrives after load (stops the page jumping: CLS) */
#trial-banner { min-height: 40px; }
.ad-bottom-wide { min-height: 130px; }
