/* ================= RESET ================= */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: #0b0b0b;
  color: #d4af37;
  font-family: system-ui, -apple-system, sans-serif;
}

.view { display: none; }
.view.active { display: block; }

/* ================= LOGO ================= */
.logo {
  width: 160px;
  margin: 12px auto;
  display: block;
}

/* ================= FOOTER ================= */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  display: flex;
  background: #111;
  z-index: 10;
}

footer button {
  flex: 1;
  padding: 15px;
  border: none;
  background: #d4af37;
  font-weight: bold;
  font-size: 14px;
}

/* ================= UPLOAD ================= */
.upload-card {
  background: #111;
  margin: 30px auto 120px;
  padding: 25px;
  border-radius: 20px;
  max-width: 360px;
  text-align: center;
}

.file-btn {
  display: block;
  padding: 14px;
  margin: 15px 0;
  border-radius: 14px;
  background: #1e1e1e;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.primary {
  background: #d4af37;
  color: #000;
  font-weight: bold;
}

.wake.on { background: #2ecc71; }
.wake.off { background: #e74c3c; color: #fff; }

#totalWrap {
  background: #222;
  border-radius: 10px;
  overflow: hidden;
  margin: 12px 0;
}

#totalBar {
  height: 14px;
  width: 0%;
  background: #d4af37;
}

/* ================= GALLERY ================= */
#photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 12px;
  padding-bottom: 120px;
}

@media (min-width: 900px) {
  #photos { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: #111;
  border-radius: 18px;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

@media (min-width: 600px) {
  .card img { height: 220px; }
}
@media (min-width: 900px) {
  .card img { height: 260px; }
}

.download {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg,#d4af37,#f1c40f);
  color: #000;
  font-weight: bold;
  text-decoration: none;
}

.download::before {
  content: "⬇";
  margin-right: 6px;
}

/* ================= LOGIN ================= */
.login {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: radial-gradient(circle at top,#1a1a1a,#050505);
}

.login-box {
  background: #111;
  padding: 42px 30px;
  border-radius: 26px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.login-logo {
  width: 190px;
  margin-bottom: 20px;
}

.login-sub {
  margin: 10px 0 26px;
  color: #aaa;
}

/* INPUT WITH ICON + EYE */
.login-field {
  position: relative;
  margin-bottom: 28px;
}

.login-field input {
  width: 100%;
  background: #1c1c1c;
  border: 1px solid #222;
  border-radius: 20px;
  padding: 22px 56px;
  font-size: 20px;
  color: #fff;
  outline: none;
}

.login-field input:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212,175,55,.3);
}

.login-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.toggle-pass {
  all: unset;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  cursor: pointer;
}

.login-btn {
  width: 100%;
  padding: 18px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(135deg,#d4af37,#f1c40f);
  font-size: 19px;
  font-weight: bold;
}

/* ================= ADMIN ================= */
button.danger {
  background: #c0392b;
  color: #fff;
}
