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

    :root {
      --t1:   #286e7d;
      --t2:   #3a8789;
      --t3:   #448d8f;
      --tacc: #138c90;
    }

    body {
      background: linear-gradient(175deg, #2d7f8e 0%, #3d8b8d 45%, #276474 100%);
      background-attachment: fixed;
      min-height: 100dvh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      font-family: 'Barlow', sans-serif;
      -webkit-font-smoothing: antialiased;
      padding: 24px 16px;
    }

    /* ── CARD ──────────────────────────────────────── */
    .card {
      background: #ffffff;
      border-radius: 24px;
      padding: 40px 32px 36px;
      text-align: center;
      width: 100%;
      max-width: 360px;
      position: relative;
      box-shadow: 0 4px 6px rgba(0,0,0,0.08), 0 16px 48px rgba(0,0,0,0.18);
    }

    .card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0; height: 4px;
      border-radius: 24px 24px 0 0;
      background: linear-gradient(90deg, var(--t1) 0%, var(--t2) 50%, var(--t3) 100%);
    }

    .card-content {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .logo {
      max-width: 170px;
      height: auto;
      margin: 0 auto 24px;
      display: block;
    }

    .sep {
      width: 32px;
      height: 2px;
      background: linear-gradient(90deg, var(--t1), var(--tacc));
      border-radius: 1px;
      margin: 0 auto 20px;
    }

    .card-avatar {
      width: 88px;
      height: 88px;
      border-radius: 50%;
      overflow: hidden;
      border: 3px solid #d4eaec;
      margin-bottom: 16px;
      flex-shrink: 0;
    }

    .card-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center top;
      display: block;
    }

    .person-name {
      font-family: 'Ubuntu', sans-serif;
      font-size: 32px;
      font-weight: 700;
      color: #002435;
      letter-spacing: -0.4px;
      margin-bottom: 6px;
      line-height: 1.15;
    }

    .person-title {
      font-family: 'Barlow', sans-serif;
      font-size: 18px;
      font-weight: 500;
      color: #002435;
      letter-spacing: -0.2px;
      margin-bottom: 28px;
      line-height: 1.3;
    }

    .qr-frame {
      display: inline-block;
      padding: 14px;
      background: #002435;
      border: 1.5px solid #003450;
      border-radius: 16px;
      box-shadow: 0 2px 12px rgba(0,36,53,0.18);
      margin-bottom: 22px;
    }

    #qrcode canvas,
    #qrcode img { display: block; border-radius: 6px; }

    .scan-text {
      font-size: 16px;
      font-weight: 500;
      color: #6b8a90;
      letter-spacing: 0.1px;
    }

    .footer-url-row {
      margin-top: 20px;
      padding-top: 18px;
      border-top: 1px solid #e4f0f2;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .footer-dot {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--tacc);
      opacity: 0.6;
      flex-shrink: 0;
    }

    .footer-url {
      font-size: 10px;
      font-weight: 500;
      color: #8aadb3;
      letter-spacing: 0.5px;
    }

    /* ── CTAs ──────────────────────────────────────── */
    .cta-group {
      width: 100%;
      max-width: 360px;
      padding: 16px 0 0;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .cta-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      padding: 15px 20px;
      border-radius: 14px;
      font-family: 'Barlow', sans-serif;
      font-size: 14px;
      font-weight: 600;
      letter-spacing: 0.2px;
      cursor: pointer;
      text-decoration: none;
      border: none;
      transition: filter 0.15s, transform 0.1s;
      -webkit-tap-highlight-color: transparent;
      width: 100%;
    }

    .cta-btn:active { transform: scale(0.98); filter: brightness(0.92); }
    .cta-btn:disabled { opacity: 0.6; cursor: default; transform: none; filter: none; }
    .cta-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

    .cta-view {
      background: rgba(255,255,255,0.92);
      color: #002435;
      box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    }

    .cta-wa {
      background: #25d366;
      color: #ffffff;
      box-shadow: 0 2px 8px rgba(37,211,102,0.30);
    }

    .cta-pdf {
      background: rgba(0,36,53,0.55);
      color: #ffffff;
      border: 1px solid rgba(255,255,255,0.20);
      backdrop-filter: blur(6px);
    }

    /* ── SITE FOOTER ──────────────────────────────── */
    .site-footer {
      width: 100%;
      max-width: 360px;
      text-align: center;
      padding: 20px 24px 12px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 5px;
    }

    .footer-logo {
      max-width: 110px;
      height: auto;
      opacity: 0.55;
      margin-bottom: 4px;
      filter: brightness(0) invert(1);
    }

    .footer-copy, .footer-dev {
      font-family: 'Ubuntu', sans-serif;
      font-size: 10px;
      color: rgba(255,255,255,0.5);
      line-height: 1.4;
    }

    .footer-version {
      font-family: 'Ubuntu', sans-serif;
      font-size: 9px;
      color: rgba(255,255,255,0.25);
      letter-spacing: 0.5px;
      margin-top: 2px;
    }

    @media print {
      body { background: white; padding: 0; justify-content: flex-start; }
      .card { box-shadow: none; border-radius: 0; max-width: 100%; }
      .cta-group, .site-footer { display: none; }
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px) scale(0.99); }
      to   { opacity: 1; transform: none; }
    }
    .card { animation: fadeIn 0.4s ease both; }
  