:root {
    --navy: #211a35;
    --navy-2: #312650;
    --teal: #ffb000;
    --teal-dark: #7255e9;
    --blue: #7255e9;
    --cream: #f7f2e9;
    --mist: #f2eff8;
    --white: #ffffff;
    --ink-muted: #71697c;
    --line: #ddd6e8;
    --danger: #c94455;
    --shadow: 0 24px 70px rgba(33, 26, 53, .13);
    --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--navy); background: var(--white); font-family: "Inter", sans-serif; font-size: 16px; line-height: 1.6; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img, canvas { max-width: 100%; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

h1, h2, h3 { margin: 0; font-family: "Space Grotesk", sans-serif; line-height: 1.08; letter-spacing: -.045em; }
h1 { font-size: clamp(3rem, 6vw, 5.7rem); }
h2 { font-size: clamp(2.2rem, 4vw, 3.7rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; color: var(--ink-muted); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); border-bottom: 1px solid rgba(220, 229, 233, .9); backdrop-filter: blur(18px); }
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: "Space Grotesk", sans-serif; font-size: 1.45rem; font-weight: 600; letter-spacing: -.04em; white-space: nowrap; }
.brand strong { font-weight: 800; }
.brand-mark { width: 31px; height: 31px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; transform: rotate(1deg); }
.brand-mark i { display: block; border: 4px solid var(--teal); border-radius: 3px; }
.brand-mark i:last-child { border: 0; background: var(--teal); width: 6px; height: 6px; align-self: end; justify-self: end; }
.main-nav { display: flex; align-items: center; gap: 30px; margin: 0 auto; }
.main-nav a { color: #617185; font-size: .94rem; font-weight: 600; transition: .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions form { margin: 0; }
.menu-toggle { display: none; border: 0; background: none; color: var(--navy); font-weight: 700; }

.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid transparent; border-radius: 11px; cursor: pointer; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:disabled { opacity: .5; cursor: not-allowed; }
.button-primary { color: #062d28; background: var(--teal); box-shadow: 0 10px 24px rgba(18, 214, 176, .2); }
.button-primary:hover:not(:disabled) { background: #1ce4bd; box-shadow: 0 14px 28px rgba(18, 214, 176, .29); }
.button-secondary { color: var(--navy); background: var(--white); border-color: var(--line); }
.button-ghost { padding-inline: 12px; color: var(--navy); background: transparent; }
.button-dark { color: var(--white); background: var(--navy); }
.button-large { min-height: 52px; padding-inline: 25px; }
.button-full { width: 100%; }

.flash { position: fixed; z-index: 80; top: 94px; left: 50%; transform: translateX(-50%); width: min(620px, calc(100% - 32px)); padding: 13px 17px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 10px; box-shadow: var(--shadow); }
.flash-error { border-left-color: var(--danger); }
.flash-notice { border-left-color: #f4a83d; }

.hero { position: relative; min-height: 700px; display: grid; align-items: center; overflow: hidden; background: linear-gradient(135deg, #fbfcf8 0%, #f5faf8 55%, #edf8f6 100%); }
.hero::after { content: ""; position: absolute; right: -8%; bottom: -44%; width: 680px; height: 680px; border: 1px solid rgba(18, 214, 176, .22); border-radius: 50%; box-shadow: 0 0 0 70px rgba(18, 214, 176, .03), 0 0 0 140px rgba(18, 214, 176, .025); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 80px; padding-block: 80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; color: #3f6078; font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow > span { width: 23px; height: 2px; background: var(--teal); }
.eyebrow.light { color: #c9dbe1; }
.hero-copy h1 { max-width: 730px; }
.hero-copy h1 em { color: var(--teal-dark); font-style: normal; }
.hero-copy > p { max-width: 635px; margin-top: 24px; font-size: 1.14rem; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 34px; }
.text-link { font-weight: 700; }
.text-link span { display: inline-block; margin-left: 6px; color: var(--teal-dark); transition: transform .2s; }
.text-link:hover span { transform: translateX(4px); }
.trust-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 42px; color: #50677b; font-size: .88rem; font-weight: 600; }
.trust-row span::before { content: "✓"; margin-right: 7px; color: var(--teal-dark); font-weight: 900; }
.hero-visual { position: relative; min-height: 490px; display: grid; place-items: center; }
.hero-visual::before { content: ""; position: absolute; width: 440px; height: 440px; background: var(--navy); border-radius: 43% 57% 64% 36% / 50% 44% 56% 50%; transform: rotate(-8deg); box-shadow: 0 35px 80px rgba(16, 36, 62, .22); }
.scan-card { position: relative; z-index: 2; width: 310px; padding: 28px 30px 25px; text-align: center; background: var(--white); border-radius: 25px; box-shadow: 0 30px 70px rgba(4, 18, 31, .27); transform: rotate(4deg); }
.scan-label { display: block; margin-bottom: 18px; color: #7a8895; font-size: .65rem; font-weight: 800; letter-spacing: .2em; }
.demo-qr { width: 220px; aspect-ratio: 1; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(5, 1fr); gap: 7px; margin: auto; padding: 10px; background: #fff; }
.demo-qr b, .demo-qr i { background: var(--navy); border-radius: 3px; }
.demo-qr b:nth-child(1) { grid-area: 1 / 1 / 3 / 3; border: 10px solid var(--navy); background: white; box-shadow: inset 0 0 0 7px white, inset 0 0 0 16px var(--navy); }
.demo-qr b:nth-child(2) { grid-area: 1 / 4 / 3 / 6; border: 10px solid var(--navy); background: white; box-shadow: inset 0 0 0 7px white, inset 0 0 0 16px var(--navy); }
.demo-qr b:nth-child(3) { grid-area: 4 / 1 / 6 / 3; border: 10px solid var(--navy); background: white; box-shadow: inset 0 0 0 7px white, inset 0 0 0 16px var(--navy); }
.scan-card > strong { display: block; margin-top: 17px; font-size: .9rem; }
.float-pill { position: absolute; z-index: 3; padding: 11px 16px; color: var(--navy); background: white; border-radius: 50px; box-shadow: 0 12px 35px rgba(16, 36, 62, .16); font-size: .78rem; font-weight: 800; }
.float-pill::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 7px; color: var(--navy); background: var(--teal); border-radius: 50%; }
.float-pill-top { top: 60px; right: 0; }
.float-pill-bottom { left: -15px; bottom: 70px; }

.generator-section { padding: 110px 0 125px; background: var(--white); }
.section-heading { margin-bottom: 54px; }
.section-heading.centered { text-align: center; }
.section-heading p { max-width: 650px; margin: 17px auto 0; font-size: 1.05rem; }
.generator-app { overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--white); box-shadow: var(--shadow); }
.mode-switch { display: flex; padding: 12px; background: var(--mist); border-bottom: 1px solid var(--line); }
.mode-switch button { flex: 1; min-height: 50px; border: 0; border-radius: 11px; color: #607285; background: transparent; cursor: pointer; font-weight: 700; }
.mode-switch button.active { color: var(--navy); background: white; box-shadow: 0 5px 18px rgba(16, 36, 62, .09); }
.plan-badge, .pro-chip { display: inline-block; padding: 2px 7px; margin-left: 5px; color: #735716; background: #ffe9a8; border-radius: 20px; font-size: .61rem; font-weight: 900; letter-spacing: .05em; }
.generator-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; }
.generator-controls { padding: 44px; }
.preview-panel { padding: 44px; background: #f5f8f8; border-left: 1px solid var(--line); }
.preview-sticky { position: sticky; top: 125px; text-align: center; }
.step-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.step-heading > span { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; color: var(--navy); background: var(--teal); border-radius: 10px; font-weight: 800; }
.step-heading strong, .step-heading small { display: block; }
.step-heading strong { font-family: "Space Grotesk", sans-serif; font-size: 1.08rem; }
.step-heading small { margin-top: 2px; color: var(--ink-muted); }
.step-heading.compact { margin-top: 34px; }
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.type-button { min-height: 70px; display: flex; align-items: center; gap: 11px; padding: 13px; color: #536779; background: white; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: .9rem; font-weight: 700; text-align: left; transition: .2s; }
.type-button > span { width: 31px; height: 31px; display: grid; place-items: center; color: var(--navy); background: var(--mist); border-radius: 8px; font-size: 1.05rem; }
.type-button:hover { border-color: #9cdccc; }
.type-button.active { color: var(--navy); border-color: var(--teal-dark); background: #f1fffb; box-shadow: inset 0 0 0 1px var(--teal-dark); }
.type-button.active > span { background: var(--teal); }
.dynamic-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.dynamic-fields .field:only-child, .dynamic-fields .field:nth-last-child(1):nth-child(odd), .dynamic-fields .field:has(textarea) { grid-column: 1 / -1; }
.field { display: block; margin-top: 14px; }
.field > span { display: flex; align-items: center; min-height: 24px; margin-bottom: 7px; color: #40556a; font-size: .84rem; font-weight: 700; }
.field input:not([type="color"]), .field textarea, .field select, .search-field input { width: 100%; min-height: 48px; padding: 11px 14px; color: var(--navy); background: #fbfcfc; border: 1px solid var(--line); border-radius: 10px; outline: 0; transition: .2s; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus, .search-field input:focus { border-color: var(--teal-dark); box-shadow: 0 0 0 3px rgba(18, 214, 176, .13); }
.premium-controls { margin-top: 35px; padding-top: 2px; border-top: 1px dashed var(--line); }
.premium-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field input[type="color"] { width: 100%; height: 48px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.field input[type="color"]:disabled { opacity: .45; }
.upload-box { min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; color: #526578; background: #fbfcfc; border: 1px dashed #afbec8; border-radius: 10px; cursor: pointer; font-size: .88rem; font-weight: 700; }
.upload-box input { position: absolute; opacity: 0; pointer-events: none; }
.upload-box.locked { cursor: not-allowed; opacity: .7; }
.check-field { display: flex; align-items: flex-start; gap: 9px; color: #53677a; font-size: .88rem; }
.check-field input { margin-top: 5px; accent-color: var(--teal-dark); }
.inline-check { align-items: center; margin-top: 22px; }
.preview-label { display: inline-block; margin-bottom: 20px; color: #758694; font-size: .69rem; font-weight: 800; letter-spacing: .16em; }
.qr-stage { position: relative; width: 285px; height: 285px; box-sizing: border-box; display: grid; place-items: center; margin: 0 auto 24px; background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 15px 35px rgba(16, 36, 62, .08); overflow: hidden; }
.qr-stage [data-qr-preview] { max-width: 100%; line-height: 0; }
.qr-stage [data-qr-preview] canvas, .qr-stage [data-qr-preview] svg { display: block; max-width: 100%; height: auto; }
.scan-line { position: absolute; left: 22px; right: 22px; top: 28%; height: 2px; background: linear-gradient(90deg, transparent, var(--teal), transparent); box-shadow: 0 0 12px var(--teal); opacity: .65; animation: scan 3s ease-in-out infinite; }
@keyframes scan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(130px); } }
.preview-sticky > strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 1.08rem; }
.preview-sticky > small { display: block; margin-top: 4px; color: var(--ink-muted); }
.preview-actions { display: grid; gap: 9px; margin-top: 23px; }
.preview-actions > [data-single-preview-actions] { display: grid; gap: 9px; }
.preview-actions > [data-single-preview-actions].hidden { display: none; }
.bulk-preview-note { margin: 0; padding: 13px 14px; color: #211a35; background: #ffcf61; border: 2px solid #211a35; border-radius: 9px; font-size: .76rem; font-weight: 800; line-height: 1.45; }
.privacy-note { margin-top: 15px; font-size: .76rem; }
.privacy-note::before { content: "●"; margin-right: 6px; color: var(--teal-dark); }
.limit-note { margin: 10px 0 15px; color: var(--ink-muted); font-size: .82rem; }
.generator-layout.bulk-active { grid-template-columns: 370px minmax(0, 1fr); }
.generator-layout.bulk-active .generator-controls { width: auto; margin: 0; padding: 48px; }
.generator-layout.bulk-active [data-bulk-panel] { padding: 22px; background: #faf8ff; border: 1px solid #ded6ef; border-radius: 16px; }
.bulk-format-hint { margin: 8px 0 4px; padding: 10px 12px; color: #5d536b; background: #f1edf8; border-left: 4px solid #7255e9; border-radius: 7px; font-size: .78rem; line-height: 1.45; }
.bulk-final-step { margin-top: 28px; padding: 22px; background: #fff4cf; border: 2px solid #211a35; border-radius: 12px; box-shadow: 5px 5px 0 #ffb000; }
.bulk-final-step .step-heading { margin-top: 0; }
.bulk-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 34px; background: var(--mist); border-top: 1px solid var(--line); }
.bulk-card { min-width: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto 42px 42px; gap: 10px 14px; padding: 18px; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 22px rgba(33,26,53,.06); }
.bulk-qr { grid-row: 1 / 4; min-height: 112px; display: grid; place-items: center; line-height: 0; }
.bulk-qr img { display: block; max-width: 112px; max-height: 112px; object-fit: contain; }
.bulk-qr-loading { color: #766d82; font-size: .68rem; line-height: 1.2; text-align: center; }
.bulk-card span, .bulk-card strong, .bulk-card small { display: block; }
.bulk-card span { color: var(--teal-dark); font-size: .65rem; font-weight: 800; }
.bulk-card small { max-width: 150px; overflow: hidden; color: var(--ink-muted); text-overflow: ellipsis; white-space: nowrap; }
.bulk-card button { min-height: 42px; padding: 8px 14px; color: var(--navy); background: var(--mist); border: 1px solid #d8d0e7; border-radius: 8px; cursor: pointer; font-size: .78rem; font-weight: 800; }
.bulk-message { grid-column: 1 / -1; padding: 20px; text-align: center; }
.bulk-message.error { color: var(--danger); }
.bulk-kind-switch { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 20px; padding: 6px; background: #e9e3f5; border: 1px solid var(--line); border-radius: 10px; }
.bulk-kind-switch button { min-height: 45px; padding: 8px 12px; color: #665d78; background: transparent; border: 0; border-radius: 7px; cursor: pointer; font-weight: 800; }
.generator-layout.bulk-active .bulk-kind-switch button { min-height: 56px; font-size: .92rem; }
.bulk-kind-switch button.active { color: white; background: #211a35; }
.credential-inline-warning { display: grid; gap: 3px; margin: 14px 0 18px; padding: 14px 15px; color: #6b4a00; background: #fff3cb; border: 2px solid #e1aa25; border-radius: 9px; }
.credential-inline-warning strong { font-size: .88rem; }
.credential-inline-warning span { font-size: .78rem; }
.password-mode { display: grid; gap: 8px; margin: 17px 0 4px; padding: 15px; border: 1px solid var(--line); border-radius: 9px; }
.password-mode legend { padding: 0 7px; color: #40556a; font-size: .82rem; font-weight: 800; }
.password-mode label { color: #53677a; font-size: .84rem; }
.password-mode input { margin-right: 7px; accent-color: #7255e9; }
.individual-passwords { margin-top: 17px; }
.individual-passwords > span { display: block; margin-bottom: 8px; color: #40556a; font-size: .84rem; font-weight: 800; }
.account-password-row { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(150px, 1.2fr); align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.account-password-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; font-weight: 700; }
.account-password-row input { width: 100%; min-height: 42px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; outline: 0; }
.account-password-row input:focus { border-color: #7255e9; box-shadow: 0 0 0 3px rgba(114, 85, 233, .15); }
.bulk-upgrade { padding: 35px 24px; text-align: center; background: #f3effc; border: 2px dashed #7255e9; border-radius: 11px; }
.bulk-upgrade h3 { margin: 12px 0 8px; }
.bulk-upgrade p { margin-bottom: 18px; }
.account-lock { display: inline-grid; place-items: center; width: 54px; height: 54px; color: #211a35; background: #ffb000; border: 2px solid #211a35; border-radius: 9px; font-weight: 900; }
.credential-bulk-card { border: 2px solid #7255e9; }
.security-dialog { width: min(560px, calc(100% - 28px)); padding: 0; color: #211a35; background: #fffdf8; border: 3px solid #211a35; border-radius: 14px; box-shadow: 12px 12px 0 #ffb000; }
.security-dialog::backdrop { background: rgba(15, 10, 27, .76); backdrop-filter: blur(4px); }
.security-dialog form { padding: 38px; }
.security-dialog-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 21px; color: #211a35; background: #ffb000; border: 2px solid #211a35; border-radius: 10px; font-family: "Space Grotesk", sans-serif; font-size: 2rem; font-weight: 900; transform: rotate(-4deg); }
.security-dialog h2 { font-size: 2rem; }
.security-dialog p { margin-top: 13px; }
.security-dialog ul { margin: 22px 0; padding: 17px 0 0 20px; border-top: 1px solid var(--line); color: #51495e; }
.security-dialog li { margin: 7px 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 27px; }

body.fullscreen-preview-open { overflow: hidden; }
.fullscreen-preview-dialog { width: calc(100vw - 24px); max-width: none; height: calc(100dvh - 24px); max-height: none; margin: auto; padding: 0; color: white; background: #171126; border: 3px solid #ffb000; border-radius: 18px; box-shadow: 0 30px 90px rgba(0,0,0,.55); overflow: hidden; }
.fullscreen-preview-dialog::backdrop { background: rgba(9,6,16,.9); backdrop-filter: blur(8px); }
.fullscreen-preview-shell { height: 100%; box-sizing: border-box; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 18px; padding: 22px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.fullscreen-preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.fullscreen-preview-toolbar span { display: block; margin-bottom: 3px; color: #ffcf61; font-size: .64rem; font-weight: 900; letter-spacing: .14em; }
.fullscreen-preview-toolbar h2 { color: white; font-size: clamp(1.25rem, 3vw, 2rem); }
.fullscreen-preview-toolbar button { min-height: 43px; padding: 0 16px; color: #211a35; background: #ffb000; border: 2px solid white; border-radius: 9px; cursor: pointer; font-weight: 900; }
.fullscreen-preview-stage { min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; padding: clamp(16px, 3vw, 42px); background: #fff; border: 3px solid #5f4b82; border-radius: 14px; overflow: hidden; }
.fullscreen-preview-stage img, .fullscreen-preview-stage svg { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.fullscreen-preview-shell > p { color: #bdb4cf; font-size: .72rem; text-align: center; }

.barcode-section { padding: 120px 0; background: #eae3ff; }
.barcode-app { overflow: hidden; background: white; border: 3px solid #211a35; border-radius: 16px; box-shadow: 14px 14px 0 #ffb000; }
.barcode-mode-switch { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 10px; background: #211a35; }
.barcode-mode-switch button { min-height: 49px; color: #cfc5e7; background: transparent; border: 0; border-radius: 8px; cursor: pointer; font-weight: 800; }
.barcode-mode-switch button.active { color: #211a35; background: #ffb000; }
.barcode-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 440px; }
.barcode-controls { padding: 45px; }
.barcode-preview-panel { padding: 45px 35px; text-align: center; background: #f8f5ee; border-left: 2px solid #211a35; }
.barcode-format-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.barcode-format-grid button { position: relative; min-height: 90px; padding: 13px; color: #211a35; background: white; border: 2px solid #d8d0e5; border-radius: 9px; cursor: pointer; text-align: left; }
.barcode-format-grid button:hover { border-color: #7255e9; }
.barcode-format-grid button.active { color: white; background: #7255e9; border-color: #211a35; box-shadow: 4px 4px 0 #211a35; }
.barcode-format-grid strong, .barcode-format-grid small { display: block; }
.barcode-format-grid small { margin-top: 4px; color: #81778e; font-size: .68rem; }
.barcode-format-grid button.active small { color: #e1daf7; }
.barcode-format-grid button > b { position: absolute; top: 7px; right: 7px; padding: 2px 4px; color: #563f00; background: #ffcf61; border-radius: 4px; font-size: .48rem; letter-spacing: .03em; }
.barcode-paper { width: 100%; min-width: 0; min-height: 260px; box-sizing: border-box; display: grid; place-items: center; overflow: hidden; padding: 24px; background: white; border: 3px solid #211a35; border-radius: 10px; box-shadow: 8px 8px 0 #7255e9; }
.barcode-paper svg, .barcode-paper canvas { display: block; max-width: 100%; height: auto; object-fit: contain; }
.barcode-paper, .qr-frame-preview { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.barcode-paper.invalid { box-shadow: 8px 8px 0 #d95a68; }
.barcode-error { margin: 18px 0 0; padding: 9px; color: #942d3b; background: #fff0f2; border: 1px solid #efb8c0; border-radius: 7px; font-size: .8rem; }
.barcode-preview-panel > strong, .barcode-preview-panel > small { display: block; }
.barcode-preview-panel > strong { margin-top: 26px; font-family: "Space Grotesk", sans-serif; font-size: 1.1rem; }
.barcode-preview-panel > small { color: #71697c; }
.barcode-account-notice { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 17px; padding: 13px 15px; color: #513d07; background: #fff2c5; border: 2px solid #dca71e; border-radius: 8px; font-size: .8rem; }
.barcode-account-notice a { color: #6345dc; font-weight: 900; }
.barcode-bulk-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; padding: 30px; background: #ece6f8; border-top: 2px solid #211a35; }
.barcode-result-card { min-width: 0; padding: 15px; background: white; border: 2px solid #211a35; border-radius: 9px; }
.barcode-result-card svg, .barcode-result-card canvas { display: block; max-width: 100%; height: auto; margin: 0 auto; object-fit: contain; }
.barcode-result-card div { margin-top: 10px; }
.barcode-result-card span, .barcode-result-card strong { display: block; }
.barcode-result-card span { color: #7255e9; font-size: .63rem; font-weight: 900; }
.barcode-result-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.barcode-result-card button { width: 100%; min-height: 37px; margin-top: 11px; color: white; background: #211a35; border: 0; border-radius: 6px; cursor: pointer; font-weight: 800; }
.barcode-card-error { display: block; margin-top: 11px; color: #c94455; }

.types-section { padding: 120px 0; background: var(--navy); color: white; }
.types-section p { color: #aebec8; }
.split-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: end; }
.split-heading p { margin: 0 0 5px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { min-height: 255px; padding: 28px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.11); border-radius: 18px; transition: .25s; }
.feature-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.09); border-color: rgba(18,214,176,.55); }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 30px; color: var(--navy); background: var(--teal); border-radius: 13px; font-size: 1.35rem; font-weight: 800; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { min-height: 52px; font-size: .91rem; }
.feature-card b { display: block; margin-top: 23px; color: var(--teal); font-size: .82rem; }

.pricing-section { padding: 120px 0; background: var(--cream); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { position: relative; padding: 35px; background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 15px 40px rgba(16,36,62,.05); }
.price-card.featured { border: 2px solid var(--teal-dark); transform: translateY(-12px); box-shadow: var(--shadow); }
.popular { position: absolute; top: -14px; right: 22px; padding: 6px 11px; color: var(--navy); background: var(--teal); border-radius: 30px; font-size: .65rem; font-weight: 900; letter-spacing: .08em; }
.price-name { color: var(--teal-dark); font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.price-card h3 { margin: 12px 0 8px; font-size: 2.8rem; }
.price-card h3 small { color: var(--ink-muted); font-family: "Inter", sans-serif; font-size: .9rem; font-weight: 500; letter-spacing: 0; }
.price-card > p { min-height: 53px; }
.price-card ul { min-height: 196px; margin: 25px 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; }
.price-card li { margin: 11px 0; color: #465b6e; }
.price-card li::before { content: "✓"; margin-right: 9px; color: var(--teal-dark); font-weight: 900; }
.price-card li.muted { color: #9aa6af; }
.price-card li.muted::before { content: "–"; color: #9aa6af; }

.faq-section { padding: 120px 0; }
.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 110px; }
.faq-grid > div:first-child p { margin-top: 22px; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { padding: 23px 45px 23px 0; cursor: pointer; font-family: "Space Grotesk", sans-serif; font-size: 1.05rem; font-weight: 700; list-style: none; }
.accordion summary::after { content: "+"; float: right; margin-right: -40px; color: var(--teal-dark); font-size: 1.4rem; }
.accordion details[open] summary::after { content: "−"; }
.accordion details p { padding: 0 30px 23px 0; }

.site-footer { padding: 65px 0 25px; color: white; background: #091a2d; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 50px; }
.brand-light .brand-mark i { border-color: var(--teal); }
.footer-grid > div:first-child p { margin-top: 15px; color: #8497a7; }
.footer-grid strong, .footer-grid a { display: block; }
.footer-grid > div > strong { margin-bottom: 15px; color: #d9e3e9; font-size: .85rem; }
.footer-grid > div > a:not(.brand) { margin: 8px 0; color: #8497a7; font-size: .87rem; }
.footer-grid a:hover { color: var(--teal); }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 50px; padding-top: 22px; color: #657989; border-top: 1px solid #1a3044; font-size: .78rem; }

.auth-main { min-height: calc(100vh - 82px); padding: 55px 20px; display: grid; place-items: center; background: var(--cream); }
.auth-shell { width: min(1040px, 100%); min-height: 650px; display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; background: white; border-radius: 28px; box-shadow: var(--shadow); }
.auth-aside { position: relative; overflow: hidden; padding: 65px 55px; color: white; background: var(--navy); }
.auth-aside::before { content: ""; position: absolute; width: 380px; height: 380px; right: -160px; bottom: -160px; background: var(--teal); border-radius: 50%; opacity: .12; }
.auth-aside h1 { max-width: 420px; font-size: clamp(2.4rem, 4vw, 3.55rem); }
.auth-aside p { margin-top: 22px; color: #b7c7d0; }
.auth-benefits { margin: 30px 0 0; padding: 0; list-style: none; }
.auth-benefits li { margin: 10px 0; color: #d9e5ea; }
.auth-benefits li::before { content: "✓"; margin-right: 9px; color: var(--teal); }
.auth-art { position: absolute; right: 35px; bottom: 45px; left: 35px; height: 190px; }
.mini-card { position: absolute; width: 150px; height: 88px; display: flex; align-items: center; justify-content: space-between; padding: 18px; color: var(--navy); background: white; border-radius: 16px; box-shadow: 0 18px 40px rgba(0,0,0,.2); font-weight: 800; }
.mini-card span { display: grid; place-items: center; width: 35px; height: 35px; background: var(--teal); border-radius: 9px; }
.mini-card.one { left: 15px; top: 35px; transform: rotate(-8deg); }
.mini-card.two { right: 10px; top: 0; transform: rotate(7deg); }
.mini-card.three { left: 145px; bottom: 0; transform: rotate(2deg); }
.login-aside { background: linear-gradient(155deg, #10243e, #183e5d); }
.stat-stack { position: absolute; right: 45px; bottom: 60px; left: 45px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-stack div { padding: 16px 10px; text-align: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09); border-radius: 13px; }
.stat-stack strong, .stat-stack span { display: block; }
.stat-stack strong { color: var(--teal); font-size: 1.5rem; }
.stat-stack span { color: #b6c6d0; font-size: .7rem; }
.auth-card { align-self: center; width: min(480px, calc(100% - 60px)); margin: 45px auto; }
.mobile-brand { display: none; margin-bottom: 35px; }
.auth-kicker { display: block; margin-bottom: 10px; color: var(--teal-dark); font-size: .72rem; font-weight: 900; letter-spacing: .15em; }
.auth-card h2 { font-size: 2.2rem; }
.auth-card > p { margin: 11px 0 27px; }
.auth-form { display: grid; gap: 5px; }
.auth-form .field { margin-top: 10px; }
.password-field { position: relative; }
.password-field button { position: absolute; right: 12px; bottom: 12px; color: var(--teal-dark); background: none; border: 0; cursor: pointer; font-size: .78rem; font-weight: 800; }
.password-field input { padding-right: 65px !important; }
.auth-form .check-field { margin: 13px 0 16px; }
.auth-switch { margin-top: 25px !important; text-align: center; font-size: .9rem; }
.auth-switch a, .resend-form button { color: var(--teal-dark); font-weight: 800; }
.form-errors { margin: 0 0 14px; padding: 12px 14px; color: #8f2736; background: #fff1f3; border: 1px solid #f3c5cc; border-radius: 9px; font-size: .85rem; }
.form-errors div + div { margin-top: 5px; }

.verify-main { min-height: calc(100vh - 82px); display: grid; place-items: center; padding: 70px 20px; background: radial-gradient(circle at 50% 20%, #edfff9, var(--cream) 50%); }
.verify-card { width: min(520px, 100%); padding: 50px; text-align: center; background: white; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.verify-icon { width: 66px; height: 66px; display: grid; place-items: center; margin: 0 auto 22px; color: var(--navy); background: var(--teal); border-radius: 18px; font-family: "Space Grotesk", sans-serif; font-size: 2rem; font-weight: 900; }
.verify-card h1 { font-size: 2.3rem; }
.verify-card > p { margin: 16px 0 25px; }
.verify-form input { width: 100%; height: 70px; margin-bottom: 14px; color: var(--navy); background: #fbfcfc; border: 1px solid var(--line); border-radius: 12px; outline: 0; text-align: center; font-size: 2rem; font-weight: 800; letter-spacing: .45em; }
.verify-form input:focus { border-color: var(--teal-dark); box-shadow: 0 0 0 4px rgba(18,214,176,.13); }
.dev-code { margin-bottom: 18px; padding: 11px; color: #6e5516; background: #fff7d6; border-radius: 9px; font-size: .85rem; }
.resend-form { margin-top: 16px; }
.resend-form button { background: none; border: 0; cursor: pointer; }

.dashboard-main { min-height: 70vh; padding: 70px 0 120px; background: var(--cream); }
.dashboard-hero { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.dashboard-hero h1 { font-size: clamp(2.5rem, 5vw, 4.3rem); }
.dashboard-hero p { margin-top: 12px; }
.dashboard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.dashboard-stats div { padding: 23px 25px; background: white; border: 1px solid var(--line); border-radius: 15px; }
.dashboard-stats span, .dashboard-stats strong { display: block; }
.dashboard-stats span { color: var(--ink-muted); font-size: .8rem; }
.dashboard-stats strong { margin-top: 5px; font-family: "Space Grotesk", sans-serif; font-size: 1.35rem; }
.library-section { margin-top: 65px; }
.library-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 24px; }
.library-heading h2 { font-size: 2rem; }
.library-heading p { margin-top: 5px; }
.search-field input { width: 260px; background: white; }
.library-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.library-card { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 12px 35px rgba(16,36,62,.05); }
.library-preview { min-height: 205px; display: grid; place-items: center; background: #f5f8f8; line-height: 0; }
.library-preview > img { width: 100%; max-width: 220px; max-height: 190px; object-fit: contain; }
.library-card-content { padding: 20px; }
.type-pill { display: inline-block; padding: 3px 8px; color: #087c66; background: #ddfff7; border-radius: 20px; font-size: .62rem; font-weight: 900; letter-spacing: .07em; }
.library-card h3 { margin: 9px 0 3px; }
.library-card p { font-size: .78rem; }
.card-actions { display: flex; border-top: 1px solid var(--line); }
.card-actions button { flex: 1; min-height: 44px; color: var(--navy); background: none; border: 0; cursor: pointer; font-weight: 700; }
.card-actions button + button { border-left: 1px solid var(--line); }
.card-actions button.danger-link { color: var(--danger); }
.empty-state { padding: 70px 20px; text-align: center; background: white; border: 1px dashed #bac8d0; border-radius: 18px; }
.empty-qr { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 20px; color: var(--navy); background: var(--teal); border-radius: 18px; font-size: 2rem; font-weight: 800; }
.empty-state p { margin: 10px auto 20px; }

@media (max-width: 980px) {
    .main-nav { display: none; position: absolute; top: 82px; right: 20px; left: 20px; padding: 18px; flex-direction: column; align-items: flex-start; gap: 13px; background: white; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
    .main-nav.open { display: flex; }
    .menu-toggle { display: block; margin-left: auto; }
    .hero-grid { grid-template-columns: 1fr; gap: 35px; }
    .hero-copy { text-align: center; }
    .hero-copy > p { margin-inline: auto; }
    .hero-actions, .trust-row { justify-content: center; }
    .hero-visual { min-height: 430px; }
    .generator-layout { grid-template-columns: 1fr; }
    .generator-layout.bulk-active { grid-template-columns: 1fr; }
    .preview-panel { border-top: 1px solid var(--line); border-left: 0; }
    .feature-grid, .pricing-grid, .library-grid { grid-template-columns: repeat(2, 1fr); }
    .price-card.featured { transform: none; }
    .split-heading, .faq-grid { gap: 50px; }
    .bulk-results { grid-template-columns: repeat(2, 1fr); }
    .auth-shell { grid-template-columns: 1fr; max-width: 620px; }
    .auth-aside { display: none; }
    .mobile-brand { display: inline-flex; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
    .footer-grid > div:last-child { display: none; }
}

@media (max-width: 680px) {
    .shell { width: min(100% - 28px, 1160px); }
    .site-header { position: relative; }
    .header-inner { min-height: 70px; gap: 12px; }
    .header-actions { display: none; }
    .main-nav { top: 70px; }
    .hero { min-height: auto; }
    .hero-grid { padding-block: 65px 45px; }
    .hero-copy h1 { font-size: clamp(2.7rem, 15vw, 4rem); }
    .hero-actions { flex-direction: column; gap: 17px; }
    .trust-row { gap: 9px 16px; }
    .hero-visual { min-height: 360px; transform: scale(.82); margin: -25px -30px; }
    .generator-section, .types-section, .pricing-section, .faq-section { padding-block: 80px; }
    .generator-controls, .preview-panel { padding: 26px 18px; }
    .mode-switch { flex-direction: column; }
    .type-grid { grid-template-columns: repeat(2, 1fr); }
    .dynamic-fields, .premium-row { grid-template-columns: 1fr; }
    .dynamic-fields .field { grid-column: auto !important; }
    .qr-stage { width: 270px; height: 270px; }
    .feature-grid, .pricing-grid, .library-grid, .dashboard-stats, .bulk-results { grid-template-columns: 1fr; }
    .split-heading, .faq-grid { grid-template-columns: 1fr; gap: 30px; }
    .price-card ul { min-height: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; gap: 5px; }
    .auth-main { padding: 20px 12px; }
    .auth-shell { min-height: 0; border-radius: 20px; }
    .auth-card { width: calc(100% - 36px); margin: 35px auto; }
    .verify-card { padding: 36px 22px; }
    .dashboard-main { padding-top: 45px; }
    .dashboard-hero, .library-heading { align-items: stretch; flex-direction: column; }
    .search-field input { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* QR Core's original visual identity: editorial, bold and deliberately unlike the reference site. */
.site-header {
    color: white;
    background: rgba(33, 26, 53, .96);
    border-bottom-color: #3c3158;
}
.site-header .brand { color: white; }
.brand { font-family: "Space Grotesk", sans-serif; letter-spacing: -.055em; }
.brand-mark {
    position: relative;
    display: block;
    width: 34px;
    height: 34px;
    overflow: hidden;
    background: #7255e9;
    border: 2px solid currentColor;
    border-radius: 9px;
    transform: rotate(-8deg);
}
.brand-mark i { display: none; }
.brand-mark::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 7px;
    top: 7px;
    left: 6px;
    background: white;
    border-radius: 5px;
    box-shadow: 6px 10px 0 white;
}
.brand-mark::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    right: 5px;
    bottom: 5px;
    background: #ffb000;
    border-radius: 50%;
}
.main-nav a { color: #cfc5e7; }
.main-nav a:hover, .main-nav a.active { color: #ffbf2f; }
.site-header .button-ghost { color: white; }
.site-header .button-dark { color: var(--navy); background: white; }
.site-header .menu-toggle { color: white; }
.button-primary { color: #211a35; background: #ffb000; box-shadow: 0 10px 0 rgba(76, 50, 7, .12); }
.button-primary:hover:not(:disabled) { background: #ffc12f; box-shadow: 0 12px 0 rgba(76, 50, 7, .12); }

.hero {
    min-height: 720px;
    background-color: #f0ebff;
    background-image: linear-gradient(rgba(114, 85, 233, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(114, 85, 233, .08) 1px, transparent 1px);
    background-size: 38px 38px;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0 0 0 52%;
    background: #7255e9;
    clip-path: polygon(17% 0, 100% 0, 100% 100%, 0 100%);
}
.hero::after {
    right: -210px;
    bottom: -320px;
    border: 2px solid rgba(255, 176, 0, .5);
    box-shadow: 0 0 0 70px rgba(255, 176, 0, .07), 0 0 0 140px rgba(255, 176, 0, .05);
}
.hero-grid { grid-template-columns: 1.15fr .85fr; gap: 90px; }
.hero-copy { padding: 30px 0; }
.hero-copy h1 { max-width: 720px; font-size: clamp(3.2rem, 6.2vw, 6.25rem); }
.hero-copy h1 em { color: #7255e9; }
.eyebrow { color: #65568b; }
.eyebrow > span { width: 9px; height: 9px; background: #ffb000; border-radius: 50%; }
.hero-visual::before {
    width: 410px;
    height: 430px;
    background: #ffb000;
    border: 3px solid #211a35;
    border-radius: 18px;
    box-shadow: 16px 16px 0 #211a35;
    transform: rotate(5deg);
}
.scan-card {
    width: 300px;
    border: 3px solid #211a35;
    border-radius: 12px;
    box-shadow: 12px 12px 0 rgba(33, 26, 53, .95);
    transform: rotate(-4deg);
}
.float-pill {
    border: 2px solid #211a35;
    border-radius: 9px;
    box-shadow: 6px 6px 0 rgba(33, 26, 53, .9);
}
.float-pill::before { background: #ffb000; }
.float-pill-top { right: -25px; }
.float-pill-bottom { left: -25px; }
.trust-row span::before { color: #7255e9; }

.generator-section { background: #fffaf0; }
.generator-app {
    border: 2px solid #211a35;
    border-radius: 16px;
    box-shadow: 14px 14px 0 #e4daf8;
}
.mode-switch { background: #e9e3f5; border-bottom-color: #211a35; }
.mode-switch button { border-radius: 8px; color: #665d78; }
.mode-switch button.active { color: white; background: #211a35; box-shadow: none; }
.generator-layout { grid-template-columns: 370px minmax(0, 1fr); }
.generator-controls { order: 2; padding: 48px; }
.preview-panel {
    order: 1;
    color: white;
    background: #2b2244;
    border-right: 2px solid #211a35;
    border-left: 0;
}
.preview-sticky > strong { color: white; font-family: "Space Grotesk", sans-serif; }
.preview-label, .preview-sticky > small, .privacy-note { color: #c9bfdf; }
.qr-stage {
    border: 3px solid #211a35;
    border-radius: 10px;
    box-shadow: 9px 9px 0 #ffb000;
}
.step-heading > span { background: #ffb000; border: 1px solid #211a35; border-radius: 7px; }
.step-heading strong { font-family: "Space Grotesk", sans-serif; }
.type-button { border-width: 2px; border-radius: 9px; }
.type-button > span { color: white; background: #7255e9; border-radius: 6px; }
.type-button.active { color: white; background: #7255e9; border-color: #211a35; box-shadow: 4px 4px 0 #211a35; }
.type-button.active > span { color: #211a35; background: #ffb000; }
.type-access-badge { margin-left: auto; padding: 2px 5px; color: #563f00; background: #ffcf61; border-radius: 4px; font-size: .5rem; letter-spacing: .04em; }
.field input:focus, .field textarea:focus, .field select:focus, .search-field input:focus { border-color: #7255e9; box-shadow: 0 0 0 3px rgba(114, 85, 233, .15); }
.field input[type="color"] { border-width: 2px; }
.pro-chip, .plan-badge { color: #3b2c04; background: #ffd770; }
.bulk-results { background: #e9e3f5; }

.types-section { color: #211a35; background: #ffb000; }
.types-section p { color: #655021; }
.types-section .eyebrow { color: #584414; }
.types-section .eyebrow > span { background: #7255e9; }
.feature-card {
    color: #211a35;
    background: #fffaf0;
    border: 2px solid #211a35;
    border-radius: 10px;
    box-shadow: 7px 7px 0 #211a35;
}
.feature-card:hover { background: white; border-color: #211a35; box-shadow: 11px 11px 0 #7255e9; }
.feature-card p { color: #71697c; }
.feature-card b { color: #7255e9; }
.feature-icon { color: white; background: #7255e9; border-radius: 8px; }

.pricing-section { color: white; background: #211a35; }
.pricing-section .section-heading p { color: #bdb3ce; }
.pricing-section .eyebrow { color: #d8cfea; }
.price-card { color: #211a35; border: 2px solid #4d4264; border-radius: 12px; box-shadow: 8px 8px 0 #0d0916; }
.price-card.featured { border-color: #ffb000; box-shadow: 10px 10px 0 #7255e9; }
.price-name { color: #7255e9; }
.popular { color: #211a35; background: #ffb000; border: 2px solid #211a35; }
.price-card h3 small { font-family: "Inter", sans-serif; }
.price-card li::before { color: #7255e9; }

.faq-section { background: #f7f2e9; }
.accordion summary::after { color: #7255e9; }
.site-footer { background: #171122; }
.site-footer .brand-mark { color: white; }

.auth-main {
    min-height: calc(100vh - 82px);
    background-color: #7255e9;
    background-image: radial-gradient(#a896f0 1.5px, transparent 1.5px);
    background-size: 22px 22px;
}
.auth-shell {
    display: block;
    width: min(570px, 100%);
    min-height: 0;
    overflow: visible;
    border: 3px solid #211a35;
    border-radius: 14px;
    box-shadow: 14px 14px 0 #ffb000;
}
.auth-aside { display: none; }
.auth-card { width: auto; margin: 0; padding: 48px 52px 52px; }
.auth-card .mobile-brand { display: inline-flex; }
.auth-card h2 { font-family: "Space Grotesk", sans-serif; }
.auth-kicker { color: #7255e9; }
.auth-switch a, .resend-form button { color: #6345dc; }
.auth-form .button-primary { border: 2px solid #211a35; box-shadow: 5px 5px 0 #211a35; }
.form-errors { border-width: 2px; }

.verify-main {
    background-color: #ffb000;
    background-image: linear-gradient(45deg, rgba(33, 26, 53, .08) 25%, transparent 25%, transparent 75%, rgba(33, 26, 53, .08) 75%), linear-gradient(45deg, rgba(33, 26, 53, .08) 25%, transparent 25%, transparent 75%, rgba(33, 26, 53, .08) 75%);
    background-position: 0 0, 18px 18px;
    background-size: 36px 36px;
}
.verify-card { border: 3px solid #211a35; border-radius: 14px; box-shadow: 14px 14px 0 #7255e9; }
.verify-icon { color: white; background: #7255e9; border: 2px solid #211a35; border-radius: 9px; }

.dashboard-main { background: #f7f2e9; }
.dashboard-stats { grid-template-columns: repeat(4, 1fr); }
.dashboard-stats div, .library-card, .empty-state { border: 2px solid #211a35; border-radius: 10px; box-shadow: 5px 5px 0 #e2d8f5; }
.library-preview { background: #eee9f8; }
.type-pill { color: #4c32b3; background: #e6dfff; }
.empty-qr { background: #ffb000; border: 2px solid #211a35; border-radius: 8px; }

.account-choice-main {
    min-height: calc(100vh - 82px);
    display: grid;
    place-items: center;
    padding: 70px 20px 90px;
    color: white;
    background-color: #7255e9;
    background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 32px 32px;
}
.account-choice { width: min(930px, 100%); text-align: center; }
.account-choice > .brand { margin-bottom: 38px; color: white; }
.account-choice .auth-kicker { color: #ffcf61; }
.account-choice h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.account-choice > p:not(.auth-switch) { max-width: 630px; margin: 18px auto 0; color: #ded7fa; }
.account-option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; text-align: left; }
.account-option {
    position: relative;
    min-height: 440px;
    padding: 34px;
    color: #211a35;
    background: #fffdf8;
    border: 3px solid #211a35;
    border-radius: 14px;
    box-shadow: 10px 10px 0 #211a35;
    transition: transform .2s, box-shadow .2s;
}
.account-option:hover { transform: translate(-4px, -4px); box-shadow: 14px 14px 0 #211a35; }
.account-option.business-option { background: #ffbd28; }
.account-option-icon { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 28px; color: white; background: #7255e9; border: 2px solid #211a35; border-radius: 10px; font-family: "Space Grotesk", sans-serif; font-size: 1.45rem; font-weight: 700; transform: rotate(-5deg); }
.business-option .account-option-icon { color: #211a35; background: white; }
.option-label { display: block; margin-bottom: 7px; color: #7255e9; font-size: .7rem; font-weight: 900; letter-spacing: .15em; }
.business-option .option-label { color: #594100; }
.account-option h2 { font-size: 2rem; }
.account-option > p { min-height: 78px; margin-top: 13px; }
.business-option > p { color: #695217; }
.account-option ul { margin: 25px 0 30px; padding: 21px 0 0; border-top: 1px solid #ddd6e8; list-style: none; }
.business-option ul { border-top-color: #d3970a; }
.account-option li { margin: 8px 0; }
.account-option li::before { content: "✓"; margin-right: 9px; color: #7255e9; font-weight: 900; }
.business-option li::before { color: #211a35; }
.account-option > strong { position: absolute; right: 34px; bottom: 30px; left: 34px; display: flex; justify-content: space-between; color: #7255e9; }
.business-option > strong { color: #211a35; }
.account-choice .auth-switch { margin-top: 38px !important; color: #ded7fa; }
.account-choice .auth-switch a { color: white; text-decoration: underline; }
.registration-shell { width: min(620px, 100%); }
.business-registration { background-color: #ffb000; }
.business-registration .registration-shell { box-shadow: 14px 14px 0 #7255e9; }
.back-to-choice { display: inline-block; margin-bottom: 27px; color: #7255e9; font-size: .8rem; font-weight: 800; }
.auth-form .field > span small { margin-left: 7px; color: #928a9c; font-weight: 500; }

@media (max-width: 980px) {
    .site-header .main-nav { background: #211a35; border-color: #4d4264; }
    .hero::before { inset: 53% 0 0 0; clip-path: polygon(0 16%, 100% 0, 100% 100%, 0 100%); }
    .hero-grid { grid-template-columns: 1fr; }
    .generator-layout { grid-template-columns: 1fr; }
    .generator-controls { order: 1; }
    .preview-panel { order: 2; border-top: 2px solid #211a35; border-right: 0; }
    .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
    .barcode-workspace { grid-template-columns: 1fr; }
    .barcode-preview-panel { border-top: 2px solid #211a35; border-left: 0; }
    .barcode-bulk-results { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
    .hero::before { inset: 58% 0 0 0; }
    .hero-visual { transform: scale(.78); }
    .auth-card { padding: 36px 24px 40px; }
    .auth-shell, .verify-card { box-shadow: 8px 8px 0 #ffb000; }
    .account-choice-main { padding: 50px 14px 70px; }
    .account-option-grid { grid-template-columns: 1fr; }
    .account-option { min-height: 420px; padding: 28px; }
    .account-option > strong { right: 28px; left: 28px; }
    .dashboard-stats { grid-template-columns: 1fr; }
    .barcode-section { padding: 80px 0; }
    .barcode-controls, .barcode-preview-panel { padding: 28px 18px; }
    .barcode-format-grid { grid-template-columns: repeat(2, 1fr); }
    .barcode-bulk-results { grid-template-columns: 1fr; padding: 18px; }
    .barcode-account-notice, .dialog-actions { align-items: stretch; flex-direction: column; }
    .fullscreen-preview-dialog { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
    .fullscreen-preview-shell { gap: 12px; padding: 14px; }
    .fullscreen-preview-toolbar { align-items: flex-start; }
    .fullscreen-preview-toolbar button { min-height: 40px; padding-inline: 11px; font-size: .76rem; }
    .fullscreen-preview-stage { padding: 12px; }
}

@media print {
    body.fullscreen-preview-open { visibility: hidden !important; }
}

/* QR design studio */
.design-group { margin: 20px 0; }
.design-group-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.design-group-heading strong { font-family: "Space Grotesk", sans-serif; }
.design-group-heading small { color: var(--ink-muted); font-size: .75rem; text-align: right; }
.theme-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.theme-presets button, .frame-options button, .symbol-options button {
    min-height: 46px;
    color: #3f3550;
    background: white;
    border: 1px solid #d9d2e4;
    border-radius: 9px;
    font: inherit;
    font-size: .77rem;
    font-weight: 800;
    cursor: pointer;
}
.theme-presets button { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.theme-presets button > span { width: 22px; height: 22px; flex: 0 0 auto; border: 2px solid white; border-radius: 50%; background: linear-gradient(135deg, var(--theme-a) 0 50%, var(--theme-b) 50%); box-shadow: 0 0 0 1px #cfc6da; }
.theme-presets button:hover, .frame-options button:hover, .symbol-options button:hover { border-color: #7255e9; }
.theme-presets button.active, .frame-options button.active, .symbol-options button.active { color: white; background: #7255e9; border-color: #211a35; box-shadow: 3px 3px 0 #211a35; }
.design-accordion { margin-top: 11px; border: 1px solid #d9d2e4; border-radius: 10px; background: #fffdf8; overflow: hidden; }
.design-accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 17px; color: #302742; font-size: .86rem; font-weight: 850; cursor: pointer; list-style: none; }
.design-accordion summary::-webkit-details-marker { display: none; }
.design-accordion summary::after { content: "+"; margin-left: auto; color: #7255e9; font-size: 1.3rem; line-height: 1; }
.design-accordion[open] summary::after { content: "-"; }
.design-accordion summary > span { padding: 3px 7px; color: #144b40; background: #b9f3e5; border-radius: 4px; font-size: .61rem; letter-spacing: .09em; }
.design-accordion-body { display: grid; gap: 13px; padding: 17px; border-top: 1px solid #e6e0ec; background: white; }
.frame-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.design-select-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.range-field input[type="range"] { width: 100%; accent-color: #7255e9; }
.range-field output { float: right; color: #7255e9; font-weight: 800; }
.inline-unlock { color: #7255e9; font-size: .76rem; font-weight: 800; }
.symbol-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.symbol-options button { min-height: 68px; padding: 6px; }
.symbol-options button > span { display: block; margin-bottom: 3px; font-size: 1.12rem; }
.symbol-options button:disabled { opacity: .42; cursor: not-allowed; }
.type-button[data-type="pdf"] > span, .type-button[data-type="app"] > span, .type-button[data-type="meeting"] > span, .type-button[data-type="form"] > span, .type-button[data-type="telegram"] > span { font-size: .55rem; font-weight: 900; letter-spacing: -.02em; }

.qr-frame-preview {
    --frame-color: #7255e9;
    --frame-text-color: #ffffff;
    --frame-font-size: 16px;
    position: relative;
    width: fit-content;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0 auto 24px;
    border-radius: 13px;
}
.qr-frame-preview .qr-stage { margin: 0; box-shadow: none; }
.frame-caption { display: none; padding: 11px 15px; color: var(--frame-text-color); font-family: "Space Grotesk", sans-serif; font-size: var(--frame-font-size); font-weight: 900; line-height: 1.05; letter-spacing: .07em; text-align: center; word-break: break-word; }
.qr-frame-preview[data-frame-style="none"] .qr-stage { box-shadow: 9px 9px 0 #ffb000; }
.qr-frame-preview[data-frame-style="border"] { padding: 12px; background: var(--frame-color); border: 3px solid #211a35; box-shadow: 7px 7px 0 #ffb000; }
.qr-frame-preview[data-frame-style="border"] .qr-stage { border-radius: 7px; }
.qr-frame-preview[data-frame-style="border"] .frame-caption-bottom { display: block; margin: 10px 0 0; padding: 4px 10px 1px; background: var(--frame-color); }
.qr-frame-preview[data-frame-style="bottom"],
.qr-frame-preview[data-frame-style="top"],
.qr-frame-preview[data-frame-style="poster"],
.qr-frame-preview[data-frame-style="speech"] { padding: 12px; background: var(--frame-color); border: 3px solid #211a35; box-shadow: 7px 7px 0 #ffb000; }
.qr-frame-preview[data-frame-style="bottom"] .frame-caption-bottom,
.qr-frame-preview[data-frame-style="top"] .frame-caption-top,
.qr-frame-preview[data-frame-style="poster"] .frame-caption-top,
.qr-frame-preview[data-frame-style="poster"] .frame-caption-bottom,
.qr-frame-preview[data-frame-style="speech"] .frame-caption-bottom { display: block; }
.qr-frame-preview[data-frame-style="top"] .frame-caption-top,
.qr-frame-preview[data-frame-style="poster"] .frame-caption-top { order: -1; }
.qr-frame-preview[data-frame-style="speech"] { margin-bottom: 42px; }
.qr-frame-preview[data-frame-style="speech"]::after { content: ""; position: absolute; right: 34px; bottom: -28px; border-width: 28px 0 0 35px; border-style: solid; border-color: transparent transparent transparent var(--frame-color); filter: drop-shadow(2px 2px 0 #211a35); }
.scan-quality { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 13px; color: #d8d0e7; font-size: .74rem; }
.scan-quality > span { width: 9px; height: 9px; border-radius: 50%; background: #1fd8ae; box-shadow: 0 0 0 3px rgba(31,216,174,.18); }
.scan-quality.quality-moderate > span { background: #ffb000; box-shadow: 0 0 0 3px rgba(255,176,0,.18); }
.scan-quality.quality-low > span { background: #ff6b61; box-shadow: 0 0 0 3px rgba(255,107,97,.18); }
.scan-quality.quality-low strong { color: #ffc0bb; }
.saved-design-wrapper { --frame-color: #7255e9; --frame-text-color: #ffffff; display: flex; flex-direction: column; align-items: stretch; padding: 8px; background: transparent; border-radius: 8px; line-height: 1; }
.saved-qr-host { line-height: 0; }
.saved-caption { display: none; max-width: 150px; padding: 7px 5px; color: var(--frame-text-color); font-family: "Space Grotesk", sans-serif; font-size: .65rem; font-weight: 900; letter-spacing: .06em; text-align: center; word-break: break-word; }
.saved-design-wrapper[data-frame-style="border"] { background: white; border: 5px solid var(--frame-color); }
.saved-design-wrapper[data-frame-style="bottom"], .saved-design-wrapper[data-frame-style="top"], .saved-design-wrapper[data-frame-style="poster"], .saved-design-wrapper[data-frame-style="speech"] { background: var(--frame-color); border: 2px solid #211a35; }
.saved-design-wrapper[data-frame-style="bottom"] .saved-caption-bottom,
.saved-design-wrapper[data-frame-style="border"] .saved-caption-bottom,
.saved-design-wrapper[data-frame-style="speech"] .saved-caption-bottom,
.saved-design-wrapper[data-frame-style="top"] .saved-caption-top,
.saved-design-wrapper[data-frame-style="poster"] .saved-caption-top,
.saved-design-wrapper[data-frame-style="poster"] .saved-caption-bottom { display: block; }
.saved-design-wrapper[data-frame-style="top"] .saved-caption-top, .saved-design-wrapper[data-frame-style="poster"] .saved-caption-top { order: -1; }
.bulk-zip-toolbar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; color: white; background: #7255e9; border: 2px solid #211a35; border-radius: 10px; box-shadow: 5px 5px 0 #211a35; }
.bulk-zip-toolbar strong, .bulk-zip-toolbar span { display: block; }
.bulk-zip-toolbar span { margin-top: 3px; color: #e5defb; font-size: .78rem; }
.bulk-zip-toolbar .button { flex: 0 0 auto; }
.footer-bottom a { color: #ffcf61; font-weight: 800; }
.footer-bottom a:hover { text-decoration: underline; }

@media (max-width: 680px) {
    .theme-presets, .frame-options { grid-template-columns: repeat(2, 1fr); }
    .design-select-grid { grid-template-columns: 1fr; }
    .symbol-options { grid-template-columns: repeat(2, 1fr); }
    .design-group-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
    .design-group-heading small { text-align: left; }
    .qr-frame-preview .qr-stage { width: 250px; height: 250px; }
    .bulk-zip-toolbar { align-items: stretch; flex-direction: column; }
}

.profile-menu { position: relative; z-index: 100; }
.profile-menu::after { content: ""; position: absolute; top: 100%; right: 0; left: 0; height: 16px; }
.profile-menu summary { min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 5px 12px 5px 6px; color: white; background: #332847; border: 2px solid #5a4a75; border-radius: 10px; box-shadow: 4px 4px 0 #ffb000; cursor: pointer; font-weight: 800; list-style: none; user-select: none; }
.profile-menu summary::-webkit-details-marker { display: none; }
.profile-menu summary i { color: #ffcf61; font-style: normal; transition: transform .18s ease; }
.profile-menu[open] summary i { transform: rotate(180deg); }
.profile-avatar { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; color: #211a35; background: var(--teal); border-radius: 7px; }
.profile-dropdown { position: absolute; z-index: 200; top: calc(100% + 12px); right: 0; width: min(330px, calc(100vw - 28px)); padding: 10px; color: var(--ink); background: #fffdf8; border: 2px solid #211a35; border-radius: 15px; box-shadow: 10px 10px 0 rgba(255,176,0,.85), 0 20px 45px rgba(18,12,34,.28); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-7px) scale(.985); transform-origin: top right; transition: opacity .16s ease, transform .16s ease, visibility .16s; }
.profile-menu[open] .profile-dropdown, .profile-menu:focus-within .profile-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }
.profile-menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 11px 14px; border-bottom: 1px solid var(--line); }
.profile-menu-heading > div { min-width: 0; display: flex; flex-direction: column; }
.profile-menu-heading strong, .profile-menu-heading small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu-heading small { margin-top: 2px; color: var(--ink-muted); }
.profile-menu-heading > span { flex: 0 0 auto; padding: 5px 8px; color: #211a35; background: #ffcf61; border: 1px solid #211a35; border-radius: 999px; font-size: .64rem; font-weight: 900; text-transform: uppercase; }
.profile-menu-links { display: grid; gap: 3px; padding: 7px 0; }
.profile-menu-links a { display: flex; flex-direction: column; gap: 3px; padding: 11px; color: var(--navy); border-radius: 9px; }
.profile-menu-links a:hover, .profile-menu-links a:focus-visible { background: #f0ebff; outline: none; }
.profile-menu-links a b { font-size: .86rem; }
.profile-menu-links a small { color: var(--ink-muted); font-size: .7rem; font-weight: 500; }
.profile-menu-links .profile-menu-notice { background: #fff4cf; }
.profile-dropdown form { padding-top: 7px; border-top: 1px solid var(--line); }
.profile-dropdown button { width: 100%; padding: 10px 11px; color: #a52c40; background: none; border: 0; border-radius: 8px; cursor: pointer; text-align: left; font-weight: 800; }
.profile-dropdown button:hover { background: #fff1f3; }
.forgot-link { justify-self: end; margin: 2px 0 9px; color: #6345dc; font-size: .82rem; font-weight: 800; }
.field-note { margin: 4px 0 10px; color: var(--ink-muted); font-size: .78rem; line-height: 1.5; }

.account-page { min-height: 70vh; padding: 70px 0 100px; background: #f7f4ed; }
.account-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.account-page-heading h1 { margin: 10px 0 6px; }
.account-page-heading p { margin: 0; }
.account-plan-chip, .status-pill { display: inline-flex; padding: 7px 11px; border-radius: 999px; font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.account-plan-chip { color: #211a35; background: #ffcf61; border: 2px solid #211a35; }
.account-panel { margin-bottom: 24px; padding: 30px; background: white; border: 2px solid #211a35; border-radius: 15px; box-shadow: 8px 8px 0 rgba(33,26,53,.1); }
.account-warning { display: flex; flex-direction: column; gap: 3px; margin-bottom: 24px; padding: 14px 16px; color: #5d3e00; background: #fff5d6; border: 2px solid #e3aa20; border-radius: 10px; }
.account-warning span { font-size: .84rem; }
.profile-form { display: grid; gap: 26px; }
.profile-section { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.profile-section h2 { margin: 0 0 17px; font-size: 1.2rem; }
.profile-section h2 small { color: var(--ink-muted); font-size: .7rem; font-family: Inter, sans-serif; }
.profile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; }

.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 24px; }
.admin-stats > div { padding: 20px; background: #211a35; border: 2px solid #211a35; border-radius: 11px; box-shadow: 5px 5px 0 #ffb000; }
.admin-stats span { display: block; color: #c9bfdf; font-size: .78rem; }
.admin-stats strong { display: block; margin-top: 6px; color: white; font-size: 1.8rem; }
.admin-create-panel h2 { margin-top: 0; }
.admin-create-form { display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: 13px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.admin-table th { color: var(--ink-muted); font-size: .72rem; text-transform: uppercase; }
.admin-table td > strong, .admin-table td > small { display: block; }
.admin-table td > small { margin-top: 3px; color: var(--ink-muted); }
.admin-inline-form { display: flex; align-items: center; gap: 6px; }
.admin-inline-form select { min-width: 92px; padding: 8px; }
.admin-inline-form .button { min-height: 37px; padding-inline: 12px; }
.status-ready { color: #0c5c45; background: #dcfff2; }
.status-limited { color: #7a4d00; background: #fff0c4; }
.danger-button { padding: 8px 11px; color: #9b2137; background: #fff1f3; border: 1px solid #efbdc5; border-radius: 7px; cursor: pointer; font-weight: 800; }
.admin-user-actions { display: flex; align-items: center; gap: 7px; }
.admin-password-form { display: flex; }
.admin-password-form input { width: 125px; min-height: 35px; padding: 7px; border: 1px solid var(--line); border-radius: 7px 0 0 7px; }
.admin-password-form button { padding: 7px 9px; color: white; background: #7255e9; border: 0; border-radius: 0 7px 7px 0; cursor: pointer; font-weight: 800; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 25px; padding: 8px; background: #211a35; border: 2px solid #211a35; border-radius: 12px; overflow-x: auto; }
.admin-tabs a { min-height: 43px; display: inline-flex; align-items: center; gap: 8px; padding: 0 15px; color: #d9d1e8; border-radius: 8px; font-weight: 800; white-space: nowrap; }
.admin-tabs a.active { color: #211a35; background: #ffb000; }
.admin-tabs a span { padding: 2px 6px; color: #211a35; background: #fff; border-radius: 999px; font-size: .66rem; }
.storage-table .danger-button:disabled { opacity: .4; cursor: not-allowed; }
.plan-settings-form { display: grid; gap: 22px; }
.plan-admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan-admin-grid article { display: grid; gap: 10px; padding: 20px; background: #f7f3ff; border: 2px solid #211a35; border-radius: 11px; }
.plan-admin-grid article > span { color: #7255e9; font-size: .7rem; font-weight: 900; letter-spacing: .12em; }
.feature-settings-list { display: grid; gap: 9px; margin-bottom: 20px; }
.feature-settings-list > label { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 15px; background: #faf8f2; border: 1px solid var(--line); border-radius: 9px; }
.feature-settings-list > label > span { display: flex; flex-direction: column; }
.feature-settings-list small { margin-top: 2px; color: var(--ink-muted); }
.feature-settings-list select { width: min(210px, 45%); }

.support-layout { display: grid; grid-template-columns: minmax(250px, 330px) minmax(0, 1fr); gap: 22px; align-items: start; }
.ticket-sidebar, .ticket-conversation { margin-bottom: 0; }
.ticket-sidebar-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.ticket-sidebar-heading h2, .ticket-conversation h2 { font-size: 1.35rem; }
.ticket-sidebar-heading a { color: #6345dc; font-weight: 900; }
.ticket-empty { padding: 15px 0; font-size: .84rem; }
.ticket-list { display: grid; gap: 7px; }
.ticket-list a { display: grid; gap: 7px; padding: 13px; color: var(--navy); background: #faf8f2; border: 1px solid var(--line); border-radius: 9px; }
.ticket-list a.active { background: #f0ebff; border-color: #7255e9; box-shadow: 3px 3px 0 #211a35; }
.ticket-list a > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink-muted); font-size: .68rem; }
.ticket-status { display: inline-flex; width: fit-content; padding: 4px 7px; border-radius: 999px; font-size: .61rem; font-style: normal; font-weight: 900; text-transform: uppercase; }
.status-open { color: #6a4400; background: #ffedb6; }
.status-answered { color: #075c45; background: #d7fff1; }
.status-closed { color: #665e70; background: #ebe7ef; }
.ticket-response-note { margin: 12px 0 22px; padding: 13px 15px; color: #5c4305; background: #fff2c5; border: 1px solid #e0b239; border-radius: 8px; }
.ticket-form, .ticket-reply-form { display: grid; gap: 14px; margin-top: 20px; }
.ticket-form textarea, .ticket-reply-form textarea { resize: vertical; }
.ticket-chat-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.ticket-chat-heading h2 { margin: 8px 0 3px; }
.ticket-chat-heading small { color: var(--ink-muted); }
.ticket-messages { max-height: 560px; display: flex; flex-direction: column; gap: 13px; margin: 20px 0; padding: 4px; overflow-y: auto; }
.ticket-message { width: min(82%, 720px); padding: 14px 16px; border-radius: 13px; }
.ticket-message.from-user { align-self: flex-end; background: #7255e9; border-bottom-right-radius: 4px; }
.ticket-message.from-admin { align-self: flex-start; background: #f0ece3; border: 1px solid #dcd4c7; border-bottom-left-radius: 4px; }
.ticket-message header { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 7px; font-size: .7rem; }
.ticket-message time { opacity: .72; }
.ticket-message.from-user, .ticket-message.from-user p { color: white; }
.ticket-message p { color: #302a38; line-height: 1.6; overflow-wrap: anywhere; }
.ticket-reply-form > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ticket-reply-form small { color: var(--ink-muted); }
.ticket-closed-note { padding: 16px; color: #5f5768; background: #eeeaf1; border-radius: 9px; text-align: center; }
.admin-ticket-layout { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 22px; align-items: start; }
.admin-ticket-list, .admin-ticket-chat { margin: 0; }
.admin-ticket-list > h2 { margin-bottom: 15px; }
.admin-ticket-list nav { display: grid; gap: 7px; }
.admin-ticket-list nav a { position: relative; display: grid; gap: 4px; padding: 13px 84px 13px 13px; color: var(--navy); background: #faf8f2; border: 1px solid var(--line); border-radius: 9px; }
.admin-ticket-list nav a.active { background: #f0ebff; border-color: #7255e9; }
.admin-ticket-list nav a small { color: var(--ink-muted); }
.admin-ticket-list nav .ticket-status { position: absolute; top: 12px; right: 10px; }
.admin-ticket-messages { max-height: 520px; }
.ticket-empty-state { min-height: 350px; display: grid; place-content: center; text-align: center; }
.storage-meter { width: 100%; height: 8px; margin-top: 8px; overflow: hidden; background: #e8e7ef; border-radius: 999px; }
.storage-meter i { display: block; height: 100%; background: linear-gradient(90deg,#7255e9,#ffb000); border-radius: inherit; }
.group-manager { margin-bottom: 24px; padding: 18px; }
.group-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; }
.group-tabs a { min-width: 120px; display: grid; gap: 2px; padding: 10px 12px; color: #463e57; background: #f7f6fb; border: 1px solid #e4e0ef; border-radius: 10px; text-decoration: none; }
.group-tabs a.active { color: #fff; background: #2b2240; border-color: #2b2240; }
.group-tabs a span, .group-tabs a small { font-size: .72rem; opacity: .75; }
.group-create-form { display: grid; grid-template-columns: minmax(180px,1fr) 180px auto; gap: 12px; align-items: end; margin-top: 12px; }
.group-edit-row, .group-edit-row form, .library-bulk-toolbar, .custom-quota-fields { display: flex; gap: 8px; align-items: center; }
.group-edit-row { justify-content: flex-end; margin-top: 12px; }
.group-edit-row input { min-height: 38px; padding: 8px 10px; border: 1px solid #d9d5e4; border-radius: 8px; }
.library-bulk-toolbar { position: sticky; top: 82px; z-index: 5; flex-wrap: wrap; margin-bottom: 16px; padding: 12px; background: rgba(255,255,255,.96); border: 1px solid #e3dfec; border-radius: 12px; box-shadow: 0 10px 24px rgba(40,30,65,.08); }
.library-bulk-toolbar select, .library-bulk-toolbar button { min-height: 38px; padding: 8px 12px; border: 1px solid #d9d5e4; border-radius: 8px; background: #fff; }
.library-select { position: absolute; top: 10px; left: 10px; z-index: 3; display: flex; gap: 5px; align-items: center; padding: 5px 7px; font-size: .72rem; font-weight: 700; background: rgba(255,255,255,.94); border-radius: 7px; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.library-card { position: relative; }
.custom-quota-fields { flex-wrap: wrap; }
.custom-quota-fields input { min-width: 105px; }

.barcode-format-selectors, .barcode-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.barcode-settings { margin-top: 18px; padding: 14px; background: #f7f3ff; border: 1px solid #ddd4f1; border-radius: 10px; }
.barcode-settings summary { cursor: pointer; color: #2d2440; font-weight: 800; }
.barcode-settings-grid { margin-top: 14px; }
.barcode-settings .field { margin: 0; }
.barcode-settings output { color: #7255e9; font-size: .72rem; font-weight: 800; }
.barcode-checkbox { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; padding: 10px; background: white; border-radius: 8px; font-size: .78rem; font-weight: 700; }
.barcode-checkbox input { width: 18px; height: 18px; accent-color: #7255e9; }
.invite-user-form { grid-template-columns: minmax(220px, 1fr) auto; }
.invite-auth-shell { width: min(590px, 100%); }
.invite-code-input, .new-invite-code input { font-family: "Consolas", "Courier New", monospace; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.invite-active-banner, .invite-choice-banner { display: grid; gap: 5px; margin: 20px 0 8px; padding: 15px 17px; color: #211a35; background: #ffcf61; border: 2px solid #211a35; border-radius: 10px; box-shadow: 5px 5px 0 #7255e9; text-align: left; }
.invite-active-banner > span, .invite-choice-banner > span { color: #5f4500; font-size: .66rem; font-weight: 900; letter-spacing: .12em; }
.invite-active-banner > strong, .invite-choice-banner > strong { font-family: "Space Grotesk", sans-serif; font-size: 1.05rem; }
.invite-active-banner > small, .invite-choice-banner > small { color: #665320; line-height: 1.4; }
.invite-choice-banner { width: min(560px, 100%); margin: 26px auto 0; }
.invite-choice-banner form { margin-top: 5px; }
.invite-choice-banner button { padding: 0; color: #4c32b3; background: none; border: 0; cursor: pointer; font-weight: 800; text-decoration: underline; }
.no-email-confirm { margin-top: 12px; padding: 12px 14px; color: #654700; background: #fff3cb; border: 1px solid #dfad2e; border-radius: 9px; }
.invite-admin-form { display: grid; grid-template-columns: minmax(190px, 1.5fr) repeat(3, minmax(145px, 1fr)); align-items: end; gap: 13px; }
.invite-admin-form .field { margin-top: 0; }
.invite-admin-form > button { min-height: 48px; }
.new-invite-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); align-items: center; gap: 28px; background: #fff4c9; }
.new-invite-code { display: flex; gap: 9px; }
.new-invite-code input { min-width: 0; width: 100%; min-height: 48px; padding: 10px 12px; color: #211a35; background: white; border: 2px solid #211a35; border-radius: 9px; }
.invite-table td > small, .invite-table td > strong { display: block; margin-top: 3px; }

.ticket-widget { position: fixed; right: 22px; bottom: 20px; z-index: 80; display: grid; justify-items: end; gap: 12px; font-family: Inter, sans-serif; }
.ticket-widget-launcher { min-height: 52px; display: flex; align-items: center; gap: 9px; padding: 8px 16px 8px 8px; color: white; background: #211a35; border: 2px solid #211a35; border-radius: 999px; box-shadow: 5px 5px 0 #ffb000, 0 12px 30px rgba(33,26,53,.25); cursor: pointer; }
.ticket-widget-launcher span { width: 34px; height: 34px; display: grid; place-items: center; color: #211a35; background: #ffb000; border-radius: 50%; font-size: 1.05rem; font-weight: 900; }
.ticket-widget-launcher b { font-size: .82rem; }
.ticket-widget-panel { width: min(390px, calc(100vw - 28px)); max-height: min(620px, calc(100dvh - 105px)); overflow: hidden; background: #fff; border: 2px solid #211a35; border-radius: 16px; box-shadow: 8px 8px 0 #7255e9, 0 18px 55px rgba(25,18,43,.28); }
.ticket-widget-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 18px; color: white; background: #211a35; }
.ticket-widget-panel > header div { display: grid; gap: 3px; }
.ticket-widget-panel > header small { color: #d8d0e8; font-size: .67rem; }
.ticket-widget-panel > header button { width: 34px; height: 34px; color: white; background: rgba(255,255,255,.1); border: 0; border-radius: 50%; cursor: pointer; font-size: 1.35rem; }
.ticket-widget-messages { max-height: 285px; display: flex; flex-direction: column; gap: 9px; overflow-y: auto; padding: 16px 16px 4px; }
.ticket-widget-message { max-width: 84%; padding: 10px 12px; border-radius: 12px; background: #f0ece3; font-size: .76rem; line-height: 1.5; overflow-wrap: anywhere; }
.ticket-widget-message.user { align-self: flex-end; color: white; background: #7255e9; border-bottom-right-radius: 3px; }
.ticket-widget-message.support { align-self: flex-start; border-bottom-left-radius: 3px; }
.ticket-widget-message small { display: block; margin-bottom: 3px; opacity: .7; font-size: .62rem; }
.ticket-widget-message strong, .ticket-widget-message time { display: block; font-size: .63rem; opacity: .72; }
.ticket-widget-message p { margin: 4px 0; color: inherit; }
.ticket-widget-message time { margin-top: 4px; }
.ticket-widget-error { min-height: 0; margin: 6px 16px 0; color: #a83243; font-size: .72rem; }
.ticket-widget-panel form { display: grid; gap: 9px; padding: 13px 16px 16px; }
.ticket-widget-panel form .field { margin: 0; }
.ticket-widget-panel form textarea { resize: vertical; }
.ticket-widget-panel form > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ticket-widget-panel form .button { min-height: 40px; margin-left: auto; }

.bulk-export-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.bulk-export-actions .plan-badge { color: #211a35; background: rgba(255,255,255,.72); }
.pdf-export-dialog { width: min(760px, calc(100% - 28px)); padding: 0; color: #211a35; background: #fffdf8; border: 3px solid #211a35; border-radius: 16px; box-shadow: 12px 12px 0 #7255e9; }
.pdf-export-dialog::backdrop { background: rgba(15,10,27,.78); backdrop-filter: blur(5px); }
.pdf-export-dialog form { padding: 30px; }
.pdf-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid #ded8e8; }
.pdf-dialog-heading h2 { font-size: 2rem; }
.pdf-dialog-heading p { margin-top: 8px; }
.pdf-dialog-heading > button { flex: 0 0 38px; width: 38px; height: 38px; color: white; background: #211a35; border: 0; border-radius: 50%; cursor: pointer; font-size: 1.35rem; }
.pdf-settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.pdf-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 12px 14px; background: #f4f0fb; border: 1px solid #dfd7ed; border-radius: 9px; font-size: .83rem; font-weight: 700; }
.pdf-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: #7255e9; }
.pdf-check span, .pdf-check small { display: block; }
.pdf-check small { color: #71697c; font-weight: 500; }
.pdf-export-status { min-height: 24px; margin-top: 13px; color: #5b4d78; font-size: .8rem; }
.pdf-limit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.pdf-library-section { margin-top: 26px; }
.pdf-export-library { display: grid; gap: 10px; }
.pdf-export-library article { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 17px; background: #faf8ff; border: 1px solid #ded8e8; border-radius: 11px; }
.pdf-export-library article > div:first-child { min-width: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; }
.pdf-export-library article span { grid-row: 1 / 3; padding: 7px; color: white; background: #7255e9; border-radius: 6px; font-size: .65rem; font-weight: 900; }
.pdf-export-library article strong, .pdf-export-library article small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-export-library article small { color: #71697c; font-size: .72rem; }
.pdf-export-library article > div:last-child { display: flex; gap: 8px; }

@media (max-width: 980px) {
    .admin-create-form { grid-template-columns: repeat(2, 1fr); }
    .invite-admin-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .new-invite-panel { grid-template-columns: 1fr; }
    .plan-admin-grid { grid-template-columns: 1fr; }
    .support-layout, .admin-ticket-layout { grid-template-columns: 1fr; }
    .ticket-sidebar { position: static; }
    .profile-first-name { display: none; }
}

@media (max-width: 680px) {
    .header-actions { display: flex; margin-left: auto; }
    .profile-menu summary { min-height: 42px; padding-right: 9px; box-shadow: 3px 3px 0 #ffb000; }
    .profile-menu::after { display: none; }
    .profile-dropdown { position: fixed; top: 78px; right: 14px; left: 14px; width: auto; max-height: calc(100dvh - 94px); overflow-y: auto; transform-origin: top center; box-shadow: 7px 7px 0 rgba(255,176,0,.9), 0 18px 40px rgba(18,12,34,.32); }
    .account-page { padding: 45px 0 70px; }
    .account-page-heading { align-items: flex-start; flex-direction: column; }
    .profile-grid, .admin-stats, .admin-create-form { grid-template-columns: 1fr; }
    .account-panel { padding: 20px; }
    .feature-settings-list > label, .ticket-chat-heading, .ticket-reply-form > div { align-items: stretch; flex-direction: column; }
    .feature-settings-list select { width: 100%; }
    .ticket-message { width: 92%; }
    .admin-tabs { width: calc(100% - 28px); }
    .group-create-form { grid-template-columns: 1fr; }
    .group-edit-row, .group-edit-row form, .library-bulk-toolbar { align-items: stretch; flex-direction: column; }
    .library-bulk-toolbar { top: 68px; }
    .barcode-format-selectors, .barcode-settings-grid, .invite-user-form { grid-template-columns: 1fr; }
    .invite-admin-form { grid-template-columns: 1fr; }
    .new-invite-code { align-items: stretch; flex-direction: column; }
    .ticket-widget { right: 12px; bottom: 12px; left: 12px; }
    .ticket-widget-panel { width: 100%; max-height: calc(100dvh - 88px); }
    .ticket-widget-messages { max-height: calc(100dvh - 385px); min-height: 120px; }
    .ticket-widget-launcher { justify-self: end; }
    .generator-layout.bulk-active .generator-controls { padding: 24px 16px 32px; }
    .generator-layout.bulk-active [data-bulk-panel] { padding: 16px; }
    .bulk-results { grid-template-columns: 1fr; padding: 18px; }
    .bulk-card { grid-template-columns: 95px minmax(0, 1fr); }
    .bulk-export-actions, .pdf-export-library article, .pdf-export-library article > div:last-child { align-items: stretch; flex-direction: column; }
    .pdf-export-dialog form { padding: 20px; }
    .pdf-settings-grid, .pdf-limit-grid { grid-template-columns: 1fr 1fr; }
    .pdf-dialog-heading h2 { font-size: 1.55rem; }
    .pdf-export-library article { align-items: stretch; }
}

@media (hover: hover) {
    .profile-menu:hover .profile-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }
}
