:root {
  --brand-color: #0070D7;
  --bg-color: #0f172a;
  --corporate-navy: #122436;
  --text-primary: #ffffff;
  --text-secondary: #64748b;
  --card-bg: #ffffff;
  --accent-glow: rgba(0, 112, 215, 0.4);
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-full: 9999px;
  --shadow-lg: 0 15px 35px rgba(0,0,0,0.5);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  padding: 20px 10px;
}

.card-root {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  background: #122436;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

body::before {
    content: '';
    position: fixed;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
}

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

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #333;
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--border-radius-full);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 14px;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

h1, h2, h3 { font-family: 'Outfit', sans-serif; }

a[href=""], a[href="null"], a[href="undefined"] { display: none !important; }

/* CORPORATE TEMPLATE */
.corporate-template {
  background: #122436;
  color: #ffffff; 
  font-family: 'Inter', sans-serif;
  min-height: 100%;
}
.corporate-template .name {
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}
.corporate-template .title {
  color: #ffffff;
  opacity: 0.9;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
}
.corporate-template .tagline {
  color: #ffffff;
  opacity: 0.8;
  font-size: 14px;
  line-height: 1.6;
  max-width: 90%;
}
.corporate-template .top-section {
  padding: 50px 24px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.corporate-template .logo-img {
  max-width: 580px;
  max-height: 180px;
  margin-bottom: 5px; /* Reduced from 20px */
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.profile-container {
    position: relative;
    margin-bottom: 30px;
}

.profile-container::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 3px solid var(--brand-color);
    opacity: 0.5;
    animation: pulseProfile 2s infinite;
}

@keyframes pulseProfile {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.15); opacity: 0; }
}

.corporate-template .profile-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  background: #fff;
  position: relative;
  z-index: 2;
}

.corporate-template .buttons-grid-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 0 24px 30px;
}
.corporate-template .btn-rounded-outline {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  transition: var(--transition);
  cursor: pointer;
}
.corporate-template .btn-rounded-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  border-color: #fff;
}

.corporate-template .action-buttons-single {
  padding: 0 30px 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.corporate-template .btn-save-contact {
  width: 100%;
  background: #ffffff;
  color: var(--corporate-navy);
  border: none;
  border-radius: 18px;
  padding: 18px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Outfit', sans-serif;
  text-transform: none;
  letter-spacing: normal;
}
.corporate-template .btn-save-contact:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255,255,255,0.1);
}

.corporate-template .btn-share-contact {
  width: 100%;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 18px;
  padding: 16px;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}
.corporate-template .btn-share-contact:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.4);
}

.qr-cta-wrapper {
  padding: 0 30px 40px;
  display: flex;
  justify-content: center;
}

.btn-scan-connect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 20px;
  border-radius: var(--border-radius-full);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  backdrop-filter: blur(10px);
}
.btn-scan-connect:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.btn-scan-connect.corporate {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}
.btn-scan-connect.corporate:hover {
  background: rgba(255,255,255,0.22);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.btn-scan-connect::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
}

.btn-scan-connect:hover::after {
  animation: shine 0.75s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 150%; }
}
