:root {
  --bg: #0f172a;
  --card: #1e293b;
  --accent: #25D366;
  --accent-hover: #20b855;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.05);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--text);
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 16px;
  line-height: 1.5;
}

.card {
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

h1 {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
}

p.lead {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 28px;
}

.input-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.phone-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
}

select,
input,
textarea {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: all 0.2s;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

textarea {
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
}

.buttons {
  margin-top: 20px;
  text-align: center;
}

button.primary {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.2s;
}

button.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.link-preview {
  margin-top: 16px;
  padding: 14px;
  background: var(--glass);
  border-radius: 12px;
  font-family: ui-monospace, monospace;
  font-size: 14px;
  word-break: break-all;
  border: 1px solid var(--border);
  display: none;
}

.link-preview.show {
  display: block;
}

.status {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
  display: none;
}

.status.show {
  display: block;
}

.error {
  background: rgba(255, 100, 100, 0.15);
  color: #ffb4b4;
  border: 1px solid rgba(255, 100, 100, 0.3);
}

.success {
  background: rgba(37, 211, 102, 0.15);
  color: #a1f0c3;
  border: 1px solid rgba(37, 211, 102, 0.3);
}

footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 480px) {
  .phone-row {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 24px 20px;
  }
  h1 {
    font-size: 22px;
  }
}