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

    :root {
      --t1:   #0F2F6B;
      --t2:   #1B4899;
      --t3:   #0078b6;
      --tacc: #008ED5;
      --w100: #ffffff;
      --w80:  rgba(255,255,255,0.80);
      --w55:  rgba(255,255,255,0.55);
      --w25:  rgba(255,255,255,0.25);
      --w14:  rgba(255,255,255,0.14);
      --w08:  rgba(255,255,255,0.08);
    }

    html { scroll-behavior: smooth; }

    body {
      background: linear-gradient(160deg, #0a1f4e 0%, #1B4899 50%, #006fa3 100%);
      background-attachment: fixed;
      color: var(--w100);
      font-family: 'Inter', sans-serif;
      font-size: 14px;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

    .card-wrapper {
      max-width: 420px;
      margin: 0 auto;
      min-height: 100dvh;
      position: relative;
      overflow-x: hidden;
    }

    /* ─── HEADER ─────────────────────────────────── */
    .header {
      padding: 52px 24px 36px;
      text-align: center;
      position: relative;
    }

    .header::after {
      content: '';
      position: absolute;
      bottom: 0; left: 0; right: 0; height: 1px;
      background: var(--w25);
    }

    .header-logo-wrap { margin-bottom: 24px; }

    .header-logo {
      max-width: 140px;
      height: auto;
      filter: brightness(0) invert(1);
    }

    /* Avatar */
    .avatar-wrap {
      position: relative;
      width: 120px;
      height: 120px;
      margin: 0 auto 22px;
      z-index: 1;
    }

    .avatar-ring {
      position: absolute;
      inset: -3px;
      border-radius: 50%;
      background: conic-gradient(
        rgba(255,255,255,0.9) 0deg,
        rgba(0,142,213,0.55) 130deg,
        rgba(255,255,255,0.1) 210deg,
        rgba(255,255,255,0.9) 360deg
      );
      animation: ring-spin 6s linear infinite;
    }

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

    .avatar-mask {
      position: absolute;
      inset: 3px;
      border-radius: 50%;
      overflow: hidden;
      background: var(--t2);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .avatar-initials {
      font-weight: 600;
      font-size: 32px;
      color: var(--w100);
      letter-spacing: -1px;
    }

    .avatar-photo {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center top;
      border-radius: 50%;
    }

    .header-name {
      font-weight: 700;
      font-size: 34px;
      color: var(--w100);
      letter-spacing: -0.5px;
      margin-bottom: 6px;
      line-height: 1.15;
      position: relative;
      z-index: 1;
    }

    .header-title {
      font-weight: 400;
      font-size: 13px;
      color: rgba(163,218,248,0.90);
      text-transform: uppercase;
      letter-spacing: 2px;
      line-height: 1.4;
      position: relative;
      z-index: 1;
      margin-bottom: 10px;
    }

    .header-tagline {
      font-size: 11px;
      font-weight: 400;
      color: rgba(163,218,248,0.80);
      letter-spacing: 0.2px;
      line-height: 1.4;
      margin-top: 6px;
      padding: 0 16px;
      position: relative;
      z-index: 1;
    }

    .header-location {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 16px;
      color: var(--w100);
      position: relative;
      z-index: 1;
    }

    .header-location svg { width: 12px; height: 12px; opacity: 0.7; }

    /* ─── LINKS ───────────────────────────────────── */
    .links-section {
      padding: 28px 16px;
    }

    .links-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-bottom: 10px;
    }

    .link-btn {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px 14px;
      background: var(--w14);
      border: 1px solid var(--w25);
      border-radius: 13px;
      color: var(--w100);
      text-decoration: none;
      font-family: 'Inter', sans-serif;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: background 0.15s, transform 0.1s;
      backdrop-filter: blur(6px);
    }

    .link-btn:active {
      background: var(--w25);
      transform: scale(0.97);
    }

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

    .link-icon svg { width: 16px; height: 16px; }

    .li   { background: #0077b5; color: #fff; }
    .mail { background: #d44638; color: #fff; }
    .tel  { background: #008ED5; color: #fff; }
    .web  { background: rgba(255,255,255,0.18); color: #fff; border: 1px solid rgba(255,255,255,0.3); }

    .link-text {
      display: flex;
      flex-direction: column;
      gap: 2px;
      text-align: left;
    }

    .link-title { font-size: 14px; font-weight: 600; line-height: 1.2; }
    .link-sub   { font-size: 11px; font-weight: 400; opacity: 0.72; line-height: 1.3; }

    .link-full { grid-column: span 2; }

    .save-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      width: 100%;
      padding: 17px;
      background: #FFC857;
      border: none;
      border-radius: 14px;
      color: #0F2F6B;
      font-family: 'Inter', sans-serif;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.8px;
      text-transform: uppercase;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: filter 0.15s, transform 0.1s;
      margin-top: 10px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    }

    .save-btn:active { transform: scale(0.98); filter: brightness(0.94); }
    .save-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

    /* ─── QR ──────────────────────────────────────── */
    .qr-section {
      padding: 4px 16px 44px;
    }

    .qr-card {
      background: var(--w14);
      border: 1px solid var(--w25);
      border-radius: 16px;
      padding: 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
      backdrop-filter: blur(6px);
    }

    .qr-label {
      font-size: 11px;
      font-weight: 600;
      color: var(--w100);
      text-transform: uppercase;
      letter-spacing: 2.5px;
    }

    #qrcode { outline: solid 10px white; border-radius: 5px; }
    #qrcode canvas, #qrcode img { border-radius: 4px; display: block; }

    /* ─── FOOTER ─────────────────────────────────── */
    .site-footer {
      text-align: center;
      padding: 28px 24px 36px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      border-top: 1px solid var(--w14);
    }

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

    .footer-copy, .footer-dev {
      font-size: 10px;
      color: var(--w55);
      line-height: 1.4;
    }

    .footer-version {
      font-size: 9px;
      color: var(--w25);
      letter-spacing: 0.5px;
      margin-top: 2px;
    }

    /* ─── ANIMATIONS ──────────────────────────────── */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(16px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .header        { animation: fadeUp 0.5s ease both; }
    .links-section { animation: fadeUp 0.5s 0.07s ease both; }
    .qr-section    { animation: fadeUp 0.5s 0.14s ease both; }
