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

:root {
  --bg: #111111;
  --surface: #1c1c1c;
  --surface-2: #262626;
  --border: #333333;
  --accent: #ffffff;
  --accent-hover: #cccccc;
  --danger: #ff5f5f;
  --success: #4ecb71;
  --text: #f0f0f0;
  --text-muted: #888888;
  --radius: 10px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 640px;
  padding: 2rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

header {
  margin-bottom: 2.5rem;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

header h1 span {
  color: #cc2222;
}

header h1 .share {
  color: var(--text);
  font-weight: 400;
}

header p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

textarea, input[type="text"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
}

textarea:focus, input[type="text"]:focus {
  border-color: var(--accent);
}

textarea {
  min-height: 140px;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #111111;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

button:hover:not(:disabled) {
  background: var(--accent-hover);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

button.secondary {
  background: var(--surface-2);
  color: var(--text);
}

button.secondary:hover:not(:disabled) {
  background: var(--border);
}

.notice {
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.notice.info {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
}

.notice.success {
  background: rgba(78, 203, 113, 0.1);
  border: 1px solid rgba(78, 203, 113, 0.25);
  color: #7de0a0;
}

.notice.danger {
  background: rgba(255, 95, 95, 0.1);
  border: 1px solid rgba(255, 95, 95, 0.25);
  color: #ff9090;
}

.hidden {
  display: none !important;
}

footer {
  margin-top: auto;
  padding: 1.5rem 0 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

footer a[href="/faq"] {
  color: var(--success);
}

footer a[href="/faq"]:hover {
  color: var(--success);
  opacity: 0.8;
}

@media (max-width: 600px) {
  .container {
    padding: 1.25rem 1rem;
  }

  header {
    margin-bottom: 1.75rem;
  }

  header h1 {
    font-size: 1.25rem;
  }

  .card {
    padding: 1.125rem 1rem;
  }

  button {
    padding: 0.75rem 1.25rem;
    min-height: 44px;
  }

  footer {
    font-size: 0.75rem;
    line-height: 1.7;
  }
}
