:root { --app-border: rgba(16,42,39,.12); --app-muted: #6e817d; --app-bg: #f5f3eb; }
.app-page { min-height: 100vh; background: var(--app-bg); }
.app-container { width: min(1220px, calc(100% - 40px)); margin: 0 auto; }
.app-header { position: sticky; z-index: 20; top: 0; background: rgba(251,250,246,.94); border-bottom: 1px solid var(--app-border); backdrop-filter: blur(18px); }
.app-nav { min-height: 74px; display: flex; align-items: center; gap: 30px; }
.free-badge { margin-left: 3px; padding: 5px 7px; color: var(--ink); background: var(--lime); border-radius: 5px; font-size: 8px; font-weight: 900; letter-spacing: 1px; }
.free-badge.premium-badge { color: var(--lime); background: var(--ink); }
.app-links { display: flex; align-items: center; gap: 25px; margin-right: auto; color: #516965; font-size: 12px; font-weight: 750; }
.app-links a:hover { color: var(--ink); }
.app-more-menu,.user-dropdown{position:relative}.app-more-menu summary,.user-dropdown summary{display:flex;align-items:center;gap:6px;list-style:none;cursor:pointer}.app-more-menu summary::-webkit-details-marker,.user-dropdown summary::-webkit-details-marker{display:none}.app-more-menu>div,.user-dropdown>div{position:absolute;z-index:50;top:calc(100% + 14px);right:0;min-width:190px;padding:8px;background:#fff;border:1px solid var(--app-border);border-radius:12px;box-shadow:0 18px 45px rgba(16,42,39,.14)}.app-more-menu>div a{display:block;padding:11px 12px;border-radius:8px;white-space:nowrap}.app-more-menu>div a:hover{background:var(--cream)}
.app-menu-toggle { display: none; width: 42px; height: 42px; padding: 9px; background: transparent; border: 0; border-radius: 9px; cursor: pointer; }
.app-menu-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--ink); transition: transform .2s, opacity .2s; }
.user-dropdown{margin-left:auto}.user-dropdown summary strong{max-width:125px;overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.user-dropdown>div{display:grid;gap:10px;min-width:220px}.user-dropdown>div small{padding:7px 8px 0;color:var(--app-muted);overflow:hidden;font-size:9px;text-overflow:ellipsis}.user-dropdown .logout-button{width:100%;margin:0;padding:10px;text-align:left}
.user-avatar { width: 35px; height: 35px; display: grid; place-items: center; color: var(--lime); background: var(--ink); border-radius: 10px; font-size: 12px; font-weight: 900; }
.user-meta strong, .user-meta small { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta strong { font-size: 11px; }
.user-meta small { margin-top: 2px; color: var(--app-muted); font-size: 9px; }
.logout-button { margin-left: 6px; padding: 8px 10px; color: #6c7e7a; background: transparent; border: 1px solid var(--app-border); border-radius: 8px; font-size: 10px; font-weight: 750; cursor: pointer; }
.logout-button:hover { color: var(--ink); background: var(--white); }
.app-main { min-height: calc(100vh - 142px); padding-top: 48px; padding-bottom: 75px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.page-head h1 { margin: 0 0 8px; font-size: clamp(37px, 5vw, 58px); line-height: 1; letter-spacing: -3px; }
.page-head p { margin: 0; color: var(--app-muted); font-size: 13px; }
.app-primary { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; color: var(--white); background: var(--ink); border: 0; border-radius: 10px; box-shadow: 0 10px 25px rgba(16,42,39,.14); font-size: 12px; font-weight: 850; cursor: pointer; }
.app-primary:hover { background: #19443e; transform: translateY(-1px); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 25px; }
.stat-card { min-height: 116px; padding: 21px; background: var(--white); border: 1px solid var(--app-border); border-radius: 16px; }
.stat-card small { display: block; margin-bottom: 19px; color: var(--app-muted); font-size: 9px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.stat-card strong { font-size: 27px; letter-spacing: -1px; }
.stat-card strong span { color: #55a775; font-size: 12px; }
.stat-card.highlight { background: var(--lime); border-color: var(--lime); }
.stat-card.highlight small { color: #4f6c3a; }
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 12px; background: rgba(255,255,255,.62); border: 1px solid var(--app-border); border-radius: 14px; }
.search-box { position: relative; flex: 1; }
.search-box span { position: absolute; left: 14px; top: 50%; color: #80908d; transform: translateY(-50%); }
.search-box input, .toolbar select { height: 42px; color: var(--ink); background: var(--white); border: 1px solid var(--app-border); border-radius: 9px; outline: none; font: inherit; font-size: 11px; }
.search-box input { width: 100%; padding: 0 14px 0 39px; }
.search-box input:focus, .toolbar select:focus { border-color: #5b7f79; box-shadow: 0 0 0 3px rgba(91,127,121,.09); }
.toolbar select { min-width: 130px; padding: 0 33px 0 12px; }
.toolbar button { height: 42px; padding: 0 15px; color: var(--white); background: var(--ink); border: 0; border-radius: 9px; font-size: 10px; font-weight: 800; cursor: pointer; }
.clear-filter { color: var(--app-muted); font-size: 10px; font-weight: 750; }
.qr-list { display: grid; gap: 12px; }
.qr-list-card { display: grid; grid-template-columns: 92px minmax(200px,1fr) minmax(160px,.65fr) 120px 195px; align-items: center; gap: 21px; padding: 17px; background: var(--white); border: 1px solid var(--app-border); border-radius: 16px; transition: transform .2s, box-shadow .2s; }
.qr-list-card:hover { transform: translateY(-2px); box-shadow: 0 15px 35px rgba(16,42,39,.07); }
.qr-thumb { width: 78px; height: 78px; padding: 5px; background: var(--white); border: 1px solid var(--app-border); border-radius: 10px; object-fit: contain; }
.qr-info h2 { margin: 0 0 6px; font-size: 15px; letter-spacing: -.3px; }
.qr-info a { color: #59736e; font-size: 10px; font-weight: 700; }
.qr-info a:hover { text-decoration: underline; }
.destination small, .destination strong, .scan-summary small, .scan-summary strong { display: block; }
.destination small, .scan-summary small { margin-bottom: 5px; color: var(--app-muted); font-size: 8px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.destination strong { max-width: 260px; overflow: hidden; color: #405a56; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.scan-summary strong { font-size: 15px; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; color: #347555; background: #e7f8e9; border-radius: 99px; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.status-pill::before { content: ""; width: 6px; height: 6px; background: #49a66f; border-radius: 50%; }
.status-pill.paused { color: #7f6640; background: #fbf2dc; }
.status-pill.paused::before { background: #c39a53; }
.card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.card-actions a, .card-actions button { min-height: 34px; display: inline-flex; align-items: center; padding: 0 10px; color: var(--ink); background: var(--cream); border: 1px solid transparent; border-radius: 8px; font-size: 9px; font-weight: 800; cursor: pointer; }
.card-actions a:hover, .card-actions button:hover { border-color: var(--app-border); background: var(--white); }
.card-actions .danger { color: #a2433d; }
.empty-state { padding: 70px 30px; background: var(--white); border: 1px dashed rgba(16,42,39,.22); border-radius: 18px; text-align: center; }
.empty-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 20px; background: var(--mint); border-radius: 15px; font-size: 24px; }
.empty-state h2 { margin-bottom: 9px; font-size: 22px; }
.empty-state p { margin-bottom: 23px; color: var(--app-muted); font-size: 12px; }
.file-promo { position: relative; display: grid; grid-template-columns: 1.35fr .65fr; gap: 35px; margin-top: 27px; padding: 30px; overflow: hidden; color: var(--white); background: var(--ink); border-radius: 20px; }
.file-promo::after { content: ""; position: absolute; width: 270px; height: 270px; right: -100px; top: -150px; border: 1px solid rgba(215,255,100,.23); border-radius: 50%; box-shadow: 0 0 0 45px rgba(215,255,100,.03); }
.file-promo > * { position: relative; z-index: 2; }
.file-promo-tag { display: inline-flex; margin-bottom: 14px; padding: 6px 8px; color: var(--ink); background: var(--lime); border-radius: 6px; font-size: 8px; font-weight: 900; letter-spacing: .8px; }
.file-promo h2 { margin-bottom: 9px; font-size: 23px; letter-spacing: -.8px; }
.file-promo p { max-width: 620px; margin: 0; color: rgba(255,255,255,.62); font-size: 11px; line-height: 1.7; }
.file-price { align-self: center; padding-left: 30px; border-left: 1px solid rgba(255,255,255,.14); }
.file-price strong, .file-price small { display: block; }
.file-price strong { color: var(--lime); font-size: 25px; }
.file-price small { margin-top: 5px; color: rgba(255,255,255,.55); font-size: 9px; }
.flash-stack { position: relative; z-index: 15; }
.flash { margin-top: 14px; padding: 13px 16px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.flash-success { color: #2f7251; background: #e5f6e7; border: 1px solid #c3e4ca; }
.flash-error { color: #963e38; background: #fff0ee; border: 1px solid #f1cac5; }
.flash-info { color: #466b72; background: #e9f3f5; border: 1px solid #cddfe3; }
.app-footer { min-height: 68px; display: flex; align-items: center; color: #7b8a87; background: #ece9df; border-top: 1px solid var(--app-border); font-size: 9px; }
.app-footer .app-container { display: flex; justify-content: space-between; }
.app-footer div div { display: flex; gap: 17px; }
.app-footer a:hover { color: var(--ink); }

.editor-shell { display: grid; grid-template-columns: minmax(0,1fr) 355px; gap: 28px; align-items: start; }
.editor-card, .preview-card { padding: 27px; background: var(--white); border: 1px solid var(--app-border); border-radius: 18px; }
.editor-card h2, .preview-card h2 { margin-bottom: 7px; font-size: 18px; }
.editor-card > p, .preview-card > p { margin-bottom: 26px; color: var(--app-muted); font-size: 11px; line-height: 1.6; }
.app-field { margin-bottom: 20px; }
.app-field label { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 850; }
.app-field input, .app-field textarea, .app-field select { width: 100%; padding: 0 14px; color: var(--ink); background: #fbfaf6; border: 1px solid var(--app-border); border-radius: 10px; outline: none; font: inherit; font-size: 12px; }
.app-field input { height: 49px; }
.app-field select { height: 49px; }
.app-field textarea { min-height: 105px; padding-top: 13px; resize: vertical; }
.app-field input:focus, .app-field textarea:focus, .app-field select:focus { border-color: #567a74; box-shadow: 0 0 0 4px rgba(86,122,116,.09); }
.app-help { display: block; margin-top: 6px; color: var(--app-muted); font-size: 9px; }
.app-error { margin-bottom: 18px; padding: 12px 14px; color: #963e38; background: #fff0ee; border: 1px solid #f1cac5; border-radius: 9px; font-size: 10px; }
.type-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 22px; }
.type-option { position: relative; display: block; padding: 17px; background: #fbfaf6; border: 1px solid var(--app-border); border-radius: 12px; }
.type-option.selected { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.type-option.disabled { opacity: .58; }
.type-option strong, .type-option small { display: block; }
.type-option strong { font-size: 11px; }
.type-option small { margin-top: 6px; color: var(--app-muted); font-size: 9px; line-height: 1.5; }
.paid-chip { position: absolute; right: 10px; top: 10px; padding: 4px 6px; color: var(--ink); background: var(--lime); border-radius: 5px; font-size: 7px; font-weight: 900; }
.editor-actions { display: flex; align-items: center; gap: 13px; padding-top: 5px; }
.editor-actions .cancel { color: var(--app-muted); font-size: 10px; font-weight: 750; }
.preview-card { position: sticky; top: 100px; text-align: center; }
.preview-card img { width: 220px; max-width: 100%; margin: 2px auto 17px; border-radius: 12px; }
.preview-url { padding: 12px; overflow: hidden; background: var(--cream); border-radius: 9px; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.free-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 17px; padding: 13px; color: #416a4f; background: #ebf8e9; border-radius: 10px; text-align: left; font-size: 9px; line-height: 1.55; }
.social-editor-grid { display: grid; grid-template-columns: minmax(300px,.72fr) minmax(0,1.28fr); gap: 22px; align-items: start; }
.social-links-card { min-width: 0; }
.platform-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.platform-field { position: relative; min-width: 0; padding: 11px 11px 11px 51px; background: #fbfaf6; border: 1px solid var(--app-border); border-radius: 11px; }
.platform-input-mark { position: absolute; left: 11px; top: 50%; width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: var(--platform); border-radius: 8px; font-size: 8px; font-weight: 900; transform: translateY(-50%); }
.platform-field label { display: block; margin-bottom: 4px; font-size: 9px; font-weight: 850; }
.platform-field input { width: 100%; min-width: 0; padding: 0; color: #516965; background: transparent; border: 0; outline: 0; font: inherit; font-size: 10px; }
.custom-link-box { margin-top: 18px; padding: 18px; background: var(--mint); border: 1px solid rgba(16,42,39,.1); border-radius: 13px; }
.custom-link-box .app-field:last-child { margin-bottom: 0; }
.free-chip { display: inline-flex; margin-bottom: 15px; padding: 5px 7px; color: var(--ink); background: var(--lime); border-radius: 5px; font-size: 8px; font-weight: 900; letter-spacing: .7px; }
.sticky-save { position: sticky; z-index: 10; bottom: 14px; display: flex; align-items: center; justify-content: flex-end; gap: 16px; width: fit-content; margin: 20px 0 0 auto; padding: 10px; background: rgba(255,255,255,.92); border: 1px solid var(--app-border); border-radius: 13px; box-shadow: 0 14px 35px rgba(16,42,39,.12); backdrop-filter: blur(14px); }
.sticky-save .cancel { padding-right: 8px; color: var(--app-muted); font-size: 10px; font-weight: 800; }
.social-qr-preview { width: 190px; max-width: 100%; display: block; margin: 22px auto 14px; border-radius: 12px; }
.social-download { width: 100%; margin-top: 13px; }
.qr-type { display: inline-flex; margin-bottom: 6px; padding: 4px 6px; color: #3c6650; background: #e8f7e8; border-radius: 5px; font-size: 7px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; }
.app-field textarea.large-textarea { min-height: 340px; line-height: 1.65; }
.character-counter { display: flex; justify-content: flex-end; gap: 4px; margin-top: 7px; color: var(--app-muted); font-size: 9px; }
.character-counter strong { color: var(--ink); }
.text-example { display: grid; gap: 9px; margin: 19px 0; padding: 20px; color: #455e59; background: #fbfaf6; border: 1px solid var(--app-border); border-radius: 12px; text-align: left; font-family: Georgia,serif; font-size: 13px; }
.text-example strong { margin-bottom: 4px; color: var(--ink); font-family: Inter,ui-sans-serif,system-ui,sans-serif; font-size: 15px; }
.paid-text-note { display: grid; gap: 5px; margin-top: 18px; padding: 17px; color: var(--white); background: var(--ink); border-radius: 12px; text-align: left; }
.paid-text-note span { width: fit-content; padding: 5px 7px; color: var(--ink); background: var(--lime); border-radius: 5px; font-size: 7px; font-weight: 900; letter-spacing: .7px; }
.paid-text-note strong { margin-top: 5px; font-size: 17px; }
.paid-text-note small { color: rgba(255,255,255,.6); font-size: 9px; }
.smart-type-mark { width: 44px; height: 44px; display: grid; place-items:center; margin-bottom: 18px; color: var(--lime); background: var(--ink); border-radius: 11px; font-size: 10px; font-weight: 900; }
.wifi-warning { display: grid; gap: 7px; margin-top: 20px; padding: 15px; color: #536b66; background: #f1f6e4; border: 1px solid rgba(16,42,39,.1); border-radius: 11px; text-align: left; }
.wifi-warning strong { color: var(--ink); font-size: 11px; }
.wifi-warning span { font-size: 9px; line-height: 1.55; }
.plan-link { display: inline-block; margin-top: 12px; color: #294d3c; font-size: 9px; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }
.premium-current { display: inline-flex; padding: 9px 12px; color: #6d5a38; background: #f5e9cc; border-radius: 8px; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .7px; }
.premium-current.active { color: #2e694a; background: #e1f5df; }
.premium-intro { margin-bottom: 24px; padding: 34px; color: var(--white); background: var(--ink); border-radius: 20px; }
.premium-intro > span { display: inline-flex; margin-bottom: 18px; padding: 6px 8px; color: var(--ink); background: var(--lime); border-radius: 6px; font-size: 8px; font-weight: 900; letter-spacing: .8px; }
.premium-intro h2 { max-width: 690px; margin-bottom: 12px; font-size: 31px; letter-spacing: -1.3px; }
.premium-intro p { max-width: 750px; margin: 0; color: rgba(255,255,255,.65); font-size: 11px; line-height: 1.7; }
.pass-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.pass-card { position: relative; display: flex; flex-direction: column; min-height: 330px; padding: 25px; background: var(--white); border: 1px solid var(--app-border); border-radius: 17px; }
.pass-card.featured { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pass-label { width: fit-content; padding: 5px 7px; color: var(--ink); background: var(--lime); border-radius: 5px; font-size: 7px; font-weight: 900; letter-spacing: .7px; }
.pass-card h2 { margin: 24px 0 16px; font-size: 19px; }
.pass-price strong, .pass-price small { display: block; }
.pass-price strong { font-size: 44px; letter-spacing: -2px; }
.pass-price small { color: var(--app-muted); font-size: 9px; }
.pass-card > p { color: var(--app-muted); font-size: 10px; line-height: 1.65; }
.pass-card form { margin-top: auto; }
.pass-card .app-primary { width: 100%; }
.pass-card .app-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.payment-setup-note { display: grid; gap: 5px; margin-top: 16px; padding: 15px 18px; color: #765c36; background: #fbf2dc; border: 1px solid #ead7ad; border-radius: 11px; font-size: 10px; }
.premium-features { display: grid; grid-template-columns: .7fr 1fr; gap: 30px; margin-top: 25px; padding: 30px; background: var(--white); border: 1px solid var(--app-border); border-radius: 18px; }
.premium-features h2 { margin: 0; font-size: 24px; }
.premium-features ul { margin: 0; padding-left: 18px; color: #45605b; font-size: 11px; line-height: 2; }
.premium-features p { grid-column: 1/-1; margin: 0; color: var(--app-muted); font-size: 10px; }
.purchase-history { margin-top: 25px; }
.purchase-history h2 { margin-bottom: 13px; font-size: 20px; }
.purchase-history > div { display: grid; gap: 8px; }
.purchase-history article { display: grid; grid-template-columns: 1fr 90px 90px 140px; align-items: center; gap: 14px; padding: 15px 18px; background: var(--white); border: 1px solid var(--app-border); border-radius: 11px; font-size: 10px; }
.purchase-status { width: fit-content; padding: 5px 7px; background: var(--cream); border-radius: 6px; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.status-paid { color: #347555; background: #e7f8e9; }
.payment-result { max-width: 650px; margin: 45px auto; padding: 55px; background: var(--white); border: 1px solid var(--app-border); border-radius: 22px; text-align: center; }
.payment-result > span { width: 65px; height: 65px; display: grid; place-items: center; margin: 0 auto 23px; background: var(--cream); border-radius: 18px; font-size: 25px; font-weight: 900; }
.payment-result.success > span { background: var(--lime); }
.payment-result h1 { margin-bottom: 13px; font-size: 40px; letter-spacing: -2px; }
.payment-result p { color: var(--app-muted); font-size: 12px; line-height: 1.7; }
.payment-result > div { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 25px; }
.payment-result .cancel { color: var(--app-muted); font-size: 10px; font-weight: 800; }

.design-shell { display: grid; grid-template-columns: minmax(0,1fr) minmax(340px,.82fr); gap: 24px; align-items: start; }
.design-form { padding: 30px; }
.design-heading h2 { margin: 0 0 8px; font-size: 24px; }
.design-heading p { margin: 0 0 25px; color: var(--app-muted); font-size: 11px; line-height: 1.65; }
.color-field-grid { display: grid; gap: 10px; }
.color-field { display: grid; grid-template-columns: 44px 1fr 82px; align-items: center; gap: 13px; padding: 12px; background: #fbfaf6; border: 1px solid var(--app-border); border-radius: 11px; }
.color-field > input[type="color"] { width: 44px; height: 44px; padding: 3px; background: var(--white); border: 1px solid var(--app-border); border-radius: 9px; cursor: pointer; }
.color-field > span strong, .color-field > span small { display: block; }
.color-field > span strong { font-size: 10px; }
.color-field > span small { margin-top: 3px; color: var(--app-muted); font-size: 8px; line-height: 1.4; }
.color-hex { width: 82px; height: 36px; padding: 0 9px; color: var(--ink); background: var(--white); border: 1px solid var(--app-border); border-radius: 8px; outline: 0; font: 750 9px ui-monospace,SFMono-Regular,Menlo,monospace; text-transform: uppercase; }
.color-hex:focus { border-color: #567a74; box-shadow: 0 0 0 3px rgba(86,122,116,.09); }
.design-actions { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.design-reset { min-height: 44px; padding: 0 14px; color: #6b7c78; background: transparent; border: 1px solid var(--app-border); border-radius: 10px; font-size: 9px; font-weight: 800; cursor: pointer; }
.design-actions button:disabled, .color-field input:disabled { opacity: .48; cursor: not-allowed; }
.design-upgrade { margin: 18px 0 0; padding: 13px; color: #765c36; background: #fbf2dc; border-radius: 9px; font-size: 9px; }
.design-upgrade a { font-weight: 850; text-decoration: underline; }
.design-preview { position: sticky; top: 98px; overflow: hidden; color: var(--ink); background: var(--paper); border: 1px solid var(--app-border); border-radius: 19px; box-shadow: 0 18px 45px rgba(16,42,39,.08); }
.preview-browser { height: 42px; display: flex; align-items: center; gap: 6px; padding: 0 14px; color: #73837f; background: #ebe9e1; border-bottom: 1px solid rgba(16,42,39,.1); }
.preview-browser span { width: 7px; height: 7px; background: #b8bdb7; border-radius: 50%; }
.preview-browser small { margin-left: auto; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
.preview-public-page { margin: 28px; padding: 28px; color: var(--ink); background: var(--surface); border: 1px solid color-mix(in srgb,var(--ink) 12%,transparent); border-radius: 18px; box-shadow: 0 18px 45px rgba(16,42,39,.09); }
.preview-profile-mark { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 21px; color: var(--lime); background: var(--button); border-radius: 13px; font-size: 14px; font-weight: 900; }
.preview-public-page > small { color: var(--muted); font-size: 7px; font-weight: 900; letter-spacing: 1px; }
.preview-public-page h2 { margin: 7px 0 8px; color: var(--ink); font-size: 27px; letter-spacing: -1px; }
.preview-public-page p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.preview-public-page > a { min-height: 43px; display: flex; align-items: center; justify-content: center; margin-top: 20px; color: var(--button-text); background: var(--button); border-radius: 10px; font-size: 10px; font-weight: 850; text-decoration: none; }
.preview-detail { display: grid; gap: 4px; margin-top: 10px; padding: 13px; color: var(--ink); background: var(--lime); border-radius: 10px; }
.preview-detail small { color: inherit; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.preview-detail strong { font-size: 10px; }

.legal-header { padding: 25px 0; border-bottom: 1px solid var(--app-border); }
.legal-nav { display: flex; align-items: center; justify-content: space-between; }
.legal-nav a:last-child { font-size: 11px; font-weight: 800; }
.legal-shell { display: grid; grid-template-columns: 230px minmax(0,720px); gap: 70px; padding: 65px 0 100px; }
.legal-aside { position: sticky; top: 30px; align-self: start; padding: 20px; background: var(--white); border: 1px solid var(--app-border); border-radius: 13px; }
.legal-aside strong { display: block; margin-bottom: 12px; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.legal-aside a { display: block; padding: 6px 0; color: var(--app-muted); font-size: 10px; }
.legal-content h1 { margin-bottom: 11px; font-size: 52px; letter-spacing: -3px; }
.legal-updated { margin-bottom: 40px; color: var(--app-muted); font-size: 10px; }
.legal-warning { margin-bottom: 30px; padding: 14px; color: #765c36; background: #fbf2dc; border: 1px solid #ead7ad; border-radius: 10px; font-size: 10px; line-height: 1.6; }
.legal-content section { margin-bottom: 34px; scroll-margin-top: 30px; }
.legal-content h2 { margin-bottom: 11px; font-size: 20px; letter-spacing: -.5px; }
.legal-content p, .legal-content li { color: #4f6662; font-size: 12px; line-height: 1.75; }
.legal-content ul { padding-left: 19px; }

@media (max-width: 1000px) {
    .qr-list-card { grid-template-columns: 80px 1fr 130px 175px; }
    .destination { display: none; }
    .editor-shell { grid-template-columns: 1fr 310px; }
    .social-editor-grid { grid-template-columns: 1fr; }
    .type-options { grid-template-columns: 1fr 1fr; }
    .design-shell { grid-template-columns: 1fr 330px; }
}

.music-quiz-mark{width:64px;height:64px;display:grid;place-items:center;margin:0 auto 18px;border-radius:20px;background:#1ed760;color:#102a27;font-size:36px;font-weight:900;box-shadow:0 14px 34px rgba(30,215,96,.24)}
.music-answer{display:grid;gap:7px;margin-top:18px;padding:20px;border:1px solid rgba(16,42,39,.13);border-radius:16px;background:#f8f6ef;text-align:left}.music-answer small{color:#60726f;font-size:10px;font-weight:850;letter-spacing:.12em}.music-answer strong{color:#102a27;font-size:17px}.music-answer span{color:#38514e;font-weight:800}.music-answer p{margin:4px 0 0;color:#60726f}.music-type-option{background:linear-gradient(135deg,rgba(30,215,96,.1),#fff)}
@media (max-width: 760px) {
    .app-container { width: min(100% - 26px, 620px); }
    .app-nav { min-height: 66px; gap: 10px; }
    .user-dropdown summary strong { display:none; }
    .app-menu-toggle { position: relative; z-index: 32; display: block; margin-left: auto; }
    .app-menu-toggle[aria-expanded="true"] span:nth-last-child(3) { transform: translateY(7px) rotate(45deg); }
    .app-menu-toggle[aria-expanded="true"] span:nth-last-child(2) { opacity: 0; }
    .app-menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
    .app-links { position: absolute; z-index: 30; top: 66px; left: 0; width: 100%; max-height: calc(100svh - 66px); display: flex; align-items: stretch; flex-direction: column; gap: 0; margin: 0; padding: 12px 18px 22px; overflow-y: auto; background: rgba(251,250,246,.98); border-bottom: 1px solid var(--app-border); box-shadow: 0 18px 35px rgba(16,42,39,.12); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .2s, visibility .2s, transform .2s; }
    .app-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
    .app-links a { padding: 15px 5px; border-bottom: 1px solid var(--app-border); font-size: 15px; }
    .app-more-menu summary { padding:15px 5px;border-bottom:1px solid var(--app-border);font-size:15px; }
    .app-more-menu>div { position:static;min-width:0;padding:0 0 0 14px;background:transparent;border:0;border-radius:0;box-shadow:none; }
    .app-more-menu>div a { border-radius:0; }
    .app-menu-open { overflow: hidden; }
    .user-dropdown { margin-left:0; }
    .page-head { align-items: flex-start; flex-direction: column; }
    .page-head .app-primary { width: 100%; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .toolbar { align-items: stretch; flex-direction: column; }
    .toolbar select, .toolbar button { width: 100%; }
    .qr-list-card { grid-template-columns: 72px 1fr; gap: 14px; }
    .qr-thumb { width: 66px; height: 66px; }
    .scan-summary { position: absolute; opacity: 0; pointer-events: none; }
    .status-cell, .card-actions { grid-column: 2; justify-content: flex-start; }
    .file-promo { grid-template-columns: 1fr; }
    .file-price { padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.14); border-left: 0; }
    .editor-shell { grid-template-columns: 1fr; }
    .type-options { grid-template-columns: 1fr; }
    .platform-fields { grid-template-columns: 1fr; }
    .sticky-save { bottom: 8px; width: 100%; justify-content: center; }
    .preview-card { position: static; }
    .legal-shell { grid-template-columns: 1fr; gap: 25px; padding-top: 40px; }
    .legal-aside { position: static; }
    .legal-content h1 { font-size: 43px; }
    .pass-grid, .premium-features { grid-template-columns: 1fr; }
    .premium-features p { grid-column: 1; }
    .purchase-history article { grid-template-columns: 1fr auto; }
    .purchase-history article small { grid-column: 1/-1; }
    .payment-result { padding: 35px 22px; }
    .design-shell { grid-template-columns: 1fr; }
    .design-preview { position: static; }
    .design-actions { align-items: stretch; flex-direction: column; }
    .design-actions button { width: 100%; }
}
