/* UPI QR Generator local module. Scoped under .payqr-breakout to avoid changing site-wide styles. */
.payqr-breakout,
.payqr-breakout * { box-sizing: border-box; }
.payqr-breakout [hidden] { display: none !important; }
.payqr-breakout {
  --pq-bg: #050a12;
  --pq-bg-2: #0b0f19;
  --pq-panel: #0d1522;
  --pq-panel-2: #101927;
  --pq-line: #26364e;
  --pq-line-soft: rgba(94,126,169,.24);
  --pq-text: #f5f8ff;
  --pq-muted: #9caac1;
  --pq-soft: #c8d2e5;
  --pq-blue: #0b6dff;
  --pq-blue-2: #2658ff;
  --pq-cyan: #08d9ff;
  --pq-violet: #702cff;
  --pq-green: #16d976;
  --pq-danger: #ff6a7a;
  width: min(1512px, calc(100vw - 20px));
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 14px 0 38px;
  color: var(--pq-text);
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
}
.payqr-breakout button,
.payqr-breakout input { font: inherit; }
.payqr-breakout button { -webkit-tap-highlight-color: transparent; }
.payqr-breakout .sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important;
  margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important;
}
.payqr-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(76,104,145,.27);
  border-radius: 22px;
  background:
    radial-gradient(900px 380px at 74% -80px, rgba(0,126,255,.13), transparent 60%),
    linear-gradient(180deg, #07101b 0%, var(--pq-bg) 100%);
  box-shadow: 0 26px 80px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.025);
}
.payqr-shell::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.018), transparent 28%, transparent 72%, rgba(0,145,255,.015));
}
.payqr-navbar {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(240px, .8fr) auto minmax(250px, .8fr);
  align-items: center;
  gap: 18px;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(85,112,150,.22);
  background: rgba(6,13,23,.74);
  backdrop-filter: blur(20px);
  position: relative;
  z-index: 12;
}
.payqr-brand {
  color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; min-width: 0;
}
.brand-mark, .tool-icon {
  position: relative; display: grid; grid-template-columns: repeat(2, 8px); grid-template-rows: repeat(2, 8px); gap: 5px;
  width: 42px; height: 42px; flex: 0 0 42px; place-content: center; border-radius: 12px;
  background: linear-gradient(145deg, rgba(13,56,104,.72), rgba(6,24,46,.92));
  border: 1px solid rgba(60,129,219,.26); box-shadow: inset 0 0 20px rgba(11,109,255,.12);
}
.brand-mark i, .tool-icon i {
  border: 3px solid #68a9ff; border-radius: 3px; width: 8px; height: 8px; box-shadow: 0 0 12px rgba(51,135,255,.35);
}
.payqr-brand strong { display: block; font-size: 17px; line-height: 1.15; letter-spacing: -.01em; }
.payqr-brand small { display: block; margin-top: 3px; color: var(--pq-muted); font-size: 11px; white-space: nowrap; }
.nav-tabs { display: flex; justify-content: center; align-items: center; gap: 6px; }
.nav-tab, .profile-badge {
  border: 1px solid transparent; background: transparent; color: var(--pq-muted); cursor: pointer;
}
.nav-tab {
  min-height: 38px; border-radius: 10px; padding: 0 13px; font-size: 12px; font-weight: 650;
}
.nav-tab:hover { color: var(--pq-text); background: rgba(255,255,255,.035); }
.nav-tab.is-active { color: #eaf3ff; border-color: rgba(45,116,255,.55); background: linear-gradient(180deg, rgba(15,55,112,.74), rgba(12,38,79,.78)); box-shadow: inset 0 0 0 1px rgba(48,126,255,.12), 0 0 24px rgba(12,83,217,.08); }
.nav-actions { display: flex; justify-content: flex-end; align-items: center; gap: 9px; min-width: 0; }
.profile-badge {
  min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 5px 9px 5px 6px;
  border-color: rgba(88,116,154,.28); border-radius: 12px; background: rgba(13,23,37,.74); text-align: left; min-width: 0;
}
.profile-avatar { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(145deg,#2446d8,#6a30dd); color: white; font-size: 11px; font-weight: 800; }
.profile-copy { min-width: 0; }
.profile-copy strong, .profile-copy small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-copy strong { color: #e7eefb; font-size: 11px; }
.profile-copy small { color: #7f8ea6; font-size: 9px; margin-top: 2px; }
.profile-arrow { color: #7e8ba1; font-size: 13px; }

.payqr-grid {
  display: grid;
  grid-template-columns: minmax(500px, .84fr) minmax(650px, 1.16fr);
  gap: 14px;
  padding: 16px;
  position: relative;
  z-index: 2;
}
.payqr-grid > * { min-width: 0; }
.control-panel,
.preview-card {
  border: 1px solid rgba(75,104,144,.32);
  border-radius: 15px;
  background: linear-gradient(155deg, rgba(12,24,40,.95), rgba(8,17,29,.96));
  box-shadow: inset 0 1px rgba(255,255,255,.018);
}
.control-panel { padding: 20px 21px 18px; min-width: 0; }
.tool-title-row { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.tool-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; grid-template-columns: repeat(2,7px); grid-template-rows: repeat(2,7px); gap:4px; }
.tool-icon i { width: 7px; height: 7px; border-width: 2px; }
.tool-title-row h1 { margin: 0; color: #f5f7fb; font-size: clamp(18px, 1.45vw, 23px); line-height: 1.16; letter-spacing: -.02em; }
.tool-title-row p { margin: 5px 0 0; color: #9aa9c0; font-size: 12px; line-height: 1.4; }
.mode-switcher {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; border: 1px solid rgba(64,93,134,.37); border-radius: 11px;
  background: rgba(4,11,20,.6); margin-bottom: 16px;
}
.mode-tab {
  border: 1px solid transparent; border-radius: 8px; min-height: 39px; padding: 0 10px; background: transparent; color: #8493aa; cursor: pointer; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.mode-tab.is-active { color: #eef5ff; border-color: rgba(28,103,246,.6); background: linear-gradient(180deg, rgba(12,57,119,.76), rgba(9,38,82,.72)); box-shadow: 0 0 20px rgba(0,88,255,.08); }
.mode-dot { width: 7px; height: 7px; border-radius: 50%; background: #18da76; box-shadow: 0 0 9px rgba(24,218,118,.55); }
.mode-link { color: #63a5ff; font-size: 13px; }
.field-block { margin-bottom: 14px; }
.field-block label,
.option-group legend { display: block; color: #dce5f4; font-size: 12px; line-height: 1.3; font-weight: 760; margin-bottom: 7px; }
.label-muted { color: #8796ad; font-weight: 550; }
.input-shell { position: relative; }
.input-shell input {
  width: 100%; height: 46px; border-radius: 8px; border: 1px solid #33445f; outline: none; padding: 0 14px; color: #e8eef8;
  background: linear-gradient(180deg, rgba(12,25,43,.92), rgba(10,22,38,.94)); box-shadow: inset 0 1px 0 rgba(255,255,255,.016);
  font-size: 13px; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.input-shell input::placeholder { color: #64738a; opacity: 1; }
.input-shell input:focus { border-color: #226fff; box-shadow: 0 0 0 3px rgba(24,99,255,.12), inset 0 0 24px rgba(0,80,225,.035); }
.has-status-icon input { padding-right: 45px; }
.input-check {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 1;
  background: var(--pq-green); color: #052717; font-size: 12px; font-weight: 900; box-shadow: 0 0 10px rgba(22,217,118,.18);
}
.input-check.is-invalid { background: #522031; color: #ff9dad; }
.validation-text { margin: 6px 0 0; color: #29d97f; font-size: 11px; line-height: 1.35; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.validation-text small { color: #6f8098; font-size: 9px; font-weight: 550; margin-left: 2px; }
.validation-text.is-invalid { color: #ff7e91; }
.amount-shell input { padding-right: 42px; }
.currency-mark { position: absolute; right: 14px; top: 0; bottom: 0; height: 100%; display: flex; align-items: center; justify-content: center; transform: none; color: #91a2be; font-size: 18px; line-height: 1; }
.option-group { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.two-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.selection-card,
.color-card,
.template-card {
  position: relative; border: 1px solid #2c3d57; border-radius: 9px; color: #cbd5e5; background: rgba(11,23,39,.72); cursor: pointer;
  transition: border-color .14s ease, background .14s ease, box-shadow .14s ease, transform .08s ease;
}
.selection-card:hover,
.color-card:hover,
.template-card:hover { border-color: #48617f; background: rgba(14,29,48,.88); }
.selection-card:active,
.color-card:active,
.template-card:active { transform: scale(.995); }
.selection-card.is-selected,
.color-card.is-selected,
.template-card.is-selected { border-color: #1267f7; box-shadow: inset 0 0 0 1px rgba(12,103,255,.38), 0 0 22px rgba(14,85,220,.08); background: linear-gradient(180deg, rgba(13,44,88,.68), rgba(10,29,58,.62)); }
.selection-card { min-height: 65px; padding: 8px 34px 8px 9px; display: flex; align-items: center; gap: 10px; text-align: left; }
.dot-preview { width: 43px; height: 43px; border-radius: 8px; display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; place-content: center; padding: 7px; flex: 0 0 43px; background: linear-gradient(145deg,#060c14,#0d1a2a); border: 1px solid rgba(74,105,151,.25); }
.dot-preview i { width: 6px; height: 6px; background: #f4f6fb; justify-self: center; align-self: center; box-shadow: 0 0 5px rgba(255,255,255,.18); }
.rounded-preview i { border-radius: 3px; }
.micro-preview i { width: 4px; height: 4px; border-radius: 50%; }
.selection-copy { min-width: 0; }
.selection-copy strong, .selection-copy small { display: block; }
.selection-copy strong { color: #e9eff8; font-size: 11px; white-space: nowrap; }
.selection-copy small { color: #7f8da4; font-size: 9px; margin-top: 4px; white-space: nowrap; }
.radio-check,
.radio-ring { position: absolute; right: 9px; top: 9px; width: 17px; height: 17px; border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 1; padding: 0; }
.radio-check { background: #176dff; color: white; font-size: 10px; font-weight: 900; box-shadow: 0 0 10px rgba(23,109,255,.28); }
.radio-ring { border: 1px solid #44546d; }
.three-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.color-card { min-height: 49px; padding: 7px 30px 7px 8px; display: flex; align-items: center; gap: 9px; text-align: left; }
.color-card strong { font-size: 10px; color: #dfe7f5; white-space: nowrap; }
.color-orb { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 30px; border: 1px solid rgba(255,255,255,.08); box-shadow: inset 0 0 13px rgba(255,255,255,.12), 0 0 14px rgba(0,0,0,.26); }
.color-orb.indigo { background: radial-gradient(circle at 65% 25%,#1e72ff 0,#4131ff 38%,#5926e9 68%,#14268d 100%); }
.color-orb.emerald { background: radial-gradient(circle at 65% 25%,#20d69c 0,#05a878 44%,#0a714f 100%); }
.color-orb.royal { background: radial-gradient(circle at 65% 25%,#24c0ff 0,#087dff 44%,#1554ce 100%); }

.legend-hint { margin-left: 6px; color: #75869f; font-size: 9px; font-weight: 550; }
.app-selector-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding: 1px 1px 7px; scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: rgba(87,117,158,.42) transparent; overscroll-behavior-inline: contain;
}
.app-selector-scroll::-webkit-scrollbar { height: 5px; }
.app-selector-scroll::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(87,117,158,.38); }
.app-pill {
  flex: 0 0 auto; min-height: 45px; min-width: 116px; scroll-snap-align: start; border: 1px solid #2d405b; border-radius: 10px;
  background: rgba(11,23,39,.72); color: #cbd6e7; padding: 6px 28px 6px 8px; display: flex; align-items: center; gap: 7px;
  position: relative; cursor: pointer; transition: .15s ease; text-align: left;
}
.app-pill:hover { border-color: #4a6384; background: rgba(14,29,48,.9); }
.app-pill.is-selected { border-color: #156cf8; background: linear-gradient(180deg, rgba(14,49,96,.72), rgba(10,31,62,.68)); box-shadow: inset 0 0 0 1px rgba(23,109,255,.24); }
.app-pill strong { font-size: 9px; white-space: nowrap; }
.app-pill-logo { width: 34px; height: 25px; display: flex; align-items: center; justify-content: center; flex: 0 0 34px; }
.app-pill-logo svg { width: 100%; height: 100%; display: block; overflow: visible; }
.app-pill-check { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; border-radius: 50%; border: 1px solid #4a5c75; display: flex; align-items: center; justify-content: center; font-size: 9px; line-height: 1; color: transparent; }
.app-pill.is-selected .app-pill-check { color: #fff; border-color: #176dff; background: #176dff; }
.app-pill-all { min-width: 104px; padding-left: 34px; }
.app-pill-all .app-pill-check { left: 9px; right: auto; }
.app-selector-note { margin: 1px 0 0; color: #75869f; font-size: 8.5px; line-height: 1.4; }
.app-selector-note span { color: #5d9eff; font-weight: 800; }

.logo-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 10px; }
.logo-dropzone {
  min-height: 68px; border: 1px dashed #415471; border-radius: 9px; background: rgba(7,16,28,.48); display: flex; align-items: center; justify-content: center; gap: 10px;
  color: #a9b7cb; cursor: pointer; padding: 9px 12px; text-align: left;
}
.logo-dropzone:hover, .logo-dropzone.is-dragover { border-color: #2875ff; background: rgba(11,36,75,.42); }
.upload-icon { font-size: 25px; color: #a7c7ff; line-height: 1; }
.logo-dropzone strong, .logo-dropzone small { display: block; }
.logo-dropzone strong { font-size: 10px; font-weight: 600; }
.logo-dropzone small { font-size: 9px; color: #7f8fa7; margin-top: 3px; }
.logo-file-card { min-height: 68px; border: 1px solid #2f405a; border-radius: 9px; display: grid; grid-template-columns: 43px minmax(0,1fr) 18px; align-items: center; gap: 9px; padding: 8px 8px; background: rgba(11,23,39,.72); }
.logo-thumb { width: 43px; height: 43px; border-radius: 10px; background: #f8fafc; color: #07111d; display: grid; place-items: center; font-size: 21px; overflow: hidden; }
.logo-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-file-copy { min-width: 0; }
.logo-file-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #b9c5d7; font-size: 9px; font-weight: 600; }
.logo-file-copy button { margin: 5px 0 0; padding: 0; border: 0; background: transparent; color: #4f95ff; font-size: 9px; cursor: pointer; }
.remove-logo { border: 0; background: #28354a; color: #9aacc3; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; line-height: 1; padding: 0; }
.logo-error { min-height: 0; margin: 5px 0 0; color: #ff8191; font-size: 10px; }
.template-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.template-card { min-height: 54px; padding: 7px 26px 7px 8px; display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: center; gap: 8px; text-align: left; }
.template-card > span:nth-child(2) { min-width: 0; }
.template-card strong, .template-card small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.template-card strong { font-size: 9px; color: #e3eaf4; }
.template-card small { font-size: 8px; color: #74849d; margin-top: 3px; }
.template-icon { width: 27px; height: 27px; border: 1px solid #415270; border-radius: 7px; display: grid; place-items: center; color: #d8e4f4; background: rgba(8,16,29,.72); }

.preview-column { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.preview-card {
  position: relative; overflow: hidden; width: 100%; aspect-ratio: 848 / 676; min-height: 490px;
  background-color: #07101c;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.preview-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.015), inset 0 -90px 90px rgba(1,6,12,.04); }
.preview-toolbar { position: absolute; top: 15px; left: 15px; right: 15px; display: flex; justify-content: space-between; align-items: center; z-index: 9; pointer-events: none; }
.live-pill, .view-switch {
  position: relative;
  background: rgba(4,13,25,.76); border: 1px solid rgba(69,101,146,.32); border-radius: 8px; backdrop-filter: blur(10px); box-shadow: 0 5px 18px rgba(0,0,0,.14);
}
.live-pill { display: inline-flex; min-width: 112px; align-items: center; gap: 7px; min-height: 34px; padding: 0 11px; color: #b8c6dc; font-size: 10px; font-weight: 700; }
.live-pill span { color: #82b7ff; font-size: 13px; }
.view-switch { display: flex; padding: 4px; pointer-events: auto; box-shadow: -48px 0 0 4px rgba(4,13,25,.92), 0 5px 18px rgba(0,0,0,.14); }

.live-pill::before { content: ""; position: absolute; inset: -5px -10px -5px -5px; z-index: -1; border-radius: 10px; background: rgba(4,13,25,.9); }
.view-switch::before { content: ""; position: absolute; inset: -5px -5px -5px -52px; z-index: -1; border-radius: 10px; background: rgba(4,13,25,.9); }
.view-switch button { min-height: 28px; padding: 0 12px; border: 1px solid transparent; border-radius: 6px; color: #c9d4e4; background: transparent; font-size: 9px; cursor: pointer; }
.view-switch button.is-active { border-color: #186cff; background: linear-gradient(180deg, rgba(13,55,116,.8), rgba(8,35,75,.86)); box-shadow: 0 0 10px rgba(15,101,255,.22); color: #f2f7ff; }
.standee-dynamic { position: absolute; inset: 0; z-index: 4; }
.standee-cover {
  position: absolute;
  left: 31.0%; top: 8.0%; width: 38.0%; height: 80.2%;
  background: #fff;
  display: flex; flex-direction: column; align-items: center;
  color: #080f2b; padding: 2.0% 1.1% 1.1%;
  clip-path: polygon(3.5% 0, 97.8% 0, 100% 100%, 0 100%);
  transform: rotate(-.22deg);
}
.standee-upi-brand { width: 48%; height: 7.2%; min-height: 18px; display: flex; align-items: center; justify-content: center; margin: 0 auto .8%; }
.standee-upi-brand svg { width: 100%; height: 100%; display: block; overflow: visible; }
.standee-app-row { width: 88%; min-height: 8.5%; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.2% 2.2%; margin: 0 auto .7%; }
.standee-app-row:empty { display: none; min-height: 0; margin: 0; }
.standee-app-logo { width: var(--app-logo-w, 29%); height: clamp(12px, 1.85vw, 24px); display: flex; align-items: center; justify-content: center; flex: 0 0 var(--app-logo-w, 29%); }
.standee-app-logo svg { width: 100%; height: 100%; display: block; overflow: visible; }
.standee-cover canvas { width: 84%; height: auto; aspect-ratio: 1; display: block; margin: 0 auto; }
.standee-name { display: block; max-width: 95%; margin-top: .9%; font-size: clamp(12px, 1.36vw, 20px); line-height: 1.05; text-align: center; color: #08102c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 820; letter-spacing: -.025em; }
.standee-id { display: block; max-width: 94%; margin-top: 1.4%; font-size: clamp(8px, .85vw, 12px); color: #17213c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.standee-amount { margin-top: 1.6%; color: #0e6a3b; font-size: clamp(8px, .82vw, 11px); font-weight: 800; }
.standee-accept { width: 92%; border-top: 1px solid #cbd1da; margin-top: auto; padding-top: 4.1%; display: flex; justify-content: center; align-items: center; gap: 6px; color: #101a31; font-size: clamp(8px, .85vw, 12px); font-weight: 800; white-space: nowrap; }
.standee-accept b, .flat-accept b { width: 16px; height: 16px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; background: #16a35f; font-size: 10px; }
.standee-url-head { position: absolute; top: -18.5%; left: -1%; right: -1%; height: 19.5%; background: #fff; display: grid; place-items: center; align-content: center; gap: 2px; color: #10244a; border-radius: 3px 3px 0 0; }
.standee-url-head strong { font-size: clamp(10px,1.1vw,16px); letter-spacing: .12em; }
.standee-url-head small { font-size: clamp(7px,.7vw,10px); color: #59667c; }
.flat-preview { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 55px 20px 20px; background: radial-gradient(circle at 50% 10%, rgba(24,65,130,.25), transparent 45%), linear-gradient(145deg,#07101c,#0b1524); }
.flat-sheet { width: min(400px, 66%); aspect-ratio: 3 / 4.35; border-radius: 17px; background: linear-gradient(180deg,#fff,#f8fafc); color: #0a1530; box-shadow: 0 28px 60px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.3); padding: 7% 7% 6%; display: flex; flex-direction: column; align-items: center; }
.flat-brand-row { width: 100%; display: grid; grid-template-columns: 1fr 1px 1fr; gap: 12px; align-items: center; text-align: center; font-size: clamp(14px,1.5vw,21px); font-style: italic; }
.flat-brand-row span { width: 1px; height: 28px; background: #cfd6e1; justify-self: center; }
.flat-app-row { width: 92%; min-height: 62px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin: 4% auto 4%; }
.flat-app-row:empty { display: none; min-height: 0; margin: 0; }
.flat-app-logo { width: var(--app-logo-w, 29%); flex: 0 0 var(--app-logo-w, 29%); height: 34px; display: flex; align-items: center; justify-content: center; }
.flat-app-logo svg { width: 100%; height: 100%; display: block; overflow: visible; }
.flat-sheet canvas { width: 78%; aspect-ratio: 1; height: auto; }
.flat-sheet > strong { margin-top: 4%; font-size: clamp(16px,1.65vw,24px); line-height: 1.1; text-align: center; }
.flat-sheet > span:not(.flat-accept) { margin-top: 1.5%; font-size: clamp(9px,.88vw,12px); }
.flat-accept { width: 88%; border-top: 1px solid #d1d7df; margin-top: auto; padding-top: 5%; display: flex; justify-content: center; align-items: center; gap: 6px; font-size: clamp(8px,.8vw,11px); font-weight: 800; }

.download-grid { display: grid; grid-template-columns: 1.35fr .58fr .58fr; gap: 10px; }
.download-primary,
.download-secondary {
  min-height: 74px; border-radius: 11px; cursor: pointer; color: #f3f7ff; display: flex; align-items: center; justify-content: center; gap: 13px; padding: 10px 16px; text-align: left;
  transition: transform .08s ease, opacity .14s ease, box-shadow .14s ease;
}
.download-primary:active,
.download-secondary:active { transform: scale(.992); }
.download-primary {
  border: 1px solid #246cff; background: linear-gradient(105deg,#4b22ff 0%,#285cff 48%,#00d1f5 100%); box-shadow: inset 0 1px rgba(255,255,255,.19), 0 10px 28px rgba(25,81,255,.18);
}
.download-secondary { border: 1px solid #2c3e59; background: linear-gradient(180deg, rgba(12,26,44,.96), rgba(8,18,31,.96)); }
.download-primary:hover { box-shadow: inset 0 1px rgba(255,255,255,.19), 0 12px 32px rgba(22,92,255,.28); }
.download-secondary:hover { border-color: #49617e; }
.action-icon { font-size: 27px; line-height: 1; }
.download-primary strong, .download-primary small, .download-secondary strong, .download-secondary small { display: block; }
.download-primary strong { font-size: 14px; }
.download-primary small { margin-top: 3px; color: rgba(244,248,255,.68); font-size: 10px; }
.download-secondary strong { font-size: 11px; }
.download-secondary small { margin-top: 3px; color: #7789a3; font-size: 9px; }
.local-processing-note { margin: -1px 1px 0; color: #718198; font-size: 10px; line-height: 1.55; display: flex; gap: 7px; align-items: flex-start; }
.local-processing-note > span { color: #27d783; font-size: 8px; margin-top: 3px; }

.guide-shell {
  margin-top: 16px; border: 1px solid rgba(76,104,145,.27); border-radius: 16px; background: linear-gradient(180deg,#08111d,#070d16); overflow: hidden; color: var(--pq-text);
}
.guide-shell > summary { list-style: none; min-height: 74px; padding: 14px 19px; display: grid; grid-template-columns: 1fr auto; align-content: center; column-gap: 16px; cursor: pointer; border-radius: 16px; }
.guide-shell > summary::-webkit-details-marker { display: none; }
.guide-shell > summary span { font-size: 16px; font-weight: 800; }
.guide-shell > summary small { grid-column: 1; margin-top: 4px; color: #8392a8; font-size: 11px; }
.guide-shell > summary b { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: #aebbd0; transition: transform .18s ease; }
.guide-shell[open] > summary b { transform: rotate(180deg); }
.article { max-width: 940px; margin: 0 auto; padding: 8px 28px 34px; color: #c4cfdf; font-size: 16px; line-height: 1.78; }
.article-kicker { color: #6f9fe7; font-size: 12px; font-weight: 750; letter-spacing: .03em; }
.article h2 { color: #f4f7fb; font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.2; margin: 34px 0 13px; letter-spacing: -.025em; }
.article h3 { color: #e8eef8; font-size: 16px; margin: 0 0 7px; }
.article p { margin: 0 0 15px; }
.article a { color: #6eaaff; text-decoration: underline; text-underline-offset: 3px; }
.article code { color: #c8d8ff; background: #101b2b; border: 1px solid #25344d; border-radius: 5px; padding: 1px 5px; font-size: .88em; overflow-wrap: anywhere; }
.feature-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.feature-section { border: 1px solid #25364f; border-radius: 10px; padding: 16px; background: rgba(14,26,42,.58); }
.feature-section p { margin-bottom: 0; font-size: 14px; line-height: 1.65; }
.article .steps { list-style: none; counter-reset: paysteps; padding: 0; display: grid; gap: 10px; margin: 20px 0; }
.article .steps li { counter-increment: paysteps; position: relative; border: 1px solid #26364d; border-radius: 10px; padding: 14px 15px 14px 55px; background: rgba(12,24,40,.56); font-size: 14px; line-height: 1.6; }
.article .steps li::before { content: counter(paysteps, decimal-leading-zero); position: absolute; left: 14px; top: 14px; width: 29px; height: 29px; border: 1px solid #3d5a83; border-radius: 50%; display: grid; place-items: center; color: #8ab7ff; font-size: 10px; font-weight: 800; }
.source-note { border-left: 2px solid #286dcb; padding-left: 13px; color: #9faec3; font-size: 14px; }
.article .faq-item { border-top: 1px solid #26364c; }
.article .faq-item:last-child { border-bottom: 1px solid #26364c; }
.article .faq-item summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 17px 2px; cursor: pointer; color: #e8eef9; font-weight: 750; font-size: 15px; }
.article .faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary > span:first-child { flex: 1; }
.faq-chevron { width: 17px; height: 17px; position: relative; flex: 0 0 17px; transition: transform .17s ease; }
.faq-chevron::after { content: ""; position: absolute; width: 7px; height: 7px; border-right: 1.6px solid #93a5bf; border-bottom: 1.6px solid #93a5bf; transform: rotate(45deg); left: 4px; top: 2px; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer { color: #98a7bb; padding: 0 32px 15px 2px; font-size: 14px; }
.faq-answer p:last-child { margin-bottom: 0; }

.payqr-modal[hidden] { display: none !important; }
.payqr-modal { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 18px; font-family: inherit; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,5,12,.76); backdrop-filter: blur(8px); }
.modal-card { position: relative; z-index: 2; width: min(540px, 100%); max-height: min(680px, calc(100vh - 36px)); overflow: auto; border: 1px solid #2c405e; border-radius: 16px; background: linear-gradient(180deg,#0d1725,#09111c); color: #f1f6ff; box-shadow: 0 30px 80px rgba(0,0,0,.46); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 17px; border-bottom: 1px solid #23334b; }
.modal-head strong, .modal-head small { display: block; }
.modal-head strong { font-size: 15px; }
.modal-head small { margin-top: 3px; color: #8091aa; font-size: 10px; }
.modal-head button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid #31445f; background: #101c2d; color: #c7d2e3; cursor: pointer; }
.modal-body { padding: 15px 17px 18px; color: #b7c3d5; font-size: 13px; line-height: 1.55; }
.modal-empty { color: #8392a8; text-align: center; padding: 26px 8px; }
.history-list { display: grid; gap: 9px; }
.history-item { border: 1px solid #263850; border-radius: 10px; padding: 11px 12px; background: #0c1725; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.history-item strong, .history-item small { display: block; }
.history-item strong { color: #e8eef8; font-size: 12px; }
.history-item small { color: #7789a2; font-size: 10px; margin-top: 3px; }
.history-item button { align-self: center; min-height: 31px; border: 1px solid #345582; border-radius: 8px; padding: 0 10px; background: #10284b; color: #dceaff; font-size: 10px; cursor: pointer; }
.analytics-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.analytics-card { border: 1px solid #2b3d56; border-radius: 10px; padding: 13px; background: #0c1725; }
.analytics-card strong { display: block; color: #f0f5fc; font-size: 24px; }
.analytics-card span { color: #7f90a8; font-size: 10px; }
.brand-help { display: grid; gap: 10px; }
.brand-help p { margin: 0; }

@media (max-width: 1180px) {
  .payqr-navbar { grid-template-columns: auto 1fr auto; padding-inline: 16px; }
  .payqr-brand small, .profile-copy { display: none; }
  .profile-badge { padding-right: 6px; }
  .nav-tab { padding-inline: 9px; font-size: 11px; }
  .payqr-grid { grid-template-columns: minmax(410px,.88fr) minmax(520px,1.12fr); }
  .selection-copy small { white-space: normal; line-height: 1.25; }
  .template-card strong, .template-card small { white-space: normal; line-height: 1.15; }
}

@media (max-width: 900px) {
  .payqr-breakout { width: min(680px, calc(100vw - 12px)); margin-top: 8px; }
  .payqr-shell { border-radius: 15px; }
  .payqr-navbar { grid-template-columns: 1fr auto; gap: 10px; min-height: 64px; padding: 8px 12px; }
  .payqr-brand { min-width: 0; }
  .payqr-brand small { display: block; }
  .nav-tabs { grid-column: 1 / -1; order: 3; justify-content: flex-start; overflow-x: auto; padding: 3px 0 1px; scrollbar-width: none; }
  .nav-tabs::-webkit-scrollbar { display: none; }
  .nav-tab { flex: 0 0 auto; min-height: 34px; }
  .profile-badge { display: none; }
  .payqr-grid { grid-template-columns: 1fr; gap: 14px; padding: 8px; }
  .control-panel { padding: 19px 20px 18px; }
  .preview-card { min-height: 0; }
  .download-grid { grid-template-columns: 1fr 1fr; }
  .download-primary { grid-column: 1 / -1; }
  .local-processing-note { padding: 0 4px 3px; }
}

@media (max-width: 620px) {
  .payqr-breakout { width: calc(100vw - 8px); }
  .payqr-navbar { border-radius: 0; }
  .payqr-brand strong { font-size: 15px; }
  .payqr-brand small { font-size: 9px; }
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .nav-tabs { gap: 4px; }
  .nav-tab { font-size: 10px; padding: 0 8px; }
  .control-panel { padding: 18px 18px 16px; border-radius: 13px; }
  .tool-title-row { margin-bottom: 16px; }
  .tool-title-row h1 { font-size: 20px; }
  .tool-title-row p { font-size: 11px; }
  .mode-switcher { grid-template-columns: 1fr; }
  .mode-tab { justify-content: flex-start; padding-left: 12px; }
  .input-shell input { height: 48px; font-size: 14px; }
  .field-block label, .option-group legend { font-size: 13px; }
  .two-card-grid { gap: 9px; }
  .selection-card { min-height: 70px; padding-left: 8px; }
  .dot-preview { width: 41px; height: 41px; flex-basis: 41px; }
  .selection-copy strong { font-size: 10px; }
  .selection-copy small { font-size: 8px; }
  .three-card-grid { gap: 7px; }
  .color-card { min-height: 55px; flex-direction: column; justify-content: center; gap: 4px; padding: 6px 24px 6px 5px; text-align: center; }
  .color-orb { width: 27px; height: 27px; flex-basis: 27px; }
  .color-card strong { font-size: 8px; }
  .legend-hint { display: block; margin: 2px 0 0; font-size: 8px; }
  .app-selector-scroll { gap: 7px; padding-bottom: 6px; }
  .app-pill { min-width: 108px; min-height: 44px; }
  .app-pill-logo { width: 31px; flex-basis: 31px; }
  .app-pill strong { font-size: 8.5px; }
  .app-selector-note { font-size: 8px; }
  .logo-grid { grid-template-columns: 1fr 1fr; }
  .logo-dropzone, .logo-file-card { min-height: 75px; }
  .logo-dropzone { padding: 8px; }
  .logo-dropzone strong { font-size: 9px; }
  .logo-dropzone small { font-size: 8px; }
  .template-grid { gap: 6px; }
  .template-card { min-height: 63px; grid-template-columns: 25px minmax(0,1fr); gap: 5px; padding-left: 6px; padding-right: 21px; }
  .template-icon { width: 24px; height: 24px; }
  .template-card strong { font-size: 8px; }
  .template-card small { font-size: 7px; }
  .preview-toolbar { top: 9px; left: 9px; right: 9px; }
  .live-pill { min-height: 31px; font-size: 9px; }
  .view-switch button { min-height: 25px; padding-inline: 9px; font-size: 8px; }
  .standee-name { font-size: clamp(10px,3.1vw,16px); }
  .standee-id { font-size: clamp(7px,2vw,10px); }
  .standee-accept { font-size: clamp(7px,2vw,10px); gap: 4px; }
  .standee-accept b { width: 13px; height: 13px; font-size: 8px; }
  .download-grid { gap: 8px; }
  .download-primary, .download-secondary { min-height: 63px; padding: 8px 10px; border-radius: 9px; gap: 9px; }
  .download-primary strong { font-size: 12px; }
  .download-primary small { font-size: 9px; }
  .download-secondary strong { font-size: 10px; }
  .download-secondary small { font-size: 8px; }
  .action-icon { font-size: 23px; }
  .guide-shell { border-radius: 13px; }
  .guide-shell > summary { min-height: 67px; padding: 12px 14px; }
  .guide-shell > summary span { font-size: 14px; }
  .guide-shell > summary small { font-size: 9px; }
  .article { padding: 4px 17px 28px; font-size: 15px; line-height: 1.72; }
  .feature-breakdown { grid-template-columns: 1fr; }
  .article .steps li { padding-right: 12px; font-size: 13px; }
}

@media (max-width: 390px) {
  .control-panel { padding-inline: 14px; }
  .tool-title-row { gap: 10px; }
  .tool-icon { width: 35px; height: 35px; flex-basis: 35px; }
  .tool-title-row h1 { font-size: 18px; }
  .two-card-grid { grid-template-columns: 1fr; }
  .selection-card { min-height: 59px; }
  .three-card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .logo-grid { grid-template-columns: 1fr; }
  .template-grid { grid-template-columns: 1fr; }
  .template-card { grid-template-columns: 28px 1fr; min-height: 51px; }
  .download-secondary { min-height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  .payqr-breakout *, .payqr-breakout *::before, .payqr-breakout *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* --------------------------------------------------------------------------
   Light-first host-integrated theme
   - Default appearance is light.
   - .is-site-dark is applied by tool.js only when the parent site is dark.
   - No independent theme control is rendered inside this tool.
   -------------------------------------------------------------------------- */
.payqr-title-brand { gap: 13px; }
.payqr-title-brand .top-focus-heading {
  display: block;
  color: var(--pq-text);
  font-size: clamp(20px, 1.75vw, 27px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 840;
  white-space: nowrap;
}

.payqr-breakout:not(.is-site-dark) {
  --pq-bg: #f4f7fb;
  --pq-bg-2: #edf3fa;
  --pq-panel: #ffffff;
  --pq-panel-2: #f8fbff;
  --pq-line: #d7e1ee;
  --pq-line-soft: rgba(95, 120, 154, .15);
  --pq-text: #152033;
  --pq-muted: #66758c;
  --pq-soft: #40516a;
  --pq-blue: #0b6dff;
  --pq-blue-2: #2658ff;
  --pq-cyan: #08bfe6;
  --pq-violet: #6236ee;
  --pq-green: #0ebd6c;
  --pq-danger: #e5485c;
  color: var(--pq-text);
}
.payqr-breakout:not(.is-site-dark) .payqr-shell {
  border-color: #d8e2ee;
  background:
    radial-gradient(880px 360px at 76% -90px, rgba(20, 115, 255, .10), transparent 62%),
    linear-gradient(180deg, #fbfdff 0%, #f2f6fb 100%);
  box-shadow: 0 22px 64px rgba(30, 53, 82, .11), inset 0 1px rgba(255,255,255,.95);
}
.payqr-breakout:not(.is-site-dark) .payqr-shell::before {
  background: linear-gradient(135deg, rgba(255,255,255,.55), transparent 28%, transparent 72%, rgba(33,120,255,.03));
}
.payqr-breakout:not(.is-site-dark) .payqr-navbar {
  border-bottom-color: #dde6f0;
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 26px rgba(37, 58, 85, .045);
}
.payqr-breakout:not(.is-site-dark) .brand-mark,
.payqr-breakout:not(.is-site-dark) .tool-icon {
  background: linear-gradient(145deg, #e9f3ff, #dcecff);
  border-color: #b9d5fa;
  box-shadow: inset 0 0 18px rgba(11,109,255,.08), 0 7px 18px rgba(31,100,190,.08);
}
.payqr-breakout:not(.is-site-dark) .brand-mark i,
.payqr-breakout:not(.is-site-dark) .tool-icon i {
  border-color: #347ee6;
  box-shadow: none;
}
.payqr-breakout:not(.is-site-dark) .nav-tab,
.payqr-breakout:not(.is-site-dark) .profile-badge { color: #64748b; }
.payqr-breakout:not(.is-site-dark) .nav-tab:hover {
  color: #172033;
  background: #f3f7fc;
}
.payqr-breakout:not(.is-site-dark) .nav-tab.is-active {
  color: #0f4ea7;
  border-color: #9fc4ff;
  background: linear-gradient(180deg, #eef6ff, #e4f0ff);
  box-shadow: inset 0 0 0 1px rgba(48,126,255,.08), 0 5px 16px rgba(12,83,217,.08);
}
.payqr-breakout:not(.is-site-dark) .profile-badge {
  border-color: #d8e3ef;
  background: rgba(255,255,255,.9);
  box-shadow: 0 6px 16px rgba(31,50,76,.05);
}
.payqr-breakout:not(.is-site-dark) .profile-copy strong { color: #25344a; }
.payqr-breakout:not(.is-site-dark) .profile-copy small,
.payqr-breakout:not(.is-site-dark) .profile-arrow { color: #7b8aa0; }

.payqr-breakout:not(.is-site-dark) .control-panel {
  border-color: #d8e3ef;
  background: linear-gradient(155deg, rgba(255,255,255,.99), rgba(247,250,254,.99));
  box-shadow: 0 10px 30px rgba(36, 60, 91, .055), inset 0 1px rgba(255,255,255,.98);
}
.payqr-breakout:not(.is-site-dark) .preview-card { border-color: #d2deeb; box-shadow: 0 10px 30px rgba(31, 51, 77, .07); }
.payqr-breakout:not(.is-site-dark) .tool-title-row h1 { color: #172033; }
.payqr-breakout:not(.is-site-dark) .tool-title-row p { color: #6b7a90; }
.payqr-breakout:not(.is-site-dark) .mode-switcher {
  border-color: #d8e4f1;
  background: #f5f8fc;
}
.payqr-breakout:not(.is-site-dark) .mode-tab { color: #718096; }
.payqr-breakout:not(.is-site-dark) .mode-tab:hover { color: #274365; background: #eef4fb; }
.payqr-breakout:not(.is-site-dark) .mode-tab.is-active {
  color: #0d4d9b;
  border-color: #8dbbff;
  background: linear-gradient(180deg, #eef6ff, #e4f0ff);
  box-shadow: 0 5px 18px rgba(0,88,255,.06);
}
.payqr-breakout:not(.is-site-dark) .field-block label,
.payqr-breakout:not(.is-site-dark) .option-group legend { color: #25344a; }
.payqr-breakout:not(.is-site-dark) .label-muted { color: #7e8ca0; }
.payqr-breakout:not(.is-site-dark) .input-shell input {
  border-color: #cdd9e7;
  color: #182438;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: inset 0 1px 1px rgba(26,44,68,.025), 0 1px 2px rgba(26,44,68,.025);
}
.payqr-breakout:not(.is-site-dark) .input-shell input::placeholder { color: #93a2b7; }
.payqr-breakout:not(.is-site-dark) .input-shell input:focus {
  border-color: #4c8ff2;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(24,99,255,.10);
}
.payqr-breakout:not(.is-site-dark) .validation-text small { color: #7f8da0; }
.payqr-breakout:not(.is-site-dark) .currency-mark { color: #64748b; }

.payqr-breakout:not(.is-site-dark) .selection-card,
.payqr-breakout:not(.is-site-dark) .color-card,
.payqr-breakout:not(.is-site-dark) .template-card {
  border-color: #d3deeb;
  color: #3c4d63;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(31,50,76,.025);
}
.payqr-breakout:not(.is-site-dark) .selection-card:hover,
.payqr-breakout:not(.is-site-dark) .color-card:hover,
.payqr-breakout:not(.is-site-dark) .template-card:hover {
  border-color: #aebfd3;
  background: #fbfdff;
}
.payqr-breakout:not(.is-site-dark) .selection-card.is-selected,
.payqr-breakout:not(.is-site-dark) .color-card.is-selected,
.payqr-breakout:not(.is-site-dark) .template-card.is-selected {
  border-color: #4d91f5;
  box-shadow: inset 0 0 0 1px rgba(12,103,255,.16), 0 7px 20px rgba(14,85,220,.07);
  background: linear-gradient(180deg, #f1f7ff, #eaf3ff);
}
.payqr-breakout:not(.is-site-dark) .selection-copy strong,
.payqr-breakout:not(.is-site-dark) .color-card strong,
.payqr-breakout:not(.is-site-dark) .template-card strong { color: #26364b; }
.payqr-breakout:not(.is-site-dark) .selection-copy small,
.payqr-breakout:not(.is-site-dark) .template-card small { color: #738298; }
.payqr-breakout:not(.is-site-dark) .dot-preview {
  background: linear-gradient(145deg, #eef4fb, #e2ebf5);
  border-color: #cedaea;
}
.payqr-breakout:not(.is-site-dark) .dot-preview i {
  background: #23334a;
  box-shadow: none;
}
.payqr-breakout:not(.is-site-dark) .radio-ring { border-color: #9aabc0; }
.payqr-breakout:not(.is-site-dark) .color-orb {
  border-color: rgba(35,51,74,.09);
  box-shadow: inset 0 0 12px rgba(255,255,255,.2), 0 5px 12px rgba(31,50,76,.10);
}

.payqr-breakout:not(.is-site-dark) .app-pill { border-color: #d2deeb; background: #fff; color: #3b4b60; box-shadow: 0 2px 8px rgba(31,50,76,.025); }
.payqr-breakout:not(.is-site-dark) .app-pill:hover { border-color: #aebfd3; background: #fbfdff; }
.payqr-breakout:not(.is-site-dark) .app-pill.is-selected { border-color: #4d91f5; background: linear-gradient(180deg,#f1f7ff,#eaf3ff); box-shadow: inset 0 0 0 1px rgba(12,103,255,.12); }
.payqr-breakout:not(.is-site-dark) .app-pill strong { color: #33445a; }
.payqr-breakout:not(.is-site-dark) .app-pill-check { border-color: #a0b0c4; }
.payqr-breakout:not(.is-site-dark) .app-selector-note, .payqr-breakout:not(.is-site-dark) .legend-hint { color: #74849a; }

.payqr-breakout:not(.is-site-dark) .logo-dropzone {
  border-color: #bdcadb;
  background: #f8fbff;
  color: #4f6076;
}
.payqr-breakout:not(.is-site-dark) .logo-dropzone:hover,
.payqr-breakout:not(.is-site-dark) .logo-dropzone.is-dragover {
  border-color: #4d8ff1;
  background: #eef6ff;
}
.payqr-breakout:not(.is-site-dark) .upload-icon { color: #3c7fdc; }
.payqr-breakout:not(.is-site-dark) .logo-dropzone small { color: #7d8ca0; }
.payqr-breakout:not(.is-site-dark) .logo-file-card {
  border-color: #d3dfec;
  background: #ffffff;
}
.payqr-breakout:not(.is-site-dark) .logo-file-copy strong { color: #405066; }
.payqr-breakout:not(.is-site-dark) .remove-logo { background: #e9eef5; color: #617188; }
.payqr-breakout:not(.is-site-dark) .template-icon {
  border-color: #bdcada;
  color: #48607d;
  background: #f4f8fc;
}

/* The photographic standee preview intentionally stays photo-realistic in both themes. */
.payqr-breakout:not(.is-site-dark) .flat-preview {
  background: radial-gradient(circle at 50% 8%, rgba(52,126,226,.13), transparent 46%), linear-gradient(145deg,#edf4fb,#dfe9f4);
}
.payqr-breakout:not(.is-site-dark) .flat-sheet {
  box-shadow: 0 24px 52px rgba(33, 54, 82, .18), 0 0 0 1px rgba(93,113,139,.15);
}
.payqr-breakout:not(.is-site-dark) .download-secondary {
  border-color: #d1deec;
  color: #28384e;
  background: linear-gradient(180deg, #ffffff, #f5f9fd);
  box-shadow: 0 7px 20px rgba(35, 55, 82, .05);
}
.payqr-breakout:not(.is-site-dark) .download-secondary:hover { border-color: #9fb5cf; }
.payqr-breakout:not(.is-site-dark) .download-secondary small { color: #748399; }
.payqr-breakout:not(.is-site-dark) .local-processing-note { color: #68788f; }

.payqr-breakout:not(.is-site-dark) .guide-shell {
  border-color: #d8e2ee;
  background: linear-gradient(180deg,#ffffff,#f8fbfe);
  box-shadow: 0 13px 34px rgba(37,58,85,.05);
}
.payqr-breakout:not(.is-site-dark) .guide-shell > summary small { color: #75859a; }
.payqr-breakout:not(.is-site-dark) .guide-shell > summary b { color: #6d7f96; }
.payqr-breakout:not(.is-site-dark) .article { color: #46566c; }
.payqr-breakout:not(.is-site-dark) .article-kicker { color: #286cc5; }
.payqr-breakout:not(.is-site-dark) .article h2 { color: #172033; }
.payqr-breakout:not(.is-site-dark) .article h3 { color: #27374d; }
.payqr-breakout:not(.is-site-dark) .article a { color: #1768cf; }
.payqr-breakout:not(.is-site-dark) .article code {
  color: #31547f;
  background: #f1f6fb;
  border-color: #d3deeb;
}
.payqr-breakout:not(.is-site-dark) .feature-section,
.payqr-breakout:not(.is-site-dark) .article .steps li {
  border-color: #d9e3ee;
  background: #f8fbfe;
}
.payqr-breakout:not(.is-site-dark) .article .steps li::before {
  border-color: #98b6dd;
  color: #276ac1;
  background: #fff;
}
.payqr-breakout:not(.is-site-dark) .source-note { color: #617289; }
.payqr-breakout:not(.is-site-dark) .article .faq-item,
.payqr-breakout:not(.is-site-dark) .article .faq-item:last-child { border-color: #dce5ef; }
.payqr-breakout:not(.is-site-dark) .article .faq-item summary { color: #26364b; }
.payqr-breakout:not(.is-site-dark) .faq-chevron::after { border-color: #667991; }
.payqr-breakout:not(.is-site-dark) .faq-answer { color: #607087; }

.payqr-modal:not(.is-site-dark) .modal-backdrop { background: rgba(22,34,49,.42); }
.payqr-modal:not(.is-site-dark) .modal-card {
  border-color: #d4e0ed;
  background: linear-gradient(180deg,#ffffff,#f7fafc);
  color: #223248;
  box-shadow: 0 30px 80px rgba(30,48,71,.23);
}
.payqr-modal:not(.is-site-dark) .modal-head { border-bottom-color: #dce5ef; }
.payqr-modal:not(.is-site-dark) .modal-head small { color: #728297; }
.payqr-modal:not(.is-site-dark) .modal-head button {
  border-color: #d2deeb;
  background: #f4f8fc;
  color: #4f6076;
}
.payqr-modal:not(.is-site-dark) .modal-body { color: #4a5a70; }
.payqr-modal:not(.is-site-dark) .modal-empty { color: #7a899d; }
.payqr-modal:not(.is-site-dark) .history-item,
.payqr-modal:not(.is-site-dark) .analytics-card {
  border-color: #d7e2ee;
  background: #f8fbfe;
}
.payqr-modal:not(.is-site-dark) .history-item strong,
.payqr-modal:not(.is-site-dark) .analytics-card strong { color: #26364a; }
.payqr-modal:not(.is-site-dark) .history-item small,
.payqr-modal:not(.is-site-dark) .analytics-card span { color: #75859a; }
.payqr-modal:not(.is-site-dark) .history-item button {
  border-color: #9cbbe3;
  background: #eef6ff;
  color: #205da8;
}

@media (max-width: 900px) {
  .payqr-title-brand .top-focus-heading { font-size: 21px; }
}
@media (max-width: 620px) {
  .payqr-title-brand .top-focus-heading { font-size: 19px; }
  .payqr-title-brand { gap: 10px; }
}
@media (max-width: 390px) {
  .payqr-title-brand .top-focus-heading { font-size: 17px; letter-spacing: -.025em; }
}

/* ========================================================================== 
   Responsive polish pass — 2026-10-07
   Keeps the tool inside its card at every viewport, moves preview controls out
   of the QR artwork, guarantees a fully visible flat QR, and strengthens touch
   feedback. Site typography remains inherited from the host.
   ========================================================================== */
.payqr-breakout {
  overflow-x: clip;
}
.payqr-breakout button,
.payqr-breakout label,
.payqr-breakout input {
  min-width: 0;
}
.payqr-breakout button {
  touch-action: manipulation;
  transition-property: transform, border-color, background, box-shadow, opacity, filter;
  transition-duration: .14s;
  transition-timing-function: ease;
}
.payqr-breakout button:active:not(:disabled) {
  transform: scale(.975);
  filter: brightness(.985);
}
  60% { transform: scale(1.012); }
  100% { transform: scale(1); }
}

/* Grid children must be allowed to shrink instead of forcing overflow. */
.two-card-grid,
.three-card-grid,
.template-grid,
.logo-grid,
.mode-switcher {
  width: 100%;
  min-width: 0;
}
.two-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.template-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-card-grid > *,
.three-card-grid > *,
.template-grid > *,
.logo-grid > * {
  min-width: 0;
  max-width: 100%;
}
.selection-card,
.color-card,
.template-card {
  overflow: hidden;
}
.selection-copy strong,
.selection-copy small,
.template-card strong,
.template-card small,
.color-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.selection-card { padding-right: 31px; }
.selection-copy { flex: 1 1 auto; overflow: hidden; }
.radio-check,
.radio-ring {
  right: 8px;
  top: 8px;
  flex: 0 0 auto;
}

/* Stronger selected state so touch users can immediately see what changed. */
.selection-card.is-selected,
.color-card.is-selected,
.template-card.is-selected {
  border-width: 2px;
  box-shadow: inset 0 0 0 1px rgba(15,106,255,.18), 0 8px 22px rgba(20,105,255,.15);
}
.payqr-breakout:not(.is-site-dark) .selection-card.is-selected,
.payqr-breakout:not(.is-site-dark) .color-card.is-selected,
.payqr-breakout:not(.is-site-dark) .template-card.is-selected {
  background: linear-gradient(180deg, #eef6ff, #e4f0ff);
  box-shadow: inset 0 0 0 1px rgba(15,106,255,.14), 0 8px 22px rgba(31,112,226,.13);
}

/* Preview toolbar is a real header now — never overlays the QR/standee. */
.preview-card {
  --preview-toolbar-h: 58px;
  aspect-ratio: 848 / 676;
  min-height: 490px;
  background-color: #07101c;
}
.preview-toolbar {
  top: 0;
  left: 0;
  right: 0;
  height: var(--preview-toolbar-h);
  min-height: var(--preview-toolbar-h);
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(4,13,25,.97);
  border-bottom: 1px solid rgba(93,126,171,.30);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  pointer-events: auto;
}
.live-pill,
.view-switch {
  min-width: 0;
  background: rgba(8,20,35,.94);
  box-shadow: none;
  border-color: rgba(77,112,159,.36);
}
.live-pill::before,
.view-switch::before { display: none; }
.live-pill {
  min-height: 36px;
  min-width: 116px;
  padding: 0 11px;
  flex: 0 1 auto;
  white-space: nowrap;
}
.view-switch {
  flex: 0 0 auto;
  padding: 4px;
  gap: 3px;
}
.view-switch button {
  min-width: 72px;
  min-height: 32px;
  padding: 0 12px;
  white-space: nowrap;
}
.view-switch button.is-active {
  border-width: 2px;
  box-shadow: 0 0 0 2px rgba(24,108,255,.12), 0 5px 16px rgba(20,96,230,.20);
}
.standee-dynamic,
.flat-preview {
  inset: var(--preview-toolbar-h) 0 0;
}

/* Flat artwork always fits completely inside the preview stage. */
.flat-preview {
  padding: 14px;
  overflow: hidden;
}
.flat-sheet {
  height: min(94%, 600px);
  max-height: 94%;
  width: auto;
  max-width: min(92%, 400px);
  aspect-ratio: 3 / 4.35;
  padding: 4.5% 5.5% 4%;
  flex: 0 1 auto;
  overflow: hidden;
}
.flat-brand-row { flex: 0 0 auto; }
.flat-app-row {
  min-height: 42px;
  margin: 2.5% auto 2.5%;
  gap: 5px 10px;
  flex: 0 0 auto;
}
.flat-app-logo { height: 25px; }
.flat-sheet canvas {
  width: min(70%, 250px);
  max-height: 46%;
  flex: 0 1 auto;
}
.flat-sheet > strong { margin-top: 2.5%; }
.flat-sheet > span:not(.flat-accept) { margin-top: 1%; }
.flat-accept { padding-top: 3.5%; }

/* Control alignment — every icon is locked to the visual center. */
.remove-logo,
.radio-check,
.radio-ring,
.input-check,
.currency-mark,
.app-pill-check {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Desktop/tablet: reduce brittle minimum widths in the main grid. */
@media (max-width: 1280px) {
  .payqr-grid {
    grid-template-columns: minmax(430px, .9fr) minmax(0, 1.1fr);
  }
  .selection-card { gap: 8px; }
  .dot-preview { width: 39px; height: 39px; flex-basis: 39px; padding: 6px; }
}

@media (max-width: 900px) {
  .payqr-grid { grid-template-columns: minmax(0, 1fr); }
  .preview-card {
    min-height: 460px;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 620px) {
  .control-panel { overflow: hidden; }
  .preview-card {
    --preview-toolbar-h: 60px;
    aspect-ratio: auto;
    height: clamp(470px, 118vw, 560px);
    min-height: 470px;
  }
  .preview-toolbar {
    padding: 9px 10px;
    gap: 7px;
  }
  .live-pill {
    min-width: 0;
    padding-inline: 10px;
    font-size: 9px;
  }
  .view-switch button {
    min-width: 58px;
    min-height: 32px;
    padding-inline: 9px;
    font-size: 8.5px;
  }
  .two-card-grid { gap: 8px; }
  .selection-card {
    min-height: 64px;
    padding: 7px 29px 7px 7px;
    gap: 7px;
  }
  .dot-preview { width: 37px; height: 37px; flex-basis: 37px; padding: 6px; }
  .selection-copy strong { font-size: 9.5px; }
  .selection-copy small { font-size: 7.5px; margin-top: 2px; }
  .three-card-grid { gap: 6px; }
  .color-card {
    min-width: 0;
    padding: 7px 22px 7px 5px;
  }
  .color-card strong { max-width: 100%; font-size: 7.7px; }
  .template-card {
    min-width: 0;
    min-height: 58px;
    padding: 6px 21px 6px 6px;
  }
  .template-card strong { font-size: 8px; }
  .template-card small { font-size: 7px; margin-top: 2px; }
  .flat-sheet {
    height: 94%;
    max-height: 94%;
    max-width: 84%;
    padding: 4% 5% 3.5%;
  }
  .flat-brand-row { font-size: 13px; }
  .flat-app-row { min-height: 36px; margin-block: 2%; gap: 4px 7px; }
  .flat-app-logo { height: 20px; }
  .flat-sheet canvas { width: 62%; max-height: 43%; }
  .flat-sheet > strong { font-size: clamp(13px, 4.2vw, 18px); }
  .flat-sheet > span:not(.flat-accept) { font-size: clamp(8px, 2.5vw, 10px); }
  .flat-accept { font-size: clamp(7px, 2.1vw, 9px); padding-top: 3%; }
}

@media (max-width: 480px) {
  .payqr-breakout { width: calc(100vw - 6px); }
  .control-panel { padding-inline: 13px; }
  .two-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .selection-card { min-height: 60px; }
  .selection-copy small { display: none; }
  .dot-preview { width: 34px; height: 34px; flex-basis: 34px; gap: 3px; padding: 5px; }
  .dot-preview i { width: 5px; height: 5px; }
  .micro-preview i { width: 3.5px; height: 3.5px; }
  .color-orb { width: 24px; height: 24px; flex-basis: 24px; }
  .color-card { min-height: 52px; }
  .logo-grid { grid-template-columns: 1fr; }
  .template-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .template-card {
    grid-template-columns: 23px minmax(0, 1fr);
    gap: 4px;
    min-height: 55px;
  }
  .template-icon { width: 22px; height: 22px; }
  .template-card small { display: none; }
  .preview-toolbar { gap: 5px; }
  .live-pill { font-size: 8.6px; gap: 5px; }
  .live-pill span { font-size: 11px; }
  .view-switch { padding: 3px; }
  .view-switch button { min-width: 52px; padding-inline: 7px; }
  .download-primary strong { font-size: 11px; }
  .download-primary small,
  .download-secondary small { display: none; }
}

@media (max-width: 360px) {
  .control-panel { padding-inline: 11px; }
  .mode-tab { font-size: 10px; }
  .selection-card { padding-right: 26px; }
  .selection-copy strong { font-size: 8.5px; }
  .three-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .color-card { padding-right: 19px; }
  .color-card strong { font-size: 6.9px; }
  .template-grid { gap: 4px; }
  .template-card { padding-right: 18px; }
  .template-card strong { font-size: 7.2px; }
  .preview-card {
    --preview-toolbar-h: 58px;
    min-height: 450px;
    height: 450px;
  }
  .live-pill { padding-inline: 7px; }
  .view-switch button { min-width: 46px; font-size: 8px; padding-inline: 5px; }
  .download-grid { grid-template-columns: 1fr; }
  .download-primary { grid-column: auto; }
}

/* Keep the UPI / website brand mark in Flat view dimensionally bounded. */
.flat-brand-row {
  min-height: 0;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
}
.flat-brand-row svg {
  display: block;
  width: min(72%, 180px);
  height: 100%;
  max-width: 100%;
  overflow: visible;
}
@media (max-width: 620px) {
  .flat-brand-row { height: 32px; flex-basis: 32px; }
  .flat-brand-row svg { width: min(68%, 145px); }
}

@media (max-width: 340px) {
  .selection-card {
    justify-content: center;
    text-align: center;
    padding-left: 6px;
    padding-right: 24px;
  }
  .selection-card .dot-preview { display: none; }
  .selection-copy { text-align: center; }
  .template-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 7px 18px 7px 4px;
  }
  .template-card .template-icon { display: none; }
  .template-card > span:nth-child(2) { text-align: center; width: 100%; }
  .live-pill { font-size: 7.8px; padding-inline: 6px; }
  .view-switch button { min-width: 43px; font-size: 7.8px; }
}


/* ===== Performance + single-standee rendering fix ===== */
.preview-card {
  background: #07101c;
}
.standee-dynamic {
  background: #07101c url("assets/standee-bg.webp") center center / 100% 100% no-repeat;
  overflow: hidden;
  contain: layout paint;
}
.standee-cover {
  /* Overlay only the blank printable face in the background photo.
     Transparent background prevents the previous "second flat card" effect. */
  left: 27.7%;
  top: .4%;
  width: 43.7%;
  height: 83.0%;
  background: transparent;
  padding: 2.1% 1.35% 1.55%;
  clip-path: polygon(3.4% 0, 96.4% 0, 100% 100%, 0 100%);
  transform: rotate(-.15deg);
}
.standee-cover canvas { width: 76%; max-width: 76%; }
.standee-upi-brand { width: 46%; }
.standee-app-row { width: 86%; }
.preview-toolbar { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Clear, single interaction feedback: press once, then selected state stays visible. */
.payqr-breakout button,
.payqr-breakout .logo-dropzone { -webkit-tap-highlight-color: transparent; }
.payqr-breakout button:active:not(:disabled),
.payqr-breakout .logo-dropzone:active { transform: scale(.975); }

/* Low-cost paint isolation for the areas that change frequently. */
.preview-card, .standee-dynamic, .flat-preview, .standee-cover, .flat-sheet {
  isolation: isolate;
}
.standee-qr, .flat-qr { image-rendering: auto; }

@media (max-width: 620px) {
  .standee-cover {
    left: 27.4%;
    width: 44.2%;
    height: 83.4%;
    padding: 2.2% 1.2% 1.5%;
  }
  .standee-cover canvas { width: 74%; max-width: 74%; }
}

@media (prefers-reduced-motion: reduce) {
  .payqr-breakout button, .payqr-breakout .logo-dropzone { transition: none !important; }
}

/* ===== Final brand-asset + full-standee polish ===== */
.app-pill-logo img,
.standee-upi-brand img,
.standee-app-logo img,
.flat-brand-row img,
.flat-app-logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  pointer-events: none;
}

/* The background now contains the complete acrylic top and base. Keep the
   generated artwork strictly inside the printable face, with visible breathing
   room above and below on every viewport. */
.standee-dynamic {
  background-image: url("assets/standee-bg.webp");
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.standee-cover {
  left: 27.15%;
  top: 3.25%;
  width: 44.35%;
  height: 80.75%;
  padding: 3.35% 1.5% 1.75%;
  clip-path: polygon(4.3% 0, 95.7% 0, 100% 100%, 0 100%);
  transform: none;
}
.standee-upi-brand { width: 50%; height: 7.4%; margin-bottom: 1.25%; }
.standee-app-row { width: 88%; margin-bottom: 1.3%; }
.standee-app-logo { height: clamp(12px, 1.65vw, 23px); }
.standee-cover canvas { width: 73%; max-width: 73%; }

@media (max-width: 620px) {
  .standee-cover {
    left: 27.05%;
    top: 3.15%;
    width: 44.55%;
    height: 80.95%;
    padding: 3.5% 1.35% 1.65%;
  }
  .standee-upi-brand { width: 51%; }
  .standee-app-row { width: 89%; }
  .standee-cover canvas { width: 72%; max-width: 72%; }
}

/* ===== Full UI enhancement layer (visual only; structure, IDs and tool.js wiring unchanged) ===== */
.payqr-breakout {
  --pq-ring: 0 0 0 3px rgba(38,120,255,.38);
  --pq-ease: cubic-bezier(.2,.7,.2,1);
  letter-spacing: 0;
}
.payqr-breakout .pq-ico { display: block; flex: 0 0 auto; }
.payqr-breakout :focus { outline: none; }
.payqr-breakout :focus-visible { outline: 2px solid #5aa2ff; outline-offset: 2px; box-shadow: var(--pq-ring); }
.payqr-breakout .input-shell input:focus-visible { outline: none; }

/* shell and panels: calmer depth, clearer hierarchy */
.payqr-shell { border-color: rgba(88,122,170,.3); box-shadow: 0 30px 90px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.04); }
.control-panel, .preview-card { border-color: rgba(86,118,162,.34); background: linear-gradient(160deg, rgba(14,27,45,.96), rgba(8,16,28,.98)); }
.control-panel { padding: 24px 24px 20px; }
.tool-title-row { margin-bottom: 20px; }
.tool-title-row h1 { font-size: clamp(20px, 1.6vw, 25px); }
.tool-title-row p { font-size: 13px; color: #a6b4ca; }

/* readable type sizes (old build used 8-10px in places) */
.field-block label, .option-group legend { font-size: 13px; margin-bottom: 8px; }
.legend-hint { font-size: 11px; color: #8394ad; }
.input-shell input { height: 48px; font-size: 14px; border-color: #3a4d6b; border-radius: 10px; }
.input-shell input:hover { border-color: #4d6485; }
.validation-text { font-size: 12px; }
.validation-text small { font-size: 11px; }
.mode-tab { min-height: 44px; font-size: 12.5px; transition: background .18s var(--pq-ease), color .18s var(--pq-ease); }
.mode-link { display: inline-flex; color: #7db4ff; }
.selection-copy strong { font-size: 13px; }
.selection-copy small { font-size: 11px; }
.color-card strong { font-size: 12px; }
.template-card strong { font-size: 12px; }
.template-card small { font-size: 10.5px; }
.app-pill strong { font-size: 11.5px; }
.logo-dropzone strong { font-size: 12.5px; font-weight: 650; }
.logo-dropzone small { font-size: 11px; }
.nav-tab { min-height: 42px; font-size: 13px; padding: 0 15px; }
.profile-copy strong { font-size: 12px; }
.profile-copy small { font-size: 10.5px; }

/* option cards: larger touch targets, clearer selected state */
.selection-card { min-height: 72px; }
.color-card { min-height: 56px; }
.template-card { min-height: 60px; }
.selection-card.is-selected, .color-card.is-selected, .template-card.is-selected {
  border-color: #2a7bff; background: linear-gradient(180deg, rgba(16,52,104,.74), rgba(10,30,60,.7));
  box-shadow: inset 0 0 0 1px rgba(42,123,255,.5), 0 8px 24px rgba(8,60,170,.16);
}
.radio-ring { border-color: #566a88; }
.template-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: #8ec0ff; background: rgba(20,52,100,.45); border: 1px solid rgba(70,120,200,.28); }
.template-icon .pq-ico { width: 18px; height: 18px; }
.template-card.is-selected .template-icon { color: #fff; background: #1b63e6; border-color: #3c86ff; }

/* logo upload */
.logo-dropzone { border-style: dashed; border-color: #43597d; border-radius: 12px; transition: border-color .18s var(--pq-ease), background .18s var(--pq-ease); }
.upload-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: #8ec0ff; background: rgba(20,52,100,.5); border: 1px solid rgba(70,120,200,.3); }
.upload-icon .pq-ico { width: 20px; height: 20px; }
.logo-thumb { display: grid; place-items: center; color: #9cc6ff; }
.logo-thumb .pq-ico { width: 22px; height: 22px; }
.logo-error:empty { display: none; }
.logo-error { font-size: 12px; color: #ff8c9b; margin: 8px 0 0; }

/* preview: live indicator and toolbar */
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #20e083; box-shadow: 0 0 0 3px rgba(32,224,131,.16); animation: pq-pulse 2.4s ease-in-out infinite; }
@keyframes pq-pulse { 50% { box-shadow: 0 0 0 6px rgba(32,224,131,0); } }
.live-pill { font-size: 12.5px; }
.view-switch button { min-height: 32px; font-size: 12.5px; padding: 0 14px; }
.preview-card { box-shadow: 0 18px 50px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.03); }

/* downloads: one clear primary action, icons centred, large targets */
.download-primary, .download-secondary { min-height: 64px; border-radius: 13px; transition: transform .16s var(--pq-ease), box-shadow .2s var(--pq-ease), border-color .18s var(--pq-ease), filter .18s; }
.download-primary { box-shadow: 0 10px 30px rgba(19,90,235,.32), inset 0 1px rgba(255,255,255,.18); }
.download-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.download-secondary:hover { border-color: #4f78b0; transform: translateY(-1px); }
.download-primary:active, .download-secondary:active { transform: translateY(0) scale(.99); }
.download-primary strong, .download-secondary strong { font-size: 13.5px; }
.download-primary small, .download-secondary small { font-size: 11px; }
.action-icon { display: grid; place-items: center; }
.action-icon .pq-ico { width: 20px; height: 20px; }
.local-processing-note { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.55; color: #98a8c0; }
.lock-ico { color: #4fd68f; margin-top: 1px; }
.lock-ico .pq-ico { width: 16px; height: 16px; }
.app-selector-note { display: flex; gap: 8px; align-items: flex-start; font-size: 11.5px; line-height: 1.5; color: #8d9db6; }
.note-ico { color: #7db4ff; margin-top: 1px; }
.note-ico .pq-ico { width: 14px; height: 14px; }
.profile-arrow .pq-ico { width: 16px; height: 16px; }

/* guide / article readability */
.guide-shell summary { min-height: 64px; cursor: pointer; }
.guide-shell summary > b { display: grid; place-items: center; transition: transform .22s var(--pq-ease); }
.guide-shell[open] summary > b { transform: rotate(180deg); }
.guide-shell summary > b .pq-ico { width: 20px; height: 20px; }
.guide-shell summary span { font-size: 16px; }
.guide-shell summary small { font-size: 12.5px; }
.article { max-width: 860px; font-size: 16px; line-height: 1.75; }

/* hover only where hover exists; keeps touch screens calm */
@media (hover: none) {
  .download-primary:hover, .download-secondary:hover { transform: none; filter: none; }
}

/* mid-width fix: old minmax(500px,650px) columns forced horizontal overflow below ~1180px */
@media (max-width: 1180px) {
  .payqr-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .payqr-navbar { grid-template-columns: 1fr auto; row-gap: 10px; }
  .nav-tabs { grid-column: 1 / -1; order: 3; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .nav-tabs::-webkit-scrollbar { display: none; }
  .nav-tab { flex: 0 0 auto; }
}
@media (max-width: 620px) {
  .payqr-grid { padding: 10px; gap: 10px; }
  .control-panel { padding: 18px 14px 14px; }
  .three-card-grid { grid-template-columns: 1fr; }
  .color-card { min-height: 52px; }
  .download-grid { grid-template-columns: 1fr 1fr; }
  .download-primary { grid-column: 1 / -1; }
  .profile-copy { display: none; }
  .tool-title-row h1 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
  .payqr-breakout * { transition-duration: .01ms !important; }
}
