/* SmokeQR — app styles */
:root {
  --ink: #0F1C17;
  --muted: #4A5A53;
  --line: #DCE3E0;
  --line-2: #C9D4CF;
  --ground: #F4F6F5;
  --surface: #FFFFFF;
  --soft: #EEF3F1;
  --green: #0B6E4F;
  --green-d: #08523B;
  --green-l: #E3F1EB;
  --gold: #F2B43B;
  --gold-l: #FDF1D6;
  --blue-l: #E4EBFB;
  --danger: #B42318;
  --danger-l: #FDECEC;
  --radius: 16px;
  --font: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --display: Alexandria, 'IBM Plex Sans Arabic', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.7; }
img, svg { max-width: 100%; }
a { color: var(--green); }
a:hover { color: var(--green-d); }
h1, h2, h3 { font-family: var(--display); line-height: 1.3; margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 820px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.grid-2--top { align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--lg { min-height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn--sm { min-height: 38px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-d); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #22352C; color: #fff; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #E4A52A; color: var(--ink); }
.btn--outline { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--soft); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--soft); color: var(--ink); }
.btn--soft { background: var(--green-l); color: var(--green-d); }
.btn--white { background: #fff; color: var(--ink); }
.btn--muted { background: var(--soft); color: var(--muted); cursor: default; }
.btn--danger { background: var(--danger); color: #fff; }
.linkbtn { background: none; border: 0; padding: 6px 0; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: underline; }
.iconbtn { width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; }
.iconbtn:hover { background: var(--soft); color: var(--ink); }
.iconbtn--danger:hover { background: var(--danger-l); color: var(--danger); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .dlabel { font-weight: 600; font-size: 14px; }
.field small, .dfield small { color: var(--muted); font-size: 13px; }
.field input:not([type=checkbox]):not([type=radio]):not([type=color]), .field select, .field textarea, .search input, .inline-form select, .inline-form input {
  min-height: 48px; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; background: #FAFCFB; width: 100%; font-size: 16px;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: 2px solid var(--green-l); outline-offset: 0; background: #fff; }
.field input:disabled { background: var(--soft); color: var(--muted); }
.field--color input[type=color], .design input[type=color] { width: 64px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; background: #fff; cursor: pointer; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); flex: none; }
.req { color: var(--danger); font-weight: 700; }
.ferr { color: var(--danger); font-size: 13px; font-weight: 600; }
.flash { padding: 12px 16px; border-radius: 12px; margin: 16px 0; font-weight: 500; }
.flash--success { background: var(--green-l); color: var(--green-d); }
.flash--error { background: var(--danger-l); color: #8A1C1C; }
.upload { display: flex; align-items: center; gap: 12px; border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 16px; cursor: pointer; background: #FAFCFB; color: var(--muted); }
.upload:hover, .upload:focus-within { border-color: var(--green); color: var(--ink); }
.current-file { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 14px; margin-top: 4px; }

/* Segmented + chips */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--soft); padding: 4px; border-radius: 14px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.seg span em { font-style: normal; color: var(--green-d); font-weight: 500; }
.seg input:checked + span { background: #fff; box-shadow: 0 1px 3px rgba(15, 28, 23, .18); }
.seg input:focus-visible + span { outline: 3px solid var(--gold); }
.seg--big span { min-height: 44px; padding: 0 20px; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 500; font-size: 15px; cursor: pointer; }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--gold); }

/* Header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 21px; }
.brand:hover { color: var(--ink); }
.brand .m-bg { fill: var(--ink); } .brand .m-fg { fill: #fff; }
.brand--light { color: #fff; } .brand--light:hover { color: #fff; }
.brand--light .m-bg { fill: #fff; } .brand--light .m-fg { fill: var(--ink); }
.top__nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-weight: 500; font-size: 15px; }
.top__nav a { color: var(--ink); text-decoration: none; padding: 8px 0; }
.top__nav a:hover { color: var(--green); }
.top__end { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; flex-wrap: wrap; }
.langsel { position: relative; }
.langsel summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 12px; cursor: pointer; font-size: 14px; color: var(--muted); }
.langsel summary::-webkit-details-marker { display: none; }
.langsel summary:hover { background: var(--soft); }
.langsel__menu { position: absolute; inset-inline-end: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px -12px rgba(15, 28, 23, .3); padding: 6px; min-width: 150px; z-index: 30; display: flex; flex-direction: column; }
.langsel__menu a { padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.langsel__menu a:hover, .langsel__menu a[aria-current] { background: var(--soft); }
.side .langsel summary { color: #B9C8C1; }
.side .langsel summary:hover { background: #1F3529; }
.side .langsel__menu { top: auto; bottom: calc(100% + 4px); inset-inline-end: auto; inset-inline-start: 0; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero__in { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--green-l); color: var(--green-d); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }
.hero h1 { font-size: clamp(32px, 5vw, 58px); font-weight: 800; line-height: 1.25; max-width: 920px; }
.hero h1 em { font-style: normal; color: var(--green); }
.lead { font-size: 19px; color: var(--muted); max-width: 680px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Generator */
.gen-wrap { padding-bottom: 72px; }
.gen { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 24px 60px -30px rgba(15, 28, 23, .25); display: flex; flex-wrap: wrap; overflow: hidden; }
.gen__main { flex: 999 1 520px; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 28px; }
.gen__side { flex: 1 1 320px; min-width: 0; background: var(--soft); padding: 28px; display: flex; flex-direction: column; gap: 16px; border-inline-start: 1px solid var(--line); }
.gen__step { display: flex; flex-direction: column; gap: 14px; }
.gen__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.gen__fields[hidden] { display: none; }
.step-h { display: flex; align-items: center; gap: 12px; }
.step-h h2, .step-h h3 { font-size: 20px; font-weight: 700; }
.num { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 15px; }

/* Design controls */
.design { display: flex; flex-direction: column; gap: 18px; }
.design__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.dfield { display: flex; flex-direction: column; gap: 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sw { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; padding: 0; }
.sw.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.sw--custom { position: relative; overflow: hidden; background: conic-gradient(#e33, #fd3, #3c6, #39f, #93f, #e33); display: inline-block; }
.sw--custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.more { border-top: 1px solid var(--line); padding-top: 4px; }
.more > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 600; }
.more > summary::-webkit-details-marker { display: none; }
.more[open] > summary svg { transform: rotate(180deg); }
.more__body { display: flex; flex-direction: column; gap: 16px; padding-top: 10px; }
.panel.more { border-top: 1px solid var(--line); }
.panel.more > summary h2 { font-size: 18px; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* QR preview */
.qr-preview { width: 100%; max-width: 300px; align-self: center; margin-inline: auto; }
.qr-preview--sm { max-width: 240px; }
.qrbox { border: 4px solid transparent; border-radius: 20px; padding: 14px; box-shadow: 0 10px 30px -18px rgba(15, 28, 23, .45); display: flex; flex-direction: column; gap: 12px; }
.qrbox__qr svg, .qrbox__qr canvas { display: block; width: 100% !important; height: auto !important; }
.qrbox__bar { border-radius: 12px; padding: 10px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.qrbox__bar[hidden] { display: none; }
.dl { display: flex; flex-direction: column; gap: 14px; }
.seg--wrap { display: flex; }

/* Sections */
.section { padding: 72px 0; }
.section h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.section__head p, .section__intro p { color: var(--muted); font-size: 17px; margin-top: 8px; max-width: 640px; }
.section__intro { margin-bottom: 24px; }
.section h2.center { margin-bottom: 30px; }
.section--dark { background: var(--ink); color: #F4F6F5; }
.section--dark .section__head p { color: #B9C8C1; }
.promises { padding-bottom: 24px; }
.promise { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; gap: 16px; align-items: flex-start; }
.promise h3 { font-size: 18px; margin-bottom: 4px; }
.promise p { color: var(--muted); font-size: 15px; }
.ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; }
.ic--gold { background: var(--gold-l); color: #7A4E00; }
.ic--green { background: var(--green-l); color: var(--green-d); }
.ic--blue { background: var(--blue-l); color: #1E3A8A; }
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.type { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.type:hover { border-color: var(--green); color: var(--ink); transform: translateY(-2px); }
.type strong { display: block; font-size: 16px; }
.type small { display: block; color: var(--muted); font-size: 14px; line-height: 1.5; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.card--pad { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 20px; }
.bignum { font-family: var(--display); font-weight: 800; font-size: 44px; color: var(--green); line-height: 1; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.feature { background: var(--surface); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.feature svg { color: var(--green); }
.feature h3 { font-size: 18px; }
.feature p { color: var(--muted); font-size: 15px; }
.ind { background: #17291F; border: 1px solid #27412F; border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.ind__h { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 18px; }
.ind__h svg { color: var(--gold); }
.ind p { color: #B9C8C1; font-size: 15px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 28px 0 18px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.plan--hot { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan__h h3 { font-size: 22px; }
.tag { background: var(--gold); color: var(--ink); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; }
.plan__price { display: flex; align-items: baseline; gap: 8px; }
.plan__price strong { font-family: var(--display); font-size: 42px; font-weight: 800; line-height: 1; }
.plan__price span, .plan__tag { color: var(--muted); font-size: 15px; }
.plan--hot .plan__price span, .plan--hot .plan__tag { color: #B9C8C1; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex: none; margin-top: 3px; color: var(--green); }
.plan--hot li svg { color: var(--gold); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 20px; cursor: pointer; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; transition: transform .15s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq p { padding: 0 20px 18px; color: var(--muted); }

.cta-band { background: var(--green); color: #fff; border-radius: 28px; padding: 44px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); }
.cta-band p { color: var(--green-l); font-size: 17px; margin-top: 6px; }

/* Footer */
.foot { background: var(--ink); color: #B9C8C1; padding: 56px 0 28px; }
.foot__cols { display: flex; flex-wrap: wrap; gap: 36px; }
.foot__brand { flex: 2 1 260px; display: flex; flex-direction: column; gap: 10px; }
.foot__name { font-family: var(--display); font-weight: 800; font-size: 22px; color: #fff; }
.foot nav { flex: 1 1 150px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.foot nav strong { color: #fff; }
.foot a { color: #B9C8C1; text-decoration: none; }
.foot a:hover { color: #fff; }
.foot__bar { border-top: 1px solid #27412F; margin-top: 36px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }
.foot__langs { display: flex; gap: 16px; }

/* Auth */
.auth { padding: 56px 20px; display: flex; justify-content: center; }
.auth__card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.auth__card h1 { font-size: 26px; }
.auth__alt { text-align: center; font-size: 15px; }

/* App shell */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 240px; max-width: 100%; background: var(--ink); color: #B9C8C1; padding: 20px 14px; display: flex; flex-direction: column; gap: 20px; }
.side .brand { padding: 0 8px; }
.side__nav { display: flex; flex-direction: column; gap: 2px; }
.side__nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: #B9C8C1; text-decoration: none; }
.side__nav a:hover { background: #1A2E24; color: #fff; }
.side__nav a[aria-current] { background: #1F3529; color: #fff; font-weight: 600; }
.side__plan { background: #17291F; border: 1px solid #27412F; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.side__plan strong { color: #fff; font-size: 15px; }
.side__plan a { color: var(--gold); font-weight: 600; text-decoration: none; }
.side__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.side__foot .linkbtn { color: #B9C8C1; text-decoration: none; min-height: 44px; }
.meter { height: 8px; background: #27412F; border-radius: 99px; overflow: hidden; }
.meter > div { height: 100%; background: var(--gold); border-radius: 99px; }
.meter--light { background: var(--soft); }
.meter--light > div { background: var(--green); }
.app-main { flex: 999 1 640px; min-width: 0; padding: 24px clamp(16px, 3vw, 36px) 48px; display: flex; flex-direction: column; gap: 20px; }
.app-main > .flash { margin: 0; }
.page-h { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.page-h h1 { font-size: 26px; font-weight: 800; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.back { flex-basis: 100%; color: var(--muted); text-decoration: none; font-size: 14px; }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; flex: 1 1 240px; max-width: 380px; }
.search input { border: 0 !important; background: transparent !important; min-height: 44px; padding: 0 !important; outline: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 2px; }
.tile span { color: var(--muted); font-size: 14px; }
.tile strong { font-family: var(--display); font-size: 30px; font-weight: 800; }
.tile small { color: var(--muted); font-size: 13px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.panel--pad { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.panel--danger { border-color: #F3C3BF; }
.panel__h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.panel__h h2 { font-size: 17px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; background: #fff; }
.filters a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.empty { padding: 48px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: var(--muted); }
.empty h3 { color: var(--ink); font-size: 18px; }
.codes { list-style: none; margin: 0; padding: 0; }
.code { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 14px 20px; border-top: 1px solid var(--soft); }
.code:first-child { border-top: 0; }
.code__qr { width: 56px; height: 56px; flex: none; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.code__qr svg, .code__qr canvas { width: 100% !important; height: 100% !important; display: block; }
.code__main { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.code__name { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 16px; overflow-wrap: anywhere; }
.code__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 5px; background: var(--soft); border-radius: 8px; padding: 2px 8px; font-weight: 600; }
.copy { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--green); font-weight: 600; cursor: pointer; padding: 4px 0; font-size: 13px; }
.copy.is-copied { color: var(--ink); }
.copy.is-copied::after { content: '✓'; }
.copy--block { justify-content: center; background: var(--soft); border-radius: 12px; min-height: 44px; font-size: 15px; width: 100%; }
.code__scans { display: flex; flex-direction: column; align-items: center; min-width: 70px; }
.code__scans strong { font-family: var(--display); font-size: 20px; }
.code__scans span { font-size: 12px; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 600; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--active { background: var(--green-l); color: var(--green-d); }
.status--paused { background: #F1F1EE; color: #5E5E57; }
.status--expired { background: var(--gold-l); color: #7A4E00; }
.code__actions { display: flex; gap: 2px; margin-inline-start: auto; }
.code__actions form { display: contents; }

/* Editor */
.editor { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.editor__main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.editor__side { flex: 1 1 300px; min-width: 0; }
.sticky { position: sticky; top: 16px; }
.editor__save { display: flex; justify-content: flex-end; }
.typepick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.typepick__i { position: relative; }
.typepick__i input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.typepick__i span { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; font-weight: 500; font-size: 14px; cursor: pointer; height: 100%; }
.typepick__i input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.typepick__i input:focus-visible + span { outline: 3px solid var(--gold); }
.tfields { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.tfields[hidden] { display: none; }
.tfields > p, .tfields > .field:has(textarea), .tfields > .field:has(.upload) { grid-column: 1 / -1; }
.slug { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #FAFCFB; }
.slug span { padding: 0 10px; display: flex; align-items: center; color: var(--muted); font-size: 14px; background: var(--soft); white-space: nowrap; }
.slug input { border: 0 !important; border-radius: 0 !important; flex: 1; min-width: 0; }

/* Stats */
.chart { display: flex; align-items: flex-end; gap: 3px; height: 200px; border-bottom: 1px solid var(--line); }
.chart__col { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.chart__bar { width: 100%; background: var(--green); border-radius: 4px 4px 0 0; min-height: 0; }
.chart__col:hover .chart__bar { background: var(--gold); }
.chart__axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.bar-row { display: flex; flex-direction: column; gap: 6px; }
.bar-row__h { display: flex; justify-content: space-between; font-size: 14px; gap: 10px; }
.filters--pill { margin-bottom: -4px; }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.table th { text-align: start; padding: 12px 16px; background: #F7F9F8; color: var(--muted); font-weight: 600; }
.table td { padding: 10px 16px; border-top: 1px solid var(--soft); vertical-align: middle; }
.inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form select, .inline-form input { min-height: 38px !important; width: auto !important; padding: 4px 8px !important; font-size: 14px !important; }

/* Dialog */
.dlg { border: 0; border-radius: 22px; padding: 26px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 30px 80px -20px rgba(15, 28, 23, .5); }
.dlg::backdrop { background: rgba(15, 28, 23, .5); }
.dlg h2 { font-size: 20px; margin-bottom: 14px; }
.dlg__close { position: absolute; inset-inline-end: 14px; top: 14px; }
.dlg .dl { margin-top: 16px; }

/* Legal */
.legal h1 { font-size: 32px; margin-bottom: 6px; }
.legal h2 { font-size: 20px; margin: 26px 0 8px; }
.legal p { color: #2C3A34; }

/* Public landing pages (after scan) */
.is-landing { background: var(--soft); min-height: 100vh; }
.lp { padding: 28px 16px 12px; display: flex; justify-content: center; --accent: var(--green); }
.lp__card { width: 100%; max-width: 460px; background: #fff; border-radius: 26px; box-shadow: 0 20px 60px -30px rgba(15, 28, 23, .35); padding: 24px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.lp__card h1 { font-size: 24px; text-align: center; }
.lp__head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.lp__head--band { background: var(--accent); color: #fff; margin: -24px -24px 6px; padding: 30px 24px 24px; }
.lp__head--band .lp__bio { color: rgba(255, 255, 255, .88); }
.lp__avatar { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .35); }
.lp__avatar--txt { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-family: var(--display); font-size: 38px; font-weight: 800; }
.lp__head--band .lp__avatar--txt { background: rgba(255, 255, 255, .2); }
.lp__bio { color: var(--muted); font-size: 15px; text-align: center; }
.lp__social { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.lp__social a { width: 48px; height: 48px; border-radius: 50%; background: var(--soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.lp__links { display: flex; flex-direction: column; gap: 10px; }
.lp__btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 10px 16px; border-radius: 14px; border: 1.5px solid var(--accent); color: var(--accent); text-decoration: none; font-weight: 700; text-align: center; }
.lp__btn:hover { background: var(--soft); color: var(--accent); }
.lp__btn--solid { background: var(--accent); color: #fff; }
.lp__btn--solid:hover { filter: brightness(.95); background: var(--accent); color: #fff; }
.lp__rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lp__rows li > a, .lp__rows li > div { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--soft); color: var(--ink); text-decoration: none; }
.lp__rows small { display: block; color: var(--muted); font-size: 12px; }
.lp__ic { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.lp__note, .lp__text { color: #2C3A34; font-size: 16px; overflow-wrap: anywhere; }
.lp__text { font-size: 17px; line-height: 1.8; }
.lp__icon { width: 64px; height: 64px; border-radius: 20px; background: var(--soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; margin: 0 auto; }
.lp__icon--light { background: rgba(255, 255, 255, .2); color: #fff; }
.lp__warn { color: var(--danger); font-weight: 600; }
.coupon { font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: 2px; border: 2px dashed var(--accent); color: var(--accent); background: var(--soft); border-radius: 16px; padding: 14px; cursor: pointer; }
.coupon.is-copied::after { content: ' ✓'; }
.landing-foot { text-align: center; font-size: 13px; padding: 10px 0 24px; }
.landing-foot a { color: var(--muted); text-decoration: none; }

@media (max-width: 640px) {
  .gen__main, .gen__side { padding: 20px; }
  .gen__side { border-inline-start: 0; border-top: 1px solid var(--line); }
  .code__actions { margin-inline-start: 0; width: 100%; justify-content: flex-end; }
  .sticky { position: static; }
  .side { padding: 14px; gap: 12px; }
  .side__plan { display: none; }
  .side__nav { flex-direction: row; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Links page (templates) */
.lpx { min-height: calc(100vh - 60px); display: flex; justify-content: center; padding: 0 0 8px; }
.lpx__wrap { width: 100%; max-width: 460px; display: flex; flex-direction: column; }
.lpx__top { background: var(--top); color: var(--ink); text-align: center; padding: 28px 22px 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; border-radius: 0 0 24px 24px; }
.lpx__logo { width: auto; max-width: 160px; max-height: 150px; object-fit: contain; }
.lpx__mono { width: 88px; height: 88px; border-radius: 50%; background: var(--acc); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 38px; }
.lpx__top h1 { font-size: 23px; color: var(--ink); }
.lpx__top p { font-size: 15px; opacity: .8; }
.lpx__banner { color: var(--bink); text-align: center; font-family: var(--display); font-weight: 600; letter-spacing: .4px; font-size: 16px; padding: 18px 16px 6px; text-transform: uppercase; }
.lpx__list { display: flex; flex-direction: column; gap: 14px; padding: 14px 20px 24px; }
.lpx__card { display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 10px 18px; background: var(--card); color: var(--ink); border-radius: 12px; text-decoration: none; box-shadow: 0 6px 18px -12px rgba(0, 0, 0, .45); transition: transform .12s; }
.lpx__card:hover { transform: translateY(-2px); color: var(--ink); }
.lpx__ic { width: 34px; height: 34px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.lpx__ic svg { width: 18px; height: 18px; }
.lpx__label { font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: .2px; overflow-wrap: anywhere; }
.is-landing .landing-foot a { color: var(--lfoot, var(--muted)); opacity: .75; }

/* Links editor */
.tpl-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.tpl-pick label { position: relative; cursor: pointer; }
.tpl-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tpl-card { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; border: 2px solid var(--line); background: var(--tb); min-height: 112px; }
.tpl-card i { display: block; height: 10px; border-radius: 4px; background: var(--tc); }
.tpl-card i:first-child { height: 22px; background: var(--tt); }
.tpl-card b { margin-top: auto; font-size: 12px; color: var(--tk); background: var(--tc); border-radius: 6px; padding: 2px 6px; text-align: center; }
.tpl-pick input:checked + .tpl-card { border-color: var(--ink); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.tpl-pick input:focus-visible + .tpl-card { outline: 3px solid var(--gold); }
.linkrows { display: flex; flex-direction: column; gap: 8px; }
.linkrow { display: grid; grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 8px; align-items: center; background: #FAFCFB; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.linkrow__ic { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.linkrow input { min-height: 42px !important; padding: 6px 10px !important; font-size: 15px !important; }
.linkrow__btns { display: flex; gap: 2px; }
.linkrow__btns .iconbtn { width: 36px; height: 36px; }
.quickadd { display: flex; flex-wrap: wrap; gap: 6px; }
.quickadd button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px dashed var(--line-2); background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.quickadd button:hover { border-color: var(--green); }
.quickadd span { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.quickadd span svg { width: 13px; height: 13px; }
.page-frame { width: 100%; height: 560px; border: 8px solid var(--ink); border-radius: 28px; background: #fff; }
@media (max-width: 640px) { .linkrow { grid-template-columns: 36px minmax(0, 1fr) auto; } .linkrow input[data-url] { grid-column: 2 / 4; } }
.tfields > .field--wide { grid-column: 1 / -1; }
.editor__side .sticky { max-height: calc(100vh - 32px); overflow-y: auto; }

/* ===== Page builder: rendered pages ===== */
.pb { min-height: 100vh; background: var(--pb-bg); color: var(--pb-ink); display: flex; justify-content: center; padding: 0 0 24px; line-height: 1.6; }
.pb h1, .pb h2, .pb h3 { font-family: inherit; }
.pb__col { width: 100%; max-width: var(--pb-w); display: flex; flex-direction: column; gap: var(--pb-gap); padding: 0 var(--pb-pad); box-sizing: border-box; }
.pb__b:first-child { margin-top: 0; }
.pb__empty { margin-top: 40px; padding: 40px 16px; border: 2px dashed currentColor; opacity: .5; border-radius: 16px; text-align: center; }
.pb-h { margin: 0 calc(var(--pb-pad) * -1); padding: 28px 22px 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.pb-h--round { border-radius: 0 0 24px 24px; }
.pb-h__logo { max-width: 100%; height: auto; object-fit: contain; }
.pb-shape--circle { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.pb-shape--rounded { border-radius: 20px; }
.pb-h h1 { font-size: 24px; font-weight: 700; margin: 0; }
.pb-h p { margin: 0; font-size: 15px; opacity: .85; }
.pb__b--header + .pb__b { margin-top: 4px; }
.pb-hd { margin: 6px 0 0; font-weight: 700; line-height: 1.3; }
.pb-hd--s { font-size: 17px; } .pb-hd--m { font-size: 20px; } .pb-hd--l { font-size: 26px; } .pb-hd--xl { font-size: 32px; }
.pb-tx { margin: 0; overflow-wrap: anywhere; }
.pb-tx--s { font-size: 14px; } .pb-tx--m { font-size: 16px; } .pb-tx--l { font-size: 19px; }
.pb-bn { padding: 12px 14px; font-weight: 600; font-size: 16px; border-radius: 10px; letter-spacing: .3px; }
.pb-bn--up { text-transform: uppercase; }
.pb-btn { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 18px; text-decoration: none; font-weight: 700; font-size: 16px; border: 2px solid transparent; transition: transform .12s, filter .12s; }
.pb-btn:hover { transform: translateY(-2px); filter: brightness(.97); }
.pb-btn--shadow { box-shadow: 0 6px 18px -12px rgba(0, 0, 0, .45); }
.pb-btn--al-center { justify-content: center; }
.pb-btn--al-start { justify-content: flex-start; }
.pb-btn--up .pb-btn__l { text-transform: uppercase; letter-spacing: .3px; }
.pb-btn--thin { font-weight: 500; }
.pb-btn--line { background: transparent; border: 0; border-bottom: 1.5px solid; border-radius: 0 !important; width: fit-content; min-width: 60%; align-self: center; margin: 0 auto; padding: 6px 12px; min-height: 0 !important; }
.pb-btn--line:hover { transform: none; opacity: .75; }
.pb-ic { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pb-ic svg { display: block; }
.pb-ic--img { object-fit: contain; border-radius: 6px; }
.pb-h--cover { padding-top: 0; }
.pb-h__cover { align-self: stretch; margin: 0 -22px 0; background: linear-gradient(135deg, rgba(0,0,0,.35), rgba(0,0,0,.1)), repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 12px, transparent 12px 24px); background-size: cover; background-position: center; }
.pb-h__cover[style*="background-image"] { background-color: transparent; }
.pb-h__ph { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 2px dashed currentColor; opacity: .55; border-radius: 12px; font-size: 11px; position: relative; background: rgba(255,255,255,.4); }
.pb-h__ph.pb-shape--circle { border-radius: 50%; }
.pb-bn--plain { padding: 2px 8px; border-radius: 0; font-weight: 500; }
.pb-btn--outline { background: transparent; }
.pb-btn__ic { width: 34px; height: 34px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.pb-btn__l { overflow-wrap: anywhere; }
.pb-so { display: flex; flex-wrap: wrap; gap: 12px; }
.pb-so a { border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: transform .12s; }
.pb-so a:hover { transform: translateY(-2px); }
.pb__b--image img { max-width: 100%; height: auto; display: inline-block; }
.pb-gal { display: grid; gap: 8px; }
.pb-gal img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.pb-vid { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.pb-vid iframe, .pb-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pb-map { position: relative; border-radius: 14px; overflow: hidden; background: rgba(0, 0, 0, .06); }
.pb-maplink { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: inherit; font-weight: 600; font-size: 14px; }
.pb-dv { border-top: 2px solid; opacity: .35; }
.pb-dv--dots { border-top-style: dotted; border-top-width: 4px; }
.pb-ph { display: flex; align-items: center; justify-content: center; min-height: 120px; border: 2px dashed currentColor; border-radius: 14px; opacity: .45; }
.pb-ct, .pb-ev { background: #fff; color: #0F1C17; border-radius: 22px; overflow: hidden; box-shadow: 0 16px 40px -28px rgba(0, 0, 0, .5); margin-top: 16px; }
.pb-ct__top, .pb-ev__top { padding: 28px 20px 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.pb-ct__top img, .pb-ct__mono { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255, 255, 255, .85); }
.pb-ct__mono { display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .2); font-size: 38px; font-weight: 700; }
.pb-ct__top h1, .pb-ev__top h1 { margin: 0; font-size: 23px; }
.pb-ct__top p { margin: 0; opacity: .9; }
.pb-ct__rows { list-style: none; margin: 0; padding: 0 14px 10px; }
.pb-ct__rows li > a, .pb-ct__rows li > div { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid #EEF3F1; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.pb-ct__ic { width: 38px; height: 38px; flex: none; border-radius: 12px; background: #EEF3F1; display: inline-flex; align-items: center; justify-content: center; }
.pb-ev__tx { padding: 4px 18px 14px; margin: 0; }
.pb-cp { border-radius: 22px; padding: 24px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; color: #1f1f1f; box-shadow: 0 16px 40px -28px rgba(0, 0, 0, .5); margin-top: 8px; }
.pb-cp__ic { width: 60px; height: 60px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; color: var(--cp); background: color-mix(in srgb, var(--cp) 12%, white); }
.pb-cp h2 { margin: 0; font-size: 26px; color: var(--cp); }
.pb-cp p { margin: 0; }
.pb-cp__code { font-family: inherit; font-size: 26px; font-weight: 800; letter-spacing: 2px; border: 2px dashed var(--cp); color: var(--cp); background: transparent; border-radius: 14px; padding: 10px 22px; cursor: pointer; }
.pb-cp__code.is-copied::after { content: ' ✓'; }
.pb-cp small { opacity: .7; }
.pb-cp__exp { color: #B42318; font-weight: 600; }
.pb-cp .pb-btn { width: 100%; }
.pb--edit .pb__b { position: relative; cursor: pointer; outline: 1px dashed transparent; outline-offset: 2px; border-radius: 6px; }
.pb--edit .pb__b:hover { outline-color: rgba(59, 130, 246, .7); }
.pb--edit .pb__b.is-sel { outline: 2px solid #3B82F6; }

/* ===== Page builder: editor ===== */
.pbx { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 16px; background: #F7F9F8; overflow: hidden; }
.pbx[hidden] { display: none; }
.pbx__bar { display: flex; align-items: center; gap: 4px; padding: 8px 10px; background: #2B3A44; color: #fff; flex-wrap: wrap; }
.pbx__bar .iconbtn { color: #fff; }
.pbx__bar .iconbtn:hover, .pbx__bar .iconbtn.is-on { background: rgba(255, 255, 255, .16); color: #fff; }
.pbx__tbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 0; background: transparent; color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; }
.pbx__tbtn:hover { background: rgba(255, 255, 255, .16); }
.pbx__sep { width: 1px; height: 24px; background: rgba(255, 255, 255, .25); margin: 0 6px; }
.pbx__grow { flex: 1; }
.pbx__dev { display: flex; gap: 2px; }
.pbx__body { display: grid; grid-template-columns: minmax(270px, 1fr) minmax(0, 400px); min-height: 640px; }
.pbx__side { border-inline-end: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; min-width: 0; }
.pbx__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px 8px; }
.pbx__h h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.pbx__layers { border-bottom: 1px solid var(--line); }
.pbx__list { list-style: none; margin: 0; padding: 0 8px 10px; display: flex; flex-direction: column; gap: 4px; max-height: 300px; overflow-y: auto; }
.pbx__item { display: flex; align-items: center; gap: 2px; border: 1px solid transparent; border-radius: 10px; background: #fff; }
.pbx__item:hover { background: var(--soft); }
.pbx__item.is-sel { border-color: #3B82F6; background: #EFF6FF; }
.pbx__item.is-drag { opacity: .4; }
.pbx__item.is-over { box-shadow: inset 0 3px 0 #3B82F6; }
.pbx__grip { color: var(--muted); cursor: grab; display: inline-flex; padding: 0 2px; }
.pbx__pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; text-align: start; padding: 8px 4px; cursor: pointer; color: var(--ink); }
.pbx__pick span { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.pbx__pick strong { font-size: 14px; }
.pbx__pick small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbx__acts { display: flex; }
.pbx__acts .iconbtn { width: 32px; height: 32px; }
.pbx__acts .iconbtn:disabled { opacity: .3; cursor: default; }
.pbx__none { padding: 14px; color: var(--muted); font-size: 14px; text-align: center; }
.pbx__addmenu { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; padding: 4px 10px 12px; }
.pbx__addmenu[hidden] { display: none; }
.pbx__addmenu button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--ink); }
.pbx__addmenu button:hover { border-color: #3B82F6; color: #1D4ED8; }
.pbx__props { flex: 1; overflow-y: auto; max-height: 560px; }
.pbx__props.is-busy { opacity: .5; pointer-events: none; }
.pbx__fields { display: flex; flex-direction: column; gap: 12px; padding: 4px 14px 16px; }
.pbx__fields .field input:not([type=checkbox]):not([type=color]):not([type=range]), .pbx__fields .field select, .pbx__fields .field textarea { min-height: 42px; font-size: 15px; padding: 8px 12px; }
.pbx__fields input[type=range] { width: 100%; accent-color: #3B82F6; }
.pbx__fields output { color: var(--muted); font-weight: 500; font-size: 13px; }
.pbx__color > div { display: flex; align-items: center; gap: 12px; }
.pbx__color input[type=color] { width: 56px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; background: #fff; cursor: pointer; }
.pbx__color input[data-auto] { opacity: .45; }
.pbx__img { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pbx__img img, .pbx__noimg { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.pbx__thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.pbx__thumbs span { position: relative; }
.pbx__thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; display: block; }
.pbx__thumbs .iconbtn { position: absolute; top: -8px; inset-inline-end: -8px; width: 26px; height: 26px; background: #fff; border: 1px solid var(--line); border-radius: 50%; }
.pbx__addimg { width: 64px; height: 64px; border: 1.5px dashed var(--line-2); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); }
.pbx__links { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.pbx__links div { display: flex; gap: 4px; }
.pbx__links input { flex: 1; min-width: 0; min-height: 40px; border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 10px; }
.pbx__toggle { padding: 4px 0; }
.pbx__stage { background: #E8EDEB; padding: 20px 12px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.pbx__device { position: relative; width: 100%; height: 640px; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .5); }
.pbx__device.is-phone { width: 375px; max-width: 100%; height: 680px; border: 10px solid #111; border-radius: 40px; }
.pbx__device iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.pbx__loading { position: absolute; top: 10px; inset-inline-end: 10px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(0, 0, 0, .15); border-top-color: #3B82F6; animation: pbspin .7s linear infinite; }
.pbx__loading[hidden] { display: none; }
@keyframes pbspin { to { transform: rotate(360deg); } }
.pbx__hint { font-size: 13px; color: var(--muted); text-align: center; }
.pbx__tpl { width: min(760px, calc(100vw - 32px)); }
.pbx__tplgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-top: 14px; }
.pbx__tplgrid button { display: flex; flex-direction: column; gap: 8px; border: 2px solid var(--line); border-radius: 14px; padding: 8px; background: #fff; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink); }
.pbx__tplgrid button:hover, .pbx__tplgrid button:focus-visible { border-color: #3B82F6; }
.pbx__tplthumb { height: 150px; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; }
.pbx__tplthumb i { display: block; height: 16px; border-radius: 5px; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.pbx__tplthumb i:first-child { height: 38px; }
@media (max-width: 900px) { .pbx__body { grid-template-columns: 1fr; } .pbx__side { border-inline-end: 0; border-bottom: 1px solid var(--line); } .pbx__props { max-height: none; } }

/* Builder v2: tabs, icon picker, social grid, gallery */
.pbx__tabs { display: flex; gap: 2px; }
.pbx__tab { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 0; background: transparent; color: #CFD8DD; font-weight: 600; font-size: 14px; cursor: pointer; }
.pbx__tab:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.pbx__tab.is-on { background: #fff; color: #2B3A44; }
.pbx__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; }
.pbx__ic { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pbx__ic svg { display: block; }
.pbx__icimg { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.pbx__srow .pbx__icimg { width: 30px; height: 30px; }
.pbx__icnone { width: 40px; height: 40px; border-radius: 50%; border: 1.5px dashed var(--line-2); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.pbx__iccur { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #FAFCFB; }
.pbx__iccur strong { flex: 1; font-size: 14px; min-width: 0; }
.pbx__picker { margin-top: 8px; border: 1px solid #93C5FD; box-shadow: 0 12px 30px -16px rgba(29, 78, 216, .45); border-radius: 14px; background: #fff; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.pbx__psearch { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 10px; color: var(--muted); }
.pbx__psearch input { border: 0; outline: none; min-height: 40px; flex: 1; min-width: 0; background: transparent; font-size: 15px; }
.pbx__pcats { display: flex; flex-wrap: wrap; gap: 4px; }
.pbx__pcats button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--ink); }
.pbx__pcats button.is-on { background: #2B3A44; border-color: #2B3A44; color: #fff; }
.pbx__pspecial { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pbx__pspecial button, .pbx__pspecial label { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 1px dashed var(--line-2); border-radius: 10px; background: #FAFCFB; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--ink); text-align: center; }
.pbx__pspecial button:hover, .pbx__pspecial label:hover { border-color: #3B82F6; }
.pbx__pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 4px; max-height: 280px; overflow-y: auto; padding: 2px; }
.pbx__pgrid button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border: 1px solid transparent; border-radius: 10px; background: transparent; cursor: pointer; font-size: 11px; color: var(--ink); line-height: 1.2; }
.pbx__pgrid button:hover, .pbx__pgrid button:focus-visible { border-color: #3B82F6; background: #EFF6FF; }
.pbx__pgrid button[hidden] { display: none; }
.pbx__pgrid span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pbx__seg { display: flex; gap: 6px; flex-wrap: wrap; }
.pbx__seg button { width: 48px; height: 44px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pbx__seg button.is-on { border-color: #3B82F6; box-shadow: 0 0 0 2px #BFDBFE; }
.pbx__srow { display: flex; align-items: center; gap: 6px; }
.pbx__srow input { flex: 1; min-width: 0; min-height: 40px; border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 10px; }
.pbx__sicon { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 4px; cursor: pointer; display: inline-flex; }
.pbx__sicon:hover { border-color: #3B82F6; }
.pbx__nets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.pbx__nets button { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 5px; cursor: pointer; display: inline-flex; transition: transform .1s; }
.pbx__nets button:hover { transform: translateY(-2px); border-color: #3B82F6; }
.pbx__nets .pbx__netmore { padding: 0 12px; min-height: 46px; font-size: 13px; font-weight: 600; color: #1D4ED8; }
.pbx__gallery { padding: 12px; overflow-y: auto; max-height: 820px; }
.pbx__gallery[hidden] { display: none; }
.pbx__cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pbx__cats button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink); }
.pbx__cats button.is-on { background: #2B3A44; color: #fff; border-color: #2B3A44; }
.pbx__tplgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.pbx__tplhint { grid-column: 1 / -1; }
.pbx__tplitem { display: flex; flex-direction: column; gap: 6px; }
.pbx__tplframe { position: relative; width: 100%; aspect-ratio: 390 / 700; overflow: hidden; border-radius: 18px; border: 4px solid #111; background: #fff; }
.pbx__tplframe iframe { position: absolute; top: 0; left: 0; width: 390px; height: 700px; border: 0; transform-origin: 0 0; transform: scale(var(--tpls, .36)); pointer-events: none; }
.pbx__layers[hidden], .pbx__props[hidden] { display: none; }
.qrbox--top .qrbox__bar { order: -1; }
.qrbox--badge { padding: 16px; border-radius: 24px; }
.qrbox--badge .qrbox__qr { border-radius: 16px; padding: 10px; }

/* ===== 3-step flow ===== */
.flow-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.steps ol { list-style: none; margin: 0 auto; padding: 0; display: flex; justify-content: center; gap: 6px; max-width: 560px; }
.steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); position: relative; text-align: center; }
.steps li::before { content: ''; position: absolute; top: 14px; inset-inline-start: calc(-50% + 18px); inset-inline-end: calc(50% + 18px); height: 3px; border-radius: 3px; background: var(--line); }
.steps li:first-child::before { display: none; }
.steps li.is-done::before, .steps li.is-cur::before { background: var(--green); }
.steps__n { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--line); color: var(--muted); font-family: var(--display); z-index: 1; }
.steps li.is-cur { color: var(--ink); }
.steps li.is-cur .steps__n { border-color: var(--green); background: var(--green); color: #fff; }
.steps li.is-done .steps__n { border-color: var(--green); background: var(--green-l); color: var(--green-d); }
.typehead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.typehead h1 { font-size: 26px; font-weight: 800; }
.typesearch { max-width: 360px; }
.typegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); grid-auto-flow: dense; gap: 12px; }
.tt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .12s, transform .12s, box-shadow .12s; }
.tt:hover, .tt:focus-visible { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 10px 24px -18px rgba(15, 28, 23, .5); color: var(--ink); }
.tt[hidden] { display: none; }
.tt__ic { flex: none; display: inline-flex; align-items: center; justify-content: center; }
.tt__ic--line { width: 38px; height: 38px; border-radius: 12px; background: var(--soft); color: var(--green-d); }
.tt__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tt__body strong { font-size: 15.5px; }
.tt__body small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.tt__help { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2); color: var(--muted); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; position: relative; cursor: help; }
.tt__help::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); inset-inline-end: -10px; width: 200px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.5; padding: 8px 10px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 5; text-align: start; }
.tt__help:hover::after, .tt__help:focus::after, .tt__help.is-open::after { opacity: 1; }
.tt__go { width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--green-l); color: var(--green-d); display: inline-flex; align-items: center; justify-content: center; }
.tt--big { grid-row: span 2; flex-direction: column; justify-content: center; text-align: center; gap: 10px; padding: 18px; }
.tt--big .tt__ic--line { width: 64px; height: 64px; border-radius: 20px; }
.tt--big .tt__body { flex: none; }
.tt--big .tt__body strong { font-size: 18px; }
.tt--brand { justify-content: center; }
.typestrip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.tchip { position: relative; flex: none; }
.tchip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tchip span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.tchip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.tchip input:checked + span .pb-ic { filter: drop-shadow(0 0 1px #fff); }
.tchip input:focus-visible + span { outline: 3px solid var(--gold); }
.editor2 { display: flex; flex-direction: column; gap: 16px; }
.namerow { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }
.namerow:has(> :only-child) { grid-template-columns: 1fr; }
.codebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; }
.codebar h1 { font-size: 22px; font-weight: 800; }
.codebar__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.codebar__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.actionbar { position: sticky; bottom: 0; z-index: 10; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 12px 16px; background: rgba(244, 246, 245, .92); backdrop-filter: blur(6px); border-top: 1px solid var(--line); margin: 0 calc(clamp(16px, 3vw, 36px) * -1) -48px; }
.dz { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.dz__main { flex: 999 1 520px; min-width: 0; padding: 18px; display: flex; flex-direction: column; gap: 18px; }
.dz__side { flex: 1 1 320px; min-width: 0; }
.dz__tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.dz__tab { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--ink); }
.dz__tab:hover { border-color: var(--green); }
.dz__tab.is-on { border-color: var(--green); background: var(--green-l); color: var(--green-d); }
.dz__pane { display: flex; flex-direction: column; gap: 16px; }
.dz__pane[hidden] { display: none; }
.dz__save { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.presetgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.preset { aspect-ratio: 1; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; padding: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); }
.preset:hover, .preset.is-on { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-l); }
.preset__qr { display: block; width: 76px; height: 76px; border-radius: 6px; }
.preset__qr canvas, .preset__qr svg { width: 100% !important; height: 100% !important; display: block; }
.frametiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.ftile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; cursor: pointer; }
.ftile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ftile__box { width: 84px; height: 100px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; }
.ftile__box i { width: 46px; height: 46px; background: repeating-linear-gradient(90deg, #0F1C17 0 5px, transparent 5px 9px), repeating-linear-gradient(0deg, #0F1C17 0 5px, transparent 5px 9px); background-blend-mode: multiply; border-radius: 4px; opacity: .8; }
.ftile__box b { width: 54px; height: 12px; border-radius: 4px; }
.ftile__box--none b { display: none; }
.ftile__box--bar b { background: #0F1C17; }
.ftile__box--box { border: 3px solid #0F1C17; }
.ftile__box--box b { background: transparent; border-bottom: 3px solid #0F1C17; height: 6px; }
.ftile__box--top { flex-direction: column-reverse; }
.ftile__box--top b { background: transparent; border-bottom: 3px solid #0F1C17; height: 6px; }
.ftile__box--badge { background: #0F1C17; }
.ftile__box--badge i { background-color: #fff; outline: 4px solid #fff; }
.ftile__box--badge b { background: #fff; height: 5px; }
.ftile input:checked + .ftile__box { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-l); }
.ftile input:focus-visible + .ftile__box { outline: 3px solid var(--gold); }
.logogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 8px; }
.lgo { position: relative; display: flex; justify-content: center; cursor: pointer; }
.lgo input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.lgo > span:not(.sr-only) { padding: 6px; border: 1.5px solid transparent; border-radius: 14px; display: inline-flex; }
.lgo__none { width: 50px; height: 50px; align-items: center; justify-content: center; color: var(--muted); border-color: var(--line) !important; }
.lgo input:checked + span { border-color: var(--green) !important; background: var(--green-l); }
.lgo input:focus-visible + span { outline: 3px solid var(--gold); }
.logo-thumb img { width: 44px; height: 44px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.savetpl { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.savetpl .field { flex: 1 1 220px; }
.mytpl { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mytpl .preset { width: 100%; }
.mytpl__n { font-size: 12.5px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scan { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.scan::before { content: ''; width: 10px; height: 10px; border-radius: 50%; flex: none; background: currentColor; }
.scan--good { background: var(--green-l); color: var(--green-d); }
.scan--warn { background: var(--gold-l); color: #7A4E00; }
.scan--bad { background: var(--danger-l); color: #8A1C1C; }
@media (max-width: 760px) { .flow-h { grid-template-columns: 1fr; } .flow-h > span:empty { display: none; } .dz__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .namerow { grid-template-columns: 1fr; } }

/* ---------- My QR codes (mq) ---------- */
.mq-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.mq-h h1 { display: flex; align-items: center; gap: 10px; font-size: 28px; margin: 0; }
.mq-count { background: var(--green); color: #fff; border-radius: 999px; font-size: 14px; padding: 3px 11px; font-weight: 700; }
.tiles--sm .tile { padding: 14px 18px; }
.tiles--sm .tile strong { font-size: 24px; }
.fchips { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 12px; }
.fchip { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; cursor: pointer; font-family: inherit; }
.fchip small { color: var(--muted); font-weight: 600; }
.fchip:hover { border-color: var(--ink); }
.fchip[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.fchip[aria-current="true"] small { color: rgba(255, 255, 255, .7); }
.fchip--add { border-style: dashed; color: var(--green); }
.fbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.fbar strong { display: inline-flex; align-items: center; gap: 6px; }
.fbar form { margin: 0; }
.linkbtn--danger { color: var(--danger); }
.mq { overflow: visible; }
.mq-tools { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--soft); flex-wrap: wrap; }
.mq-all { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; font-size: 14px; }
.mq-all input, .mqc__check input { width: 18px; height: 18px; accent-color: var(--green); cursor: pointer; }
.mq-bulk { display: flex; align-items: center; gap: 2px; padding-inline-start: 12px; border-inline-start: 1px solid var(--line); opacity: .45; transition: opacity .15s; }
.mq-bulk.is-on { opacity: 1; }
.mq-bulk button:disabled { cursor: not-allowed; }
.mq-sel { font-size: 13px; font-weight: 700; color: var(--green); margin-inline-end: 6px; }
.mq-sel:empty { display: none; }
.mq-filter { display: flex; gap: 10px; padding: 12px 20px; flex-wrap: wrap; border-bottom: 1px solid var(--soft); }
.mq-filter .search { max-width: none; }
.mq-sel-wrap select { min-height: 46px; border-radius: 12px; border: 1px solid var(--line); padding: 0 12px; background: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.mqlist { list-style: none; margin: 0; padding: 0; }
.mqc { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 14px 18px; padding: 16px 20px; border-top: 1px solid var(--soft); position: relative; }
.mqc:first-child { border-top: 0; }
.mqc.is-sel { background: var(--green-l); }
.mqc.is-menu { z-index: 5; }
.mqc__vis { display: flex; gap: 8px; align-items: center; }
.mqc__qr { width: 84px; height: 84px; border-radius: 10px; background: #fff; border: 1px solid var(--soft); overflow: hidden; display: grid; place-items: center; }
.mqc__qr canvas, .mqc__qr svg { width: 100% !important; height: 100% !important; }
.mqc__thumb { display: block; width: 62px; height: 110px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); position: relative; background: var(--soft); flex: none; }
.mqc__thumb iframe { position: absolute; top: 0; inset-inline-start: 0; width: 390px; height: 692px; border: 0; transform: scale(.159); transform-origin: 0 0; pointer-events: none; }
[dir="rtl"] .mqc__thumb iframe { transform-origin: 100% 0; }
.mqc__main { min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.mqc__name { display: flex; align-items: center; gap: 4px; max-width: 100%; }
.mqc__name a { font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mqc__name a:hover { text-decoration: underline; }
.iconbtn--xs { width: 28px; height: 28px; border-radius: 8px; color: var(--muted); }
.mqc__rename { font: inherit; font-weight: 700; font-size: 16px; border: 1px solid var(--green); border-radius: 8px; padding: 4px 8px; min-width: 220px; max-width: 100%; outline: none; box-shadow: 0 0 0 3px var(--green-l); }
.mqc__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 2px 0 0; font-size: 13px; }
.mqc__meta div { display: flex; gap: 5px; align-items: center; }
.mqc__meta dt { color: var(--muted); }
.mqc__meta dt::after { content: ':'; }
.mqc__meta dd { margin: 0; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.mqc__scans { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); min-width: 56px; }
.mqc__scans strong { font-size: 20px; }
.mqc__scans span { font-size: 12px; color: var(--muted); }
.mqc__acts { display: flex; gap: 8px; align-items: center; }
.menu { position: relative; }
.menu [data-menu-btn] svg { transition: transform .15s; }
.menu [aria-expanded="true"] svg { transform: rotate(180deg); }
.menu__list { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px -12px rgba(15, 28, 23, .35); padding: 6px; z-index: 20; }
.menu__list.is-up { top: auto; bottom: calc(100% + 6px); }
.menu__list form { margin: 0; }
.menu__list [role="menuitem"] { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; background: none; border-radius: 9px; color: var(--ink); text-decoration: none; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; text-align: start; }
.menu__list [role="menuitem"]:hover, .menu__list [role="menuitem"]:focus-visible { background: var(--soft); outline: none; }
.menu__list .is-danger { color: var(--danger); }
.menu__list .is-danger:hover { background: var(--danger-l); }
.movelist { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow: auto; }
.moveopt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-weight: 600; cursor: pointer; text-align: start; color: var(--ink); }
.moveopt:hover { border-color: var(--green); background: var(--green-l); }
@media (max-width: 900px) {
  .mqc { grid-template-columns: auto auto minmax(0, 1fr); }
  .mqc__scans { grid-column: 2; flex-direction: row; gap: 5px; justify-content: flex-start; }
  .mqc .status { grid-column: 3; justify-self: start; }
  .mqc__acts { grid-column: 1 / -1; justify-content: flex-end; }
}
@media (max-width: 560px) {
  .mqc { padding: 14px; gap: 10px 12px; }
  .mqc__thumb { display: none; }
  .mqc__qr { width: 64px; height: 64px; }
  .mqc__acts .btn { flex: 1; justify-content: center; }
  .mq-bulk { border: 0; padding: 0; }
}
@media (max-width: 560px) {
  .tiles--sm { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tiles--sm .tile { padding: 10px 12px; }
  .tiles--sm .tile span { font-size: 12px; }
  .tiles--sm .tile strong { font-size: 20px; }
  .tiles--sm .tile small { display: none; }
  .mq-h h1 { font-size: 24px; }
}

/* ---------- Interactive restaurant menu (public page) ---------- */
.pb-mn { display: flex; flex-direction: column; gap: 14px; }
.pb-mn__search { display: flex; align-items: center; gap: 8px; background: var(--mn-card); color: var(--mn-ink); border-radius: 14px; padding: 0 14px; box-shadow: 0 2px 10px -6px rgba(0, 0, 0, .25); }
.pb-mn__search svg { opacity: .55; flex: none; }
.pb-mn__search input { flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; font: inherit; min-height: 48px; outline: none; }
.pb-mn__search input::placeholder { color: inherit; opacity: .5; }
.pb-mn__tabs { position: sticky; top: 0; z-index: 3; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px var(--pb-pad); margin: 0 calc(var(--pb-pad) * -1); background: var(--pb-bg); }
.pb-mn__tabs::-webkit-scrollbar { display: none; }
.pb-mn__tabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 14px; white-space: nowrap; }
.pb-mn--tabs-pills .pb-mn__tabs button { background: var(--mn-card); color: var(--mn-ink); border-radius: 999px; padding: 9px 16px; box-shadow: 0 1px 6px -3px rgba(0, 0, 0, .25); }
.pb-mn--tabs-pills .pb-mn__tabs button.is-on { background: var(--mn-acc); color: var(--mn-acc-ink); }
.pb-mn--tabs-line .pb-mn__tabs { gap: 18px; border-bottom: 1px solid color-mix(in srgb, var(--mn-page-ink) 18%, transparent); }
.pb-mn--tabs-line .pb-mn__tabs button { background: none; color: var(--mn-page-ink); opacity: .65; padding: 8px 2px; border-bottom: 3px solid transparent; border-radius: 0; }
.pb-mn--tabs-line .pb-mn__tabs button.is-on { opacity: 1; border-color: var(--mn-acc); }
.pb-mn__sec { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 70px; }
.pb-mn__sec[hidden] { display: none; }
.pb-mn__h { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: 20px; color: var(--mn-page-ink); }
.pb-mn__items { display: flex; flex-direction: column; gap: 10px; }
.pb-mn--grid .pb-mn__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pb-mn__it { position: relative; display: flex; align-items: flex-start; gap: 12px; background: var(--mn-card); color: var(--mn-ink); border-radius: 16px; padding: 12px; box-shadow: 0 2px 12px -8px rgba(0, 0, 0, .35); }
.pb-mn__it[hidden] { display: none; }
.pb-mn__it.has-img { cursor: pointer; }
.pb-mn__it.is-off { opacity: .55; }
.pb-mn__img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; flex: none; order: 2; }
.pb-mn__body { flex: 1; min-width: 0; }
.pb-mn__body h4 { margin: 0; font-size: 16px; line-height: 1.35; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pb-mn__body p { margin: 3px 0 0; font-size: 13px; line-height: 1.45; opacity: .72; }
.pb-mn__badge { font-style: normal; font-size: 11px; font-weight: 700; background: var(--mn-acc); color: var(--mn-acc-ink); border-radius: 999px; padding: 2px 8px; }
.pb-mn__off { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700; color: #B42318; }
.pb-mn__price { flex: none; font-size: 16px; font-weight: 800; color: var(--mn-acc); white-space: nowrap; order: 1; }
.pb-mn--list .pb-mn__it.has-img .pb-mn__price { position: absolute; bottom: 12px; inset-inline-start: 12px; }
.pb-mn--list .pb-mn__it.has-img .pb-mn__body { padding-bottom: 22px; }
.pb-mn--grid .pb-mn__it { flex-direction: column; gap: 8px; padding: 8px 8px 12px; }
.pb-mn--grid .pb-mn__img { width: 100%; height: auto; aspect-ratio: 4 / 3; order: 0; }
.pb-mn__img--ph { display: grid; place-items: center; font-size: 38px; background: color-mix(in srgb, var(--mn-acc) 14%, var(--mn-card)); }
.pb-mn--grid .pb-mn__body { padding: 0 4px; }
.pb-mn--grid .pb-mn__body h4 { font-size: 15px; }
.pb-mn--grid .pb-mn__price { padding: 0 4px; }
.pb-mn__none { text-align: center; opacity: .7; color: var(--mn-page-ink); }
.pb-mn__lb { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .7); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.pb-mn__lb[hidden] { display: none; }
.pb-mn__lbin { position: relative; width: 100%; max-width: 460px; background: var(--mn-card); color: var(--mn-ink); border-radius: 22px; overflow: hidden; animation: pbmnUp .2s ease-out; }
.pb-mn__lbin img { display: block; width: 100%; max-height: 60vh; object-fit: cover; }
.pb-mn__lbtx { padding: 14px 18px 20px; }
.pb-mn__lbtx h4 { margin: 0; font-size: 19px; }
.pb-mn__lbtx p { margin: 6px 0; opacity: .75; }
.pb-mn__lbtx strong { color: var(--mn-acc); font-size: 18px; }
.pb-mn__x { position: absolute; top: 10px; inset-inline-end: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 16px; cursor: pointer; }
@keyframes pbmnUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pb-mn__lbin { animation: none; } }

/* ---------- Menu editor (builder) ---------- */
.pbx__mn { display: flex; flex-direction: column; gap: 10px; }
.pbx__mnimp { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1.5px dashed var(--green); border-radius: 14px; background: var(--green-l); }
.pbx__mnimp strong { display: flex; align-items: center; gap: 6px; }
.pbx__mnimp small { color: var(--muted); }
.pbx__mnimp a { color: var(--green); font-weight: 700; }
.pbx__mnbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.pbx__mnbtns label { cursor: pointer; }
.pbx__mnmsg { margin: 0; font-size: 13px; font-weight: 600; color: var(--green-d); }
.pbx__mnmsg:empty { display: none; }
.pbx__mnmsg.is-err { color: var(--danger); }
.pbx__mncat { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.pbx__mncat.is-open { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-l); }
.pbx__mncath { display: flex; align-items: center; gap: 4px; padding: 8px; }
.pbx__mncath input { min-width: 0; min-height: 38px; border: 1px solid var(--line-2); border-radius: 10px; padding: 4px 10px; font: inherit; font-weight: 700; }
.pbx__mncath input[data-mf="name"] { flex: 1; }
.pbx__mnemo { width: 44px; text-align: center; font-size: 18px !important; padding: 2px !important; }
.pbx__mncath .iconbtn { width: 32px; height: 32px; }
.pbx__mncount { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 10px; border-radius: 999px; border: 0; background: var(--soft); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.pbx__mncount svg { transition: transform .15s; }
.is-open .pbx__mncount svg { transform: rotate(180deg); }
.pbx__mnitems { display: flex; flex-direction: column; gap: 8px; padding: 0 8px 8px; }
.pbx__mncat > .btn { margin: 0 8px 10px; }
.pbx__mnit { display: flex; gap: 8px; padding: 8px; border-radius: 12px; background: var(--soft); }
.pbx__mnit.is-off { opacity: .6; }
.pbx__mnthumb { flex: none; width: 58px; height: 58px; border-radius: 10px; background: #fff; border: 1px dashed var(--line-2); display: grid; place-items: center; cursor: pointer; overflow: hidden; color: var(--muted); }
.pbx__mnthumb img { width: 100%; height: 100%; object-fit: cover; }
.pbx__mnf { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pbx__mnrow, .pbx__mnrow2 { display: flex; gap: 5px; align-items: center; }
.pbx__mnf input[type=text], .pbx__mnf textarea { min-width: 0; border: 1px solid var(--line-2); border-radius: 9px; padding: 5px 9px; font: inherit; font-size: 14px; background: #fff; }
.pbx__mnrow input[data-mf="name"] { flex: 1; font-weight: 600; }
.pbx__mnprice { width: 74px; text-align: center; font-weight: 700; }
.pbx__mnf textarea { resize: vertical; min-height: 34px; font-size: 13px; }
.pbx__mnrow2 input[data-mf="badge"] { width: 96px; font-size: 12px !important; }
.pbx__mnrow2 .check { font-size: 12px; gap: 4px; }
.pbx__mnrow2 .iconbtn { width: 28px; height: 28px; }
.pb-mn--grid .pb-mn__img--ph { aspect-ratio: 16 / 10; font-size: 34px; }
