/* --- App Shell --- */
:root{
  --bg:#0c0c0d;
  --panel:#131316;
  --panel-2:#1a1a1f;
  --text:#e9e9ee;
  --muted:#b6b6c6;
  --accent:#ff2d6d;
  --accent-2:#ff5c93;
  --ring:rgba(255,45,109,.35);
  --radius:16px;
  --shadow:0 10px 30px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji",sans-serif;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}

.page{
  max-width:720px;
  margin:0 auto;
  padding:24px 18px 40px;
}

h1,h2{margin:0 0 10px}
h2{font-size:28px; letter-spacing:.2px}
p{margin:8px 0 18px; color:var(--muted); line-height:1.45}

/* --- Card --- */
.card, form{
  background:linear-gradient(180deg,var(--panel),var(--panel-2));
  border-radius:var(--radius);
  padding:22px 18px;
  box-shadow:var(--shadow);
  border:1px solid rgba(255,255,255,.05);
}

/* --- Buttons --- */
.button{
  display:inline-flex; align-items:center; justify-content:center;
  gap:.5rem;
  padding:14px 18px;
  width:100%;
  border-radius:12px;
  border:1px solid transparent;
  background:linear-gradient(180deg,var(--accent),var(--accent-2));
  color:#fff; font-weight:700; letter-spacing:.2px;
  cursor:pointer;
  transition:transform .05s ease, box-shadow .2s ease, filter .15s ease;
  box-shadow:0 10px 18px var(--ring);
  text-decoration:none;
}
.button:active{ transform:translateY(1px); }
.button.outline{
  background:transparent; color:#fff;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:none;
}
.back-link{
  display:inline-block; margin-top:14px; color:#8bd0ff; text-decoration:none;
}
.back-link:hover{ text-decoration:underline }

/* --- Inputs (select, text etc.) --- */
.file-input, select{
  width:100%;
  padding:12px 14px;
  background:#101014;
  color:var(--text);
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  outline:none;
}
select{appearance:none; -webkit-appearance:none}

/* --- Fully custom file picker --- */
.visually-hidden{
  position:absolute !important;
  width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.file-row{
  display:flex; align-items:center; gap:10px; width:100%; margin:10px 0 14px;
}
.file-row .button{ width:auto; padding:12px 16px }
.file-name{
  flex:1; min-height:44px; display:flex; align-items:center;
  padding:10px 12px; border-radius:12px;
  background:#101014; color:var(--muted);
  border:1px solid rgba(255,255,255,.12);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

/* --- Layout helpers on narrow phones --- */
@media (max-width:420px){
  .page{ padding:20px 14px 32px; }
  h2{ font-size:24px; }
}