﻿

    body {
      font-family: 'Outfit', sans-serif;
      background: var(--bg-deep);
      background-image:
        radial-gradient(ellipse 90% 55% at 50% -8%, rgba(245, 185, 66, 0.16), transparent 55%),
        radial-gradient(ellipse 45% 40% at 0% 100%, rgba(59, 130, 246, 0.08), transparent),
        radial-gradient(ellipse 45% 40% at 100% 100%, rgba(168, 85, 247, 0.1), transparent);
      color: var(--text);
      min-height: 100dvh;
      padding:
        max(1rem, env(safe-area-inset-top))
        max(1rem, env(safe-area-inset-right))
        max(1rem, env(safe-area-inset-bottom))
        max(1rem, env(safe-area-inset-left));
    }

    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
      background-size: 28px 28px;
      pointer-events: none;
      opacity: 0.4;
    }

    .wrap {
      position: relative;
      z-index: 1;
      max-width: 960px;
      margin: 0 auto;
    }

    .header {
      text-align: center;
      margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    }

    .header-icon {
      font-size: clamp(2rem, 6vw, 3rem);
      line-height: 1;
      margin-bottom: 0.35rem;
      filter: drop-shadow(0 0 18px var(--accent-glow));
    }

    .header-tag {
      font-size: clamp(0.65rem, 1.6vw, 0.78rem);
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--accent-light);
      font-weight: 600;
    }

    .header h1 {
      font-family: 'Fredoka', sans-serif;
      font-size: clamp(1.75rem, 5.5vw, 2.75rem);
      background: linear-gradient(180deg, #fff 30%, var(--accent-light));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin: 0.35rem 0 0.5rem;
      line-height: 1.15;
    }

    .header p {
      color: var(--text-muted);
      font-size: clamp(0.9rem, 2.2vw, 1.05rem);
      max-width: 34rem;
      margin: 0 auto;
      line-height: 1.5;
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: clamp(0.75rem, 2vw, 1rem);
    }

    .grid-section {
      margin-bottom: clamp(1.5rem, 4vw, 2rem);
    }

    .grid-section-title {
      font-family: 'Fredoka', sans-serif;
      font-size: clamp(0.95rem, 2.4vw, 1.15rem);
      font-weight: 600;
      color: var(--accent-light);
      letter-spacing: 0.04em;
      margin-bottom: 0.75rem;
      padding-left: 0.15rem;
    }

    .grid-section-title--pf {
      color: var(--accent-light);
      font-size: clamp(0.95rem, 2.4vw, 1.15rem);
      font-weight: 600;
      text-transform: none;
      letter-spacing: 0.04em;
    }

    .grid-section-hint {
      font-size: 0.78rem;
      color: var(--text-muted);
      line-height: 1.45;
      margin: -0.35rem 0 0.85rem;
      padding-left: 0.15rem;
      opacity: 0.9;
    }

    .grid-section-hint strong {
      color: var(--text-muted);
      font-weight: 600;
    }

    @media (max-width: 520px) {
      .grid {
        grid-template-columns: 1fr;
      }
    }

    .card {
      background: var(--surface);
      border: 1px solid var(--surface-border);
      border-radius: 16px;
      padding: clamp(1rem, 2.5vw, 1.25rem) clamp(1rem, 2.5vw, 1.35rem);
      display: flex;
      align-items: flex-start;
      gap: 0.85rem;
      transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .card--clickable {
      cursor: pointer;
      font: inherit;
      color: inherit;
      text-align: left;
      width: 100%;
    }

    .card--clickable:focus-visible {
      outline: 2px solid var(--accent-light);
      outline-offset: 2px;
    }

    /* —— Pessoa física: dourado, acolhedor —— */
    .card--pf {
      background: linear-gradient(145deg, rgba(18, 22, 36, 0.98), rgba(245, 185, 66, 0.14) 55%, rgba(59, 130, 246, 0.08));
      border: 1px solid rgba(245, 185, 66, 0.3);
      box-shadow: 0 4px 18px rgba(245, 185, 66, 0.1);
      padding: 0.85rem 1rem;
      align-items: center;
    }

    .card--pf:hover {
      border-color: rgba(253, 230, 138, 0.55);
      box-shadow: 0 10px 28px rgba(245, 185, 66, 0.2), 0 0 0 1px rgba(245, 185, 66, 0.12);
    }

    .card--pf .card-name {
      font-size: clamp(0.98rem, 2.4vw, 1.08rem);
      background: linear-gradient(180deg, #fff 30%, var(--accent-light));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .card--pf .card-logo {
      border-color: rgba(253, 230, 138, 0.55);
      box-shadow: 0 4px 18px rgba(245, 185, 66, 0.25);
    }

    .card-type--pf {
      color: #fde68a;
      background: rgba(245, 185, 66, 0.14);
      border-color: rgba(245, 185, 66, 0.35);
    }

    .card-pf-avatar {
      flex-shrink: 0;
      width: 3.25rem;
      height: 3.25rem;
      border-radius: 50%;
      background: linear-gradient(145deg, rgba(253, 230, 138, 0.45), rgba(245, 185, 66, 0.55) 45%, rgba(217, 119, 6, 0.5));
      border: 2px solid rgba(253, 230, 138, 0.55);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Fredoka', sans-serif;
      font-size: 1.3rem;
      font-weight: 700;
      color: #1a1200;
      box-shadow: 0 4px 16px var(--accent-glow);
      text-transform: uppercase;
    }

    .card--pf .card-tap-hint {
      color: rgba(253, 230, 138, 0.55);
    }

    /* —— PJ: visual de loja/empresa —— */
    .card--pj {
      background: linear-gradient(145deg, rgba(22, 18, 42, 0.96), rgba(88, 28, 135, 0.22));
      border: 1px solid rgba(168, 85, 247, 0.35);
      box-shadow: 0 4px 20px rgba(88, 28, 135, 0.12);
      align-items: center;
      padding: 0.85rem 1rem;
    }

    .card--pj:hover {
      border-color: rgba(192, 132, 252, 0.55);
      box-shadow: 0 10px 32px rgba(88, 28, 135, 0.22), 0 0 0 1px rgba(168, 85, 247, 0.15);
    }

    .card--pj .card-logo {
      border-color: rgba(192, 132, 252, 0.5);
    }

    .card--pj .card-detail {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .card-type {
      display: inline-block;
      font-size: 0.62rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: #e9d5ff;
      background: rgba(168, 85, 247, 0.2);
      border: 1px solid rgba(192, 132, 252, 0.35);
      border-radius: 999px;
      padding: 0.18rem 0.5rem;
      margin-bottom: 0.35rem;
    }

    .card-pj-icon {
      flex-shrink: 0;
      width: 3.25rem;
      height: 3.25rem;
      border-radius: 50%;
      background: linear-gradient(145deg, rgba(168, 85, 247, 0.35), rgba(88, 28, 135, 0.5));
      border: 1px solid rgba(192, 132, 252, 0.4);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.25rem;
      box-shadow: 0 4px 14px rgba(88, 28, 135, 0.3);
    }

    .card-tap-hint {
      margin-top: 0.5rem;
      font-size: 0.68rem;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: rgba(253, 230, 138, 0.65);
      font-weight: 600;
    }

    .card:hover {
      transform: translateY(-2px);
    }

    .card-logo {
      flex-shrink: 0;
      width: 3.25rem;
      height: 3.25rem;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid rgba(245, 185, 66, 0.45);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
      background: #fff;
    }

    .card--brand {
      align-items: center;
    }

    .card-body {
      min-width: 0;
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }

    .card-name {
      font-family: 'Fredoka', sans-serif;
      font-size: clamp(1rem, 2.5vw, 1.12rem);
      font-weight: 600;
      line-height: 1.3;
      color: var(--text);
    }

    .card-detail {
      margin-top: 0.25rem;
      font-size: 0.82rem;
      color: var(--text-muted);
      line-height: 1.4;
    }

    .card-follow-ig {
      margin-top: 0.4rem;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      max-width: 100%;
      font-size: 0.8rem;
      font-weight: 600;
      line-height: 1.2;
      color: #f472b6;
      text-decoration: none;
      transition: color 0.2s ease;
      cursor: pointer;
      position: relative;
      z-index: 2;
    }

    .card-follow-ig:hover {
      color: #fbcfe8;
    }

    .card-follow-ig svg {
      flex-shrink: 0;
      width: 0.95rem;
      height: 0.95rem;
      opacity: 0.95;
    }

    .card-follow-ig .ig-handle {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .thanks {
      text-align: center;
      background: var(--surface);
      border: 1px solid var(--surface-border);
      border-radius: 18px;
      padding: clamp(1.25rem, 3vw, 1.75rem);
      margin-bottom: 1.25rem;
    }

    .thanks p {
      font-family: 'Fredoka', sans-serif;
      font-size: clamp(1.05rem, 2.8vw, 1.35rem);
      color: var(--accent-light);
      line-height: 1.45;
    }

    .footer {
      text-align: center;
      font-size: 0.78rem;
      color: var(--text-muted);
    }

    .footer a {
      color: var(--accent-light);
      text-decoration: none;
    }

    .footer a:hover {
      text-decoration: underline;
    }

    .grid-loading {
      text-align: center;
      color: var(--text-muted);
      padding: 1.5rem 0;
    }

    .modal-overlay {
      position: fixed;
      inset: 0;
      z-index: 100;
      background: rgba(0, 0, 0, 0.78);
      backdrop-filter: blur(6px);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .modal-overlay.open {
      opacity: 1;
      visibility: visible;
    }

    .modal-card {
      background: linear-gradient(160deg, rgba(28, 32, 48, 0.98), rgba(12, 16, 28, 0.98));
      border: 1px solid rgba(245, 185, 66, 0.35);
      border-radius: 22px;
      padding: clamp(1.35rem, 4vw, 2rem);
      max-width: 420px;
      width: 100%;
      text-align: center;
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
      transform: scale(0.92);
      transition: transform 0.2s ease;
    }

    .modal-overlay.open .modal-card {
      transform: scale(1);
    }

    .modal-logo {
      width: clamp(5.5rem, 22vw, 7rem);
      height: clamp(5.5rem, 22vw, 7rem);
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid rgba(245, 185, 66, 0.5);
      box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
      background: #fff;
      margin: 0 auto 1rem;
    }

    .modal-logo.initial {
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Fredoka', sans-serif;
      font-size: 2.5rem;
      color: var(--accent-light);
      background: rgba(245, 185, 66, 0.15);
    }

    .modal-card h2 {
      font-family: 'Fredoka', sans-serif;
      font-size: clamp(1.35rem, 4vw, 1.75rem);
      margin-bottom: 0.45rem;
      background: linear-gradient(180deg, #fff, var(--accent-light));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .modal-type {
      display: inline-block;
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--accent-light);
      background: rgba(245, 185, 66, 0.12);
      border: 1px solid rgba(245, 185, 66, 0.28);
      border-radius: 999px;
      padding: 0.22rem 0.55rem;
      margin-bottom: 0.65rem;
    }

    .modal-detail {
      color: var(--text-muted);
      font-size: 0.95rem;
      line-height: 1.5;
      margin-bottom: 0.75rem;
    }

    .modal-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem;
      justify-content: center;
      margin-bottom: 0.85rem;
    }

    .modal-tags span {
      font-size: 0.72rem;
      font-weight: 600;
      color: #e2e8f0;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 999px;
      padding: 0.22rem 0.55rem;
    }

    .modal-instagram {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
      font-size: 0.88rem;
      font-weight: 600;
      color: #f472b6;
      text-decoration: none;
      margin-top: 0.15rem;
      transition: color 0.2s ease;
    }

    .modal-instagram:hover {
      color: #fbcfe8;
    }

    .modal-instagram svg {
      width: 1rem;
      height: 1rem;
    }

    .modal-whatsapp {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      font-size: 0.9rem;
      font-weight: 700;
      color: #fff;
      text-decoration: none;
      background: linear-gradient(135deg, #25d366, #128c7e);
      border-radius: 999px;
      padding: 0.55rem 1rem;
      margin-top: 0.45rem;
    }

    #modalInstagramWrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.35rem;
    }

    .modal-close {
      margin-top: 1rem;
      font: inherit;
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--text-muted);
      background: none;
      border: none;
      cursor: pointer;
      text-decoration: underline;
    }

    .modal-detail.hidden,
    .modal-tags.hidden {
      display: none;
    }
