:root {
  --y: #ffca05;
  --yd: #d8a700;
  --k: #1a1a1a;
}

body {
  background: linear-gradient(135deg, var(--k) 0%, #2a2a2a 100%);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 20px;
}

.app-install-container {
  max-width: 500px;
  margin: 0 auto;
}

.app-header {
  text-align: center;
  margin-bottom: 40px;
}

.app-logo {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  overflow: hidden;
}

.app-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.app-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.app-header p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Android Installation */
.android-install {
  animation: slideInUp 0.4s ease-out;
}

.install-step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.install-step:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 202, 5, 0.3);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--y), var(--yd));
  border-radius: 50%;
  color: var(--k);
  font-weight: 800;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.step-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.btn-download {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--y), var(--yd));
  border: none;
  border-radius: 12px;
  color: var(--k);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 24px 0;
  text-decoration: none;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(255, 202, 5, 0.2);
  color: var(--k);
  text-decoration: none;
}

.btn-download i {
  font-size: 1.3rem;
}

/* iOS Installation */
.ios-install {
  animation: slideInUp 0.4s ease-out;
}

.ios-step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.ios-step:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.ios-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.ios-step-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ios-step-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 10px;
}

.ios-highlight {
  background: rgba(255, 202, 5, 0.12);
  border: 1px solid rgba(255, 202, 5, 0.25);
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: rgba(255, 202, 5, 0.9);
  font-weight: 600;
}

.ios-icon-path {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin: 6px 0;
  font-family: 'Courier New', monospace;
}

.ios-icon-path i {
  color: var(--y);
}

/* Desktop */
.desktop-install {
  text-align: center;
  animation: slideInUp 0.4s ease-out;
}

.desktop-message {
  background: rgba(255, 202, 5, 0.12);
  border: 1px solid rgba(255, 202, 5, 0.25);
  border-radius: 16px;
  padding: 30px 20px;
  margin-bottom: 30px;
}

.desktop-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--y);
}

.desktop-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.desktop-desc {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 20px;
}

.desktop-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.desktop-option {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  transition: all 0.3s ease;
  cursor: pointer;
}

.desktop-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.desktop-option-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--y);
}

.desktop-option-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.desktop-option-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* General */
.info-note {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--y);
  border-radius: 6px;
  padding: 14px;
  margin-top: 24px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.info-note i {
  color: var(--y);
  margin-right: 8px;
}

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

@media (max-width: 480px) {
  .app-header h1 {
    font-size: 1.5rem;
  }

  .install-step,
  .ios-step {
    padding: 16px;
  }

  .step-title,
  .ios-step-title {
    font-size: 0.95rem;
  }
}

/* iOS Tutorial Modal */
.ios-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.ios-modal.show {
  display: flex;
}

.ios-modal-content {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.4s ease;
}

.ios-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1;
}

.ios-modal-close:hover {
  background: rgba(255, 202, 5, 0.2);
  border-color: rgba(255, 202, 5, 0.3);
}

.ios-modal-header {
  text-align: center;
  padding: 30px 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ios-modal-logo {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ffca05, #d8a700);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
  color: #1a1a1a;
}

.ios-modal-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
  color: #fff;
}

.ios-tutorial-steps {
  padding: 30px 20px;
  min-height: 300px;
}

.tutorial-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tutorial-step.active {
  display: flex;
  gap: 20px;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.step-number-large {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ffca05, #d8a700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  color: #1a1a1a;
  flex-shrink: 0;
}

.step-line {
  width: 3px;
  height: 60px;
  background: linear-gradient(180deg, rgba(255, 202, 5, 0.3), transparent);
  margin-top: 8px;
}

.tutorial-step:last-child .step-line {
  display: none;
}

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-content h3 i {
  font-size: 1.3rem;
  color: #ffca05;
}

.step-content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 10px 0;
  line-height: 1.6;
}

.step-content p:first-of-type {
  margin-top: 0;
}

.ios-tutorial-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-btn {
  background: rgba(255, 202, 5, 0.1);
  border: 1px solid rgba(255, 202, 5, 0.25);
  color: #ffca05;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.nav-btn:hover:not(:disabled) {
  background: rgba(255, 202, 5, 0.2);
  border-color: rgba(255, 202, 5, 0.4);
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.step-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex: 1;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #ffca05;
  border-color: #ffca05;
}

.dot:hover {
  background: rgba(255, 202, 5, 0.5);
}

.btn-done {
  width: calc(100% - 40px);
  padding: 14px;
  background: linear-gradient(135deg, #ffca05, #d8a700);
  border: none;
  border-radius: 10px;
  color: #1a1a1a;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
}

.btn-done:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(255, 202, 5, 0.3);
}

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

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

@media (max-width: 480px) {
  .ios-modal-content {
    border-radius: 16px;
    max-height: 90vh;
  }

  .ios-modal-header {
    padding: 20px 16px 16px;
  }

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

  .ios-tutorial-steps {
    padding: 20px 16px;
  }

  .tutorial-step {
    gap: 12px;
  }

  .step-number-large {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .step-content h3 {
    font-size: 1rem;
  }

  .step-content p {
    font-size: 0.9rem;
  }

  .ios-tutorial-navigation {
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-btn {
    flex: 1;
    min-width: calc(50% - 4px);
  }

  .step-dots {
    width: 100%;
    order: 3;
  }

  .btn-done {
    margin: 16px 16px 16px;
  }
}
