:root {
  --bg: #0f1220;
  --card: #181c2e;
  --card2: #20263f;
  --line: #2c334f;
  --text: #eef1fb;
  --muted: #9aa3c4;
  --accent: #6c8cff;
  --accent2: #8a6cff;
  --ok: #34d399;
  --err: #ff7a7a;
  --radius: 16px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* beat element rules like .preview{display:inline-block} */
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(138,108,255,.25), transparent 60%),
    radial-gradient(700px 500px at -10% 10%, rgba(108,140,255,.20), transparent 55%),
    var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 560px; margin: 0 auto; padding: 20px 18px 40px; }

.top { display: flex; align-items: center; justify-content: space-between; margin: 8px 2px 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .2px; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 0 18px rgba(124,140,255,.7); }

.langswitch { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langswitch button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600;
  font-size: 13px; padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.langswitch button.active { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }

.card {
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
h1 { margin: 0 0 6px; font-size: 26px; }
.intro { margin: 0 0 20px; color: var(--muted); }
.intro b { color: var(--text); }

.field { display: block; margin-bottom: 16px; }
.label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.opt { color: var(--muted); font-style: normal; font-weight: 500; font-size: 12px; opacity: .8; }

textarea, input[type="email"] {
  width: 100%; color: var(--text); background: #12162a; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 13px; font: inherit; resize: vertical;
  transition: border-color .15s, box-shadow .15s;
}
textarea:focus, input[type="email"]:focus {
  outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108,140,255,.22);
}

.filebtn { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; color: var(--muted);
  background: #12162a; border: 1px dashed var(--line); border-radius: 12px; padding: 11px 14px;
  font-size: 14px; font-weight: 600; transition: border-color .15s, color .15s; }
.filebtn:hover { border-color: var(--accent); color: var(--text); }

.preview { position: relative; margin-top: 12px; display: inline-block; }
.preview img { max-width: 160px; max-height: 160px; border-radius: 10px; border: 1px solid var(--line); display: block; }
.remove { position: absolute; top: -8px; right: -8px; background: var(--err); color: #201014; border: 0;
  font-weight: 700; font-size: 12px; padding: 4px 9px; border-radius: 999px; cursor: pointer; }

#hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn { width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 16px;
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2));
  padding: 14px 16px; border-radius: 12px; transition: transform .06s, filter .15s; }
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: default; filter: none; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); filter: none; }

.err { color: var(--err); font-size: 14px; margin: 2px 0 12px; }
.privacy { color: var(--muted); font-size: 12px; text-align: center; margin: 12px 2px 0; }

.direct { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
.direct p { color: var(--muted); font-size: 14px; margin: 0 0 12px; }

.success { text-align: center; padding: 22px 8px 8px; }
.success .check { width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; font-size: 30px; color: #04120c;
  background: var(--ok); box-shadow: 0 0 26px rgba(52,211,153,.55); }
.success h2 { margin: 0 0 6px; font-size: 22px; }
.success p { color: var(--muted); margin: 0 0 20px; }

.foot { text-align: center; margin-top: 22px; color: var(--muted); font-size: 13px; display: flex; gap: 10px; justify-content: center; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
