/* Clean, Professional UI */
:root {
  --bg: #ffffff;
  --bg-card: #f9fafb;
  --text: #111827;
  --text-muted: #6b7280;
  --primary: #25d366;
  --primary-hover: #1ea855;
  --border: #e5e7eb;
  --border-focus: #25d366;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.aurora-background, .particles-canvas { display: none; }

.container {
  max-width: 420px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-wrapper { margin-bottom: 1rem; }
.logo-svg { width: 56px; height: 56px; }

.title {
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.375rem;
}

.subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Trust Signals */
.trust-signals {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Form */
.form-section {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.input-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.country-select-wrapper {
  flex: 0 0 105px;
}

.country-select,
.phone-input {
  width: 100%;
  padding: 0.875rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.country-select:focus,
.phone-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.detect-btn {
  padding: 0 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1.1rem;
}

.detect-btn:hover {
  background: var(--bg-card);
}

.phone-wrapper {
  flex: 1;
  position: relative;
}

.phone-label {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
  background: var(--bg);
  padding: 0 0.375rem;
  transition: all 0.2s;
}

.phone-input:focus ~ .phone-label,
.phone-input:not(:placeholder-shown) ~ .phone-label {
  top: 0;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
}

.format-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 0.25rem;
}

/* Button */
.btn {
  width: 100%;
  padding: 1rem;
  margin-top: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover:not(:disabled) {
  background: var(--primary-hover);
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

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

/* How It Works */
.how-it-works {
  margin-bottom: 1.5rem;
  text-align: center;
}

.how-it-works h2 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.step {
  padding: 1rem 0.5rem;
  background: var(--bg-card);
  border-radius: 8px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.step h3 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.step p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Recent */
.recent-section {
  background: var(--bg-card);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.recent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.recent-heading {
  font-size: 0.85rem;
  font-weight: 600;
}

.clear-button {
  font-size: 0.75rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-weight: 500;
}

.contact-item {
  padding: 0.75rem;
  margin: 0 -0.25rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-item:hover {
  background: var(--bg);
}

.contact-number {
  font-size: 0.95rem;
  font-weight: 500;
}

.contact-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-section {
  margin-bottom: 1.5rem;
}

.faq-section h2 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 0.875rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 300;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item[open] summary {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.faq-item p {
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Footer */
.footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-nav {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--primary);
}

/* Hide badges */
.feature-badges { display: none; }

/* Mobile */
@media (max-width: 480px) {
  .container { padding: 2rem 1rem; }
  .title { font-size: 1.375rem; }
  .trust-signals { gap: 1rem; }
  .stat-number { font-size: 1.125rem; }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    padding: 0.75rem;
  }
  
  .step-number {
    flex-shrink: 0;
    margin-bottom: 0;
  }
}
