* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #4a90e2;
  --primary-dark: #357abd;
  --secondary-color: #e74c3c;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --background: #f8f9fa;
  --card-background: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--text-dark);
}

.container {
  width: 100%;
  max-width: 500px;
}

.card {
  background: var(--card-background);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: var(--shadow);
  text-align: center;
  animation: fadeIn 0.5s ease-in;
}

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

.icon-container {
  margin-bottom: 20px;
}

.water-icon {
  width: 80px;
  height: 80px;
  color: var(--primary-color);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

h1 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-weight: 700;
}

.subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.info-box {
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  border-left: 4px solid var(--primary-color);
}

.info-box p {
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 0.95rem;
}

.status-message {
  margin: 15px 0;
  padding: 15px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  display: none;
}

.status-message.show {
  display: block;
  animation: slideIn 0.3s ease-out;
}

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

.status-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.status-message.info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.button-container {
  margin: 25px 0;
}

.btn {
  width: 100%;
  padding: 16px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
}

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

.btn-primary:disabled {
  background: var(--text-light);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
  background: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
}

.btn-test {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  font-size: 0.95rem;
  padding: 12px 20px;
}

.btn-test:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.btn-test:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.button-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.feature {
  text-align: center;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.feature-text {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

.ios-notice {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 10px;
  padding: 15px;
  margin-top: 25px;
  font-size: 0.9rem;
  color: #856404;
  line-height: 1.5;
}

footer {
  text-align: center;
  margin-top: 30px;
  color: white;
  font-size: 0.95rem;
  opacity: 0.9;
}

@media (max-width: 480px) {
  .card {
    padding: 30px 20px;
  }

  h1 {
    font-size: 1.6rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .btn {
    font-size: 1rem;
    padding: 14px 25px;
  }

  .features {
    gap: 15px;
  }

  .feature-icon {
    font-size: 1.5rem;
  }

  .feature-text {
    font-size: 0.75rem;
  }
}
