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

:root {
  --brand:        #992053;
  --brand-dark:   #7a1a43;
  --brand-light:  #f9eef4;
  --ink:          #070607;
  --ink-soft:     #3a3a3a;
  --slate:        #64748b;
  --slate-light:  #94a3b8;
  --bg:           #f4f4f6;
  --surface:      #ffffff;
  --border:       #e2e0e4;
  --radius:       12px;
  --shadow:       0 1px 3px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.06);
  --green:        #16a34a;
  --green-bg:     #f0fdf4;
  --green-border: #bbf7d0;
  --red:          #dc2626;
  --red-bg:       #fef2f2;
  --red-border:   #fecaca;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: var(--ink);
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid var(--brand);
}
.logo-img {
  height: 34px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand { color: #fff; font-weight: 700; font-size: .95rem; }
.tagline { color: var(--slate-light); font-size: .74rem; }

main {
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  flex: 1;
}

.intro h1 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin-bottom: .75rem;
}
.intro h1 span { color: var(--brand); }
.intro p {
  color: var(--slate);
  font-size: .92rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

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

.field-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: .4rem;
  letter-spacing: .01em;
}
.field-label .optional { font-weight: 400; color: var(--slate-light); }

textarea, input[type="text"], input[type="password"], select {
  width: 100%;
  font-family: var(--mono);
  font-size: .875rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
  resize: vertical;
}
select, input[type="text"], input[type="password"] { font-family: 'Inter', sans-serif; }
textarea:focus, input:focus, select:focus { border-color: var(--brand); background: #fff; }

.char-count { text-align: right; font-size: .72rem; color: var(--slate-light); margin: 6px 0 1.25rem; }

.options-row { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.field { flex: 1; margin-bottom: 1.25rem; }
.options-row .field { margin-bottom: 0; }

.btn-primary {
  width: 100%;
  background: var(--brand); color: #fff; border: none; padding: 13px 24px;
  border-radius: 8px; font-size: .9rem; font-weight: 600;
  cursor: pointer; font-family: 'Inter', sans-serif; transition: background .2s;
}
.btn-primary:hover:not(:disabled) { background: var(--brand-dark); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.btn-secondary {
  width: 100%;
  background: transparent; color: var(--brand); border: 1.5px solid var(--brand);
  padding: 11px 24px; border-radius: 8px; font-size: .875rem; font-weight: 600;
  cursor: pointer; font-family: 'Inter', sans-serif; transition: all .2s;
  margin-top: .75rem;
}
.btn-secondary:hover { background: var(--brand-light); }

.btn-text {
  width: 100%;
  background: none; border: none; color: var(--slate);
  font-size: .8rem; padding: 10px; cursor: pointer; font-family: 'Inter', sans-serif;
  text-decoration: underline; text-decoration-style: dotted;
}
.btn-text:hover { color: var(--ink); }

.alert {
  padding: .75rem 1rem; border-radius: 8px; font-size: .82rem;
  border: 1px solid; margin-top: 1rem; display: flex; align-items: center; gap: 8px;
}
.alert.error { background: var(--red-bg); border-color: var(--red-border); color: #b91c1c; }

.result-card { text-align: center; }
.result-icon { font-size: 2.2rem; margin-bottom: .5rem; }
.link-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--ink); border-radius: 8px; padding: 12px 14px; margin: .75rem 0;
}
.link-box code {
  flex: 1; text-align: left; color: #f4d4e2; font-family: var(--mono);
  font-size: .78rem; word-break: break-all;
}
.btn-copy {
  background: var(--brand); color: #fff; border: none; padding: 7px 14px;
  border-radius: 6px; font-size: .78rem; font-weight: 600; cursor: pointer;
  flex-shrink: 0; font-family: 'Inter', sans-serif;
}
.btn-copy:hover { background: var(--brand-dark); }
.result-note { color: var(--slate); font-size: .82rem; margin: .5rem 0 1rem; }

.reveal-warning {
  background: var(--brand-light); border: 1px solid #e8c0d4; color: var(--brand-dark);
  padding: .875rem 1rem; border-radius: 8px; font-size: .82rem; margin-bottom: 1.25rem;
  line-height: 1.5;
}
.secret-box {
  background: var(--ink); color: #d1fae5; font-family: var(--mono); font-size: .85rem;
  padding: 1.1rem; border-radius: 8px; white-space: pre-wrap; word-break: break-word;
  margin-bottom: 1rem; max-height: 360px; overflow-y: auto; line-height: 1.6;
}

.muted { color: var(--slate); font-size: .875rem; line-height: 1.6; }

.how-it-works {
  display: flex; flex-direction: column; gap: .9rem; margin-top: 2rem;
}
.hiw-item { display: flex; gap: 12px; align-items: flex-start; font-size: .82rem; color: var(--slate); }
.hiw-num {
  width: 22px; height: 22px; border-radius: 50%; background: var(--brand-light);
  color: var(--brand); font-weight: 700; font-size: .72rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

footer {
  text-align: center; color: var(--slate-light); font-size: .72rem;
  padding: 2rem; border-top: 1px solid var(--border);
}
footer strong { color: var(--brand); }

@media (max-width: 480px) {
  .options-row { flex-direction: column; gap: 1.25rem; }
  main { padding: 2rem 1.25rem 3rem; }
}
