/* ===== TEMPLATE PREVIEW (Appearance page) ===== */
.model1 {
  min-width: 100px;
  max-height: 320px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transition: transform 0.3s, box-shadow 0.3s;
}
.model1:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}
.col1 {
  margin-bottom: 24px;
}
.allheight {
  min-height: 100vh;
}

/* ===== SHARED TEMPLATE STYLES ===== */
.default, .template2, .template3, .template4, .template5, .template6 {
  border-radius: 28px;
  min-width: 300px;
  width: 100%;
  height: 700px;
  overflow: auto;
  padding: 40px 20px 20px;
  position: relative;
}

/* Hide scrollbar but keep scroll */
.default::-webkit-scrollbar,
.template2::-webkit-scrollbar,
.template3::-webkit-scrollbar,
.template4::-webkit-scrollbar,
.template5::-webkit-scrollbar,
.template6::-webkit-scrollbar {
  width: 0;
  display: none;
}

/* ===== TEMPLATE: Default (Purple Gradient) ===== */
.default {
  background: linear-gradient(160deg, #5434E5 0%, #7c3aed 40%, #a855f7 100%);
}

/* ===== TEMPLATE 2: Dark Elegance ===== */
.template2 {
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

/* ===== TEMPLATE 3: Sunset Coral ===== */
.template3 {
  background: linear-gradient(160deg, #f97316 0%, #ef4444 50%, #ec4899 100%);
}

/* ===== TEMPLATE 4: Ocean Teal ===== */
.template4 {
  background: linear-gradient(160deg, #06b6d4 0%, #14b8a6 50%, #22c55e 100%);
}

/* ===== TEMPLATE INNER ELEMENTS ===== */
.tmpl-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.3);
  object-fit: cover;
  margin-bottom: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.tmpl-username {
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 4px;
  display: block;
}

.tmpl-bio {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  margin-bottom: 8px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.tmpl-header-text {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.1);
  border-radius: 50px;
  display: inline-block;
  backdrop-filter: blur(10px);
}

/* ===== LINK BUTTONS ===== */
.tmpl-link {
  display: block;
  width: 85%;
  max-width: 400px;
  margin: 0 auto 10px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.tmpl-link:hover {
  background: rgba(255,255,255,0.95);
  color: #1a1a2e;
  border-color: transparent;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ===== SOCIAL ICONS (Template) ===== */
.tmpl-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  max-width: 350px;
  margin: 0 auto;
}
.tmpl-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transition: all 0.25s ease;
  text-decoration: none;
}
.tmpl-icon:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  color: #fff;
}

/* ===== SPOTLIGHT ===== */
.spotlight-wrap {
  position: relative;
  width: 85%;
  max-width: 400px;
  margin: 0 auto 12px;
}
.spotlight-link {
  animation: spotlightPulse 2s ease-in-out infinite;
  border: 2px solid rgba(255,215,0,0.5) !important;
  box-shadow: 0 0 20px rgba(255,215,0,0.3), 0 0 40px rgba(255,215,0,0.1);
  font-size: 1.05rem !important;
  width: 100% !important;
  margin: 0 !important;
}
.spotlight-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  z-index: 2;
  background: #f59e0b;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
  white-space: nowrap;
}
@keyframes spotlightPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255,215,0,0.2); }
  50% { box-shadow: 0 0 30px rgba(255,215,0,0.4), 0 0 60px rgba(255,215,0,0.15); }
}

/* ===== WATERMARK ===== */
.tmpl-watermark {
  margin-top: 32px;
  padding-bottom: 20px;
}
.tmpl-watermark-btn {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  color: rgba(255,255,255,0.7);
  padding: 10px 24px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.tmpl-watermark-btn svg {
  height: 18px;
  width: 18px;
  fill: rgba(255,255,255,0.8);
}
.tmpl-watermark-btn:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* ===== LEGACY COMPAT (keep old class names working) ===== */
.link-a {
  display: block;
  width: 85%;
  max-width: 400px;
  margin: 0 auto 10px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none !important;
}
.link-a:hover {
  background: rgba(255,255,255,0.95);
  color: #1a1a2e !important;
  border-color: transparent;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.border {
  border: 1.5px solid rgba(255,255,255,0.2);
}

/* ===== TEMPLATE 5: Neon Glass ===== */
.template5 {
  background: #0a0a1a;
  overflow: hidden;
}

/* Floating neon glow blobs */
.tmpl5-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  pointer-events: none;
  animation: tmpl5-float 10s ease-in-out infinite;
}
.tmpl5-glow-1 {
  width: 300px; height: 300px;
  background: #8b5cf6;
  top: -60px; left: -60px;
  animation-delay: 0s;
}
.tmpl5-glow-2 {
  width: 250px; height: 250px;
  background: #06b6d4;
  bottom: -40px; right: -40px;
  animation-delay: 3s;
}
@keyframes tmpl5-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 25px) scale(0.9); }
}

/* Avatar */
.tmpl5-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(139,92,246,0.5);
  box-shadow: 0 0 30px rgba(139,92,246,0.3), 0 0 60px rgba(6,182,212,0.15);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

/* Username */
.tmpl5-username {
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  display: block;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.3px;
}

/* Bio */
.tmpl5-bio {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto 12px;
  position: relative;
  z-index: 1;
}

/* Header badge */
.tmpl5-header {
  display: inline-block;
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(6,182,212,0.2));
  border: 1px solid rgba(139,92,246,0.25);
  color: rgba(255,255,255,0.85);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 1;
}

/* Links container */
.tmpl5-links {
  width: 100%;
  padding: 8px 0;
  position: relative;
  z-index: 1;
}

/* Individual link */
.tmpl5-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 85%;
  max-width: 400px;
  margin: 0 auto 12px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.tmpl5-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(6,182,212,0.15));
  opacity: 0;
  transition: opacity 0.3s;
}
.tmpl5-link:hover::before {
  opacity: 1;
}
.tmpl5-link:hover {
  border-color: rgba(139,92,246,0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(139,92,246,0.2), 0 4px 15px rgba(6,182,212,0.1);
  color: #fff;
}
.tmpl5-link-text {
  position: relative;
  z-index: 1;
}
.tmpl5-link-arrow {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}
.tmpl5-link:hover .tmpl5-link-arrow {
  color: #a78bfa;
  transform: translate(2px, -2px);
}

/* ===== TEMPLATE 6: Blue Card (Social Brand) ===== */
.template6 {
  background: #f5f0eb;
  padding: 0 0 30px 0 !important;
  text-align: center;
}

/* Blue Header Banner */
.tmpl6-banner {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #1a3a8a, #2b52c4);
  border-radius: 28px 28px 0 0;
  position: relative;
}
.tmpl6-share-icon {
  position: absolute;
  top: 16px;
  right: 20px;
  color: rgba(255,255,255,0.7);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
}
.tmpl6-share-icon:hover {
  color: #fff;
}

/* Avatar */
.tmpl6-avatar-wrap {
  margin-top: -55px;
  position: relative;
  z-index: 2;
}
.tmpl6-avatar {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
  background: #fff;
}
.tmpl6-avatar-placeholder {
  width: 110px;
  height: 110px;
  background: #e0e0e0;
  border: 4px solid #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #999;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

/* Username */
.tmpl6-username {
  display: block;
  color: #1a1a2e;
  font-weight: 800;
  font-size: 1.25rem;
  margin-top: 12px;
  margin-bottom: 2px;
}

/* Bio */
.tmpl6-bio {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 10px;
  padding: 0 20px;
}

/* Header text */
.tmpl6-header {
  color: #555;
  font-size: 0.85rem;
  margin-bottom: 10px;
  padding: 0 20px;
}

/* Social Icons Row */
.tmpl6-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 10px 20px 20px;
  flex-wrap: wrap;
}
.tmpl6-social-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.tmpl6-social-icon:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  color: #fff;
}

/* Platform colors */
.tmpl6-pinterest  { background: #E60023; }
.tmpl6-instagram  { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.tmpl6-linkedin   { background: #0A66C2; }
.tmpl6-x          { background: #14171A; }
.tmpl6-facebook   { background: #4267B2; }
.tmpl6-tiktok     { background: #010101; }
.tmpl6-youtube    { background: #FF0000; }
.tmpl6-snapchat   { background: #FFFC00; color: #000 !important; }

/* Links */
.tmpl6-links {
  padding: 4px 24px;
}
.tmpl6-link {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  padding: 15px 20px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #2b52c4, #3b6ae8);
  border-radius: 50px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(43,82,196,0.25);
}
.tmpl6-link:hover {
  background: linear-gradient(135deg, #1a3a8a, #2b52c4);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(43,82,196,0.35);
  color: #fff;
}
.tmpl6-link-icon {
  position: absolute;
  right: 20px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.tmpl6-link:hover .tmpl6-link-icon {
  color: rgba(255,255,255,0.9);
}

/* Watermark */
.tmpl6-watermark {
  margin-top: 24px;
  padding-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.tmpl6-watermark-icon {
  color: #2b52c4;
  font-size: 1.4rem;
  font-weight: 800;
}
.tmpl6-watermark-text {
  color: #2b52c4;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
