@font-face { font-family: "Tomorrow"; font-weight: 400; font-display: swap;
  src: url("https://fonts.gstatic.com/s/tomorrow/v19/WBLmrETNbFtZCeGqgRXSe2A.woff2") format("woff2"); }
@font-face { font-family: "Tomorrow"; font-weight: 500; font-display: swap;
  src: url("https://fonts.gstatic.com/s/tomorrow/v19/WBLhrETNbFtZCeGqgR0hWHXPDMU.woff2") format("woff2"); }
@font-face { font-family: "Tomorrow"; font-weight: 600; font-display: swap;
  src: url("https://fonts.gstatic.com/s/tomorrow/v19/WBLhrETNbFtZCeGqgR0NX3XPDMU.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: #9d0e7866; color: #e9d9ff; }

/* ── Layout ──────────────────────────────────── */
body {
  font-family: "Tomorrow", sans-serif;
  background: #0e0b12;
  color: #e9d9ff;
  -webkit-font-smoothing: antialiased;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body.open {
  height: auto;
  min-height: 100dvh;
  overflow-y: auto;
  justify-content: flex-start;
  padding: 40px 20px 40px;
}

/* ── Animations ──────────────────────────────── */
@keyframes fadeUp  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeOut { to   { opacity: 0; transform: translateY(-8px); } }

/* ── Typography ──────────────────────────────── */
h1 {
  font-size: 30px;
  font-weight: 600;
  color: #a77fdb;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  animation: fadeUp 0.5s ease 0.05s backwards;
}

.sub {
  font-size: 14px;
  font-weight: 500;
  color: rgba(233, 217, 255, 0.5);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  animation: fadeUp 0.5s ease 0.1s backwards;
}

/* ── Login card ──────────────────────────────── */
.card {
  background: rgba(41, 32, 54, 0.3);
  border: 2px solid #292036;
  border-radius: 20px;
  padding: 16px 20px;
  width: calc(100% - 40px);
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeUp 0.5s ease 0.15s backwards;
}

/* ── Inputs ──────────────────────────────────── */
.row { display: flex; align-items: center; gap: 8px; }

input[type="password"],
input[type="text"] {
  height: 42px;
  padding: 0 12px;
  padding-right: 50px; /* room for password manager icon */
  border-radius: 12px;
  border: none;
  background: #292036;
  color: #e9d9ff;
  font-family: "Tomorrow", sans-serif;
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  outline: none;
  transition: background 0.15s;
}
input::placeholder { color: rgba(233, 217, 255, 0.35); }
input:focus { background: #302048; }

/* ── Buttons ─────────────────────────────────── */
.ibtn {
  width: 42px; height: 42px; border-radius: 12px; border: none;
  background: #292036; color: #a77fdb; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.15s;
}
.ibtn:hover { background: #342850; }
.ibtn img { width: 18px; height: 18px; }

.pbtn {
  height: 42px; border-radius: 12px; border: none;
  background: #292036; color: #a77fdb;
  font-family: "Tomorrow", sans-serif; font-size: 14px;
  font-weight: 600; letter-spacing: 0.04em; cursor: pointer;
  width: 100%; transition: background 0.15s, transform 0.15s;
}
.pbtn:hover  { background: #342850; transform: scale(1.01); }
.pbtn:active { transform: scale(0.99); }

/* ── File list ───────────────────────────────── */
#list-wrap {
  display: none;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 520px;
}

.sec-label {
  font-size: 11px; font-weight: 500;
  color: rgba(167, 127, 219, 0.5);
  letter-spacing: 0.1em; text-transform: uppercase;
}

.file-card {
  background: rgba(41, 32, 54, 0.3);
  border: 2px solid #292036;
  border-radius: 20px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-row {
  display: flex; align-items: center;
  justify-content: space-between;
  background: #292036; border-radius: 12px;
  padding: 10px 14px; gap: 12px;
  transition: background 0.15s;
}
.file-row:hover { background: #302048; }

.file-name {
  color: #dabfff; font-size: 13px; font-weight: 500;
  word-break: break-all; flex: 1;
}

.copy-btn {
  height: 30px; padding: 0 14px; border-radius: 8px; border: none;
  background: rgba(167, 127, 219, 0.15); color: #a77fdb;
  font-family: "Tomorrow", sans-serif; font-size: 12px; font-weight: 600;
  cursor: pointer; flex-shrink: 0; transition: background 0.15s;
}
.copy-btn:hover { background: rgba(167, 127, 219, 0.28); }

/* ── Footer ──────────────────────────────────── */
.ft {
  display: none;
  padding-top: 32px; font-size: 12px; font-weight: 500;
  color: rgba(233, 217, 255, 0.5); align-items: center; gap: 8px;
}
body.open .ft { display: flex; margin-top: auto; }
.ftd { width: 4px; height: 4px; border-radius: 50%; background: rgba(233, 217, 255, 0.5); }
