/* qr-menu-generator styles */

    :root {
      color-scheme: light;
      --bg: #f6fbf8;
      --bg-soft: #eef7f2;
      --panel: #ffffff;
      --text: #0b1a30;
      --muted: #607089;
      --line: rgba(11, 26, 48, 0.1);
      --brand: #00d084;
      --brand-bright: #00b874;
      --nav-link: #00b874;
      --shadow: 0 24px 56px rgba(15, 23, 42, 0.08);
      --radius-xl: 28px;
      --radius-lg: 22px;
      --radius-md: 16px;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: Inter, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
      background:
        radial-gradient(circle at 12% 10%, rgba(0, 208, 132, 0.12), transparent 24%),
        radial-gradient(circle at 88% 8%, rgba(0, 208, 132, 0.08), transparent 20%),
        linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
      color: var(--text);
      min-height: 100vh;
    }

    .page-shell {
      width: min(1220px, calc(100% - 32px));
      max-width: 100%;
      margin: 0 auto;
      padding: 20px 0 56px;
    }

    .hero,
    .card,
    .cta {
      border: 1px solid var(--line);
      border-radius: var(--radius-xl);
      background: var(--panel);
      box-shadow: var(--shadow);
    }

    .hero {
      position: relative;
      overflow: hidden;
      padding: 32px;
    }

    .hero::after {
      content: "";
      position: absolute;
      right: -6%;
      bottom: -38%;
      width: 320px;
      height: 320px;
      border-radius: 50%;
      background: rgba(0, 208, 132, 0.08);
      filter: blur(80px);
      pointer-events: none;
    }

    .eyebrow {
      display: inline-flex;
      gap: 10px;
      margin: 0 0 16px;
      padding: 9px 14px;
      border: 1px solid rgba(0, 208, 132, 0.16);
      border-radius: 999px;
      background: rgba(0, 208, 132, 0.08);
      color: #0f7a57;
      font-size: 0.78rem;
      font-weight: 800;
      letter-spacing: 0.14em;
      text-transform: uppercase;
    }

    h1, h2, h3, p { margin-top: 0; }

    .hero h1 {
      max-width: 780px;
      margin-bottom: 12px;
      font-size: clamp(2.1rem, 4.7vw, 3.7rem);
      line-height: 1.06;
      letter-spacing: -0.03em;
    }

    .hero h1 span { color: var(--brand); }

    .hero-lead {
      max-width: 720px;
      margin-bottom: 10px;
      color: #27415e;
      font-size: 1.08rem;
      font-weight: 600;
      line-height: 1.65;
    }

    .hero-detail {
      max-width: 760px;
      font-size: 0.96rem;
    }

    .hero-copy,
    .section-copy,
    .faq > p,
    .cta p {
      color: var(--muted);
      line-height: 1.8;
      overflow-wrap: anywhere;
    }

    .hero-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 22px;
    }

    .hero-tag {
      padding: 9px 13px;
      border: 1px solid rgba(11, 26, 48, 0.08);
      border-radius: 999px;
      background: #f7fbf9;
      color: #27415e;
      font-size: 0.88rem;
    }

    .hero-tag-highlight {
      border-color: rgba(0, 208, 132, 0.22);
      background: rgba(0, 208, 132, 0.1);
      color: #0f7a57;
    }

    .tool-layout {
      display: grid;
      grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
      gap: 24px;
      margin-top: 24px;
      align-items: start;
    }

    .input-card,
    .preview-card,
    .bulk-card,
    .faq {
      padding: 24px;
    }

    .section-title {
      margin-bottom: 8px;
      font-size: 1.32rem;
      letter-spacing: -0.02em;
    }

    .site-nav {
      padding: 18px 22px;
    }

    .site-nav .section-copy {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px;
      margin: 0;
      line-height: 1.4;
    }

    .site-nav a {
      display: inline-flex;
      align-items: center;
      min-height: 40px;
      padding: 8px 12px;
      border: 1px solid rgba(11, 26, 48, 0.08);
      border-radius: 999px;
      background: #ffffff;
      color: #25405b;
      text-decoration: none;
      font-size: 0.92rem;
      font-weight: 600;
    }

    .site-nav a:hover {
      border-color: rgba(0, 208, 132, 0.22);
      color: #00b874;
      background: rgba(0, 208, 132, 0.08);
    }

    .nav-sep {
      display: none;
    }

    .tool-section-header {
      margin-top: 20px;
      padding: 14px 16px;
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      background: #f8fbf9;
    }
    .tool-section-header h3 {
      margin: 0 0 6px;
      font-size: 1rem;
      letter-spacing: -0.01em;
    }
    .tool-section-header p {
      margin: 0;
      color: var(--muted);
      line-height: 1.6;
      font-size: 0.92rem;
    }

    .field-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      margin-top: 20px;
    }

    .field,
    .field-wide {
      display: grid;
      gap: 8px;
    }

    .field-wide { grid-column: 1 / -1; }

    label {
      color: #1d3652;
      font-size: 0.88rem;
      font-weight: 700;
    }

    input,
    select,
    textarea {
      width: 100%;
      min-height: 50px;
      padding: 12px 14px;
      border: 1px solid rgba(11, 26, 48, 0.12);
      border-radius: var(--radius-md);
      background: #ffffff;
      color: var(--text);
      font: inherit;
      appearance: none;
      transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    }

    /* Keep selects close to native behavior for smoother mouse/trackpad interaction */
    select {
      appearance: auto;
      -webkit-appearance: menulist;
      -moz-appearance: menulist;
      padding-right: 14px;
      background-color: #ffffff;
      color: var(--text);
    }
    select option,
    select optgroup {
      background-color: #ffffff;
      color: var(--text);
    }

    textarea {
      min-height: 108px;
      resize: vertical;
    }

    input::placeholder,
    textarea::placeholder { color: #8a98aa; }

    input:focus,
    select:focus,
    textarea:focus {
      outline: none;
      border-color: rgba(0, 208, 132, 0.5);
      box-shadow: 0 0 0 4px rgba(0, 208, 132, 0.12);
      background: #ffffff;
    }

    .select-wrap { position: relative; }

    .select-wrap::after {
      content: "v";
      position: absolute;
      top: 50%;
      right: 16px;
      transform: translateY(-50%);
      color: var(--muted);
      font-size: 0.9rem;
      pointer-events: none;
    }
    .select-wrap:has(select)::after {
      display: none;
    }

    .toggle-wrap {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-top: 6px;
      padding: 14px 16px;
      border: 1px solid rgba(11, 26, 48, 0.1);
      border-radius: var(--radius-md);
      background: #f8fbf9;
    }

    .toggle-wrap input[type="checkbox"] {
      width: 22px;
      min-height: auto;
      height: 22px;
      margin: 0;
      accent-color: var(--brand);
    }

    .input-hint {
      color: #70829a;
      font-size: 0.84rem;
      line-height: 1.5;
    }
    .actions {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      margin-top: 20px;
    }

    .preview-actions {
      margin-top: 16px;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .actions.preview-actions {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .actions .btn-primary:first-child {
      grid-column: 1 / -1;
    }

    .preview-card {
      position: sticky;
      top: 20px;
    }
    .advanced-panel {
      margin-top: 16px;
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      background: #f8fbf9;
      overflow: hidden;
    }
    .advanced-panel summary {
      list-style: none;
      cursor: pointer;
      padding: 16px 18px;
      font-size: 0.96rem;
      font-weight: 800;
      color: var(--text);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .advanced-panel summary::-webkit-details-marker {
      display: none;
    }
    .advanced-panel summary::after {
      content: "+";
      font-size: 1.1rem;
      color: var(--brand);
    }
    .advanced-panel[open] summary::after {
      content: "-";
    }
    .advanced-panel > .section-copy {
      padding: 0 18px;
      margin-bottom: 0;
    }
    .advanced-grid {
      padding: 16px 18px 18px;
      margin-top: 8px;
    }
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 48px;
      padding: 0 16px;
      border-radius: 14px;
      border: 1px solid transparent;
      font: inherit;
      font-size: 0.95rem;
      font-weight: 700;
      text-decoration: none;
      cursor: pointer;
      transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
    }
    .btn:hover { transform: translateY(-1px); }
    .btn-primary {
      background: linear-gradient(135deg, var(--brand) 0%, #19e39b 100%);
      color: #081324;
      box-shadow: 0 18px 34px rgba(0, 208, 132, 0.22);
    }
    .btn-secondary {
      border-color: rgba(11, 26, 48, 0.1);
      background: linear-gradient(180deg, #ffffff, #f3faf6);
      color: var(--text);
      box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    }
    .btn-ghost {
      border-color: rgba(0, 208, 132, 0.35);
      background: rgba(0, 208, 132, 0.08);
      color: #0f7a57;
    }
    .error-box {
      display: none;
      margin-top: 18px;
      padding: 14px 16px;
      border: 1px solid rgba(255, 107, 107, 0.2);
      border-radius: var(--radius-md);
      background: rgba(255, 107, 107, 0.08);
      color: #8a1f1f;
      line-height: 1.6;
    }
    .preview-shell { display: grid; gap: 16px; }
    .preview-stage {
      display: grid;
      place-items: center;
      min-height: clamp(200px, 30vw, 320px);
      padding: 14px;
      border-radius: var(--radius-lg);
      border: 1px solid var(--line);
      background: #f8fbf9;
    }
    .qr-frame {
      position: relative;
      display: inline-grid;
      place-items: center;
      padding: 14px;
      border-radius: 24px;
      background: rgba(255, 255, 255, 0.98);
      box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
      overflow: hidden;
    }
    .qr-image {
      display: block;
      width: min(100%, 320px);
      max-width: 100%;
      height: auto;
      aspect-ratio: 1 / 1;
      object-fit: contain;
      border-radius: 18px;
      background: #fff;
    }
    .logo-overlay {
      position: absolute;
      width: 72px;
      height: 72px;
      object-fit: cover;
      border-radius: 18px;
      box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
      background: #fff;
      padding: 8px;
    }
    .preview-meta { text-align: center; }
    .preview-name {
      display: block;
      font-size: 1.2rem;
      font-weight: 800;
      letter-spacing: -0.02em;
      overflow-wrap: anywhere;
    }
    .preview-note {
      display: block;
      margin-top: 6px;
      color: var(--muted);
      line-height: 1.6;
      font-size: 0.94rem;
      overflow-wrap: anywhere;
    }
    .preview-powered {
      display: inline-block;
      margin-top: 10px;
      color: #70829a;
      text-decoration: none;
      font-size: 0.9rem;
      font-weight: 600;
      transition: color 0.18s ease;
    }
    .preview-powered:hover {
      color: #00b874;
    }
    .preview-stats {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }
    .preview-stats-compact {
      align-items: stretch;
    }
    .metric-card {
      padding: 14px;
      border-radius: var(--radius-lg);
      border: 1px solid var(--line);
      background: #f8fbf9;
      min-height: 104px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    .metric-card-wide {
      min-height: auto;
      align-items: flex-start;
    }
    .metric-card-content {
      padding: 16px;
      gap: 8px;
    }

    .actions.preview-actions .btn-secondary,
    .actions.preview-actions .btn-ghost,
    .actions.preview-actions .btn-primary {
      min-height: 58px;
      padding: 12px 10px;
      border-radius: 18px;
      flex-direction: column;
      gap: 4px;
      line-height: 1.2;
      text-align: center;
      position: relative;
      overflow: hidden;
    }
    .actions.preview-actions .btn-secondary::before,
    .actions.preview-actions .btn-ghost::before,
    .actions.preview-actions .btn-primary::before {
      content: "";
      position: absolute;
      inset: 0 auto auto 0;
      width: 100%;
      height: 3px;
      background: linear-gradient(90deg, rgba(0, 208, 132, 0.95), rgba(0, 184, 116, 0.22));
    }
    .actions.preview-actions .btn-secondary:hover,
    .actions.preview-actions .btn-ghost:hover,
    .actions.preview-actions .btn-primary:hover {
      border-color: rgba(0, 208, 132, 0.22);
      box-shadow: 0 12px 22px rgba(0, 208, 132, 0.10);
    }
    .metric-label {
      display: block;
      color: var(--muted);
      font-size: 0.88rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }
    .metric-value {
      display: block;
      margin-top: 8px;
      font-size: 1rem;
      font-weight: 800;
      line-height: 1.4;
      word-break: break-word;
    }
    .metric-value-content {
      width: 100%;
      margin-top: 0;
      padding-bottom: 2px;
      overflow-wrap: anywhere;
      word-break: break-word;
      white-space: normal;
      font-size: 0.94rem;
      font-weight: 700;
    }
    .bulk-card { margin-top: 24px; }
    .bulk-list {
      display: grid;
      gap: 12px;
      margin-top: 18px;
    }
    .bulk-item {
      display: grid;
      grid-template-columns: 88px minmax(0, 1fr);
      gap: 14px;
      align-items: center;
      padding: 14px;
      border-radius: var(--radius-lg);
      border: 1px solid var(--line);
      background: #f8fbf9;
    }
    .bulk-thumb {
      width: 88px;
      height: 88px;
      border-radius: 14px;
      background: #fff;
      object-fit: contain;
      padding: 6px;
    }
    .bulk-text {
      color: var(--muted);
      line-height: 1.6;
      word-break: break-word;
    }
    .cta {
      position: relative;
      overflow: hidden;
      margin-top: 28px;
      padding: 34px;
      border-color: rgba(0, 208, 132, 0.2);
      background:
        radial-gradient(circle at 12% 22%, rgba(0, 208, 132, 0.08), transparent 26%),
        radial-gradient(circle at top right, rgba(0, 208, 132, 0.12), transparent 34%),
        linear-gradient(135deg, #fbfefc, #eef8f3);
    }
    .cta h2 {
      margin-bottom: 14px;
      font-size: clamp(1.6rem, 3vw, 2.4rem);
      letter-spacing: -0.03em;
      color: var(--text);
    }
    .cta p {
      color: #5f7189;
    }
    .faq { margin-top: 28px; }
    .faq-grid {
      display: grid;
      gap: 14px;
      margin-top: 20px;
    }
    .faq-item {
      padding: 16px 18px;
      border-radius: var(--radius-lg);
      border: 1px solid var(--line);
      background: #f8fbf9;
    }
    .faq-item h3 {
      margin-bottom: 10px;
      font-size: 1.02rem;
    }
    .faq-item p {
      margin: 0;
      color: var(--muted);
      line-height: 1.7;
      font-size: 0.96rem;
    }

    /* In-content links: green theme (not default blue) */
    .page-shell .card:not(.site-nav) a:not(.btn) {
      color: var(--brand-bright);
      font-weight: 600;
      text-decoration: underline;
      text-decoration-color: rgba(0, 208, 132, 0.45);
      text-underline-offset: 3px;
      transition: color 0.18s ease, text-decoration-color 0.18s ease;
    }
    .page-shell .card:not(.site-nav) a:not(.btn):hover {
      color: #00b874;
      text-decoration-color: rgba(0, 184, 116, 0.55);
    }
    .sticky-cta {
      position: fixed;
      right: 18px;
      bottom: 18px;
      z-index: 20;
      min-height: 50px;
      padding: 0 18px;
      border-radius: 16px;
      background: linear-gradient(135deg, var(--brand) 0%, #19e39b 100%);
      color: #081324;
      box-shadow: 0 20px 36px rgba(0, 208, 132, 0.22);
    }
    .hidden { display: none !important; }
    .whatsapp-support-fab {
      position: fixed;
      left: 16px;
      bottom: 16px;
      z-index: 80;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 12px 16px;
      border-radius: 999px;
      background: #25D366;
      color: #ffffff;
      font-size: 0.9rem;
      font-weight: 800;
      text-decoration: none;
      box-shadow: 0 18px 36px rgba(37, 211, 102, 0.35);
      transition: transform 0.2s ease, background 0.2s ease;
    }
    .whatsapp-support-fab:hover { transform: translateY(-1px); background: #1ebe5b; }
    @media (max-width: 960px) {
      .tool-layout { grid-template-columns: 1fr; }
      .preview-card { position: static; order: -1; }
      .preview-stats { grid-template-columns: 1fr 1fr; }
      .hero { padding: 26px; }
    }
    @media (max-width: 680px) {
      .page-shell { width: min(100% - 12px, 1220px); max-width: calc(100% - 12px); padding: 14px 0 28px; padding-bottom: max(28px, env(safe-area-inset-bottom, 0px)); }
      .hero, .input-card, .preview-card, .bulk-card, .cta, .faq { padding: 18px 16px; border-radius: 18px; }
      .hero h1 { font-size: 1.7rem; line-height: 1.08; }
      .hero-lead { font-size: 0.98rem; line-height: 1.55; }
      .hero-copy, .section-copy, .faq > p { font-size: 0.9rem; line-height: 1.55; }
      .hero-tags { gap: 8px; }
      .hero-tag { padding: 8px 10px; font-size: 0.76rem; }
      .section-title { font-size: 1.1rem; }
      .field-grid { grid-template-columns: 1fr; }
      .preview-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
      .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
      .preview-actions,
      .actions.preview-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
      .btn { width: 100%; min-height: 46px; font-size: 0.88rem; justify-content: center; padding: 0 12px; }
      .qr-image { width: min(64vw, 228px); max-width: 100%; height: auto; }
      .preview-stage { min-height: 196px; padding: 12px; }
      .preview-shell { gap: 14px; }
      .metric-card-content { padding: 14px; }
      .bulk-item { grid-template-columns: 1fr; }
      .sticky-cta { display: none; }
      .whatsapp-support-fab { left: 10px; bottom: max(10px, env(safe-area-inset-bottom, 10px)); padding: 12px; }
      .whatsapp-support-fab span { display: none; }
      .site-nav { padding: 12px 14px; }
      .site-nav .section-copy {
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 2px;
      }
      .site-nav .section-copy::-webkit-scrollbar { display: none; }
      .site-nav a {
        flex: 0 0 auto;
        min-height: 38px;
        padding: 7px 12px;
        font-size: 0.8rem;
        white-space: nowrap;
      }
      .tool-section-header,
      .advanced-panel summary,
      .advanced-panel > .section-copy,
      .advanced-grid {
        padding-left: 14px;
        padding-right: 14px;
      }
    }

    @media (max-width: 420px) {
      .preview-stats,
      .actions,
      .preview-actions,
      .actions.preview-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .actions .btn-primary:first-child {
        grid-column: 1 / -1;
      }
      .metric-card { min-height: 102px; }
      .metric-card-wide { min-height: auto; }
      .actions.preview-actions .btn-secondary,
      .actions.preview-actions .btn-ghost,
      .actions.preview-actions .btn-primary {
        min-height: 70px;
        padding: 10px 8px;
        font-size: 0.82rem;
      }
      .qr-frame {
        padding: 12px;
        border-radius: 20px;
        width: 100%;
        max-width: 100%;
      }
      .qr-image {
        width: min(56vw, 188px);
        max-width: 100%;
        height: auto;
      }
      .preview-stage,
      .metric-card,
      .btn,
      .site-nav a {
        min-width: 0;
      }
    }

    @media (max-width: 360px) {
      .page-shell {
        width: calc(100% - 8px);
        max-width: calc(100% - 8px);
        padding: 10px 0 24px;
        padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
      }
      .hero,
      .input-card,
      .preview-card,
      .bulk-card,
      .cta,
      .faq,
      .site-nav {
        padding: 14px 12px;
        border-radius: 16px;
      }
      .hero h1 {
        font-size: 1.42rem;
        line-height: 1.12;
      }
      .hero-lead,
      .hero-copy,
      .section-copy,
      .faq > p {
        font-size: 0.88rem;
        line-height: 1.5;
      }
      .hero-tags {
        gap: 6px;
      }
      .hero-tag,
      .eyebrow {
        padding: 7px 10px;
        font-size: 0.72rem;
      }
      .field-grid,
      .preview-stats,
      .actions {
        grid-template-columns: 1fr;
      }
      .preview-actions,
      .actions.preview-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }
      .actions .btn-primary:first-child {
        grid-column: auto;
      }
      .tool-section-header,
      .advanced-panel summary,
      .advanced-panel > .section-copy,
      .advanced-grid,
      .toggle-wrap {
        padding-left: 12px;
        padding-right: 12px;
      }
      input,
      select,
      textarea,
      .btn {
        min-height: 44px;
        font-size: 0.86rem;
      }
      .preview-shell {
        gap: 12px;
      }
      .preview-stage {
        min-height: 164px;
        padding: 10px;
      }
      .qr-frame {
        padding: 10px;
        border-radius: 18px;
      }
      .qr-image {
        width: min(100%, 168px);
      }
      .logo-overlay {
        width: 52px;
        height: 52px;
        border-radius: 14px;
      }
      .preview-name {
        font-size: 1.05rem;
      }
      .preview-note,
      .metric-label,
      .metric-value-content {
        font-size: 0.82rem;
      }
      .preview-powered {
        font-size: 0.82rem;
      }
      .actions.preview-actions .btn-secondary,
      .actions.preview-actions .btn-ghost,
      .actions.preview-actions .btn-primary {
        min-height: 64px;
        padding: 10px 8px;
        font-size: 0.78rem;
        border-radius: 16px;
      }
      .metric-card,
      .metric-card-content {
        min-height: auto;
        padding: 12px;
      }
      .metric-value {
        font-size: 0.92rem;
        line-height: 1.35;
      }
      .site-nav .section-copy {
        gap: 6px;
      }
      .site-nav a {
        min-height: 36px;
        padding: 6px 10px;
      }
    }
