@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --ink:        #0d1517;
  --card:       #131f20;
  --card-line:  #223638;
  --paper:      #e7f1ee;
  --ash:        #7b9793;
  --teal:       #159c85;
  --teal-soft:  #35c2a6;
  --burn:       #d9713f;

  --display: 'Fraunces', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  background-image:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(21,156,133,0.14), transparent 60%);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}
.brand-mark { color: var(--teal); font-size: 14px; }
.brand-name {
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  font-size: 14px;
  color: var(--ash);
}
.brand-name .accent { color: var(--teal); }

.dossier {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 18px;
  padding: 44px 40px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55);
  position: relative;
}
.dossier::before {
  /* stitched top edge — dossier / sealed-folder cue */
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--teal) 0 6px, transparent 6px 14px);
  opacity: 0.5;
}

.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--teal-soft);
  margin: 0 0 14px;
}

h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.18;
  margin: 0 0 16px;
  color: var(--paper);
}

.lede {
  color: var(--ash);
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 46ch;
}
.lede strong { color: var(--paper); font-weight: 600; }

/* ---- form ---- */
.form { display: flex; flex-direction: column; gap: 18px; }

.tabs { display: flex; gap: 8px; margin-bottom: 4px; }
.tab {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  background: transparent;
  border: 1px solid var(--card-line);
  color: var(--ash);
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab:hover { border-color: var(--teal); color: var(--paper); }
.tab.active { background: var(--teal); border-color: var(--teal); color: var(--ink); font-weight: 600; }

.field { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.field-row { display: flex; gap: 16px; flex-wrap: wrap; }
.field-row .field { min-width: 180px; }

label {
  font-size: 12px;
  color: var(--ash);
  letter-spacing: 0.02em;
}

textarea, input[type="text"], input[type="password"], input[type="file"], select {
  font-family: var(--mono);
  font-size: 14px;
  background: var(--ink);
  border: 1px solid var(--card-line);
  color: var(--paper);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease;
  width: 100%;
}
textarea:focus, input:focus, select:focus { border-color: var(--teal); }
textarea { resize: vertical; min-height: 120px; }

.btn-seal, .btn-ghost, .btn-copy {
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.03em;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-seal {
  background: var(--teal);
  border: 1px solid var(--teal);
  color: var(--ink);
  font-weight: 600;
  padding: 14px 20px;
  margin-top: 6px;
}
.btn-seal:hover { background: var(--teal-soft); }
.btn-seal:active { transform: scale(0.99); }
.btn-seal.btn-danger { background: var(--burn); border-color: var(--burn); color: var(--paper); }
.btn-seal.btn-danger:hover { filter: brightness(1.1); }

.btn-ghost {
  display: inline-block;
  margin-top: 22px;
  background: transparent;
  border: 1px solid var(--card-line);
  color: var(--ash);
  padding: 10px 16px;
  text-decoration: none;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--paper); }

.error {
  color: var(--burn);
  font-size: 13px;
  background: rgba(217,113,63,0.12);
  border: 1px solid rgba(217,113,63,0.35);
  padding: 10px 14px;
  border-radius: 10px;
  margin: 0 0 18px;
}

/* ---- result / link box ---- */
.link-box { display: flex; gap: 8px; margin-bottom: 8px; }
.link-box input {
  font-size: 13px;
  color: var(--teal-soft);
}
.btn-copy {
  background: transparent;
  border: 1px solid var(--teal);
  color: var(--teal-soft);
  padding: 0 18px;
  white-space: nowrap;
}
.btn-copy:hover { background: var(--teal); color: var(--ink); }
.hint { font-size: 12px; color: var(--ash); min-height: 16px; margin: 0; }

/* ---- seal / reveal screens on view.php ---- */
.seal-screen, .revealed, .gone-screen { text-align: left; }

.wax-seal {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--teal-soft), var(--burn) 70%);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 22px;
  box-shadow: 0 10px 24px -8px rgba(21,156,133,0.45);
}

.content-card {
  background: var(--ink);
  border: 1px solid var(--card-line);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 22px;
  animation: privatid-materialize 0.5s ease both;
}
.content-card img { max-width: 100%; border-radius: 8px; display: block; }
.message-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--paper);
  line-height: 1.7;
}

@keyframes privatid-materialize {
  from { opacity: 0; filter: blur(6px); transform: translateY(4px); }
  to   { opacity: 1; filter: blur(0);   transform: translateY(0); }
}

.ash-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--ash);
  border-top: 1px dashed var(--card-line);
  padding-top: 16px;
}
.ash-icon { color: var(--teal); flex-shrink: 0; }
.ash-icon.large { font-size: 30px; display: block; margin-bottom: 18px; }

.gone-screen { text-align: center; }
.gone-screen .lede { margin-left: auto; margin-right: auto; }

.foot {
  margin-top: 28px;
  text-align: center;
}
.foot p {
  font-size: 11.5px;
  color: var(--ash);
  opacity: 0.7;
  margin: 0;
}

@media (max-width: 480px) {
  .dossier { padding: 32px 22px; }
  h1 { font-size: 27px; }
}
