body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: linear-gradient(135deg, #2d0b4e 0%, #6e3ff7 100%);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Safe area support for iPhone */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  /* Ensure proper scrolling */
  overflow-x: hidden;
  overflow-y: auto;
  /* Prevent content from being cut off */
  box-sizing: border-box;
}

/* Ensure main content can grow and footer stays at bottom */
main {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Ensure minimum spacing for footer */
  padding-bottom: 2rem;
}

/* Base centering fix for all elements */
.header {
  text-align: center;
  margin-top: 2.5rem;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  /* Ensure header doesn't get cut off on small screens */
  margin-bottom: 1rem;
}

.logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #1a0036;
  box-shadow: 0 4px 24px 0 rgba(110, 63, 247, 0.2);
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.brand-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0;
  text-align: center;
}

.brand-free {
  color: #fff;
}

.brand-vpn {
  color: #c7a6ff;
}

.tagline {
  font-size: 1.1rem;
  color: #e0d7ff;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.links-section {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.social-links {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  width: 100%;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f9fb;
  color: #181c24;
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(44, 12, 80, 0.06);
  padding: 1.1rem 1.3rem 1.1rem 1.1rem;
  margin-bottom: 1.1rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.13rem;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  gap: 1.1rem;
}
.social-btn:hover {
  box-shadow: 0 6px 24px 0 rgba(110, 63, 247, 0.10);
  transform: translateY(-2px) scale(1.01);
}
.social-btn .icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: #181c24;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-right: 1.1rem;
}
.social-btn .platform-label {
  font-weight: 800;
  color: #181c24;
  font-size: 1.22rem;
  display: block;
  margin-bottom: 0.12rem;
  letter-spacing: 0.01em;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}
.handle {
  color: #6c7280;
  font-size: 0.97rem;
  margin-left: 0;
  font-weight: 400;
  display: block;
  margin-top: 0.12rem;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Removed duplicate styles - using optimized versions above */

.social-btn-content {
  display: flex;
  align-items: flex-start;
  gap: 0.3rem;
  flex: 1 1 auto;
}
.social-btn .icon {
  margin-right: 0.2rem;
}
.social-btn {
  padding-left: 0.7rem;
  padding-right: 0.7rem;
}
.social-btn-actions {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
}

.appstore-btn, .macstore-btn, .playstore-btn {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 420px;
  min-width: 260px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  color: #181c24;
  text-align: center;
  font-weight: 700;
  border-radius: 2.5rem;
  padding: 1.2rem 2.2rem;
  margin-top: 0.7rem;
  margin-bottom: 0.7rem;
  text-decoration: none;
  font-size: 1.13rem;
  box-shadow: 0.5rem 0.5rem 0 #000;
  transition: box-shadow 0.2s, transform 0.2s;
  border: none;
  letter-spacing: 0.01em;
  box-sizing: border-box;
  float: none;
}
.appstore-btn, .macstore-btn, .playstore-btn {
  justify-content: space-between;
}
.appstore-btn i, .macstore-btn i, .playstore-btn i {
  margin-right: 0.7rem;
  font-size: 1.5rem;
  background: none;
  color: #181c24;
  border-radius: 0;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.appstore-btn:hover, .macstore-btn:hover, .playstore-btn:hover, .social-btn:hover {
  box-shadow: 0.7rem 0.7rem 0 #000;
  transform: translateY(-2px) scale(1.01);
}
.social-btn {
  font-weight: 500;
  font-size: 1.13rem;
  margin-bottom: 1.1rem;
  box-shadow: 0.5rem 0.5rem 0 #000;
  background: #fff;
  color: #181c24;
  border-radius: 2.5rem;
  padding: 1.2rem 1.3rem 1.2rem 1.1rem;
  gap: 1.1rem;
}
.social-btn .icon {
  background: none;
  color: #181c24;
  font-size: 1.5rem;
  margin-right: 1.1rem;
}
/* Legacy 600px breakpoint removed - now using device-specific breakpoints */

.support-link {
  display: block;
  color: #c7a6ff;
  text-align: center;
  margin: 0.7rem 0 2rem 0; /* Increased bottom margin for better spacing */
  text-decoration: underline;
  font-size: 1rem;
  /* Ensure support link is always accessible */
  padding: 0.5rem 0;
  /* Make it more prominent */
  font-weight: 500;
  transition: color 0.2s;
}

.support-link:hover {
  color: #fff;
}

/* Ensure proper spacing on all screen sizes */
@media (max-width: 600px) {
  .social-group li:last-child .social-btn {
    margin-bottom: 2rem; /* More space on mobile */
  }
  
  .support-link {
    margin: 1rem 0 2.5rem 0;
    font-size: 1.05rem;
  }
}
.footer {
  margin-top: auto;
  text-align: center;
  padding: 2rem 0 1rem 0;
  color: #e0d7ff;
  font-size: 0.98rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  /* Ensure footer is always visible */
  width: 100%;
  /* Prevent footer from being cut off */
  min-height: fit-content;
}
.privacy-note {
  margin-top: 0.3rem;
  font-size: 0.93rem;
  color: #c7a6ff;
}
.heart {
  color: #ff5eaa;
}

/* iPhone SE (320px) and smaller */
@media (max-width: 320px) {
  body {
    padding: env(safe-area-inset-top) 8px env(safe-area-inset-bottom) 8px;
    /* Ensure proper scrolling on smallest screens */
    min-height: 100vh;
    overflow-y: auto;
  }
  
  .header {
    margin-top: 1rem;
    max-width: 100%;
    /* Reduce top margin on smallest screens */
    margin-bottom: 0.5rem;
  }
  
  .logo {
    width: 70px;
    height: 70px;
  }
  
  .brand-title {
    font-size: 1.8rem;
  }
  
  .tagline {
    font-size: 0.95rem;
    /* Reduce bottom margin to save space */
    margin-bottom: 1.5rem;
  }
  
  .links-section {
    max-width: 100%;
    padding: 0 4px;
    /* Ensure proper spacing */
    margin-bottom: 1rem;
  }
  
  .button-group {
    max-width: 100%;
  }
  
  .social-btn {
    font-size: 0.95rem;
    padding: 0.7rem 0.6rem;
    border-radius: 12px;
    max-width: 100%;
    /* Reduce margin to save space */
    margin-bottom: 0.8rem;
  }
  
  .social-btn .icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    font-size: 1rem;
    margin-right: 0.6rem;
  }
  
  .platform-label {
    font-size: 1rem;
  }
  
  .handle {
    font-size: 0.85rem;
  }
  
  /* Ensure footer is accessible on smallest screens */
  .footer {
    padding: 1.5rem 0 1rem 0;
    margin-top: 1rem;
  }
  
  .support-link {
    margin: 0.5rem 0 1.5rem 0;
  }
}

/* iPhone 6/7/8/X/XS/11 Pro (375px) */
@media (min-width: 321px) and (max-width: 375px) {
  body {
    padding: env(safe-area-inset-top) 12px env(safe-area-inset-bottom) 12px;
  }
  
  .header {
    margin-top: 1.2rem;
    max-width: 100%;
  }
  
  .logo {
    width: 80px;
    height: 80px;
  }
  
  .brand-title {
    font-size: 2rem;
  }
  
  .links-section {
    max-width: 100%;
    padding: 0 8px;
  }
  
  .button-group {
    max-width: 100%;
  }
  
  .social-btn {
    font-size: 1rem;
    padding: 0.8rem 0.7rem;
    border-radius: 14px;
    max-width: 100%;
  }
  
  .social-btn .icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    font-size: 1.2rem;
    margin-right: 0.7rem;
  }
}

/* iPhone 12/13/14/15/15 Pro (390px-393px) */
@media (min-width: 376px) and (max-width: 393px) {
  body {
    padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom) 16px;
  }
  
  .header {
    margin-top: 1.5rem;
    max-width: 100%;
  }
  
  .logo {
    width: 90px;
    height: 90px;
  }
  
  .brand-title {
    font-size: 2.2rem;
  }
  
  .links-section {
    max-width: 100%;
    padding: 0 12px;
  }
  
  .button-group {
    max-width: 100%;
  }
  
  .social-btn {
    font-size: 1.05rem;
    padding: 0.9rem 0.8rem;
    border-radius: 16px;
    max-width: 100%;
  }
  
  .social-btn .icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    font-size: 1.4rem;
    margin-right: 0.8rem;
  }
}

/* iPhone 6/7/8 Plus, XR/11, 12/13/14 Pro Max, 15 Plus/Pro Max (414px-430px) */
@media (min-width: 394px) and (max-width: 430px) {
  body {
    padding: env(safe-area-inset-top) 20px env(safe-area-inset-bottom) 20px;
  }
  
  .header {
    margin-top: 1.8rem;
    max-width: 100%;
  }
  
  .logo {
    width: 100px;
    height: 100px;
  }
  
  .brand-title {
    font-size: 2.4rem;
  }
  
  .links-section {
    max-width: 100%;
    padding: 0 16px;
  }
  
  .button-group {
    max-width: 100%;
  }
  
  .social-btn {
    font-size: 1.1rem;
    padding: 1rem 0.9rem;
    border-radius: 18px;
    max-width: 100%;
  }
  
  .social-btn .icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: 1.6rem;
    margin-right: 0.9rem;
  }
}

/* iPad Mini (768px) */
@media (min-width: 431px) and (max-width: 768px) {
  body {
    padding: env(safe-area-inset-top) 40px env(safe-area-inset-bottom) 40px;
  }
  
  .header {
    margin-top: 2.5rem;
    max-width: 600px;
  }
  
  .logo {
    width: 120px;
    height: 120px;
  }
  
  .brand-title {
    font-size: 3rem;
  }
  
  .tagline {
    font-size: 1.3rem;
  }
  
  .links-section {
    max-width: 600px;
    padding: 0 20px;
  }
  
  .button-group {
    max-width: 600px;
  }
  
  .social-btn {
    font-size: 1.2rem;
    padding: 1.2rem 1.1rem;
    border-radius: 20px;
    margin-bottom: 1.2rem;
    max-width: 600px;
  }
  
  .social-btn .icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    font-size: 1.8rem;
    margin-right: 1rem;
  }
  
  .platform-label {
    font-size: 1.3rem;
  }
  
  .handle {
    font-size: 1.1rem;
  }
}

/* iPad (810px) */
@media (min-width: 769px) and (max-width: 810px) {
  body {
    padding: env(safe-area-inset-top) 60px env(safe-area-inset-bottom) 60px;
  }
  
  .header {
    margin-top: 3rem;
    max-width: 700px;
  }
  
  .logo {
    width: 140px;
    height: 140px;
  }
  
  .brand-title {
    font-size: 3.5rem;
  }
  
  .tagline {
    font-size: 1.4rem;
  }
  
  .links-section {
    max-width: 700px;
    padding: 0 30px;
  }
  
  .button-group {
    max-width: 700px;
  }
  
  .social-btn {
    font-size: 1.3rem;
    padding: 1.3rem 1.2rem;
    border-radius: 22px;
    margin-bottom: 1.3rem;
    max-width: 700px;
  }
  
  .social-btn .icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    font-size: 2rem;
    margin-right: 1.1rem;
  }
  
  .platform-label {
    font-size: 1.4rem;
  }
  
  .handle {
    font-size: 1.2rem;
  }
}

/* iPad Pro (1024px) and larger */
@media (min-width: 811px) {
  body {
    padding: env(safe-area-inset-top) 80px env(safe-area-inset-bottom) 80px;
  }
  
  .header {
    margin-top: 3.5rem;
    max-width: 800px;
  }
  
  .logo {
    width: 160px;
    height: 160px;
  }
  
  .brand-title {
    font-size: 4rem;
  }
  
  .tagline {
    font-size: 1.5rem;
  }
  
  .links-section {
    max-width: 800px;
    padding: 0 40px;
  }
  
  .button-group {
    max-width: 800px;
  }
  
  .social-btn {
    font-size: 1.4rem;
    padding: 1.4rem 1.3rem;
    border-radius: 24px;
    margin-bottom: 1.4rem;
    max-width: 800px;
  }
  
  .social-btn .icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    font-size: 2.2rem;
    margin-right: 1.2rem;
  }
  
  .platform-label {
    font-size: 1.5rem;
  }
  
  .handle {
    font-size: 1.3rem;
  }
}

/* Enhanced touch targets for all devices */
.social-btn .copy-btn,
.social-btn .social-more-btn {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Improved spacing for thumb navigation */
.social-btn {
  margin-bottom: 1.2rem;
}

/* Better typography for readability */
.platform-label {
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.handle {
  line-height: 1.2;
}

/* Enhanced footer spacing for safe areas */
.footer {
  margin-top: auto;
  text-align: center;
  padding: 2rem 0 1rem 0;
  color: #e0d7ff;
  font-size: 0.98rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

.topright-modal-btn {
  display: none !important;
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(44, 12, 80, 0.75);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 40px 0 rgba(44, 12, 80, 0.18);
  width: 95vw;
  max-width: 410px;
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
  position: relative;
  animation: modalIn 0.2s cubic-bezier(.4,2,.6,1) 1;
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes modalIn {
  from { transform: translateY(40px) scale(0.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #6e3ff7;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover {
  color: #2d0b4e;
}
.modal-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 1.2rem;
  gap: 0.5rem;
}
.modal-tab {
  background: #f3eaff;
  color: #6e3ff7;
  border: none;
  border-radius: 12px 12px 0 0;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.modal-tab.active, .modal-tab:focus {
  background: #6e3ff7;
  color: #fff;
}
.modal-tab-content {
  margin-top: 0.2rem;
}
.modal-icon-title {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.1rem;
}
.modal-main-icon {
  font-size: 2.5rem;
  color: #6e3ff7;
  background: #f3eaff;
  border-radius: 16px;
  padding: 0.7rem;
}
.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d0b4e;
}
.modal-link {
  font-size: 0.98rem;
  color: #6e3ff7;
  margin-top: 0.2rem;
  word-break: break-all;
}
.modal-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.1rem 0 0.5rem 0;
  justify-content: center;
}
.modal-share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  box-shadow: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s;
}
.modal-share-btn:active {
  transform: scale(0.96);
}
.share-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 0.3rem;
  background: #e5e7e6;
  color: #222;
  transition: background 0.2s, color 0.2s;
}
.share-label {
  font-size: 1rem;
  color: #181c24;
  margin-top: 0.1rem;
  font-weight: 500;
}
.share-copy .share-icon {
  background: #e5e7e6;
  color: #222;
}
.share-x .share-icon {
  background: #000;
  color: #fff;
}
.share-facebook .share-icon {
  background: #1877f3;
  color: #fff;
}
.share-whatsapp .share-icon {
  background: #25d366;
  color: #fff;
}
.share-linkedin .share-icon {
  background: #0a66c2;
  color: #fff;
}
.share-messenger .share-icon {
  background: #f5f6fa;
  color: #0084ff;
}
.share-snap .share-icon {
  background: #fffc00;
  color: #000;
  border: 2px solid #fff;
}
.modal-share-btn:hover .share-icon {
  filter: brightness(0.92);
  box-shadow: 0 2px 8px 0 rgba(44, 12, 80, 0.10);
}
@media (max-width: 600px) {
  .modal-share-row {
    gap: 0.7rem;
  }
  .share-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  .share-label {
    font-size: 0.92rem;
  }
}
.modal-info-section {
  text-align: center;
}
.modal-feature-list {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 1.2rem 0;
}
.modal-feature-list li {
  color: #6e3ff7;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}
.modal-feature-list i {
  color: #2d0b4e;
  font-size: 1.1rem;
}
.modal-cta-row {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1.2rem;
}
.modal-cta-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #6e3ff7;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.modal-cta-btn.playstore {
  background: #000;
  color: #fff;
}
.modal-cta-btn:hover {
  background: #c7a6ff;
  color: #2d0b4e;
}
@media (max-width: 600px) {
  .modal-content {
    padding: 1.2rem 0.3rem 1rem 0.3rem;
    max-width: 98vw;
  }
  .topright-modal-btn {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

.modal-share-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.2rem;
}
.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #2d0b4e;
  text-align: center;
  margin-bottom: 0.2rem;
}
.modal-link-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.7rem 0 1.1rem 0;
  justify-content: center;
}
.modal-link {
  color: #6e3ff7;
  text-decoration: underline;
  font-size: 1.08rem;
  word-break: break-all;
}
.modal-link-copy-btn {
  background: none;
  border: none;
  color: #6e3ff7;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.18s;
  padding: 0.2rem 0.3rem;
  border-radius: 6px;
}
.modal-link-copy-btn:hover {
  color: #2d0b4e;
  background: #f3eaff;
}
#modal-link-copied {
  display: none;
  margin-left: 0.5rem;
  color: #6e3ff7;
  font-size: 0.98rem;
  font-weight: 600;
}
.modal-qr-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
}
#modal-qr-website {
  background: #f3eaff;
  padding: 1.1rem;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-share-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem 0.7rem;
  justify-items: center;
  margin-top: 0.5rem;
}
@media (max-width: 600px) {
  .modal-share-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem 0.5rem;
  }
  .modal-title {
    font-size: 1.08rem;
  }
}

.category-label {
  width: 100%;
  font-size: 1.12rem;
  font-weight: 800;
  color: #e0d7ff;
  background: none;
  border-radius: 0;
  padding: 0.45rem 1rem 0.35rem 1rem;
  margin: 1.1rem 0 0.1rem 0;
  letter-spacing: 0.01em;
  text-align: center;
  display: block;
  box-shadow: none;
}
.category-label:first-child {
  margin-top: 0.5rem;
}
.website-group, .social-group {
  margin-bottom: 0.3rem;
}
@media (max-width: 600px) {
  .category-label {
    font-size: 1rem;
    padding: 0.35rem 0.7rem 0.3rem 0.8rem;
    border-radius: 8px;
    margin-bottom: 0.05rem;
  }
  .appstore-btn, .macstore-btn, .playstore-btn, .social-btn {
    font-size: 1.01rem;
    padding: 1rem 1rem 1rem 1rem;
    border-radius: 2rem;
    margin: 0.5rem 0;
  }
} 

.store-btn-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
}
.appstore-btn .copy-btn, .appstore-btn .social-more-btn,
.macstore-btn .copy-btn, .macstore-btn .social-more-btn,
.playstore-btn .copy-btn, .playstore-btn .social-more-btn {
  background: none;
  border: none;
  color: #181c24;
  border-radius: 8px;
  padding: 0.3rem 0.3rem;
  font-size: 1.35rem;
  cursor: pointer;
  transition: color 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}
.appstore-btn .copy-btn:hover, .appstore-btn .social-more-btn:hover,
.macstore-btn .copy-btn:hover, .macstore-btn .social-more-btn:hover,
.playstore-btn .copy-btn:hover, .playstore-btn .social-more-btn:hover {
  color: #6e3ff7;
  background: none;
} 

.button-group {
  max-width: 420px;
  width: 100%;
  margin: 0 auto 1.2rem auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.button-group > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.appstore-btn, .macstore-btn, .playstore-btn {
  /* Remove special styles so all buttons use .social-btn base styles */
}

/* Optimized button layout to prevent text wrapping */
.social-btn, .appstore-btn, .macstore-btn, .playstore-btn {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 420px;
  min-width: 260px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  color: #181c24;
  text-align: center;
  font-weight: 500;
  border-radius: 1.5rem;
  padding: 0.9rem 1.1rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  font-size: 1.08rem;
  box-shadow: 0 2px 8px 0 rgba(44, 12, 80, 0.06);
  transition: box-shadow 0.2s, transform 0.2s;
  border: none;
  letter-spacing: 0.01em;
  box-sizing: border-box;
  float: none;
  gap: 0.8rem; /* Reduced gap between content and actions */
}

.social-btn:hover {
  box-shadow: 0 6px 16px 0 rgba(110, 63, 247, 0.10);
  transform: translateY(-1px) scale(1.01);
}

.social-btn .icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background: none;
  color: #181c24;
  font-size: 1.3rem;
  margin-right: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* Prevent icon from shrinking */
}

.platform-label, .handle {
  font-family: 'Nunito', Arial, sans-serif;
}

.platform-label {
  font-weight: 400;
  font-size: 0.97rem;
  line-height: 1.2;
  margin-bottom: 0.1rem;
}

.handle {
  font-weight: 300;
  font-size: 0.89rem;
  line-height: 1.1;
}

/* Optimized action buttons to take less space */
.social-btn-actions {
  display: flex;
  align-items: center;
  gap: 0.1rem; /* Reduced gap between copy and menu buttons */
  margin-left: auto;
  flex-shrink: 0; /* Prevent actions from shrinking */
}

.social-btn .copy-btn {
  background: none;
  border: none;
  color: #181c24;
  border-radius: 6px;
  padding: 0.2rem 0.2rem; /* Reduced padding */
  margin-left: 0.3rem; /* Reduced margin */
  font-size: 1.2rem; /* Slightly smaller */
  cursor: pointer;
  transition: color 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  min-width: 32px; /* Smaller minimum width */
  min-height: 32px; /* Smaller minimum height */
}

.social-btn .copy-btn:hover {
  color: #6e3ff7;
  background: none;
}

.social-btn .social-more-btn {
  background: none;
  border: none;
  color: #b0b3b8;
  border-radius: 6px;
  padding: 0.2rem 0.2rem; /* Reduced padding */
  margin-left: 0.1rem; /* Reduced margin */
  font-size: 1.1rem; /* Slightly smaller */
  cursor: pointer;
  transition: color 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  min-width: 32px; /* Smaller minimum width */
  min-height: 32px; /* Smaller minimum height */
}

.social-btn .social-more-btn:hover {
  color: #6e3ff7;
  background: none;
}

/* Optimized content area to take more space */
.social-btn-content {
  display: flex;
  align-items: center;
  flex: 1; /* Take available space */
  min-width: 0; /* Allow shrinking */
  overflow: hidden; /* Prevent overflow */
}

/* Ensure text doesn't wrap unnecessarily */
.platform-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.handle {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive optimizations for smaller screens */
@media (max-width: 600px) {
  .social-btn {
    gap: 0.6rem; /* Even smaller gap on mobile */
    padding: 0.8rem 0.9rem; /* Slightly reduced padding */
  }
  
  .social-btn .copy-btn,
  .social-btn .social-more-btn {
    min-width: 28px; /* Smaller on mobile */
    min-height: 28px;
    padding: 0.15rem 0.15rem;
    font-size: 1rem;
  }
  
  .social-btn-actions {
    gap: 0.05rem; /* Minimal gap on mobile */
  }
}

/* iPhone SE and smaller screens */
@media (max-width: 320px) {
  .social-btn {
    gap: 0.5rem;
    padding: 0.7rem 0.8rem;
  }
  
  .social-btn .copy-btn,
  .social-btn .social-more-btn {
    min-width: 24px;
    min-height: 24px;
    padding: 0.1rem 0.1rem;
    font-size: 0.9rem;
  }
  
  .platform-label {
    font-size: 0.9rem;
  }
  
  .handle {
    font-size: 0.8rem;
  }
} 

.icon, .social-btn .icon, .appstore-btn i, .macstore-btn i, .playstore-btn i {
  font-size: 1.6rem;
  min-width: 1.6rem;
  min-height: 1.6rem;
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 600px) {
  .platform-label {
    font-size: 1.05rem;
  }
  .handle {
    font-size: 0.89rem;
  }
  .icon, .social-btn .icon, .appstore-btn i, .macstore-btn i, .playstore-btn i {
    font-size: 1.3rem;
    min-width: 1.3rem;
    min-height: 1.3rem;
    width: 1.3rem;
    height: 1.3rem;
  }
} 

.appstore-btn, .macstore-btn, .playstore-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-label {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
} 

.appstore-btn .copy-btn i, .macstore-btn .copy-btn i, .playstore-btn .copy-btn i,
.appstore-btn .social-more-btn i, .macstore-btn .social-more-btn i, .playstore-btn .social-more-btn i {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: #181c24;
  font-size: 1.35rem;
  display: inline-block;
  visibility: visible;
  opacity: 1;
}
.appstore-btn .copy-btn::before, .appstore-btn .copy-btn::after,
.macstore-btn .copy-btn::before, .macstore-btn .copy-btn::after,
.playstore-btn .copy-btn::before, .playstore-btn .copy-btn::after,
.appstore-btn .social-more-btn::before, .appstore-btn .social-more-btn::after,
.macstore-btn .social-more-btn::before, .macstore-btn .social-more-btn::after,
.playstore-btn .social-more-btn::before, .playstore-btn .social-more-btn::after {
  display: none;
  content: none;
} 

.appstore-btn .copy-btn:hover i, .macstore-btn .copy-btn:hover i, .playstore-btn .copy-btn:hover i,
.appstore-btn .social-more-btn:hover i, .macstore-btn .social-more-btn:hover i, .playstore-btn .social-more-btn:hover i {
  color: #6e3ff7;
  background: none;
}

/* Additional utility classes to replace inline styles */
.store-btn-wrapper {
  position: relative;
}

.store-btn-actions-inline {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.modal-link-row-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.7rem 0 1.1rem 0;
  justify-content: center;
}

.modal-link-inline {
  color: #6e3ff7;
  text-decoration: underline;
  font-size: 1.08rem;
}

.modal-link-copy-btn-inline {
  background: none;
  border: none;
  color: #6e3ff7;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-link-copied-inline {
  display: none;
  margin-left: 0.5rem;
  color: #6e3ff7;
  font-size: 0.98rem;
}

.modal-qr-area-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
}

.modal-qr-website-inline {
  background: #f3eaff;
  padding: 1.1rem;
  border-radius: 18px;
}

.modal-info-img {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  margin: 1.2rem auto;
  display: block;
  box-shadow: 0 2px 12px 0 rgba(110, 63, 247, 0.10);
}

.modal-feature-list-inline {
  max-width: 350px;
  margin: 1.1rem auto 1.2rem auto;
}

.modal-feature-item {
  align-items: center;
}

.modal-feature-text {
  margin-left: 1rem;
  display: inline-block;
  text-align: left;
}

.qr-modal-inline {
  display: none;
  z-index: 1300;
}

.modal-overlay-hidden {
  display: none;
}

.modal-tab-content-hidden {
  display: none;
}

.modal-tab-content-visible {
  display: block;
}

.qr-modal-content-inline {
  max-width: 320px;
  text-align: center;
}

.qr-modal-title {
  margin-bottom: 1rem;
  font-weight: 700;
}

.qr-link-inline {
  margin-top: 1rem;
  color: #6e3ff7;
  font-size: 0.98rem;
}

@media (max-width: 600px) {
  .links-section {
    max-width: 100vw;
    padding: 0 0.2rem;
  }
  .button-group {
    max-width: 100%;
    gap: 0.2rem;
    padding: 0;
    margin: 0;
  }
  .button-group > li {
    margin-bottom: 0.3rem;
  }
  .social-btn {
    padding: 0.6rem 0.4rem;
    font-size: 0.95rem;
    border-radius: 1rem;
    min-width: 0;
    max-width: 100%;
    margin-bottom: 0.4rem;
    gap: 0.4rem;
  }
  .social-btn-content {
    gap: 0.15rem;
  }
  .social-btn .icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    font-size: 1rem;
    margin-right: 0.1rem;
  }
  .platform-label {
    font-size: 0.93rem;
    font-weight: 400;
  }
  .handle {
    font-size: 0.82rem;
    font-weight: 300;
  }
  .social-btn-actions {
    gap: 0.08rem;
  }
}

/* Modal optimizations for different screen sizes */
@media (max-width: 430px) {
  .modal-content {
    width: 95vw;
    max-width: 380px;
    padding: 1.5rem 1rem 1rem 1rem;
    border-radius: 20px;
  }
  
  .modal-share-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  
  .share-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .share-label {
    font-size: 0.9rem;
  }
}

@media (min-width: 431px) and (max-width: 768px) {
  .modal-content {
    width: 90vw;
    max-width: 500px;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    border-radius: 24px;
  }
  
  .modal-share-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  
  .share-icon {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }
  
  .share-label {
    font-size: 1rem;
  }
}

@media (min-width: 769px) {
  .modal-content {
    width: 85vw;
    max-width: 600px;
    padding: 2.5rem 2rem 2rem 2rem;
    border-radius: 28px;
  }
  
  .modal-share-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }
  
  .share-icon {
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
  }
  
  .share-label {
    font-size: 1.1rem;
  }
}

/* Ensure last social link and support link are always accessible */
.social-group li:last-child .social-btn {
  margin-bottom: 1.5rem; /* Extra space before support link */
}