.video-wrapper {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.video-wrapper img,
.video-wrapper iframe,
.video-wrapper video {
  display: block;
  width: 100%;
  border-radius: 0;
}
.about-section {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 2.5rem;
}
.about-header {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  color: #333333;
}
.about-content {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 2rem;
}
.about-cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
/* Highlighted Save Contact Button */
.save-contact-highlight {
  text-align: center;
  margin: 2rem 0;
}
.cta-grid {
  margin: 2rem auto;
}
.about-card {
  margin: 3rem auto;
  padding: 2rem;
}
.save-contact-highlight .cta-tile {
  display: inline-block;
  background: white !important;
  color: var(--banner-color) !important;
  border: 2px solid var(--banner-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 16px 32px;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 12px;
  transition: background 0.3s ease, color 0.3s ease;
}
.save-contact-highlight .cta-tile {
  display: inline-block;
  border: 2px solid var(--banner-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 16px 32px;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 12px;
  transition: background 0.3s ease, color 0.3s ease;
  background: var(--banner-color);
  color: white !important;
}
3s ease-in-out;
  transform: scale(1);
}

.custom-link-card:hover {
  transform: scale(1.025);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.custom-link-card img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
}
.link-meta {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.link-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}
.link-meta a {
  margin-top: 0.25rem;
  font-size: 0.95rem;
  color: #6b46c1;
  text-decoration: none;
  transition: color 0.2s ease;
}
.link-meta a {
  margin-top: 0.25rem;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease;
  color: #4c1d95;
}
display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
  }

  /* Individual Link Card */
  .custom-link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.25s ease-in-out;
  }

  .custom-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  }

  /* Thumbnail Image */
  .custom-link-card img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
  }

  /* Link Label and Button */
  .link-meta {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }

  .link-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
  }

  .link-meta a {
    margin-top: 0.25rem;
    font-size: 0.95rem;
    color: #6b46c1;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .link-meta a:hover {
    color: #4c1d95;
  }
  @media (max-width: 768px) {
    .profile-card .profile-photo-wrapper img {
      width: 128px !important;
      height: 128px !important;
    }

    .profile-card .profile-photo-wrapper {
      top: -64px !important;
    }
  }
  @media (max-width: 768px) {
    .profile-img {
      width: 200px !important;
      height: 200px !important;
    }
    /* Adjust photo wrapper vertical offset if needed */
    .profile-card > div[style*="position: absolute"] {
      top: 20px !important;
    }
  }
  @media (max-width: 768px) {
    .profile-header-text {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .profile-header-text .organization {
      text-align: center;
      margin: 0 auto;
    }
  }

  @media (max-width: 768px) {
    .profile-card {
      margin-top: 40px !important;
    }
  }

@media (max-width: 768px) {
}

/* Pill-style Dark Mode Toggle */
ground-color: var(--banner-color);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

html { scroll-behavior: smooth; }
.fade-in-section {
opacity: 0;
transform: translateY(20px);
transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-section.visible {
opacity: 1;
transform: none;
}
body {
              font-family: 'Poppins', sans-serif;
              background: #f8f9fa;
              color: #333;
              margin: 0;
              padding: 0;
}
/* Remove body background when animated background is active */
body:has(.abt-bg-layer) {
  background: transparent !important;
              display: flex;
              justify-content: center;
              align-items: center;
              flex-direction: column;
              min-height: 100vh;
          }

          
          

          @media (max-width: 768px) {
/* Optimize contact details inside the profile card */
.profile-card p {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 10px 0; /* Optional: adjust spacing as needed */
}
.profile-card p i {
  margin-bottom: 5px; /* Adds spacing between the icon and the text */
}
}

          

          /* Profile Container */
          .profile-container {
  width: 90%;
  max-width: 820px;
  background: white;
  border-radius: 12px;
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 40px 30px; /* Increased padding */
  margin-top: 40px; /* Increased margin */
  transition: transform 0.2s ease-in-out;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.08);
  margin-top: 50px; /* 🔹 Pushes the name and title lower */

}

@media (max-width: 768px) {
}

@media (max-width: 480px) {
}

          

          

          /* Profile Image */
          .profile-img {
            width: 300px;
            height: 300px;
            max-width: none;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid white;
            box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
            margin-top: -10px;
          }

          /* Name & Title */
          .profile-name {
              font-size: 1.8rem;
              font-weight: bold;
              margin-top: px;
          }

          /* Ensure profile-name-container is positioned relative */
.profile-name {
  font-size: 2rem; /* Default size */
  font-weight: bold;
  max-width: 100%;
  text-overflow: ellipsis; /* Truncates long text */
  overflow: hidden;
}
@media (max-width: 768px) {
  .profile-name {
      font-size: 1.5rem; /* Shrinks text for mobile */
      margin-top: 20px; /* 🔹 Slightly less spacing on mobile */
      margin-top: 10px; /* 🔹 Prevents too much spacing on smaller screens */

  }
}

@media (max-width: 480px) {
  .profile-name {
      font-size: 1.2rem; /* Further shrinks text for small screens */
  }
}

         

/* CTA Grid - NEW */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 30px auto;
  max-width: 600px;
  padding: 0 10px;
}

/* Center a lone contact CTA on desktop instead of left column. */
@media (min-width: 601px) {
  .about-cta-grid.about-cta-grid--single {
    grid-template-columns: minmax(220px, 420px);
    justify-content: center;
  }
}
@media (max-width: 600px) {
  .cta-grid {
    grid-template-columns: 1fr;
  }
}
.cta-tile--full {
  grid-column: span 2;
  width: 100%;
  justify-self: stretch;
  text-align: center;
}
@media (max-width: 600px) {
  .cta-tile--full {
    grid-column: span 1;
    width: 100%;
    justify-self: stretch;
  }
}

.cta-tile {
display: flex;
align-items: center;
justify-content: center;
background: var(--banner-color);
color: #fff;
font-weight: 600;
padding: 14px;
border-radius: 12px;
text-decoration: none;
transition: transform 0.2s ease, background 0.2s ease;
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
text-align: center;
white-space: nowrap;
gap: 8px;
}
.cta-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--banner-color);
  color: #fff;
  font-weight: 600;
  padding: 14px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  white-space: nowrap;
  gap: 8px;
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.cta-tile i {
font-size: 1.1rem;
}
.about-card {
    background: <?php echo $cardBackground; ?>;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.06),
                0 6px 24px rgba(44, 62, 80, 0.04);
    transition: box-shadow 0.22s cubic-bezier(.4,0,.2,1);
}
.about-card {
  margin: 3rem auto;
  background: <?php echo $cardBackground;
  padding: 20px;
  border-radius: 10px;
  text-align: left;
  transition: box-shadow 0.22s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.11),
                0 12px 32px rgba(44, 62, 80, 0.07);
}
.social-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap; /* Allow wrapping if needed */
}
.social-btn {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  color: white;
  transition: transform 0.2s ease-in-out;
  font-size: 1rem; /* Default size */
  white-space: nowrap; /* Prevents text breaking */
}

.social-btn.youtube {
  background: #FF0000; /* YouTube red */
  color: white; /* Ensures text and icon are visible */
}
.social-btn.instagram {
background: #E1306C; /* Instagram pink */
}
.social-btn.linkedin {
background: #0077B5; /* LinkedIn blue */
}
.social-btn.twitter {
background: #1DA1F2; /* Twitter blue */
}
.social-btn.facebook {
background: #1877F2; /* Facebook blue */
}
.social-btn.tiktok {
background: #000000; /* TikTok black (or use a gradient if desired) */
}
.social-btn.youtube {
  background: #FF0000;
}
YouTube red */
}
.social-btn.telegram {
background: #0088cc; /* Telegram blue */
}
.social-btn.threads {
background: #833AB4; /* A purple shade for Threads */
}
/* Platform Colors */
.instagram { background:rgb(210, 77, 130); }
.linkedin { background: #0077B5; }
.twitter { background: #1DA1F2; }
.social-btn i {
  margin-right: 8px;
}
/* Hover Effect */
.social-btn {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  color: white;
  transition: transform 0.2s ease-in-out;
  font-size: 1rem;
  transform: scale(1.05);
}
0%; /* Ensure they fit within the container */
      display: flex;
      justify-content: center;
  }

  .social-buttons {
      gap: 5px; /* Reduce spacing between buttons */
  }

  .social-btn i {
      margin-right: 5px; /* Reduce icon spacing */
      font-size: 1rem; /* Adjust icon size */
  }
}

          /* Updated Contact Section */
.contact-card {
  background: <?php echo $cardBackground; ?>;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}
.contact-card h3 {
  font-size: 1.2rem;
  font-weight: bold;
  color: #007BFF;
  margin-bottom: 10px;
}

  

/* 🔲 QR Code Modal - Ensures It Is a Centered Popup */
.qr-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 9999; /* Ensure it stays on top */
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 🏠 QR Code Modal Content */
.qr-modal-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 320px; /* Adjust width */
  text-align: center;
  position: relative; /* Ensures it centers correctly */
}

/* 🔥 Change hover effect */
.profile-wrapper {
  width: 100%;
  max-width: 2400px;
  text-align: center;
}
/* 🔹 Profile Banner Image (Inside Profile) */
.profile-banner-image {
  width: 100%;
  height: 250px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 0px;
}

@media (max-width: 768px) {
.profile-banner-image {
  height: 185px;
  background-size: cover;
  background-position: center;
}
}

@media (max-width: 480px) {
.profile-banner-image {
  width: 100%;
  border-radius: 12px;
  background-repeat: no-repeat;
  margin-top: 0px;
  background-size: cover;
  background-position: center;
  height: 170px;
}
: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  margin: 10px;
}

#nativeShare:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

:root {
--banner-color: <?php echo htmlspecialchars($user['banner_color'] ?? '#007BFF'); ?>;
-lign: center;
}

:root {
--banner-color: <?php echo htmlspecialchars($user['banner_color'] ?? '#007BFF'); ?>;
}

:root {
--banner-color: <?php echo htmlspecialchars($user['banner_color'] ?? '#007BFF'); ?>;
--link-bg: linear-gradient(135deg, #ffffff, #f9f9f9);
--link-hover: var(--banner-color);
--link-text: #333;
}

/* Updated custom-link-card styles for improved dimensions and spacing */
.custom-link-card {
position: relative;
width: 100%;
min-height: 180px;
max-height: 220px;
border-radius: 14px;
background-size: cover;
background-position: center;
overflow: hidden;
box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
transition: none;
}
.custom-link-card:hover {
box-shadow: none;
transform: none;
}

/* The dark overlay to improve text contrast */
.custom-link-card .overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.18);
}
/* Improved layout spacing for link content */
.custom-link-card .link-content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 2;
color: #fff;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
gap: 10px;
background: none;
}
.custom-link-card .link-label {
font-size: 1.1rem;
font-weight: 600;
margin-bottom: 8px;
}
.custom-link-card .link-button {
text-decoration: none;
background: var(--banner-color);
padding: 8px 16px;
border-radius: 6px;
color: #fff;
font-size: 0.9rem;
transition: filter 0.3s ease;
margin-top: 10px;
display: inline-block;
}
.custom-link-card .link-button {
  text-decoration: none;
  background: var(--banner-color);
  padding: 8px 16px;
  border-radius: 6px;
  color: #fff;
  font-size: 0.9rem;
  transition: filter 0.3s ease;
  margin-top: 10px;
  display: inline-block;
  filter: brightness(0.9);
}
padding: 30px 16px;      /* More padding for a larger feel */
        }
        /* .custom-links-grid grid styles are handled above for centering */
        .link-icon {
          width: 50px;
          height: 50px;
          margin-bottom: 16px;
        }
      }

/* Responsive Featured Video - fills its card container on all screens */
.featured-video-container {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
}
/* Ensure the video and its poster scale responsively and preserve aspect */
.featured-video-container video {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
}
[data-theme="dark"] body {
  background-color: #121212;
  color: #f0f0f0;
}

[data-theme="dark"] .profile-container,
[data-theme="dark"] .about-me-card,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .video-card,
[data-theme="dark"] .custom-link-card,
[data-theme="dark"] .qr-modal-content {
  background-color: #1e1e1e;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .profile-title,
[data-theme="dark"] .custom-links-title h2,
[data-theme="dark"] .link-label,
[data-theme="dark"] .profile-footer,
[data-theme="dark"] .profile-footer a {
  color: #ccc;
}

[data-theme="dark"] .link-button,
[data-theme="dark"] .cta-tile,
[data-theme="dark"] .qr-tab.active {
  background-color: #333;
  color: #fff;
}

[data-theme="dark"] .about-me-card,
[data-theme="dark"] .about-card,
[data-theme="dark"] .custom-links-title h2,
[data-theme="dark"] .qr-modal-content,
[data-theme="dark"] .decorative-contact,
[data-theme="dark"] .video-header h3,
[data-theme="dark"] .section-divider,
[data-theme="dark"] .profile-footer,
[data-theme="dark"] .profile-footer a,
[data-theme="dark"] .subtle-cta {
  color: #ddd !important;
  background-color: #1a1a1a !important;
}

[data-theme="dark"] .link-content {
  background: transparent !important;
  box-shadow: none !important;
}

[data-theme="dark"] .custom-links-section {
  background-color: transparent !important;
}

[data-theme="dark"] .custom-link-card {
  border: none !important;
}

[data-theme="dark"] .about-me-card .about-me-content p {
  color: #e0e0e0;
}

[data-theme="dark"] input,
[data-theme="dark"] textarea {
  background-color: #2a2a2a !important;
  color: #fff !important;
  border: 1px solid #444 !important;
}

[data-theme="dark"] .section-divider {
  background: #444;
}

[data-theme="dark"] .profile-footer {
  background-color: #111;
}

[data-theme="dark"] .profile-footer a:hover {
  color: #fff;
}

[data-theme="dark"] .qr-modal {
  background-color: rgba(0, 0, 0, 0.8);
}
.custom-links-container {
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
}
.custom-link-card {
display: flex;
align-items: center;
gap: 20px;
background: #f9f9f9;
padding: 16px 24px;
border-radius: 16px;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
transition: transform 0.2s ease, box-shadow 0.2s ease;
text-decoration: none;
color: inherit;
width: 90%;
max-width: 500px;
}
.custom-link-card {
  position: relative;
  min-height: 180px;
  max-height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f9f9f9;
  padding: 16px 24px;
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  width: 90%;
  max-width: 500px;
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.about-header {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  color: #333333;
}
#styButtonStyleSection h4,
#styButtonStyleSection .sty-note {
  text-align: center !important;
  display: block;
  margin-top: 6px;
    color: #222 !important;
}
#stylingModal h3 {
  color: #222 !important;
}

    .profile-wrapper, .profile-container { position: relative; z-index: 1; } /* keep content above */
    
    /* ===== Lightweight Dynamic Backgrounds (Low CPU/GPU Usage) ===== */
    .abt-bg-layer {
      position: fixed;
      inset: 0;
      z-index: -1 !important;
      pointer-events: none;
      will-change: transform, opacity, background-position;
    }
    /* Override body background when animated background layer exists */
    body:has(.abt-bg-layer),
    body.has-animated-bg {
      background: transparent !important;
    }
    
    /* 1. Gradient Shift - Enhanced vibrant color flow */
    .abt-bg-gradient-shift {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 20%, #f093fb 40%, #4facfe 60%, #00f2fe 80%, #667eea 100%);
      background-size: 300% 300%;
      animation: gradient-shift 8s ease infinite;
    }
    @keyframes gradient-shift {
      0% { background-position: 0% 50%; }
      25% { background-position: 100% 0%; }
      50% { background-position: 100% 100%; }
      75% { background-position: 0% 100%; }
      100% { background-position: 0% 50%; }
    }
    
    /* 2. Ocean Waves - Animated SVG waves */
    .abt-bg-layer.abt-bg-ocean {
      background: radial-gradient(ellipse at center, rgba(255,254,234,1) 0%, rgba(255,254,234,1) 35%, #B7E8EB 100%) !important;
      position: fixed !important;
      inset: 0 !important;
    }
    .abt-bg-ocean .ocean {
      height: 5%;
      width: 100%;
      position: absolute;
      bottom: 0;
      left: 0;
      background: #015871;
    }
    .abt-bg-ocean .wave {
      background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/85486/wave.svg) repeat-x;
      position: absolute;
      top: -198px;
      width: 6400px;
      height: 198px;
      animation: ocean-wave 7s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
      transform: translate3d(0, 0, 0);
      pointer-events: none;
    }
    .abt-bg-ocean .wave:nth-of-type(2) {
      top: -175px;
      animation: ocean-wave 7s cubic-bezier(0.36, 0.45, 0.63, 0.53) -0.125s infinite, ocean-swell 7s ease -1.25s infinite;
      opacity: 1;
    }
    @keyframes ocean-wave {
      0% {
        margin-left: 0;
      }
      100% {
        margin-left: -1600px;
      }
    }
    @keyframes ocean-swell {
      0%, 100% {
        transform: translate3d(0, -25px, 0);
      }
      50% {
        transform: translate3d(0, 5px, 0);
      }
    }
    
    /* 3. Velvet Dusk — plum & rose gradient drift */
    .abt-bg-layer.abt-bg-velvet-dusk {
      position: fixed !important;
      inset: 0 !important;
      overflow: hidden;
      background: linear-gradient(125deg, #1a0a2e 0%, #2d1b4e 28%, #4a1942 52%, #1e1b4b 100%) !important;
      background-size: 320% 320%;
      animation: abt-velvet-drift 26s ease-in-out infinite;
    }
    .abt-bg-velvet-dusk {
      position: relative;
      overflow: hidden;
      min-height: 100%;
      background: linear-gradient(125deg, #1a0a2e 0%, #2d1b4e 28%, #4a1942 52%, #1e1b4b 100%);
      background-size: 320% 320%;
      animation: abt-velvet-drift 26s ease-in-out infinite;
    }
    .abt-bg-velvet-dusk::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 90% 70% at 82% 18%, rgba(236, 72, 153, 0.28) 0%, transparent 55%),
        radial-gradient(ellipse 85% 65% at 12% 78%, rgba(167, 139, 250, 0.24) 0%, transparent 50%);
      animation: abt-velvet-glow 15s ease-in-out infinite;
      pointer-events: none;
    }
    .abt-bg-velvet-dusk::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(160deg, transparent 42%, rgba(251, 191, 36, 0.1) 72%, transparent 100%);
      animation: abt-velvet-sheen 19s ease-in-out infinite;
      pointer-events: none;
    }
    @keyframes abt-velvet-drift {
      0%, 100% { background-position: 0% 38%; }
      50% { background-position: 100% 62%; }
    }
    @keyframes abt-velvet-glow {
      0%, 100% { opacity: 0.88; transform: scale(1); }
      50% { opacity: 1; transform: scale(1.04) translate(2%, -1%); }
    }
    @keyframes abt-velvet-sheen {
      0%, 100% { opacity: 0.45; }
      50% { opacity: 0.92; }
    }
    
    /* 4. Opal Lattice (slug: kaleidoscope) — glass grid + slow shine */
    .abt-bg-layer.abt-bg-kaleidoscope {
      position: fixed !important;
      inset: 0 !important;
      overflow: hidden;
      background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 48%, #e2e8f0 100%) !important;
    }
    .abt-bg-kaleidoscope {
      position: relative;
      overflow: hidden;
      min-height: 100%;
      background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 48%, #e2e8f0 100%);
    }
    .abt-bg-kaleidoscope::before {
      content: '';
      position: absolute;
      inset: -4%;
      background-image:
        repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.14) 0 1px, transparent 1px 52px),
        repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.11) 0 1px, transparent 1px 52px),
        linear-gradient(135deg, rgba(94, 234, 212, 0.18) 0%, transparent 45%, rgba(196, 181, 253, 0.15) 100%);
      background-size: 100% 100%, 100% 100%, 220% 220%;
      animation: abt-opal-pan 28s linear infinite;
      pointer-events: none;
    }
    .abt-bg-kaleidoscope::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(52deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
      background-size: 280% 280%;
      animation: abt-opal-shine 9s ease-in-out infinite;
      pointer-events: none;
      opacity: 0.65;
    }
    @keyframes abt-opal-pan {
      0% { background-position: 0 0, 0 0, 0% 0%; }
      100% { background-position: 52px 28px, 28px 52px, 100% 80%; }
    }
    @keyframes abt-opal-shine {
      0%, 100% { background-position: 0% 40%; }
      50% { background-position: 100% 60%; }
    }
    
    /* 5. Citrus Pop — warm citrus wisps */
    .abt-bg-layer.abt-bg-citrus-pop {
      position: fixed !important;
      inset: 0 !important;
      overflow: hidden;
      background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 42%, #ffedd5 100%) !important;
    }
    .abt-bg-citrus-pop {
      position: relative;
      overflow: hidden;
      min-height: 100%;
      background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 42%, #ffedd5 100%);
    }
    .abt-bg-citrus-pop::before {
      content: '';
      position: absolute;
      width: 78vmax;
      height: 78vmax;
      top: -22%;
      right: -28%;
      background: radial-gradient(circle, rgba(250, 204, 21, 0.48) 0%, rgba(245, 158, 11, 0.12) 44%, transparent 66%);
      animation: abt-citrus-a 13s ease-in-out infinite;
      pointer-events: none;
      will-change: transform, opacity;
    }
    .abt-bg-citrus-pop::after {
      content: '';
      position: absolute;
      width: 72vmax;
      height: 72vmax;
      bottom: -28%;
      left: -22%;
      background: radial-gradient(circle, rgba(251, 113, 133, 0.38) 0%, rgba(244, 63, 94, 0.08) 46%, transparent 68%);
      animation: abt-citrus-b 16s ease-in-out infinite;
      pointer-events: none;
      will-change: transform, opacity;
    }
    @keyframes abt-citrus-a {
      0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.92; }
      50% { transform: translate(-6%, 7%) scale(1.1); opacity: 1; }
    }
    @keyframes abt-citrus-b {
      0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.78; }
      50% { transform: translate(8%, -5%) scale(1.12); opacity: 1; }
    }
    
    /* 6. Arctic Mist — ice-blue fog drift */
    .abt-bg-layer.abt-bg-arctic-mist {
      position: fixed !important;
      inset: 0 !important;
      overflow: hidden;
      background: linear-gradient(188deg, #ecfeff 0%, #e0f2fe 48%, #dbeafe 100%) !important;
    }
    .abt-bg-arctic-mist {
      position: relative;
      overflow: hidden;
      min-height: 100%;
      background: linear-gradient(188deg, #ecfeff 0%, #e0f2fe 48%, #dbeafe 100%);
    }
    .abt-bg-arctic-mist::before {
      content: '';
      position: absolute;
      inset: -12%;
      background:
        radial-gradient(ellipse 100% 85% at 28% 100%, rgba(56, 189, 248, 0.24) 0%, transparent 52%),
        radial-gradient(ellipse 95% 75% at 88% 25%, rgba(147, 197, 253, 0.2) 0%, transparent 50%);
      animation: abt-arctic-drift 21s ease-in-out infinite;
      pointer-events: none;
    }
    .abt-bg-arctic-mist::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, rgba(255, 255, 255, 0.4) 0%, transparent 32%, transparent 68%, rgba(255, 255, 255, 0.28) 100%);
      background-size: 200% 100%;
      animation: abt-arctic-sweep 25s ease-in-out infinite;
      pointer-events: none;
      opacity: 0.72;
    }
    @keyframes abt-arctic-drift {
      0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.9; }
      50% { transform: translate(5%, -4%) scale(1.07); opacity: 1; }
    }
    @keyframes abt-arctic-sweep {
      0%, 100% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
    }

    /* Soft Stone — still, quiet default for new / Free profiles */
    .abt-bg-layer.abt-bg-night-silk,
    .abt-bg-layer.abt-bg-studio-linen {
      position: fixed !important;
      inset: 0 !important;
      overflow: hidden;
      background: linear-gradient(180deg, #f7f7f8 0%, #eef0f2 100%) !important;
    }
    .abt-bg-night-silk,
    .abt-bg-studio-linen {
      position: relative;
      overflow: hidden;
      min-height: 100%;
      background: linear-gradient(180deg, #f7f7f8 0%, #eef0f2 100%);
    }
    .abt-bg-night-silk::before,
    .abt-bg-studio-linen::before,
    .abt-bg-night-silk::after,
    .abt-bg-studio-linen::after {
      display: none;
      animation: none;
    }
    
    /* 7. Ember Drift — warm embers on charcoal */
    .abt-bg-layer.abt-bg-ember-drift {
      position: fixed !important;
      inset: 0 !important;
      overflow: hidden;
      background: linear-gradient(170deg, #0c0a09 0%, #1c1917 48%, #292524 100%) !important;
    }
    .abt-bg-ember-drift {
      position: relative;
      overflow: hidden;
      min-height: 100%;
      background: linear-gradient(170deg, #0c0a09 0%, #1c1917 48%, #292524 100%);
    }
    .abt-bg-ember-drift::before {
      content: '';
      position: absolute;
      width: 82vmax;
      height: 82vmax;
      bottom: -38%;
      left: -18%;
      background: radial-gradient(circle, rgba(249, 115, 22, 0.38) 0%, rgba(234, 88, 12, 0.09) 42%, transparent 72%);
      animation: abt-ember-a 15s ease-in-out infinite;
      pointer-events: none;
      will-change: transform, opacity;
    }
    .abt-bg-ember-drift::after {
      content: '';
      position: absolute;
      width: 68vmax;
      height: 68vmax;
      top: -22%;
      right: -22%;
      background: radial-gradient(circle, rgba(220, 38, 38, 0.24) 0%, rgba(185, 28, 28, 0.06) 46%, transparent 70%);
      animation: abt-ember-b 19s ease-in-out infinite;
      pointer-events: none;
      will-change: transform, opacity;
    }
    @keyframes abt-ember-a {
      0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.82; }
      50% { transform: translate(9%, -5%) scale(1.14); opacity: 1; }
    }
    @keyframes abt-ember-b {
      0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.62; }
      50% { transform: translate(-7%, 6%) scale(1.1); opacity: 0.92; }
    }
    
    /* 8. Silk Scan (slug: hologram) — diagonal weave + light band */
    .abt-bg-layer.abt-bg-hologram {
      position: fixed !important;
      inset: 0 !important;
      overflow: hidden;
      background: linear-gradient(158deg, #042f2e 0%, #0d9488 38%, #115e59 100%) !important;
    }
    .abt-bg-hologram {
      position: relative;
      overflow: hidden;
      min-height: 100%;
      background: linear-gradient(158deg, #042f2e 0%, #0d9488 38%, #115e59 100%);
    }
    .abt-bg-hologram::before {
      content: '';
      position: absolute;
      inset: 0;
      background: repeating-linear-gradient(
        -19deg,
        transparent 0,
        transparent 16px,
        rgba(255, 255, 255, 0.055) 16px,
        rgba(255, 255, 255, 0.055) 17px
      );
      animation: abt-silk-slide 22s linear infinite;
      pointer-events: none;
    }
    .abt-bg-hologram::after {
      content: '';
      position: absolute;
      left: -40%;
      top: 0;
      width: 35%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
      animation: abt-silk-band 7s ease-in-out infinite;
      pointer-events: none;
    }
    @keyframes abt-silk-slide {
      0% { background-position: 0 0; }
      100% { background-position: 0 240px; }
    }
    @keyframes abt-silk-band {
      0%, 100% { transform: translateX(0); opacity: 0.45; }
      50% { transform: translateX(320%); opacity: 0.95; }
    }
    
    /* 9. Night Spark (slug: cosmic) — starfield + soft violet haze */
    .abt-bg-layer.abt-bg-cosmic {
      position: fixed !important;
      inset: 0 !important;
      overflow: hidden;
      background: radial-gradient(ellipse 120% 100% at 50% 100%, #1e1b4b 0%, #020617 58%) !important;
    }
    .abt-bg-cosmic {
      position: relative;
      overflow: hidden;
      min-height: 100%;
      background: radial-gradient(ellipse 120% 100% at 50% 100%, #1e1b4b 0%, #020617 58%);
    }
    .abt-bg-cosmic::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        radial-gradient(1.5px 1.5px at 8% 12%, rgba(255, 255, 255, 0.95), transparent),
        radial-gradient(1.5px 1.5px at 22% 28%, rgba(255, 255, 255, 0.65), transparent),
        radial-gradient(1.5px 1.5px at 78% 18%, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(1.5px 1.5px at 92% 42%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 15% 62%, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1.5px 1.5px at 45% 78%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1.5px 1.5px at 68% 88%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1.5px 1.5px at 88% 72%, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(1.5px 1.5px at 35% 38%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 55% 12%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 72% 48%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 50% 55%, rgba(196, 181, 253, 0.9), transparent),
        radial-gradient(1.5px 1.5px at 28% 88%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 62% 22%, rgba(255, 255, 255, 0.72), transparent);
      background-size: 100% 100%;
      animation: abt-sparkle 5.5s ease-in-out infinite;
      pointer-events: none;
    }
    .abt-bg-cosmic::after {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.22) 0%, transparent 42%);
      animation: abt-sparkle-glow 14s ease-in-out infinite;
      pointer-events: none;
    }
    @keyframes abt-sparkle {
      0%, 100% { opacity: 0.5; filter: brightness(1); }
      50% { opacity: 1; filter: brightness(1.25); }
    }
    @keyframes abt-sparkle-glow {
      0%, 100% { opacity: 0.65; transform: scale(1); }
      50% { opacity: 1; transform: scale(1.04); }
    }
    
    /* 10. Plasma - Organic plasma-like movement */
    .abt-bg-layer.abt-bg-plasma {
      background: linear-gradient(135deg, #1a0033 0%, #330066 30%, #6600cc 60%, #9900ff 100%) !important;
      position: fixed !important;
      inset: 0 !important;
      overflow: hidden;
    }
    .abt-bg-layer.abt-bg-plasma::before {
      content: '';
      position: absolute;
      top: -30%;
      left: -30%;
      width: 160%;
      height: 160%;
      background: 
        radial-gradient(ellipse 60% 40% at 30% 40%, rgba(255, 0, 255, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse 50% 60% at 70% 60%, rgba(0, 255, 255, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 55% 45% at 50% 20%, rgba(255, 255, 0, 0.4) 0%, transparent 50%);
      background-size: 100% 100%;
      animation: plasma-flow 12s ease-in-out infinite;
      filter: blur(80px);
    }
    .abt-bg-layer.abt-bg-plasma::after {
      content: '';
      position: absolute;
      bottom: -20%;
      right: -20%;
      width: 140%;
      height: 140%;
      background: 
        radial-gradient(ellipse 45% 55% at 60% 30%, rgba(255, 0, 150, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 20% 70%, rgba(150, 0, 255, 0.3) 0%, transparent 50%);
      background-size: 100% 100%;
      animation: plasma-drift 15s ease-in-out infinite reverse;
      filter: blur(70px);
      opacity: 0.8;
    }
    @keyframes plasma-flow {
      0% { transform: translate(0, 0) rotate(0deg) scale(1); }
      33% { transform: translate(20%, -25%) rotate(120deg) scale(1.2); }
      66% { transform: translate(-25%, 20%) rotate(240deg) scale(0.9); }
      100% { transform: translate(0, 0) rotate(360deg) scale(1); }
    }
    @keyframes plasma-drift {
      0%, 100% { transform: translate(0, 0) rotate(0deg); }
      50% { transform: translate(-20%, 20%) rotate(180deg); }
    }
    
    /* 11. Hexagon Grid - Animated hexagonal grid */
    .abt-bg-layer.abt-bg-hexagon {
      background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #0a0a1a 100%) !important;
      position: fixed !important;
      inset: 0 !important;
      overflow: hidden;
    }
    .abt-bg-layer.abt-bg-hexagon::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-image: 
        repeating-linear-gradient(30deg, transparent 0px, rgba(138, 43, 226, 0.1) 1px, transparent 2px),
        repeating-linear-gradient(90deg, transparent 0px, rgba(0, 191, 255, 0.1) 1px, transparent 2px);
      background-size: 100px 100px;
      animation: hexagon-shift 10s linear infinite;
      opacity: 0.6;
    }
    .abt-bg-layer.abt-bg-hexagon::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: 
        repeating-conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(138, 43, 226, 0.15) 60deg, transparent 120deg);
      background-size: 150px 150px;
      animation: hexagon-rotate 15s linear infinite;
      opacity: 0.4;
    }
    @keyframes hexagon-shift {
      0% { transform: translate(0, 0); }
      100% { transform: translate(100px, 100px); }
    }
    @keyframes hexagon-rotate {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    
    /* 12. Starfield - Twinkling stars */
    .abt-bg-layer.abt-bg-starfield {
      background: linear-gradient(135deg, #000000 0%, #000428 50%, #000000 100%) !important;
      position: fixed !important;
      inset: 0 !important;
      overflow: hidden;
    }
    .abt-bg-layer.abt-bg-starfield::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 30% 80%, rgba(255, 255, 255, 0.5), transparent);
      background-size: 200% 200%, 150% 150%, 180% 180%, 160% 160%, 170% 170%;
      background-position: 0% 0%, 20% 40%, 40% 60%, 60% 80%, 80% 20%;
      animation: starfield-twinkle 8s ease-in-out infinite;
    }
    .abt-bg-layer.abt-bg-starfield::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-image: 
        radial-gradient(1px 1px at 10% 20%, rgba(0, 191, 255, 0.8), transparent),
        radial-gradient(1px 1px at 70% 50%, rgba(138, 43, 226, 0.7), transparent),
        radial-gradient(2px 2px at 40% 90%, rgba(255, 255, 255, 0.6), transparent);
      background-size: 120% 120%, 140% 140%, 130% 130%;
      background-position: 30% 50%, 50% 70%, 70% 30%;
      animation: starfield-drift 12s ease-in-out infinite;
      opacity: 0.7;
    }
    @keyframes starfield-twinkle {
      0%, 100% { opacity: 0.8; transform: scale(1); }
      50% { opacity: 1; transform: scale(1.1); }
    }
    @keyframes starfield-drift {
      0%, 100% { background-position: 30% 50%, 50% 70%, 70% 30%; }
      50% { background-position: 70% 30%, 30% 50%, 50% 70%; }
    }
    
    /* 13. Vortex - Spinning vortex effect */
    .abt-bg-layer.abt-bg-vortex {
      background: radial-gradient(ellipse at center, #0a0a1a 0%, #1a1a3a 50%, #0a0a1a 100%) !important;
      position: fixed !important;
      inset: 0 !important;
      overflow: hidden;
    }
    .abt-bg-layer.abt-bg-vortex::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 800px;
      height: 800px;
      transform: translate(-50%, -50%);
      background: 
        conic-gradient(from 0deg, transparent 0deg, rgba(138, 43, 226, 0.4) 90deg, transparent 180deg, rgba(0, 191, 255, 0.3) 270deg, transparent 360deg);
      border-radius: 50%;
      animation: vortex-spin 8s linear infinite;
      filter: blur(30px);
    }
    .abt-bg-layer.abt-bg-vortex::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 600px;
      height: 600px;
      transform: translate(-50%, -50%);
      background: 
        conic-gradient(from 180deg, transparent 0deg, rgba(255, 20, 147, 0.35) 90deg, transparent 180deg, rgba(0, 255, 255, 0.3) 270deg, transparent 360deg);
      border-radius: 50%;
      animation: vortex-spin 12s linear infinite reverse;
      filter: blur(25px);
      opacity: 0.8;
    }
    @keyframes vortex-spin {
      0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
      100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
    }
    
    /* 14. Neural Network - Neural network connections */
    .abt-bg-layer.abt-bg-neural {
      background: linear-gradient(135deg, #000000 0%, #0a0a1a 50%, #000000 100%) !important;
      position: fixed !important;
      inset: 0 !important;
      overflow: hidden;
    }
    .abt-bg-layer.abt-bg-neural::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: 
        radial-gradient(circle at 25% 25%, rgba(0, 255, 0, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 75% 75%, rgba(0, 255, 0, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 150, 0.1) 0%, transparent 50%);
      animation: neural-pulse 6s ease-in-out infinite;
      filter: blur(50px);
    }
    .abt-bg-layer.abt-bg-neural .neural-node {
      position: absolute;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(0, 255, 0, 0.9) 0%, rgba(0, 200, 0, 0.5) 100%);
      box-shadow: 0 0 20px rgba(0, 255, 0, 0.8), 0 0 40px rgba(0, 255, 0, 0.4);
      animation: neural-node-pulse 2s ease-in-out infinite;
    }
    .abt-bg-layer.abt-bg-neural .neural-node:nth-child(1) { top: 15%; left: 20%; animation-delay: 0s; }
    .abt-bg-layer.abt-bg-neural .neural-node:nth-child(2) { top: 35%; left: 60%; animation-delay: -0.3s; }
    .abt-bg-layer.abt-bg-neural .neural-node:nth-child(3) { top: 55%; left: 30%; animation-delay: -0.6s; }
    .abt-bg-layer.abt-bg-neural .neural-node:nth-child(4) { top: 75%; left: 70%; animation-delay: -0.9s; }
    .abt-bg-layer.abt-bg-neural .neural-node:nth-child(5) { top: 25%; left: 80%; animation-delay: -1.2s; }
    .abt-bg-layer.abt-bg-neural .neural-connection {
      position: absolute;
      height: 1px;
      background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 0, 0.5) 50%, transparent 100%);
      box-shadow: 0 0 5px rgba(0, 255, 0, 0.4);
      animation: neural-connection-pulse 3s ease-in-out infinite;
      transform-origin: left center;
    }
    .abt-bg-layer.abt-bg-neural .neural-connection:nth-child(6) {
      top: 15%;
      left: 20%;
      width: 40%;
      transform: rotate(20deg);
      animation-delay: 0s;
    }
    .abt-bg-layer.abt-bg-neural .neural-connection:nth-child(7) {
      top: 35%;
      left: 30%;
      width: 30%;
      transform: rotate(-15deg);
      animation-delay: -1s;
    }
    .abt-bg-layer.abt-bg-neural .neural-connection:nth-child(8) {
      top: 55%;
      left: 30%;
      width: 40%;
      transform: rotate(10deg);
      animation-delay: -2s;
    }
    @keyframes neural-pulse {
      0%, 100% { opacity: 0.6; transform: scale(1); }
      50% { opacity: 1; transform: scale(1.1); }
    }
    @keyframes neural-node-pulse {
      0%, 100% { transform: scale(1); opacity: 0.8; }
      50% { transform: scale(1.6); opacity: 1; }
    }
    @keyframes neural-connection-pulse {
      0%, 100% { opacity: 0.4; }
      50% { opacity: 0.8; }
    }
    
    /* 15. Scroll Gradient - Color changes based on scroll position */
    .abt-bg-layer.abt-bg-scroll-gradient {
      background: #7A4EAB !important;
      position: fixed !important;
      inset: 0 !important;
      transition: background-color 1s ease !important;
    }
    body.has-scroll-gradient {
      background: transparent !important;
    }
    body.has-scroll-gradient.color-violet .abt-bg-layer.abt-bg-scroll-gradient { background: #7A4EAB !important; }
    body.has-scroll-gradient.color-indigo .abt-bg-layer.abt-bg-scroll-gradient { background: #4332CF !important; }
    body.has-scroll-gradient.color-blue .abt-bg-layer.abt-bg-scroll-gradient { background: #2F8FED !important; }
    body.has-scroll-gradient.color-green .abt-bg-layer.abt-bg-scroll-gradient { background: #4DCF42 !important; }
    body.has-scroll-gradient.color-yellow .abt-bg-layer.abt-bg-scroll-gradient { background: #FAEB33 !important; }
    body.has-scroll-gradient.color-orange .abt-bg-layer.abt-bg-scroll-gradient { background: #F19031 !important; }
    body.has-scroll-gradient.color-red .abt-bg-layer.abt-bg-scroll-gradient { background: #F2293A !important; }
    
    /* 16. Ripple - Animated expanding circles */
    .abt-bg-layer.abt-bg-ripple {
      background: #3399ff !important;
      position: fixed !important;
      inset: 0 !important;
      overflow: hidden;
    }
    .abt-bg-ripple .ripple-background {
      position: absolute;
      width: 100%;
      height: 100%;
      bottom: 0;
      left: 0;
    }
    .abt-bg-ripple .circle {
      position: absolute;
      border-radius: 50%;
      background: white;
      animation: ripple 15s infinite;
      box-shadow: 0px 0px 1px 0px #508fb9;
    }
    .abt-bg-ripple .circle.small {
      width: 200px;
      height: 200px;
      left: -100px;
      bottom: -100px;
    }
    .abt-bg-ripple .circle.medium {
      width: 400px;
      height: 400px;
      left: -200px;
      bottom: -200px;
    }
    .abt-bg-ripple .circle.large {
      width: 600px;
      height: 600px;
      left: -300px;
      bottom: -300px;
    }
    .abt-bg-ripple .circle.xlarge {
      width: 800px;
      height: 800px;
      left: -400px;
      bottom: -400px;
    }
    .abt-bg-ripple .circle.xxlarge {
      width: 1000px;
      height: 1000px;
      left: -500px;
      bottom: -500px;
    }
    .abt-bg-ripple .circle.shade1 {
      opacity: 0.2;
    }
    .abt-bg-ripple .circle.shade2 {
      opacity: 0.5;
    }
    .abt-bg-ripple .circle.shade3 {
      opacity: 0.7;
    }
    .abt-bg-ripple .circle.shade4 {
      opacity: 0.8;
    }
    .abt-bg-ripple .circle.shade5 {
      opacity: 0.9;
    }
    @keyframes ripple {
      0% {
        transform: scale(0.8);
      }
      50% {
        transform: scale(1.2);
      }
      100% {
        transform: scale(0.8);
      }
    }
    
    /* Preview thumbnails for modal - Using exact same CSS as page backgrounds */
    .anim-thumb.abt-bg-gradient-shift {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 20%, #f093fb 40%, #4facfe 60%, #00f2fe 80%, #667eea 100%);
      background-size: 300% 300%;
      animation: gradient-shift 2s ease infinite;
      position: relative;
      overflow: hidden;
    }
    .anim-thumb.abt-bg-ocean {
      background: radial-gradient(ellipse at center, rgba(255,254,234,1) 0%, rgba(255,254,234,1) 35%, #B7E8EB 100%);
      position: relative;
      overflow: hidden;
    }
    .anim-thumb.abt-bg-ocean::before {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 20%;
      background: #015871;
    }
    .anim-thumb.abt-bg-ocean::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 200%;
      height: 30px;
      background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/85486/wave.svg) repeat-x;
      background-size: 200px 30px;
      animation: ocean-wave 2s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
      transform: translate3d(0, 0, 0);
    }
    .anim-thumb.abt-bg-velvet-dusk {
      background: linear-gradient(125deg, #1a0a2e 0%, #4a1942 50%, #1e1b4b 100%);
      background-size: 220% 220%;
      position: relative;
      overflow: hidden;
      animation: abt-velvet-drift 6s ease-in-out infinite;
    }
    .anim-thumb.abt-bg-velvet-dusk::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 80% 70% at 75% 20%, rgba(236, 72, 153, 0.4) 0%, transparent 55%);
      animation: abt-velvet-glow 3.5s ease-in-out infinite;
    }
    .anim-thumb.abt-bg-velvet-dusk::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(160deg, transparent 50%, rgba(251, 191, 36, 0.15) 100%);
      animation: abt-velvet-sheen 4s ease-in-out infinite;
    }
    .anim-thumb.abt-bg-kaleidoscope {
      background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
      position: relative;
      overflow: hidden;
    }
    .anim-thumb.abt-bg-kaleidoscope::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.35) 0 1px, transparent 1px 14px),
        repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.28) 0 1px, transparent 1px 14px),
        linear-gradient(135deg, rgba(94, 234, 212, 0.35) 0%, transparent 50%, rgba(196, 181, 253, 0.3) 100%);
      background-size: 100% 100%, 100% 100%, 200% 200%;
      animation: abt-opal-pan 6s linear infinite;
    }
    .anim-thumb.abt-bg-kaleidoscope::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(52deg, transparent 40%, rgba(255, 255, 255, 0.65) 50%, transparent 60%);
      background-size: 220% 220%;
      animation: abt-opal-shine 2.5s ease-in-out infinite;
      opacity: 0.55;
    }
    .anim-thumb.abt-bg-citrus-pop {
      background: linear-gradient(145deg, #fffbeb 0%, #ffedd5 100%);
      position: relative;
      overflow: hidden;
    }
    .anim-thumb.abt-bg-citrus-pop::before {
      content: '';
      position: absolute;
      width: 120%;
      height: 120%;
      top: -40%;
      right: -35%;
      background: radial-gradient(circle, rgba(250, 204, 21, 0.55) 0%, transparent 58%);
      animation: abt-citrus-a 3s ease-in-out infinite;
    }
    .anim-thumb.abt-bg-citrus-pop::after {
      content: '';
      position: absolute;
      width: 110%;
      height: 110%;
      bottom: -45%;
      left: -30%;
      background: radial-gradient(circle, rgba(251, 113, 133, 0.45) 0%, transparent 60%);
      animation: abt-citrus-b 3.5s ease-in-out infinite;
    }
    .anim-thumb.abt-bg-arctic-mist {
      background: linear-gradient(188deg, #ecfeff 0%, #dbeafe 100%);
      position: relative;
      overflow: hidden;
    }
    .anim-thumb.abt-bg-arctic-mist::before {
      content: '';
      position: absolute;
      inset: -15%;
      background:
        radial-gradient(ellipse 90% 80% at 30% 100%, rgba(56, 189, 248, 0.35) 0%, transparent 52%),
        radial-gradient(ellipse 85% 70% at 85% 25%, rgba(147, 197, 253, 0.3) 0%, transparent 48%);
      animation: abt-arctic-drift 4s ease-in-out infinite;
    }
    .anim-thumb.abt-bg-arctic-mist::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0%, transparent 45%, rgba(255, 255, 255, 0.35) 100%);
      background-size: 180% 100%;
      animation: abt-arctic-sweep 5s ease-in-out infinite;
      opacity: 0.65;
    }
    .anim-thumb.abt-bg-studio-linen,
    .anim-thumb.abt-bg-night-silk {
      background: linear-gradient(180deg, #f7f7f8 0%, #e8eaed 100%);
      position: relative;
      overflow: hidden;
    }
    .anim-thumb.abt-bg-studio-linen::before,
    .anim-thumb.abt-bg-night-silk::before {
      display: none;
    }
    .anim-thumb.abt-bg-ember-drift {
      background: linear-gradient(170deg, #0c0a09 0%, #292524 100%);
      position: relative;
      overflow: hidden;
    }
    .anim-thumb.abt-bg-ember-drift::before {
      content: '';
      position: absolute;
      width: 130%;
      height: 130%;
      bottom: -50%;
      left: -25%;
      background: radial-gradient(circle, rgba(249, 115, 22, 0.5) 0%, transparent 62%);
      animation: abt-ember-a 3s ease-in-out infinite;
    }
    .anim-thumb.abt-bg-ember-drift::after {
      content: '';
      position: absolute;
      width: 100%;
      height: 100%;
      top: -40%;
      right: -35%;
      background: radial-gradient(circle, rgba(220, 38, 38, 0.35) 0%, transparent 58%);
      animation: abt-ember-b 3.8s ease-in-out infinite;
    }
    .anim-thumb.abt-bg-neural {
      background: linear-gradient(135deg, #000000 0%, #0a0a1a 50%, #000000 100%);
      position: relative;
      overflow: hidden;
    }
    .anim-thumb.abt-bg-neural::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: 
        radial-gradient(circle at 25% 25%, rgba(34, 197, 94, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 75% 75%, rgba(34, 197, 94, 0.25) 0%, transparent 40%);
      animation: neural-pulse 3s ease-in-out infinite;
      opacity: 0.8;
    }
    .anim-thumb.abt-bg-neural::after {
      content: '';
      position: absolute;
      top: 30%;
      left: 30%;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(34, 197, 94, 1) 0%, rgba(22, 163, 74, 0.7) 50%, transparent 100%);
      box-shadow: 0 0 20px rgba(34, 197, 94, 0.9), 0 0 35px rgba(34, 197, 94, 0.6);
      animation: neural-node-pulse 2s ease-in-out infinite;
    }
    .anim-thumb.abt-bg-hologram {
      background: linear-gradient(158deg, #042f2e 0%, #0d9488 100%);
      position: relative;
      overflow: hidden;
    }
    .anim-thumb.abt-bg-hologram::before {
      content: '';
      position: absolute;
      inset: 0;
      background: repeating-linear-gradient(-19deg, transparent 0, transparent 8px, rgba(255, 255, 255, 0.1) 8px, rgba(255, 255, 255, 0.1) 9px);
      animation: abt-silk-slide 5s linear infinite;
    }
    .anim-thumb.abt-bg-hologram::after {
      content: '';
      position: absolute;
      left: -30%;
      top: 0;
      width: 35%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
      animation: abt-silk-band 2.5s ease-in-out infinite;
    }
    .anim-thumb.abt-bg-cosmic {
      background: radial-gradient(ellipse 120% 100% at 50% 100%, #1e1b4b 0%, #020617 70%);
      position: relative;
      overflow: hidden;
    }
    .anim-thumb.abt-bg-cosmic::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 78% 22%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 45% 55%, rgba(196, 181, 253, 0.95), transparent),
        radial-gradient(1.5px 1.5px at 88% 68%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 28% 72%, rgba(255, 255, 255, 0.75), transparent);
      background-size: 100% 100%;
      animation: abt-sparkle 2.5s ease-in-out infinite;
    }
    .anim-thumb.abt-bg-cosmic::after {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.35) 0%, transparent 50%);
      animation: abt-sparkle-glow 4s ease-in-out infinite;
    }
    .anim-thumb.abt-bg-scroll-gradient {
      background: linear-gradient(135deg, #7A4EAB 0%, #4332CF 14%, #2F8FED 28%, #4DCF42 42%, #FAEB33 57%, #F19031 71%, #F2293A 85%, #7A4EAB 100%);
      background-size: 700% 100%;
      animation: scroll-gradient-preview 3s ease-in-out infinite;
      position: relative;
      overflow: hidden;
    }
    @keyframes scroll-gradient-preview {
      0% { background-position: 0% 50%; }
      16.66% { background-position: 14.28% 50%; }
      33.33% { background-position: 28.57% 50%; }
      50% { background-position: 42.85% 50%; }
      66.66% { background-position: 57.14% 50%; }
      83.33% { background-position: 71.42% 50%; }
      100% { background-position: 85.71% 50%; }
    }
    .anim-thumb.abt-bg-ripple {
      background: #3399ff;
      position: relative;
      overflow: hidden;
    }
    .anim-thumb.abt-bg-ripple::before {
      content: '';
      position: absolute;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background: white;
      left: 50%;
      bottom: 0;
      transform: translateX(-50%);
      opacity: 0.7;
      animation: ripple-preview 2s ease-in-out infinite;
      box-shadow: 0px 0px 1px 0px #508fb9;
    }
    .anim-thumb.abt-bg-ripple::after {
      content: '';
      position: absolute;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: white;
      left: 50%;
      bottom: 5px;
      transform: translateX(-50%);
      opacity: 0.5;
      animation: ripple-preview 2s ease-in-out infinite;
      animation-delay: -0.5s;
      box-shadow: 0px 0px 1px 0px #508fb9;
    }
    @keyframes ripple-preview {
      0% {
        transform: translateX(-50%) scale(0.8);
      }
      50% {
        transform: translateX(-50%) scale(1.2);
      }
      100% {
        transform: translateX(-50%) scale(0.8);
      }
    }
    /* Section divider with lines and title */
    .section-divider {
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 40px 0 20px;
    }
    /* --- Section Title Bar with tight gradient lines --- */
    .profile-section-title {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      font-size: 1.25rem;
      font-weight: 600;
      margin-bottom: 16px;
      padding: 0;
      text-align: center;
      position: relative;
      background: none;
    }
    .about-section .profile-section-title .section-title-text {
      color: #000 !important;
    }
    /* Ensure all text inside profile-card is black for visibility */
    .profile-card,
    .profile-card h1,
    .profile-card h2,
    .profile-card h3,
    .profile-card p,
    .profile-card .profile-title,
    .profile-card .profile-header-text {
      color: #000 !important;
    }
    .profile-section-title .section-line {
      height: 2px;
      width: 40px;
      border-radius: 2px;
      background: linear-gradient(to right, var(--primary-color, var(--brand-start, #0b5fff)), transparent);
      margin: 0 6px;
      flex-shrink: 0;
    }
    .profile-section-title .section-line.right {
      background: linear-gradient(to right, var(--brand-end, #0b5fff), transparent);
      background: linear-gradient(to left, var(--brand-end, #0b5fff), transparent);
    }
    .profile-section-title .section-title-text {
      white-space: nowrap;
      padding: 0 2px;
      color: #ffffff;
    }
  #toast {
    transform: translateY(20px);
    opacity: 0;
  }
/* ===== Owner Layout Modal (no external deps) ===== */
.profile-section { display: block; }
/* Shared pill button style (Edit Profile / Layout / Styling) — unified */
.action-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-weight:800;
  font-size:16px;
  line-height:1;
  padding:12px 18px;
  min-height:48px;
  min-width:280px;          /* consistent width across a/btn */
  border-radius:14px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  color:#111;
  text-decoration:none;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
  cursor:pointer;
  transition: box-shadow .18s ease, transform .18s ease;
}
.action-pill:hover{
  box-shadow:0 6px 18px rgba(0,0,0,.12);
  transform:translateY(-1px);
}
.action-pill {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-weight:800;
  font-size:16px;
  line-height:1;
  padding:12px 18px;
  min-height:48px;
  min-width:280px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  color:#111;
  text-decoration:none;
  cursor:pointer;
  transition: box-shadow .18s ease, transform .18s ease;
  transform:translateY(-1px);
  outline:none;
  box-shadow:0 0 0 3px rgba(11,95,255,.15), 0 6px 18px rgba(0,0,0,.12);
}
.action-pill i{ font-size:16px; }
@media (max-width: 480px){
  .action-pill{
    min-width:240px;
    padding:12px 16px;
  }
}

/* Keep ID for layout button for JS hook but inherit style via class */
#layoutPrefsBtn {
  /* Styles inherited via class */
}

/* ===== Modern Layout Modal Redesign ===== */
.layout-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.layout-modal-overlay.show {
  opacity: 1;
}

.layout-modal-sheet {
  width: 96%;
  max-width: 640px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 0;
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  overflow: hidden;
}

.layout-modal-overlay.show .layout-modal-sheet {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.layout-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.layout-modal-title-group {
  display: flex;
  align-items: center;
}

.layout-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.layout-modal-close {
  border: none;
  background: rgba(0, 0, 0, 0.05);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.layout-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
  transform: scale(1.05);
}

.layout-modal-content {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
}

.layout-modal-description {
  margin: 0 0 24px 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.layout-sections-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.layout-section-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
}

.layout-section-item:hover {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.layout-section-item:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.layout-section-item.disabled {
  opacity: 0.6;
  background: #f8f8f8;
}

.layout-section-item.disabled .layout-section-icon {
  opacity: 0.5;
}

.layout-section-item.disabled .layout-section-title,
.layout-section-item.disabled .layout-section-subtitle {
  color: #999;
}

/* Drag and Drop States */
.layout-section-item.dragging {
  opacity: 0.6;
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4), 0 0 0 2px rgba(102, 126, 234, 0.2);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  z-index: 1000;
  position: relative;
  background: #ffffff !important;
  border-color: #667eea !important;
  transition: none !important;
}

.layout-section-item.drag-over {
  border-top: 4px solid #667eea;
  padding-top: 12px;
  margin-top: 8px;
  background: rgba(102, 126, 234, 0.05) !important;
  box-shadow: 0 -4px 12px rgba(102, 126, 234, 0.2);
  transition: all 0.2s ease;
}

.layout-section-item.drag-over-bottom {
  border-bottom: 4px solid #667eea;
  padding-bottom: 12px;
  margin-bottom: 8px;
  background: rgba(102, 126, 234, 0.05) !important;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  transition: all 0.2s ease;
}

/* Mobile drag indicator */
.drag-indicator {
  position: fixed;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  pointer-events: none;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}

.drag-indicator.active {
  opacity: 1;
}

.drag-indicator::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 3px solid white;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.layout-section-drag-handle {
  cursor: grab;
  padding: 10px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  -ms-touch-action: none;
  opacity: 0.6;
  border-radius: 6px;
  margin-right: 4px;
  position: relative;
  z-index: 10;
}

.layout-section-drag-handle:hover {
  opacity: 1;
  background: rgba(102, 126, 234, 0.08);
}

.layout-section-drag-handle:active {
  cursor: grabbing;
  background: rgba(102, 126, 234, 0.15);
}

.layout-section-item:hover .layout-section-drag-handle {
  opacity: 1;
}

.drag-handle-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  justify-content: center;
}

.drag-handle-lines span {
  width: 18px;
  height: 2.5px;
  background: #999;
  border-radius: 2px;
  display: block;
  transition: all 0.2s ease;
}

.layout-section-item:hover .drag-handle-lines span,
.layout-section-drag-handle:hover .drag-handle-lines span {
  background: #667eea;
  width: 20px;
}

.layout-section-drag-handle:active .drag-handle-lines span {
  background: #667eea;
}

.layout-section-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.layout-section-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.layout-section-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.layout-section-title {
  font-weight: 600;
  font-size: 15px;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

.layout-section-subtitle {
  font-size: 13px;
  color: #666;
  font-weight: 400;
}

.layout-section-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Toggle Switch */
.layout-toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  cursor: pointer;
}

.layout-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 26px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.layout-toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.layout-toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(22px);
}


.layout-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 28px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.layout-btn-cancel,
.layout-btn-save {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.layout-btn-cancel {
  background: rgba(0, 0, 0, 0.05);
  color: #666;
}

.layout-btn-cancel:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
  transform: translateY(-1px);
}

.layout-btn-save {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.layout-btn-save:hover {
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
  transform: translateY(-2px);
}

.layout-btn-save:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .layout-modal-sheet {
    width: 100%;
    max-width: 100%;
    max-height: 100vh;
    border-radius: 20px 20px 0 0;
    margin-top: auto;
  }
  
  .layout-modal-header {
    padding: 20px 20px 16px;
  }
  
  .layout-modal-content {
    padding: 20px;
  }
  
  .layout-section-item {
    padding: 14px;
    gap: 10px;
  }
  
  .layout-section-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .layout-section-title {
    font-size: 14px;
  }
  
  .layout-section-subtitle {
    font-size: 12px;
  }
  
  .layout-modal-actions {
    padding: 16px 20px 20px;
    flex-direction: column-reverse;
  }
  
  .layout-btn-cancel,
  .layout-btn-save {
    width: 100%;
    padding: 14px 24px;
  }
}

    /* ===== Design & Styling Modal ===== */
#stylingModal{
  display:none;
  position:fixed;
  inset:0;
  z-index:10001;
  background:rgba(0,0,0,.4);
  backdrop-filter:blur(20px) saturate(180%);
  -webkit-backdrop-filter:blur(20px) saturate(180%);
  align-items:center;
  justify-content:center;
  opacity:0;
  transition:opacity .3s cubic-bezier(0.4, 0, 0.2, 1);
}
#stylingModal.show{ opacity:1; }
#stylingModal .sheet{
  width:96%;
  max-width:600px;
  max-height:90vh;
  display:flex;
  flex-direction:column;
  background:rgba(255,255,255,0.95);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border-radius:20px;
  box-shadow:0 20px 60px rgba(0,0,0,.15), 0 0 0 1px rgba(0,0,0,.05);
  padding:0;
  transform:translateY(20px) scale(.98);
  opacity:0;
  transition:transform .35s cubic-bezier(0.4, 0, 0.2, 1), opacity .3s ease;
}
#stylingModal.show .sheet{
  transform:translateY(0) scale(1);
  opacity:1;
}
#stylingModal header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:24px 28px 20px;
  position:sticky;
  top:0;
  background:rgba(255,255,255,0.8);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  z-index:2;
  border-bottom:1px solid rgba(0,0,0,0.05);
}
#stylingModal h3 {
  margin:0;
  font-size:20px;
  font-weight:600;
  color:#1a1a1a;
  letter-spacing:-0.02em;
}
#stylingModal .close{
  border:none;
  background:rgba(0,0,0,0.05);
  width:32px;
  height:32px;
  border-radius:8px;
  font-size:20px;
  line-height:1;
  cursor:pointer;
  color:#666;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all 0.2s ease;
}
#stylingModal .close {
  border:none;
  width:32px;
  height:32px;
  border-radius:8px;
  font-size:20px;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all 0.2s ease;
  background:rgba(0,0,0,0.08);
  color:#000;
}
.sty-content{
  padding:24px 28px;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  flex:1;
  min-height:0;
}
/* Styling modal form bits */
.sty-section{
  margin-bottom:32px;
}
.sty-section-header{
  margin-bottom:16px;
}
.sty-section h4{
  margin:0 0 6px;
  font-size:15px;
  font-weight:600;
  color:#1a1a1a;
  letter-spacing:-0.01em;
}
.sty-note{
  font-size:13px;
  color:#666;
  margin:0;
  line-height:1.5;
}
.sty-color-picker{
  display:flex;
  gap:16px;
  margin-bottom:12px;
}
.sty-color-input-wrapper{
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1;
}
.sty-color-input-wrapper label{
  font-size:12px;
  font-weight:500;
  color:#666;
  text-transform:uppercase;
  letter-spacing:0.05em;
}
.sty-color-input-wrapper input[type="color"]{
  width:100%;
  height:56px;
  border:none;
  border-radius:12px;
  padding:0;
  cursor:pointer;
  box-shadow:0 2px 8px rgba(0,0,0,0.08);
  transition:all 0.2s ease;
}
.sty-color-input-wrapper input[type="color"] {
  width:100%;
  height:56px;
  border:none;
  border-radius:12px;
  padding:0;
  cursor:pointer;
  transition:all 0.2s ease;
  box-shadow:0 4px 12px rgba(0,0,0,0.12);
  transform:translateY(-1px);
}
.sty-preview{
  height:64px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,0.08);
  margin-top:0;
  box-shadow:inset 0 2px 4px rgba(0,0,0,0.06);
}
.sty-mode-toggle{
  margin-top:8px;
}
/* Modern Tabs Toggle */
.bgmode-container{
  display:flex;
  justify-content:center;
  margin:0 0 24px 0;
}
.bgmode-container .tabs{
  display:flex;
  position:relative;
  background:rgba(0,0,0,0.06);
  padding:3px;
  border-radius:14px;
  gap:0;
  box-shadow:inset 0 2px 4px rgba(0,0,0,0.08);
}
.bgmode-container input[type="radio"]{
  display:none;
}
.bgmode-container .tab{
  display:flex;
  align-items:center;
  justify-content:center;
  height:40px;
  padding:0 28px;
  font-size:14px;
  font-weight:600;
  color:#666;
  border-radius:11px;
  cursor:pointer;
  transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select:none;
  z-index:2;
  position:relative;
  letter-spacing:-0.01em;
}
.bgmode-container .tab:hover{
  color:#333;
}
.bgmode-container input[type="radio"]:checked + .tab{
  color:#fff;
  font-weight:600;
}
.bgmode-container .glider{
  position:absolute;
  height:40px;
  background:linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius:11px;
  z-index:1;
  transition:all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:0 4px 12px rgba(102,126,234,0.35), 0 2px 4px rgba(0,0,0,0.1);
  left:3px;
  width:calc(50% - 3px);
  top:3px;
}
.bgmode-container input[id="styBgModeStatic"]:checked ~ .glider{
  left:3px;
  transform:translateX(0);
}
.bgmode-container input[id="styBgModeAnim"]:checked ~ .glider{
  left:3px;
  transform:translateX(100%);
}

/* Button Style Toggle - Same modern design as background mode toggle */
.centered-radio-section {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}
.btnstyle-tabs {
  display: flex;
  position: relative;
  background: rgba(0, 0, 0, 0.06);
  padding: 3px;
  border-radius: 14px;
  gap: 0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}
.btnstyle-tabs input[type="radio"] {
  display: none;
}
.btnstyle-tabs .tab {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 28px;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  border-radius: 11px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  z-index: 2;
  position: relative;
  letter-spacing: -0.01em;
}
.btnstyle-tabs .tab:hover {
  color: #333;
}
.btnstyle-tabs input[type="radio"]:checked + .tab {
  color: #fff;
  font-weight: 600;
}
.btnstyle-tabs .glider {
  position: absolute;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 11px;
  z-index: 1;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35), 0 2px 4px rgba(0, 0, 0, 0.1);
  left: 3px;
  width: calc(50% - 3px);
  top: 3px;
}
.btnstyle-tabs input[id="styBtnSolid"]:checked ~ .glider {
  left: 3px;
  transform: translateX(0);
}
.btnstyle-tabs input[id="styBtnTransparent"]:checked ~ .glider {
  left: 3px;
  transform: translateX(100%);
}

/* Animated preview tiles */
.sty-anim-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:12px;
  margin-top:16px;
}
@media (min-width:560px){
  .sty-anim-grid{
    grid-template-columns:repeat(3, minmax(0,1fr));
  }
}
.anim-tile{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  padding:16px 12px;
  border:1px solid rgba(0,0,0,0.12);
  border-radius:14px;
  background:#fff;
  cursor:pointer;
  user-select:none;
  transition:all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:0 2px 8px rgba(0,0,0,0.06);
  position:relative;
  min-height:140px;
}
.anim-tile:hover{
  border-color:rgba(0,0,0,0.16);
  box-shadow:0 4px 12px rgba(0,0,0,0.1);
  transform:translateY(-2px);
}
.anim-tile input{
  display:none;
}
.anim-tile .anim-thumb{
  width:100%;
  height:72px;
  min-height:72px;
  border-radius:10px;
  overflow:hidden;
  position:relative;
  box-shadow:0 2px 8px rgba(0,0,0,0.08);
  flex-shrink:0;
}
.anim-tile span{
  font-size:13px;
  font-weight:600;
  color:#1a1a1a;
  letter-spacing:-0.01em;
  text-align:center;
  line-height:1.3;
  margin-top:auto;
  flex-shrink:0;
}
.anim-tile.active{
  border-color:#000;
  box-shadow:0 0 0 2px #000, 0 4px 12px rgba(0,0,0,0.1);
  background:#fafafa;
}
@media (max-width: 768px) {
  .anim-tile{
    padding:12px 10px;
    min-height:130px;
  }
  .anim-tile .anim-thumb{
    height:64px;
    min-height:64px;
  }
}
/* Save status label */
.sty-status{
  font-size:13px;
  color:#666;
  margin-left:8px;
}
.sty-status.success{
  color:#10b981;
  font-weight:600;
}
/* Action Buttons */
.sty-actions{
  background:rgba(255,255,255,0.8);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  display:flex;
  justify-content:flex-end;
  gap:12px;
  padding:20px 28px;
  border-top:1px solid rgba(0,0,0,0.05);
  flex-shrink:0;
}
.sty-btn-cancel,
.sty-btn-save{
  padding:12px 24px;
  border-radius:10px;
  border:none;
  font-weight:500;
  font-size:14px;
  cursor:pointer;
  transition:all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing:-0.01em;
}
.sty-btn-cancel{
  background:rgba(0,0,0,0.05);
  color:#666;
}
.sty-btn-cancel {
  background:rgba(0,0,0,0.08);
  color:#000;
}
.sty-btn-save{
  background:#000;
  color:#fff;
}
.sty-btn-save {
  color:#fff;
  background:#1a1a1a;
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(0,0,0,0.15);
}
@media (max-width: 768px) {
  #stylingModal .sheet{
    max-width:95%;
    border-radius:16px;
  }
  #stylingModal header{
    padding:20px 20px 16px;
  }
  #stylingModal h3{
    font-size:18px;
  }
  .sty-content{
    padding:20px;
  }
  .sty-section{
    margin-bottom:28px;
  }
  .sty-color-picker{
    gap:12px;
  }
  .sty-color-input-wrapper input[type="color"]{
    height:52px;
  }
  .sty-preview{
    height:56px;
  }
  .sty-actions{
    padding:16px 20px;
    flex-direction:column-reverse;
  }
  .sty-btn-cancel,
  .sty-btn-save{
    width:100%;
    padding:14px 24px;
  }
  .sty-anim-grid{
    gap:10px;
  }
}

    /* About header with side gradients on both sides of centered title */
    .about-header {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.4rem;
      font-weight: 800;
      margin: 48px 0 28px 0;
      letter-spacing: 0.01em;
      text-align: center;
      gap: 14px;
    }
    .about-header::before,
    .about-header::after {
      content: "";
      flex: 1;
      height: 3px;
      border-radius: 3px;
      background: linear-gradient(90deg, transparent, var(--brand-start));
    }
    .about-header::after {
      background: linear-gradient(90deg, var(--brand-end), transparent);
    }
    @media (min-width: 768px) {
      .about-header::before,
      .about-header::after {
        flex: 0 0 80px;
        height: 3px;
        border-radius: 3px;
        background: linear-gradient(90deg, transparent, var(--brand-start));
      }
      .about-header::after {
        background: linear-gradient(90deg, var(--brand-end), transparent);
      }
    }

    /* Bio text sizing */
    .about-content {
      font-size: 1.12rem;
      line-height: 1.8;
    }
    @media (min-width: 768px) {
      .about-content {
        font-size: 1.28rem;
        line-height: 1.9;
      }
    }
    body.qc-open { overflow:hidden; }
    :root { 
      --brand: <?php echo $bannerColor; ?>;
      --brand-start: <?php echo $brandStart; ?>;
      --brand-end: <?php echo $brandEnd; ?>;
    }
    /* Visual background behind Safari bottom toolbar */
    .chrome-backdrop {
      position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998; pointer-events: none;
      height: calc(88px + env(safe-area-inset-bottom));
      background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 88%, #fff 12%) 0%, var(--brand) 100%);
    }
    .chrome-backdrop::before { content: ""; }
    @supports not (color-mix(in srgb, red 50%, white)) {
      .chrome-backdrop { background: linear-gradient(180deg, var(--brand), var(--brand)); }
    }
    /* Modern Mobile Connect Bar */
    .ios-bottom-bar {
      position: fixed; 
      left: 0; 
      right: 0; 
      bottom: 0; 
      z-index: 9999;
      display: flex; 
      flex-direction: column; 
      align-items: center; 
      justify-content: flex-start;
      gap: 3px; 
      padding: 6px 16px calc(6px + env(safe-area-inset-bottom));
      background: rgba(255, 255, 255, 0.65);
      backdrop-filter: blur(30px) saturate(180%);
      -webkit-backdrop-filter: blur(30px) saturate(180%);
      border-top: 1px solid rgba(0, 0, 0, 0.06);
      box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    }
    
    .save-contact-cta,
    .mobile-connect-btn {
      display: inline-flex; 
      gap: 5px; 
      align-items: center; 
      justify-content: center;
      font-weight: 700; 
      letter-spacing: 0.2px; 
      font-size: 12px; 
      line-height: 1.2;
      text-decoration: none; 
      padding: 8px 16px; 
      border-radius: 10px;
      width: auto;
      max-width: 85%;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      cursor: pointer;
      border: none;
      position: relative;
      overflow: hidden;
    }
    
    /* Mobile connect button inherits profile-button styles */
    .mobile-connect-btn.profile-button {
      width: auto;
      max-width: 85%;
      font-size: 12px;
      padding: 8px 16px;
      border-radius: 10px;
      margin: 0;
      gap: 5px !important;
    }
    
    .mobile-connect-btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
      transition: left 0.5s ease;
    }
    
    .mobile-connect-btn:hover::before {
      left: 100%;
    }
    
    .mobile-connect-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }
    
    .mobile-connect-btn:active {
      transform: translateY(0);
    }
    
    .save-contact-cta i,
    .mobile-connect-btn i { 
      font-size: 16px; 
      opacity: 0.95;
      margin-right: 0 !important;
      margin-left: 0 !important;
      width: auto;
      flex-shrink: 0;
    }
    
    /* Ensure mobile connect button content is perfectly centered */
    .mobile-connect-btn {
      text-align: center;
      justify-content: center !important;
      align-items: center !important;
    }
    
    .mobile-connect-btn.profile-button i {
      margin-right: 0 !important;
      margin-left: 0 !important;
    }
    
    /* Override profile-button gap for mobile connect button */
    .mobile-connect-btn.profile-button.btn-solid,
    .mobile-connect-btn.profile-button.btn-transparent {
      gap: 5px !important;
    }
    .ios-bottom-meta {
      position: static; font-size: .65rem; opacity: .75; text-align: center; margin: 0 0 1px 0;
      line-height: 1;
      padding: 0;
    }
    .ios-bottom-meta a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
    @media (min-width: 768px) { .ios-bottom-bar { display: none; } }

    @media (min-width: 768px) {
      .ios-bottom-bar,
      .chrome-backdrop {
        display: none !important;
      }
    }

    @media (max-width: 767px) {
      body.has-mobile-connect-bar .ios-bottom-bar {
        display: flex !important;
      }
      body.has-mobile-connect-bar .chrome-backdrop {
        display: none !important;
      }
    }

    @keyframes tap-bounce-glow {
      0%   { transform: scale(1);   box-shadow: 0 4px 12px rgba(0,0,0,.12), 0 0 0 0 rgba(255,255,255,0); }
      40%  { transform: scale(.97); box-shadow: 0 2px 8px rgba(0,0,0,.16), 0 0 0 0 rgba(255,255,255,0.0); }
      70%  { transform: scale(1.03); box-shadow: 0 10px 20px rgba(0,0,0,.16), 0 0 0 12px rgba(255,255,255,.18); }
      100% { transform: scale(1);   box-shadow: 0 6px 14px rgba(0,0,0,.14), 0 0 0 0 rgba(255,255,255,0); }
    }
    .save-contact-cta.tapped,
    .mobile-connect-btn.tapped { animation: tap-bounce-glow 420ms cubic-bezier(.2,.7,.2,1); }

    body.footer-ready .profile-footer { opacity: 1; transform: none; }

    /* ===== Social buttons: responsive (icons on mobile, labeled buttons on desktop) ===== */
    .social-buttons { gap: 10px; }
    .social-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border-radius: 12px; color: #fff; text-decoration: none; min-width: 46px; height: 42px; }
    .social-btn .label { display: none; }
    .social-btn.instagram { background: #E1306C; }
    .social-btn.linkedin { background: #0A66C2; }
    .social-btn.twitter { background: #1DA1F2; }
    .social-btn.facebook { background: #1877F2; }
    .social-btn.tiktok { background: #000000; }
    .social-btn.youtube { background: #FF0000; }
    .social-btn.telegram { background: #229ED9; }
    .social-btn.threads { background: #000000; }

    @media (min-width: 768px) {
      .social-buttons { justify-content: center; gap: 16px; }
      .social-btn { min-width: 180px; height: 48px; padding: 12px 16px; font-weight: 700; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
      .social-btn .label { display: inline; }
      .social-btn i { font-size: 18px; }
    }
    @media (max-width: 767px) {
      .save-contact-highlight { display: none !important; }
    }
    @media (min-width: 768px) {
      .save-contact-highlight { display: block; }
    }
    /* ===== Redesigned Custom Links (clean cards) ===== */
    .links-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
    @media (min-width: 768px) { .links-grid { grid-template-columns: 1fr; } }

    @media (min-width: 768px) {
    }

    @media (max-width: 768px) {
      .banner-card {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
        float: none !important;
        position: static !important;
        transform: none !important;
      }
    }
    @media (min-width: 1024px) {
      #quickCaptureModal > div {
        max-width: 760px !important;
        padding: 24px 24px calc(24px + env(safe-area-inset-bottom)) !important;
      }
      #quickCaptureModal h3 {
        font-size: 1.3rem !important;
      }
      #quickCaptureModal p {
        font-size: 1rem !important;
      }
      #quickCaptureModal input,
      #quickCaptureModal textarea {
        font-size: 1rem !important;
        padding: 14px 14px !important;
      }
    }

    /* ===== Quick Capture Submit Button: Minimal White/Black Style ===== */
    #quickCaptureModal #qcSubmit {
      font-size: 1rem;
      padding: 12px 18px;
      border-radius: 10px;
      background: #fff;
      color: #000;
      border: 1px solid #000;
      font-weight: 600;
      width: 100%;
      cursor: pointer;
      transition: background 0.3s ease;
    }
    #quickCaptureModal #qcSubmit:hover {
      background: #f5f5f5;
    }

    
    @media (min-width: 1024px) {
      #quickCaptureModal {
        align-items: center !important;   /* vertical center (overrides inline flex-end) */
        justify-content: center !important; /* horizontal center (already centered, ensure) */
      }
      #quickCaptureModal > div {
        max-width: 880px !important;       /* make dialog larger on desktop */
        width: 90%;
        border-top-left-radius: 16px !important;
        border-top-right-radius: 16px !important;
        border-radius: 16px !important;    /* unified radius when centered */
      }
    }

    /* Make profile-container fully transparent and remove border/shadow */
    .profile-container {
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
    }

    /* Unified glassmorphism for profile-card and about-section (more transparent) */
    .profile-card,
    .about-section {
      background: rgba(255, 255, 255, 0.3);
      backdrop-filter: blur(2px);
      border-radius: 14px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
      transition: background 0.1s ease;
    }

    body.has-anim-bg .profile-card,
    body.has-anim-bg .about-section {
      background: rgba(0, 0, 0, 0.45);
      color: #fff;
    }

body.has-anim-bg .profile-card,
body.has-anim-bg .link-card,
body.has-anim-bg .video-wrapper,
body.has-anim-bg .cta-tile,
body.has-anim-bg .about-section,
body.has-anim-bg .card {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(0px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

body.has-anim-bg h1,
body.has-anim-bg h2,
body.has-anim-bg h3,
body.has-anim-bg p,
body.has-anim-bg .section-title,
body.has-anim-bg .link-title,
body.has-anim-bg .link-host {
  color: rgba(255, 255, 255, 0.9) !important;
}

  @keyframes colorcycle {
      0%   { background-color: #33CCCC; }
      20%  { background-color: #33CC36; }
      40%  { background-color: #B8CC33; }
      60%  { background-color: #FCCA00; }
      80%  { background-color: #33CC36; }
      100% { background-color: #33CCCC; }
    }
    .animated-colorcycle {
      animation: colorcycle 9s infinite linear;
      background-color: #33CCCC; /* fallback */
    }

     .profile-banner-container {
    width: 110%;
    display: flex;
    justify-content: center;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }

  @media (min-width: 768px) {
    .profile-banner-image {
      height: 320px;
      object-fit: cover;
      margin-bottom: -80px;
      
    }
  }

  @media screen and (max-width: 768px) {
    .profile-banner-image {
      width: 100%;
      height: 200px; /* taller crop for mobile */
      margin-bottom: -20px;
      object-fit: cover;
      display: block;
                  margin-top: -40px;

    }
  }

  @media (max-width: 768px) {
  }

  /* Quick Capture Modal CSS */
.qc-modal {
  background: white;
  padding: 30px;
  border-radius: 8px;
  max-width: 400px;
  margin: 10vh auto;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.qc-modal input, .qc-modal textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  font-size: 14px;
}
#qcSubmit {
  background: white;
  color: black;
  border: 1px solid black;
  padding: 10px 20px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
}
.qc-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
}
/* --- Button style classes for solid/transparent --- */
.profile-button.btn-solid {
  background-color: var(--accent-color, var(--button-color, var(--brand, #0b5fff)));
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 800;
  font-size: 1.08rem;
  padding: 14px 22px;
  margin: 6px 8px 6px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.10);
  transition: all 0.2s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}
.profile-button.btn-solid a {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.profile-button.btn-solid i {
  margin-right: 8px;
}
.profile-button.btn-transparent {
  background-color: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px);
  color: var(--accent-color, var(--button-color, var(--brand, #0b5fff)));
  border: none !important;
  border-radius: 6px;
  font-weight: 800;
  font-size: 1.08rem;
  padding: 14px 22px;
  margin: 6px 8px 6px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.10);
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}
.profile-button.btn-transparent a {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.profile-button.btn-transparent i {
  margin-right: 8px;
}
a.btn, a.btn:hover,
a.profile-button, a.profile-button:hover,
a.gradient-button, a.gradient-button:hover {
  text-decoration: none !important;
}
/* --- Custom button adaptive text color --- */
.custom-button {
  color: white;
}
.custom-button.light-bg,
.custom-button:has(.light-bg) {
  color: #111 !important;
}
/* Reduce bottom margin for share button if set elsewhere */
#nativeShare {
  display: inline-block;
  padding: 12px 20px;
  background: linear-gradient(45deg, #007BFF, #5DADE2);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  margin: 8px 10px 12px;
  transform: scale(1.05);
  filter: brightness(1.1);
}
.bottom-button-container {
  margin-top: 12px !important;
}
/* Empty space below Share Profile (all viewports) */
#shareButtonContainer {
  padding-bottom: 2rem;
}
@media (max-width: 768px) {
  #shareButtonContainer {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 2.25rem;
  }
  #nativeShare {
    margin-bottom: 0 !important;
  }
}

/* Fixed CONNECT bar is only visible ≤767px when lead capture is on */
@media (max-width: 767px) {
  body.has-mobile-connect-bar .profile-wrapper {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }
  body.has-mobile-connect-bar #shareButtonContainer {
    margin-bottom: 0 !important;
    padding-bottom: 2rem !important;
  }
}

/* Minimal Desktop Save Contact FAB (background/color from inline PHP / owner preview JS for contrast) */
.desktop-vcard-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  /* Fallback when no inline styles */
  background: linear-gradient(135deg, var(--brand-start, #0b5fff), var(--brand-end, #0b5fff));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #fff;
  border: 3px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  z-index: 999;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 1;
  transform: scale(1);
  animation: fabFadeIn 0.6s ease-out 0.8s forwards;
}

.desktop-vcard-fab--solid:hover {
  transform: scale(1.15) translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 6px rgba(255, 255, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  filter: brightness(1.12) saturate(1.15);
  border-color: rgba(255, 255, 255, 0.6);
}

.desktop-vcard-fab--transparent:hover {
  transform: scale(1.12) translateY(-5px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18), 0 0 0 4px rgba(255, 255, 255, 0.25);
  filter: brightness(1.06);
  background: rgba(255, 255, 255, 0.18) !important;
}

.desktop-vcard-fab:hover:not(.desktop-vcard-fab--solid):not(.desktop-vcard-fab--transparent) {
  transform: scale(1.15) translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 6px rgba(255, 255, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  filter: brightness(1.15) saturate(1.2);
  border-color: rgba(255, 255, 255, 0.6);
}

.desktop-vcard-fab:active {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(255, 255, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.desktop-vcard-fab i {
  font-size: 28px;
  font-weight: 600;
  color: inherit;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: block;
}

.desktop-vcard-fab::after {
  content: 'Contact';
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: inherit;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  opacity: 0.95;
}

@keyframes fabFadeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hide on mobile */
@media (max-width: 768px) {
  .desktop-vcard-fab {
    display: none !important;
  }
}


            .custom-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    transition: all 0.2s ease-in-out;
  }
  .custom-modal.show {
    display: block;
  }
  .modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  }
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }

  #stylingModal .actions {
  position: sticky;
  bottom: 0;
  background: #fff;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(0,0,0,.08);
  z-index: 2;
}

#stylingModal .actions .save {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  background: var(--brand, #0b5fff);
  color: #fff;
  transition: 0.2s ease-in-out;
}
#stylingModal .actions .save {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  background: var(--brand, #0b5fff);
  color: #fff;
  transition: 0.2s ease-in-out;
  opacity: 0.9;
}
-in-out;
}
#stylingModal .actions .cancel {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease-in-out;
  background: #ddd;
}
rgin-top: 1rem;
    margin-bottom: 1rem;
    gap: 1rem;
  }
  .centered-radio-section label {
    font-size: 1rem;
  }

    /* Modern Quick Capture Modal */
    .qc-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.75);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 10000;
      animation: qcFadeIn 0.3s ease;
    }
    
    @keyframes qcFadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    
    .qc-modal {
      position: relative;
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(40px) saturate(180%);
      -webkit-backdrop-filter: blur(40px) saturate(180%);
      width: 90%;
      max-width: 520px;
      border-radius: 24px;
      padding: 0;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
      animation: qcSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
      overflow: hidden;
    }
    
    @keyframes qcSlideUp {
      from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }
    
    .qc-close {
      position: absolute;
      right: 20px;
      top: 20px;
      width: 40px;
      height: 40px;
      border: none;
      background: rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(10px);
      border-radius: 50%;
      font-size: 18px;
      cursor: pointer;
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
      z-index: 10;
    }
    
    .qc-close:hover {
      background: rgba(255, 255, 255, 0.3);
      color: white;
      transform: rotate(90deg);
    }
    
    .qc-header {
      text-align: center;
      padding: 40px 32px 32px;
      background: linear-gradient(135deg, var(--brand-start, #0b5fff) 0%, var(--brand-end, #0b5fff) 100%) !important;
      background-color: #0b5fff !important;
      color: white !important;
      position: relative;
    }
    
    .qc-header::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 20px;
      background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.98));
      z-index: 0;
      pointer-events: none;
    }
    
    .qc-avatar {
      width: 120px;
      height: 120px;
      margin: 0 auto 24px;
      border-radius: 50%;
      border: 5px solid rgba(255, 255, 255, 0.4);
      overflow: hidden;
      box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
      background: white;
      padding: 4px;
      display: block !important;
      position: relative;
      z-index: 2;
    }
    
    .qc-avatar img {
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
      border-radius: 50% !important;
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
      background: white;
    }
    
    .qc-title {
      font-size: 28px;
      font-weight: 700;
      margin: 0 0 8px 0;
      letter-spacing: -0.02em;
      color: white !important;
      text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
      position: relative;
      z-index: 1;
    }
    
    .qc-subtitle {
      font-size: 15px;
      margin: 0;
      color: rgba(255, 255, 255, 0.95) !important;
      font-weight: 400;
      text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
      position: relative;
      z-index: 1;
    }
    
    .qc-form {
      padding: 32px;
    }
    
    .qc-field-group {
      margin-bottom: 20px;
    }
    
    .qc-label {
      display: flex;
      align-items: center;
      gap: 12px;
      position: relative;
    }
    
    .qc-label i {
      position: absolute;
      left: 16px;
      top: 50%;
      transform: translateY(-50%);
      color: #999;
      font-size: 16px;
      z-index: 1;
      pointer-events: none;
      transition: color 0.2s ease;
      display: inline-block;
      width: 18px;
      text-align: center;
    }
    
    .qc-label:has(.qc-textarea) i {
      top: 20px;
      transform: none;
    }
    
    .qc-input,
    .qc-textarea {
      width: 100%;
      padding: 16px 16px 16px 50px !important;
      border: 2px solid rgba(0, 0, 0, 0.08);
      border-radius: 12px;
      font-size: 15px;
      font-family: inherit;
      background: rgba(255, 255, 255, 0.8);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      outline: none;
      box-sizing: border-box;
      text-indent: 0 !important;
    }
    
    .qc-input::placeholder,
    .qc-textarea::placeholder {
      padding-left: 0 !important;
      margin-left: 0 !important;
      text-indent: 0 !important;
    }
    
    /* Prevent mobile zoom on input focus - font-size must be at least 16px */
    @media (max-width: 768px) {
      .qc-input,
      .qc-textarea {
        font-size: 16px !important;
      }
    }
    
    .qc-input:focus,
    .qc-textarea:focus {
      border-color: var(--brand, #0b5fff);
      background: white;
      box-shadow: 0 0 0 4px rgba(11, 95, 255, 0.1);
      transform: translateY(-1px);
    }
    
    .qc-input:focus + i,
    .qc-textarea:focus + i {
      color: var(--brand, #0b5fff);
    }
    
    .qc-label:has(.qc-input:focus) i,
    .qc-label:has(.qc-textarea:focus) i {
      color: var(--brand, #0b5fff);
    }
    
    .qc-textarea {
      resize: vertical;
      min-height: 100px;
      padding-top: 16px;
    }
    
    .qc-submit {
      width: 100%;
      padding: 16px 24px;
      background: linear-gradient(135deg, var(--brand-start, #0b5fff), var(--brand-end, #0b5fff));
      color: white;
      border: none;
      border-radius: 12px;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 4px 16px rgba(11, 95, 255, 0.3);
      margin-top: 8px;
    }
    
    .qc-submit:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(11, 95, 255, 0.4);
      filter: brightness(1.05);
    }
    
    .qc-submit:active {
      transform: translateY(0);
    }
    
    .qc-submit i {
      font-size: 14px;
      transition: transform 0.3s ease;
    }
    
    .qc-submit:hover i {
      transform: translateX(4px);
    }
    
    .qc-status {
      padding: 0 32px 24px;
      text-align: center;
      font-size: 14px;
      font-weight: 500;
      min-height: 20px;
    }
    
    /* Hide top toolbar and mobile save contact bar when modal is open */
    body.qc-open #topEditBar {
      display: none !important;
    }
    
    body.qc-open .ios-bottom-bar,
    body.qc-open .chrome-backdrop {
      display: none !important;
    }
    
    @media (max-width: 768px) {
      .qc-modal {
        width: 100%;
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        margin-top: auto;
        margin-bottom: 0;
        animation: qcSlideUpMobile 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
      }
      
      @keyframes qcSlideUpMobile {
        from {
          opacity: 0;
          transform: translateY(100%);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }
      
      .qc-overlay {
        align-items: flex-end;
      }
      
      .qc-header {
        padding: 32px 24px 24px;
      }
      
      .qc-avatar {
        display: block !important;
        width: 120px !important;
        height: 120px !important;
        margin: 0 auto 24px !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: white !important;
      }
      
      .qc-avatar img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        background: white !important;
      }
      
      .qc-form {
        padding: 24px;
      }
      
      .qc-title {
        font-size: 24px;
      }
    }