/* Public Card Page Styles — matching myqrcards.com style */

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: #F0F2F5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.card-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
}

/* Loading / Error */
.card-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; gap: 16px; color: #6B7280; }
.card-loading-spinner { width: 40px; height: 40px; border: 3px solid #E5E7EB; border-top-color: #2B3E6F; border-radius: 50%; animation: spin 0.8s linear infinite; }
.card-error { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; gap: 8px; color: #6B7280; padding: 20px; text-align: center; }
.card-error h2 { color: #1A1D23; font-size: 20px; }

/* Cover / Header */
.card-cover {
  height: 180px; position: relative;
  background: linear-gradient(135deg, #f0f2f5 0%, #e8edf5 25%, #d0dff0 50%, #7BADC2 75%, #2B3E6F 100%);
  overflow: hidden;
}
.card-cover::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.3) 40%, transparent 60%),
    linear-gradient(165deg, transparent 30%, rgba(120,170,210,0.3) 50%, rgba(43,62,111,0.4) 80%),
    linear-gradient(125deg, rgba(255,255,255,0.5) 0%, transparent 50%);
}
.card-cover::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(150deg, transparent 40%, rgba(43,62,111,0.25) 60%, rgba(43,62,111,0.5) 85%),
    linear-gradient(170deg, transparent 50%, rgba(123,173,194,0.3) 70%, rgba(43,62,111,0.35) 100%);
  clip-path: polygon(0% 40%, 100% 0%, 100% 100%, 0% 100%);
}
.card-cover-wave {
  position: absolute; bottom: 0; left: 0; right: 0; height: 40px;
  background: #fff; border-radius: 20px 20px 0 0; z-index: 3;
}
.card-company-badge {
  position: absolute; top: 16px; left: 16px; z-index: 5;
  background: rgba(0,0,0,0.55); padding: 8px 14px;
  border-radius: 10px; display: flex; align-items: center; gap: 10px;
  backdrop-filter: blur(6px);
}
.card-company-badge img { height: 20px; width: auto; filter: brightness(0) invert(1); }
.card-company-badge-text { color: #fff; }
.card-company-badge-name { font-size: 13px; font-weight: 600; }
.card-company-badge-desc { font-size: 10px; opacity: 0.8; }

/* Top Actions on cover (Lang Switch + QR Button) */
.card-top-actions {
  position: absolute; top: 16px; right: 16px; z-index: 6;
  display: flex; align-items: center; gap: 8px;
}
.card-lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 999px;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.28);
}
.card-lang-btn {
  border: none; background: transparent; color: rgba(255,255,255,0.85);
  font-family: inherit; font-size: 11px; font-weight: 700;
  padding: 5px 9px; border-radius: 999px; cursor: pointer;
  letter-spacing: 0.4px; transition: all 0.18s ease;
}
.card-lang-btn:hover { color: #fff; }
.card-lang-btn.active {
  background: #fff; color: #2B3E6F;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

/* QR Button on cover */
.card-qr-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,0.42); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: #fff; transition: all 0.2s;
}
.card-qr-btn:hover { background: rgba(0,0,0,0.6); transform: scale(1.06); }

/* QR Modal */
.card-qr-modal {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.card-qr-modal.active { display: flex; animation: fadeIn 0.2s ease; }
.card-qr-modal-content {
  background: #fff; border-radius: 20px; padding: 32px 28px;
  max-width: 340px; width: 90%; text-align: center;
  position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: scaleIn 0.2s ease;
}
.card-qr-modal-close {
  position: absolute; top: 12px; right: 16px; background: none;
  border: none; font-size: 28px; cursor: pointer; color: #9CA3AF;
  line-height: 1; padding: 4px;
}
.card-qr-modal-title { font-size: 18px; font-weight: 700; color: #1A1D23; margin-bottom: 8px; }
.card-qr-modal-desc { font-size: 13px; color: #6B7280; margin-bottom: 20px; line-height: 1.4; }
.card-qr-img { display: flex; justify-content: center; margin-bottom: 14px; }
.card-qr-img img { border: 1px solid #E5E7EB; }
.card-qr-formats {
  display: flex; justify-content: center; gap: 6px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.card-qr-format-link {
  font-size: 11px; font-weight: 600; color: #2B3E6F;
  background: #F3F5F9; border: 1px solid #E2E8F0;
  padding: 5px 10px; border-radius: 8px; text-decoration: none;
  transition: all 0.15s ease;
}
.card-qr-format-link:hover { background: #2B3E6F; color: #fff; border-color: #2B3E6F; }
.card-qr-modal-url { font-size: 11px; color: #9CA3AF; word-break: break-all; }

/* Wallet / Offline Button & Modal */
.card-wallet-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: calc(100% - 32px); margin: 8px 16px;
  padding: 14px 16px; background: linear-gradient(135deg, #1E2C52, #2B3E6F);
  color: #fff; border: none; border-radius: 14px;
  font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 12px rgba(43,62,111,0.22);
  transition: all 0.2s;
}
.card-wallet-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(43,62,111,0.32); }
.card-wallet-btn:active { transform: scale(0.98); }

.wallet-modal-content { max-width: 380px; text-align: left; padding: 26px 22px; }
.wallet-option-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.wallet-native-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px 16px; border-radius: 12px;
  background: #000; color: #fff; text-decoration: none;
  font-size: 14px; font-weight: 600; border: 1px solid #222;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.wallet-native-btn.google { background: #1F1F1F; }
.wallet-native-btn:hover { opacity: 0.92; transform: translateY(-1px); }
.wallet-option-card {
  display: flex; align-items: flex-start; gap: 12px;
  width: 100%; padding: 13px 14px; border-radius: 14px;
  background: #F6F8FB; border: 1px solid #E2E8F0;
  text-decoration: none; color: #1A1D23; cursor: pointer;
  font-family: inherit; text-align: left; transition: all 0.18s ease;
}
.wallet-option-card:hover { background: #EDF2F9; border-color: #CBD5E1; }
.wallet-option-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: #2B3E6F; color: #fff; display: flex;
  align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0;
}
.wallet-option-title { font-size: 14px; font-weight: 700; color: #1A1D23; margin-bottom: 3px; }
.wallet-option-desc { font-size: 12px; color: #64748B; line-height: 1.4; }
.wallet-pwa-guide {
  display: none; margin-top: 10px; padding: 12px 14px;
  border-radius: 12px; background: #FFF8F6; border: 1px solid #FCDAD3;
  font-size: 12px; color: #334155; line-height: 1.55;
}
.wallet-pwa-guide.active { display: block; }
.wallet-offline-status {
  margin-top: 14px; padding: 8px 12px; border-radius: 10px;
  background: #ECFDF5; color: #065F46; font-size: 11px;
  font-weight: 600; text-align: center;
}

/* Share Button */
.card-share-btn {
  display: block; width: calc(100% - 32px); margin: 8px 16px;
  padding: 14px; background: #fff; color: #2B3E6F;
  border: 1.5px solid #2B3E6F; border-radius: 14px;
  font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: all 0.2s;
}
.card-share-btn:hover { background: #2B3E6F; color: #fff; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

/* Photo */
.card-photo-wrapper {
  display: flex; justify-content: center;
  margin-top: -64px; position: relative; z-index: 3;
}
.card-photo {
  width: 128px; height: 128px; border-radius: 50%;
  border: 4px solid #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  object-fit: cover; object-position: top; background: #2B3E6F;
}
.card-photo-initials {
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 700; color: #fff;
}

/* Info */
.card-info { text-align: center; padding: 16px 24px 4px; }
.card-name { font-size: 22px; font-weight: 700; color: #1A1D23; margin-bottom: 6px; line-height: 1.3; }
.card-position { font-size: 14px; color: #6B7280; line-height: 1.4; }
.card-bio { font-size: 13px; color: #9CA3AF; margin-top: 10px; line-height: 1.5; font-style: italic; }

/* Contact Fields */
.card-fields { padding: 20px 16px 8px; display: flex; flex-direction: column; gap: 10px; }
.card-field {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; background: #F6F7F9; border-radius: 14px;
  text-decoration: none; color: inherit;
  transition: all 0.2s ease; cursor: pointer;
  border: 1px solid transparent;
}
.card-field:hover { background: #EEF0F4; border-color: #E0E3E8; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.card-field:active { transform: scale(0.98); }
.card-field-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.card-field-content { flex: 1; min-width: 0; }
.card-field-label { font-size: 11px; color: #9CA3AF; font-weight: 500; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 2px; }
.card-field-value { font-size: 15px; font-weight: 500; color: #1A1D23; word-break: break-word; }

/* Socials Section — myqrcards style */
.card-socials { padding: 16px 16px 8px; }
.card-socials-title {
  font-size: 14px; font-weight: 600; color: #1A1D23;
  padding: 0 4px 14px; display: flex; align-items: center; gap: 8px;
}
.card-socials-title::before {
  content: ''; width: 20px; height: 2px; border-radius: 2px;
  display: inline-block;
}
.card-socials-list {
  display: flex; gap: 8px; flex-wrap: nowrap; justify-content: center;
  padding: 0 8px;
}
.card-social-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 6px; background: #F6F7F9; border-radius: 12px;
  text-decoration: none; color: inherit;
  flex: 1 1 0; min-width: 0; max-width: 80px;
  transition: all 0.2s; border: 1px solid transparent;
}
.card-social-item:hover { background: #EEF0F4; border-color: #E0E3E8; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.card-social-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
}
.card-social-icon.whatsapp { background: #25D366; }
.card-social-icon.telegram { background: #229ED9; }
.card-social-icon.vk { background: #4C75A3; }
.card-social-icon.linkedin { background: #0077B5; }
.card-social-icon.youtube { background: #FF0000; }
.card-social-icon.instagram { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF, #515BD4); }
.card-social-icon.facebook { background: #1877F2; }
.card-social-icon.yandex_music { background: linear-gradient(135deg, #FFCC00, #FF3333); }
.card-social-icon.twitter { background: #000000; }
.card-social-icon.ok { background: #EE8208; }
.card-social-icon.rutube { background: #1C1C28; }
.card-social-icon.max { background: linear-gradient(135deg, #00AAFF, #6B3FA0, #9B30FF); }
.card-social-name { font-size: 11px; font-weight: 600; color: #1A1D23; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.card-social-value { display: none; }

/* Company Info */
.card-company-info {
  text-align: center; padding: 12px 16px;
}
.card-company-name-text { font-size: 14px; color: #6B7280; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 6px; }

/* Company Section */
.card-company-section { padding: 8px 0 0; }
.card-company-section-title {
  font-size: 15px; font-weight: 700; color: #1A1D23;
  padding: 8px 20px 4px; display: flex; align-items: center; gap: 10px;
}
.card-company-section-logo {
  height: 22px; width: auto; object-fit: contain;
}
.card-company-section .card-fields { padding-top: 10px; }

/* Divider */
.card-divider { height: 1px; background: #F0F0F0; margin: 8px 16px; }

/* Contact Form — myqrcards style */
.card-contact-form-section {
  margin: 12px 16px; padding: 24px 20px;
  background: #F6F7F9; border-radius: 16px;
}
.card-contact-form-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.card-contact-form-title { font-size: 16px; font-weight: 600; color: #1A1D23; }
.card-contact-form-edit { background: none; border: none; font-size: 16px; cursor: pointer; color: #9CA3AF; }
.card-form-input {
  width: 100%; padding: 14px 0; border: none; border-bottom: 1px solid #E5E7EB;
  font-size: 15px; font-family: inherit; background: transparent;
  color: #1A1D23; transition: border-color 0.2s;
}
.card-form-input:focus { outline: none; border-bottom-color: #E8553D; }
.card-form-input::placeholder { color: #C0C4CC; }
.card-form-submit {
  width: 100%; padding: 14px; margin-top: 20px;
  background: #fff; color: #E8553D; border: 1.5px solid #E8553D;
  border-radius: 12px; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.card-form-submit:hover { background: #E8553D; color: #fff; }
.card-form-submit:active { transform: scale(0.98); }
.card-form-consent { font-size: 11px; color: #9CA3AF; margin-top: 14px; display: flex; align-items: flex-start; gap: 8px; line-height: 1.4; }
.card-form-consent input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; }
.card-form-success { text-align: center; padding: 20px; color: #10B981; font-weight: 600; font-size: 15px; }

/* Save Contact Button */
.card-save-btn {
  display: block; width: calc(100% - 32px); margin: 12px 16px;
  padding: 16px; background: #E8553D; color: #fff;
  border: none; border-radius: 14px; font-size: 16px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 12px rgba(232,85,61,0.3);
  transition: all 0.2s;
}
.card-save-btn:hover { background: #D04A34; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,85,61,0.4); }
.card-save-btn:active { transform: scale(0.98); }

/* Yandex Map */
.card-map-container {
  padding: 0 16px 8px;
  margin-top: -4px;
}
#card-ymap, .card-map-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.card-route-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  padding: 12px;
  background: linear-gradient(135deg, #E8553D, #D04A34);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(232,85,61,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card-route-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,85,61,0.4);
}
.card-route-btn:active { transform: scale(0.98); }

/* Footer */
.card-footer {
  text-align: center; padding: 20px 20px 96px; font-size: 11px;
  color: #D1D5DB; border-top: 1px solid #F3F4F6;
}

/* Theme Toggle Button on Cover */
.card-theme-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.42); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.28); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #fff; transition: all 0.2s;
}
.card-theme-btn:hover { background: rgba(0,0,0,0.62); transform: scale(1.06); }

/* 1-Tap Copy Button inside Contact Fields */
.card-copy-btn {
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid rgba(43,62,111,0.12); background: rgba(255,255,255,0.85);
  color: #64748B; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer; flex-shrink: 0;
  transition: all 0.16s ease;
}
.card-copy-btn:hover { background: #2B3E6F; color: #fff; border-color: #2B3E6F; transform: scale(1.06); }
.card-copy-btn:active { transform: scale(0.94); }

/* Copy Toast */
.card-copy-toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-16px);
  background: rgba(17, 24, 39, 0.92); color: #fff; backdrop-filter: blur(10px);
  padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22); z-index: 2000;
  opacity: 0; pointer-events: none; transition: all 0.22s ease;
}
.card-copy-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Company Materials & Booking CTA Section */
.card-materials-section { padding: 12px 16px 6px; }
.card-materials-title {
  font-size: 14px; font-weight: 700; color: #1A1D23;
  padding: 0 4px 12px; display: flex; align-items: center; gap: 8px;
}
.card-booking-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 16px; margin-bottom: 12px;
  background: linear-gradient(135deg, #2B3E6F 0%, #3D5A99 100%);
  color: #fff; text-decoration: none; border-radius: 14px;
  font-size: 15px; font-weight: 600;
  box-shadow: 0 4px 14px rgba(43,62,111,0.25);
  transition: all 0.2s ease;
}
.card-booking-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(43,62,111,0.35); }
.card-materials-list { display: flex; flex-direction: column; gap: 8px; }
.card-material-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: 14px;
  background: #F6F8FB; border: 1px solid #E5EAF2;
  text-decoration: none; color: inherit; transition: all 0.18s ease;
}
.card-material-item:hover {
  background: #EDF2F9; border-color: #CBD5E1; transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(43,62,111,0.08);
}
.card-material-icon {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, rgba(43,62,111,0.12), rgba(123,173,194,0.2));
  color: #2B3E6F; display: flex; align-items: center; justify-content: center;
  font-size: 19px; flex-shrink: 0;
}
.card-material-body { flex: 1; min-width: 0; }
.card-material-name { font-size: 14px; font-weight: 600; color: #1A1D23; line-height: 1.3; }
.card-material-sub { font-size: 12px; color: #64748B; margin-top: 2px; }
.card-material-arrow { font-size: 15px; color: #7BADC2; font-weight: 700; flex-shrink: 0; }

/* Paper Business Card Camera Upload in Contact Form */
.card-photo-attach-wrap { margin-top: 14px; }
.card-photo-attach-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px 14px; border-radius: 12px;
  border: 1.5px dashed #CBD5E1; background: rgba(255,255,255,0.7);
  color: #2B3E6F; font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: all 0.18s ease;
}
.card-photo-attach-btn:hover { border-color: #2B3E6F; background: #fff; }
.card-photo-attach-preview {
  display: none; align-items: center; gap: 10px; margin-top: 10px;
  padding: 8px 10px; border-radius: 10px; background: #ECFDF5; border: 1px solid #A7F3D0;
  font-size: 12px; color: #065F46; font-weight: 600;
}
.card-photo-attach-preview.active { display: flex; }
.card-photo-attach-preview img { width: 48px; height: 34px; object-fit: cover; border-radius: 6px; }
.card-photo-attach-remove {
  margin-left: auto; background: none; border: none; color: #EF4444;
  font-size: 16px; cursor: pointer; padding: 2px 6px;
}

/* Sticky Glassmorphic Bottom Action Bar */
.card-sticky-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 90;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.08);
  display: flex; align-items: center; gap: 8px;
}
.card-sticky-save {
  flex: 1; padding: 12px 14px; border-radius: 12px; border: none;
  background: linear-gradient(135deg, #E8553D, #D04A34); color: #fff;
  font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 12px rgba(232,85,61,0.28);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  white-space: nowrap; transition: transform 0.15s ease;
}
.card-sticky-save:active { transform: scale(0.97); }
.card-sticky-icon-btn {
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid #E2E8F0; background: #F8FAFC; color: #2B3E6F;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; text-decoration: none; cursor: pointer; flex-shrink: 0;
  transition: all 0.16s ease;
}
.card-sticky-icon-btn:hover { background: #2B3E6F; color: #fff; border-color: #2B3E6F; }

/* ==========================================
   DARK THEME ([data-theme="dark"])
   ========================================== */
html[data-theme="dark"] body { background: #090E1A; color: #F1F5F9; }
html[data-theme="dark"] .card-container { background: #111827; box-shadow: 0 0 40px rgba(0,0,0,0.5); }
html[data-theme="dark"] .card-cover-wave { background: #111827; }
html[data-theme="dark"] .card-photo { border-color: #111827; }
html[data-theme="dark"] .card-name,
html[data-theme="dark"] .card-socials-title,
html[data-theme="dark"] .card-company-section-title,
html[data-theme="dark"] .card-materials-title,
html[data-theme="dark"] .card-contact-form-title,
html[data-theme="dark"] .card-qr-modal-title,
html[data-theme="dark"] .wallet-option-title { color: #F8FAFC; }
html[data-theme="dark"] .card-position,
html[data-theme="dark"] .card-qr-modal-desc,
html[data-theme="dark"] .wallet-option-desc,
html[data-theme="dark"] .card-material-sub { color: #94A3B8; }
html[data-theme="dark"] .card-bio { color: #CBD5E1; }
html[data-theme="dark"] .card-field,
html[data-theme="dark"] .card-social-item,
html[data-theme="dark"] .card-material-item,
html[data-theme="dark"] .card-contact-form-section,
html[data-theme="dark"] .wallet-option-card {
  background: #1E293B; border-color: #334155; color: #F1F5F9;
}
html[data-theme="dark"] .card-field:hover,
html[data-theme="dark"] .card-social-item:hover,
html[data-theme="dark"] .card-material-item:hover {
  background: #263449; border-color: #475569;
}
html[data-theme="dark"] .card-field-value,
html[data-theme="dark"] .card-social-name,
html[data-theme="dark"] .card-material-name { color: #F8FAFC; }
html[data-theme="dark"] .card-field-label { color: #94A3B8; }
html[data-theme="dark"] .card-copy-btn {
  background: #0F172A; border-color: #334155; color: #CBD5E1;
}
html[data-theme="dark"] .card-copy-btn:hover { background: #7BADC2; color: #0F172A; border-color: #7BADC2; }
html[data-theme="dark"] .card-company-section-logo { filter: brightness(0) invert(1); }
html[data-theme="dark"] .card-divider { background: #1E293B; }
html[data-theme="dark"] .card-share-btn { background: transparent; color: #7BADC2; border-color: #7BADC2; }
html[data-theme="dark"] .card-share-btn:hover { background: #7BADC2; color: #0F172A; }
html[data-theme="dark"] .card-form-input { color: #F8FAFC; border-bottom-color: #334155; }
html[data-theme="dark"] .card-form-input::placeholder { color: #64748B; }
html[data-theme="dark"] .card-form-submit { background: #1E293B; }
html[data-theme="dark"] .card-photo-attach-btn { background: #0F172A; border-color: #475569; color: #7BADC2; }
html[data-theme="dark"] .card-qr-modal-content { background: #1E293B; color: #F8FAFC; border: 1px solid #334155; }
html[data-theme="dark"] .card-qr-format-link { background: #0F172A; border-color: #334155; color: #E2E8F0; }
html[data-theme="dark"] .card-footer { border-top-color: #1E293B; color: #64748B; }
html[data-theme="dark"] .card-sticky-bar {
  background: rgba(15, 23, 42, 0.88); border-top-color: rgba(51, 65, 85, 0.85);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] .card-sticky-icon-btn {
  background: #1E293B; border-color: #334155; color: #E2E8F0;
}
html[data-theme="dark"] .card-sticky-icon-btn:hover { background: #7BADC2; color: #0F172A; }

/* Stagger animation */
.card-wrapper { animation: fadeInUp 0.4s ease; }
.card-field { animation: fadeInUp 0.4s ease backwards; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
