
    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: 'DM Sans', sans-serif;
      background: #f5f6fa;
      color: #0f172a;
      -webkit-font-smoothing: antialiased;
      min-height: 100vh;
      overflow-x: hidden;
    }

    :root {
      --navy: #0f172a;
      --pink: #16a34a;
      --pink-light: #dcfce7;
      --blue: #2563eb;
      --blue-light: #eff6ff;
      --green: #16a34a;
      --green-light: #dcfce7;
      --yellow: #b45309;
      --yellow-light: #fef3c7;
      --red: #dc2626;
      --red-light: #fee2e2;
      --purple: #7c3aed;
      --purple-light: #ede9fe;
      --bg: #f5f6fa;
      --card: #ffffff;
      --border: rgba(0, 0, 0, 0.07);
      --muted: #64748b;
      --text-xs: 0.68rem;
      --text-sm: 0.82rem;
      --text-base: 0.92rem;
      --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
      --shadow-md: 0 4px 24px rgba(15, 23, 42, 0.07);
      --shadow-lg: 0 8px 40px rgba(15, 23, 42, 0.10);
      --radius: 14px;
      --radius-lg: 20px;
      --radius-xl: 24px;
    }

    /* ── TOP NAV ── */
    nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 200;
      background: var(--navy);
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 24px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .nav-left {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .nav-toggle {
      width: 34px;
      height: 34px;
      border-radius: 9px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: transparent;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background 0.2s;
      flex-shrink: 0;
    }

    .nav-toggle:hover {
      background: rgba(255, 255, 255, 0.08);
    }

    .nav-toggle svg {
      width: 16px;
      height: 16px;
      stroke: rgba(255, 255, 255, 0.8);
    }

    .nav-brand {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .nav-logo-box {
      width: 30px;
      height: 30px;
      border-radius: 8px;
      background: linear-gradient(135deg, #16a34a 0%, #059669 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.85rem;
      font-weight: 800;
      color: #fff;
      letter-spacing: -0.04em;
    }

    .nav-brand-name {
      font-size: 1rem;
      font-weight: 800;
      color: #fff;
      letter-spacing: -0.04em;
    }

    .nav-brand-sep {
      color: rgba(255, 255, 255, 0.25);
      margin: 0 2px;
    }

    .nav-brand-sub {
      font-size: 0.76rem;
      font-weight: 500;
      color: rgba(255, 255, 255, 0.45);
    }

    .nav-right {
      display: flex;
      align-items: center;
      gap: 18px;
    }

    .nav-progress-wrap {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .nav-step-txt {
      font-size: 0.72rem;
      color: rgba(255, 255, 255, 0.45);
      white-space: nowrap;
    }

    .nav-progress-bar {
      width: 140px;
      height: 3px;
      background: rgba(255, 255, 255, 0.12);
      border-radius: 3px;
      overflow: hidden;
    }

    .nav-progress-fill {
      height: 100%;
      background: linear-gradient(90deg, #16a34a, #059669);
      border-radius: 3px;
      transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .btn-save {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 7px 16px;
      border-radius: 50px;
      border: 1px solid rgba(255, 255, 255, 0.15);
      background: transparent;
      color: rgba(255, 255, 255, 0.65);
      font-size: 0.76rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      font-family: 'DM Sans', sans-serif;
    }

    .btn-save:hover {
      border-color: rgba(255, 255, 255, 0.4);
      color: #fff;
    }

    .btn-save svg {
      width: 13px;
      height: 13px;
      stroke: currentColor;
    }

    /* ── LAYOUT ── */
    .app-wrapper {
      display: flex;
      padding-top: 60px;
      min-height: 100vh;
    }

    /* ── SIDEBAR ── */
    .sidebar {
      position: fixed;
      left: 0;
      top: 60px;
      bottom: 0;
      width: 256px;
      background: var(--card);
      border-right: 1px solid var(--border);
      box-shadow: 2px 0 12px rgba(26, 15, 60, 0.04);
      overflow-y: auto;
      overflow-x: hidden;
      transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease;
      z-index: 100;
    }

    .sidebar.collapsed {
      width: 0;
      transform: translateX(-256px);
    }

    .sidebar-inner {
      padding: 20px 12px;
      min-width: 256px;
    }

    .sidebar-label {
      font-size: 0.62rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: rgba(100, 116, 139, 0.5);
      padding: 0 8px;
      margin-bottom: 10px;
    }

    .sidebar-step {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 10px;
      border-radius: 11px;
      width: 100%;
      border: 1.5px solid transparent;
      background: transparent;
      cursor: pointer;
      transition: all 0.2s;
      margin-bottom: 3px;
      font-family: 'DM Sans', sans-serif;
      text-align: left;
    }

    .sidebar-step:hover:not(.locked) {
      background: #f1f5f9;
      border-color: rgba(0, 0, 0, 0.06);
    }

    .sidebar-step.active {
      background: var(--pink-light);
      border-color: rgba(22, 163, 74, 0.25);
    }

    .sidebar-step.completed {
      background: #f0fdf4;
      border-color: rgba(22, 163, 74, 0.2);
    }

    .sidebar-step.locked {
      cursor: not-allowed;
      opacity: 0.4;
    }

    .step-icon-box {
      width: 34px;
      height: 34px;
      border-radius: 9px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #f0eff6;
      transition: background 0.2s;
    }

    .sidebar-step.active .step-icon-box {
      background: var(--pink);
    }

    .sidebar-step.completed .step-icon-box {
      background: var(--green-light);
    }

    .step-icon-box svg {
      width: 15px;
      height: 15px;
      stroke: var(--muted);
      stroke-width: 1.8;
    }

    .sidebar-step.active .step-icon-box svg {
      stroke: #fff;
    }

    .sidebar-step.completed .step-icon-box svg {
      stroke: var(--green);
    }

    .step-meta {
      flex: 1;
    }

    .step-name {
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--navy);
    }

    .sidebar-step.locked .step-name {
      color: var(--muted);
    }

    .step-num {
      font-size: 0.62rem;
      font-weight: 600;
      color: var(--muted);
      margin-top: 1px;
    }

    .step-check {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: var(--green);
      display: none;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .sidebar-step.completed .step-check {
      display: flex;
    }

    .step-check svg {
      width: 10px;
      height: 10px;
      stroke: #fff;
      stroke-width: 2.5;
    }

    /* ── MAIN CONTENT ── */
    .main-content {
      flex: 1;
      margin-left: 256px;
      transition: margin-left 0.3s ease;
      min-height: calc(100vh - 60px);
      padding: 28px 28px 60px;
    }

    .main-content.full {
      margin-left: 0;
    }

    .content-grid {
      max-width: 1300px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 320px;
      gap: 24px;
      align-items: start;
    }

    .workspace {
      min-width: 0;
    }

    /* ── STEP VIEWS ── */
    .step-view {
      display: none;
      animation: fadeSlide 0.3s ease;
    }

    .step-view.active {
      display: block;
    }

    @keyframes fadeSlide {
      from {
        opacity: 0;
        transform: translateX(8px);
      }

      to {
        opacity: 1;
        transform: none;
      }
    }

    /* ── CARD ── */
    .card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow-sm);
      padding: 24px;
      margin-bottom: 16px;
    }

    .card:last-child {
      margin-bottom: 0;
    }

    .card-header {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 20px;
    }

    .card-icon {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      background: var(--pink-light);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .card-icon svg {
      width: 17px;
      height: 17px;
      stroke: var(--pink);
      stroke-width: 1.8;
    }

    .card-icon.blue {
      background: var(--blue-light);
    }

    .card-icon.blue svg {
      stroke: var(--blue);
    }

    .card-icon.green {
      background: var(--green-light);
    }

    .card-icon.green svg {
      stroke: var(--green);
    }

    .card-icon.purple {
      background: var(--purple-light);
    }

    .card-icon.purple svg {
      stroke: var(--purple);
    }

    .card-title {
      font-size: 0.96rem;
      font-weight: 800;
      color: var(--navy);
    }

    .card-sub {
      font-size: 0.76rem;
      color: var(--muted);
      margin-top: 1px;
    }

    /* ── STEP HEADER ── */
    .step-header {
      margin-bottom: 22px;
    }

    .step-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: var(--pink-light);
      color: var(--pink);
      font-size: 0.65rem;
      font-weight: 800;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      padding: 4px 12px;
      border-radius: 50px;
      margin-bottom: 10px;
    }

    .step-title {
      font-size: 1.7rem;
      font-weight: 800;
      letter-spacing: -0.03em;
      color: var(--navy);
      line-height: 1.15;
    }

    .step-desc {
      font-size: 0.88rem;
      color: var(--muted);
      margin-top: 6px;
      line-height: 1.65;
    }

    /* ── INPUTS ── */
    .form-group {
      margin-bottom: 6px;
    }

    .form-label {
      display: block;
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--navy);
      margin-bottom: 8px;
    }

    .form-input {
      width: 100%;
      padding: 11px 14px;
      border-radius: 10px;
      border: 1.5px solid rgba(0, 0, 0, 0.1);
      background: #f1f5f9;
      font-size: 0.88rem;
      font-family: 'DM Sans', sans-serif;
      color: var(--navy);
      transition: all 0.2s;
      outline: none;
    }

    .form-input:focus {
      border-color: var(--pink);
      background: #fff;
      box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.08);
    }

    .form-input::placeholder {
      color: rgba(100, 116, 139, 0.4);
    }

    .input-with-icon {
      position: relative;
    }

    .input-icon {
      position: absolute;
      left: 13px;
      top: 50%;
      transform: translateY(-50%);
    }

    .input-icon svg {
      width: 15px;
      height: 15px;
      stroke: rgba(100, 116, 139, 0.5);
      stroke-width: 1.8;
    }

    .input-with-icon .form-input {
      padding-left: 38px;
    }

    /* ── OPTION GRIDS ── */
    .option-grid {
      display: grid;
      gap: 8px;
    }

    .option-grid.cols-2 {
      grid-template-columns: repeat(2, 1fr);
    }

    .option-grid.cols-3 {
      grid-template-columns: repeat(3, 1fr);
    }

    .option-grid.cols-4 {
      grid-template-columns: repeat(4, 1fr);
    }

    .option-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      padding: 14px 10px;
      background: #f1f5f9;
      border: 1.5px solid transparent;
      border-radius: var(--radius);
      cursor: pointer;
      transition: all 0.18s;
      text-align: center;
      user-select: none;
    }

    .option-card:hover {
      background: #fff;
      border-color: rgba(22, 163, 74, 0.25);
      box-shadow: 0 2px 10px rgba(26, 15, 60, 0.05);
    }

    .option-card.selected {
      background: var(--pink-light);
      border-color: var(--pink);
    }

    .option-card-icon {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      background: #fff;
      border: 1px solid rgba(0, 0, 0, 0.08);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s;
    }

    .option-card.selected .option-card-icon {
      background: var(--pink);
      border-color: var(--pink);
    }

    .option-card-icon svg {
      width: 17px;
      height: 17px;
      stroke: var(--muted);
      stroke-width: 1.8;
    }

    .option-card.selected .option-card-icon svg {
      stroke: #fff;
    }

    .option-card-name {
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--navy);
      line-height: 1.3;
    }

    .option-card.selected .option-card-name {
      color: var(--pink);
    }

    .option-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 16px;
      background: #f1f5f9;
      border: 1.5px solid transparent;
      border-radius: var(--radius);
      cursor: pointer;
      transition: all 0.18s;
      user-select: none;
    }

    .option-row:hover {
      background: #fff;
      border-color: rgba(22, 163, 74, 0.25);
    }

    .option-row.selected {
      background: var(--pink-light);
      border-color: var(--pink);
    }

    .option-row-left {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .option-row-icon {
      width: 34px;
      height: 34px;
      border-radius: 9px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .option-row-name {
      font-size: 0.86rem;
      font-weight: 700;
      color: var(--navy);
    }

    .option-row-desc {
      font-size: 0.72rem;
      color: var(--muted);
      margin-top: 2px;
    }

    .option-row-radio {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      border: 2px solid rgba(0, 0, 0, 0.15);
      flex-shrink: 0;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .option-row.selected .option-row-radio {
      background: var(--pink);
      border-color: var(--pink);
    }

    .option-row.selected .option-row-radio::after {
      content: '';
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #fff;
    }

    /* ── BUTTONS ── */
    .btn-primary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 13px 28px;
      border-radius: 50px;
      background: var(--pink);
      color: #fff;
      border: none;
      font-family: 'DM Sans', sans-serif;
      font-size: 0.9rem;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.22s;
      box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
    }

    .btn-primary:hover {
      background: #15803d;
      transform: translateY(-1px);
      box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
    }

    .btn-primary:disabled {
      background: #e5e7eb;
      color: #9ca3af;
      cursor: not-allowed;
      box-shadow: none;
      transform: none;
    }

    .btn-primary svg {
      width: 16px;
      height: 16px;
      stroke: #fff;
      stroke-width: 2;
      flex-shrink: 0;
    }

    .btn-primary.full {
      width: 100%;
    }

    .btn-secondary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 24px;
      border-radius: 50px;
      background: transparent;
      color: var(--navy);
      border: 1.5px solid rgba(0, 0, 0, 0.12);
      font-family: 'DM Sans', sans-serif;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
    }

    .btn-secondary:hover {
      border-color: var(--navy);
      background: #f1f5f9;
    }

    .btn-secondary svg {
      width: 15px;
      height: 15px;
      stroke: currentColor;
      stroke-width: 2;
    }

    .btn-navy {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 13px 28px;
      border-radius: 50px;
      background: var(--navy);
      color: #fff;
      border: none;
      font-family: 'DM Sans', sans-serif;
      font-size: 0.9rem;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.22s;
    }

    .btn-navy:hover {
      background: #1e293b;
      transform: translateY(-1px);
    }

    .btn-navy svg {
      width: 15px;
      height: 15px;
      stroke: #fff;
      stroke-width: 2;
    }

    .btn-outline-white {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 26px;
      border-radius: 50px;
      background: transparent;
      color: #fff;
      border: 1.5px solid rgba(255, 255, 255, 0.3);
      font-family: 'DM Sans', sans-serif;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
    }

    .btn-outline-white:hover {
      border-color: rgba(255, 255, 255, 0.7);
      background: rgba(255, 255, 255, 0.05);
    }

    .btn-row {
      display: flex;
      gap: 10px;
    }

    .btn-row.stacked {
      flex-direction: column;
    }

    /* ── PROGRESS BAR ── */
    .progress-bar-track {
      height: 5px;
      background: #eee;
      border-radius: 5px;
      overflow: hidden;
      margin-top: 8px;
    }

    .progress-bar-fill {
      height: 100%;
      border-radius: 5px;
      background: linear-gradient(90deg, #16a34a, #059669);
      transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* ── BADGE / TAG ── */
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3px 9px;
      border-radius: 50px;
      font-size: 0.62rem;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }

    .badge.green {
      background: var(--green-light);
      color: var(--green);
    }

    .badge.yellow {
      background: var(--yellow-light);
      color: var(--yellow);
    }

    .badge.red {
      background: var(--red-light);
      color: var(--red);
    }

    .badge.pink {
      background: var(--pink-light);
      color: var(--pink);
    }

    .badge.blue {
      background: var(--blue-light);
      color: var(--blue);
    }

    .badge.purple {
      background: var(--purple-light);
      color: var(--purple);
    }

    .badge.navy {
      background: rgba(26, 15, 60, 0.08);
      color: var(--navy);
    }

    /* ── RIGHT PANEL ── */
    .insights-panel {
      position: sticky;
      top: 84px;
    }

    .ip-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow-sm);
      overflow: hidden;
      margin-bottom: 14px;
    }

    .ip-card:last-child {
      margin-bottom: 0;
    }

    .ip-header {
      padding: 16px 18px 14px;
      border-bottom: 1px solid var(--border);
      background: #f9f8fc;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .ip-header-left {
      display: flex;
      align-items: center;
      gap: 9px;
    }

    .ip-hicon {
      width: 32px;
      height: 32px;
      border-radius: 9px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .ip-hicon svg {
      width: 15px;
      height: 15px;
      stroke-width: 1.8;
    }

    .ip-title {
      font-size: 0.84rem;
      font-weight: 800;
      color: var(--navy);
    }

    .ip-body {
      padding: 16px 18px;
    }

    .live-dot {
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: 0.62rem;
      font-weight: 700;
      color: var(--green);
    }

    .live-dot::before {
      content: '';
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--green);
      animation: blink 2s infinite;
    }

    @keyframes blink {

      0%,
      100% {
        opacity: 1
      }

      50% {
        opacity: 0.3
      }
    }

    /* Lead Score */
    .lead-score-num {
      font-size: 3rem;
      font-weight: 800;
      color: var(--navy);
      letter-spacing: -0.06em;
      line-height: 1;
      font-family: 'DM Mono', monospace;
    }

    .lead-score-denom {
      font-size: 0.85rem;
      color: var(--muted);
      font-weight: 600;
      margin-left: 2px;
    }

    .hot-lead-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #fff4e6;
      border: 1px solid #f59e0b40;
      color: #d97706;
      font-size: 0.7rem;
      font-weight: 800;
      padding: 5px 12px;
      border-radius: 50px;
      letter-spacing: 0.04em;
      margin-top: 8px;
    }

    .hot-lead-badge svg {
      width: 12px;
      height: 12px;
      stroke: #d97706;
    }

    /* Insight rows */
    .insight-row {
      display: flex;
      align-items: flex-start;
      gap: 9px;
      padding: 9px 0;
      border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }

    .insight-row:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }

    .ir-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
      margin-top: 4px;
    }

    .ir-dot.green {
      background: var(--green);
    }

    .ir-dot.blue {
      background: var(--blue);
    }

    .ir-dot.purple {
      background: var(--purple);
    }

    .ir-text {
      font-size: 0.78rem;
      color: var(--muted);
      line-height: 1.55;
    }

    /* Market rows */
    .market-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px 0;
      border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }

    .market-row:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }

    .mr-left {
      display: flex;
      align-items: center;
      gap: 9px;
    }

    .mr-rank {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--green-light), #ecfdf5);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.65rem;
      font-weight: 800;
      color: var(--pink);
      flex-shrink: 0;
    }

    .mr-name {
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--navy);
    }

    .mr-right {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .mr-bar-wrap {
      width: 52px;
      height: 3px;
      background: #eee;
      border-radius: 3px;
      overflow: hidden;
    }

    .mr-bar {
      height: 100%;
      border-radius: 3px;
      background: linear-gradient(90deg, #16a34a, #059669);
    }

    .mr-score {
      font-size: 0.72rem;
      font-weight: 800;
      color: var(--pink);
      width: 30px;
      text-align: right;
    }

    /* ── DEMAND SCANNER ── */
    .demand-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
    }

    .demand-country-card {
      border-radius: var(--radius);
      padding: 14px 12px;
      text-align: center;
      border: 1.5px solid transparent;
      transition: transform 0.2s;
    }

    .demand-country-card:hover {
      transform: translateY(-2px);
    }

    .demand-country-card.high {
      background: #f0fdf4;
      border-color: rgba(22, 163, 74, 0.2);
    }

    .demand-country-card.medium {
      background: #fefce8;
      border-color: rgba(234, 179, 8, 0.25);
    }

    .demand-country-card.low {
      background: #f5f6fa;
      border-color: rgba(0, 0, 0, 0.07);
    }

    .dc-flag {
      font-size: 0.82rem;
      margin-bottom: 5px;
      display: block;
    }

    .dc-country {
      font-size: 0.72rem;
      font-weight: 700;
      color: var(--navy);
      margin-bottom: 4px;
    }

    .dc-score {
      font-size: 1.15rem;
      font-weight: 800;
      color: var(--navy);
      font-family: 'DM Mono', monospace;
    }

    .dc-score.high {
      color: var(--green);
    }

    .dc-score.medium {
      color: #ca8a04;
    }

    .dc-label {
      font-size: 0.6rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .dc-label.high {
      color: var(--green);
    }

    .dc-label.medium {
      color: #ca8a04;
    }

    .dc-label.low {
      color: var(--muted);
    }

    /* Bar chart */
    .bar-chart {
      display: flex;
      align-items: flex-end;
      gap: 6px;
      height: 160px;
      padding: 0 4px;
    }

    .bc-bar-wrap {
      flex: 1;
      display: flex;
      flex-direction: column-reverse;
      align-items: center;
      gap: 6px;
      height: 100%;
    }

    .bc-bar {
      width: 100%;
      border-radius: 5px 5px 0 0;
      background: linear-gradient(180deg, #16a34a, #059669);
      transition: height 1s cubic-bezier(0.4, 0, 0.2, 1);
      min-height: 4px;
    }

    .bc-label {
      font-size: 0.6rem;
      font-weight: 700;
      color: var(--muted);
      text-align: center;
      word-break: break-all;
    }

    .bc-score {
      font-size: 0.65rem;
      font-weight: 800;
      color: var(--navy);
    }

    /* Top 3 highlights */
    .top-markets-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }

    .top-market-card {
      border: 1.5px solid var(--border);
      border-radius: var(--radius);
      padding: 16px 14px;
      position: relative;
      background: var(--card);
      transition: box-shadow 0.2s;
    }

    .top-market-card:hover {
      box-shadow: var(--shadow-md);
    }

    .tm-medal {
      position: absolute;
      top: 10px;
      right: 12px;
      font-size: 0.72rem;
      font-weight: 800;
    }

    .tm-flag {
      font-size: 0.82rem;
      margin-bottom: 6px;
    }

    .tm-country {
      font-size: 0.88rem;
      font-weight: 800;
      color: var(--navy);
      margin-bottom: 4px;
    }

    .tm-score {
      font-size: 1.8rem;
      font-weight: 800;
      color: var(--navy);
      font-family: 'DM Mono', monospace;
      line-height: 1;
    }

    .tm-score span {
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--muted);
    }

    /* Scanning animation */
    .scanning-state {
      text-align: center;
      padding: 48px 24px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
    }

    .scan-ring {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      border: 3px solid var(--pink-light);
      border-top-color: var(--pink);
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    /* World map SVG */
    .world-map-container {
      border-radius: var(--radius);
      overflow: hidden;
      background: #f0f4ff;
      padding: 16px;
    }

    .world-map-legend {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-top: 10px;
      flex-wrap: wrap;
    }

    .wm-legend-item {
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: 0.68rem;
      font-weight: 600;
      color: var(--muted);
    }

    .wm-dot {
      width: 10px;
      height: 10px;
      border-radius: 3px;
    }

    /* ── MARKETPLACE FIT ── */
    .mp-top-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-bottom: 0;
    }

    .mp-card {
      border: 1.5px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 18px 16px;
      position: relative;
      background: var(--card);
      transition: all 0.22s;
    }

    .mp-card:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
    }

    .mp-card.top-match {
      border-color: rgba(22, 163, 74, 0.3);
      background: #fafff6;
    }

    .mp-card.good-match {
      border-color: rgba(37, 99, 235, 0.2);
      background: #fafcff;
    }

    .mp-badge-top {
      position: absolute;
      top: 10px;
      right: 10px;
    }

    .mp-logo-box {
      width: 46px;
      height: 46px;
      border-radius: 12px;
      background: var(--green-light);
      border: 1px solid rgba(0, 0, 0, 0.07);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.82rem;
      font-weight: 800;
      color: var(--green);
      letter-spacing: -0.02em;
      margin-bottom: 10px;
    }

    .mp-name {
      font-size: 0.95rem;
      font-weight: 800;
      color: var(--navy);
      margin-bottom: 12px;
    }

    .mp-score-num {
      font-size: 1.9rem;
      font-weight: 800;
      color: var(--navy);
      font-family: 'DM Mono', monospace;
      line-height: 1;
    }

    .mp-score-pct {
      font-size: 0.8rem;
      color: var(--muted);
    }

    .mp-detail {
      font-size: 0.75rem;
      color: var(--muted);
      display: flex;
      align-items: center;
      gap: 5px;
      margin-top: 8px;
    }

    .mp-detail svg {
      width: 13px;
      height: 13px;
      flex-shrink: 0;
    }

    .mp-detail.ok svg {
      stroke: var(--green);
    }

    .mp-detail.ok {
      color: var(--green);
    }

    .mp-list-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 16px;
      background: #f1f5f9;
      border: 1.5px solid transparent;
      border-radius: var(--radius);
      margin-bottom: 6px;
      transition: all 0.2s;
    }

    .mp-list-row:hover {
      background: #fff;
      border-color: rgba(0, 0, 0, 0.08);
      box-shadow: var(--shadow-sm);
    }

    .mp-list-left {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .mp-list-logo {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      background: var(--green-light);
      border: 1px solid rgba(0, 0, 0, 0.07);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.78rem;
      font-weight: 800;
      color: var(--green);
    }

    .mp-list-name {
      font-size: 0.88rem;
      font-weight: 800;
      color: var(--navy);
    }

    .mp-list-details {
      font-size: 0.72rem;
      color: var(--muted);
      margin-top: 2px;
      display: flex;
      gap: 10px;
    }

    .mp-list-right {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .mp-list-score-wrap {
      text-align: right;
    }

    .mp-list-score {
      font-size: 1.2rem;
      font-weight: 800;
      color: var(--pink);
      font-family: 'DM Mono', monospace;
    }

    .mp-list-score-lbl {
      font-size: 0.6rem;
      color: var(--muted);
      text-transform: uppercase;
      font-weight: 700;
    }

    .mp-bar-wrap {
      width: 80px;
    }

    /* ── DUTY CALCULATOR ── */
    .country-select-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
    }

    .country-chip {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 3px;
      padding: 12px 6px;
      background: #f1f5f9;
      border: 1.5px solid transparent;
      border-radius: var(--radius);
      cursor: pointer;
      transition: all 0.18s;
      user-select: none;
      position: relative;
    }

    .country-chip:hover {
      background: #fff;
      border-color: rgba(22, 163, 74, 0.25);
    }

    .country-chip.selected {
      background: var(--pink-light);
      border-color: var(--pink);
    }

    .country-chip-flag {
      font-size: 0.82rem;
      font-weight: 800;
      color: var(--navy);
      background: rgba(0, 0, 0, 0.05);
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .country-chip-name {
      font-size: 0.65rem;
      font-weight: 700;
      color: var(--navy);
      text-align: center;
    }

    .country-chip-check {
      position: absolute;
      top: 5px;
      right: 5px;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: var(--pink);
      color: #fff;
      font-size: 0.55rem;
      display: none;
      align-items: center;
      justify-content: center;
    }

    .country-chip.selected .country-chip-check {
      display: flex;
    }

    /* Duty table */
    .duty-table {
      width: 100%;
      border-collapse: collapse;
    }

    .duty-table th {
      font-size: 0.68rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--muted);
      padding: 10px 14px;
      text-align: left;
      background: #f1f5f9;
      border-bottom: 1px solid var(--border);
    }

    .duty-table td {
      padding: 12px 14px;
      border-bottom: 1px solid rgba(0, 0, 0, 0.04);
      font-size: 0.84rem;
    }

    .duty-table tr:last-child td {
      border-bottom: none;
    }

    .duty-table tr:hover td {
      background: #fafafa;
    }

    .cost-chip {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px 10px;
      border-radius: 50px;
      font-size: 0.72rem;
      font-weight: 700;
    }

    .cost-low {
      background: var(--green-light);
      color: var(--green);
    }

    .cost-medium {
      background: var(--yellow-light);
      color: var(--yellow);
    }

    .cost-high {
      background: var(--red-light);
      color: var(--red);
    }

    .hs-suggestions {
      margin-top: 8px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      display: none;
    }

    .hs-suggestions.visible {
      display: block;
    }

    .hs-suggestion {
      padding: 10px 14px;
      cursor: pointer;
      border-bottom: 1px solid rgba(0, 0, 0, 0.05);
      transition: background 0.15s;
    }

    .hs-suggestion:last-child {
      border-bottom: none;
    }

    .hs-suggestion:hover {
      background: var(--pink-light);
    }

    .hs-code {
      font-size: 0.78rem;
      font-weight: 800;
      color: var(--pink);
      margin-bottom: 1px;
    }

    .hs-desc {
      font-size: 0.72rem;
      color: var(--muted);
    }

    /* ── PROFITABILITY ── */
    .profit-summary {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-bottom: 0;
    }

    .ps-card {
      border: 1.5px solid var(--border);
      border-radius: var(--radius);
      padding: 16px 14px;
    }

    .ps-label {
      font-size: 0.68rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--muted);
      margin-bottom: 5px;
    }

    .ps-value {
      font-size: 1.6rem;
      font-weight: 800;
      font-family: 'DM Mono', monospace;
      color: var(--navy);
    }

    .ps-value.green {
      color: var(--green);
    }

    .ps-value.red {
      color: var(--red);
    }

    .ps-sub {
      font-size: 0.72rem;
      color: var(--muted);
      margin-top: 3px;
    }

    .breakdown-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 0;
      border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }

    .breakdown-row:last-child {
      border-bottom: none;
    }

    .br-left {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .br-dot {
      width: 10px;
      height: 10px;
      border-radius: 3px;
      flex-shrink: 0;
    }

    .br-label {
      font-size: 0.84rem;
      font-weight: 600;
      color: var(--navy);
    }

    .br-right {
      text-align: right;
    }

    .br-amount {
      font-size: 0.88rem;
      font-weight: 800;
      font-family: 'DM Mono', monospace;
      color: var(--navy);
    }

    .br-pct {
      font-size: 0.7rem;
      color: var(--muted);
    }

    /* Profit chart */
    .profit-chart-wrap {
      padding: 16px 0;
    }

    .chart-bar-stack {
      display: flex;
      height: 42px;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: var(--shadow-sm);
    }

    .cbs {
      height: 100%;
      transition: width 0.8s ease;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .chart-bar-labels {
      display: flex;
      gap: 14px;
      margin-top: 10px;
      flex-wrap: wrap;
    }

    .cbl {
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: 0.68rem;
      font-weight: 600;
      color: var(--muted);
    }

    .cbl-dot {
      width: 8px;
      height: 8px;
      border-radius: 2px;
      flex-shrink: 0;
    }

    /* ── FINAL RECOMMENDATION ── */
    .rec-header-icon {
      width: 56px;
      height: 56px;
      border-radius: 16px;
      background: linear-gradient(135deg, #16a34a, #059669);
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 16px;
      box-shadow: 0 8px 24px rgba(22, 163, 74, 0.3);
    }

    .rec-header-icon svg {
      width: 26px;
      height: 26px;
      stroke: #fff;
      stroke-width: 1.8;
    }

    .kpi-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }

    .kpi-card {
      border: 1.5px solid var(--border);
      border-radius: var(--radius);
      padding: 16px 14px;
    }

    .kpi-label {
      font-size: 0.68rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--muted);
      margin-bottom: 5px;
    }

    .kpi-val {
      font-size: 1.4rem;
      font-weight: 800;
      color: var(--navy);
      font-family: 'DM Mono', monospace;
      line-height: 1.1;
    }

    .kpi-val.green {
      color: var(--green);
    }

    .kpi-val.pink {
      color: var(--pink);
    }

    .kpi-val.orange {
      color: #d97706;
    }

    .kpi-period {
      font-size: 0.72rem;
      color: var(--muted);
      margin-top: 3px;
    }

    .rec-markets-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }

    .rec-market-card {
      border: 1.5px solid var(--border);
      border-radius: var(--radius);
      padding: 14px;
      background: var(--card);
      transition: all 0.2s;
    }

    .rec-market-card:hover {
      box-shadow: var(--shadow-md);
      transform: translateY(-2px);
    }

    .rmc-flag {
      font-size: 0.82rem;
      font-weight: 800;
      margin-bottom: 6px;
    }

    .rmc-name {
      font-size: 0.88rem;
      font-weight: 800;
      color: var(--navy);
    }

    .rmc-score {
      font-size: 1.5rem;
      font-weight: 800;
      color: var(--pink);
      font-family: 'DM Mono', monospace;
    }

    .rmc-score span {
      font-size: 0.75rem;
      color: var(--muted);
    }

    .insights-list {
      list-style: none;
    }

    .insights-list li {
      display: flex;
      align-items: flex-start;
      gap: 9px;
      padding: 9px 0;
      border-bottom: 1px solid rgba(0, 0, 0, 0.04);
      font-size: 0.84rem;
      color: var(--muted);
      line-height: 1.55;
    }

    .insights-list li:last-child {
      border-bottom: none;
    }

    .il-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--pink);
      flex-shrink: 0;
      margin-top: 5px;
    }

    /* CTA Band */
    .cta-band {
      background: var(--navy);
      border-radius: var(--radius-xl);
      padding: 40px 36px;
      text-align: center;
      position: relative;
      overflow: hidden;
      margin-top: 16px;
    }

    .cta-band::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse at 50% 110%, rgba(22, 163, 74, 0.2) 0%, transparent 60%);
    }

    .cta-band>* {
      position: relative;
      z-index: 2;
    }

    .cta-band h2 {
      font-size: 1.7rem;
      font-weight: 800;
      color: #fff;
      letter-spacing: -0.03em;
      margin-bottom: 8px;
    }

    .cta-band p {
      font-size: 0.88rem;
      color: rgba(255, 255, 255, 0.55);
      max-width: 440px;
      margin: 0 auto 24px;
      line-height: 1.65;
    }

    .cta-buttons {
      display: flex;
      gap: 10px;
      justify-content: center;
      flex-wrap: wrap;
    }

    /* ── LEAD MODAL ── */
    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(10, 5, 30, 0.6);
      backdrop-filter: blur(4px);
      z-index: 500;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .modal-backdrop.open {
      display: flex;
      animation: fadeIn 0.25s ease;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

    .modal-box {
      background: #fff;
      border-radius: var(--radius-xl);
      box-shadow: 0 24px 60px rgba(26, 15, 60, 0.2);
      width: 100%;
      max-width: 480px;
      overflow: hidden;
      position: relative;
      animation: scaleUp 0.25s ease;
    }

    @keyframes scaleUp {
      from {
        opacity: 0;
        transform: scale(0.94);
      }

      to {
        opacity: 1;
        transform: none;
      }
    }

    .modal-top-bar {
      height: 4px;
      background: linear-gradient(90deg, #16a34a, #059669);
    }

    .modal-body {
      padding: 28px 28px 32px;
    }

    .modal-header {
      margin-bottom: 22px;
    }

    .modal-icon {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--green-light), #ecfdf5);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 12px;
    }

    .modal-icon svg {
      width: 20px;
      height: 20px;
      stroke: var(--pink);
      stroke-width: 1.8;
    }

    .modal-title {
      font-size: 1.35rem;
      font-weight: 800;
      color: var(--navy);
      letter-spacing: -0.03em;
      margin-bottom: 4px;
    }

    .modal-sub {
      font-size: 0.82rem;
      color: var(--muted);
      line-height: 1.55;
    }

    .modal-form .form-group {
      margin-bottom: 12px;
    }

    .modal-close {
      position: absolute;
      top: 16px;
      right: 16px;
      width: 30px;
      height: 30px;
      border-radius: 8px;
      border: 1px solid var(--border);
      background: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background 0.15s;
    }

    .modal-close:hover {
      background: #f1f5f9;
    }

    .modal-close svg {
      width: 14px;
      height: 14px;
      stroke: var(--muted);
      stroke-width: 2;
    }

    .modal-privacy {
      text-align: center;
      font-size: 0.7rem;
      color: rgba(100, 116, 139, 0.5);
      margin-top: 12px;
    }

    /* ── INFO CALLOUT ── */
    .callout {
      border-radius: var(--radius);
      padding: 14px 16px;
      display: flex;
      align-items: flex-start;
      gap: 10px;
    }

    .callout.blue {
      background: var(--blue-light);
      border-left: 3px solid var(--blue);
    }

    .callout.green {
      background: var(--green-light);
      border-left: 3px solid var(--green);
    }

    .callout svg {
      width: 15px;
      height: 15px;
      flex-shrink: 0;
      margin-top: 2px;
    }

    .callout.blue svg {
      stroke: var(--blue);
    }

    .callout.green svg {
      stroke: var(--green);
    }

    .callout p {
      font-size: 0.8rem;
      color: var(--muted);
      line-height: 1.6;
    }

    .callout strong {
      color: var(--navy);
    }

    /* ── FOOTER NAV (STEP ACTIONS) ── */
    .step-footer {
      display: flex;
      gap: 10px;
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px solid var(--border);
    }

    /* Section divider */
    .section-sep {
      border: none;
      border-top: 1px solid var(--border);
      margin: 16px 0;
    }

    /* Loading overlay */
    .loading-overlay {
      position: fixed;
      inset: 0;
      background: rgba(245, 246, 250, 0.9);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 400;
      flex-direction: column;
      gap: 14px;
    }

    .loading-overlay.visible {
      display: flex;
    }

    .lo-ring {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      border: 3px solid var(--pink-light);
      border-top-color: var(--pink);
      animation: spin 0.9s linear infinite;
    }

    .lo-text {
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--muted);
    }

    /* Responsive */
    @media (max-width: 1100px) {
      .content-grid {
        grid-template-columns: 1fr;
      }

      .insights-panel {
        position: static;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
      }

      .ip-card {
        margin-bottom: 0;
      }
    }

    @media (max-width: 900px) {
      .sidebar {
        width: 0;
        transform: translateX(-256px);
      }

      .sidebar.open {
        width: 256px;
        transform: none;
      }

      .main-content {
        margin-left: 0;
      }

      .demand-grid {
        grid-template-columns: repeat(3, 1fr);
      }

      .mp-top-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .rec-markets-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .top-markets-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 600px) {
      .demand-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .country-select-grid {
        grid-template-columns: repeat(3, 1fr);
      }

      .option-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
      }

      .cta-buttons {
        flex-direction: column;
        align-items: center;
      }

      .nav-progress-wrap {
        display: none;
      }

      .profit-summary {
        grid-template-columns: 1fr;
      }
    }
  
        /* ── RESPONSIVE CONTAINER SPACING — matches index.html system ── */
        @media (max-width: 1024px) {
          .main-content  { padding: 24px 24px 52px; }
          .app-wrapper   { padding-top: 52px; }
          .content-grid  { padding: 0 24px; }
        }
        @media (max-width: 768px) {
          .main-content  { padding: 20px 20px 44px; }
          .app-wrapper   { padding-top: 44px; }
          .content-grid  { padding: 0 20px; }
          .sidebar-inner { padding: 20px; }
        }
        @media (max-width: 480px) {
          .main-content  { padding: 16px 16px 36px; }
          .app-wrapper   { padding-top: 36px; }
          .content-grid  { padding: 0 16px; }
          .sidebar-inner { padding: 16px; }
        }
    