/*
 * hycard-templates.css — hyCard Digital Business Card Template System
 * 8 animated, mobile-first, clickable card templates + shared base +
 * button-style and animation variants.
 *
 * Standalone — does NOT depend on tokens.css or ios-system.css. Loaded by the
 * public renderer (hycard-public.html) and by the builder live preview.
 *
 * Apply classes to the render root:
 *   .hc-page .hc-tpl-{slug} .hc-btn-{style} .hc-anim-{type}
 *
 * Template slugs : classic luxury cyberpunk crypto clean glass neon minimal
 * Button styles  : fill outline soft           (theme.button_style)
 * Animations     : none float rise glow         (theme.animation)
 *
 * CSS variables (overridable per-card from theme): --hc-accent --hc-bg
 *   --hc-font --hc-text --hc-muted (plus derived helpers below).
 * All hyCard classes are prefixed `hc-`.
 *
 * Created: 2026-06-22
 */

/* ═══════════════════════════════════════════════════════════════════════
   §0  Google Fonts
   ═══════════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@400;600;700&family=Space+Grotesk:wght@400;500;700&family=Share+Tech+Mono&display=swap');

/* ═══════════════════════════════════════════════════════════════════════
   §1  Custom Properties (hyCard defaults)
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --hc-accent: #00e5ff;
  --hc-accent-dim: rgba(0, 229, 255, 0.14);
  --hc-accent-glow: rgba(0, 229, 255, 0.35);
  --hc-bg: #0b0f14;
  --hc-bg-card: rgba(255, 255, 255, 0.05);
  --hc-text: #f2f6fa;
  --hc-muted: rgba(242, 246, 250, 0.6);
  --hc-border: rgba(255, 255, 255, 0.12);
  --hc-font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --hc-radius: 16px;
  --hc-btn-radius: 14px;
  --hc-ring-color: var(--hc-accent);
  --hc-ring-glow: var(--hc-accent-glow);
  --hc-transition: 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}

/* ═══════════════════════════════════════════════════════════════════════
   §2  Shared Base Styles  (.hc-page)
   ═══════════════════════════════════════════════════════════════════════ */
.hc-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--hc-bg);
  color: var(--hc-text);
  font-family: var(--hc-font);
  padding: 0 0 64px;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hc-page * { box-sizing: border-box; }

/* ── Container ──────────────────────────────────────────────────────── */
.hc-container {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
  animation: hcFadeInUp 0.55s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

/* ── Cover banner ───────────────────────────────────────────────────── */
.hc-cover {
  width: 100%;
  max-width: 100%;
  height: 168px;
  object-fit: cover;
  display: block;
  background: var(--hc-bg-card);
  margin-bottom: -56px;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.hc-page:not(.hc-has-cover) .hc-container { padding-top: 52px; }

/* ── Avatar / Logo ──────────────────────────────────────────────────── */
.hc-avatar-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin-bottom: 14px;
}
.hc-avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--hc-ring-color);
  animation: hcRingPulse 3s ease-in-out infinite;
}
.hc-avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: 3px;
  left: 3px;
  background: var(--hc-bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  color: var(--hc-muted);
}
.hc-logo {
  max-height: 34px;
  width: auto;
  margin-bottom: 10px;
  object-fit: contain;
}

/* ── Identity ───────────────────────────────────────────────────────── */
.hc-display-name {
  font-size: 23px;
  font-weight: 700;
  margin: 0 0 2px;
  text-align: center;
  color: var(--hc-text);
  line-height: 1.2;
}
.hc-pronouns {
  font-size: 12px;
  color: var(--hc-muted);
  margin: 0 0 6px;
}
.hc-headline {
  font-size: 15px;
  font-weight: 600;
  color: var(--hc-accent);
  text-align: center;
  margin: 0 0 2px;
}
.hc-company {
  font-size: 13px;
  color: var(--hc-muted);
  text-align: center;
  margin: 0 0 10px;
}
.hc-bio {
  font-size: 14px;
  color: var(--hc-muted);
  text-align: center;
  margin: 0 0 22px;
  max-width: 420px;
  line-height: 1.55;
}

/* ── Widget zones ───────────────────────────────────────────────────── */
.hc-widgets {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hc-zone { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.hc-zone-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.hc-zone-grid .hc-action { min-height: 88px; flex-direction: column; gap: 6px; }
.hc-zone-grid .hc-action .hc-action-ico { font-size: 26px; }

/* ── Action button (tappable widget) ────────────────────────────────── */
.hc-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: var(--hc-btn-radius);
  background: var(--hc-bg-card);
  border: 1px solid var(--hc-border);
  color: var(--hc-text);
  font-family: var(--hc-font);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--hc-transition),
              background var(--hc-transition),
              border-color var(--hc-transition),
              box-shadow var(--hc-transition),
              color var(--hc-transition);
  position: relative;
  overflow: hidden;
}
.hc-action:active { transform: scale(0.97); }
.hc-action-ico {
  font-size: 20px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  --iconify-icon-color: currentColor;
  color: currentColor;
}
.hc-action-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Ripple ─────────────────────────────────────────────────────────── */
.hc-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transform: scale(0);
  animation: hcRipple 0.6s ease-out forwards;
  pointer-events: none;
}

/* ── Heading widget ─────────────────────────────────────────────────── */
.hc-heading {
  width: 100%;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hc-muted);
  text-align: center;
  margin: 8px 0 2px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.hc-heading::before, .hc-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hc-border);
}

/* ── Image / Video / Embed widgets ──────────────────────────────────── */
.hc-media {
  width: 100%;
  border-radius: var(--hc-radius);
  overflow: hidden;
  background: var(--hc-bg-card);
  border: 1px solid var(--hc-border);
}
.hc-media img, .hc-media video { width: 100%; display: block; }
.hc-embed { width: 100%; border-radius: var(--hc-radius); overflow: hidden; }
.hc-embed iframe { width: 100%; border: 0; display: block; border-radius: var(--hc-radius); }

/* ── Custom (sanitized) widget ──────────────────────────────────────── */
.hc-custom {
  width: 100%;
  border-radius: var(--hc-radius);
  border: 1px solid var(--hc-border);
  background: var(--hc-bg-card);
  padding: 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--hc-text);
}
.hc-custom a { color: var(--hc-accent); }

/* ── Social row ─────────────────────────────────────────────────────── */
.hc-social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
.hc-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--hc-bg-card);
  border: 1px solid var(--hc-border);
  color: var(--hc-accent);
  text-decoration: none;
  font-size: 22px;
  transition: transform var(--hc-transition),
              background var(--hc-transition),
              border-color var(--hc-transition),
              box-shadow var(--hc-transition);
}
.hc-social-icon:hover {
  transform: translateY(-2px) scale(1.06);
  border-color: var(--hc-accent);
  background: var(--hc-accent-dim);
}

/* ── Inline forms (email / lead / booking) ──────────────────────────── */
.hc-form {
  width: 100%;
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: var(--hc-radius);
  background: var(--hc-bg-card);
  border: 1px solid var(--hc-border);
  margin-top: -2px;
}
.hc-form.hc-open { display: flex; animation: hcFadeInUp 0.3s ease both; }
.hc-input, .hc-textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--hc-border);
  background: rgba(0, 0, 0, 0.18);
  color: var(--hc-text);
  font-family: var(--hc-font);
  font-size: 16px; /* ≥16px prevents iOS zoom */
}
.hc-input:focus, .hc-textarea:focus { outline: none; border-color: var(--hc-accent); }
.hc-textarea { resize: vertical; min-height: 84px; }
/* Honeypot — visually hidden but present in DOM */
.hc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.hc-submit {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 12px;
  background: var(--hc-accent);
  color: #04121a;
  font-family: var(--hc-font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: filter var(--hc-transition), box-shadow var(--hc-transition);
}
.hc-submit:hover { filter: brightness(1.08); box-shadow: 0 4px 18px var(--hc-accent-glow); }
.hc-submit:disabled { opacity: 0.6; cursor: default; }
.hc-form-msg { font-size: 13px; color: var(--hc-muted); text-align: center; }
.hc-form-msg.hc-ok { color: var(--hc-accent); }
.hc-form-msg.hc-err { color: #ff6b81; }

/* ── Booking slots ──────────────────────────────────────────────────── */
.hc-slots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}
.hc-slot {
  padding: 11px 8px;
  border-radius: 10px;
  border: 1px solid var(--hc-border);
  background: rgba(0, 0, 0, 0.18);
  color: var(--hc-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: border-color var(--hc-transition), background var(--hc-transition);
}
.hc-slot:hover { border-color: var(--hc-accent); }
.hc-slot.hc-slot-sel { background: var(--hc-accent-dim); border-color: var(--hc-accent); color: var(--hc-accent); }

/* ── Résumé link / section on the public card ───────────────────────── */
.hc-resume-cta { width: 100%; }
.hc-resume-block { width: 100%; margin-top: 14px; }

/* ── Footer / share / QR ────────────────────────────────────────────── */
.hc-footer {
  width: 100%;
  max-width: 520px;
  margin-top: 28px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hc-share {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.hc-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--hc-bg-card);
  border: 1px solid var(--hc-border);
  color: var(--hc-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--hc-transition), background var(--hc-transition);
}
.hc-share-btn:hover { border-color: var(--hc-accent); background: var(--hc-accent-dim); }
.hc-share-btn iconify-icon { font-size: 18px; }
.hc-qr {
  width: 156px;
  height: 156px;
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  display: none;
  align-items: center;
  justify-content: center;
}
.hc-qr.hc-open { display: flex; }
.hc-qr svg, .hc-qr img { width: 100%; height: 100%; }
.hc-credit {
  font-size: 12px;
  color: var(--hc-muted);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity var(--hc-transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hc-credit:hover { opacity: 1; }

/* ── Loading + 404 + error ──────────────────────────────────────────── */
.hc-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  padding: 24px;
}
.hc-404-code { font-size: 76px; font-weight: 800; color: var(--hc-accent); line-height: 1; opacity: 0.45; }
.hc-404-msg { font-size: 16px; color: var(--hc-muted); margin-top: 8px; }
.hc-404-msg a { color: var(--hc-accent); text-decoration: none; }

/* Fade page in once data loads */
.hc-page { opacity: 0; transition: opacity 0.3s ease; }
.hc-page.hc-loaded { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════════════
   §3  Base Keyframes
   ═══════════════════════════════════════════════════════════════════════ */
@keyframes hcFadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hcRingPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--hc-ring-glow); }
  50%      { box-shadow: 0 0 14px 4px var(--hc-ring-glow); }
}
@keyframes hcRipple { to { transform: scale(4); opacity: 0; } }

/* ═══════════════════════════════════════════════════════════════════════
   §4  Button Style Variants  (theme.button_style: fill | outline | soft)
   ═══════════════════════════════════════════════════════════════════════ */
.hc-btn-fill .hc-action {
  background: var(--hc-accent);
  color: #04121a;
  border-color: transparent;
  font-weight: 700;
}
.hc-btn-fill .hc-action:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px var(--hc-accent-glow);
}

.hc-btn-outline .hc-action {
  background: transparent;
  border: 2px solid var(--hc-accent);
  color: var(--hc-accent);
}
.hc-btn-outline .hc-action:hover { background: var(--hc-accent-dim); }

.hc-btn-soft .hc-action {
  background: var(--hc-accent-dim);
  border-color: transparent;
  color: var(--hc-text);
}
.hc-btn-soft .hc-action:hover {
  background: var(--hc-accent-glow);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* ═══════════════════════════════════════════════════════════════════════
   §5  Animation Variants  (theme.animation: none | float | rise | glow)
   ═══════════════════════════════════════════════════════════════════════ */
.hc-anim-none .hc-action { transition: none; }
.hc-anim-none .hc-container { animation: none; }
.hc-anim-none .hc-avatar-ring { animation: none; }

.hc-anim-float .hc-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

/* rise — staggered entrance reveal */
.hc-anim-rise .hc-action {
  opacity: 0;
  animation: hcRise 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.hc-anim-rise .hc-action:nth-child(1)  { animation-delay: 0.04s; }
.hc-anim-rise .hc-action:nth-child(2)  { animation-delay: 0.08s; }
.hc-anim-rise .hc-action:nth-child(3)  { animation-delay: 0.12s; }
.hc-anim-rise .hc-action:nth-child(4)  { animation-delay: 0.16s; }
.hc-anim-rise .hc-action:nth-child(5)  { animation-delay: 0.20s; }
.hc-anim-rise .hc-action:nth-child(6)  { animation-delay: 0.24s; }
.hc-anim-rise .hc-action:nth-child(7)  { animation-delay: 0.28s; }
.hc-anim-rise .hc-action:nth-child(8)  { animation-delay: 0.32s; }
.hc-anim-rise .hc-action:nth-child(n+9) { animation-delay: 0.34s; }
@keyframes hcRise { to { opacity: 1; transform: translateY(0); } from { opacity: 0; transform: translateY(16px); } }

/* glow — pulsing accent glow on hover */
.hc-anim-glow .hc-action:hover {
  box-shadow: 0 0 0 1px var(--hc-accent), 0 0 18px var(--hc-accent-glow);
  animation: hcGlow 1.4s ease-in-out infinite;
}
@keyframes hcGlow {
  0%, 100% { box-shadow: 0 0 0 1px var(--hc-accent), 0 0 14px var(--hc-accent-glow); }
  50%      { box-shadow: 0 0 0 1px var(--hc-accent), 0 0 26px var(--hc-accent-glow); }
}

/* ═══════════════════════════════════════════════════════════════════════
   §6  Template: Classic  — clean professional, soft elevation
   ═══════════════════════════════════════════════════════════════════════ */
.hc-tpl-classic {
  --hc-accent: #2f6df6;
  --hc-accent-dim: rgba(47, 109, 246, 0.12);
  --hc-accent-glow: rgba(47, 109, 246, 0.3);
  --hc-bg: #0e1422;
  --hc-bg-card: rgba(255, 255, 255, 0.06);
  --hc-text: #f3f6fb;
  --hc-muted: rgba(243, 246, 251, 0.6);
  --hc-border: rgba(255, 255, 255, 0.12);
  --hc-ring-color: var(--hc-accent);
  --hc-ring-glow: var(--hc-accent-glow);
  --hc-font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --hc-btn-radius: 14px;
}
.hc-tpl-classic .hc-action { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }
.hc-tpl-classic .hc-action:hover { border-color: var(--hc-accent); }

/* ═══════════════════════════════════════════════════════════════════════
   §7  Template: Luxury  — gold on near-black, serif, shimmer sweep
   ═══════════════════════════════════════════════════════════════════════ */
.hc-tpl-luxury {
  --hc-accent: #c9a84c;
  --hc-accent-dim: rgba(201, 168, 76, 0.1);
  --hc-accent-glow: rgba(201, 168, 76, 0.28);
  --hc-bg: #0a0806;
  --hc-bg-card: rgba(201, 168, 76, 0.05);
  --hc-text: #f5efe0;
  --hc-muted: rgba(245, 239, 224, 0.55);
  --hc-border: rgba(201, 168, 76, 0.22);
  --hc-ring-color: #c9a84c;
  --hc-ring-glow: rgba(201, 168, 76, 0.3);
  --hc-font: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --hc-btn-radius: 4px;
}
.hc-tpl-luxury .hc-display-name { letter-spacing: 0.05em; }
.hc-tpl-luxury .hc-bio, .hc-tpl-luxury .hc-company { font-family: 'Inter', sans-serif; }
.hc-tpl-luxury .hc-action {
  background: linear-gradient(135deg, rgba(201,168,76,0.07) 0%, rgba(201,168,76,0.02) 100%);
  border: 1px solid rgba(201, 168, 76, 0.28);
  position: relative;
  overflow: hidden;
}
.hc-tpl-luxury .hc-action::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.18), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.hc-tpl-luxury .hc-action:hover::before { transform: translateX(100%); }
.hc-tpl-luxury .hc-action:hover { border-color: rgba(201, 168, 76, 0.55); box-shadow: 0 0 16px rgba(201,168,76,0.12); }
.hc-tpl-luxury .hc-avatar-ring { animation: hcLuxuryRing 4s ease-in-out infinite; }
@keyframes hcLuxuryRing {
  0%, 100% { box-shadow: 0 0 6px rgba(201,168,76,.2); }
  50%      { box-shadow: 0 0 14px rgba(201,168,76,.36); }
}

/* ═══════════════════════════════════════════════════════════════════════
   §8  Template: Cyberpunk  — neon grid backdrop, multi-color shimmer
   ═══════════════════════════════════════════════════════════════════════ */
@property --hc-cyber-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.hc-tpl-cyberpunk {
  --hc-accent: #00ffa3;
  --hc-accent-dim: rgba(0, 255, 163, 0.12);
  --hc-accent-glow: rgba(0, 255, 163, 0.4);
  --hc-cyber-cyan: #3ac9ff;
  --hc-cyber-purple: #b47aff;
  --hc-cyber-pink: #ff6ec7;
  --hc-bg: #05010a;
  --hc-bg-card: rgba(10, 16, 28, 0.55);
  --hc-text: #eafff7;
  --hc-muted: rgba(175, 255, 228, 0.62);
  --hc-border: rgba(0, 255, 163, 0.28);
  --hc-ring-color: var(--hc-accent);
  --hc-ring-glow: var(--hc-accent-glow);
  --hc-btn-radius: 12px;
}
.hc-tpl-cyberpunk::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 255, 163, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 201, 255, 0.07) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px;
  animation: hcCyberGrid 24s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse 85% 60% at 50% 24%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 85% 60% at 50% 24%, #000 30%, transparent 100%);
}
.hc-tpl-cyberpunk .hc-container, .hc-tpl-cyberpunk .hc-footer { position: relative; z-index: 1; }
.hc-tpl-cyberpunk .hc-display-name {
  color: var(--hc-accent);
  background-image: linear-gradient(100deg, var(--hc-accent) 0%, var(--hc-cyber-cyan) 25%, var(--hc-cyber-purple) 50%, var(--hc-cyber-pink) 72%, var(--hc-accent) 100%);
  background-size: 250% auto;
  filter: drop-shadow(0 0 10px var(--hc-accent-glow));
  animation: hcCyberShimmer 6s linear infinite;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hc-tpl-cyberpunk .hc-display-name {
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }
}
.hc-tpl-cyberpunk .hc-action {
  background: var(--hc-bg-card);
  border: 1px solid var(--hc-border);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
          backdrop-filter: blur(10px) saturate(140%);
  text-shadow: 0 0 6px rgba(0, 255, 163, 0.22);
}
.hc-tpl-cyberpunk .hc-action::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--hc-cyber-angle), var(--hc-accent), var(--hc-cyber-cyan), var(--hc-cyber-purple), var(--hc-cyber-pink), var(--hc-accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.hc-tpl-cyberpunk .hc-action:hover { border-color: transparent; box-shadow: 0 0 18px var(--hc-accent-glow); }
.hc-tpl-cyberpunk .hc-action:hover::before { opacity: 1; animation: hcCyberBorder 3s linear infinite; }
.hc-tpl-cyberpunk .hc-avatar-ring { animation: hcCyberRing 4.5s ease-in-out infinite; }
@keyframes hcCyberGrid { from { background-position: 0 0, 0 0; } to { background-position: 44px 44px, 44px 44px; } }
@keyframes hcCyberShimmer { to { background-position: 250% center; } }
@keyframes hcCyberBorder { to { --hc-cyber-angle: 360deg; } }
@keyframes hcCyberRing {
  0%, 100% { border-color: var(--hc-accent);       box-shadow: 0 0 10px var(--hc-accent-glow); }
  33%      { border-color: var(--hc-cyber-cyan);   box-shadow: 0 0 12px rgba(58,201,255,.5); }
  66%      { border-color: var(--hc-cyber-purple); box-shadow: 0 0 12px rgba(180,122,255,.5); }
}

/* ═══════════════════════════════════════════════════════════════════════
   §9  Template: Crypto  — deep space gradient, holo sheen, mono accents
   ═══════════════════════════════════════════════════════════════════════ */
.hc-tpl-crypto {
  --hc-accent: #f7931a;
  --hc-accent-dim: rgba(247, 147, 26, 0.12);
  --hc-accent-glow: rgba(247, 147, 26, 0.32);
  --hc-bg: #060814;
  --hc-bg-card: rgba(124, 92, 255, 0.07);
  --hc-text: #eef0ff;
  --hc-muted: rgba(238, 240, 255, 0.58);
  --hc-border: rgba(124, 92, 255, 0.26);
  --hc-ring-color: var(--hc-accent);
  --hc-ring-glow: var(--hc-accent-glow);
  --hc-font: 'Space Grotesk', 'Inter', sans-serif;
  --hc-btn-radius: 12px;
}
.hc-tpl-crypto {
  background:
    radial-gradient(circle at 18% 12%, rgba(124,92,255,0.18), transparent 45%),
    radial-gradient(circle at 84% 8%, rgba(0,229,255,0.14), transparent 42%),
    linear-gradient(180deg, #060814 0%, #0a0a1f 60%, #06060f 100%);
  background-attachment: fixed;
}
.hc-tpl-crypto .hc-action {
  background: linear-gradient(135deg, rgba(124,92,255,0.1) 0%, rgba(0,229,255,0.05) 100%);
  border: 1px solid rgba(124, 92, 255, 0.3);
}
.hc-tpl-crypto .hc-action:hover {
  border-color: var(--hc-accent);
  box-shadow: 0 0 18px rgba(247, 147, 26, 0.18), inset 0 0 18px rgba(124, 92, 255, 0.06);
  transform: translateY(-2px);
}
.hc-tpl-crypto .hc-avatar-ring {
  border-image: linear-gradient(135deg, #7c5cff, #00e5ff, #f7931a) 1;
  animation: hcCryptoRing 5s linear infinite;
}
@keyframes hcCryptoRing {
  0%, 100% { box-shadow: 0 0 8px rgba(124,92,255,.3); }
  50%      { box-shadow: 0 0 16px rgba(0,229,255,.4); }
}

/* ═══════════════════════════════════════════════════════════════════════
   §10  Template: Clean  — light, airy, professional
   ═══════════════════════════════════════════════════════════════════════ */
.hc-tpl-clean {
  --hc-accent: #0a7d5a;
  --hc-accent-dim: rgba(10, 125, 90, 0.1);
  --hc-accent-glow: rgba(10, 125, 90, 0.22);
  --hc-bg: #f6f8f7;
  --hc-bg-card: #ffffff;
  --hc-text: #16201c;
  --hc-muted: #5d6b65;
  --hc-border: rgba(0, 0, 0, 0.1);
  --hc-ring-color: var(--hc-accent);
  --hc-ring-glow: rgba(10, 125, 90, 0.18);
  --hc-font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --hc-btn-radius: 12px;
}
.hc-tpl-clean .hc-avatar-ring { animation: none; border-color: #d7e0db; }
.hc-tpl-clean .hc-action {
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.hc-tpl-clean .hc-action:hover { background: #f0f4f2; border-color: var(--hc-accent); }
.hc-tpl-clean .hc-cover { -webkit-mask-image: none; mask-image: none; }

/* ═══════════════════════════════════════════════════════════════════════
   §11  Template: Glass  — frosted gradient, deep blur
   ═══════════════════════════════════════════════════════════════════════ */
.hc-tpl-glass {
  --hc-accent: #a78bfa;
  --hc-accent-dim: rgba(167, 139, 250, 0.14);
  --hc-accent-glow: rgba(167, 139, 250, 0.3);
  --hc-bg-card: rgba(255, 255, 255, 0.08);
  --hc-text: #f0eeff;
  --hc-muted: rgba(240, 238, 255, 0.6);
  --hc-border: rgba(255, 255, 255, 0.14);
  --hc-ring-color: rgba(167, 139, 250, 0.7);
  --hc-ring-glow: rgba(167, 139, 250, 0.28);
  --hc-font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --hc-btn-radius: 18px;
}
.hc-tpl-glass { background: linear-gradient(135deg, #0f0c29 0%, #1a1040 40%, #24243e 100%); background-attachment: fixed; }
.hc-tpl-glass .hc-action {
  -webkit-backdrop-filter: blur(16px) saturate(150%);
          backdrop-filter: blur(16px) saturate(150%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.hc-tpl-glass .hc-action:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.hc-tpl-glass .hc-avatar-ring { animation: hcGlassRing 4s ease-in-out infinite; }
@keyframes hcGlassRing {
  0%, 100% { box-shadow: 0 0 8px rgba(167,139,250,.2); }
  50%      { box-shadow: 0 0 16px rgba(167,139,250,.36); }
}

/* ═══════════════════════════════════════════════════════════════════════
   §12  Template: Neon  — mono, glowing edges on black
   ═══════════════════════════════════════════════════════════════════════ */
.hc-tpl-neon {
  --hc-accent: #00ff88;
  --hc-accent-dim: rgba(0, 255, 136, 0.1);
  --hc-accent-glow: rgba(0, 255, 136, 0.4);
  --hc-bg: #060606;
  --hc-bg-card: rgba(0, 255, 136, 0.04);
  --hc-text: #d6ffe9;
  --hc-muted: rgba(0, 255, 136, 0.55);
  --hc-border: rgba(0, 255, 136, 0.22);
  --hc-ring-color: #00ff88;
  --hc-ring-glow: rgba(0, 255, 136, 0.5);
  --hc-font: 'Share Tech Mono', 'Fira Code', 'Courier New', monospace;
  --hc-btn-radius: 6px;
}
.hc-tpl-neon .hc-action {
  border: 1px solid rgba(0, 255, 136, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 14px;
}
.hc-tpl-neon .hc-action:hover {
  border-color: #00ff88;
  box-shadow: 0 0 8px rgba(0,255,136,.3), 0 0 24px rgba(0,255,136,.15), inset 0 0 8px rgba(0,255,136,.05);
  text-shadow: 0 0 8px rgba(0,255,136,.5);
}
.hc-tpl-neon .hc-display-name { text-shadow: 0 0 10px rgba(0,255,136,.5); }
.hc-tpl-neon .hc-avatar-ring { animation: hcNeonRing 2s ease-in-out infinite; }
@keyframes hcNeonRing {
  0%, 100% { box-shadow: 0 0 6px rgba(0,255,136,.4), 0 0 20px rgba(0,255,136,.15); border-color: #00ff88; }
  50%      { box-shadow: 0 0 12px rgba(0,255,136,.6), 0 0 32px rgba(0,255,136,.25); border-color: #66ffbb; }
}

/* ═══════════════════════════════════════════════════════════════════════
   §13  Template: Minimal  — light, restrained, type-led
   ═══════════════════════════════════════════════════════════════════════ */
.hc-tpl-minimal {
  --hc-accent: #1a1a1a;
  --hc-accent-dim: rgba(0, 0, 0, 0.05);
  --hc-accent-glow: rgba(0, 0, 0, 0.08);
  --hc-bg: #fafafa;
  --hc-bg-card: #ffffff;
  --hc-text: #1a1a1a;
  --hc-muted: #6b7280;
  --hc-border: rgba(0, 0, 0, 0.1);
  --hc-ring-color: #d1d5db;
  --hc-ring-glow: rgba(0, 0, 0, 0.05);
  --hc-font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --hc-btn-radius: 10px;
}
.hc-tpl-minimal .hc-avatar-ring { animation: none; border-color: #e5e7eb; }
.hc-tpl-minimal .hc-headline { color: var(--hc-text); }
.hc-tpl-minimal .hc-action { border: 1px solid #e5e7eb; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.hc-tpl-minimal .hc-action:hover { background: #f3f4f6; border-color: #d1d5db; }
.hc-tpl-minimal .hc-cover { -webkit-mask-image: none; mask-image: none; }

/* ═══════════════════════════════════════════════════════════════════════
   §14  Reduced Motion
   ═══════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .hc-container { animation: none; }
  .hc-avatar-ring { animation: none; }
  .hc-action { transition: none; animation: none; opacity: 1; }
  .hc-tpl-cyberpunk::before,
  .hc-tpl-cyberpunk .hc-display-name,
  .hc-tpl-crypto .hc-avatar-ring,
  .hc-tpl-luxury .hc-action::before { animation: none; }
  .hc-anim-rise .hc-action { animation: none; opacity: 1; transform: none; }
  .hc-anim-glow .hc-action:hover { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   §15  Responsive  (mobile-first; tune up at larger widths)
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 420px) {
  .hc-zone-grid { grid-template-columns: 1fr; }
  .hc-display-name { font-size: 21px; }
  .hc-cover { height: 140px; }
}
@media (min-width: 768px) {
  .hc-container, .hc-footer { max-width: 560px; }
  .hc-cover { height: 200px; }
}
