@font-face { font-family: Poppins; src: url("../fonts/poppins/Poppins-Regular.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: Now; src: url("../fonts/now/Now-Regular.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: Now; src: url("../fonts/now/Now-Medium.woff2") format("woff2"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: Now; src: url("../fonts/now/Now-SemiBold.woff2") format("woff2"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: Now; src: url("../fonts/now/Now-Bold.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: Now; src: url("../fonts/now/Now-ExtraBold.woff2") format("woff2"); font-style: normal; font-weight: 800; font-display: swap; }
@font-face { font-family: Now; src: url("../fonts/now/Now-Black.woff2") format("woff2"); font-style: normal; font-weight: 900; font-display: swap; }
body { background: #f4f6fb; }
.tool-header { border-bottom: 1px solid #edecf2; background: #fff; }
.contact-header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tool-brand img { display: block; width: 145px; height: 64px; object-fit: cover; mix-blend-mode: multiply; }
.back-link { color: #5e55c8; font-size: 13px; font-weight: 700; }
.voucher-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 46px 0 60px; }
.voucher-shell > .tool-eyebrow { margin: 0 0 10px; color: var(--brand-dark); font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.page-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.page-title-row h1 { margin: 0; font-size: clamp(32px, 5vw, 44px); }
.voucher-shell > .tool-intro { max-width: 850px; margin: 0 0 28px; color: #667085; font-size: 15px; line-height: 1.7; }
.voucher-card, .seo-block, .faq-panel, .related-tools { margin: 22px 0; padding: clamp(18px, 3vw, 26px); border: 1px solid #e3e8f0; border-radius: 15px; background: #fff; box-shadow: 0 4px 18px rgb(16 24 40 / 4%); }
.voucher-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.voucher-heading h2 { margin: 0; color: #292b40; font-size: 20px; letter-spacing: -.03em; }
.step-kicker { margin: 0 0 5px; color: #6858e8; font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.local-badge { flex: 0 0 auto; padding: 8px 10px; border-radius: 20px; color: #21795e; background: #e9f8f2; font-size: 12px; font-weight: 700; }
.local-badge > span:first-child { margin-right: 5px; color: #36ad82; font-size: 9px; }
.setup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.setup-column { min-width: 0; padding: 17px; border: 1px solid #eceef4; border-radius: 12px; background: #fcfcfe; }
.setup-column h3, .export-option h3, .generated-list h3 { margin: 0 0 13px; color: #34364b; font-size: 15px; }
.drop-zone { min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 20px; border: 1px dashed #b9b4e9; border-radius: 11px; color: #5c5d73; background: #faf9ff; cursor: pointer; text-align: center; transition: background .15s, border-color .15s; }
.drop-zone.is-dragging { border-color: #6858e8; background: #f4f2ff; }
@media (hover: hover) and (pointer: fine) { .drop-zone:hover { border-color: #6858e8; background: #f4f2ff; } }
.drop-zone strong { color: #37394e; font-size: 13px; }
.drop-zone span:not(.drop-icon) { color: #828597; font-size: 12px; }
.drop-icon { color: #695ade; font-size: 26px; }
.image-info { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 11px; padding: 10px 12px; border: 1px solid #e3e8f0; border-radius: 10px; color: #555b70; background: #fff; font-size: 12px; }
.image-metadata { min-width: 0; display: flex; flex: 1 1 180px; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.image-info strong { max-width: 100%; overflow-wrap: anywhere; }
.remove-image-button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid #fecdca; border-radius: 8px; color: #d92d20; background: #fff5f4; cursor: pointer; font-size: 14px; }
@media (hover: hover) and (pointer: fine) { .remove-image-button:hover { border-color: #fda29b; background: #fee4e2; } }
.image-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; margin-left: auto; }
.change-image-button { min-height: 34px; padding: 0 11px; border-color: #b6afff; color: var(--brand); box-shadow: 0 3px 12px rgb(99 70 229 / 24%); }
@media (hover: hover) and (pointer: fine) { .change-image-button:hover { border-color: #8e83f5; background: #f4f2ff; box-shadow: 0 4px 15px rgb(99 70 229 / 34%); } }
.text-button { padding: 4px 0; border: 0; color: var(--brand); background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .text-button:hover { color: var(--brand-dark); } }
.clear-button { color: #b42318; }
@media (hover: hover) and (pointer: fine) { .clear-button:hover { color: #912018; } }
.secondary-button, .primary-button, .small-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 13px; border: 1px solid #e3e8f0; border-radius: 9px; color: #45485a; background: #fff; cursor: pointer; font-size: 12px; font-weight: 700; text-align: center; transition: background .15s, border-color .15s, scale .16s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .secondary-button:hover { border-color: #c8c8fa; background: #f8f7ff; } }
.primary-button { width: 100%; border-color: var(--brand); color: #fff; background: var(--brand); }
@media (hover: hover) and (pointer: fine) { .primary-button:hover:not(:disabled) { border-color: var(--brand-dark); background: var(--brand-dark); } }
.primary-button:disabled, .secondary-button:disabled { opacity: .48; cursor: not-allowed; }
.code-action-button { min-height: 32px; border-color: var(--brand); color: #fff; background: var(--brand); }
@media (hover: hover) and (pointer: fine) { .code-action-button:hover:not(:disabled) { border-color: var(--brand-dark); background: var(--brand-dark); } }
.code-action-button:disabled { border-color: #d0d5dd; color: #667085; background: #eaecf0; opacity: 1; cursor: not-allowed; }
.reset-button { min-height: 32px; flex: 0 0 auto; padding: 0 10px; border-color: #e3e0fa; color: #667085; background: #fff; box-shadow: 0 2px 9px rgb(99 70 229 / 12%); font-size: 12px; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .reset-button:hover:not(:disabled) { border-color: #cbd2df; color: #45485a; background: #f8f7ff; box-shadow: 0 3px 11px rgb(99 70 229 / 17%); } }
.reset-button:disabled { opacity: .5; cursor: not-allowed; }
.source-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.pill-button { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 11px; border: 1px solid #e4e6ef; border-radius: 20px; color: #626679; background: #fff; cursor: pointer; font-size: 12px; font-weight: 700; }
.pill-button.is-active { border-color: #b6b0f2; color: var(--brand); background: #f4f2ff; }
@media (hover: hover) and (pointer: fine) { .pill-button:hover { border-color: #b6b0f2; color: var(--brand); background: #f4f2ff; } }
.pill-button:disabled { border-color: #e4e6ef; color: #9699a8; background: #f2f3f6; cursor: not-allowed; }
.source-panel { min-height: 153px; }
.source-panel.is-locked { opacity: .55; }
.field-label, .series-grid label > span, .controls-two label > span:first-child, .rotation-row label { display: block; margin: 9px 0 6px; color: #45485a; font-size: 12px; font-weight: 700; }
.voucher-textarea, .voucher-input { width: 100%; min-width: 0; min-height: 39px; padding: 9px 10px; border: 1px solid #d7deea; border-radius: 8px; outline: none; color: #292b40; background: #fff; font: inherit; font-size: 12px; }
.voucher-textarea { min-height: 100px; resize: vertical; font-family: var(--font-mono); line-height: 1.5; }
.voucher-input:focus, .voucher-textarea:focus { border-color: #a5a6f6; box-shadow: 0 0 0 3px rgb(var(--brand-rgb) / 12%); }
.field-hint, .card-description { margin: 7px 0; color: #667085; font-size: 12px; line-height: 1.6; }
.file-input { width: 100%; padding: 10px; border: 1px dashed #d7deea; border-radius: 8px; background: #fff; font-size: 12px; }
.file-options { margin-top: 10px; }
.check-line { display: flex; align-items: flex-start; gap: 8px; margin: 9px 0; color: #555b70; font-size: 12px; line-height: 1.5; }
.check-line input { width: 15px; height: 15px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--brand); }
.series-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.series-grid[hidden] { display: none; }
.series-common { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.series-options { margin-top: 9px; }
.series-grid label > span { margin-top: 0; }
.series-grid .voucher-input { padding: 8px; }
.code-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 13px; margin-top: 13px; padding: 10px; border-radius: 8px; color: #53576b; background: #f5f6fa; font-size: 12px; }
.code-summary span:first-child { color: #4540a2; font-weight: 750; }
.app-status { min-height: 17px; margin: 9px 0 0; color: #6459cc; font-size: 12px; }
.app-status.is-error { color: #b42318; }
.coordinates { color: #707487; font-size: 12px; }
.page-selection-hint { margin: -2px 0 10px; color: #6254c8; font-size: 12px; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, .8fr); gap: 18px; align-items: start; }
.canvas-column { min-width: 0; }
.canvas-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.canvas-wrap { position: relative; min-height: 290px; display: grid; place-items: center; overflow: hidden; border: 1px solid #e7e8ef; border-radius: 10px; background: #f0f1f5; }
#preview-canvas { display: block; width: 100%; height: auto; touch-action: none; cursor: crosshair; }
.canvas-placeholder { padding: 30px; color: #626777; font-size: 12px; text-align: center; }
.style-panel { padding: 14px; border: 1px solid #eceef4; border-radius: 10px; background: #fcfcfe; }
.text-settings { min-width: 0; margin: 0; padding: 0; border: 0; }
.text-settings:disabled { opacity: .48; }
.preview-switches { display: grid; grid-template-columns: 35px minmax(0, 1fr) 35px; align-items: center; gap: 6px; margin-bottom: 4px; }
.preview-switches span { overflow: hidden; color: #383b50; font: 12px/1.4 var(--font-mono); text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.small-button { min-height: 32px; padding: 0; font-size: 20px; }
.style-panel > .text-button { display: block; margin-bottom: 8px; }
.editor-action-row { display: flex; align-items: stretch; gap: 8px; margin-top: 12px; }
.editor-action-row .primary-button { min-width: 0; flex: 1 1 auto; padding: 8px 10px; font-size: 12px; }
.editor-action-row .primary-button:disabled { border-color: #d0d5dd; color: #667085; background: #eaecf0; opacity: 1; cursor: not-allowed; }
.clear-box-button { width: 42px; min-height: 40px; display: grid; flex: 0 0 42px; place-items: center; padding: 0; border: 1px solid #d92d20; border-radius: 9px; color: #fff; background: #d92d20; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .clear-box-button:hover:not(:disabled) { border-color: #b42318; background: #b42318; } }
.clear-box-button:disabled { border-color: #fecdca; color: #b42318; background: #fee4e2; opacity: .6; cursor: not-allowed; }
.clear-box-button svg { width: 18px; height: 18px; }
.font-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; }
.font-row .voucher-input { min-width: 0; }
.upload-font { min-height: 39px; position: relative; padding: 0 8px; font-size: 12px; }
.upload-font input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.controls-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 9px; }
.controls-two > label { min-width: 0; }
.controls-two .voucher-input { margin-top: 5px; }
.inline-check { align-self: center; margin: 0 0 9px; }
.color-pair { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.color-pair input[type="color"] { width: 37px; height: 37px; flex: 0 0 37px; padding: 3px; border: 1px solid #d7deea; border-radius: 7px; background: #fff; }
.color-pair .voucher-input { margin: 0; }
.rotation-row { display: grid; grid-template-columns: auto minmax(80px, 1fr) 34px; align-items: center; gap: 8px; }
.rotation-row label { margin-bottom: 0; }
.rotation-row input { width: 100%; accent-color: var(--brand); }
.rotation-row output { color: #5d6172; font-size: 12px; }
.rotation-pills { display: flex; gap: 6px; margin: 7px 0 13px; }
.rotation-pills .pill-button { min-height: 28px; }
.save-position { margin-top: 8px; }
.export-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.export-option { display: flex; flex-direction: column; min-width: 0; padding: 15px; border: 1px solid #eceef4; border-radius: 11px; background: #fcfcfe; }
.export-option h3 { margin-bottom: 6px; font-size: 13px; }
.export-option p { min-height: 34px; margin: 0 0 8px; color: #667085; font-size: 12px; line-height: 1.5; }
.export-option > .primary-button { margin-top: auto; }
.layout-tabs { margin: 7px 0; }
.layout-tabs .pill-button { min-height: 31px; cursor: pointer; }
.layout-tabs input { accent-color: var(--brand); }
.progress-area { margin-top: 18px; }
.progress-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #555b70; font-size: 12px; }
.progress-heading .text-button { flex: 0 0 auto; }
#generation-progress { width: 100%; height: 12px; margin-top: 5px; accent-color: var(--brand); }
.generated-list { margin-top: 18px; padding-top: 15px; border-top: 1px solid #eceef4; }
.generated-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; max-height: 300px; overflow: auto; }
.generated-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px; border: 1px solid #eceef4; border-radius: 8px; font-size: 12px; }
.generated-item strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.generated-item button { flex: 0 0 auto; padding: 5px 7px; border: 1px solid #e3e8f0; border-radius: 6px; color: var(--brand); background: white; cursor: pointer; font-size: 11px; }
.support-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 14px 16px; border: 1px solid #e5e0ff; border-radius: 12px; color: #4e477f; background: #f8f7ff; font-size: 13px; line-height: 1.5; }
.support-banner p { margin: 0; }
.support-banner a { min-height: 38px; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; padding: 0 14px; border-radius: 8px; color: #fff; background: var(--brand); font-size: 12px; font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .support-banner a:hover { background: var(--brand-dark); } }
.seo-content { margin-top: 26px; padding-top: 5px; }
.seo-intro h2 { margin: 0 0 12px; color: #292b40; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; }
.seo-intro p { margin: 0 0 10px; color: #4b5565; font-size: 14px; line-height: 1.8; }
.seo-content a { color: var(--brand); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.seo-block { margin-top: 16px; padding: 20px; }
.seo-block h3, .faq-panel h3, .related-tools h3 { margin: 0 0 12px; color: #292b40; font-size: 18px; }
.seo-block p, .seo-block li { color: #54596b; font-size: 12px; line-height: 1.75; }
.seo-block ul { margin: 8px 0 0; padding-left: 21px; }
.seo-block li + li { margin-top: 8px; }
.faq-panel { margin-top: 16px; }
.faq-item { border-top: 1px solid #eceef4; }
.faq-item summary { position: relative; padding: 14px 30px 14px 0; color: #393c50; cursor: pointer; font-size: 12px; font-weight: 700; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { position: absolute; top: 13px; right: 3px; content: "⌄"; color: #6858e8; font-size: 18px; transition: transform .18s var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item p { margin: 0 0 14px; color: #64697a; font-size: 12px; line-height: 1.7; }
.related-tools { margin-top: 16px; }
.related-tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.related-tool-card { min-height: 146px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 14px; border: 1px solid #eceef4; border-radius: 10px; background: #fcfcfe; }
@media (hover: hover) and (pointer: fine) { .related-tool-card:hover { border-color: #c8c8fa; background: #f9f8ff; } }
.related-tool-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; font-size: 13px; font-weight: 800; }
.related-tool-category { color: #667085; font-size: 11px; }
.related-tool-card strong { color: #34364b; font-size: 12px; }
.related-tool-description { color: #667085; font-size: 13px; line-height: 1.5; }
.back-to-tool { position: fixed; z-index: 4; right: 20px; bottom: 20px; padding: 12px 16px; border-radius: 22px; color: #fff; background: var(--brand); box-shadow: 0 8px 24px rgb(48 43 118 / 22%); font-size: 12px; font-weight: 700; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), scale .16s var(--ease-out); }
.back-to-tool.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.site-footer { margin-top: 8px; padding: 22px 20px 26px; }
.site-footer-inner { width: min(100%, 1120px); display: grid; justify-items: center; gap: 12px; margin: 0 auto; }
.site-footer .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.site-footer .footer-links a { color: #777a89; font-size: 12px; font-weight: 650; text-decoration: none; }
.site-footer .footer-legal-note { max-width: 900px; margin: 0; color: #626777; font-size: 12px; line-height: 1.6; text-align: center; }
@media (max-width: 850px) {
  .editor-grid { grid-template-columns: 1fr; }
  .export-grid { grid-template-columns: 1fr; }
  .export-option p { min-height: 0; }
}
@media (max-width: 650px) {
  .setup-grid, .related-tools-grid { grid-template-columns: 1fr; }
  .voucher-heading { align-items: flex-start; flex-direction: column; }
  .page-title-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .coordinates { align-self: flex-start; }
  .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support-banner { align-items: flex-start; flex-direction: column; }
  .site-footer .footer-links { gap: 10px 16px; }
  .site-footer .footer-legal-note { font-size: 12px; }
}
