/* ====================================================================
   WORLD-CLASS HUMAN-CRAFTED UX/UI DESIGN SYSTEM (2026 EDITION)
   Crafted by Senior Product Designers for Ergonomic Mobile & Desktop vCards
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Sarabun:wght@300;400;500;600;700&display=swap');

/* --- DESIGN TOKENS & OPTICAL SPACING SYSTEM --- */
:root {
  --font-family: 'Plus Jakarta Sans', 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, SF Pro Text, Menlo, monospace;
  
  --ease-out-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  --shadow-ambient: 0 30px 60px -12px rgba(0, 0, 0, 0.5), 0 18px 36px -18px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 12px 32px -8px rgba(0, 0, 0, 0.35);
  --shadow-active: 0 6px 16px -4px rgba(0, 0, 0, 0.25);
  
  --transition-fast: 0.15s var(--ease-in-out-smooth);
  --transition-normal: 0.28s var(--ease-out-expo);
  --transition-bounce: 0.45s var(--ease-out-spring);
}

/* ====================================================================
   10 CURATED COLOR PSYCHOLOGY THEMES
   ==================================================================== */

/* 1. ROSE GOLD & QUARTZ */
[data-theme="rose-gold"] {
  --bg-main: #140d12;
  --bg-surface: rgba(28, 18, 26, 0.85);
  --bg-surface-elevated: rgba(42, 26, 38, 0.92);
  --text-main: #fcf0f5;
  --text-muted: #e2a8b8;
  --text-subtle: #9e6b7a;
  --accent: #f472b6;
  --accent-light: #fbcfe8;
  --accent-dark: #be185d;
  --accent-glow: rgba(244, 114, 182, 0.28);
  --border-subtle: rgba(244, 114, 182, 0.22);
  --border-strong: rgba(244, 114, 182, 0.45);
  --glass-inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  --badge-bg: rgba(244, 114, 182, 0.14);
}

/* 2. EXECUTIVE OBSIDIAN GOLD */
[data-theme="executive"] {
  --bg-main: #0c0d10;
  --bg-surface: rgba(22, 25, 34, 0.88);
  --bg-surface-elevated: rgba(32, 36, 48, 0.94);
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-subtle: #64748b;
  --accent: #fbbf24;
  --accent-light: #fef08a;
  --accent-dark: #b45309;
  --accent-glow: rgba(251, 191, 36, 0.25);
  --border-subtle: rgba(251, 191, 36, 0.22);
  --border-strong: rgba(251, 191, 36, 0.45);
  --glass-inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --badge-bg: rgba(251, 191, 36, 0.12);
}

/* 3. ROYAL SAPPHIRE */
[data-theme="sapphire"] {
  --bg-main: #090e1a;
  --bg-surface: rgba(16, 24, 44, 0.88);
  --bg-surface-elevated: rgba(24, 36, 64, 0.94);
  --text-main: #f0f9ff;
  --text-muted: #93c5fd;
  --text-subtle: #475569;
  --accent: #3b82f6;
  --accent-light: #bfdbfe;
  --accent-dark: #1d4ed8;
  --accent-glow: rgba(59, 130, 246, 0.28);
  --border-subtle: rgba(59, 130, 246, 0.25);
  --border-strong: rgba(59, 130, 246, 0.48);
  --glass-inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --badge-bg: rgba(59, 130, 246, 0.14);
}

/* 4. EMERALD TRUST & WEALTH */
[data-theme="emerald"] {
  --bg-main: #051410;
  --bg-surface: rgba(12, 34, 27, 0.88);
  --bg-surface-elevated: rgba(20, 50, 40, 0.94);
  --text-main: #ecfdf5;
  --text-muted: #6ee7b7;
  --text-subtle: #34d399;
  --accent: #10b981;
  --accent-light: #a7f3d0;
  --accent-dark: #047857;
  --accent-glow: rgba(16, 185, 129, 0.28);
  --border-subtle: rgba(16, 185, 129, 0.25);
  --border-strong: rgba(16, 185, 129, 0.48);
  --glass-inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --badge-bg: rgba(16, 185, 129, 0.14);
}

/* 5. TITANIUM LIGHT */
[data-theme="minimal"] {
  --bg-main: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #94a3b8;
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-dark: #1e40af;
  --accent-glow: rgba(37, 99, 235, 0.18);
  --border-subtle: #cbd5e1;
  --border-strong: #94a3b8;
  --glass-inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --badge-bg: rgba(37, 99, 235, 0.08);
}

/* 6. GLASSMORPHISM MODERN */
[data-theme="glassmorphism"] {
  --bg-main: #0b1329;
  --bg-surface: rgba(255, 255, 255, 0.08);
  --bg-surface-elevated: rgba(255, 255, 255, 0.14);
  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --text-subtle: #64748b;
  --accent: #38bdf8;
  --accent-light: #bae6fd;
  --accent-dark: #0284c7;
  --accent-glow: rgba(56, 189, 248, 0.3);
  --border-subtle: rgba(255, 255, 255, 0.18);
  --border-strong: rgba(255, 255, 255, 0.38);
  --glass-inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  --badge-bg: rgba(56, 189, 248, 0.16);
}

/* 7. CYBER NEON DARK */
[data-theme="neon"] {
  --bg-main: #060913;
  --bg-surface: rgba(14, 20, 40, 0.9);
  --bg-surface-elevated: rgba(22, 32, 60, 0.95);
  --text-main: #f0fdf4;
  --text-muted: #93c5fd;
  --text-subtle: #38bdf8;
  --accent: #00f2fe;
  --accent-light: #4facfe;
  --accent-dark: #00b4d8;
  --accent-glow: rgba(0, 242, 254, 0.35);
  --border-subtle: rgba(0, 242, 254, 0.3);
  --border-strong: rgba(0, 242, 254, 0.6);
  --glass-inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  --badge-bg: rgba(0, 242, 254, 0.16);
}

/* 8. AMETHYST PRESTIGE */
[data-theme="amethyst"] {
  --bg-main: #0f0717;
  --bg-surface: rgba(26, 14, 40, 0.9);
  --bg-surface-elevated: rgba(40, 20, 60, 0.95);
  --text-main: #faf5ff;
  --text-muted: #e9d5ff;
  --text-subtle: #c084fc;
  --accent: #c084fc;
  --accent-light: #f3e8ff;
  --accent-dark: #7e22ce;
  --accent-glow: rgba(192, 132, 252, 0.3);
  --border-subtle: rgba(192, 132, 252, 0.28);
  --border-strong: rgba(192, 132, 252, 0.55);
  --glass-inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  --badge-bg: rgba(192, 132, 252, 0.15);
}

/* 9. WARM AMBER */
[data-theme="amber"] {
  --bg-main: #140e06;
  --bg-surface: rgba(36, 22, 12, 0.9);
  --bg-surface-elevated: rgba(52, 32, 16, 0.95);
  --text-main: #fffbe6;
  --text-muted: #fef08a;
  --text-subtle: #f59e0b;
  --accent: #fbbf24;
  --accent-light: #fef9c3;
  --accent-dark: #b45309;
  --accent-glow: rgba(251, 191, 36, 0.3);
  --border-subtle: rgba(251, 191, 36, 0.28);
  --border-strong: rgba(251, 191, 36, 0.55);
  --glass-inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  --badge-bg: rgba(251, 191, 36, 0.15);
}

/* 10. MIDNIGHT RUBY */
[data-theme="midnight-ruby"] {
  --bg-main: #14050a;
  --bg-surface: rgba(36, 10, 18, 0.9);
  --bg-surface-elevated: rgba(54, 16, 28, 0.95);
  --text-main: #fff1f2;
  --text-muted: #fecdd3;
  --text-subtle: #f43f5e;
  --accent: #f43f5e;
  --accent-light: #ffe4e6;
  --accent-dark: #be123c;
  --accent-glow: rgba(244, 63, 94, 0.3);
  --border-subtle: rgba(244, 63, 94, 0.28);
  --border-strong: rgba(244, 63, 94, 0.55);
  --glass-inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  --badge-bg: rgba(244, 63, 94, 0.15);
}

/* --- RESET & LAYOUT CORE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(12px, 3vw, 32px) clamp(10px, 2.5vw, 20px) 100px;
  position: relative;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-fast);
}

body::before {
  content: '';
  position: fixed;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: radial-gradient(circle at 25% 20%, var(--accent-glow) 0%, transparent 45%),
              radial-gradient(circle at 75% 80%, var(--border-subtle) 0%, transparent 45%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
  animation: organicFloat 16s ease-in-out infinite alternate;
}

@keyframes organicFloat {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.06) translate(-15px, 10px); }
  100% { transform: scale(1.03) translate(10px, -15px); }
}

.vcard-app {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ====================================================================
   DEMO NOTICE BANNER (ONLOAD & PWA WARNING BAR)
   ==================================================================== */
.demo-notice-banner {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18) 0%, rgba(244, 114, 182, 0.18) 100%);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 4px 16px var(--accent-glow);
  animation: fadeInTab 0.4s var(--ease-out-expo);
}

.demo-notice-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.btn-demo-action {
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform var(--transition-fast);
}

.btn-demo-action:hover {
  transform: scale(1.03);
}

/* SELLING POINTS GRID SECTION */
.selling-points-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 18px;
}

.selling-point-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.selling-point-item:last-child {
  margin-bottom: 0;
}

.selling-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.selling-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent);
}

.selling-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ====================================================================
   PIXEL-PERFECT 2-ROW TOP CONTROLS BAR (ZERO OVERFLOW, PERFECT BORDER)
   ==================================================================== */
.top-controls-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-inner-glow), var(--shadow-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.top-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.top-bar-row.action-nav-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.8fr;
  gap: 6px;
  width: 100%;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.theme-select {
  height: 34px;
  width: 100%;
  background: var(--bg-main);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 0 24px 0 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  box-sizing: border-box;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.control-btn {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  gap: 4px;
  white-space: nowrap;
  text-decoration: none;
  box-sizing: border-box;
  transition: all var(--transition-bounce);
  text-align: center;
  width: 100%;
}

.control-btn:active {
  transform: scale(0.95);
}

.control-btn:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent-light);
}

.btn-highlight-builder {
  background: var(--accent) !important;
  color: #000000 !important;
  border: none !important;
  box-shadow: 0 3px 10px var(--accent-glow);
}

.btn-highlight-builder:hover {
  filter: brightness(1.1);
}

.lang-toggle-group {
  display: inline-flex;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2px;
  height: 34px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.lang-btn {
  height: 28px;
  padding: 0 10px;
  border: none;
  background: transparent;
  color: var(--text-subtle);
  font-size: 0.76rem;
  font-weight: 800;
  font-family: inherit;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: var(--accent);
  color: #000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* MAIN CARD CONTAINER & PROFILE COMPONENTS */
.vcard-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-inner-glow), var(--shadow-ambient);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.vcard-header-cover {
  height: 125px;
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 50%, var(--bg-main) 100%);
  position: relative;
  overflow: hidden;
}

.vcard-header-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, var(--bg-surface) 100%);
}

.vcard-profile-header {
  padding: 0 24px 20px;
  margin-top: -65px;
  position: relative;
  text-align: center;
}

.avatar-container {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}

.avatar-img {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform var(--transition-bounce);
}

.avatar-container:hover .avatar-img {
  transform: scale(1.04) rotate(-1deg);
}

.verified-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: var(--accent);
  color: #000;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--bg-surface);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  font-weight: 800;
  font-size: 0.85rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: var(--badge-bg);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 12px #22c55e;
  animation: pulseGreen 2.2s infinite;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.profile-name {
  font-size: clamp(1.4rem, 4.5vw, 1.75rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.profile-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.profile-company {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-subtle);
  margin-bottom: 16px;
}

.skills-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
}

.skill-tag {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  transform: translateY(-1px);
}

.action-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.btn-primary-action {
  background: var(--accent);
  color: #050811;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px var(--accent-glow);
  transition: all var(--transition-bounce);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary-action:active {
  transform: scale(0.96);
}

.btn-primary-action:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-secondary-action {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-bounce);
  text-decoration: none;
  white-space: nowrap;
}

.btn-secondary-action:active {
  transform: scale(0.96);
}

.btn-secondary-action:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--accent);
  color: var(--accent-light);
  transform: translateY(-2px);
}

.quick-icon-bar {
  display: flex;
  justify-content: space-around;
  background: var(--bg-surface-elevated);
  padding: 10px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.quick-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-subtle);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  transition: all var(--transition-bounce);
  background: none;
  border: none;
  cursor: pointer;
}

.quick-icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
}

.quick-icon-btn:hover {
  color: var(--accent-light);
  transform: translateY(-2px);
}

.tab-nav-bar {
  display: flex;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  scroll-behavior: smooth;
}

.tab-nav-btn {
  flex: 1;
  min-width: 85px;
  padding: 12px 6px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-subtle);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-nav-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.tab-nav-btn:hover, .tab-nav-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--badge-bg);
}

.tab-content-panel {
  display: none;
  padding: 22px;
  animation: fadeInTab 0.32s var(--ease-out-expo);
}

.tab-content-panel.active {
  display: block;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.section-title svg {
  stroke: var(--accent);
  width: 20px;
  height: 20px;
}

.bio-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.68;
}

.nfc-card-wrapper {
  perspective: 1000px;
  margin-bottom: 22px;
}

.nfc-card-3d {
  width: 100%;
  height: 195px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.65s var(--ease-out-expo);
  cursor: pointer;
}

.nfc-card-3d.flipped {
  transform: rotateY(180deg);
}

.nfc-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.nfc-card-front {
  background: linear-gradient(135deg, rgba(28,18,26,0.95) 0%, rgba(14,13,18,0.98) 100%);
}

.nfc-card-back {
  background: linear-gradient(135deg, rgba(14,13,18,0.98) 0%, rgba(28,18,26,0.95) 100%);
  transform: rotateY(180deg);
}

.nfc-chip {
  width: 38px;
  height: 28px;
  background: linear-gradient(135deg, #fef08a 0%, #d4af37 100%);
  border-radius: 6px;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.4);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
}

.contact-item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.contact-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--badge-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
}

.contact-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-bounce);
}

.social-card:hover {
  border-color: var(--accent);
  background: var(--badge-bg);
  color: var(--accent-light);
  transform: translateY(-2px);
}

.social-card svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.services-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card {
  padding: 14px 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.service-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}

.service-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 16px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 16px 14px;
}

.vcard-footer {
  text-align: center;
  padding: 20px;
  font-size: 0.78rem;
  color: var(--text-subtle);
  border-top: 1px solid var(--border-subtle);
}

.footer-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.pwa-banner {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--badge-bg);
  border: 1px dashed var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pwa-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
}

.btn-install-pwa {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-ambient);
  transform: scale(0.92);
  transition: transform 0.3s var(--ease-out-spring);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-main);
}

.qr-canvas-container {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-md);
  display: inline-block;
  margin: 16px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.form-group {
  margin-bottom: 12px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-subtle);
  margin-bottom: 4px;
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
}

@media (max-width: 520px) {
  body {
    padding: 8px 6px 60px;
  }
  .top-controls-bar {
    padding: 8px;
  }
  .top-bar-row.action-nav-row {
    grid-template-columns: 1fr 1fr;
  }
  .vcard-profile-header {
    padding: 0 16px 20px;
  }
  .action-buttons-grid {
    grid-template-columns: 1fr;
  }
}
