:root { --paper: #e9dcbf; --panel: #fffdf8; --panel-2: #f6efdf; --ink: #201709; --muted: #7a6b4e; --line: #d8c79e; --accent: #b05607; --accent-ink: #fffbf3; --accent-soft: #fbe7c4; --gold: #9a6700; --gold-soft: #f2e6cd; --danger: #a3311a; --radius: 10px; --radius-lg: 18px; --shadow: 0 1px 2px rgba(32,23,9,.08); --tick: 2px 2px 0 var(--ink); }
:root[data-theme="dark"] { --paper: #171209; --panel: #241b11; --panel-2: #2c2115; --ink: #f6ecd9; --muted: #b8a483; --line: #3c2e1c; --accent: #f2a33b; --accent-ink: #211304; --accent-soft: #3a2a12; --gold: #d9a94f; --gold-soft: #332a17; --danger: #e2836a; --shadow: 0 1px 2px rgba(0,0,0,.35); --tick: 2px 2px 0 var(--ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #171209; --panel: #241b11; --panel-2: #2c2115; --ink: #f6ecd9; --muted: #b8a483; --line: #3c2e1c; --accent: #f2a33b; --accent-ink: #211304; --accent-soft: #3a2a12; --gold: #d9a94f; --gold-soft: #332a17; --danger: #e2836a; --shadow: 0 1px 2px rgba(0,0,0,.35); }
}
* { box-sizing: border-box; }
html, body { margin: 0px; padding: 0px; }
body { background: var(--paper); color: var(--ink); font-family: Inter, sans-serif; min-height: 100vh; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent-soft); }
.shell { max-width: 1040px; margin: 0px auto; padding: 0px 18px 70px; }
.hero { position: relative; padding: 30px 22px 28px; margin: 0px -18px 24px; overflow: hidden; background: var(--ink); color: var(--accent-ink); border-radius: 0px 0px 22px 22px; }
.hero::before { content: ""; position: absolute; inset: 0px; background-image: radial-gradient(var(--accent) 1.6px, transparent 1.6px); background-size: 15px 15px; background-position: -4px -4px; opacity: 0.16; mask-image: radial-gradient(circle at 92% 12%, black, transparent 58%); }
.hero-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 46px; height: 46px; flex-shrink: 0; border-radius: 11px; background: var(--accent); display: grid; place-items: center; box-shadow: rgba(0, 0, 0, 0.35) 2px 2px 0px; animation: 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3) 0s 1 normal both running mark-in; }
@keyframes mark-in { 
  0% { transform: scale(0.6) rotate(-8deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.h1-kw{display:block;font-size:14px;font-weight:600;letter-spacing:0;opacity:.85;margin-top:2px}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
h1 { font-family: "Space Grotesk", sans-serif; font-size: 28px; font-weight: 700; margin: 0px; letter-spacing: -0.015em; color: var(--accent-ink); }
.tagline { margin: 3px 0px 0px; font-size: 13.5px; color: var(--accent-ink); opacity: 0.72; }
.theme-toggle { font-size: 12.5px; font-weight: 600; color: var(--accent-ink); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; padding: 8px 15px; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: 0.15s; }
.theme-toggle:hover { border-color: var(--accent); background: rgba(255, 255, 255, 0.14); }
.tabs { display: flex; gap: 7px; overflow-x: auto; padding: 3px 3px 8px; margin-bottom: 16px; scrollbar-width: thin; }
.tabs::-webkit-scrollbar { height: 5px; }
.tabs::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.tab-btn { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; font-family: "Space Grotesk", sans-serif; font-size: 13.5px; font-weight: 600; background: var(--panel); color: var(--muted); border: 1.5px solid var(--line); padding: 9px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: transform 0.12s, border-color 0.12s, color 0.12s, background 0.12s; }
.tab-btn:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-1px); }
.tab-btn.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 2px 2px 0 var(--ink); }
.tabpanel { display: none; }
.tabpanel.active { display: block; animation: 0.25s ease 0s 1 normal none running fadein; }
@keyframes fadein { 
  0% { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0px); }
}
.grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; align-items: start; }
@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
}
.panel { background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); position: relative; }
.panel-title { font-family: "Space Grotesk", sans-serif; font-size: 15px; font-weight: 600; margin: 0px 0px 4px; }
.panel-sub { font-size: 12.5px; color: var(--muted); margin: 0px 0px 18px; }
.preview-panel { border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); transform: none; transition: box-shadow 0.2s; }
.preview-panel:hover { box-shadow: 4px 5px 0 var(--ink); }
.preview-panel::before { content: ""; position: absolute; top: 0px; left: 20px; right: 20px; height: 0px; border-top: 2px dashed var(--line); }
.preview-panel::after { content: ""; position: absolute; top: -7px; right: 26px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .preview-panel { transform: none; }
}
@media (max-width: 760px) {
  .preview-panel { transform: none; }
}
.field { margin-bottom: 15px; }
.field:last-child { margin-bottom: 0px; }
label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
input[type="text"], input[type="number"], input[type="url"], input[type="tel"], input[type="email"], input[type="datetime-local"], textarea, select { width: 100%; padding: 10px 12px; font-family: Inter, sans-serif; font-size: 14px; color: var(--ink); background: var(--panel-2); border: 1.5px solid var(--line); border-radius: var(--radius); outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; min-height: 76px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) {
  .row2, .row3 { grid-template-columns: 1fr; }
}
.segmented { display: flex; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.segmented button { flex: 1 1 0%; padding: 9px 10px; background: var(--panel-2); border-top: none; border-bottom: none; border-left: none; border-image: initial; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--muted); font-family: Inter, sans-serif; border-right: 1.5px solid var(--line); transition: 0.15s; }
.segmented button:last-child { border-right: none; }
.segmented button.active { background: var(--accent); color: var(--accent-ink); }
button.primary { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 14px; background: var(--accent); color: var(--accent-ink); border: 1.5px solid var(--ink); padding: 11px 20px; border-radius: var(--radius); cursor: pointer; margin-top: 6px; box-shadow: 3px 3px 0 var(--ink); transition: transform 0.1s, box-shadow 0.1s, filter 0.15s; }
button.primary:hover { filter: brightness(1.05); }
button.primary:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
button.ghost { font-family: Inter, sans-serif; font-size: 12.5px; font-weight: 600; background: var(--panel-2); border: 1.5px solid var(--line); color: var(--ink); padding: 9px 14px; border-radius: var(--radius); cursor: pointer; transition: 0.15s; }
button.ghost:hover { border-color: var(--accent); color: var(--accent); }
button.primary:focus-visible, button.ghost:focus-visible, .tab-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes btn-spin { 
  100% { transform: rotate(360deg); }
}
.upload-progress { width: 100%; height: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-top: 10px; display: none; }
.upload-progress-fill { height: 100%; width: 0%; background: var(--accent); border-radius: 999px 0px 0px 999px; transition: width 0.25s; }
details.style-box { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
details.style-box summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--muted); list-style: none; display: flex; align-items: center; gap: 6px; }
details.style-box summary::-webkit-details-marker { display: none; }
details.style-box summary::before { content: "⚙"; }
.style-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 12px; }
@media (max-width: 480px) {
  .style-grid { grid-template-columns: 1fr; }
}
.color-field { display: flex; align-items: center; gap: 8px; }
.color-field input[type="color"] { width: 34px; height: 34px; padding: 0px; border: 1px solid var(--line); border-radius: var(--radius); background: none; cursor: pointer; }
.preview { display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 300px; justify-content: center; }
.empty-state { color: var(--muted); font-size: 13px; max-width: 220px; line-height: 1.55; text-align: center; animation: 0.25s ease 0s 1 normal none running fadein; }
.info-panel { scroll-margin-top: 18px; }
@media (max-width: 480px) {
  .preview-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .preview-actions .download-main { grid-column: 1 / -1; width: 100%; }
  .preview-actions button { width: 100%; min-height: 44px; }
  .info-nav { gap: 6px; }
  .info-nav button { min-height: 40px; }
}
.theme-picker { display: grid; grid-template-columns: repeat(4, minmax(0px, 1fr)); gap: 8px; margin-top: 10px; }
.theme-option { min-height: 74px; padding: 6px; border: 1.5px solid var(--line); background: var(--panel-2); border-radius: 10px; cursor: pointer; text-align: center; color: var(--ink); font-size: 10px; font-weight: 700; transition: 0.12s; }
.theme-option:hover { border-color: var(--accent); }
.theme-option.active { border: 2px solid var(--accent); padding: 5px; box-shadow: 0 0 0 2px var(--accent-soft); }
.theme-swatch { display: block; height: 38px; border-radius: 7px; margin-bottom: 4px; border: 1px solid rgba(0, 0, 0, 0.12); }
@media (max-width: 480px) {
  .theme-picker { grid-template-columns: repeat(2, minmax(0px, 1fr)); }
}
.info-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0px 4px; }
.info-nav button { background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 7px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer; }
.info-nav button:hover { border-color: var(--accent); color: var(--accent); }
.info-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.qr-status { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--accent-ink); opacity: 0.7; margin-top: 8px; }
.qr-status.ok { color: var(--accent); opacity: 1; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentcolor; display: inline-block; }
.recents { margin-top: 26px; }
.recents-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.recents-head h2 { font-family: "Space Grotesk", sans-serif; font-size: 14px; margin: 0px; }
.recents-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.clear-link { font-size: 11.5px; color: var(--muted); background: none; border: none; cursor: pointer; text-decoration: underline; }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--paper); font-size: 13px; padding: 10px 18px; border-radius: 999px; opacity: 0; pointer-events: none; transition: 0.25s; z-index: 50; }
button { min-height: 44px; -webkit-tap-highlight-color: transparent; }
input, select, textarea { min-height: 44px; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.style-extra { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 10px; }
.style-extra input[type="file"] { width: 100%; font-size: 11px; }
.logo-preview { max-width: 64px; max-height: 64px; display: none; margin-top: 5px; }
.recent-tools { display: flex; gap: 7px; align-items: center; }
.recent-search { max-width: 210px; min-height: 38px; }
@media (max-width: 760px) {
  .style-extra { grid-template-columns: 1fr; }
  .health-grid { grid-template-columns: 1fr; }
  .recent-tools { flex-wrap: wrap; }
  .shell { width: min(100%, 980px); padding: 12px; }
  .hero { padding: 22px 16px 24px; margin: 0px -12px 22px; border-radius: 0px 0px 16px 16px; }
  .tabs { overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab-btn { flex: 0 0 auto; }
  .grid { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
  .preview-actions { grid-template-columns: 1fr 1fr; }
  .preview-actions .download-main { grid-column: 1 / -1; }
  .qr-stage-wrap { padding: 14px; }
  .qr-api-image { max-width: min(100%, 360px); height: auto; }
  .info-panel { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation: auto ease 0s 1 normal none running none !important; transition: none !important; scroll-behavior: auto !important; }
}
.seo { margin-top: 34px; display: grid; gap: 18px; }
.seo-card { background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.seo h2 { font-family: "Space Grotesk", sans-serif; font-size: 21px; line-height: 1.3; margin: 0px 0px 10px; letter-spacing: -0.01em; color: var(--ink); }
.seo h3 { font-family: "Space Grotesk", sans-serif; font-size: 15px; line-height: 1.35; margin: 0px 0px 6px; color: var(--ink); }
.seo p, .seo li { font-size: 13.5px; line-height: 1.75; color: var(--muted); margin: 0px 0px 10px; }
.seo ol, .seo ul { margin: 8px 0px 0px; padding-left: 20px; }
.seo li { margin-bottom: 6px; }
.seo li strong, .seo p strong { color: var(--ink); font-weight: 600; }
.seo-grid { display: grid; grid-template-columns: repeat(2, minmax(0px, 1fr)); gap: 12px; margin-top: 14px; }
.seo-item { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 15px; }
.seo-item p { margin: 0px 0px 8px; font-size: 13px; line-height: 1.65; }
.seo-item p:last-child { margin-bottom: 0px; }
.seo-open { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 1px; }
.seo-open:hover { color: var(--accent); }
.seo-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.seo-faq h3 { margin: 16px 0px 4px; }
.seo-faq h3:first-of-type { margin-top: 6px; }
.seo-faq p { margin: 0px; }
.site-foot { margin-top: 26px; text-align: center; font-size: 12px; line-height: 1.8; color: var(--muted); }
.site-foot a { color: var(--muted); text-decoration: underline; }
.site-foot a:hover { color: var(--accent); }
.site-foot p { margin: 0px 0px 4px; }
@media (max-width: 640px) {
  .seo-grid { grid-template-columns: 1fr; }
  .seo-card { padding: 18px; }
  .seo h2 { font-size: 19px; }
}
.frame-picker { display: grid; grid-template-columns: repeat(4, minmax(0px, 1fr)); gap: 8px; margin-top: 10px; }
.frame-option { min-height: 78px; padding: 6px 3px; border: 1.5px solid var(--line); background: var(--panel-2); border-radius: 10px; cursor: pointer; text-align: center; color: var(--ink); font-size: 10.5px; font-weight: 700; transition: 0.12s; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.frame-option svg { width: 42px; height: 42px; display: block; }
.frame-option:hover { border-color: var(--accent); }
.frame-option.active { border: 2px solid var(--accent); padding: 5px 2px; box-shadow: 0 0 0 2px var(--accent-soft); }
.style-scan-text { width: 100%; }
.panel, .preview-panel, .preview { min-width: 0px; }
.preview { max-width: 100%; }
.ad-slot { margin: 22px auto; max-width: 100%; min-height: 280px; text-align: center; overflow: hidden; }
.ad-slot small { display: block; font-size: 11px; opacity: 0.6; margin-bottom: 4px; }
.info-nav { flex-wrap: wrap; }
[hidden] { display: none !important; }
.poster-box { margin-top: 20px; padding: 16px; border: 1.5px dashed var(--line); border-radius: 16px; background: var(--panel-2); }
.poster-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.poster-head b { display: block; font-size: 15px; }
.poster-head small { color: var(--muted); font-size: 12px; }
.poster-preview { display: block; width: 100%; max-width: 300px; height: auto; aspect-ratio: 1240 / 1754; margin: 0px auto 16px; border-radius: 12px; box-shadow: rgba(0, 0, 0, 0.2) 0px 12px 32px; background: var(--panel); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 38px; height: 38px; min-height: 38px; padding: 0px; border-radius: 50%; border: 3px solid var(--panel); box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.swatch:hover { transform: scale(1.08); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 3px var(--ink); transform: scale(1.12); }
.pay-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pay-chips button { min-height: 36px; padding: 6px 14px; border: 1px solid var(--line); background: var(--panel-2); border-radius: 999px; color: var(--ink); font-size: 13px; cursor: pointer; }
.pay-chips button:hover { border-color: var(--accent); color: var(--accent); }
.upi-check { display: block; margin-top: 6px; font-size: 12px; min-height: 16px; color: var(--muted); }
@keyframes qbPop { 
  0% { opacity: 0; transform: translateY(12px) scale(0.985); }
  100% { opacity: 1; transform: none; }
}
.preview-panel { scroll-margin-top: 12px; }
@media (prefers-reduced-motion: reduce) {
  .qb-pop { animation: auto ease 0s 1 normal none running none; }
  .swatch { transition: none; }
}
.scan-view { position: relative; margin-top: 12px; border-radius: 14px; overflow: hidden; background: rgb(0, 0, 0); }
.scan-view[hidden] { display: none; }
.scan-view video { display: block; width: 100%; max-height: 340px; min-height: 220px; object-fit: cover; }
.scan-frame { position: absolute; inset: 16%; pointer-events: none; }
.scan-frame i { position: absolute; width: 38px; height: 38px; border: 0px solid rgb(255, 255, 255); filter: drop-shadow(rgba(0, 0, 0, 0.6) 0px 0px 3px); }
.scan-frame i:nth-child(1) { top: 0px; left: 0px; border-top-width: 5px; border-left-width: 5px; border-top-left-radius: 12px; }
.scan-frame i:nth-child(2) { top: 0px; right: 0px; border-top-width: 5px; border-right-width: 5px; border-top-right-radius: 12px; }
.scan-frame i:nth-child(3) { bottom: 0px; left: 0px; border-bottom-width: 5px; border-left-width: 5px; border-bottom-left-radius: 12px; }
.scan-frame i:nth-child(4) { bottom: 0px; right: 0px; border-bottom-width: 5px; border-right-width: 5px; border-bottom-right-radius: 12px; }
.scan-line { position: absolute; left: 6%; right: 6%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, rgb(34, 197, 94), transparent); box-shadow: rgb(34, 197, 94) 0px 0px 12px; animation: 2s ease-in-out 0s infinite normal none running scanMove; }
@keyframes scanMove { 
  0%, 100% { top: 6%; }
  50% { top: 92%; }
}
.scan-auto-toggle { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0px 4px; font-size: 13px; line-height: 1.5; color: var(--muted); font-weight: 400; }
.scan-auto-toggle span { font-weight: 400; }
.scan-auto-toggle input { margin-top: 3px; flex: 0 0 auto; }
:root[data-theme="dark"] .scan-warn { background: rgb(58, 42, 16); color: rgb(255, 207, 138); }
@media (prefers-reduced-motion: reduce) {
  .scan-line { animation: auto ease 0s 1 normal none running none; top: 50%; }
  .scan-card { animation: auto ease 0s 1 normal none running none; }
}
.skip-link{position:absolute;left:8px;top:-60px;z-index:100;background:var(--ink);color:var(--paper);padding:10px 14px;border-radius:8px;font-size:13px;font-weight:600;text-decoration:none}.skip-link:focus{top:8px}.crumbs{font-size:12px;margin:0 0 12px;color:var(--muted)}.crumbs a{color:var(--muted);text-decoration:underline}
:root[data-theme="light"] .site-foot,:root[data-theme="light"] .site-foot a,:root[data-theme="light"] .info-nav button{color:#6d5f44}
.hero .qr-status.ok{color:#f2a33b}
