:root {
  --bg-start: #f4f8ff;
  --bg-end: #fef7ec;
  --ink: #102138;
  --muted: #5b6b7d;
  --panel: rgba(255, 255, 255, 0.88);
  --line: #d8e1eb;
  --accent: #0b69b8;
  --accent-2: #1e9c8c;
  --danger: #a83420;
  --success: #20663d;
  --shadow: 0 10px 28px rgba(12, 32, 58, 0.09);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% -10%, rgba(10, 124, 188, 0.22), transparent 40%),
    radial-gradient(circle at 95% 10%, rgba(255, 163, 70, 0.2), transparent 42%),
    linear-gradient(145deg, var(--bg-start), var(--bg-end));
}

.container {
  width: min(1180px, 94vw);
  margin: 2rem auto 4rem;
}

.hero {
  margin-bottom: 1.2rem;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.11em;
  color: #2b6f9f;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.8rem, 3.3vw, 2.5rem);
}

h2 {
  margin-bottom: 1rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.meta-grid div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.8);
}

.meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}

.meta-grid strong {
  font-size: 0.95rem;
}

.hook-list {
  display: grid;
  gap: 1rem;
}

.hook-card {
  border-left: 5px solid rgba(11, 105, 184, 0.4);
}

.hook-form h3 {
  margin-bottom: 0.8rem;
}

.grid {
  display: grid;
  gap: 0.85rem;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

input[type="text"],
input[type="url"] {
  border: 1px solid #c8d6e3;
  border-radius: 10px;
  font-size: 0.98rem;
  padding: 0.62rem 0.72rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

input[type="text"]:focus,
input[type="url"]:focus {
  outline: 2px solid rgba(11, 105, 184, 0.35);
  border-color: var(--accent);
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

fieldset {
  border: 1px solid #ccdae7;
  border-radius: 12px;
  margin: 0 0 0.95rem;
  padding: 0.7rem 0.8rem 0.8rem;
}

legend {
  padding: 0 0.35rem;
  font-weight: 700;
}

.inline-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 0.65rem;
}

.inline-options label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-weight: 600;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.checkbox-pill {
  margin: 0;
  border: 1px solid #c7d9ea;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  font-weight: 600;
}

button {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(140deg, #0b69b8, #1d8f87);
  color: #fff;
  font-weight: 700;
  padding: 0.65rem 1rem;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.05);
}

button.secondary {
  background: #2b567a;
}

button.danger {
  background: #a83420;
}

.hook-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.flash {
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.flash.success {
  border: 1px solid rgba(32, 102, 61, 0.35);
  background: rgba(227, 250, 238, 0.94);
  color: var(--success);
}

.flash.error {
  border: 1px solid rgba(168, 52, 32, 0.32);
  background: rgba(255, 235, 231, 0.96);
  color: var(--danger);
}

.hint {
  color: var(--muted);
  margin-top: 0;
}

.poll-now-form {
  margin-top: 0.95rem;
}

@media (max-width: 640px) {
  .container {
    width: 95vw;
    margin-top: 1rem;
  }

  .panel {
    padding: 0.85rem;
    border-radius: 12px;
  }
}
