/* Download Modal */
.modal-container {
  position: fixed;
  bottom: -200%;
  left: 0;
  right: 0;
  z-index: 9999;
  transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-container.active {
  bottom: 0;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 9998;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.download-modal {
  background: white;
  border-radius: 30px 30px 0 0;
  padding: 2.5rem 2rem 2rem;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--lm-backgroundOffset);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--lm-text);
}

.modal-close svg {
  width: 20px;
  height: 20px;
  color: var(--lm-text);
}

.modal-close:hover svg {
  color: white;
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-header h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--lm-text);
}

.modal-header p {
  color: var(--lm-text);
  opacity: 0.7;
}

.modal-tabs {
  display: flex;
  background: var(--lm-backgroundOffset);
  border-radius: 50px;
  padding: 0.3rem;
  margin-bottom: 2rem;
  gap: 0.3rem;
}

.modal-tab {
  flex: 1;
  padding: 0.7rem 1.5rem;
  border: none;
  background: transparent;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--lm-text);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.modal-tab svg {
  width: 18px;
  height: 18px;
}

.modal-tab.active {
  background: white;
  color: var(--primary_color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-content {
  text-align: center;
}

.qr-wrapper {
  background: white;
  padding: 1.5rem;
  border-radius: 20px;
  display: inline-block;
  border: 2px solid var(--lm-backgroundOffset);
  margin-bottom: 1.5rem;
}

#qr-code {
  display: block;
}

.modal-instructions {
  font-size: 0.95rem;
  color: var(--lm-text);
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.store-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1.5rem;
  background: var(--lm-text);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.store-badge svg {
  width: 24px;
  height: 24px;
}

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

@media (max-width: 768px) {
  .download-modal {
    padding: 3.5rem 1.5rem 2em;
  }

  .modal-header h2 {
    font-size: 1.5rem;
  }
}
