:root {
  --bg: #0b0b0d;
  --card: #141417;
  --line: #26262b;
  --text: #f4f4f5;
  --mute: #a1a1aa;
  --accent: #00e0c0;
  --accent-ink: #00231d;
  --warn: #f5b84a;
  --bad: #ff6b6b;
  --radius: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* form { display: grid } altfel ar anula atributul hidden */
html { color-scheme: dark; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { text-decoration: none; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.1; margin: 0 0 .5rem; letter-spacing: -.02em; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.brand { color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.brand b { color: var(--accent); }
.wrap { width: min(720px, 100% - 32px); margin: 28px auto 48px; display: grid; gap: 16px; }
.foot { width: min(720px, 100% - 32px); margin: 0 auto 40px; color: var(--mute); font-size: .9rem; display: grid; gap: 8px; }
.foot a { color: var(--mute); }

.hero { padding: 24px 0 8px; }
.lead { color: var(--mute); font-size: 1.1rem; max-width: 52ch; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .6rem; }
.plain { margin: 0; padding-left: 1.1rem; display: grid; gap: .5rem; }
.legal h2 { margin-top: 1.6rem; }
.legal ul { padding-left: 1.1rem; display: grid; gap: .4rem; }

.btn { font: inherit; cursor: pointer; border-radius: 999px; padding: 10px 20px; border: 1px solid var(--line); background: transparent; color: var(--text); text-decoration: none; display: inline-block; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.btn.primary:disabled { background: #1c3a36; color: #5f8a84; border-color: #1c3a36; cursor: not-allowed; }
.btn.big { padding: 14px 28px; font-size: 1.05rem; }
.btn.ghost:hover { border-color: var(--accent); }
.btn:focus-visible, .link:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .drop:focus-visible, .switch input:focus-visible + .slider {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.link { font: inherit; background: none; border: 0; color: var(--mute); text-decoration: underline; cursor: pointer; padding: 0; }
.link:hover { color: var(--text); }

.hint { color: var(--mute); font-size: .88rem; }
.indent { margin: -2px 0 10px 30px; }
.label { color: var(--mute); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.who { font-weight: 600; }
.account { display: flex; gap: 14px; align-items: center; }
.account img { border-radius: 50%; object-fit: cover; background: #222; }

.notice { border-radius: 10px; padding: 12px 14px; font-size: .95rem; }
.notice.warn { background: #2a2210; border: 1px solid #5c4916; color: #ffe1a1; }
.notice.info { background: #0f2623; border: 1px solid #1d4a43; color: #b6f3e8; margin-top: 10px; }
.notice.bad { background: #2b1515; border: 1px solid #6a2b2b; color: #ffc9c9; }

form { display: grid; gap: 18px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
legend .hint { font-weight: 400; margin-left: 6px; }
.field { display: grid; gap: 6px; }
label { font-weight: 600; }
label .count { float: right; color: var(--mute); font-weight: 400; font-size: .85rem; }
.req { color: var(--bad); }
input[type=text], textarea, select {
  width: 100%; font: inherit; color: var(--text); background: #0f0f12; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
textarea { resize: vertical; }
select option:disabled { color: #666; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 400; padding: 4px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.check input:disabled + span { color: #6b6b73; }
.check input:disabled { cursor: not-allowed; }

.drop { display: flex; align-items: center; gap: 12px; border: 1px dashed #3a3a42; border-radius: 12px; padding: 14px; }
.drop.over { border-color: var(--accent); background: #0f1f1d; }
.thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.thumbs li { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #0f0f12; aspect-ratio: 4 / 5; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs .tag { position: absolute; left: 6px; bottom: 6px; background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.thumbs .state { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.65); font-size: .72rem; padding: 3px 6px; text-align: center; }
.thumbs .state.err { background: rgba(120,20,20,.85); }
.thumbs .tools { position: absolute; right: 4px; top: 4px; display: flex; gap: 3px; }
.thumbs .tools button { background: rgba(0,0,0,.7); color: #fff; border: 0; border-radius: 6px; width: 26px; height: 26px; cursor: pointer; font-size: .9rem; line-height: 1; }
.thumbs .tools button:hover { background: #000; }

.switch-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 16px; }
.strong { font-weight: 600; }
.switch { position: relative; flex: 0 0 auto; width: 46px; height: 26px; margin-top: 2px; }
.switch input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.slider { position: absolute; inset: 0; background: #2a2a30; border-radius: 999px; transition: background .15s; pointer-events: none; }
.slider::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::after { transform: translateX(20px); }
.disclose-box { background: #101013; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }

.declaration { margin: 0; font-size: .92rem; color: var(--mute); }
#post-wrap { display: inline-block; justify-self: start; }

@media (max-width: 520px) {
  .card { padding: 16px; }
  .switch-row { gap: 10px; }
}
