:root {
  --bg: #0a0a0a;
  --surface: #111;
  --surface2: #181818;
  --border: rgba(255,255,255,0.06);
  --green: #00a651;
  --green-glow: rgba(0, 166, 81, 0.2);
  --gold: #f5c518;
  --text: #f0f0f0;
  --text-muted: #888;
  --danger: #dc2626;
  --white: #fff;
  --radius: 16px;
}

* { 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;
  -webkit-font-smoothing: antialiased;
}

.app { max-width: 640px; margin: 0 auto; padding: 16px 16px 80px; }

/* ── Animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ── Header ── */
.header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0 12px; animation: fadeUp 0.5s ease;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { font-size: 28px; }
.logo-text { font-size: 20px; font-weight: 800; color: var(--white); letter-spacing: -0.3px; }
.accent { color: var(--green); }
.badge {
  background: rgba(0, 166, 81, 0.1); color: var(--green); padding: 5px 14px;
  border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  border: 1px solid rgba(0, 166, 81, 0.15);
}

/* ── Hero ── */
.hero {
  text-align: center; padding: 36px 0 20px; position: relative;
  animation: fadeUp 0.6s ease;
}
.hero::before {
  content: ''; position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,166,81,0.08), transparent 70%);
  pointer-events: none;
}
.hero h1 { font-size: 32px; font-weight: 900; line-height: 1.15; margin-bottom: 14px; position: relative; }
.hero-accent { color: var(--green); }
.subtitle { color: var(--text-muted); font-size: 15px; line-height: 1.6; max-width: 460px; margin: 0 auto 22px; }

.how-it-works {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 20px; margin: 0 auto; max-width: 360px;
  animation: fadeUp 0.7s ease;
}
.how-step { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.how-num {
  width: 22px; height: 22px; border-radius: 50%; background: var(--green);
  color: var(--bg); display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
}
.how-arrow { color: #333; font-size: 14px; }

/* ── Step Cards ── */
.step-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 20px; margin-top: 16px;
  animation: fadeUp 0.5s ease both;
}
.step-card:nth-child(3) { animation-delay: 0.05s; }
.step-card:nth-child(4) { animation-delay: 0.1s; }
.step-card:nth-child(5) { animation-delay: 0.15s; }

.step-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.step-number {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), #008c45);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; flex-shrink: 0;
  box-shadow: 0 4px 12px var(--green-glow);
}
.step-card h2 { font-size: 20px; font-weight: 800; }

/* ── Form ── */
.field-label { display: block; font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; margin-top: 16px; }
.field-label:first-of-type { margin-top: 0; }
.required { color: var(--danger); }

textarea, input[type="text"], input[type="email"] {
  width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); padding: 12px 14px; font-size: 15px; resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s; font-family: inherit;
}
textarea:focus, input[type="text"]:focus, input[type="email"]:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
}
.char-count { display: block; text-align: right; color: #444; font-size: 11px; margin: 4px 0 0; }

/* ── Plan Cards ── */
.plan-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.plan-card {
  background: var(--surface2); border: 2px solid var(--border); border-radius: 14px;
  padding: 16px 10px; text-align: center; cursor: pointer; transition: all 0.25s;
  position: relative; overflow: hidden;
}
.plan-card::before {
  content: ''; position: absolute; inset: 0; border-radius: 12px;
  background: radial-gradient(circle at 50% 0%, rgba(0,166,81,0.06), transparent 70%);
  opacity: 0; transition: opacity 0.25s;
}
.plan-card:hover { border-color: #333; transform: translateY(-2px); }
.plan-card:hover::before { opacity: 1; }
.plan-card.selected {
  border-color: var(--green); box-shadow: 0 0 20px var(--green-glow);
  transform: translateY(-2px);
}
.plan-card.selected::before { opacity: 1; }
.plan-badge { font-size: 11px; font-weight: 700; margin-bottom: 8px; position: relative; }
.plan-price { font-size: 28px; font-weight: 900; color: var(--white); position: relative; }
.plan-mo { font-size: 13px; font-weight: 400; color: var(--text-muted); }
.plan-period { font-size: 10px; color: var(--text-muted); margin: 2px 0 10px; position: relative; }
.plan-features { list-style: none; text-align: left; position: relative; }
.plan-features li { font-size: 11px; margin: 4px 0; color: var(--text-muted); }

@media (max-width: 520px) { .plan-cards { grid-template-columns: 1fr; } }

/* ── Trust ── */
.trust-signals { margin-top: 16px; }
.trust-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted); padding: 4px 0;
}
.trust-icon { font-size: 14px; }

/* ── Results ── */
.result-card {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 14px;
  padding: 28px 24px; text-align: center; margin-bottom: 14px;
}
.live-card { border-color: var(--green); background: linear-gradient(180deg, rgba(0,166,81,0.04), var(--surface2)); }
.live-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--green);
  display: inline-block; animation: pulse 1.5s infinite;
  box-shadow: 0 0 8px rgba(0,166,81,0.5);
}
.live-label { color: var(--green); font-weight: 800; font-size: 13px; letter-spacing: 2px; margin: 10px 0; }
.live-url {
  color: var(--white); font-size: 13px; word-break: break-all; font-family: monospace;
  background: rgba(0,166,81,0.06); padding: 10px 14px; border-radius: 8px; margin-top: 10px;
  border: 1px solid rgba(0,166,81,0.1);
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.pulse-ring { width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--green); animation: ring 1.2s ease-out infinite; margin: 0 auto 16px; }
@keyframes ring { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.loading-text { color: var(--text-muted); font-weight: 600; font-size: 15px; }
.loading-sub { color: #555; font-size: 13px; margin-top: 6px; }

.billing-info {
  background: rgba(0, 166, 81, 0.04); border: 1px solid rgba(0, 166, 81, 0.1);
  border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; text-align: center;
}
.billing-info p { font-size: 14px; color: var(--text-muted); margin: 4px 0; }
.billing-info strong { color: var(--gold); font-size: 20px; letter-spacing: 3px; }
.pin-note { font-size: 11px; color: #555; margin-top: 6px; }

.action-buttons { display: flex; flex-direction: column; gap: 8px; }
.action-btn {
  display: block; width: 100%; padding: 14px; border-radius: 12px;
  text-align: center; font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.2s;
}
.open-btn { background: linear-gradient(135deg, var(--green), #008c45); color: var(--white); }
.open-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--green-glow); }
.whatsapp-btn { background: #25D366; color: var(--white); }
.whatsapp-btn:hover { opacity: 0.9; }
.copy-btn { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.copy-btn:hover { border-color: #444; }
.error-card { border-color: var(--danger); }
.error-text { color: var(--danger); font-weight: 600; font-size: 15px; }

.secondary-btn {
  width: 100%; padding: 11px; background: transparent; border: 1px solid var(--border);
  border-radius: 10px; color: var(--text-muted); font-weight: 600; font-size: 13px;
  cursor: pointer; margin-top: 10px; transition: all 0.2s;
}
.secondary-btn:hover { border-color: #444; color: var(--text); }

/* ── Footer ── */
.footer { text-align: center; margin-top: 40px; padding: 20px 0; border-top: 1px solid var(--border); }
.footer p { font-size: 12px; color: #444; }
.footer-links { margin-top: 8px; display: flex; justify-content: center; gap: 8px; }
.footer-links a { color: #555; text-decoration: none; font-size: 12px; transition: color 0.2s; }
.footer-links a:hover { color: var(--green); }
.footer-links span { color: #333; }

/* ── Services Input ── */
.services-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 14px; }
.service-row {
  display: grid; grid-template-columns: 1.2fr 1fr 72px 32px; gap: 6px;
  margin-bottom: 8px; align-items: center;
}
@media (max-width: 520px) {
  .service-row { grid-template-columns: 1fr 1fr; gap: 6px; }
  .service-row .svc-price { grid-column: 1; }
  .service-row .remove-svc-btn { grid-column: 2; justify-self: end; }
}
.svc-name, .svc-desc, .svc-price {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); padding: 9px 10px; font-size: 13px; font-family: inherit;
  transition: border-color 0.2s;
}
.svc-name:focus, .svc-desc:focus, .svc-price:focus { outline: none; border-color: var(--green); }
.svc-price { text-align: center; font-weight: 700; }

.remove-svc-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border);
  background: transparent; color: #555; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.remove-svc-btn:hover { border-color: var(--danger); color: var(--danger); background: rgba(220,38,38,0.05); }

.add-svc-btn {
  width: 100%; padding: 10px; border: 1px dashed rgba(255,255,255,0.08); border-radius: 10px;
  background: transparent; color: var(--green); font-size: 13px; font-weight: 700;
  cursor: pointer; margin-top: 4px; transition: all 0.2s;
}
.add-svc-btn:hover { border-color: var(--green); background: rgba(0, 166, 81, 0.04); }
.services-hint { text-align: center; font-size: 11px; color: #444; margin-top: 10px; }

/* ── PayPal Container ── */
.paypal-container { margin: 16px 0 8px; min-height: 50px; }
.paypal-loading { text-align: center; font-size: 13px; color: var(--text-muted); padding: 12px 0; }
.form-hint {
  text-align: center; font-size: 13px; color: var(--gold);
  background: rgba(245, 197, 24, 0.05); border: 1px solid rgba(245, 197, 24, 0.12);
  border-radius: 10px; padding: 10px 14px; margin-top: 8px;
}

/* ── Utility ── */
.hidden { display: none !important; }
