    :root {
      /* Paleta oficial ClicheCheck */
      --bg: #020617;
      --surface: #0f172a;
      --surface2: #1e293b;
      --border: rgba(255,255,255,.08);
      --accent: #1A5CA4;
      --accent2: #5b9bd5;
      --brand-red: #DD1A22;
      --brand-purple: #6d4a9e;
      --brand-gradient: linear-gradient(90deg, #1A5CA4 0%, #6d4a9e 50%, #DD1A22 100%);
      --green: #4ade80;
      --red: #f87171;
      --yellow: #fbbf24;
      --text: #F8FAFC;
      --muted: #94A3B8;
      --radius: 12px;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
      background: var(--bg); color: var(--text); min-height: 100vh;
      position: relative;
      -webkit-text-size-adjust: 100%;
      -webkit-tap-highlight-color: transparent;
    }
    #particles-js {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
    }
    header, main, footer { position: relative; z-index: 1; }

    header {
      background: var(--surface); border-bottom: 1px solid var(--border);
      padding: 20px 24px; display: flex; align-items: center; gap: 14px;
    }
    .header-divider {
      width: 1px; height: 32px; background: var(--border); flex-shrink: 0;
    }
    header h1 { font-size: 1.25rem; font-weight: 700; }
    header p  { font-size: .78rem; color: var(--muted); margin-top: 2px; }

    main { max-width: 860px; margin: 0 auto; padding: 36px 20px 110px; }

    /* ── Search ── */
    .search-wrap {
      background: var(--surface); border: 1px solid var(--border);
      border-top: 2px solid var(--brand-red);
      border-radius: var(--radius); padding: 26px; margin-bottom: 28px;
    }
    .search-wrap label {
      display: block; font-size: .78rem; font-weight: 700;
      color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px;
    }
    .input-row { display: flex; gap: 10px; }
    .input-row input {
      flex: 1; background: var(--surface2); border: 1.5px solid var(--border);
      border-radius: 8px; padding: 13px 16px; color: var(--text);
      font-size: 1rem; letter-spacing: .04em; outline: none; transition: border-color .2s;
    }
    .input-row input:focus { border-color: var(--accent); }
    .input-row input::placeholder { color: var(--muted); }
    .btn {
      background: var(--brand-gradient);
      color: #fff; border: none; border-radius: 8px; padding: 13px 26px;
      font-size: .95rem; font-weight: 700; cursor: pointer;
      transition: opacity .2s, transform .1s; white-space: nowrap;
    }
    .btn:hover { opacity: .85; }
    .btn:active { transform: scale(.97); }
    .btn:disabled { opacity: .4; cursor: not-allowed; }
    .hint { font-size: .76rem; color: var(--muted); margin-top: 9px; }

    /* ── Status ── */
    #status { text-align: center; padding: 18px; border-radius: var(--radius); font-size: .9rem; }
    #status.loading { display: block; background: var(--surface2); color: var(--accent2); }
    #status.error   { display: block; background: #2d1515; border: 1px solid #5c2020; color: var(--red); }


    /* ── Company header ── */
    .company-header {
      display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 22px;
    }
    .company-name { font-size: 1.35rem; font-weight: 700; flex: 1; min-width: 0; word-break: break-word; }
    .status-badge {
      font-size: .75rem; font-weight: 700; padding: 5px 14px; border-radius: 99px;
      text-transform: uppercase; letter-spacing: .05em; flex-shrink: 0;
    }
    .status-badge.ativa { background: #0f2e1e; color: var(--green); border: 1px solid #166534; }
    .status-badge.outra { background: #2d1515; color: var(--red);   border: 1px solid #5c2020; }

    /* ── Client Card (campos do sistema) ── */
    .client-card {
      background: var(--surface); border: 1.5px solid var(--accent);
      border-radius: var(--radius); margin-bottom: 20px; overflow: hidden;
      box-shadow: 0 0 32px rgba(26,92,164,.15);
    }
    .client-card-header {
      background: linear-gradient(90deg, #0d2847, #1a1a24);
      border-bottom: 1px solid var(--accent);
      padding: 14px 20px; display: flex; align-items: center;
      justify-content: space-between; gap: 12px; flex-wrap: wrap;
    }
    .client-card-title {
      font-size: .78rem; font-weight: 800; color: var(--accent2);
      text-transform: uppercase; letter-spacing: .09em;
    }
    .btn-copy-all {
      background: var(--brand-gradient);
      color: #fff; border: none; border-radius: 7px;
      padding: 8px 18px; font-size: .8rem; font-weight: 700;
      cursor: pointer; display: flex; align-items: center; gap: 6px; transition: opacity .2s;
    }
    .btn-copy-all:hover { opacity: .85; }

    .client-row {
      display: grid; grid-template-columns: 220px 1fr auto;
      align-items: center; padding: 12px 20px;
      border-bottom: 1px solid var(--border); gap: 10px; transition: background .15s;
    }
    .client-row:last-child { border-bottom: none; }
    .client-row:hover { background: var(--surface2); }
    .client-row-label {
      font-size: .78rem; font-weight: 700; color: var(--muted);
      text-transform: uppercase; letter-spacing: .05em; line-height: 1.3;
    }
    .client-row-label span {
      display: block; font-size: .68rem; color: #4a4a6a;
      font-weight: 500; text-transform: none; letter-spacing: 0; margin-top: 1px;
    }
    .client-row-value { font-size: .92rem; color: var(--text); word-break: break-word; line-height: 1.4; }
    .client-row-value.empty { color: #4a4a6a; font-style: italic; font-size: .82rem; }
    .warn-badge {
      display: inline-block; background: #2d2010; border: 1px solid #78350f;
      color: var(--yellow); border-radius: 5px; font-size: .68rem; font-weight: 700;
      padding: 2px 8px; text-transform: uppercase; letter-spacing: .04em;
      margin-left: 6px; vertical-align: middle;
    }

    /* ── Generic sections ── */
    .section {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); margin-bottom: 14px; overflow: hidden;
    }
    .section-title {
      padding: 12px 20px; font-size: .75rem; font-weight: 700;
      color: var(--accent2); text-transform: uppercase; letter-spacing: .08em;
      background: var(--surface2); border-bottom: 1px solid var(--border);
    }
    .field {
      display: flex; align-items: flex-start; padding: 10px 20px;
      gap: 12px; border-bottom: 1px solid var(--border); transition: background .15s;
    }
    .field:last-child { border-bottom: none; }
    .field:hover { background: var(--surface2); }
    .field-info { flex: 1; min-width: 0; }
    .field-label { font-size: .7rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
    .field-value { font-size: .88rem; color: var(--text); word-break: break-word; line-height: 1.4; }

    /* Copy buttons */
    .copy-btn {
      background: transparent; border: 1px solid var(--border);
      color: var(--muted); border-radius: 6px; padding: 6px 12px;
      font-size: .72rem; font-weight: 600; cursor: pointer;
      white-space: nowrap; transition: all .15s; flex-shrink: 0; margin-top: 2px;
    }
    .copy-btn:hover { border-color: var(--accent); color: var(--accent2); }
    .copy-btn.copied { border-color: var(--green); color: var(--green); }
    .copy-btn.disabled { opacity: .3; cursor: default; pointer-events: none; }

    /* Sócios */
    .socio-card { padding: 14px 20px; border-bottom: 1px solid var(--border); }
    .socio-card:last-child { border-bottom: none; }
    .socio-name { font-weight: 600; font-size: .93rem; margin-bottom: 4px; }
    .socio-meta { font-size: .76rem; color: var(--muted); }

    /* CNAEs */
    .cnae-item { padding: 9px 20px; border-bottom: 1px solid var(--border); font-size: .86rem; }
    .cnae-item:last-child { border-bottom: none; }
    .cnae-code { font-weight: 700; color: var(--accent2); margin-right: 7px; }

    footer {
      position: fixed; bottom: 0; left: 0; right: 0; z-index: 3;
      text-align: center; padding: 14px 20px; font-size: .76rem;
      color: var(--muted);
      background: rgba(15, 23, 42, .85);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      box-shadow: 0 -6px 24px rgba(0, 0, 0, .35);
    }
    footer span { color: var(--accent2); }

    .spinner {
      display: inline-block; width: 15px; height: 15px;
      border: 2px solid var(--border); border-top-color: var(--accent);
      border-radius: 50%; animation: spin .7s linear infinite;
      vertical-align: middle; margin-right: 8px;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    @media (max-width: 580px) {
      header { padding: 16px; gap: 10px; }
      header h1 { font-size: 1.1rem; }
      header p { font-size: .72rem; }
      main { padding: 24px 14px 132px; }
      .search-wrap { padding: 18px; }
      .input-row { flex-direction: column; }
      .btn { width: 100%; padding: 14px 26px; }
      .client-card-header { padding: 12px 14px; }
      .btn-copy-all { width: 100%; justify-content: center; padding: 11px 18px; }
      .client-row { grid-template-columns: 1fr auto; padding: 12px 14px; }
      .client-row-label { grid-column: 1 / -1; }
      .field { padding: 10px 14px; }
      .section-title { padding: 12px 14px; }
      .cnae-item, .socio-card { padding-left: 14px; padding-right: 14px; }
      .copy-btn { padding: 9px 14px; }
      footer { font-size: .72rem; padding: 12px 14px; }
    }

    @media (max-width: 380px) {
      .site-logo { height: 28px; }
      header h1 { font-size: 1rem; }
      .company-name { font-size: 1.15rem; }
      .search-wrap { padding: 16px; }
      main { padding: 20px 12px 140px; }
    }

.site-logo { height: 32px; object-fit: contain; flex-shrink: 0; }
.cnae-main { color: var(--green); font-size: .72rem; margin-left: 5px; }
.actions-row { text-align: right; margin-top: 8px; }
.copy-completo-btn { font-size: .8rem; padding: 9px 18px; }

.particles-js-canvas-el { width: 100%; height: 100%; display: block; }
[hidden] { display: none !important; }
