html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

/* Modern Footer Styles */
.footer {
    position: relative;
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.6;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    transition: all 0.3s ease;
    width: 100%;
    flex-shrink: 0;
    /* add min-width to prevent overflow */
    min-width: 0;
    box-sizing: border-box;
}

.footer:hover {
    background: rgba(255, 255, 255, 0.08);
}

.footer-content {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1.2rem; /* add horizontal padding */
    word-break: break-word;
    box-sizing: border-box;
}

.footer-brand {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-brand strong {
    color: white;
}

/* Add version styling */
.footer-version {
    font-size: 0.8em;
    color: rgba(255,255,255,0.6);
    font-weight: 400;
    margin-left: 0.5em;
    letter-spacing: 0.03em;
    vertical-align: middle;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    font-weight: 500;
    position: relative;
}

.footer-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-0.0625rem);
}

.footer-divider {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0.2rem;
    font-weight: 300;
}

/* Responsive adjustments */
.footer-links {
    flex-direction: column;
    gap: 0.75rem;
}

.footer-divider {
    display: none;
}

@media (min-width: 48em) {
    .footer-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .footer-brand {
        margin-bottom: 0;
    }

    .footer-links {
        flex-direction: row;
        gap: 0.5rem;
    }

    .footer-divider {
        display: inline;
    }
}

/* Minimalist, modern, responsive styles */
body {
  font-family: 'Inter', Arial, sans-serif;
  margin: 0;
  background: #18181b;
  color: #f4f4f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container {
  max-width: 420px;
  min-width: 0;
  width: 100%;
  margin: 2rem auto;
  background: #23232a;
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  transition: border-radius 0.2s;
}
header {
  text-align: center;
  margin-bottom: 2rem;
}

/* Navigation Styles */
.main-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.nav-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
}

.nav-link.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
}
.logo {
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #38bdf8;
}
.subtitle {
  font-size: 1.1rem;
  color: #a1a1aa;
  margin-top: 0.3rem;
  margin-bottom: 0.5rem;
}
.dark-toggle {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  color: #a1a1aa;
  font-size: 1.2rem;
}
form {
  width: 100%;
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
}
input[type="text"] {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 0.7rem;
  border: none;
  background: #18181b;
  color: #f4f4f5;
  font-size: 1rem;
  outline: none;
  transition: box-shadow 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  box-sizing: border-box;
}
input[type="text"]:focus {
  box-shadow: 0 0 0 2px #38bdf8;
}
button[type="submit"] {
  padding: 0.7rem 1.2rem;
  border-radius: 0.7rem;
  border: none;
  background: linear-gradient(90deg, #38bdf8 0%, #0ea5e9 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(56,189,248,0.12);
  white-space: nowrap;
  min-width: 0;
  width: auto;
  box-sizing: border-box;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  html, body {
    height: 100%;
    min-height: 100%;
  }
  body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  .container {
    margin: 0 auto 0 auto; /* Remove top margin */
    padding: 1.2rem 1rem 1rem 1rem;
    width: 100vw;
    max-width: 100vw;
    border-radius: 1.2rem 1.2rem 0 0;
    box-sizing: border-box;
    flex: 1 0 auto;
  }
  .footer {
    border-radius: 0 0 1.2rem 1.2rem;
    margin-bottom: 0;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .qr-area img {
    width: 140px;
    height: 140px;
  }
  form {
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
  }
  input[type="text"] {
    width: 100%;
    font-size: 1.05rem;
    padding: 0.8rem 1rem;
    min-width: 0;
    box-sizing: border-box;
  }
  button[type="submit"] {
    width: 100%;
    font-size: 1.08rem;
    padding: 0.85rem 0;
    margin-top: 0.1rem;
    min-width: 0;
    box-sizing: border-box;
  }
}
.qr-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
  min-height: 180px;
}
.qr-area img {
  width: 180px;
  height: 180px;
  border-radius: 0.7rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  margin-bottom: 1rem;
}
.download-btn {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: 0.6rem;
  background: #38bdf8;
  color: #18181b;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  font-size: 1rem;
}
.download-btn:hover {
  background: #0ea5e9;
  color: #fff;
}
.spinner {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  border: 4px solid #23232a;
  border-top: 4px solid #38bdf8;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: spin 1s linear infinite;
  display: none;
}
@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}
footer {
  text-align: center;
  margin-top: auto;
  padding: 1.2rem 0 0.7rem 0;
  color: #a1a1aa;
  font-size: 0.98rem;
}
.footer-link {
  color: #38bdf8;
  text-decoration: none;
  margin-left: 0.3rem;
  font-weight: 500;
}
@media (max-width: 600px) {
  .container {
    margin: 0.7rem auto 0.7rem auto;
    padding: 1.2rem 1rem 1rem 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .qr-area img {
    width: 140px;
    height: 140px;
  }
  form {
    flex-direction: column;
    gap: 0.7rem;
  }
  input[type="text"] {
    width: 100%;
    font-size: 1.05rem;
    padding: 0.8rem 1rem;
  }
  button[type="submit"] {
    width: 100%;
    font-size: 1.08rem;
    padding: 0.85rem 0;
    margin-top: 0.1rem;
  }
  .footer-content {
    padding: 0 0.7rem;
  }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.modal {
    background: linear-gradient(135deg, #181828 80%, #23234a 100%);
    color: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 8px 32px rgba(56,189,248,0.18), 0 1.5px 8px rgba(0,0,0,0.18);
    max-width: 30rem;
    width: 94vw;
    padding: 2.2rem 1.7rem 1.7rem 1.7rem;
    position: relative;
    animation: modalPop 0.25s cubic-bezier(.4,2,.6,1) 1;
    border: 1.5px solid #23234a;
}
@keyframes modalPop {
    0% { transform: scale(0.92) translateY(30px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}
.modal-title {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #38bdf8;
}
.modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 2.1rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0 0.5rem;
    line-height: 1;
    border-radius: 0.3rem;
}
.modal-close:hover {
    color: #ffd93d;
    background: rgba(255,217,61,0.08);
}
.modal-content p {
    margin-bottom: 0.7rem;
    font-size: 1.08rem;
    line-height: 1.7;
}
.modal-content a {
    color: #38bdf8;
    text-decoration: underline;
    transition: color 0.18s;
    font-weight: 500;
}
.modal-content a:hover {
    color: #ffd93d;
    text-decoration: underline;
}

/* Modern plug section inside modal */
.plug-title {
    font-weight: 700;
    font-size: 1.13rem;
    color: #ffd93d;
    margin-bottom: 0.7rem;
    letter-spacing: 0.01em;
    text-align: left;
}

.plug-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.plug-list li {
    margin: 0;
}

.plug-list a {
    display: block;
    background: linear-gradient(90deg, #23234a 60%, #23232a 100%);
    color: #38bdf8;
    border-radius: 0.7rem;
    padding: 0.7rem 1.1rem;
    font-weight: 600;
    font-size: 1.01rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(56,189,248,0.06);
    transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.13s;
    border: 1.5px solid transparent;
}

.plug-list a:hover {
    background: linear-gradient(90deg, #38bdf8 0%, #0ea5e9 100%);
    color: #18181b;
    box-shadow: 0 4px 16px rgba(56,189,248,0.18);
    border: 1.5px solid #38bdf8;
    transform: translateY(-2px) scale(1.03);
}

/* Responsive for plug-list */
@media (max-width: 600px) {
    .plug-list a {
        font-size: 1.08rem;
        padding: 0.9rem 1rem;
    }
}

.modal-note {
    background: rgba(255, 217, 61, 0.12);
    color: #ffd93d;
    border-radius: 0.5rem;
    padding: 0.7rem 1rem;
    margin-top: 1.2rem;
    font-size: 1.01rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-align: left;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}
.modal-btn {
    background: #ffd93d;
    color: #222;
    border: none;
    border-radius: 0.5rem;
    padding: 0.6rem 1.3rem;
    font-size: 1.08rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.18s;
    box-shadow: 0 2px 8px rgba(255,217,61,0.10);
}
.modal-btn:hover {
    background: #ffe066;
    color: #111;
    box-shadow: 0 4px 16px rgba(255,217,61,0.18);
}

/* Responsive tweaks for modal */
@media (max-width: 600px) {
    .modal {
        padding: 1.2rem 0.5rem 1rem 0.5rem;
    }
    .modal-title {
        font-size: 1.1rem;
    }
}

/* SEO Content Section */
.seo-intro {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
  color: white;
  font-size: 1rem;
  line-height: 1.7;
  text-align: left;
}

.seo-intro h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #ffffff;
  text-align: center;
  font-weight: 700;
}

.seo-intro h3 {
  font-size: 1.4rem;
  margin: 1.5rem 0 0.75rem 0;
  color: #4fd1c5;
  font-weight: 600;
}

.seo-intro p {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .seo-intro {
    padding: 1.5rem 1rem;
    text-align: left;
  }
  
  .seo-intro h2 {
    font-size: 1.6rem;
    text-align: center;
  }
  
  .seo-intro h3 {
    font-size: 1.2rem;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30,34,44,0.92);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: rgba(30,34,44,0.95);
  border-radius: 1.2rem;
  padding: 2rem;
  max-width: 90vw;
  width: 500px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #38bdf8;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.modal-content {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.modal-content p {
  margin-bottom: 1rem;
}

.modal-content a {
  color: #ffd93d;
  text-decoration: none;
}

.modal-content a:hover {
  text-decoration: underline;
}

.plug-section {
  margin-top: 1.5rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.plug-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffd93d;
  margin-bottom: 0.8rem;
  text-align: center;
}

.plug-list {
  display: grid;
  gap: 0.6rem;
}

.plug-list a {
  display: block;
  background: linear-gradient(90deg, #23234a 60%, #23232a 100%);
  color: #38bdf8;
  border-radius: 0.7rem;
  padding: 0.7rem 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.plug-list a:hover {
  background: linear-gradient(90deg, #2a2a5a 60%, #2a2a3a 100%);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
  text-decoration: none;
}

.modal-note {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.modal-note strong {
  color: #ffd93d;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-okay {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-okay:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

@media (max-width: 600px) {
  .modal {
    margin: 1rem;
    padding: 1.5rem;
    width: calc(100vw - 2rem);
    max-width: none;
  }
  
  .modal-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }
  
  .modal-title {
    font-size: 1.1rem;
  }
  
  .plug-section {
    padding: 1rem;
  }
  
  .plug-list a {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }
}