body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #ffffff;
  color: #0f172a;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

#root {
  width: 100%;
  display: flex;
  justify-content: center;
}

.card-page-wrapper {
  width: 100%;
  max-width: 420px;
  padding: 24px 16px 44px;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Top Header */
.top-brand-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  width: 100%;
  max-width: 420px;
}

.top-brand-header img {
  width: 50px;
  height: auto;
  margin-right: 14px;
}

.top-brand-text {
  text-align: left;
}

.top-brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #00509d;
  line-height: 1.2;
}

.top-brand-sub {
  font-size: 0.95rem;
  font-weight: 600;
  color: #00509d;
  line-height: 1.2;
}

/* Executive Card - Exact 420px */
.executive-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 24px;
  box-sizing: border-box;
  margin-bottom: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.executive-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.brand-row {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
}

.brand-row img {
  width: 46px;
  height: auto;
  margin-right: 10px;
}

.brand-title-wrap {
  text-align: left;
}

.brand-logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
}

.brand-orange {
  color: #f26522;
}

.brand-blue {
  color: #00509d;
}

.brand-reg {
  font-size: 0.72rem;
  vertical-align: super;
  color: #00509d;
}

.brand-tagline {
  font-size: 0.62rem;
  color: #003366;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.1px;
  margin-top: 2px;
}

/* Person & QR Row */
.person-qr-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 16px;
}

.person-info {
  text-align: left;
  flex: 1;
  min-width: 0;
}

.person-name {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 3px 0;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.person-role {
  font-size: 0.88rem;
  color: #334155;
  margin: 0 0 8px 0;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.1px;
}

/* Skeleton Shimmer for Seamless Instant Load */
.skeleton-shimmer {
  display: inline-block;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: 6px;
  vertical-align: middle;
}

.skeleton-name {
  width: 145px;
  height: 22px;
}

.skeleton-role {
  width: 115px;
  height: 15px;
}

.skeleton-phone {
  width: 125px;
  height: 16px;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.person-phone-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.person-phone {
  font-size: 0.95rem;
  color: #1e293b;
  font-weight: 600;
  margin: 0;
  text-decoration: none;
}

.person-phone:hover {
  color: #00509d;
}

.copy-icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s ease;
  line-height: 1;
}

.copy-icon-btn:hover {
  background: #f1f5f9;
  color: #00509d;
  transform: scale(1.08);
}

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

.card-copy-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 6px;
}

.card-copy-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.btn-right-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-inline-copy {
  padding: 6px 8px;
  background: #f1f5f9;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.btn-inline-copy:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #0f172a;
}

.qr-box {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Card Bottom Divider */
.card-bottom-divider {
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
  text-align: center;
}

.card-bottom-text {
  font-size: 0.68rem;
  font-weight: 700;
  color: #004080;
  letter-spacing: 2px;
}

/* Action Buttons - 420px Aligned */
.action-buttons-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
}

.action-card-btn {
  display: flex;
  align-items: center;
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 13px 18px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.action-card-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.action-card-btn:active {
  transform: translateY(0);
}

.btn-icon-area {
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-divider {
  width: 1.5px;
  height: 24px;
  background-color: #e2e8f0;
  margin: 0 16px;
  flex-shrink: 0;
}

.btn-label {
  font-size: 0.98rem;
  font-weight: 600;
  color: #0f172a;
  flex: 1;
  text-align: left;
}

.btn-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Page Footer */
.page-brand-footer {
  text-align: center;
  margin-top: 36px;
  margin-bottom: 24px;
  width: 100%;
  max-width: 420px;
}

.footer-divider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 12px;
}

.footer-line {
  height: 1px;
  background: #e2e8f0;
  flex: 1;
}

.footer-brand-text {
  font-size: 0.65rem;
  font-weight: 700;
  color: #004080;
  letter-spacing: 2px;
  white-space: nowrap;
}

/* Action Modal (Call / Email Selection) */
.action-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.action-modal-box {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 380px;
  padding: 22px 20px 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border: 1.5px solid #e2e8f0;
  box-sizing: border-box;
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from { transform: translateY(20px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.modal-header-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.modal-close-btn {
  background: #f1f5f9;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 16px;
  transition: all 0.2s;
  line-height: 1;
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

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

.modal-option-btn {
  display: flex;
  align-items: center;
  padding: 13px 16px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  text-decoration: none;
  color: #0f172a;
  transition: all 0.2s ease;
  cursor: pointer;
  box-sizing: border-box;
  width: 100%;
}

.modal-option-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.modal-opt-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  flex-shrink: 0;
}

.modal-opt-info {
  flex: 1;
  text-align: left;
}

.modal-opt-label-row {
  display: flex;
  align-items: center;
}

.modal-opt-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.modal-opt-badge {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #e0f2fe;
  color: #00509d;
  padding: 2px 6px;
  border-radius: 5px;
  margin-left: 8px;
  line-height: 1.2;
}

.modal-opt-sub {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 3px;
  word-break: break-all;
}

/* Toast Notification for Copy */
.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 10000;
  animation: toastFade 0.25s ease-out;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

@keyframes toastFade {
  from { transform: translate(-50%, 15px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .card-page-wrapper {
    max-width: 360px;
    padding: 18px 12px 36px;
  }
  .top-brand-header,
  .executive-card,
  .action-buttons-list,
  .page-brand-footer {
    max-width: 360px;
  }
  .executive-card {
    padding: 20px 16px;
    border-radius: 18px;
  }
  .person-name {
    font-size: 1.3rem;
  }
  .person-role,
  .person-phone {
    font-size: 0.88rem;
  }
  .brand-logo-text {
    font-size: 1.15rem;
  }
  .action-card-btn {
    padding: 12px 14px;
    border-radius: 14px;
  }
  .btn-label {
    font-size: 0.92rem;
  }
}

/* Interactive QR Column & Clean Scan Box */
.qr-col-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.qr-box {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.qr-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 80, 157, 0.18);
  border-color: #00509d;
}

.qr-download-pill {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #00509d;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  line-height: 1;
}

.qr-download-pill:hover {
  background: #00509d;
  color: #ffffff;
  border-color: #00509d;
  transform: scale(1.04);
}

/* Share Card Modal */
.share-modal-box {
  max-width: 400px;
  padding: 22px 20px;
}

.share-card-preview {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.share-preview-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
  padding: 4px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.share-preview-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.share-preview-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-preview-role {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-preview-url {
  font-size: 0.74rem;
  color: #00509d;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.share-preview-copy {
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 6px;
  border-radius: 8px;
}

.share-preview-copy:hover {
  background: #f1f5f9;
  border-color: #00509d;
}

.share-grid-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.share-option-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.share-option-item:hover {
  transform: translateY(-2px);
}

.share-opt-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}

.share-option-item:hover .share-opt-icon {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.whatsapp-bg {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.linkedin-bg {
  background: linear-gradient(135deg, #0077B5, #005582);
}

.email-bg {
  background: linear-gradient(135deg, #00509d, #003366);
}

.sms-bg {
  background: linear-gradient(135deg, #0284c7, #0369a1);
}

.share-opt-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

.native-share-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.native-share-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.share-copy-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 4px 6px 4px 12px;
}

.share-url-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.8rem;
  color: #475569;
  outline: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-copy-btn {
  background: #00509d;
  color: #ffffff;
  border: none;
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.share-copy-btn:hover {
  background: #003b73;
}

/* QR Code Modal & 1:1 Download */
.qr-modal-box {
  max-width: 380px;
  text-align: center;
  padding: 24px 20px;
}

.qr-modal-desc {
  font-size: 0.8rem;
  color: #64748b;
  margin: -4px 0 16px 0;
  text-align: center;
  line-height: 1.4;
}

.qr-modal-preview-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.qr-modal-preview-box {
  background: #ffffff;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: inline-flex;
}

.qr-info-caption {
  font-size: 0.92rem;
  color: #1e293b;
  margin-bottom: 18px;
}

.qr-download-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qr-dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  text-decoration: none;
}

.qr-dl-primary {
  background: linear-gradient(135deg, #00509d, #003b73);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 80, 157, 0.25);
}

.qr-dl-primary:hover {
  box-shadow: 0 6px 18px rgba(0, 80, 157, 0.35);
  transform: translateY(-1px);
}

.qr-dl-secondary {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

.qr-dl-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.qr-dl-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.qr-dl-btn strong {
  font-size: 0.88rem;
  font-weight: 600;
}

.qr-dl-btn small {
  font-size: 0.72rem;
  opacity: 0.85;
  margin-top: 2px;
}

