/* BurnBox v2 — blue-flame theme.
   Dark, sleek, glassy. Cyan→blue→violet flame gradient as the accent. */

:root {
  /* Blue-flame palette */
  --flame-1: #00e5ff;   /* cyan core */
  --flame-2: #2979ff;   /* electric blue */
  --flame-3: #7c4dff;   /* violet tip */
  --flame: linear-gradient(135deg, var(--flame-1), var(--flame-2) 55%, var(--flame-3));
  --flame-soft: linear-gradient(135deg, rgba(0,229,255,.18), rgba(124,77,255,.18));

  --bg: #070b12;
  --bg-2: #0b111c;
  --panel: rgba(18, 26, 40, 0.72);
  --panel-solid: #101827;
  --stroke: rgba(120, 160, 220, 0.16);
  --stroke-strong: rgba(120, 170, 255, 0.42);

  --ink: #e9f0fb;
  --ink-dim: #9fb0c8;
  --ink-faint: #61708a;

  --ok: #35d0a5;
  --warn: #ffd166;
  --danger: #ff5d6c;

  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 24px 60px -20px rgba(0, 20, 60, 0.75);
  --glow: 0 0 0 1px rgba(41,121,255,.35), 0 0 32px -6px rgba(0,229,255,.55);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Roboto Mono", monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(0,229,255,.10), transparent 60%),
    radial-gradient(1000px 640px at 108% 4%, rgba(124,77,255,.14), transparent 55%),
    radial-gradient(900px 700px at 50% 120%, rgba(41,121,255,.10), transparent 60%),
    var(--bg);
  min-height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(18px, 4vw, 56px) 18px;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 620px; }

/* --- Header / brand --- */
.brand {
  display: flex; align-items: center; gap: 12px;
  margin: 4px 2px 20px;
}
.brand .flame {
  font-size: 30px; line-height: 1;
  filter: drop-shadow(0 0 10px rgba(0,229,255,.65)) hue-rotate(150deg) saturate(1.4);
}
.brand h1 {
  margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em;
}
.brand h1 b {
  background: var(--flame); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.brand .tag { margin: 2px 0 0; color: var(--ink-dim); font-size: 13.5px; }

/* --- Card --- */
.card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px) saturate(1.1);
  padding: clamp(20px, 3.5vw, 30px);
  position: relative;
  overflow: hidden;
}
.card::before {   /* top flame hairline */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--flame); opacity: .9;
}

/* --- Tabs --- */
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab {
  flex: 1; padding: 11px; text-align: center; cursor: pointer;
  border: 1px solid var(--stroke); border-radius: var(--radius-sm);
  background: rgba(255,255,255,.02); color: var(--ink-dim);
  font-weight: 650; font-size: 13.5px; transition: .18s ease;
  user-select: none;
}
.tab:hover { color: var(--ink); border-color: var(--stroke-strong); }
.tab.active {
  color: #fff; border-color: transparent;
  background: var(--flame); box-shadow: var(--glow);
}

label { display: block; font-weight: 650; font-size: 12.5px;
  color: var(--ink-dim); margin: 16px 0 7px; letter-spacing: .01em; }
label:first-of-type { margin-top: 0; }

textarea, select, input[type="text"], input[type="password"], input[type="datetime-local"] {
  width: 100%; padding: 12px 13px; color: var(--ink);
  background: rgba(6, 11, 20, 0.6);
  border: 1px solid var(--stroke); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; transition: .16s ease; outline: none;
}
textarea { min-height: 128px; resize: vertical; font-family: var(--mono); font-size: 13px; }
textarea:focus, select:focus, input:focus {
  border-color: var(--stroke-strong);
  box-shadow: 0 0 0 3px rgba(41,121,255,.16);
}
select { appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-dim) 50%),
                    linear-gradient(135deg, var(--ink-dim) 50%, transparent 50%);
  background-position: right 15px center, right 10px center;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > div { flex: 1; min-width: 150px; }

/* --- Dropzone --- */
.drop {
  border: 1.5px dashed var(--stroke-strong); border-radius: var(--radius-sm);
  padding: 26px 18px; text-align: center; color: var(--ink-dim);
  background: rgba(255,255,255,.015); transition: .18s ease; cursor: pointer;
}
.drop.over { background: var(--flame-soft); border-color: var(--flame-1); color: var(--ink); }
.drop b { color: var(--ink); }
.drop .pick { color: var(--flame-1); text-decoration: underline; text-underline-offset: 3px; }
.drop .fname { margin-top: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--flame-1); }

/* --- Advanced disclosure --- */
details.adv { margin-top: 16px; border-top: 1px solid var(--stroke); padding-top: 6px; }
details.adv > summary {
  cursor: pointer; list-style: none; padding: 10px 2px; font-size: 13px;
  color: var(--ink-dim); font-weight: 650; user-select: none;
}
details.adv > summary::-webkit-details-marker { display: none; }
details.adv > summary::before { content: "▸ "; color: var(--flame-1); }
details.adv[open] > summary::before { content: "▾ "; }

/* --- Button --- */
button.go {
  margin-top: 22px; width: 100%; padding: 15px; border: 0; cursor: pointer;
  border-radius: 12px; color: #fff; font-size: 15.5px; font-weight: 750;
  background: var(--flame); box-shadow: var(--glow); letter-spacing: .01em;
  transition: transform .12s ease, filter .16s ease;
}
button.go:hover { filter: brightness(1.08); }
button.go:active { transform: translateY(1px) scale(.995); }
button.go:disabled { filter: grayscale(.5) brightness(.8); cursor: wait; box-shadow: none; }

.btn-ghost {
  padding: 10px 16px; border-radius: 9px; cursor: pointer; font-weight: 650;
  background: rgba(255,255,255,.04); color: var(--ink);
  border: 1px solid var(--stroke); transition: .16s ease;
}
.btn-ghost:hover { border-color: var(--stroke-strong); background: rgba(255,255,255,.07); }

/* --- Output / result --- */
.out { margin-top: 22px; padding: 18px; display: none;
  background: var(--flame-soft); border: 1px solid var(--stroke-strong);
  border-radius: var(--radius-sm); animation: rise .3s ease; }
.out.show { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.linkrow { display: flex; gap: 8px; }
.link {
  flex: 1; padding: 12px; color: var(--ink); background: rgba(6,11,20,.7);
  border: 1px solid var(--stroke); border-radius: 9px;
  font-family: var(--mono); font-size: 12.5px; word-break: break-all;
}
.copy {
  padding: 0 18px; border: 0; border-radius: 9px; cursor: pointer;
  background: var(--ink); color: #071018; font-weight: 750; white-space: nowrap;
  transition: .15s ease;
}
.copy.done { background: var(--ok); color: #04150f; }

.meta-line { margin-top: 12px; color: var(--ink-dim); font-size: 12.5px; display: flex; gap: 14px; flex-wrap: wrap; }
.meta-line b { color: var(--flame-1); font-variant-numeric: tabular-nums; }

.qr { margin-top: 16px; display: none; text-align: center; }
.qr.show { display: block; }
.qr canvas, .qr img { background: #fff; padding: 10px; border-radius: 10px; }
.qr .hint { margin-top: 8px; color: var(--ink-faint); font-size: 11.5px; }

/* --- Reveal page --- */
.reveal-warn { color: var(--ink-dim); font-size: 13.5px; line-height: 1.55; margin: 0 0 18px; }
.reveal-warn .pill {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px;
  font-weight: 700; background: var(--flame-soft); color: var(--flame-1);
  border: 1px solid var(--stroke-strong); margin-right: 6px; }
pre.secret {
  margin: 0; padding: 16px; border-radius: var(--radius-sm);
  background: #05090f; border: 1px solid var(--stroke);
  color: #dbe7ff; font-family: var(--mono); font-size: 13px;
  white-space: pre-wrap; word-break: break-word; max-height: 46vh; overflow: auto;
}
.gone { color: var(--danger); font-weight: 700; font-size: 15px; }
.timer { margin-top: 14px; font-size: 12.5px; color: var(--ink-dim); }
.timer b { color: var(--danger); font-variant-numeric: tabular-nums; }
.dl-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  text-decoration: none; }

.spinner {
  width: 15px; height: 15px; border-radius: 50%; display: inline-block;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin .7s linear infinite; vertical-align: -3px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

.footer { text-align: center; margin: 18px 4px 0; color: var(--ink-faint); font-size: 11.5px; }
.footer b { background: var(--flame); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hidden { display: none !important; }
