:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 320px;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
}

#app {
  max-width: 800px;
  width: 90%;
  margin: 0;
  padding: 1rem;
  text-align: center;
  padding-bottom: 3rem;
}

.header {
  margin-bottom: 1.5rem;
}

.header h1 {
  font-size: 3.2em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, #fff, #a8edea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: white;
}

.tagline {
  font-size: 1.3em;
  margin: 0.5rem 0;
  color: rgba(255, 255, 255, 0.9);
}

.tagline a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.tagline a:hover {
  color: white;
  text-decoration-color: white;
}

.subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9em;
  margin: 0;
}

.wallet-section {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wallet-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.wallet-section h3 {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  font-weight: 400;
}

.info-button {
  background: none !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 2px !important;
  margin: 0;
  transition: color 0.2s ease !important;
  outline: none !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

.info-button:hover {
  color: rgba(255, 255, 255, 0.9);
  background: none !important;
  border: none !important;
}

.info-button:focus,
.info-button:focus-visible {
  outline: none !important;
  border: none !important;
}

.main-content {
  margin-bottom: 2rem;
}

.health-tip-card {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  border-radius: 20px;
  padding: 3rem 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.tip-icon {
  font-size: 4rem;
}

.health-tip-card h2 {
  margin: 0 0 1rem 0;
  color: #333;
  font-size: 2rem;
}

.health-tip-card p {
  color: #666;
  font-size: 1.1em;
}

.pricing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.price {
  font-size: 2.5rem;
  font-weight: bold;
  color: #4CAF50;
}

.currency {
  font-size: 1.2rem;
  color: #666;
  font-weight: 500;
}

.cta-button {
  background: linear-gradient(45deg, #4CAF50, #45a049);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 1rem 2.5rem;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.cta-button:disabled {
  opacity: 0.6;
  transform: none;
  cursor: not-allowed;
}

.result-container {
  margin-top: 0.5rem;
}

.health-tip-success {
  background: linear-gradient(135deg, #d4f4dd, #b8f2c4);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  color: #2d5016;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.health-tip-success h3 {
  margin: 0 0 1.5rem 0;
  color: #2d5016;
}

.tip-content {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.tip-text {
  font-size: 1.2em;
  line-height: 1.6;
  margin: 0;
  color: #1a4c08;
  font-weight: 500;
  text-align: left;
}

.success-message {
  font-weight: 600;
  color: #4CAF50;
  margin: 1rem 0;
}

.success-message a {
  color: #2d5016;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

.success-message a:hover {
  color: #1a4c08;
}

.timestamp {
  font-size: 0.9em;
  color: #666;
  margin: 0;
}

.payment-card {
  background: rgba(76, 175, 80, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.payment-card h4 {
  margin-top: 0;
  color: #4CAF50;
  text-align: center;
}

.payment-card pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  line-height: 1.4;
  margin: 0;
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 8px;
}

.error-card {
  background: rgba(255, 107, 107, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 2rem;
  color: #ffcccc;
}

.error-card h4 {
  margin-top: 0;
  color: #ff6b6b;
}

.error-card pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  line-height: 1.4;
  margin: 0;
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 8px;
}

.footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9em;
  margin: 0;
}

.whats-this-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.95em;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.whats-this-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  transform: translateY(-1px);
}

#wallet-status {
  margin-top: 1rem;
}

button {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  transition: all 0.25s;
  backdrop-filter: blur(10px);
}

button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

button:focus,
button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

@media (prefers-color-scheme: light) {
  body {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    background-attachment: fixed;
  }

  .wallet-section {
    background: rgba(255, 255, 255, 0.3);
  }
}
