/* index.css */

*, *::before, *::after {
  box-sizing: border-box;
}

/* 1. Make the page a column flex container */
body {
  background: linear-gradient(120deg, #f6f7fb 0%, #e9ebf3 100%) !important;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Poppins', 'Merriweather', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-y: auto;
  padding-top: 102px; /* 70px navbar + 32px margin */
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden !important;
  position: fixed !important;
  width: 100vw !important;
  height: 100vh !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 99999 !important;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,0.55) 0%, rgba(230,235,255,0.38) 100%);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
}
body > * {
  position: relative;
  /* z-index: 1; */
}

/* Custom styles for tab icons */
.nav-tabs .nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 8px 8px 0 0;
  transition: all 0.3s ease;
}

.nav-tabs .nav-link i {
  font-size: 16px;
  width: 18px;
  text-align: center;
}

.nav-tabs .nav-link:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
}

.nav-tabs .nav-link.active {
  background-color: #adbbda;
  color: white;
  border-color: #adbbda;
}

/* Icon colors for different tab types */
.nav-tabs .nav-link[data-type="url"] i { color: #007bff; }
.nav-tabs .nav-link[data-type="pdf"] i { color: #dc3545; }
.nav-tabs .nav-link[data-type="email"] i { color: #28a745; }
.nav-tabs .nav-link[data-type="phone"] i { color: #6f42c1; }
.nav-tabs .nav-link[data-type="sms"] i { color: #fd7e14; }
.nav-tabs .nav-link[data-type="wifi"] i { color: #20c997; }
.nav-tabs .nav-link[data-type="youtube"] i { color: #ff0000; }
.nav-tabs .nav-link[data-type="instagram"] i { color: #e4405f; }
.nav-tabs .nav-link[data-type="whatsapp"] i { color: #25d366; }
.nav-tabs .nav-link[data-type="location"] i { color: #dc3545; }

/* Keep icon color white when tab is active */
.nav-tabs .nav-link.active i {
  color: white !important;
}

/* 2. Navbar stays full-width at top */
.navbar-outer-container {
  position: fixed;
  top: 16px;
  left: 0;
  width: 100vw;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 9999 !important;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar {
  position: relative;
  width: 92vw;
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: 
    0 8px 32px rgba(30, 30, 40, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: auto;
  z-index: 10000 !important;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: navbarSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Navbar scroll effect */
.navbar.navbar-scrolled {
  height: 60px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
  box-shadow: 
    0 12px 48px rgba(30, 30, 40, 0.2),
    0 6px 24px rgba(0, 0, 0, 0.12),
    0 3px 10px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
}

@keyframes navbarSlideIn {
  from {
    opacity: 0;
    transform: translateY(-100px) scale(0.95);
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    backdrop-filter: blur(20px);
  }
}

.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.1) 100%);
  pointer-events: none;
  z-index: -1;
}

.navbar:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 16px 48px rgba(30, 30, 40, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.gen-btn {
  background: linear-gradient(135deg, #3d52a0 0%, #4c63b6 100%) !important;
  color: rgb(255, 255, 255) !important;
  display: inline-block;
  line-height: 14px;
  text-decoration: none;
  padding: 15px 30px;
  font-weight: 600;
  font-size: 18px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(61, 82, 160, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gen-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(61, 82, 160, 0.4);
  background: linear-gradient(135deg, #4c63b6 0%, #5a73cc 100%) !important;
}

.nav-brand {
  display: flex;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  flex-shrink: 0;
  margin-left: 2%;
}

.nav-brand img {
  max-height: 38px;
  width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-brand:hover {
  transform: scale(1.05);
}

.nav-brand:hover img {
  filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(255, 255, 255, 0.3));
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
  flex-shrink: 0;
}

.nav-menu li a {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.nav-menu li a::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 cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-menu li a:hover::before {
  left: 100%;
}

.nav-menu li a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(0, 0, 0, 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-menu li a:active {
  transform: translateY(0) scale(0.98);
}

/* Dropdown styles */
.nav-item.dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: '';
  border: none;
  width: 0;
  height: 0;
  margin-left: 8px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* FontAwesome chevron rotation for dropdown */
.dropdown-toggle .fa-chevron-down {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dropdown-toggle[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}

/* Fallback CSS arrow if FontAwesome doesn't load */
.dropdown-toggle:not(.fa-chevron-down):after {
  content: '';
  border: none;
  width: 0;
  height: 0;
  margin-left: 8px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Navbar dropdown specific styles - ensure proper visibility on desktop */
@media (min-width: 992px) {
  .nav-item.dropdown .dropdown-menu {
    position: absolute !important;
    display: none !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 1000 !important;
    min-width: 220px !important;
    padding: 8px 0 !important;
    margin: 8px 0 0 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 16px !important;
    box-shadow: 
      0 10px 40px rgba(0, 0, 0, 0.15),
      0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) scale(0.95) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  }
  
  .nav-item.dropdown .dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
  }
  
  .nav-item.dropdown .dropdown-item {
    color: #333 !important;
        padding: 12px 12px !important;
        text-decoration: none !important;
        display: block !important;
        border-radius: 8px !important;
        margin: 4px 0px !important;
        transition: all 0.2s ease !important;
  }
  
  .nav-item.dropdown .dropdown-item:hover {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #1e40af !important;
    
  }
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  min-width: 220px;
  padding: 8px 0;
  margin: 8px 0 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: none;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  animation: dropdownSlideIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes dropdownSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-15px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: #2d3748;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.dropdown-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(102, 126, 234, 0.1), 
    transparent);
  transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dropdown-item:hover::before {
  left: 100%;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.1) 0%, 
    rgba(118, 75, 162, 0.05) 100%);
  color: #667eea;
  transform: translateX(4px);
}

.dropdown-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dropdown-item:hover i {
  transform: scale(1.1);
  color: #667eea;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  z-index: 1600;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 44px;
  height: 44px;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hamburger:active {
  transform: scale(0.98);
  transition: all 0.1s ease;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 22px;
  background: rgba(255, 255, 255, 0.95);
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
}

.hamburger:hover span {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  width: 24px;
}

/* Modern X animation when active */
.hamburger.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
  background: #ff6b6b;
  width: 24px;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0) rotate(180deg);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
  background: #ff6b6b;
  width: 24px;
}

/* Enhanced mobile hamburger styles */
@media (max-width: 768px) {
  .hamburger {
    padding: 8px;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
  
  .hamburger span {
    width: 20px;
    height: 2px;
    margin: 2.5px 0;
  }
  
  .hamburger:hover span {
    width: 22px;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: translateY(4.5px) rotate(45deg);
    width: 22px;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-4.5px) rotate(-45deg);
    width: 22px;
  }
}

@media (max-width: 480px) {
  .hamburger {
    padding: 6px;
    border-radius: 6px;
    width: 36px;
    height: 36px;
  }
  
  .hamburger span {
    width: 18px;
    height: 1.5px;
    margin: 2px 0;
  }
  
  .hamburger:hover span {
    width: 20px;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: translateY(3.5px) rotate(45deg);
    width: 20px;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-3.5px) rotate(-45deg);
    width: 20px;
  }
}

/* Advanced hamburger animations */
.hamburger::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hamburger:hover::before {
  opacity: 1;
}

/* Pulse effect for better user feedback */
.hamburger.pulse {
  animation: hamburgerPulse 1.5s ease-in-out infinite;
}

@keyframes hamburgerPulse {
  0% {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  50% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), 0 0 0 6px rgba(255, 255, 255, 0.1);
  }
  100% {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.log-btn {
  background: linear-gradient(135deg, #ff5f6d 0%, #845ec2 100%) !important;
  color: #fff !important;
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  text-align: center;
  letter-spacing: 0.02em;
  outline: none;
  white-space: nowrap;
  box-shadow: 
    0 4px 16px rgba(132, 94, 194, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
}

.log-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.log-btn:hover::before {
  left: 100%;
}

.log-btn:hover, .log-btn:focus {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0891b2 100%) !important;
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 
    0 8px 24px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.log-btn:active {
  transform: translateY(0) scale(1);
}

/* User menu styles */
.user-menu-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
}

.user-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-menu-toggle i {
  font-size: 18px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.user-menu-toggle:hover i {
  transform: scale(1.1);
}

svg {
  pointer-events: none;
}

/* 3. Wrap your "main" QR area so it can center itself */
#main {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;
}

#main::before {
  display: none !important;
}

/* 4. Style your container */
.container, .wave-container {
  background: linear-gradient(135deg, rgba(255,255,255,0.88) 60%, rgba(120,140,255,0.32) 100%) !important;
  border-radius: 38px;
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.13), 0 2px 8px 0 rgba(0,0,0,0.06);
  border: 2px solid rgba(120,140,255,0.18);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  padding: 48px 36px 40px 36px;
  margin-top: 32px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1 !important;
}
.container::before, .wave-container::before {
  display: none;
}
.container > *, .wave-container > * {
  position: relative;
  z-index: 1;
}

.wave-container {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

/* Add subtle glow effect on hover */
.container:hover {
  box-shadow: 
    0 12px 40px rgba(102, 126, 234, 0.15),
    0 6px 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

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

/* QR code box */
#qrcode {
  position: relative;
  width: 100%;
  height: auto;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(30, 30, 40, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px; /* Removed padding to eliminate unnecessary space around the logo */
}

#qrcode img {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-control, .form-select {
  border-radius: 16px;
  border: 1.5px solid #e0e4fa;
  background: #fff;
  box-shadow: 0 1px 4px 0 rgba(31, 38, 135, 0.03);
  font-size: 1.08rem;
  padding: 16px 20px;
  margin-bottom: 18px;
  transition: border 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
  border: 1.5px solid #6c7cff;
  box-shadow: 0 2px 8px 0 rgba(108, 124, 255, 0.10);
  background: #fff;
}

/* Buttons */
.btn { 
  transition: all 0.3s ease;
  border-radius: 8px;
  font-weight: 500;
}

.btn:hover  { 
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn:active { 
  transform: translateY(0) scale(0.98);
  transition: transform 0.1s ease;
}

/* Loader */
#loaderModal .modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
}

#loaderModal img {
  width: 200px;
  height: 200px;
}

.qr-heading, .qr-section-title {
  font-family: 'Poppins', 'Merriweather', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.03em;
  margin-bottom: 36px;
  margin-top: 18px;
  text-align: center;
  text-shadow: 0 4px 24px rgba(108, 124, 255, 0.10), 0 1.5px 6px rgba(0,0,0,0.04);
}

.qr-heading .highlight {
  color: #667eea;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.log-btn {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%) !important;
  color: #fff !important;
  border: none;
  border-radius: 10px;
  padding: 8px 32px;
  font-weight: 700;
  font-size: 1.08rem;
  width: auto;
  max-width: 200px;
  display: inline-block;
  margin: 0 25px 0 32px;
  text-align: center;
  letter-spacing: 0.01em;
  outline: none;
  box-shadow: 0 2px 8px rgba(132, 94, 194, 0.13);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  text-decoration: none !important;
}
.log-btn:hover, .log-btn:focus {
  background: linear-gradient(90deg, #e64980 0%, #5f2eea 100%) !important;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(132, 94, 194, 0.18);
}

.wave-container svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  animation: waveMove 50s linear infinite;
}

@keyframes waveMove {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Footer Styles */
.footer {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
  color: #fff;
  box-shadow: 0 -2px 16px 0 rgba(102, 126, 234, 0.10);
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding: 60px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0;
  font-size: 14px;
}

.footer-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: white;
  font-family: 'Poppins', sans-serif;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
  position: relative;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-links a::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: #06b6d4;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
}

.footer-links a:hover::before {
  opacity: 1;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.newsletter, .newsletter-text {
  display: none !important;
}

.newsletter {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 14px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
}

.newsletter-btn {
  padding: 12px 20px;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0891b2 100%);
}

.footer-bottom {
  padding: 30px 40px;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.2) 0%, rgba(59, 130, 246, 0.2) 50%, rgba(6, 182, 212, 0.2) 100%);
  border-radius: 10px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 14px;
}

.footer-bottom-links {
  display: flex;
  gap: 30px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: white;
}

/* User menu and authentication styles */
.user-menu-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  color: white;
}

.user-menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  text-decoration: none;
}

.user-menu-toggle i {
  font-size: 1.2em;
}

/* Enhanced dropdown menu with STRONG visibility */
.dropdown-menu {
  min-width: 220px;
  background: #ffffff !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: 10px;
  padding: 10px 0;
  margin-top: 8px;
  z-index: 1050;
  opacity: 1 !important;
  visibility: visible !important;
}

.dropdown-item {
  display: flex !important;
  align-items: center;
  gap: 15px;
  padding: 10px 20px !important;
  color: #2d3748 !important;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 15px !important;
  font-weight: 600 !important;
  background: transparent !important;
  line-height: 1.2 !important;
}

.dropdown-item:hover {
  background-color: #667eea !important;
  color: #ffffff !important;
  text-decoration: none;
  transform: translateX(3px);
}

.dropdown-item i {
  width: 20px !important;
  text-align: center;
  color: #667eea !important;
  font-size: 18px !important;
  font-weight: bold !important;
}

.dropdown-item:hover i {
  color: #ffffff !important;
}

/* Dropdown divider for better separation */
.dropdown-divider {
  margin: 8px 0;
  border-top: 1px solid #e9ecef;
}

/* Button styles for Sign In and Sign Up */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-signin, .btn-signup {
  padding: 10px 20px !important;
  border-radius: 25px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: all 0.3s ease !important;
  border: 2px solid transparent !important;
  display: inline-block !important;
  text-align: center !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.btn-signin {
  color: white !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(10px) !important;
}

.btn-signin:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  color: white !important;
  text-decoration: none !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2) !important;
}

.btn-signup {
  background: linear-gradient(45deg, #adbbda, #8da0d4) !important;
  color: white !important;
  border-color: transparent !important;
  box-shadow: 0 2px 10px rgba(173, 187, 218, 0.3) !important;
}

.btn-signup:hover {
  background: linear-gradient(45deg, #9db0d6, #7a94d0) !important;
  color: white !important;
  text-decoration: none !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(173, 187, 218, 0.4) !important;
}

/* Modern Welcome Notification */
@keyframes slideInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulseIcon {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes progress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

.notification-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  width: 100%;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}

.notification-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  animation: progress 5s linear forwards;
}

#welcome-message {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(40, 167, 69, 0.15);
  padding: 16px 24px;
  margin: 20px auto !important;
  max-width: 600px;
  transform-origin: top;
  animation: slideInDown 0.5s ease-out forwards;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-20px);
}

#welcome-message.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

#welcome-message.hide {
  opacity: 0;
  transform: translateY(-20px);
}

#welcome-message .fas.fa-check-circle {
  font-size: 1.5em;
  color: white;
  animation: pulseIcon 2s infinite;
}

#welcome-message span {
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: 20px;
  margin: 0 4px;
}

@media (max-width: 768px) {
  .main-page-container {
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  /* Welcome message adjustments for mobile */
  #welcome-message {
    order: 1;
    margin: 10px 15px !important;
    padding: 12px 20px;
    font-size: 0.9em;
  }

  /* Main heading adjustments */
  .qr-heading {
    order: 2;
    font-size: 1.8rem;
    padding: 15px;
    margin: 0;
    text-align: center;
  }

  /* Main QR generator section */
  #main {
    order: 3;
    margin-top: 0;
    padding: 15px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  }

  /* QR generator layout adjustments */
  .qr-generator-layout {
    gap: 20px;
    margin-top: 0;
  }

  /* Input section adjustments */
  .input-section {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 15px;
    margin-bottom: 20px;
  }

  .input-group {
    margin-bottom: 15px;
  }

  /* Mobile input group for country code dropdown */
  .qr-input-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
  }

  .qr-input-group .qr-select-field {
    flex-shrink: 0;
    min-width: 120px;
    border-radius: 12px 0 0 12px;
    border-right: none;
  }

  .qr-input-group .qr-input-field {
    flex: 1;
    border-radius: 0 12px 12px 0;
    border-left: none;
  }

  .qr-input-group .qr-input-field:focus {
    border-left: 2px solid #4285f4;
  }

  /* URL input styling */
  .url-input {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
  }

  .url-input:focus {
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
  }

  /* Customize button styling */
  .mobile-customize-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: #4285f4;
  color: white;
  border: none;
  font-weight: 600;
  margin: 10px 0;
  display: none; /* Hidden by default */
}

@media (max-width: 768px) {
  .mobile-customize-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
  }
  
  .mobile-customize-btn i {
    font-size: 1.1rem;
  }
}

  /* OR divider styling */
  .mobile-or-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #6c757d;
  }

  .or-line {
    flex: 1;
    height: 1px;
    background: #dee2e6;
  }

  .or-text {
    padding: 0 15px;
    font-weight: 500;
  }

  /* Features section and other content */
  .features-section,
  .how-to-section {
    order: 4;
    margin-top: 0px;
  }

  /* Tab navigation */
  .mobile-qr-tab-menu {
    background: white;
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 15px;
  }

  .mobile-tab-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-tab-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    background: #f1f3f4;
    color: #5f6368;
    font-weight: 500;
    white-space: nowrap;
  }

  .mobile-tab-btn.active {
    background: #4285f4;
    color: white;
  }

  /* Live preview section */
  .live-preview-section {
    background: white;
    border-radius: 15px;
    padding: 15px;
    margin-top: 20px;
  }

  .preview-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #202124;
  }

  .preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
  }
}

.form-control.is-valid {
    border-color: #198754;
    padding-right: calc(1.5em + 0.75rem);
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
  }
  
  .form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
  }
  
  .valid-feedback, .invalid-feedback {
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
  }
  
  .valid-feedback {
    color: #198754;
  }
  
  .invalid-feedback {
    color: #dc3545;
  }

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

/* Force dropdown visibility - override any conflicting styles */
.dropdown-menu.show {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: #ffffff !important;
}

.dropdown-menu .dropdown-item {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Ensure Bootstrap dropdown works properly */
.dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
  color: white;
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* Enhanced focus states for accessibility */
.btn-signin:focus, .btn-signup:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.dropdown-item:focus {
  background-color: #e3f2fd;
  outline: 2px solid #667eea;
  outline-offset: -2px;
}

/* Logging indicator */
.logging-indicator {
  position: fixed;
  top: 10px;
  right: 10px;
  background: #28a745;
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 12px;
  z-index: 1000;
  display: none;
}

.logging-indicator.show {
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
  }
  
  .footer-section:first-child {
    grid-column: 1 / -1;
    margin-bottom: 20px;
  }
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px;
    border-radius: 50px;
    transition: background-color 0.3s;
}

.profile-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#user-avatar-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

#user-name-nav {
    color: white;
    font-weight: 500;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #0076e97d;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.profile-dropdown:hover .dropdown-content {
    display: block;
}

@media (max-width: 768px) {
  .footer,
  .footer-container,
  .footer-top,
  .footer-section,
  .footer-bottom-content {
    text-align: center;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 0 30px;
  }

  .footer-section {
    margin: 0 auto;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 15px;
  }

  .navbar {
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.95) 0%, rgba(59, 130, 246, 0.95) 50%, rgba(6, 182, 212, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: space-between;
    align-items: center;
  }

  .navbar.navbar-scrolled {
    padding: 10px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  /* Updated mobile hamburger to match new design */
  .hamburger {
    display: flex;
    padding: 6px;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
  }

  .hamburger:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
  }

  .hamburger span {
    width: 18px;
    height: 1.5px;
    margin: 2px 0;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.98) 0%, rgba(59, 130, 246, 0.98) 50%, rgba(6, 182, 212, 0.98) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 80px 0 40px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1500;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  }

  .nav-menu.active {
    right: -20px;
    animation: mobileMenuSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  @keyframes mobileMenuSlideIn {
    0% {
      right: -100%;
      opacity: 0;
    }
    100% {
      right: 0;
      opacity: 1;
    }
  }

  @keyframes mobileMenuSlideOut {
    0% {
      right: 0;
      opacity: 1;
    }
    100% {
      right: -100%;
      opacity: 0;
    }
  }

  .nav-menu li {
    width: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .nav-menu.active li {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
  .nav-menu.active li:nth-child(2) { transition-delay: 0.2s; }
  .nav-menu.active li:nth-child(3) { transition-delay: 0.3s; }
  .nav-menu.active li:nth-child(4) { transition-delay: 0.4s; }
  .nav-menu.active li:nth-child(5) { transition-delay: 0.5s; }

  .nav-menu li a {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    padding: 16px 24px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: block;
    width: calc(100% - 24px);
    margin: 8px 12px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
  }

  .nav-menu li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
      transparent, 
      rgba(255, 255, 255, 0.3), 
      transparent);
    transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .nav-menu li a:hover::before {
    left: 100%;
  }

  .nav-menu li a:hover, .nav-menu li a:focus {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  }


  .nav-menu li a:active {
    transform: scale(0.95);
  }

  .log-btn {
    margin: 16px 0 0 0;
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 20px;
    font-weight: 600;
    background: linear-gradient(135deg, #ff5f6d 0%, #845ec2 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
      0 6px 20px rgba(132, 94, 194, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }

  .log-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
      0 10px 30px rgba(132, 94, 194, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }

  .nav-brand {
    order: 1;
    margin-top: 0;
  }

  .hamburger {
    order: 2;
  }

  .nav-brand img {
    max-height: 32px;
    margin-bottom: 0;
  }

  body {
    background: linear-gradient(120deg, #f6f7fb 0%, #e9ebf3 100%);
    padding-top: 102px;
  }

  /* Dropdown styles for mobile */
  .dropdown-menu {
    position: static;
    display: none; /* Hidden by default in mobile */
    float: none;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: none;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
  }
  
  /* Show dropdown when active in mobile */
  .nav-menu .dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: mobileDropdownSlideIn 0.3s ease-out;
  }
  
  @keyframes mobileDropdownSlideIn {
    0% {
      opacity: 0;
      transform: translateY(-10px) scale(0.95);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
    padding: 12px 20px;
    border-radius: 8px;
    margin: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
  }

  .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 1);
    transform: none;
  }

  /* User menu toggle for mobile */
  .user-menu-toggle {
    padding: 12px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 16px;
  }

  .user-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
  }
}

/* 5. Extra small screens */
@media (max-width: 576px) {
  .navbar {
    width: 95vw;
    padding: 0 1rem;
    height: 60px;
  }

  .navbar.navbar-scrolled {
    height: 55px;
  }

  .nav-brand img {
    max-height: 32px;
  }

  .nav-menu li a {
    padding: 8px 12px;
    font-size: 13px;
  }

  .log-btn {
    padding: 8px 16px;
    font-size: 13px;
    margin-left: 8px;
  }

  .user-menu-toggle {
    padding: 6px 12px;
    font-size: 13px;
  }

  .container { 
    padding: 25px; 
    margin: 20px auto; 
    border-radius: 12px;
  }
  
  body {
    padding-top: 92px;
  }
}

@media (max-width: 480px) {
  .qr-heading {
    display: none !important; /* Hide heading on mobile devices */
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 30px 0 25px;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .footer-title {
    font-size: 16px;
    margin-bottom: 15px;
  }
  
  .social-link {
    width: 35px;
    height: 35px;
  }
  
  .newsletter-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .newsletter-input {
    padding: 10px 14px;
    font-size: 13px;
  }
}

.qr-features-section {
  padding: 140px 20px 80px 20px;
  margin-top: 40px;
  position: relative;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
}

.qr-features-container {
  max-width: 1200px;
  margin: 0 auto;
}

.qr-section-header {
  text-align: center;
  margin-bottom: 80px;
  opacity: 0;
  animation: qrFadeInUp 1s ease-out forwards;
}

.qr-section-title {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1e293b, #334155);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.qr-section-subtitle {
  font-size: 1.2rem;
  color: rgba(30, 41, 59, 0.7);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.qr-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-bottom: 100px;
}

.qr-feature-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(162, 188, 255, 0.3);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: qrFadeInUp 0.8s ease-out forwards;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(118, 139, 252, 0.15);
}

.qr-feature-card:nth-child(1) { animation-delay: 0.2s; }
.qr-feature-card:nth-child(2) { animation-delay: 0.4s; }
.qr-feature-card:nth-child(3) { animation-delay: 0.6s; }

.qr-feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(118, 139, 252, 0.25);
  background: rgba(255, 255, 255, 0.9);
}

.qr-feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #768bfc, #a2bcff);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
  animation: qrPulse 2s infinite;
  color: white;
}

.qr-feature-card:nth-child(2) .qr-feature-icon {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.qr-feature-card:nth-child(3) .qr-feature-icon {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.qr-feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
}

.qr-feature-description {
  color: rgba(30, 41, 59, 0.7);
  line-height: 1.6;
  font-size: 1rem;
}

.qr-steps-section {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 32px;
  padding: 60px 40px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(162, 188, 255, 0.4);
  opacity: 0;
  animation: qrFadeInUp 1s ease-out 0.8s forwards;
  box-shadow: 0 8px 32px rgba(118, 139, 252, 0.15);
}

.qr-steps-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin-bottom: 50px;
}

.qr-steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.qr-step-card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 30px;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(162, 188, 255, 0.2);
}

.qr-step-card:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.02); 
  box-shadow: 0 8px 25px rgba(118, 139, 252, 0.2);
}

.qr-step-number {
  position: absolute;
  top: -15px;
  left: 30px;
  background: linear-gradient(135deg, #768bfc, #a2bcff);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  animation: qrBounce 2s infinite;
  box-shadow: 0 4px 15px rgba(118, 139, 252, 0.3);
}

.qr-step-card:nth-child(2) .qr-step-number {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  animation-delay: 0.2s;
}

.qr-step-card:nth-child(3) .qr-step-number {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  animation-delay: 0.4s;
}

.qr-step-card:nth-child(4) .qr-step-number {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  animation-delay: 0.6s;
}

.qr-step-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e293b;
  margin: 20px 0 15px;
}

.qr-step-description {
  color: rgba(30, 41, 59, 0.7);
  line-height: 1.5;
}

.qr-floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.qr-floating-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(162, 188, 255, 0.15);
  animation: qrFloat 6s ease-in-out infinite;
}

.qr-circle-1 {
  width: 100px;
  height: 100px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.qr-circle-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 10%;
  animation-delay: 2s;
  background: rgba(118, 139, 252, 0.12);
}

.qr-circle-3 {
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
  background: rgba(162, 188, 255, 0.18);
}

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

@keyframes qrPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes qrBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes qrFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes qrRipple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .qr-section-title {
    font-size: 2.5rem;
  }
  
  .qr-features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .qr-steps-container {
    grid-template-columns: 1fr;
  }
  
  .qr-feature-card, .qr-steps-section {
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.75);
  }
}

/* Modern PDF Login Prompt Styles */
.pdf-login-alert {
  background: linear-gradient(135deg, #e3f0fc 0%, #d0e6fa 100%);
  border: 1.5px solid #b3d1f7;
  color: #234567;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(80, 120, 200, 0.08);
  padding: 32px 28px 28px 28px;
  margin: 24px 0;
  font-size: 1.15rem;
  font-family: 'Merriweather', 'Poppins', Arial, sans-serif;
  text-align: left;
  position: relative;
}
.pdf-login-alert .fa-info-circle {
  color: #4285f4;
  font-size: 1.4em;
  margin-right: 8px;
  vertical-align: -2px;
}
.pdf-login-alert strong {
  color: #234567;
  font-weight: 700;
  font-size: 1.18em;
}
.pdf-login-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 32px;
  font-size: 1.08em;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(102, 126, 234, 0.10);
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  cursor: pointer;
  text-decoration: none;
}
.pdf-login-btn:hover, .pdf-login-btn:focus {
  background: linear-gradient(90deg, #5a67d8 0%, #6c3eb7 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(102, 126, 234, 0.18);
  transform: translateY(-2px) scale(1.03);
  text-decoration: none;
}

/* Loogers */
.logging-indicator {
  position: fixed;
  top: 10px;
  right: 10px;
  background: #28a745;
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 12px;
  z-index: 1000;
  display: none;
}

.logging-indicator.show {
  display: block;
}

/* === Desktop QR Generator Card Alignment Fixes === */
@media (min-width: 1025px) {
  .main-page-container {
    width: 100vw !important;
    max-width: 100vw !important;
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }
  #main-flex-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: flex-start;
    gap: 40px;
    min-width: 900px;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
  }
  .main-card {
    width: 900px !important;
    max-width: 900px !important;
    flex-shrink: 0;
    padding: 80px 20px;
  }
  .right-col {
    min-width: 340px;
    max-width: 400px;
    width: 100%;
    flex-shrink: 0;
  }
  .live-preview-mobile {
    display: none !important;
  }
}
@media (max-width: 1024px) {
  .live-preview-desktop {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .main-card {
    padding: 80px 20px;
  }
}
/* === End Desktop QR Generator Card Alignment Fixes === */

/* ===== NEW THREE-COLUMN QR GENERATOR LAYOUT ===== */

.qr-generator-layout {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 80px 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  position: relative;
}

/* Left Column - Destination */
.destination-column {
  background: rgba(255,255,255,0.95);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.10);
  border: 1px solid rgba(120,140,255,0.15);
  backdrop-filter: blur(20px);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.destination-column .section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  text-align: center;
}

.qr-type-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  grid-template-rows: repeat(3, auto) !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
}

.qr-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  height: 70px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.qr-type-card:hover {
  background: #f0f9ff;
  border-color: #3b82f6;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

.qr-type-card.active {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
  border-color: #3b82f6;
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.qr-type-icon {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: #3b82f6;
  line-height: 1;
  transition: all 0.3s ease;
}

.qr-type-card.active .qr-type-icon {
  color: white;
}

.qr-type-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  max-width: 100%;
  transition: all 0.3s ease;
}

.qr-type-card.active .qr-type-title {
  color: white;
}

/* Coming Soon QR Type Card */
.qr-type-card.coming-soon {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px dashed #94a3b8;
  cursor: not-allowed;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(148, 163, 184, 0.15);
}

.qr-type-card.coming-soon:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(148, 163, 184, 0.25);
  border-color: #64748b;
}

.qr-type-card.coming-soon .qr-type-icon {
  color: #475569;
  animation: comingSoonPulse 2s ease-in-out infinite;
}

.qr-type-card.coming-soon .qr-type-title {
  color: #334155;
  font-weight: 700;
  font-size: 0.95rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.coming-soon-subtitle {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 2px;
  display: block;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Animated background for coming soon card */
.qr-type-card.coming-soon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg at 50% 50%, 
    transparent 0deg,
    rgba(99, 102, 241, 0.08) 90deg,
    transparent 180deg,
    rgba(139, 92, 246, 0.08) 270deg,
    transparent 360deg);
  animation: comingSoonSpin 8s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.qr-type-card.coming-soon > * {
  position: relative;
  z-index: 1;
}

@keyframes comingSoonPulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.7;
  }
  50% { 
    transform: scale(1.1);
    opacity: 1;
  }
}

@keyframes comingSoonSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes comingSoonShake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
  20%, 40%, 60%, 80% { transform: translateX(2px); }
}

/* Coming Soon Tooltip */
.coming-soon-tooltip {
  position: fixed;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -100%) translateY(-15px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.coming-soon-tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -100%) translateY(-10px) scale(1);
}

/* Bottom tooltip variant */
.coming-soon-tooltip.tooltip-bottom {
  transform: translate(-50%, 0) translateY(15px) scale(0.95);
}

.coming-soon-tooltip.tooltip-bottom.show {
  transform: translate(-50%, 0) translateY(10px) scale(1);
}

.coming-soon-tooltip.tooltip-bottom .tooltip-content::before {
  bottom: auto;
  top: -8px;
  border-top: none;
  border-bottom: 8px solid #0f172a;
}

.coming-soon-tooltip .tooltip-content {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 8px 25px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: normal;
  max-width: 320px;
  min-width: 250px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.coming-soon-tooltip .tooltip-content::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #0f172a;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.coming-soon-tooltip i {
  color: #fbbf24;
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 1px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.coming-soon-tooltip span {
  line-height: 1.5;
  flex: 1;
  color: #ffffff;
  font-weight: 600;
}

/* Mobile responsiveness for tooltip */
@media (max-width: 768px) {
  .coming-soon-tooltip .tooltip-content {
    max-width: 280px;
    min-width: 200px;
    font-size: 0.9rem;
    padding: 14px 18px;
  }
  
  .coming-soon-tooltip i {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .coming-soon-tooltip .tooltip-content {
    max-width: calc(100vw - 40px);
    min-width: auto;
    font-size: 0.85rem;
    padding: 12px 16px;
  }
}

/* ==========================================================================
   SHARE QR CODE MODAL STYLES
   Modern sharing interface with social media and sharing tools
   ========================================================================== */

/* Share Modal Base Styles */
.share-modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: none;
  border-radius: 20px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 8px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.share-modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 1.5rem 2rem;
  border-radius: 20px 20px 0 0;
}

.share-modal-header .modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.share-modal-header .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.share-modal-header .btn-close:hover {
  opacity: 1;
}

.share-modal-body {
  padding: 2rem;
}

.share-modal-footer {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: none;
  padding: 1.25rem 2rem;
  border-radius: 0 0 20px 20px;
}

/* QR Code Preview Section */
.share-qr-preview {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.share-qr-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.share-qr-image {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 4px solid white;
}

.share-qr-info {
  text-align: center;
  flex: 1;
  min-width: 300px;
}

.share-qr-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.share-qr-description {
  color: #64748b;
  margin: 0;
  font-size: 0.95rem;
}

/* Share Options Container */
.share-options-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.share-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.share-section-title i {
  color: #667eea;
}

/* Social Media Share Grid */
.social-share-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.social-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.social-share-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;
}

.social-share-btn:hover::before {
  left: 100%;
}

.social-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.social-share-btn:active {
  transform: translateY(0);
}

/* Platform-specific colors */
.social-share-btn.facebook {
  background: linear-gradient(135deg, #1877f2 0%, #166fe5 100%);
  color: white;
}

.social-share-btn.twitter {
  background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
  color: white;
}

.social-share-btn.linkedin {
  background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
  color: white;
}

.social-share-btn.whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
}

.social-share-btn.telegram {
  background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
  color: white;
}

.social-share-btn.reddit {
  background: linear-gradient(135deg, #ff4500 0%, #cc3700 100%);
  color: white;
}

/* Share Tools Grid */
.share-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.share-tool-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: white;
  color: #475569;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.share-tool-btn:hover {
  border-color: #667eea;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.share-tool-btn:active {
  transform: translateY(0);
}

.share-tool-btn i {
  font-size: 1.25rem;
}

/* Share Link Section */
.share-link-section {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
}

.share-link-container {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.share-link-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  font-size: 0.9rem;
  color: #475569;
  transition: border-color 0.2s ease;
}

.share-link-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.share-link-copy-btn {
  padding: 0.75rem 1rem;
  border: 2px solid #667eea;
  border-radius: 8px;
  background: #667eea;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-link-copy-btn:hover {
  background: #5a67d8;
  border-color: #5a67d8;
  transform: scale(1.05);
}

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

.share-link-note {
  color: #64748b;
  font-size: 0.8rem;
  display: block;
  margin-top: 0.5rem;
}

/* Success/Error States */
.share-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.share-error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .share-modal-body {
    padding: 1.5rem;
  }
  
  .share-qr-preview {
    padding: 1.5rem;
  }
  
  .share-qr-container {
    flex-direction: column;
    text-align: center;
  }
  
  .social-share-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .share-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .share-link-container {
    flex-direction: column;
  }
  
  .share-link-copy-btn {
    align-self: stretch;
  }
}

@media (max-width: 480px) {
  .modal-lg {
    max-width: 95%;
    margin: 1rem;
  }
  
  .share-modal-header,
  .share-modal-footer {
    padding: 1rem 1.5rem;
  }
  
  .social-share-grid,
  .share-tools-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   QR CODE SHARING SECTION STYLES
   Dedicated section for sharing QR codes below the main generator
   ========================================================================== */

.qr-sharing-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 3rem 0;
  margin: 2rem 0;
  border-radius: 24px;
  border: 1px solid rgba(120, 140, 255, 0.15);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.10);
  animation: fadeInUp 0.6s ease-out;
}

.sharing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Sharing Header */
.sharing-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.sharing-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
  flex-shrink: 0;
}

.sharing-title-group {
  flex: 1;
}

.sharing-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.025em;
}

.sharing-subtitle {
  font-size: 1rem;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

/* Sharing Content */
.sharing-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Sharing Actions Column */
.sharing-actions-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* QR Preview in Sharing Section */
.sharing-qr-preview {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.sharing-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.sharing-qr-canvas {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 3px solid white;
}

.sharing-qr-info {
  text-align: center;
}

.sharing-qr-type {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #3b82f6;
  margin-bottom: 0.25rem;
}

.sharing-qr-ready {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
}

/* Quick Share Actions */
.quick-share-actions {
  display: flex;
  gap: 1rem;
}

.quick-share-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  background: white;
  color: #475569;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
  justify-content: center;
}

.quick-share-btn:hover {
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.95);
  color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.quick-share-btn.primary {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
  color: white;
  border-color: #3b82f6;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.download-qr-btn {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%) !important;
  color: white !important;
  border: none !important;
  border-radius: 16px !important;
  padding: 16px 32px !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 
    0 8px 25px rgba(59, 130, 246, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  min-width: 220px !important;
  justify-content: center !important;
  position: relative !important;
  overflow: hidden !important;
  text-transform: none !important;
  letter-spacing: 0.025em !important;
}

.download-qr-btn:hover:not(:disabled):not(.loading) {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #0891b2 100%) !important;
  color: white !important;
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 
    0 12px 35px rgba(59, 130, 246, 0.5),
    0 8px 20px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.download-qr-btn:active:not(:disabled):not(.loading) {
  transform: translateY(-1px) scale(1.01) !important;
  transition: all 0.1s ease !important;
  box-shadow: 
    0 6px 20px rgba(59, 130, 246, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.download-qr-btn.loading {
  background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%) !important;
  pointer-events: none !important;
  cursor: wait !important;
  opacity: 0.8 !important;
  transform: none !important;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.download-qr-btn.loading i {
  animation: downloadSpin 1s linear infinite !important;
}

.download-qr-btn:disabled {
  background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%) !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
  opacity: 0.7 !important;
  transform: none !important;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

@keyframes downloadSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.quick-share-btn.primary:hover {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0891b2 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  border-color: #2563eb;
  color: white;
}

.quick-share-btn i {
  font-size: 1.1rem;
}

/* Popular Share Platforms */
.popular-share-platforms {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.platforms-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 1rem 0;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.platform-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border: none;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
}

.platform-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.platform-btn i {
  font-size: 1.2rem;
}

/* Platform-specific colors */
.platform-btn.whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.platform-btn.facebook {
  background: linear-gradient(135deg, #1877f2 0%, #166fe5 100%);
}

.platform-btn.twitter {
  background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

.platform-btn.email {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .qr-sharing-section {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(120, 140, 255, 0.15) !important;
    border-radius: 24px !important;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.10) !important;
    margin: 1rem 0 !important;
    padding: 2rem 0 !important;
  }

  .sharing-container {
    padding: 0 1.5rem;
  }
  
  .sharing-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .sharing-icon {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%) !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3) !important;
  }
  
  .sharing-title {
    color: #1e293b !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
  }
  
  .sharing-subtitle {
    color: #64748b !important;
    font-weight: 500 !important;
  }
  
  .sharing-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .sharing-qr-preview {
    max-width: 300px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.8) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(120, 140, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
  }
  
  .sharing-actions-column {
    gap: 1.25rem;
  }
  
  .quick-share-actions {
    flex-direction: column;
  }
  
  .quick-share-btn {
    border: 2px solid rgba(120, 140, 255, 0.2) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  
  .quick-share-btn:hover {
    border-color: #3b82f6 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15) !important;
  }
  
  .quick-share-btn.primary {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3) !important;
  }
  
  .quick-share-btn.primary:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0891b2 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4) !important;
  }
  
  .platforms-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .platform-btn {
    padding: 0.875rem 1rem !important;
    font-size: 0.85rem !important;
    gap: 0.5rem !important;
    border-radius: 14px !important;
    justify-content: center !important;
    text-align: center !important;
  }
  
  .platform-btn i {
    font-size: 1.1rem !important;
  }
  
  .popular-share-platforms {
    background: rgba(255, 255, 255, 0.8) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(120, 140, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
  }
}

/* Hide download button in mobile view */
@media (max-width: 1024px) {
  #quickDownloadBtn {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .qr-sharing-section {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(120, 140, 255, 0.15) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.10) !important;
    padding: 1.5rem 0 !important;
    margin: 0.75rem 0 !important;
  }
  
  .sharing-container {
    padding: 0 1rem !important;
  }
  
  .sharing-title {
    font-size: 1.4rem !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
  }
  
  .sharing-subtitle {
    font-size: 0.9rem !important;
    color: #64748b !important;
  }
  
  .sharing-qr-canvas {
    width: 140px;
    height: 140px;
  }
  
  .sharing-icon {
    width: 56px !important;
    height: 56px !important;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3) !important;
    border-radius: 16px !important;
  }
  
  .sharing-qr-preview {
    max-width: 280px !important;
    background: rgba(255, 255, 255, 0.8) !important;
    border-radius: 16px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(120, 140, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    padding: 1.25rem !important;
  }
  
  .quick-share-btn {
    padding: 0.75rem 1.25rem !important;
    border-radius: 14px !important;
    font-size: 0.85rem !important;
    border: 2px solid rgba(120, 140, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
  }
  
  .quick-share-btn.primary {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3) !important;
  }
  
  .popular-share-platforms {
    background: rgba(255, 255, 255, 0.8) !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(120, 140, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    padding: 1.25rem !important;
  }
  
  .platforms-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem !important;
  }
  
  .platform-btn {
    padding: 0.75rem 0.875rem !important;
    font-size: 0.8rem !important;
    gap: 0.4rem !important;
    border-radius: 12px !important;
    justify-content: center !important;
    text-align: center !important;
  }
  
  .platform-btn i {
    font-size: 1rem !important;
  }
}

/* Center Column - Input and Preview */
.center-column {
  background: rgba(255,255,255,0.95);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.10);
  border: 1px solid rgba(120,140,255,0.15);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 0px;
}

.center-column .section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0;
  text-align: center;
}

.input-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.url-input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.url-input:focus {
  outline: none;
  border-color: #6366f1;
  background: white;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.generate-btn {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
  color: #ffffff !important;
  border: none;
  padding: 16px 32px;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  width: 100%;
}

.generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0891b2 100%);
}

/* Mobile Customize Button */
.mobile-customize-btn {
  display: none;
  background: rgba(255, 255, 255, 0.95);
  color: #3b82f6;
  border: 2px solid #3b82f6;
  padding: 14px 28px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  margin-top: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

.mobile-customize-btn:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.mobile-customize-btn:active {
  transform: translateY(-1px);
}

.mobile-customize-btn i {
  margin-right: 8px;
  font-size: 1.1rem;
}

.mobile-customize-btn.active {
  background: #3b82f6 !important;
  color: white !important;
  border-color: #3b82f6 !important;
}

.mobile-customize-btn.active:hover {
  background: #2563eb !important;
  color: white !important;
  border-color: #2563eb !important;
}

/* Mobile Customize Hint */
.mobile-customize-hint {
  display: none;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 12px;
  text-align: center;
  font-size: 0.9rem;
  color: #1e40af;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.3s ease-out;
  opacity: 1;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.mobile-customize-hint.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

.mobile-customize-hint i {
  color: #3b82f6;
  margin-right: 8px;
  font-size: 1rem;
}

.mobile-customize-hint span {
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Mobile OR Divider */
.mobile-or-divider {
  display: none;
  align-items: center;
  margin: 16px 0;
  gap: 12px;
}

.or-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.3) 50%, transparent 100%);
}

.or-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.15);
  backdrop-filter: blur(10px);
  letter-spacing: 0.05em;
}

/* Mobile Customization Modal */
.mobile-customization-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.mobile-customization-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  display: flex;
}

.mobile-customization-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  border-radius: 24px 24px 0 0;
  height: 85vh;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 10000;
}

.mobile-customization-modal-overlay.active .mobile-customization-modal {
  transform: translateY(0);
}

.mobile-custom-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 12px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.mobile-custom-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-custom-title i {
  color: #3b82f6;
  font-size: 1.1rem;
}

.mobile-custom-close {
  background: rgba(71, 85, 105, 0.1);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #64748b;
}

.mobile-custom-close:hover {
  background: rgba(71, 85, 105, 0.2);
  color: #475569;
}

.mobile-custom-body {
  padding: 20px 24px;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.mobile-custom-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0 0 16px 0;
  font-weight: 500;
}

.mobile-custom-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
  padding: 8px 0;
}

.mobile-custom-option {
  display: flex;
  align-items: center;
  padding: 16px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  min-height: 80px;
}

.mobile-custom-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 197, 253, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-custom-option:hover::before {
  opacity: 1;
}

.mobile-custom-option:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.mobile-custom-option input[type="radio"] {
  display: none;
}

.custom-radiomark {
  width: 24px;
  height: 24px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  transition: all 0.3s ease;
  background: white;
  flex-shrink: 0;
  position: relative;
}

.mobile-custom-option input[type="radio"]:checked + .custom-radiomark {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-color: #3b82f6;
  color: white;
}

.mobile-custom-option input[type="radio"]:checked + .custom-radiomark i {
  opacity: 1;
  transform: scale(1);
}

.custom-radiomark i {
  font-size: 0.5rem;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
  color: white;
}

.custom-option-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.custom-option-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  font-size: 1rem;
  flex-shrink: 0;
}

.custom-option-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 2px 0;
}

.custom-option-info p {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
  line-height: 1.3;
}

.mobile-custom-footer {
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.mobile-custom-btn {
  flex: 1;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mobile-custom-btn.secondary {
  background: rgba(71, 85, 105, 0.1);
  color: #475569;
}

.mobile-custom-btn.secondary:hover {
  background: rgba(71, 85, 105, 0.15);
  color: #334155;
}

.mobile-custom-btn.primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border-color: #3b82f6;
}

.mobile-custom-btn.primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.mobile-custom-btn.primary:active {
  transform: translateY(0);
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
  .mobile-customization-modal {
    height: 80vh;
  }
  
  .mobile-custom-body {
    padding: 16px 20px;
  }
  
  .mobile-custom-options {
    grid-template-columns: 1fr !important;
    grid-template-rows: none !important;
  }
  
  .mobile-custom-option {
    padding: 14px 10px;
  }
}

@media (max-width: 375px) {
  .mobile-customization-modal {
    min-height: 80vh;
    max-height: 95vh;
  }
  
  .mobile-custom-body {
    min-height: 480px;
  }
  
  .mobile-custom-option {
    min-height: 70px;
    padding: 12px 8px;
  }
}

/* Hide modal on desktop */
@media (min-width: 1025px) {
  .mobile-customization-modal-overlay {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .mobile-custom-options {
    grid-template-columns: 1fr !important;
    grid-template-rows: none !important;
  }
}

/* Mobile Pattern Selection Modal */
.mobile-pattern-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-pattern-overlay.show {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.mobile-pattern-modal,
.mobile-color-modal,
.mobile-theme-modal,
.mobile-logo-modal {
  position: fixed;
  top: 0;
  right: 0;
  width: min(450px, 100%);
  height: 100vh;
  height: 100dvh;
  background: white;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom, 16px);
}

.mobile-pattern-overlay.show .mobile-pattern-modal {
  transform: translateX(0);
}

.mobile-pattern-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
  background: white;
  z-index: 1001;
}

.mobile-pattern-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-pattern-title i {
  color: #4f46e5;
}

.mobile-pattern-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-pattern-close:hover {
  background: #f5f5f5;
  color: #333;
}

.mobile-pattern-body,
.mobile-color-body,
.mobile-theme-body,
.mobile-logo-body {
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}

.mobile-pattern-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mobile-pattern-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  position: relative;
  min-height: 70px;
}

.mobile-pattern-option::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mobile-pattern-option:hover::before {
  opacity: 0.1;
}

.mobile-pattern-option:hover {
  border-color: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.mobile-pattern-option.active {
  border-color: #4f46e5;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(6, 182, 212, 0.1));
}

.mobile-pattern-option.active::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  background: #4f46e5;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.mobile-pattern-preview {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  display: block;
}

.mobile-pattern-name {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  text-align: center;
}

.mobile-pattern-footer,
.mobile-color-footer,
.mobile-theme-footer,
.mobile-logo-footer {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: white;
}

.mobile-pattern-btn {
  flex: 1;
  padding: 16px 20px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}

.mobile-pattern-btn.secondary {
  background: rgba(71, 85, 105, 0.1) !important;
  color: #475569 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-weight: 600 !important;
  padding: 12px 20px !important;
  border-radius: 12px !important;
  border: none !important;
  transition: all 0.3s ease !important;
}

.mobile-pattern-btn.secondary i {
  font-size: 1.1rem !important;
  transition: transform 0.3s ease !important;
}

.mobile-pattern-btn.secondary:hover {
  background: rgba(71, 85, 105, 0.15) !important;
  color: #334155 !important;
}

.mobile-pattern-btn.secondary:hover i {
  transform: translateX(-4px) !important;
}

/* Mobile responsive adjustments for back button */
@media (max-width: 480px) {
  .mobile-pattern-btn.secondary {
    padding: 10px 16px !important;
    font-size: 0.9rem !important;
  }
  
  .mobile-pattern-btn.secondary i {
    font-size: 1rem !important;
  }
}

@media (max-width: 375px) {
  .mobile-pattern-btn.secondary {
    padding: 8px 14px !important;
    font-size: 0.85rem !important;
  }
  
  .mobile-pattern-btn.secondary i {
    font-size: 0.9rem !important;
  }
}

/* Hide on desktop */
@media (min-width: 1025px) {
  .mobile-pattern-btn.secondary {
    display: none !important;
  }
}

.mobile-pattern-btn.secondary {
  background: #f8f9fa;
  color: #6c757d;
  border: 1px solid #e9ecef;
}

.mobile-pattern-btn.secondary:hover,
.mobile-pattern-btn.secondary:active {
  background: #e9ecef;
  transform: translateY(-1px);
}

.mobile-pattern-btn.primary {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: white;
}

.mobile-pattern-btn.primary:hover,
.mobile-pattern-btn.primary:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

@media (min-width: 1025px) {
  .mobile-pattern-overlay {
    display: none;
  }
}

/* Mobile Color Selection Modal */
.mobile-color-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-color-overlay.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.mobile-color-modal {
  position: fixed;
  top: 0;
  right: 0;
  width: min(450px, 100%);
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for better mobile support */
  background: white;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 10000;
}

.mobile-color-overlay.active .mobile-color-modal {
  transform: translateX(0);
}

.mobile-color-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
  background: white;
  z-index: 1001;
}

.mobile-color-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-color-title i {
  color: #4f46e5;
}

.mobile-color-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-color-close:hover {
  background: #f5f5f5;
  color: #333;
}

.mobile-color-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: 80px;
  min-height: 0; /* Ensures proper flex shrinking */
}

.mobile-color-palette {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.mobile-color-swatch {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 3px solid transparent;
  position: relative;
}

.mobile-color-swatch:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mobile-color-swatch.active {
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.3);
}

.mobile-color-swatch.active::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  font-size: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.mobile-custom-color-picker {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-custom-color-picker:hover {
  border-color: #4f46e5;
  transform: translateY(-2px);
}

.mobile-custom-color-picker input[type="color"] {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.mobile-color-picker-icon {
  color: #666;
  font-size: 18px;
}

.mobile-color-footer {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0; /* Prevents footer from shrinking */
  background: white;
}

.mobile-color-btn {
  flex: 1;
  padding: 16px 20px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}

.mobile-color-btn.secondary {
  background: #f8f9fa;
  color: #6c757d;
  border: 1px solid #e9ecef;
}

.mobile-color-btn.secondary:hover,
.mobile-color-btn.secondary:active {
  background: #e9ecef;
  transform: translateY(-1px);
}

.mobile-color-btn.primary {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: white;
}

.mobile-color-btn.primary:hover,
.mobile-color-btn.primary:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Mobile Theme Selection Modal */
.mobile-theme-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-theme-overlay.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.mobile-theme-modal {
  position: fixed;
  top: 0;
  right: 0;
  width: min(450px, 100%);
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for better mobile support */
  background: white;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 10000;
}

.mobile-theme-overlay.active .mobile-theme-modal {
  transform: translateX(0);
}

.mobile-theme-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
  background: white;
  z-index: 1001;
}

.mobile-theme-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-theme-title i {
  color: #4f46e5;
}

.mobile-theme-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-theme-close:hover {
  background: #f5f5f5;
  color: #333;
}

.mobile-theme-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: 80px;
  min-height: 0; /* Ensures proper flex shrinking */
}

.mobile-theme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mobile-theme-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  position: relative;
  min-height: 90px;
}

.mobile-theme-option:hover {
  border-color: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.mobile-theme-option.active {
  border-color: #4f46e5;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(6, 182, 212, 0.1));
}

.mobile-theme-option.active::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  background: #4f46e5;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.mobile-theme-preview {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 8px;
}

.theme-default { background: linear-gradient(135deg, #000, #333); }
.theme-colorful { background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1); }
.theme-gradient { background: linear-gradient(135deg, #667eea, #764ba2); }
.theme-vintage { background: linear-gradient(135deg, #8b4513, #daa520); }
.theme-modern { background: linear-gradient(135deg, #2c3e50, #3498db); }
.theme-ocean { background: linear-gradient(135deg, #006994, #00d4ff); }
.theme-sunset { background: linear-gradient(135deg, #ff6b6b, #ffa500); }
.theme-forest { background: linear-gradient(135deg, #228b22, #90ee90); }

.mobile-theme-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  text-align: center;
}

.mobile-theme-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid #f0f0f0;
  background: white;
  z-index: 1001;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
}

.mobile-theme-btn {
  flex: 1;
  padding: 16px 20px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}

.mobile-theme-btn.secondary {
  background: #f8f9fa;
  color: #6c757d;
  border: 1px solid #e9ecef;
}

.mobile-theme-btn.secondary:hover,
.mobile-theme-btn.secondary:active {
  background: #e9ecef;
  transform: translateY(-1px);
}

.mobile-theme-btn.primary {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: white;
}

.mobile-theme-btn.primary:hover,
.mobile-theme-btn.primary:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Mobile Customization Modal */
.mobile-customization-right-modal {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: white;
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
  transform: translateX(100%);
  display: none;
}

.mobile-customization-right-modal.show {
  transform: translateX(0);
  right: 0;
  display: block;
}

.mobile-customization-right-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.mobile-customization-right-modal-overlay.show {
  opacity: 1;
}

.mobile-custom-right-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}

.mobile-custom-right-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-custom-right-title i {
  color: #4285f4;
}

.mobile-custom-right-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #666;
  padding: 8px;
  cursor: pointer;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.mobile-custom-right-close:hover {
  background-color: #f1f3f4;
}

.mobile-custom-right-body {
  padding: 20px;
  height: calc(100vh - 70px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-custom-right-subtitle {
  color: #666;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.mobile-custom-right-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-custom-right-option {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-radius: 12px;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.mobile-custom-right-option:active {
  transform: scale(0.98);
}

.mobile-custom-right-option input[type="radio"]:checked + .custom-right-radiomark {
  border-color: #4285f4;
  background: #e8f0fe;
}

.mobile-custom-right-option input[type="radio"]:checked ~ .custom-right-option-content .custom-right-option-icon {
  background: #e8f0fe;
  color: #4285f4;
}

.custom-right-option-icon {
  width: 40px;
  height: 40px;
  background: #f1f3f4;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.custom-right-option-info h4 {
  margin: 0;
  font-size: 1rem;
  color: #202124;
  font-weight: 500;
}

.custom-right-option-info p {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: #5f6368;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  /* Container adjustments */
  .main-page-container {
    padding: 0 15px;
    margin-top: 60px;
  }

  /* QR Type Grid */
  .destination-column {
    order: 1;
  }

  .qr-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .qr-type-card {
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s ease;
  }

  .qr-type-card.active {
    background: #4285f4;
    color: white;
    transform: scale(1.05);
  }

  .qr-type-icon {
    font-size: 1.2rem;
    margin-bottom: 6px;
  }

  .qr-type-title {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
  }

  /* Center column adjustments */
  .center-column {
    order: 2;
    margin-top: 20px;
  }

  /* Hide desktop-only elements */
  .desktop-only {
    display: none !important;
  }

  /* Show mobile-only elements */
  .mobile-only {
    display: block !important;
  }

  /* Adjust button sizes and spacing */
  .generate-btn,
  .mobile-customize-btn {
    width: 100%;
    margin: 10px 0;
    padding: 14px;
    font-size: 1rem;
  }

  /* Improve input field appearance */
  .input-group input {
    font-size: 16px; /* Prevents iOS zoom */
    padding: 12px 15px;
    border-radius: 10px;
  }

  /* Enhance mobile navigation */
  .mobile-qr-tab-menu {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    margin: 0 -15px;
    padding: 10px 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
}

/* Additional mobile optimizations for larger phones */
@media (min-width: 375px) and (max-width: 768px) {
  .qr-type-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
  .qr-type-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Mobile Logo Selection Modal */
.mobile-logo-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-logo-overlay.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.mobile-logo-modal {
  position: fixed;
  top: 0;
  right: 0;
  width: min(450px, 100%);
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for better mobile support */
  background: white;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 10000;
}

.mobile-logo-overlay.active .mobile-logo-modal {
  transform: translateX(0);
}

.mobile-logo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-logo-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-logo-title i {
  color: #4f46e5;
}

.mobile-logo-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-logo-close:hover {
  background: #f5f5f5;
  color: #333;
}

.mobile-logo-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: 80px;
  min-height: 0; /* Ensures proper flex shrinking */
}

.mobile-logo-section {
  margin-bottom: 24px;
}

.mobile-logo-section:last-child {
  margin-bottom: 0;
}

.mobile-logo-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}

.mobile-preset-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.mobile-logo-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  position: relative;
}

.mobile-logo-option:hover {
  border-color: #4f46e5;
  transform: translateY(-2px);
}

.mobile-logo-option.active {
  border-color: #4f46e5;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(6, 182, 212, 0.1));
}

.mobile-logo-option.active::after {
  content: '✓';
  position: absolute;
  top: 4px;
  right: 4px;
  background: #4f46e5;
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
}

.mobile-logo-preview {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  border-radius: 8px;
  background: #f8f9fa;
}

.mobile-logo-preview i {
  font-size: 18px;
}

.mobile-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  filter: brightness(0) saturate(100%);
  transition: filter 0.3s ease;
}

/* Simple Icons logo color filters for mobile display */
.mobile-logo-option[data-logo="facebook"] .mobile-logo-preview img { 
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%); 
}
.mobile-logo-option[data-logo="twitter"] .mobile-logo-preview img { 
  filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(176deg) brightness(118%) contrast(119%); 
}
.mobile-logo-option[data-logo="instagram"] .mobile-logo-preview img { 
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%); 
}
.mobile-logo-option[data-logo="linkedin"] .mobile-logo-preview img { 
  filter: none !important; 
}
.mobile-logo-option[data-logo="whatsapp"] .mobile-logo-preview img { 
  filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(118%) contrast(119%); 
}
.mobile-logo-option[data-logo="youtube"] .mobile-logo-preview img { 
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%); 
}
.mobile-logo-option[data-logo="github"] .mobile-logo-preview img { 
  filter: brightness(0) saturate(100%); 
}
.mobile-logo-option[data-logo="pinterest"] .mobile-logo-preview img { 
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%); 
}
.mobile-logo-option[data-logo="snapchat"] .mobile-logo-preview img { 
  filter: brightness(0) saturate(100%) invert(83%) sepia(31%) saturate(638%) hue-rotate(359deg) brightness(103%) contrast(107%); 
}
.mobile-logo-option[data-logo="reddit"] .mobile-logo-preview img { 
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%); 
}
.mobile-logo-option[data-logo="tiktok"] .mobile-logo-preview img { 
  filter: brightness(0) saturate(100%); 
}
.mobile-logo-option[data-logo="discord"] .mobile-logo-preview img { 
  filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(176deg) brightness(118%) contrast(119%); 
}

.mobile-logo-preview.no-logo {
  background: #fee;
}

.mobile-logo-preview.no-logo i {
  color: #dc3545;
}

.mobile-logo-option[data-logo="facebook"] .mobile-logo-preview i { color: #1877f2; }
.mobile-logo-option[data-logo="twitter"] .mobile-logo-preview i { color: #1da1f2; }
.mobile-logo-option[data-logo="instagram"] .mobile-logo-preview i { 
  background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mobile-logo-option[data-logo="linkedin"] .mobile-logo-preview i { color: #0077b5; }
.mobile-logo-option[data-logo="whatsapp"] .mobile-logo-preview i { color: #25d366; }
.mobile-logo-option[data-logo="youtube"] .mobile-logo-preview i { color: #ff0000; }
.mobile-logo-option[data-logo="github"] .mobile-logo-preview i { color: #333; }

.mobile-logo-name {
  font-size: 12px;
  font-weight: 500;
  color: #333;
  text-align: center;
}

.mobile-custom-logo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-custom-logo-btn {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-custom-logo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.mobile-logo-footer {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 20px));
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
  background: white;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
  position: static;
}

.mobile-logo-btn {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mobile-logo-btn.secondary {
  background: #f8f9fa;
  color: #6c757d;
}

.mobile-logo-btn.secondary:hover {
  background: #e9ecef;
}

.mobile-logo-btn.primary {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: white;
}

.mobile-logo-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

@keyframes logoContentSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE DESIGN FOR ALL MOBILE MODALS ===== */

/* Universal mobile modal adjustments for all devices */
@media (max-width: 768px) {
  .mobile-pattern-modal,
  .mobile-color-modal,
  .mobile-theme-modal,
  .mobile-logo-modal {
    /* Ensure modal fills screen height properly */
    height: 100vh;
    height: 100dvh; /* Use dynamic viewport height when supported */
    max-height: 100vh;
    max-height: 100dvh;
  }
  
  .mobile-pattern-header,
  .mobile-color-header,
  .mobile-theme-header,
  .mobile-logo-header {
    padding: 16px 20px;
    flex-shrink: 0;
  }
  
  .mobile-pattern-body,
  .mobile-color-body,
  .mobile-theme-body,
  .mobile-logo-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 24px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    min-height: 0; /* Ensures proper flex shrinking */
  }
  
  .mobile-pattern-footer,
  .mobile-color-footer,
  .mobile-theme-footer,
  .mobile-logo-footer {
    flex-shrink: 0;
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 20px));
    border-top: 1px solid #f0f0f0;
    background: white;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
    position: static;
  }
}

/* Smaller mobile devices optimization */
@media (max-width: 480px) {
  .mobile-pattern-title,
  .mobile-color-title,
  .mobile-theme-title,
  .mobile-logo-title {
    font-size: 18px;
  }
  
  .mobile-pattern-body,
  .mobile-color-body,
  .mobile-theme-body,
  .mobile-logo-body {
    padding: 16px;
    padding-bottom: 80px;
  }
  
  .mobile-pattern-btn,
  .mobile-color-btn,
  .mobile-theme-btn,
  .mobile-logo-btn {
    padding: 12px 16px;
    font-size: 15px;
    min-height: 44px;
  }
  
  .mobile-color-palette {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  
  .mobile-preset-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Very small devices - minimal adjustments */
@media (max-width: 375px) {
  .mobile-pattern-title,
  .mobile-color-title,
  .mobile-theme-title,
  .mobile-logo-title {
    font-size: 17px;
  }
  
  .mobile-pattern-body,
  .mobile-color-body,
  .mobile-theme-body,
  .mobile-logo-body {
    padding: 14px;
    padding-bottom: 80px;
  }
  
  .mobile-pattern-btn,
  .mobile-color-btn,
  .mobile-theme-btn,
  .mobile-logo-btn {
    padding: 12px 14px;
    font-size: 14px;
    min-height: 42px;
  }
  
  .mobile-color-palette {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

/* Hide modals on desktop */
@media (max-width: 768px) {
  .mobile-pattern-modal,
  .mobile-color-modal,
  .mobile-theme-modal,
  .mobile-logo-modal {
    height: 100vh !important;
    height: 100dvh !important;
    overflow-y: auto !important;
  }

  .mobile-pattern-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

  .mobile-pattern-footer,
  .mobile-color-footer,
  .mobile-theme-footer,
  .mobile-logo-footer {
    padding: 16px !important;
    padding-top: 8px !important;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 16px)) !important;
  }
}

@media (min-width: 1025px) {
  .mobile-color-overlay,
  .mobile-theme-overlay,
  .mobile-pattern-overlay,
  .mobile-logo-overlay {
    display: none !important;
  }
}

/* Modern PDF Upload Button */
#showLoginModalBtn {
  width: 100% !important;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
  border: none !important;
  border-radius: 16px !important;
  padding: 18px 24px !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: white !important;
  cursor: pointer !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 
    0 8px 25px rgba(59, 130, 246, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.1) !important;
  position: relative !important;
  overflow: hidden !important;
  text-transform: none !important;
  letter-spacing: 0.025em !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  text-decoration: none !important;
}

#showLoginModalBtn: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.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#showLoginModalBtn:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 
    0 12px 35px rgba(59, 130, 246, 0.4),
    0 8px 20px rgba(0, 0, 0, 0.15) !important;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
}

#showLoginModalBtn:hover:before {
  left: 100%;
}

#showLoginModalBtn:active {
  transform: translateY(-1px) scale(1.01) !important;
  transition: all 0.1s ease !important;
}

#showLoginModalBtn i {
  font-size: 1.2rem !important;
  transition: transform 0.3s ease !important;
}

#showLoginModalBtn:hover i {
  transform: translateY(-1px) !important;
}

/* Pulse animation for the upload button */
@keyframes uploadPulse {
  0% {
    box-shadow: 
      0 8px 25px rgba(59, 130, 246, 0.3),
      0 4px 12px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 
      0 8px 25px rgba(59, 130, 246, 0.5),
      0 4px 12px rgba(0, 0, 0, 0.15);
  }
  100% {
    box-shadow: 
      0 8px 25px rgba(59, 130, 246, 0.3),
      0 4px 12px rgba(0, 0, 0, 0.1);
  }
}

#showLoginModalBtn:focus {
  animation: uploadPulse 2s infinite;
  outline: none !important;
}

/* Modern PDF File Input (for logged-in users) */
#pdfInput {
  width: 100% !important;
  padding: 18px 20px !important;
  border: 2px dashed #3b82f6 !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #f8faff 0%, #f1f5ff 100%) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: #1e40af !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}

#pdfInput:hover {
  border-color: #2563eb !important;
  background: linear-gradient(135deg, #f0f4ff 0%, #e6f0ff 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15) !important;
}

#pdfInput:focus {
  outline: none !important;
  border-color: #1d4ed8 !important;
  box-shadow: 
    0 0 0 4px rgba(59, 130, 246, 0.1),
    0 8px 25px rgba(59, 130, 246, 0.2) !important;
}

/* File input modern styling */
#pdfInput::file-selector-button {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
  color: white !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 12px 20px !important;
  font-weight: 600 !important;
  margin-right: 16px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

#pdfInput::file-selector-button:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4) !important;
}

/* Loading animation for file upload */
@keyframes fileUploadShimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

#pdfInput.uploading {
  background: linear-gradient(
    90deg,
    #f1f5ff 0%,
    #e6f0ff 50%,
    #f1f5ff 100%
  ) !important;
  background-size: 200px 100%;
  animation: fileUploadShimmer 1.5s infinite;
  pointer-events: none;
}

.live-preview-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  position: relative;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Highlight effect for live preview navigation */
.live-preview-section.highlighted {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
  transform: scale(1.02);
}

/* Pulse animation for enhanced visibility */
@keyframes livePreviewPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(79, 70, 229, 0.1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
  }
}

.preview-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 20px;
}

.preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.preview-message {
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 20px;
}

.sample-qr {
  max-width: 300px;
  height: auto;
}

.qr-display {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 0;
  opacity: 0;
  visibility: hidden;
  height: 0;
  overflow: hidden;
}

/* Border and styling only when QR code is present */
.qr-display:has(canvas),
.qr-display:has(img:not(.sample-qr)) {
  opacity: 1;
  visibility: visible;
  height: auto;
  overflow: visible;
  padding: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
  border-radius: 20px;
  border: 2px solid rgba(120,140,255,0.2);
  box-shadow: 
    0 8px 32px rgba(31, 38, 135, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.qr-display:has(canvas)::before,
.qr-display:has(img:not(.sample-qr))::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, 
    transparent 40%, 
    rgba(120,140,255,0.05) 50%, 
    transparent 60%);
  transform: rotate(45deg);
  animation: qrShimmer 3s ease-in-out infinite;
}

@keyframes qrShimmer {
  0%, 100% {
    transform: rotate(45deg) translateX(-100%);
  }
  50% {
    transform: rotate(45deg) translateX(100%);
  }
}

.qr-display:has(canvas):hover,
.qr-display:has(img:not(.sample-qr)):hover {
  border-color: rgba(120,140,255,0.4);
  box-shadow: 
    0 12px 40px rgba(31, 38, 135, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.qr-display canvas,
.qr-display img:not(.sample-qr) {
  border-radius: 12px !important;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.05) !important;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  background: white;
  padding: 8px;
}

.qr-display:hover canvas,
.qr-display:hover img:not(.sample-qr) {
  transform: scale(1.02);
  box-shadow: 
    0 6px 25px rgba(0, 0, 0, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

/* Fallback for browsers that don't support :has() */
.qr-display.qr-generated {
  opacity: 1;
  visibility: visible;
  height: auto;
  overflow: visible;
  padding: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
  border-radius: 20px;
  border: 2px solid rgba(120,140,255,0.2);
  box-shadow: 
    0 8px 32px rgba(31, 38, 135, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.qr-display.qr-generated::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, 
    transparent 40%, 
    rgba(120,140,255,0.05) 50%, 
    transparent 60%);
  transform: rotate(45deg);
  animation: qrShimmer 3s ease-in-out infinite;
}

.qr-display.qr-generated:hover {
  border-color: rgba(120,140,255,0.4);
  box-shadow: 
    0 12px 40px rgba(31, 38, 135, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

/* Download Section Styles */
.download-section {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.download-qr-btn {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%) !important;
  color: white !important;
  border: none !important;
  border-radius: 16px !important;
  padding: 16px 32px !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 
    0 8px 25px rgba(59, 130, 246, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  min-width: 220px !important;
  justify-content: center !important;
  position: relative !important;
  overflow: hidden !important;
  text-transform: none !important;
  letter-spacing: 0.025em !important;
}

.download-qr-btn:hover:not(:disabled):not(.loading) {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #0891b2 100%) !important;
  color: white !important;
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 
    0 12px 35px rgba(59, 130, 246, 0.5),
    0 8px 20px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.download-qr-btn:active:not(:disabled):not(.loading) {
  transform: translateY(-1px) scale(1.01) !important;
  transition: all 0.1s ease !important;
  box-shadow: 
    0 6px 20px rgba(59, 130, 246, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.download-qr-btn.loading {
  background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%) !important;
  pointer-events: none !important;
  cursor: wait !important;
  opacity: 0.8 !important;
  transform: none !important;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.download-qr-btn.loading i {
  animation: downloadSpin 1s linear infinite !important;
}

.download-qr-btn:disabled {
  background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%) !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
  opacity: 0.7 !important;
  transform: none !important;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

@keyframes downloadSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Pulse animation for emphasis */
@keyframes downloadPulse {
  0% {
    box-shadow: 
      0 8px 25px rgba(59, 130, 246, 0.4),
      0 4px 12px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 
      0 8px 25px rgba(59, 130, 246, 0.6),
      0 4px 12px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  100% {
    box-shadow: 
      0 8px 25px rgba(59, 130, 246, 0.4),
      0 4px 12px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

.download-qr-btn:focus {
  animation: downloadPulse 2s infinite;
  outline: none !important;
}

/* Loading state animation */
.download-qr-btn.loading {
  pointer-events: none;
  background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%) !important;
}

.download-qr-btn.loading i {
  animation: downloadSpin 1s linear infinite;
}

@keyframes downloadSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.download-options {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  position: relative;
  overflow: visible;
}

/* Modern Format Selector Styles */
.format-selector-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
}

.format-selector-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

.modern-format-selector {
  position: relative;
  font-family: 'Poppins', sans-serif;
  z-index: 100;
}

.format-selected {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.format-selected:hover {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.format-selected.active {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.format-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.format-text {
  flex: 1;
  font-weight: 600;
  color: #1f2937;
}

.format-arrow {
  font-size: 0.8rem;
  color: #6b7280;
  transition: transform 0.3s ease;
}

.format-selected.active .format-arrow {
  transform: rotate(180deg);
}

.format-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.2),
    0 8px 20px rgba(0, 0, 0, 0.1);
  z-index: 999999 !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  overflow: hidden;
  pointer-events: none;
  max-height: 280px;
  width: 100%;
  isolation: isolate;
}

.format-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.format-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
  overflow: hidden;
}

.format-option:last-child {
  border-bottom: none;
}

.format-option::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  transition: width 0.3s ease;
  z-index: 0;
}

.format-option:hover::before {
  width: 4px;
}

.format-option:hover {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  transform: translateX(4px);
}

.format-option.active {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #1d4ed8;
  font-weight: 600;
}

.format-option.active::before {
  width: 4px;
}

.format-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  z-index: 1;
  position: relative;
}

.format-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.95rem;
}

.format-desc {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.2;
}

.format-option.active .format-name {
  color: #1d4ed8;
}

.format-option.active .format-desc {
  color: #3b82f6;
}

/* Animation for format changes */
@keyframes formatChange {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.format-selected.changing {
  animation: formatChange 0.3s ease;
}

/* Remove card background in mobile view only */
@media (max-width: 1024px) {
  .download-section {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 16px 0 !important;
    margin-top: 8px !important;
  }
  
  .download-section::before {
    display: none !important;
  }
  
  .download-section:hover::before {
    display: none !important;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .download-options {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .format-selector-wrapper {
    min-width: auto;
    width: 100%;
  }
}

/* Right Column - Customization */
.customization-column {
  background: rgba(255,255,255,0.95);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.10);
  border: 1px solid rgba(120,140,255,0.15);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.customization-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 15px;
}

.customization-section .section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0;
}

/* Pattern Grid */
.pattern-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.pattern-option {
  width: 50px;
  height: 50px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.pattern-option:hover {
  border-color: #6366f1;
  background: #f1f5f9;
}

.pattern-option.active {
  border-color: #6366f1;
  background: #eef2ff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.2);
}

.pattern-preview {
  width: 28px;
  height: 28px;
  background: #374151;
  border-radius: 2px;
  position: relative;
}

/* Square Pattern (default) */
.pattern-option[data-pattern="square"] .pattern-preview {
  background: #374151;
  border-radius: 2px;
}

/* Dots Pattern */
.pattern-option[data-pattern="dots"] .pattern-preview {
  background: radial-gradient(circle at center, #374151 30%, transparent 30%);
  background-size: 8px 8px;
  border-radius: 2px;
}

/* Rounded Pattern */
.pattern-option[data-pattern="rounded"] .pattern-preview {
  background: #374151;
  border-radius: 8px;
}

/* Extra Rounded Pattern */
.pattern-option[data-pattern="extra-rounded"] .pattern-preview {
  background: #374151;
  border-radius: 14px;
}

/* Classy Pattern */
.pattern-option[data-pattern="classy"] .pattern-preview {
  background: 
    linear-gradient(45deg, #374151 25%, transparent 25%), 
    linear-gradient(-45deg, #374151 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #374151 75%), 
    linear-gradient(-45deg, transparent 75%, #374151 75%);
  background-size: 6px 6px;
  background-position: 0 0, 0 3px, 3px -3px, -3px 0px;
  border-radius: 2px;
}

/* Circle Pattern */
.pattern-option[data-pattern="circle"] .pattern-preview {
  background: #374151;
  border-radius: 50%;
}

/* Smooth Pattern */
.pattern-option[data-pattern="smooth"] .pattern-preview {
  background: #374151;
  border-radius: 12px;
}

/* Liquid Pattern */
.pattern-option[data-pattern="liquid"] .pattern-preview {
  background: radial-gradient(circle at 50% 50%, #374151 40%, transparent 40%);
  background-size: 8px 8px;
  border-radius: 50%;
}

/* Diamond Pattern */
.pattern-option[data-pattern="diamond"] .pattern-preview {
  background: #374151;
  transform: rotate(45deg);
  border-radius: 2px;
}

/* Wavy Pattern */
.pattern-option[data-pattern="wavy"] .pattern-preview {
  background: 
    repeating-linear-gradient(45deg, #374151 0px, #374151 6px, transparent 6px, transparent 12px),
    repeating-linear-gradient(-45deg, #374151 0px, #374151 6px, transparent 6px, transparent 12px);
  border-radius: 4px;
}

/* Hexagon Pattern */
.pattern-option[data-pattern="hexagon"] .pattern-preview {
  background: #374151;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border-radius: 0;
}

/* Gradient Pattern */
.pattern-option[data-pattern="gradient"] .pattern-preview {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
  border-radius: 8px;
}

/* Heart Pattern */
.pattern-option[data-pattern="heart"] .pattern-preview {
  background: #374151;
  transform: rotate(-45deg);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.pattern-option[data-pattern="heart"] .pattern-preview::before,
.pattern-option[data-pattern="heart"] .pattern-preview::after {
  content: '';
  position: absolute;
  background: #374151;
  border-radius: 50%;
}

.pattern-option[data-pattern="heart"] .pattern-preview::before {
  width: 16px;
  height: 16px;
  top: -8px;
  left: 6px;
}

.pattern-option[data-pattern="heart"] .pattern-preview::after {
  width: 16px;
  height: 16px;
  top: 6px;
  left: -8px;
}



/* Color Palette */
.color-palette {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.color-swatch:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.color-swatch.active {
  border-color: #1f2937;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.color-swatch.active::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Custom Color Picker Styles */
.custom-color-picker {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, 
    #ff0000 0%, #ff7f00 14%, #ffff00 28%, 
    #00ff00 42%, #0000ff 57%, #4b0082 71%, 
    #9400d3 85%, #ff0000 100%);
  transition: all 0.3s ease;
  overflow: hidden;
}

.custom-color-picker:hover {
  transform: scale(1.1);
  border-color: #6366f1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.custom-color-picker input[type="color"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: none;
  background: none;
}

.color-picker-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  pointer-events: none;
  z-index: 1;
}

.custom-color-picker.active {
  border-color: #1f2937;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Theme Options */
.theme-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
}

.theme-option {
  width: 40px;
  height: 40px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  background: #f8fafc;
}

.theme-option:hover {
  border-color: #6366f1;
  transform: scale(1.05);
}

.theme-option.active {
  border-color: #6366f1;
  transform: scale(1.05);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.2);
}

.theme-preview {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-default {
  background: #374151;
}

.theme-colorful {
  background: linear-gradient(45deg, #f43f5e, #3b82f6, #10b981);
}

.theme-gradient {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.theme-vintage {
  background: radial-gradient(circle, #92400e, #451a03);
}

.theme-modern {
  background: linear-gradient(45deg, #1f2937, #374151, #6b7280);
}

.theme-ocean {
  background: linear-gradient(135deg, #0077be, #00a8cc, #4dd0e1);
}

.theme-sunset {
  background: linear-gradient(135deg, #ff6b35, #f7931e, #ffcc02);
}

.theme-forest {
  background: linear-gradient(135deg, #2d5016, #4caf50, #8bc34a);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  /* Hide customize elements by default in mobile */
  .mobile-customize-btn {
    display: none !important;
  }
  
  .mobile-customize-hint {
    display: none !important;
  }
  
  .mobile-or-divider {
    display: none !important;
  }
  
  /* Show customize elements only when QR is generated */
  .qr-generated .mobile-customize-btn {
    display: block !important;
  }
  
  .qr-generated .mobile-customize-hint {
    display: block !important;
  }
  
  .qr-generated .mobile-or-divider {
    display: flex !important;
  }
  
  .input-section {
    display: flex !important;
    flex-direction: column !important;
  }
  
  .center-column {
    display: flex !important;
    flex-direction: column !important;
  }
  
  .center-column .live-preview-section {
    order: 2 !important;
  }
  
  .center-column .mobile-customize-hint {
    order: 2 !important;
  }
  
  .center-column .mobile-customize-btn {
    order: 3 !important;
  }
  
  .center-column .mobile-or-divider {
    order: 4 !important;
  }
  
  .center-column .download-section {
    order: 5 !important;
  }
  
  .qr-generator-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  
  .destination-column,
  .center-column,
  .customization-column {
    max-width: 100%;
  }
  
  .qr-type-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(3, auto) !important;
  }
  
  .pattern-grid {
    grid-template-columns: repeat(8, 1fr);
  }
  
  .color-palette {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
  
  .theme-options {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .qr-generator-layout {
    padding: 16px;
    gap: 16px;
  }
  
  .destination-column,
  .center-column,
  .customization-column {
    padding: 20px;
  }
  
  .qr-type-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(3, auto) !important;
    gap: 8px !important;
  }
  
  .qr-type-card {
    min-height: 70px;
    padding: 12px 8px;
  }
  
  .pattern-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .color-palette {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
  
  .theme-options {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }
}

/* Desktop Logo Modal Styles */
.desktop-logo-modal-overlay {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.desktop-logo-modal {
  display: none !important;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 1000px;
  max-width: 1100px;
  height: auto;
  max-height: 80vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.desktop-logo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  background: linear-gradient(to right, #f8f9fa, #ffffff);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.desktop-logo-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1a1a1a;
}

.desktop-logo-title i {
  color: #007bff;
  font-size: 1.25rem;
}

.desktop-logo-close {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.desktop-logo-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #333;
  transform: rotate(90deg);
}

.desktop-logo-body {
  padding: 32px;
  height: calc(70vh - 180px);
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  background: #ffffff;
}

.desktop-logo-body::-webkit-scrollbar {
  width: 8px;
}

.desktop-logo-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.desktop-logo-body::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.desktop-logo-body::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.desktop-logo-footer {
  padding: 24px 32px;
  background: #f8f9fa;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.desktop-logo-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  border: none;
}

.desktop-logo-btn.secondary {
  background: #f0f0f0;
  color: #666;
}

.desktop-logo-btn.secondary:hover {
  background: #e5e5e5;
  transform: translateY(-1px);
}

.desktop-logo-btn.primary {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
}

.desktop-logo-btn.primary:hover {
  background: linear-gradient(135deg, #0056b3, #004494);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Show modal when logo is enabled */
.desktop-logo-modal.show,
.desktop-logo-modal-overlay.show {
  display: block !important;
  opacity: 1;
  visibility: visible;
}

.desktop-logo-modal.show {
  transform: translate(-50%, -40%) scale(0.9);
}

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

/* Hide logo content in desktop view */
@media (min-width: 1025px) {
  .logo-content {
    display: none !important;
  }
}

/* Desktop/Mobile visibility classes */
.desktop-only {
  display: none;
}

.mobile-only {
  display: none;
}

/* Desktop styles (1025px and above) */
@media (min-width: 1025px) {
  .desktop-only {
    display: block;
  }
  
  .mobile-only {
    display: none !important;
  }
  
  /* Hide all mobile modals and overlays */
  .mobile-customization-right-modal,
  .mobile-customization-right-modal-overlay,
  .mobile-pattern-overlay,
  .mobile-color-overlay,
  .mobile-theme-overlay,
  .mobile-logo-overlay,
  .mobile-customize-btn,
  .mobile-or-divider,
  .mobile-customize-hint {
    display: none !important;
  }
}

/* Mobile styles (1024px and below) */
@media (max-width: 1024px) {
  .desktop-only {
    display: none !important;
  }
  
  .mobile-only {
    display: block;
  }
  
  /* Hide mobile customize elements by default */
  .mobile-customize-btn {
    display: none !important;
  }
  
  .mobile-customize-hint {
    display: none !important;
  }
  
  .mobile-or-divider {
    display: none !important;
  }
  
  /* Show mobile customize elements only when QR is generated */
  .qr-generated .mobile-customize-btn {
    display: flex !important;
  }
  
  .qr-generated .mobile-customize-hint {
    display: block !important;
  }
  
  .qr-generated .mobile-or-divider {
    display: flex !important;
  }
}

/* ============================================================================
   BOTTOM SHEET STYLES (Mobile QR Type Selection)
   ============================================================================ */

.bottom-sheet {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(4px);
}

.bottom-sheet.active {
  opacity: 1;
  visibility: visible;
}

.bottom-sheet-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  border-radius: 24px 24px 0 0;
  padding: 20px;
  max-height: 85vh;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

.bottom-sheet.active .bottom-sheet-content {
  transform: translateY(0);
}

.bottom-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 20px;
}

.bottom-sheet-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: #333;
  flex: 1;
}

.bottom-sheet-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  padding: 5px;
  margin-left: auto;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, color 0.2s;
}

.bottom-sheet-close:hover {
  background-color: #f8f9fa;
  color: #333;
}

.bottom-sheet-body {
  overflow-y: auto;
  max-height: calc(85vh - 100px);
}

/* QR Type Grid for Mobile Bottom Sheet */
.qr-type-grid-mobile {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  padding: 10px 0;
}

.qr-type-grid-mobile .qr-type-card {
  padding: 16px 12px;
  text-align: center;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.qr-type-grid-mobile .qr-type-card:hover {
  border-color: #3b82f6;
  background-color: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.qr-type-grid-mobile .qr-type-card.selected {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.qr-type-grid-mobile .qr-type-card.selected .qr-type-icon {
  color: white;
}

.qr-type-grid-mobile .qr-type-card.selected .qr-type-title {
  color: white;
}

.qr-type-grid-mobile .qr-type-icon {
  font-size: 20px;
  margin-bottom: 4px;
}

.qr-type-grid-mobile .qr-type-title {
  font-size: 12px;
  font-weight: 500;
  margin: 0;
}



/* Add icon colors for new social media types */
.nav-tabs .nav-link[data-type="youtube"] i { color: #ff0000; }
.nav-tabs .nav-link[data-type="instagram"] i { color: #e4405f; }
.nav-tabs .nav-link[data-type="whatsapp"] i { color: #25d366; }
.nav-tabs .nav-link[data-type="location"] i { color: #dc3545; }

/* Mobile responsive adjustments */
@media (max-width: 600px) {
  .qr-type-grid-mobile {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .qr-type-grid-mobile .qr-type-card {
  min-height: 80px;
    padding: 12px 8px;
  }
  
  .qr-type-grid-mobile .qr-type-icon {
    font-size: 18px;
  }
  
  .qr-type-grid-mobile .qr-type-title {
    font-size: 11px;
  }
}

/* ============================================================================
   DOWNLOAD SECTION HIGHLIGHTING - MODERN & SMOOTH
   ============================================================================ */

/* Main highlight animation for download section */
.download-section.highlighted {
  animation: modernDownloadHighlight 3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 10;
  overflow: visible;
}

@keyframes modernDownloadHighlight {
  0% {
    transform: scale(1) translateY(0);
    filter: brightness(1) contrast(1);
    box-shadow: 
      0 4px 20px rgba(102, 126, 234, 0.15),
      0 0 0 0 rgba(102, 126, 234, 0);
  }
  15% {
    transform: scale(1.03) translateY(-4px);
    filter: brightness(1.05) contrast(1.1);
    box-shadow: 
      0 12px 40px rgba(102, 126, 234, 0.25),
      0 0 0 4px rgba(102, 126, 234, 0.1);
  }
  35% {
    transform: scale(1.05) translateY(-6px);
    filter: brightness(1.08) contrast(1.15);
    box-shadow: 
      0 20px 60px rgba(102, 126, 234, 0.35),
      0 0 0 8px rgba(102, 126, 234, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  50% {
    transform: scale(1.05) translateY(-6px);
    filter: brightness(1.08) contrast(1.15);
    box-shadow: 
      0 20px 60px rgba(102, 126, 234, 0.35),
      0 0 0 8px rgba(102, 126, 234, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  75% {
    transform: scale(1.02) translateY(-2px);
    filter: brightness(1.03) contrast(1.05);
    box-shadow: 
      0 8px 30px rgba(102, 126, 234, 0.2),
      0 0 0 3px rgba(102, 126, 234, 0.08);
  }
  100% {
    transform: scale(1) translateY(0);
    filter: brightness(1) contrast(1);
    box-shadow: 
      0 4px 20px rgba(102, 126, 234, 0.15),
      0 0 0 0 rgba(102, 126, 234, 0);
  }
}

/* Advanced pulse effect for download button */
.download-qr-btn.pulse {
  animation: modernPulseEffect 2s cubic-bezier(0.4, 0, 0.2, 1) 2;
  transform-origin: center center;
}

@keyframes modernPulseEffect {
  0% {
    transform: scale(1) rotateZ(0deg);
    box-shadow: 
      0 4px 16px rgba(102, 126, 234, 0.3),
      0 0 0 0 rgba(102, 126, 234, 0.4);
    filter: hue-rotate(0deg) saturate(1);
  }
  20% {
    transform: scale(1.08) rotateZ(1deg);
    box-shadow: 
      0 8px 32px rgba(102, 126, 234, 0.5),
      0 0 0 6px rgba(102, 126, 234, 0.2);
    filter: hue-rotate(5deg) saturate(1.2);
  }
  40% {
    transform: scale(1.12) rotateZ(0deg);
    box-shadow: 
      0 12px 48px rgba(102, 126, 234, 0.6),
      0 0 0 10px rgba(102, 126, 234, 0.25),
      0 0 0 15px rgba(102, 126, 234, 0.1);
    filter: hue-rotate(10deg) saturate(1.3);
  }
  60% {
    transform: scale(1.05) rotateZ(-0.5deg);
    box-shadow: 
      0 8px 32px rgba(102, 126, 234, 0.45),
      0 0 0 4px rgba(102, 126, 234, 0.15);
    filter: hue-rotate(5deg) saturate(1.1);
  }
  100% {
    transform: scale(1) rotateZ(0deg);
    box-shadow: 
      0 4px 16px rgba(102, 126, 234, 0.3),
      0 0 0 0 rgba(102, 126, 234, 0.4);
    filter: hue-rotate(0deg) saturate(1);
  }
}

/* Modern notification bubble with glass morphism */
.download-notification {
  position: absolute;
  top: -20px;
  right: -15px;
  background: linear-gradient(135deg, 
    rgba(76, 175, 80, 0.9) 0%, 
    rgba(69, 160, 73, 0.95) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: white;
  padding: 12px 16px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 
    0 8px 32px rgba(76, 175, 80, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 100;
  opacity: 0;
  transform: scale(0.6) translateY(10px) rotateX(-15deg);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.2);
  pointer-events: none;
  white-space: nowrap;
}

.download-notification.show {
  opacity: 1;
  transform: scale(1) translateY(0) rotateX(0deg);
}

.download-notification::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid rgba(76, 175, 80, 0.9);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.download-notification i {
  margin-right: 6px;
  animation: downloadIconSpin 2s ease-in-out infinite;
}

@keyframes downloadIconSpin {
  0%, 100% { transform: rotateZ(0deg) scale(1); }
  25% { transform: rotateZ(-5deg) scale(1.1); }
  75% { transform: rotateZ(5deg) scale(1.1); }
}

/* Floating particles effect */
.download-section.highlighted::after {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: 
    radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 20%, rgba(76, 175, 80, 0.05) 0%, transparent 50%);
  border-radius: 30px;
  z-index: -2;
  animation: particleFloat 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-10px) scale(1.1);
    opacity: 0.8;
  }
}

/* Enhanced highlight overlay with gradient border animation */
.download-section.highlighted::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(45deg, 
    rgba(102, 126, 234, 0.2), 
    rgba(118, 75, 162, 0.2), 
    rgba(76, 175, 80, 0.1),
    rgba(102, 126, 234, 0.2));
  background-size: 300% 300%;
  border-radius: 25px;
  z-index: -1;
  animation: 
    gradientShift 3s ease-in-out,
    borderGlow 3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: blur(1px);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes borderGlow {
  0% {
    filter: blur(1px) brightness(1);
    opacity: 0.6;
  }
  50% {
    filter: blur(2px) brightness(1.3);
    opacity: 1;
  }
  100% {
    filter: blur(1px) brightness(1);
    opacity: 0.6;
  }
}

/* Shimmer effect for the download button text */
.download-qr-btn.pulse::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  border-radius: inherit;
  animation: shimmerEffect 2s ease-in-out 2;
  pointer-events: none;
}

@keyframes shimmerEffect {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
  .download-notification {
    top: -15px;
    right: -10px;
    padding: 10px 14px;
    font-size: 12px;
    border-radius: 20px;
  }
  
  .download-notification::before {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(76, 175, 80, 0.9);
    bottom: -6px;
  }
  
  @keyframes modernDownloadHighlight {
    0% {
      transform: scale(1) translateY(0);
      box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
    }
    50% {
      transform: scale(1.02) translateY(-2px);
      box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
    }
    100% {
      transform: scale(1) translateY(0);
      box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
    }
  }
}

/* ============================================================================
   LOGO CUSTOMIZATION SECTION
   ============================================================================ */

/* Logo Toggle Switch */
.logo-toggle-container {
  margin-bottom: 16px;
}

.logo-toggle-switch {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  gap: 12px;
}

.logo-toggle-switch input[type="checkbox"] {
  display: none;
}

.logo-toggle-slider {
  position: relative;
  width: 50px;
  height: 26px;
  background: #e2e8f0;
  border-radius: 13px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.logo-toggle-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.logo-toggle-switch input:checked + .logo-toggle-slider {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: rgba(102, 126, 234, 0.2);
}

.logo-toggle-switch input:checked + .logo-toggle-slider::before {
  transform: translateX(24px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.logo-toggle-text {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

/* Disabled state for logo toggle */
.logo-toggle-switch input:disabled + .logo-toggle-slider {
  background: #e2e8f0;
  cursor: not-allowed;
  opacity: 0.6;
}

.logo-toggle-switch input:disabled + .logo-toggle-slider::before {
  background: #cbd5e1;
}

.logo-toggle-switch:has(input:disabled) {
  opacity: 0.6;
  cursor: not-allowed;
}

.logo-toggle-switch:has(input:disabled) .logo-toggle-text {
  color: #94a3b8;
  font-style: italic;
}

/* Logo Content Sections */
.logo-content {
  animation: logoContentSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes logoContentSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.logo-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.logo-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
}

/* Preset Logos Grid */
.preset-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.logo-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fafbfc;
  position: relative;
  overflow: hidden;
}

.logo-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  transition: left 0.5s ease;
}

.logo-option:hover::before {
  left: 100%;
}

.logo-option:hover {
  border-color: #667eea;
  background: #f8faff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
}

.logo-option.active {
  border-color: #667eea;
  background: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
  transform: translateY(-1px);
}

.logo-option.active::after {
  content: '✓';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: #667eea;
  color: white;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.logo-preview {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-preview i {
  font-size: 18px;
  color: #374151;
}

.logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  filter: brightness(0) saturate(100%);
  transition: filter 0.3s ease;
}

/* Simple Icons logo color filters for proper display */
.logo-option[data-logo="facebook"] .logo-preview img { 
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%); 
}
.logo-option[data-logo="twitter"] .logo-preview img { 
  filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(176deg) brightness(118%) contrast(119%); 
}
.logo-option[data-logo="instagram"] .logo-preview img { 
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%); 
}
.logo-option[data-logo="linkedin"] .logo-preview img { 
  filter: none !important; 
}
.logo-option[data-logo="whatsapp"] .logo-preview img { 
  filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(118%) contrast(119%); 
}
.logo-option[data-logo="youtube"] .logo-preview img { 
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%); 
}
.logo-option[data-logo="github"] .logo-preview img { 
  filter: brightness(0) saturate(100%); 
}
.logo-option[data-logo="pinterest"] .logo-preview img { 
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%); 
}
.logo-option[data-logo="snapchat"] .logo-preview img { 
  filter: brightness(0) saturate(100%) invert(83%) sepia(31%) saturate(638%) hue-rotate(359deg) brightness(103%) contrast(107%); 
}
.logo-option[data-logo="reddit"] .logo-preview img { 
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%); 
}
.logo-option[data-logo="tiktok"] .logo-preview img { 
  filter: brightness(0) saturate(100%); 
}
.logo-option[data-logo="discord"] .logo-preview img { 
  filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(176deg) brightness(118%) contrast(119%); 
}

.logo-preview.no-logo {
  background: #fee2e2;
}

.logo-preview.no-logo i {
  color: #ef4444;
}

/* Brand-specific colors */
.logo-option[data-logo="facebook"] .logo-preview i { color: #1877f2; }
.logo-option[data-logo="twitter"] .logo-preview i { color: #1da1f2; }
.logo-option[data-logo="instagram"] .logo-preview i { 
  background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-option[data-logo="linkedin"] .logo-preview i { color: #0077b5; }
.logo-option[data-logo="whatsapp"] .logo-preview i { color: #25d366; }
.logo-option[data-logo="youtube"] .logo-preview i { color: #ff0000; }
.logo-option[data-logo="github"] .logo-preview i { color: #333; }

.logo-name {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  text-align: center;
  line-height: 1.2;
}

/* Custom Logo Upload */
.custom-logo-upload {
  position: relative;
}

.custom-logo-btn {
  width: 100%;
  padding: 16px;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background: #fafbfc;
  color: #64748b;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
}

.custom-logo-btn:hover {
  border-color: #667eea;
  background: #f8faff;
  color: #667eea;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.custom-logo-btn i {
  font-size: 16px;
}

.custom-logo-preview {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 12px auto 0;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.custom-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.remove-logo-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.remove-logo-btn:hover {
  transform: scale(1.1);
  background: #dc2626;
}

.logo-upload-info {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  text-align: center;
  font-style: italic;
}

/* Logo Settings */
.logo-settings {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.logo-setting {
  display: flex;
  align-items: center;
  gap: 12px;
}

.setting-label {
  flex: 0 0 50px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

.logo-slider {
  flex: 1;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.logo-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  transition: all 0.2s ease;
}

.logo-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.logo-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.setting-value {
  flex: 0 0 40px;
  font-size: 12px;
  font-weight: 600;
  color: #667eea;
  text-align: right;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .preset-logos {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .logo-option {
    padding: 12px 8px;
  }
  
  .logo-preview {
  width: 40px;
  height: 40px;
  }
  
  .logo-preview i {
    font-size: 18px;
  }
  
  .logo-name {
    font-size: 11px;
  }
  
  .custom-logo-preview {
    margin-top: 12px;
  }
  
  .logo-setting {
    margin-bottom: 16px;
  }
  
  .setting-label {
    font-size: 13px;
  }
  
  .setting-value {
    font-size: 12px;
  }
}

/*==========================================================================
  MOBILE MAINTENANCE OVERLAY STYLES
  - Full-screen overlay for mobile devices
  - Hidden on desktop view
  - Professional maintenance message with animations
==========================================================================*/

.mobile-maintenance-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-maintenance-overlay.show {
  opacity: 1;
  visibility: visible;
}

.mobile-maintenance-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  z-index: -1;
}

.maintenance-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.2),
    0 10px 30px rgba(0, 0, 0, 0.15),
    0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: maintenanceSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes maintenanceSlideIn {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.maintenance-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
  animation: maintenanceIconPulse 2s ease-in-out infinite;
}

.maintenance-icon i {
  font-size: 32px;
  color: white;
  animation: maintenanceIconSpin 3s linear infinite;
}

@keyframes maintenanceIconPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
  }
}

@keyframes maintenanceIconSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.maintenance-title {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 16px;
  line-height: 1.3;
}

.maintenance-message {
  font-family: 'Merriweather', serif;
  font-size: 16px;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 32px;
  opacity: 0.9;
}

.maintenance-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(102, 126, 234, 0.15);
  transform: translateX(4px);
}

.feature-item i {
  font-size: 18px;
  color: #667eea;
  width: 20px;
  text-align: center;
}

.feature-item span {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #2d3748;
}

.maintenance-cta {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 24px;
}

.cta-text {
  font-family: 'Merriweather', serif;
  font-size: 14px;
  color: #718096;
  margin-bottom: 20px;
  line-height: 1.5;
}

.cta-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button i {
  font-size: 12px;
}

/* Hide maintenance overlay on desktop */
@media (min-width: 769px) {
  .mobile-maintenance-overlay {
    display: none !important;
  }
}

/* Mobile-specific adjustments */
@media (max-width: 480px) {
  .maintenance-container {
    padding: 30px 20px;
    margin: 20px;
  }
  
  .maintenance-title {
    font-size: 20px;
  }
  
  .maintenance-message {
    font-size: 14px;
  }
  
  .feature-item {
    padding: 10px 12px;
  }
  
  .feature-item span {
    font-size: 13px;
  }
  
  .cta-button {
    padding: 12px 20px;
    font-size: 13px;
  }
}

/* Animation for feature items */
.feature-item:nth-child(1) { animation-delay: 0.2s; }
.feature-item:nth-child(2) { animation-delay: 0.4s; }
.feature-item:nth-child(3) { animation-delay: 0.6s; }

.feature-item {
  animation: featureSlideIn 0.6s ease-out forwards;
  opacity: 0;
  transform: translateX(-20px);
}

@keyframes featureSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== MOBILE RESPONSIVE FIXES FOR ALIGNMENT ===== */

/* Enhanced mobile responsive styles for main container */
@media (max-width: 1024px) {
  .main-page-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 16px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
  
  .qr-generator-layout {
    display: block !important;
    grid-template-columns: none !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 0 60px 0 !important;
    gap: 20px !important;
  }
  
  .destination-column,
  .center-column {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
  }
  
  .customization-column {
    display: none !important;
  }
  
  .qr-heading {
    text-align: center !important;
    padding: 0 16px !important;
    margin: 20px auto 30px auto !important;
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
  }
}

@media (max-width: 768px) {
  .main-page-container {
    padding: 0 12px !important;
  }
  
  .qr-generator-layout {
    gap: 16px !important;
    padding: 0 0 40px 0 !important;
  }
  
  .destination-column {
    margin-bottom: 16px !important;
    padding: 12px !important;
  }
  
  .qr-type-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }
  
  .qr-type-card {
    height: 65px !important;
    padding: 8px 6px !important;
  }
  
  .qr-type-icon {
    font-size: 1rem !important;
    margin-bottom: 3px !important;
  }
  
  .qr-type-title {
    font-size: 0.7rem !important;
  }
  
  .qr-heading {
    display: none !important; /* Hide heading on mobile devices */
  }

  /* Mobile-only: Reorder center column elements - Live Preview above input section */
  .center-column .section-title {
    order: 1; /* Move "Enter your website URL" heading to second position */
  }

  .center-column .input-section {
    order: 1; /* Move input section and generate button to first position */
  }

  .center-column .live-preview-section {
    order: 3; /* Move Live Preview section to third position */
  }

  .center-column .download-section {
    order: 4; /* Keep download section at the bottom */
  }

  /* Mobile-only: Move Get Started button below Generate QR Code button */
  .main-page-container {
    display: flex;
    flex-direction: column;
  }

  .mobile-get-started-btn {
    order: 10; /* Move Get Started button after the main content */
    margin: 20px auto;
    position: relative;
    transform: none;
  }

  #main {
    order: 1; /* Ensure main content comes before Get Started button */
  }

  .qr-heading {
    display: none !important; /* Hide heading on mobile devices */
    order: 1; /* Keep heading at the top */
  }

  .qr-features-section {
    order: 12;
    padding: 0px 20px 0px 20px; /* Move features section below Get Started button */
  }

  #footer-container {
    order: 15; /* Move footer to the very bottom */
  }
}

@media (max-width: 480px) {
  .main-page-container {
    padding: 0 8px !important;
  }
  
  .qr-generator-layout {
    gap: 12px !important;
    padding: 0 0 30px 0 !important;
  }
  
  .destination-column {
    padding: 10px !important;
    margin-bottom: 12px !important;
  }
  
  .qr-type-grid {
    gap: 4px !important;
  }
  
  .qr-type-card {
    height: 60px !important;
    padding: 6px 4px !important;
  }
  
  .qr-type-icon {
    font-size: 0.9rem !important;
    margin-bottom: 2px !important;
  }
  
  .qr-type-title {
    font-size: 0.65rem !important;
  }
  
  .qr-heading {
    display: none !important; /* Hide heading on mobile devices */
  }
}

@media (max-width: 375px) {
  .main-page-container {
    padding: 0 6px !important;
  }
  
  .qr-generator-layout {
    gap: 10px !important;
    padding: 0 0 25px 0 !important;
  }
  
  .destination-column {
    padding: 8px !important;
    margin-bottom: 10px !important;
  }
  
  .qr-type-grid {
    gap: 3px !important;
  }
  
  .qr-type-card {
    height: 55px !important;
    padding: 5px 3px !important;
  }
  
  .qr-type-icon {
    font-size: 0.8rem !important;
    margin-bottom: 1px !important;
  }
  
  .qr-type-title {
    font-size: 0.6rem !important;
  }
  
  .qr-heading {
    display: none !important; /* Hide heading on mobile devices */
  }
}

/* Additional mobile-specific responsive fixes */
@media (max-width: 600px) {
  /* Ensure body and html maintain proper mobile layout */
  html, body {
    width: 100% !important;
    overflow-x: hidden !important;
  }
  
  body {
    padding-top: 90px !important; /* Adjust for mobile navbar */
  }
  
  /* Fix navbar for mobile */
  .navbar-outer-container {
    padding: 0 8px !important;
  }
  
  .navbar {
    width: calc(100% - 16px) !important;
    padding: 0 1rem !important;
  }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 768px) {
    .main-page-container {
      -webkit-overflow-scrolling: touch !important;
    }
    
    .qr-generator-layout {
      transform: translateZ(0) !important; /* Hardware acceleration */
    }
  }
}

/* Android Chrome specific fixes */
@media (max-width: 768px) and (orientation: portrait) {
  .main-page-container {
    min-height: calc(100vh - 120px) !important;
  }
}

/* Landscape orientation fixes for mobile */
@media (max-width: 768px) and (orientation: landscape) {
  body {
    padding-top: 80px !important;
  }
  
  .qr-heading {
    display: none !important; /* Hide heading on mobile devices */
  }
  
  .qr-generator-layout {
    padding: 0 0 30px 0 !important;
  }
}

/* ===== END MOBILE RESPONSIVE FIXES ===== */

/* ===== MOBILE GET STARTED BUTTON & RIGHT MODAL ===== */

/* Get Started Button - Mobile Only */
.mobile-get-started-btn {
  display: none; /* Hidden by default */
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 16px 32px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 
    0 8px 32px rgba(30, 64, 175, 0.3),
    0 4px 16px rgba(59, 130, 246, 0.2);
  position: relative;
  overflow: hidden;
  margin: 30px auto;
  min-width: 200px;
  max-width: 280px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mobile-get-started-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-get-started-btn:hover::before {
  left: 100%;
}

.mobile-get-started-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 12px 40px rgba(30, 64, 175, 0.4),
    0 6px 24px rgba(59, 130, 246, 0.3);
}

.mobile-get-started-btn:active {
  transform: translateY(0) scale(1);
}

.mobile-get-started-btn i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.mobile-get-started-btn:hover i {
  transform: translateX(4px);
}

/* QR Type Right Modal - Mobile Only */
.qr-type-right-modal {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 350px;
  height: 100vh;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  z-index: 10000;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 
    -8px 0 32px rgba(0, 0, 0, 0.15),
    -4px 0 16px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  display: none; /* Hidden by default */
}

.qr-type-right-modal.active {
  right: 0;
}

.qr-type-right-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: none; /* Hidden by default */
}

.qr-type-right-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.qr-type-modal-header {
  padding: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

.qr-type-modal-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qr-type-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.qr-type-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.qr-type-modal-body {
  padding: 20px;
}

.qr-type-modal-subtitle {
  font-family: 'Merriweather', serif;
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 24px;
  line-height: 1.5;
  text-align: center;
}

.qr-type-grid-modal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.qr-type-card-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-align: center;
  height: 85px;
  position: relative;
  overflow: hidden;
}

.qr-type-card-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(59, 130, 246, 0.1), 
    transparent);
  transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.qr-type-card-modal:hover::before {
  left: 100%;
}

.qr-type-card-modal:hover {
  background: #f0f9ff;
  border-color: #3b82f6;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.qr-type-card-modal.selected {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
  border-color: #3b82f6;
  color: white;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.qr-type-icon-modal {
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: #3b82f6;
  transition: all 0.3s ease;
}

.qr-type-card-modal.selected .qr-type-icon-modal {
  color: white;
  transform: scale(1.1);
}

.qr-type-title-modal {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.2;
  transition: all 0.3s ease;
}

.qr-type-card-modal.selected .qr-type-title-modal {
  color: white;
}

.qr-type-card-modal.coming-soon-modal {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px dashed #94a3b8;
  cursor: not-allowed;
  opacity: 0.7;
}

.qr-type-card-modal.coming-soon-modal:hover {
  transform: none;
  box-shadow: none;
  border-color: #94a3b8;
}

.qr-type-card-modal.coming-soon-modal .qr-type-icon-modal {
  color: #64748b;
}

.qr-type-card-modal.coming-soon-modal .qr-type-title-modal {
  color: #64748b;
}

.qr-type-modal-continue {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 20px;
  opacity: 0.5;
  pointer-events: none;
}

.qr-type-modal-continue.enabled {
  opacity: 1;
  pointer-events: auto;
}

.qr-type-modal-continue.enabled:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

/* Hide get started button on mobile */
@media (max-width: 1024px) {
  .mobile-get-started-btn {
    display: none !important;
  }
  
  .qr-type-right-modal,
  .qr-type-right-modal-overlay,
  .qr-input-bottom-modal,
  .qr-input-bottom-modal-overlay {
    display: block;
  }
  
  /* Initially hide the QR generator layout on mobile */
  .qr-generator-layout {
    display: none;
  }
  
  .qr-generator-layout.show {
    display: block !important;
  }
}

@media (max-width: 768px) {
  .mobile-get-started-btn {
    font-size: 1rem;
    padding: 14px 28px;
    margin: 25px auto;
  }
  
  .qr-type-right-modal {
    width: 90%;
    max-width: 320px;
  }
  
  .qr-type-modal-header {
    padding: 12px 16px;
  }
  
  .qr-type-modal-title {
    font-size: 1.05rem;
  }
  
  .qr-type-modal-body {
    padding: 12px 16px;
  }
  
  .qr-type-grid-modal {
    gap: 8px;
    margin-bottom: 15px;
  }
  
  .qr-type-card-modal {
    height: 65px;
    padding: 10px 8px;
  }
  
  .qr-type-icon-modal {
    font-size: 1.2rem;
    margin-bottom: 4px;
  }
  
  .qr-type-title-modal {
    font-size: 0.8rem;
  }
  
  .qr-type-modal-continue {
    padding: 12px 20px;
    margin-top: 15px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .mobile-get-started-btn {
    font-size: 0.95rem;
    padding: 12px 24px;
    margin: 20px auto;
    min-width: 180px;
  }
  
  .qr-type-right-modal {
    width: 95%;
  }
  
  .qr-type-modal-header {
    padding: 10px 14px;
  }
  
  .qr-type-modal-title {
    font-size: 1rem;
  }
  
  .qr-type-modal-body {
    padding: 10px 14px;
  }
  
  .qr-type-grid-modal {
    gap: 6px;
    margin-bottom: 12px;
  }
  
  .qr-type-card-modal {
    height: 55px;
    padding: 8px 6px;
  }
  
  .qr-type-icon-modal {
    font-size: 1.1rem;
    margin-bottom: 3px;
  }
  
  .qr-type-title-modal {
    font-size: 0.75rem;
  }
  
  .qr-type-modal-continue {
    padding: 10px 18px;
    margin-top: 12px;
    font-size: 0.9rem;
  }
}

/* Extra small devices */
@media (max-width: 375px) {
  .qr-type-right-modal {
    width: 98%;
  }
  
  .qr-type-modal-header {
    padding: 8px 12px;
  }
  
  .qr-type-modal-body {
    padding: 8px 12px;
  }
  
  .qr-type-grid-modal {
    gap: 5px;
    margin-bottom: 10px;
  }
  
  .qr-type-card-modal {
    height: 50px;
    padding: 6px 4px;
  }
  
  .qr-type-icon-modal {
    font-size: 1rem;
    margin-bottom: 2px;
  }
  
  .qr-type-title-modal {
    font-size: 0.7rem;
  }
  
  .qr-type-modal-continue {
    padding: 9px 16px;
    margin-top: 10px;
    font-size: 0.85rem;
  }
}

/* Hide on desktop - ensure desktop behavior is unchanged */
@media (min-width: 1025px) {
  .mobile-get-started-btn,
  .qr-type-right-modal,
  .qr-type-right-modal-overlay {
    display: none !important;
  }
  
  .qr-generator-layout {
    display: grid !important;
  }
}

/* ===== END MOBILE GET STARTED BUTTON & RIGHT MODAL ===== */

/* ===== HIDE QR TYPE GRID ON MOBILE (Since it's available in right modal) ===== */
@media (max-width: 1024px) {
  .destination-column {
    display: none !important;
  }
  
  /* Adjust the center column to take full width when destination column is hidden */
  .center-column {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ===== MOBILE BOTTOM INPUT MODAL ===== */

/* Bottom Modal - Mobile Only */
.qr-input-bottom-modal {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
  z-index: 1050;
  max-height: 85vh;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  visibility: hidden;
}

.qr-input-bottom-modal.active {
  visibility: visible;
}

.qr-input-bottom-modal.active {
  transform: translateY(0);
}

.qr-input-bottom-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1040;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.qr-input-bottom-modal-overlay.active {
  opacity: 1;
}

.bottom-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 20px 20px 0 0;
}

.bottom-modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bottom-modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.bottom-modal-close:hover {
  background: #f3f4f6;
  color: #374151;
}

.bottom-modal-body {
  padding: 20px;
  max-height: calc(85vh - 120px);
  overflow-y: auto;
}

.bottom-modal-body::-webkit-scrollbar {
  width: 4px;
}

.bottom-modal-body::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 2px;
}

.bottom-modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.bottom-modal-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.qr-input-section {
  margin-bottom: 20px;
}

.qr-input-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.qr-input-field {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  background: #ffffff;
  box-sizing: border-box;
}

.qr-input-field:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.qr-input-field::placeholder {
  color: #9ca3af;
}

.qr-textarea-field {
  min-height: 80px;
  resize: vertical;
}

.bottom-modal-actions {
  padding: 16px 20px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
    gap: 12px;
  }
  
.bottom-modal-btn {
  flex: 1;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bottom-modal-btn.secondary {
  background: #f1f5f9;
  color: #64748b;
  border: 2px solid #e2e8f0;
}

.bottom-modal-btn.secondary:hover {
  background: #e2e8f0;
  color: #475569;
}

.bottom-modal-btn.primary {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
  color: white;
}

.bottom-modal-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.bottom-modal-btn.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* WiFi specific fields */
.wifi-security-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.wifi-security-option {
  padding: 8px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
}

.wifi-security-option.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

.wifi-security-option:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

.wifi-security-option.active:hover {
  color: white;
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
  .bottom-modal-header {
    padding: 12px 16px;
  }
  
  .bottom-modal-title {
    font-size: 1rem;
  }
  
  .bottom-modal-body {
    padding: 16px;
  }
  
  .bottom-modal-actions {
    padding: 12px 16px;
  }
  
  .bottom-modal-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
  
  .qr-input-field {
    padding: 10px 14px;
    font-size: 0.95rem;
  }
}

@media (max-width: 375px) {
  .bottom-modal-header {
    padding: 10px 14px;
  }
  
  .bottom-modal-body {
    padding: 14px;
  }
  
  .bottom-modal-actions {
    padding: 10px 14px;
  }
  
  .wifi-security-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Hide on desktop */
@media (min-width: 1025px) {
  .qr-input-bottom-modal,
  .qr-input-bottom-modal-overlay {
    display: none !important;
  }
}

/* ===== END MOBILE BOTTOM INPUT MODAL ===== */

/* ===== HIDE QR TYPE GRID ON MOBILE (Since it's available in right modal) ===== */
/* ===== HIDE QR TYPE GRID ON MOBILE (Since it's available in right modal) ===== */

/* ===== END MOBILE RESPONSIVE FIXES ===== */

/* ===== MOBILE QR TYPE TAB MENU ===== */
.mobile-qr-tab-menu {
  display: none; /* Hidden by default (desktop) */
  margin: 20px 0 15px 0;
  padding: 0 5px;
}

.mobile-tab-container {
  display: flex;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
}

.mobile-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 8px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  text-align: center;
  outline: none;
}

.mobile-tab-btn:hover {
  color: #495057;
  background: rgba(108, 117, 125, 0.1);
}

.mobile-tab-btn.active {
  background: #ffffff;
  color: #1e40af;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.mobile-tab-btn.active:hover {
  background: #ffffff;
  color: #1e40af;
}

/* Show only on mobile devices */
@media (max-width: 1024px) {
  .mobile-qr-tab-menu {
    display: block;
  }
}

@media (max-width: 768px) {
  .mobile-qr-tab-menu {
    margin: 15px 0 12px 0;
    padding: 0 3px;
  }
  
  .mobile-tab-btn {
    padding: 10px 6px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .mobile-qr-tab-menu {
    margin: 12px 0 10px 0;
    padding: 0 2px;
  }
  
  .mobile-tab-btn {
    padding: 9px 4px;
    font-size: 0.8rem;
  }
}

@media (max-width: 375px) {
  .mobile-tab-btn {
    padding: 8px 3px;
    font-size: 0.75rem;
  }
}

/* ===== MOBILE GET STARTED BUTTON & RIGHT MODAL ===== */

/* ... existing code ... */

@media (max-width: 375px) {
  .mobile-tab-btn {
    font-size: 0.7rem !important;
    padding: 10px 6px !important;
  }
}

/* ===== MOBILE ELEMENT REORDERING ===== */
/* Move live-preview-section below URL input section on mobile only */
@media (max-width: 768px) {
  .center-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .center-column .mobile-qr-tab-menu {
    order: 1; /* Keep tab menu at the top */
  }

  .center-column .input-section {
    order: 2; /* Input section (with generate button) second */
  }

  .center-column .live-preview-section {
    order: 2; /* Move live preview right after input section */
    margin-top: 0px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .center-column .mobile-customize-btn {
    order: 4; /* Customize button after live preview */
    margin: 16px 0; /* Add spacing above and below */
  }

  .center-column .download-section {
    order: 5; /* Download section at the bottom */
  }
}

/* ===== END MOBILE ELEMENT REORDERING ===== */

/* ===== MOBILE APP-LIKE INTERFACE ===== */
/* Modern, compact mobile interface for Android/iOS */
@media (max-width: 768px) {
  .center-column {
  padding: 20px 16px !important;
  gap: 16px !important;
  margin-bottom: 20px !important;
  border-radius: 16px !important;
  width: 100% !important;
}
  
  .center-column .section-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin-bottom: 0 !important;
    color: #1f2937 !important;
  }
  
  .input-section {
    gap: 12px !important;
  }
  
  .url-input {
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    border-radius: 10px !important;
    border: 1px solid #d1d5db !important;
    background: #ffffff !important;
    height: 44px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  }
  
  .url-input:focus {
    border-color: #3b82f6 !important;
    background: white !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-1px) !important;
  }
  
  .url-input::placeholder {
    color: #9ca3af !important;
    font-size: 0.95rem !important;
  }
  
  .generate-btn {
    padding: 12px 24px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25) !important;
    height: 44px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  
  .generate-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
  }
}

@media (max-width: 480px) {
  .center-column {
    padding: 16px 12px !important;
    gap: 14px !important;
    border-radius: 12px !important;
  }
  
  .center-column .section-title {
    font-size: 1rem !important;
    font-weight: 600 !important;
  }
  
  .url-input {
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
    border-radius: 8px !important;
    height: 40px !important;
  }
  
  .url-input::placeholder {
    font-size: 0.9rem !important;
  }
  
  .generate-btn {
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
    border-radius: 8px !important;
    height: 40px !important;
  }
}

@media (max-width: 375px) {
  .center-column {
    padding: 14px 10px !important;
    gap: 12px !important;
    border-radius: 12px !important;
  }
  
  .center-column .section-title {
    font-size: 0.95rem !important;
  }
  
  .url-input {
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    height: 36px !important;
  }
  
  .url-input::placeholder {
    font-size: 0.85rem !important;
  }
  
  .generate-btn {
    padding: 8px 18px !important;
    font-size: 0.85rem !important;
    height: 36px !important;
  }
}

/* ===== END MOBILE PDF UPLOAD OPTIMIZATION ===== */

.dropdown-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dropdown-item:hover i {
  transform: scale(1.1);
  color: #667eea;
}

/* Coming Soon dropdown items */
.dropdown-item.coming-soon {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
  justify-content: space-between;
}

.dropdown-item.coming-soon .badge {
  background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
  color: white;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  animation: badgePulse 2s ease-in-out infinite;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(255, 107, 107, 0.5);
  }
}

.dropdown-item.coming-soon:hover {
  background: rgba(255, 107, 107, 0.1);
  transform: none;
}

/* Dropdown divider */
.dropdown-divider {
  margin: 8px 12px;
  border-top: 1px solid rgba(30, 41, 59, 0.15);
}

/* Enhanced hover effects for available items */
.dropdown-item:not(.coming-soon):hover {
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.12) 0%, 
    rgba(118, 75, 162, 0.08) 100%);
  color: #667eea;
 
  border-color: rgba(102, 126, 234, 0.2);
}

/* ===== FORMAT SELECTION BOTTOM MODAL ===== */
/* Format Selection Popup (Desktop) */
.format-selection-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.format-selection-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}
.format-selection-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  margin-top: 8px;
}

.format-selection-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}

.popup-header {
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.popup-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.popup-close {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s ease;
  border-radius: 6px;
}

.popup-close:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.popup-body {
  padding: 16px;
  max-height: 400px;
  overflow-y: auto;
}

.popup-footer {
  padding: 16px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Desktop-specific format option styles */
.desktop-only .format-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.desktop-only .format-option-card {
  padding: 12px;
  border-radius: 8px;
}

.desktop-only .format-option-icon {
  font-size: 1.5rem;
  width: 40px;
}

.desktop-only .format-option-name {
  font-size: 1rem;
}

.desktop-only .format-option-desc {
  font-size: 0.85rem;
}

/* Hide mobile elements on desktop */
@media (min-width: 768px) {
  .mobile-only {
    display: none !important;
  }
}

/* Hide desktop elements on mobile */
@media (max-width: 767px) {
  .desktop-only {
    display: none !important;
  }
}

.format-selection-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.format-selection-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.format-selection-bottom-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  max-height: 80vh;
  overflow: hidden;
}

.format-selection-bottom-modal.active {
  transform: translateY(0);
}

.format-modal-subtitle {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 20px;
  text-align: center;
}

.format-options-grid {
  display: grid;
  grid-template-columns: 1fr;
    gap: 12px;
  margin-bottom: 20px;
}

.format-option-card {
  display: flex;
  align-items: center;
  padding: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.format-option-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(59, 130, 246, 0.1), 
    transparent);
  transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.format-option-card:hover::before {
  left: 100%;
}

.format-option-card:hover {
  border-color: #3b82f6;
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.format-option-card.active {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.format-option-icon {
  font-size: 2rem;
  margin-right: 16px;
  flex-shrink: 0;
  width: 50px;
  text-align: center;
  transition: all 0.3s ease;
}

.format-option-card:hover .format-option-icon {
  transform: scale(1.1);
}

.format-option-details {
  flex: 1;
}

.format-option-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px 0;
  transition: all 0.3s ease;
}

.format-option-desc {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  transition: all 0.3s ease;
}

.format-option-card.active .format-option-desc {
  color: #3b82f6;
}

.format-option-check {
  width: 24px;
  height: 24px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-left: 12px;
  flex-shrink: 0;
}

.format-option-card.active .format-option-check {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

.format-option-check i {
    font-size: 12px;
  opacity: 0;
  transition: all 0.3s ease;
}

.format-option-card.active .format-option-check i {
  opacity: 1;
}

@media (max-width: 768px) {
  .format-options-grid {
    gap: 10px;
  }
  
  .format-option-card {
    padding: 14px;
  }
  
  .format-option-icon {
    font-size: 1.75rem;
    margin-right: 14px;
    width: 45px;
  }
  
  .format-option-name {
    font-size: 1rem;
  }
  
  .format-option-desc {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .format-option-card {
    padding: 12px;
  }
  
  .format-option-icon {
    font-size: 1.5rem;
    margin-right: 12px;
    width: 40px;
  }
  
  .format-option-name {
    font-size: 0.95rem;
  }
  
  .format-option-desc {
    font-size: 0.75rem;
  }
  
  .format-option-check {
    width: 20px;
    height: 20px;
    margin-left: 8px;
  }
  
  .format-option-check i {
    font-size: 10px;
  }
}

@media (max-width: 375px) {
  .format-option-card {
    padding: 10px;
  }
  
  .format-option-icon {
    font-size: 1.25rem;
    margin-right: 10px;
    width: 35px;
  }
  
  .format-option-name {
    font-size: 0.9rem;
  }
  
  .format-option-desc {
    font-size: 0.7rem;
  }
}
@media (max-width: 600px) {
  .mobile-pattern-grid {
    gap: 8px !important;
  }
  .mobile-pattern-option {
    min-height: 56px !important;
    padding: 8px 4px !important;
    border-radius: 10px !important;
  }
  .mobile-pattern-preview {
    width: 28px !important;
    height: 28px !important;
    margin-bottom: 4px !important;
  }
  .mobile-pattern-name {
    font-size: 12px !important;
  }
  .mobile-pattern-footer {
    padding: 12px 10px !important;
    gap: 8px !important;
  }
  .mobile-pattern-btn {
    padding: 10px 8px !important;
    font-size: 15px !important;
    border-radius: 10px !important;
  }
}
@media (max-width: 600px) {
  .mobile-theme-grid {
    gap: 6px !important;
  }
  .mobile-theme-option {
    min-height: 44px !important;
    padding: 4px 2px !important;
    border-radius: 8px !important;
    width: 100% !important;
    height: auto !important;
  }
  .mobile-theme-preview {
    width: 20px !important;
    height: 20px !important;
    margin-bottom: 2px !important;
    border-radius: 6px !important;
  }
  .mobile-theme-name {
    font-size: 11px !important;
  }
  .mobile-theme-footer {
    padding: 10px 6px !important;
    gap: 6px !important;
  }
  .mobile-theme-btn {
    padding: 8px 6px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
  }
}
@media (max-width: 600px) {
  .mobile-preset-logos {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
  }
  .mobile-logo-option {
    padding: 6px 2px !important;
    border-radius: 8px !important;
    min-width: 0 !important;
    min-height: 44px !important;
  }
  .mobile-logo-preview {
    width: 20px !important;
    height: 20px !important;
    margin-bottom: 2px !important;
    border-radius: 6px !important;
  }
  .mobile-logo-name {
    font-size: 11px !important;
  }
  .mobile-logo-footer {
    padding: 10px 6px !important;
    gap: 6px !important;
  }
  .mobile-logo-btn {
    padding: 8px 6px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
  }
}

@media (max-width: 600px) {
  .mobile-pattern-option[data-pattern="square"] .mobile-pattern-preview {
    background: #374151 !important;
    border-radius: 2px !important;
  }
  .mobile-pattern-option[data-pattern="dots"] .mobile-pattern-preview {
    background: radial-gradient(circle at center, #374151 30%, transparent 30%) !important;
    background-size: 8px 8px !important;
    border-radius: 2px !important;
  }
  .mobile-pattern-option[data-pattern="rounded"] .mobile-pattern-preview {
    background: #374151 !important;
    border-radius: 8px !important;
  }
  .mobile-pattern-option[data-pattern="extra-rounded"] .mobile-pattern-preview {
    background: #374151 !important;
    border-radius: 14px !important;
  }
  .mobile-pattern-option[data-pattern="classy"] .mobile-pattern-preview {
    background: repeating-linear-gradient(135deg, #374151, #374151 2px, #fff 2px, #fff 4px) !important;
    border-radius: 6px !important;
  }
  .mobile-pattern-option[data-pattern="circle"] .mobile-pattern-preview {
    background: radial-gradient(circle, #374151 60%, transparent 61%) !important;
    border-radius: 50% !important;
  }
  .mobile-pattern-option[data-pattern="smooth"] .mobile-pattern-preview {
    background: #374151 !important;
    border-radius: 12px !important;
  }
  .mobile-pattern-option[data-pattern="liquid"] .mobile-pattern-preview {
    background: radial-gradient(circle at 50% 50%, #374151 40%, transparent 40%) !important;
    background-size: 8px 8px !important;
    border-radius: 50% !important;
  }
  .mobile-pattern-option[data-pattern="diamond"] .mobile-pattern-preview {
    background: #374151 !important;
    transform: rotate(45deg) !important;
    border-radius: 2px !important;
  }
  .mobile-pattern-option[data-pattern="wavy"] .mobile-pattern-preview {
    background: repeating-linear-gradient(45deg, #374151 0px, #374151 6px, transparent 6px, transparent 12px), repeating-linear-gradient(-45deg, #374151 0px, #374151 6px, transparent 6px, transparent 12px) !important;
    border-radius: 4px !important;
  }
  .mobile-pattern-option[data-pattern="hexagon"] .mobile-pattern-preview {
    background: #374151 !important;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important;
    border-radius: 0 !important;
  }
  .mobile-pattern-option[data-pattern="gradient"] .mobile-pattern-preview {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%) !important;
    border-radius: 8px !important;
  }
  .mobile-pattern-option[data-pattern="heart"] .mobile-pattern-preview {
    background: #374151 !important;
    clip-path: path('M14 8C14 5.23858 11.7614 3 9 3C6.23858 3 4 5.23858 4 8C4 12.4183 9 15 9 15C9 15 14 12.4183 14 8Z') !important;
    border-radius: 8px !important;
  }

}
/* ===== END FORMAT SELECTION BOTTOM MODAL ===== */

/* How to Create Your QR Section Styles */
.how-to-section {
    padding: 2rem 2rem;
   
}

.how-to-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.how-to-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
}

.how-to-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.how-to-text {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.how-to-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.how-to-steps li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.how-to-steps li:hover {
    transform: translateY(-2px);
}

.step-number {
    width: 30px;
    height: 30px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    font-weight: bold;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #333;
}

.step-content p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.how-to-gif {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.how-to-gif img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .how-to-section {
        padding: 1rem 0rem;
    }

    .how-to-section h2 {
        font-size: 2rem;
    }

    .how-to-content {
        gap: 2rem;
    }

    .how-to-text, .how-to-gif {
        flex: 1 1 100%;
    }

    .how-to-steps li {
        margin-bottom: 1rem;
    }
}

.features-section {
  padding: 1rem 0 ;
  position: relative;
  
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.section-title {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(45deg, #000, #e0e7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.section-subtitle {
  font-size: 1.3rem;
  color: rgba(0,0,0,0.9);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.feature-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px 30px;
  border: 1px solid rgba(0,0,0,0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px);
  animation: slideInUp 0.8s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(0,0,0,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.feature-card:hover::before {
  transform: translateX(100%);
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  border-color: rgba(0,0,0,0.4);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(45deg, #000, #e0e7ff);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 2rem;
  color: #000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.feature-description {
  color: rgba(0,0,0,0.8);
  line-height: 1.6;
  font-size: 1rem;
  font-weight: 400;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-qr {
  position: absolute;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.8);  
  border-radius: 8px;
  animation: float 6s ease-in-out infinite;
}

.floating-qr:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.floating-qr:nth-child(2) {
  top: 70%;
  right: 10%;
  animation-delay: 2s;
}

.floating-qr:nth-child(3) {
  top: 30%;
  right: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

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

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

.stats-section {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 80px;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.8s;
}

.stat-item {
  text-align: center;
  color: #000;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 10px;
  background: linear-gradient(45deg, #000, #e0e7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 500;
}

@media (max-width: 768px) {
  .section-title {
      font-size: 2.5rem;
  }
  
  .features-grid {
      grid-template-columns: 1fr;
      gap: 20px;
  }
  
  .feature-card {
      padding: 30px 20px;
  }
  
  .stats-section {
      flex-direction: row;
      gap: 30px;
  }
  
  /* Mobile center alignment for features section */
  .features-section {
    text-align: center;
  }
  
  .features-section .container {
    text-align: center;
  }
  
  .features-section .section-header {
    text-align: center;
    margin-bottom: 60px;
  }
  
  .features-section .section-title {
    text-align: center;
    margin: 0 auto 20px;
  }
  
  .features-section .section-subtitle {
    text-align: center;
    margin: 0 auto;
  }
  
  .features-section .features-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .features-section .feature-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 350px;
    margin: 0 auto;
  }
  
  .features-section .feature-icon {
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .features-section .feature-title {
    text-align: center;
    margin: 0 auto 15px;
  }
  
  .features-section .feature-description {
    text-align: center;
    margin: 0 auto;
  }
  
  .features-section .stats-section {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  .features-section .stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .features-section .stat-number {
    text-align: center;
    margin: 0 auto;
  }
  
  .features-section .stat-label {
    text-align: center;
    margin: 0 auto;
  }
}

/* Additional mobile center alignment for smaller screens */
@media (max-width: 480px) {
  .features-section .section-title {
    font-size: 2rem;
    text-align: center;
    margin: 0 auto 15px;
  }
  
  .features-section .section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    margin: 0 auto;
  }
  
  .features-section .feature-card {
    padding: 25px 15px;
    text-align: center;
    margin: 0 auto;
    max-width: 300px;
  }
  
  .features-section .feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
  }
  
  .features-section .feature-title {
    font-size: 1.3rem;
    text-align: center;
    margin: 0 auto 12px;
  }
  
  .features-section .feature-description {
    font-size: 0.9rem;
    text-align: center;
    margin: 0 auto;
  }
  
  .features-section .stats-section {
    gap: 20px;
    justify-content: center;
  }
  
  .features-section .stat-item {
    text-align: center;
    min-width: 80px;
  }
}

/* Center alignment for very small screens */
@media (max-width: 375px) {
  .features-section .section-title {
    font-size: 1.8rem;
    text-align: center;
  }
  
  .features-section .feature-card {
    padding: 20px 12px;
    text-align: center;
    max-width: 280px;
  }
  
  .features-section .feature-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
  }
  
  .features-section .feature-title {
    font-size: 1.2rem;
    text-align: center;
  }
  
  .features-section .feature-description {
    font-size: 0.85rem;
    text-align: center;
  }
}

/* Desktop Logo Modal Styles */
.desktop-logo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.desktop-logo-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.desktop-logo-close {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  font-size: 1.25rem;
  color: #666;
  transition: color 0.3s;
}

.desktop-logo-close:hover {
  color: #333;
}

.desktop-logo-body {
  padding: 20px;
  max-height: calc(70vh - 180px);
  overflow-y: auto;
}

.desktop-logo-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid #eee;
}

.desktop-logo-btn {
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
}

.desktop-logo-btn.secondary {
  background: #f5f5f5;
  color: #666;
}

.desktop-logo-btn.secondary:hover {
  background: #eee;
}

.desktop-logo-btn.primary {
  background: #4a90e2;
  color: white;
}

.desktop-logo-btn.primary:hover {
  background: #357abd;
}

/* Logo Options and Settings */
.logo-section {
  margin-bottom: 24px;
}

.logo-section:last-child {
  margin-bottom: 0;
}

.logo-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 16px;
  color: #333;
}

.preset-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.logo-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.logo-option:hover {
  background: #f5f5f5;
}

.logo-option.active {
  background: #e8f0fe;
}

.logo-preview {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-preview i {
  transition: color 0.3s;
}

.logo-preview.no-logo {
  background: #f5f5f5;
}

.logo-preview.no-logo i {
  color: #999;
}

.logo-name {
  font-size: 0.875rem;
  color: #666;
  text-align: center;
}

.custom-logo-upload {
  margin-top: 12px;
}

.custom-logo-btn {
  width: 100%;
  padding: 12px;
  border: 2px dashed #ccc;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #666;
  transition: all 0.3s;
}

.custom-logo-btn:hover {
  border-color: #999;
  color: #333;
}

.logo-settings {
  margin-top: 20px;
}

.logo-setting {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.setting-label {
  min-width: 60px;
  font-size: 0.875rem;
  color: #666;
}

.logo-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  outline: none;
}

.logo-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #4a90e2;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s;
}

.logo-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.setting-value {
  min-width: 48px;
  font-size: 0.875rem;
  color: #666;
  text-align: right;
}

/* Custom Logo Preview */
.custom-logo-preview {
  display: none;
  position: relative;
  width: 100%;
  height: 120px;
  margin-top: 12px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.custom-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f5f5f5;
  padding: 12px;
}

.remove-logo-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.remove-logo-btn:hover {
  background: #fff;
  color: #333;
  transform: scale(1.1);
}

.logo-upload-info {
  display: block;
  margin-top: 8px;
  font-size: 0.75rem;
  color: #999;
  text-align: center;
}

/* Desktop and Mobile Visibility */
.desktop-only {
  display: none;
}

.mobile-only {
  display: none;
}

@media (min-width: 1025px) {
  .desktop-only {
    display: block;
  }

  .mobile-only {
    display: none;
  }
}

@media (max-width: 1024px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }
}

/* Logo Icon Colors */
.logo-option[data-logo="facebook"] .logo-preview i { color: #1877f2; }
.logo-option[data-logo="twitter"] .logo-preview i { color: #1da1f2; }
.logo-option[data-logo="instagram"] .logo-preview i { 
  background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-option[data-logo="linkedin"] .logo-preview i { color: #0077b5; }
.logo-option[data-logo="whatsapp"] .logo-preview i { color: #25d366; }
.logo-option[data-logo="youtube"] .logo-preview i { color: #ff0000; }
.logo-option[data-logo="github"] .logo-preview i { color: #333; }