    :root {
      --ink: #0f172a;
      --muted: #5b6475;
      --soft: #e7ecf5;
      --accent: #ff6f3c;
      --accent-2: #0fb5a9;
      --card: #ffffff;
      --shadow: 0 25px 50px -24px rgba(15, 23, 42, 0.28);
      --radius: 18px;
      font-family: "Poppins", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
      color: var(--ink);
      background: radial-gradient(120% 120% at 18% 12%, #fef3eb 0, #f8f7f2 42%, #eef2f7 100%);
    }

    * { box-sizing: border-box; }
    body {
      margin: 0;
      min-height: 100vh;
      line-height: 1.5;
      background: transparent;
    }
    .page {
      max-width: 1100px;
      margin: 0 auto;
      padding: 28px 18px 72px;
    }
    .hero {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 16px;
      align-items: center;
      padding: 22px 22px 12px;
      background: linear-gradient(135deg, rgba(15,181,169,0.08), rgba(255,111,60,0.12));
      border: 1px solid #d9e0eb;
      border-radius: calc(var(--radius) + 6px);
      box-shadow: var(--shadow);
    }
    .title {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .badge {
      height: 42px;
      width: 42px;
      border-radius: 12px;
      background: linear-gradient(135deg, #0fb5a9, #ff6f3c);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-weight: 700;
      letter-spacing: -0.01em;
    }
    h1 {
      margin: 0;
      font-size: 22px;
      letter-spacing: -0.02em;
    }
    .hero p {
      margin: 4px 0 12px;
      color: var(--muted);
      max-width: 680px;
    }
    .chips {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    .chip {
      padding: 6px 10px;
      border-radius: 12px;
      border: 1px solid #dce2eb;
      background: rgba(255,255,255,0.8);
      font-size: 12px;
      color: #334155;
    }
    .hero-actions {
      margin-top: 10px;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
    }
    .primary-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 8px 14px;
      border-radius: 999px;
      border: none;
      background: linear-gradient(135deg, #0fb5a9, #ff6f3c);
      color: #ffffff;
      font-weight: 700;
      font-size: 13px;
      text-decoration: none;
      box-shadow: 0 12px 30px -10px rgba(15,23,42,0.45);
      cursor: pointer;
      transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.15s ease;
    }
    .primary-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 16px 40px -16px rgba(15,23,42,0.55);
      opacity: 0.95;
    }
    .hero-note {
      font-size: 12px;
      color: var(--muted);
    }
    .hero-numbers {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 8px;
      width: 100%;
      margin-top: 6px;
    }
    .howto {
      margin-top: 18px;
      padding: 14px 16px;
      border-radius: 16px;
      border: 1px dashed #d0d7e5;
      background: #ffffffcc;
      box-shadow: 0 18px 40px -28px rgba(15,23,42,0.35);
    }
    .howto h3 {
      margin: 0 0 8px;
      font-size: 14px;
      letter-spacing: -0.01em;
    }
    .howto-steps {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 10px;
      margin-top: 4px;
    }
    .howto-step {
      font-size: 12px;
      color: #475569;
      display: flex;
      gap: 8px;
      align-items: flex-start;
    }
    .howto-step strong {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 22px;
      height: 22px;
      border-radius: 999px;
      background: rgba(15,181,169,0.12);
      color: #0b8c83;
      font-size: 11px;
      margin-top: 1px;
    }
    .pill {
      background: #fff;
      border-radius: 14px;
      padding: 10px 12px;
      border: 1px solid #dce2eb;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
    }
    .pill-label {
      color: var(--muted);
      font-size: 12px;
    }
    .pill-value {
      font-weight: 700;
      font-size: 16px;
    }
    .pill-note {
      font-size: 11px;
      color: var(--muted);
      margin-top: 2px;
    }
    .layout {
      display: grid;
      grid-template-columns: 380px 1fr;
      gap: 18px;
      margin-top: 22px;
    }
    .panel {
      background: var(--card);
      border-radius: var(--radius);
      padding: 18px;
      border: 1px solid #dce2eb;
      box-shadow: var(--shadow);
    }
    .panel h2 {
      margin: 0 0 10px;
      font-size: 16px;
      letter-spacing: -0.01em;
    }
    .helper {
      color: var(--muted);
      font-size: 13px;
      margin-bottom: 10px;
    }
    .form-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
    }
    .field {
      display: flex;
      flex-direction: column;
      gap: 6px;
      padding: 10px 12px;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      background: #f9fbff;
      transition: all 0.2s ease;
    }
    .field label {
      font-weight: 600;
      font-size: 13px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .field small {
      color: var(--muted);
      font-size: 12px;
    }
    .field input {
      border: none;
      background: #fff;
      padding: 10px 12px;
      border-radius: 10px;
      font-size: 15px;
      box-shadow: inset 0 1px 0 rgba(0,0,0,0.03);
    }
    .field input:focus {
      outline: 2px solid rgba(15,181,169,0.24);
    }
    .field input.touched {
      background: rgba(15,181,169,0.06);
      border-color: rgba(15,181,169,0.2);
    }
    .field.readonly input {
      background: #f1f5f9;
      color: #475569;
    }
    .field-total {
      font-weight: 700;
      font-size: 16px;
      color: #0f172a;
      padding: 4px 0 2px;
    }
    .tabs {
      display: inline-flex;
      gap: 6px;
      border: 1px solid #dce2eb;
      border-radius: 12px;
      padding: 4px;
      background: #fff;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
      margin-bottom: 12px;
    }
    .tab-btn {
      border: 1px solid #d0d7e5;
      background: #f1f5f9;
      padding: 8px 14px;
      border-radius: 10px;
      font-weight: 700;
      font-size: 13px;
      color: #475569;
      cursor: pointer;
      transition: all 0.15s ease;
    }
    .tab-btn:hover {
      background: #e2e8f0;
      border-color: #cbd5e1;
    }
    .tab-btn[aria-selected="true"] {
      background: linear-gradient(135deg, #0fb5a9, rgba(255,111,60,0.3));
      color: #0f172a;
      border: 1px solid #0fb5a9;
      box-shadow: 0 1px 0 rgba(255,255,255,0.7), 0 0 0 2px rgba(255,111,60,0.35);
      transform: translateY(-1px);
    }
    .tab-panel {
      display: none;
    }
    .tab-panel.active {
      display: block;
    }
    .menu-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 12px;
    }
    .menu-card {
      border: 1px solid #e2e8f0;
      border-radius: 14px;
      padding: 12px;
      background: #fff;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), var(--shadow);
      display: grid;
      gap: 8px;
    }
    .menu-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-weight: 700;
      color: #0f172a;
      font-size: 14px;
      letter-spacing: -0.01em;
    }
    .menu-tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 10px;
      border-radius: 10px;
      background: rgba(15,181,169,0.08);
      color: #0b8c83;
      font-size: 12px;
      font-weight: 700;
      border: 1px solid rgba(15,181,169,0.2);
    }
    .menu-card .field {
      background: #f8fafc;
      border-color: #e2e8f0;
    }
    .menu-card .field input {
      background: #fff;
    }
    .menu-metric {
      font-size: 13px;
      font-weight: 700;
      color: #0b8c83;
      padding: 6px 8px;
      border-radius: 10px;
      background: rgba(15,181,169,0.08);
      border: 1px solid rgba(15,181,169,0.2);
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .name-input {
      border: 1px solid #dce2eb;
      border-radius: 10px;
      padding: 8px 10px;
      background: #f8fafc;
      font-size: 13px;
      width: 130px;
      text-align: right;
      color: #0f172a;
    }
    .name-input:focus {
      outline: 2px solid rgba(15,181,169,0.24);
      background: #fff;
    }
    .result-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 12px;
      margin-bottom: 12px;
    }
    .stat {
      padding: 12px;
      border-radius: 12px;
      border: 1px solid #e1e7f0;
      background: linear-gradient(180deg, rgba(15,181,169,0.04), rgba(255,255,255,0.9));
    }
    .stat .label {
      color: var(--muted);
      font-size: 12px;
    }
    .stat .value {
      font-weight: 700;
      font-size: 18px;
      margin-top: 4px;
    }
    .stat .note {
      font-size: 12px;
      color: #334155;
      margin-top: 2px;
    }
    .info-help {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 16px;
      height: 16px;
      border-radius: 999px;
      border: 1px solid rgba(148,163,184,0.8);
      font-size: 10px;
      font-weight: 700;
      margin-left: 6px;
      color: #64748b;
      background: rgba(248,250,252,0.9);
      cursor: help;
    }
    .info-help::after {
      content: attr(data-help);
      position: absolute;
      left: 50%;
      top: 130%;
      transform: translateX(-50%);
      min-width: 180px;
      max-width: 260px;
      padding: 6px 8px;
      border-radius: 8px;
      background: #0f172a;
      color: #e5e7eb;
      font-size: 11px;
      line-height: 1.4;
      box-shadow: 0 12px 30px rgba(15,23,42,0.55);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      z-index: 150;
      transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    }
    .info-help:hover::after,
    .info-help:focus-visible::after {
      opacity: 1;
      visibility: visible;
      transform: translateX(-50%) translateY(0);
    }
    .quick-win {
      padding: 14px 16px;
      border-radius: 14px;
      background: linear-gradient(135deg, rgba(15,181,169,0.12), rgba(255,111,60,0.08));
      border: 1px solid rgba(15,181,169,0.2);
      margin-bottom: 16px;
      font-size: 13px;
      font-weight: 600;
      color: #0b8c83;
    }
    .quick-win strong {
      color: #0f172a;
    }
    .results-actions {
      display: none;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      margin: 8px 0 10px;
    }
    .results-actions .primary-btn {
      padding: 6px 12px;
      font-size: 12px;
      box-shadow: 0 10px 24px -12px rgba(15,23,42,0.5);
    }
    .results-actions button.secondary-btn {
      border-radius: 999px;
      border: 1px solid #d0d7e5;
      background: #f8fafc;
      color: #334155;
      font-size: 12px;
      padding: 6px 10px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .results-actions button.secondary-btn:hover {
      background: #e2e8f0;
    }
    .chart-wrap {
      margin-top: 12px;
      background: #0f172a;
      border-radius: 16px;
      padding: 12px;
      position: relative;
      overflow: hidden;
      border: 1px solid #111827;
    }
    .chart-wrap header {
      color: #e5e7eb;
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
      font-size: 13px;
    }
    canvas {
      width: 100%;
      height: 260px;
      border-radius: 12px;
      background: radial-gradient(140% 140% at 10% 10%, rgba(255,111,60,0.12), rgba(15,181,169,0.08), #0f172a);
    }
    .chart-stage {
      position: relative;
      height: 260px;
      border-radius: 12px;
      overflow: hidden;
    }
    .chart-overlay {
      position: absolute;
      inset: 0;
      pointer-events: none;
    }
    .hover-line {
      position: absolute;
      top: 0;
      bottom: 0;
      width: 2px;
      background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.55));
      opacity: 0;
      transform: translateX(-9999px);
      transition: opacity 0.15s ease;
    }
    .hover-dot {
      position: absolute;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: #0fb5a9;
      border: 2px solid #0b1221;
      box-shadow: 0 0 0 6px rgba(15,181,169,0.18);
      opacity: 0;
      transform: translate(-9999px, -9999px);
      transition: opacity 0.15s ease;
    }
    .hover-card {
      position: absolute;
      min-width: 170px;
      background: #0b1221;
      color: #e2e8f0;
      border: 1px solid #1f2937;
      border-radius: 12px;
      padding: 10px 12px;
      box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
      opacity: 0;
      transform: translate(-9999px, -9999px);
      transition: opacity 0.12s ease;
      pointer-events: none;
    }
    .hover-card .title {
      font-size: 12px;
      color: #cbd5e1;
      margin: 0 0 4px;
    }
    .hover-card .value {
      font-weight: 700;
      font-size: 16px;
      margin: 0;
    }
    .hover-card .note {
      font-size: 12px;
      color: #94a3b8;
      margin: 4px 0 0;
    }
    .legend {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      color: #cbd5e1;
      font-size: 12px;
      margin-top: 8px;
    }
    .legend span {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .legend i {
      width: 26px;
      height: 6px;
      border-radius: 10px;
      display: inline-block;
    }
    .callout {
      margin-top: 14px;
      padding: 12px 14px;
      border-radius: 12px;
      border: 1px dashed #d0d7e5;
      background: #fff9f5;
      color: #9a3412;
      font-size: 13px;
    }
    .callout strong { color: #7c2d12; }
    .audience {
      margin-top: 12px;
      padding: 12px 14px;
      border-radius: 12px;
      border: 1px solid #e2e8f0;
      background: #f8fafc;
      font-size: 12px;
      color: #334155;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 8px 18px;
    }
    .audience h3 {
      margin: 0 0 4px;
      font-size: 13px;
      font-weight: 700;
      color: #0f172a;
    }
    .audience ul {
      margin: 0;
      padding-left: 16px;
      list-style: disc;
    }
    .audience li {
      margin: 0 0 3px;
    }
    .toast {
      position: fixed;
      bottom: 20px;
      right: 20px;
      padding: 12px 16px;
      border-radius: 12px;
      color: #fff;
      font-weight: 600;
      font-size: 13px;
      box-shadow: 0 12px 30px rgba(0,0,0,0.25);
      opacity: 0;
      transform: translateY(20px);
      transition: all 0.3s ease;
      pointer-events: none;
      z-index: 100;
    }
    .toast.show {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }
    .toast.success {
      background: linear-gradient(135deg, #0fb5a9, #0b8c83);
    }
    /* Cookie banner styles */
    .cookie-banner {
      position: fixed;
      left: 50%;
      bottom: 16px;
      transform: translateX(-50%);
      width: min(520px, 100% - 32px);
      background: #0b1221;
      color: #e5e7eb;
      border-radius: 16px;
      padding: 14px 16px 12px;
      box-shadow: 0 24px 60px rgba(0,0,0,0.55);
      border: 1px solid #1f2937;
      font-size: 13px;
      z-index: 200;
      display: none;
    }
    .cookie-banner.visible {
      display: block;
    }
    .cookie-banner p {
      margin: 0 0 8px;
      color: #e5e7eb;
      font-size: 13px;
    }
    .cookie-banner strong {
      color: #f97316;
    }
    .cookie-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: flex-end;
      margin-top: 6px;
    }
    .cookie-buttons button {
      border-radius: 999px;
      border: none;
      cursor: pointer;
      font-size: 13px;
      font-weight: 600;
      padding: 7px 12px;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }
    .cookie-buttons .cookie-accept {
      background: linear-gradient(135deg, #0fb5a9, #22c55e);
      color: #0b1221;
      box-shadow: 0 10px 25px rgba(34,197,94,0.35);
    }
    .cookie-buttons .cookie-refuse {
      background: #020617;
      color: #e5e7eb;
      border: 1px solid #334155;
    }
    .cookie-buttons .cookie-customize {
      background: transparent;
      color: #e5e7eb;
      border: 1px solid #4b5563;
    }
    .cookie-preferences {
      margin-top: 8px;
      padding-top: 8px;
      border-top: 1px solid #1f2937;
      display: none;
    }
    .cookie-preferences.visible {
      display: block;
    }
    .cookie-preferences label {
      display: flex;
      align-items: flex-start;
      gap: 6px;
      font-size: 12px;
      color: #cbd5e1;
      cursor: pointer;
    }
    .cookie-preferences input[type="checkbox"] {
      margin-top: 2px;
      cursor: pointer;
    }
    .cookie-preferences small {
      display: block;
      font-size: 11px;
      color: #94a3b8;
    }
    @media (max-width: 768px) {
      .cookie-banner {
        left: 50%;
        transform: translateX(-50%);
        bottom: 12px;
      }
    }
    .footer {
      margin: 32px auto 0;
      max-width: 1100px;
      padding: 12px 18px 32px;
      color: #6b7280;
      font-size: 13px;
      text-align: center;
    }
    @media (max-width: 900px) {
      .layout {
        grid-template-columns: 1fr;
      }
      .hero {
        grid-template-columns: 1fr;
      }
    }
    .footer {
      margin-top: 32px;
      padding-top: 18px;
      border-top: 1px solid #dce2eb;
      text-align: center;
      font-size: 13px;
      color: var(--muted);
    }
    .footer a {
      color: #0fb5a9;
      text-decoration: none;
      transition: color 0.2s ease;
    }
    .footer a:hover {
      color: #0b8c83;
      text-decoration: underline;
    }
    @media (max-width: 768px) {
      .toast {
        bottom: 16px;
        right: 16px;
        left: 16px;
      }
    }
  
