:root {
  --bg: #0f1115;
  --card: #1a1d24;
  --accent: #6fb1fc;
  --accent-2: #ff6b6b;
  --text: #e8eaf0;
  --muted: #8b90a0;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

header.top {
  text-align: center;
  padding: 32px 16px 16px;
}

header.top h1 {
  font-size: 1.6rem;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

header.top p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.upload-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.upload-card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input[type="text"], input[type="password"] {
  background: #12141a;
  border: 1px solid #2a2e38;
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 1rem;
}

.file-picker {
  border: 2px dashed #2a2e38;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  position: relative;
}

.file-picker input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-picker.has-files {
  border-color: var(--accent);
  color: var(--text);
}

button.primary {
  background: var(--accent);
  color: #0f1115;
  border: none;
  padding: 13px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

button.primary:active { opacity: 0.85; }

.flash {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.92rem;
}
.flash.success { background: #163d2b; color: #7ee2a8; }
.flash.error { background: #3d1620; color: #ff9aa8; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.grid a { display: block; }

.grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background: #12141a;
}

.empty {
  color: var(--muted);
  text-align: center;
  padding: 40px 0;
}

.section-title {
  font-size: 1.05rem;
  margin: 28px 0 12px;
  color: var(--muted);
}

.pending-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.pending-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.pending-item .meta {
  flex: 1;
  min-width: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.pending-item .actions {
  display: flex;
  gap: 8px;
}

.btn-approve, .btn-reject {
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
}
.btn-approve { background: #1e5c3d; color: #a7f3c4; }
.btn-reject { background: #5c1e2a; color: #f7b8c2; }

.login-box {
  max-width: 340px;
  margin: 80px auto;
  background: var(--card);
  padding: 28px;
  border-radius: var(--radius);
}

a.logout { color: var(--muted); font-size: 0.85rem; }
a.logout:hover { color: var(--text); }

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
