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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 100%);
  min-height: 100vh;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  text-align: center;
  padding: 30px 0;
  color: white;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.tagline {
  font-size: 1.1rem;
  opacity: 0.9;
}

.tool-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  flex: 1;
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tool-icon {
  font-size: 2rem;
}

.tool-header h2 {
  font-size: 1.5rem;
  color: #1a472a;
}

.tool-description {
  color: #666;
  margin-bottom: 24px;
  font-size: 1rem;
}

.tool-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #444;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2d5a3d;
  box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-group.half {
  flex: 1;
}

.btn-primary {
  background: linear-gradient(135deg, #2d5a3d 0%, #1a472a 100%);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 90, 61, 0.3);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: transparent;
  color: #2d5a3d;
  border: 2px solid #2d5a3d;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  margin-top: 12px;
}

.btn-secondary:hover {
  background: rgba(45, 90, 61, 0.05);
}

.result-section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid #e0e0e0;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.result-header h3 {
  color: #1a472a;
  font-size: 1.1rem;
}

.btn-copy {
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-copy:hover {
  background: #eee;
}

.btn-copy.copied {
  background: #2d5a3d;
  color: white;
  border-color: #2d5a3d;
}

.generated-message {
  background: #f8faf8;
  border: 2px solid #e0e8e0;
  border-radius: 8px;
  padding: 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  white-space: pre-wrap;
}

footer {
  text-align: center;
  padding: 24px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .container {
    padding: 12px;
  }

  header {
    padding: 20px 0;
  }

  header h1 {
    font-size: 1.6rem;
  }

  .tool-card {
    padding: 20px;
    border-radius: 12px;
  }

  .form-row {
    flex-direction: column;
  }

  .tool-header h2 {
    font-size: 1.3rem;
  }
}

/* Usage Counter */
.usage-counter {
  background: #f0f7f0;
  border: 1px solid #d0e0d0;
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #2d5a3d;
}

.usage-counter.low {
  background: #fff3e0;
  border-color: #ffcc80;
  color: #e65100;
}

.usage-counter.subscribed {
  background: #e8f5e9;
  border-color: #a5d6a7;
  color: #2e7d32;
}

/* Paywall Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 450px;
  width: 100%;
  text-align: center;
}

.modal-content h2 {
  color: #1a472a;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.modal-content p {
  color: #666;
  margin-bottom: 24px;
  line-height: 1.6;
}

.pricing-box {
  background: #f8faf8;
  border: 2px solid #2d5a3d;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: #1a472a;
}

.price span {
  font-size: 1.2rem;
  font-weight: 400;
  color: #666;
}

.benefits {
  list-style: none;
  text-align: left;
  margin-top: 16px;
}

.benefits li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: #444;
}

.benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2d5a3d;
  font-weight: bold;
}

.btn-subscribe {
  display: block;
  background: linear-gradient(135deg, #2d5a3d 0%, #1a472a 100%);
  color: white;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-subscribe:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 90, 61, 0.3);
}

.modal-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: #999;
}
