:root {
  --bg: #0b0e11;
  --surface: #12161c;
  --border: #1e2329;
  --text: #eaecef;
  --muted: #848e9c;
  --accent: #f0b90b;
}

/* RESET */
* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0b0e11; /* nền fallback */
}

/* BODY FIX SAFE AREA */
body {
  min-height: 100dvh;
  color: var(--text);
  display: flex;
  justify-content: center;

  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

/* FORCE BACKGROUND FULL SCREEN (QUAN TRỌNG NHẤT) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #10151c, #0b0e11);
  z-index: -1;
}

/* APP CONTAINER */
.app {
  width: 100%;
  max-width: 760px;

  padding-left: 20px;
  padding-right: 20px;

  padding-top: calc(36px + env(safe-area-inset-top));
  padding-bottom: calc(48px + env(safe-area-inset-bottom));
}

/* HEADER */
.header {
  text-align: center;
  margin-bottom: 28px;
}

.logo {
  height: 22px;
  margin: 0 15px;
}

.title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: .6px;
  margin: 0 0 8px;
}

.title .brand {
  color: var(--accent);
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(240,185,11,.14);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
}


.subtitle {
  font-size: 9px;
  color: var(--muted);
  margin: 10px;
}

/* SECURITY */
.security-notice {
  margin: 26px 0;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(240,185,11,0.08),
    rgba(240,185,11,0.02)
  );
  border: 1px solid rgba(240,185,11,0.25);
}

.security-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

.security-text {
  font-size: 13px;
  line-height: 1.6;
  color: #cdd1d6;
}

/* CARD */
.card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 30px 60px rgba(0,0,0,.65);
}

/* FORM */
label {
  display: block;
  margin: 18px 0 8px;
  font-size: 13px;
  color: #cdd1d6;
}

input[type="text"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  background: #0b0e11;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
}

input::placeholder {
  color: #6f7785;
}

/* UPLOAD */
.upload {
  position: relative;
  height: 48px;
  border-radius: 12px;
  background: #0b0e11;
  border: 1px dashed #2b3139;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: #9aa4b2;
  cursor: pointer;
  transition: all .25s ease;
}

.upload:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(240,185,11,.25),
              0 8px 20px rgba(240,185,11,.15);
}

.upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-name .check {
  opacity: 0;
  transform: scale(0.6);
  color: #0ecb81;
  font-weight: 900;
  transition: .25s;
}

.upload.active {
  border-style: solid;
  border-color: var(--accent);
  background: linear-gradient(
    180deg,
    rgba(240,185,11,.08),
    rgba(240,185,11,.02)
  );
}

.upload.active .file-name {
  color: #fff;
}

.upload.active .check {
  opacity: 1;
  transform: scale(1);
}

.upload .remove {
  background: none;
  border: none;
  color: #848e9c;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: .2s;
}

.upload.active .remove {
  opacity: 1;
  transform: scale(1);
}

.upload .remove:hover {
  color: #f6465d;
}

/* BUTTON */
.btn {
  width: 100%;
  height: 52px;
  margin-top: 26px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg,#f0b90b,#f8d33a);
  color: #0b0e11;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(240,185,11,.45);
}

.btn:active {
  transform: scale(.98);
}

/* FOOTER */
.footer {
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
  color: #6f7785;
}

/* MOBILE */
@media (max-width: 480px) {
  .title { font-size: 26px; }
  .card { padding: 26px 20px 30px; }
}