:root {
  --brand-color: #00BFFF; /* Cyan/Blue from Cyber4All Theme */
  --bg-color: #f0f2f5;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --card-bg: #ffffff;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-full: 9999px;
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 15px 35px rgba(0,0,0,0.1);
  --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: 420px;
  margin: 0 auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  background: var(--card-bg);
  animation: fadeUp 0.6s ease-out forwards;
}

@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; }

/* SOCIAL HUB TEMPLATE */
.social-template {
  background: #ffffff;
  min-height: 100%;
  padding-bottom: 40px;
}
.social-template .profile-header {
  background: linear-gradient(135deg, var(--brand-color) 0%, #005bb5 100%);
  padding: 40px 24px 80px;
  text-align: center;
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  margin-bottom: -50px;
}
.social-template .logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 12px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin: 0 auto 15px;
  width: fit-content;
  max-width: 85%;
}

.social-template .top-logo {
  display: block;
  max-width: 220px;
  max-height: 50px;
  width: 100%;
  object-fit: contain;
  /* Removed filter and blend modes; container handles the integration */
}
.social-template .profile-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid #fff;
  object-fit: cover;
  margin-bottom: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.social-template .name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.social-template .verified-badge {
  color: #fff;
  font-size: 16px;
}
.social-template .title {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.95;
  margin-bottom: 10px;
}
.social-template .tagline {
  font-size: 13.5px;
  opacity: 0.85;
  line-height: 1.5;
  max-width: 90%;
  margin: 0 auto;
}

.social-template .mini-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0 24px 20px;
  position: relative;
  z-index: 10;
}
.social-template .btn-circle.sm {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: var(--brand-color);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}
.social-template .btn-circle.sm:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-color);
  color: #008ccc;
}

.social-template .main-buttons {
  display: flex;
  gap: 12px;
  padding: 0 24px 30px;
}
.social-template .btn-pill.half {
  flex: 1;
  padding: 14px 12px;
  border-radius: var(--border-radius-full);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.social-template .btn-pill.solid {
  background: var(--brand-color);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-sm);
}
.social-template .btn-pill.outline {
  background: #fff;
  color: var(--brand-color);
  border: 1.5px solid var(--brand-color);
}
.social-template .btn-pill.solid:hover { background: #008ccc; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.social-template .btn-pill.outline:hover { background: #f0f7ff; transform: translateY(-2px); }

.social-template .social-icons-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 0 24px 30px;
}
.social-template .social-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.social-template .social-circle:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-md);
  background: #008ccc;
}

.social-template .vertical-links {
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.social-template .link-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 18px 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius-lg);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.social-template .link-block:hover {
  border-color: var(--brand-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--brand-color);
}
.social-template .link-block i {
  color: var(--text-secondary);
  font-size: 18px;
  transition: var(--transition);
}
.social-template .link-block:hover i {
  color: var(--brand-color);
}

/* ── QR SCAN BUTTON ──────────────────────────────────────── */
.qr-cta-wrapper {
  padding: 24px 24px 0;
}

.btn-scan-connect {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--border-radius-full);
  background: linear-gradient(135deg, var(--brand-color) 0%, #005f8a 100%);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 191, 255, 0.35);
  transition: var(--transition);
}
.btn-scan-connect i {
  font-size: 18px;
}
.btn-scan-connect:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 191, 255, 0.45);
  background: linear-gradient(135deg, #29d6ff 0%, var(--brand-color) 100%);
}
