:root {
  --bg: #0b0f14;
  --bg2: #111821;
  --card: #141c26;
  --line: #233040;
  --text: #e8eef5;
  --muted: #8a99ab;
  --green: #12b76a;
  --green2: #2ee59d;
  --amber: #f5a524;
  --red: #f0545a;
  --radius: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(1200px 600px at 50% -200px, #12324a55, transparent), var(--bg);
  color: var(--text);
  font: 15px/1.5 Inter, system-ui, sans-serif;
  min-height: 100vh;
}
[hidden] { display: none !important; }
h1, h2 { margin: 0 0 12px; }
h2 { font-size: 17px; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
a { color: var(--green2); }

.wrap { max-width: 880px; margin: 0 auto; padding: 16px 16px 48px; display: grid; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }

.top { display: flex; justify-content: space-between; align-items: center; }
.brand { font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.tag { font-size: 11px; background: var(--amber); color: #000; padding: 2px 6px; border-radius: 6px; font-weight: 700; }

/* Buttons + Felder */
.btn {
  appearance: none; border: 1px solid var(--line); background: var(--bg2); color: var(--text);
  padding: 10px 16px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover { border-color: #35506a; }
.btn.primary { background: var(--green); border-color: var(--green); color: #04130b; }
.btn.primary:hover { background: var(--green2); }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
input, select, textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 10px 12px; font: inherit; margin-top: 6px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #12b76a66; border-color: var(--green); }
input[type=file] { padding: 8px; }
label { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
label.check { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
label.check input { width: auto; margin: 0; }
.req { color: var(--red); }
.error { color: var(--red); margin: 8px 0 0; }
.error-box { color: var(--red); border-color: #5a2a2d; }

/* Login */
.login { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: #05080bcc; backdrop-filter: blur(4px); }
.login-card { width: min(360px, 100%); display: grid; gap: 12px; text-align: center; position: relative; }
.login-card .close { position: absolute; top: 10px; right: 10px; }
.top-actions { display: flex; gap: 8px; }
.logo { font-size: 40px; }

/* Hero */
.hero { padding: 28px 24px; text-align: center; background: linear-gradient(180deg, #16222f, var(--card)); }
.hero-label { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.hero-amount { font-size: clamp(40px, 10vw, 72px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 6px 0 18px; }
.hero-amount .slash, .hero-amount .goal { color: #4d5f74; }
.bar { height: 14px; background: var(--bg); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--green2)); border-radius: 99px; transition: width .8s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 20px #2ee59d66; }
.hero-meta { display: flex; justify-content: space-between; margin-top: 8px; font-weight: 600; font-size: 14px; gap: 8px; flex-wrap: wrap; }

.lock { margin-top: 22px; display: flex; align-items: center; gap: 14px; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.lock.open { border-color: #1d5a3f; }
.lock-icon { font-size: 26px; }
.lock-title { font-weight: 700; }
.lock-sub { color: var(--muted); font-size: 13px; }
.countdown { margin-left: auto; font-family: "JetBrains Mono", monospace; font-size: 18px; font-weight: 500; white-space: nowrap; }

.notice { border-color: #5a4a20; }

/* Tagesplan */
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.plan-today { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.plan-status { font-weight: 700; padding: 8px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.plan-status.good { color: var(--green2); border-color: #1d5a3f; }
.plan-status.warn { color: var(--amber); border-color: #5a4a20; }
.plan-status.bad { color: var(--red); border-color: #5a2a2d; }
.bar.small { height: 10px; }
.plan-meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pill.awaiting_owner { background: #1d2a38; color: #9ec5ff; }
.sign-hint { grid-column: 1 / -1; font-size: 13px; color: #9ec5ff; }
.sign-hint code { font-family: "JetBrains Mono", monospace; background: var(--bg2); padding: 1px 6px; border-radius: 6px; }

/* Coins */
.coins { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.coin-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.coin-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 14px; }
.coin-name { font-weight: 700; }
.coin-bal { margin-left: auto; text-align: right; }
.coin-bal b { display: block; font-size: 18px; }
.addr-box { display: flex; gap: 14px; align-items: center; }
.qr { width: 112px; height: 112px; border-radius: 10px; background: #fff; padding: 4px; flex: none; }
.addr { font-family: "JetBrains Mono", monospace; font-size: 12px; word-break: break-all; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.pending { color: var(--amber); font-size: 12px; }
.addr-col { flex: 1; min-width: 0; }
.addr-label { margin-bottom: 4px; }
.coin-btc { background: #f7931a; }
.coin-ltc { background: #345d9d; }
.coin-sol { background: #9945ff; }

/* Abbuchen */
#withdraw-form { display: grid; gap: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > label { min-width: 140px; }
.grow { flex: 1; }
.amount-row { display: flex; gap: 8px; }
.amount-row input { flex: 1; }
.amount-row select { width: 96px; }
.locked-overlay { text-align: center; padding: 24px 8px; color: var(--muted); }
.big-lock { font-size: 46px; opacity: .8; }

/* Listen */
.list { display: grid; gap: 10px; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.item .reason { grid-column: 1 / -1; color: var(--muted); font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.item .meta { grid-column: 1 / -1; font-size: 12px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pill { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; align-self: start; }
.pill.pending, .pill.sending { background: #3d2e0c; color: var(--amber); }
.pill.sent { background: #0d3523; color: var(--green2); }
.pill.rejected { background: #3d1517; color: var(--red); }
.pill.cancelled { background: #222b36; color: var(--muted); }
.plus { color: var(--green2); font-weight: 700; }
.minus { color: var(--red); font-weight: 700; }
.proof-thumb { max-width: 120px; max-height: 80px; border-radius: 6px; border: 1px solid var(--line); }

.foot { text-align: center; padding: 8px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1d2a38; border: 1px solid var(--line); padding: 10px 16px; border-radius: 10px; font-weight: 600; z-index: 10; max-width: calc(100% - 32px); }

@media (max-width: 560px) {
  .card { padding: 16px; }
  .lock { flex-wrap: wrap; }
  .countdown { margin-left: 0; width: 100%; font-size: 16px; }
  .addr-box { flex-direction: column; align-items: stretch; }
  .qr { align-self: center; }
}
