:root {
  --paper: #f7f2e8;
  --ink: #15100a;
  --muted: #6d5f4d;
  --line: #2a2116;
  --gold: #d59d21;
  --blue: #2d7f92;
  --panel: rgba(255, 252, 244, 0.88);
  --shadow: rgba(64, 44, 20, 0.12);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  background:
    linear-gradient(45deg, rgba(0,0,0,.025) 25%, transparent 25%) 0 0 / 12px 12px,
    linear-gradient(-45deg, rgba(0,0,0,.02) 25%, transparent 25%) 0 0 / 12px 12px,
    var(--paper);
}
a { color: var(--blue); font-weight: 700; text-decoration: none; }
button, input, select { font: inherit; }
.wrap {
  width: min(900px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 42px;
  text-align: center;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin: 4px 0 26px;
  font-family: "Comic Sans MS", "Trebuchet MS", cursive;
  font-size: clamp(52px, 10vw, 88px);
  line-height: 1;
  font-weight: 900;
  color: var(--ink);
}
.btc-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 4px solid var(--line);
  border-radius: 50%;
  background: linear-gradient(145deg, #ffe28a, var(--gold));
  color: #2b1b04;
  font-family: Arial, sans-serif;
  font-size: 34px;
  font-weight: 900;
}
.lead {
  margin: 0 auto 28px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
}
.lead span {
  display: inline-block;
  margin-top: 8px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
}
.panel {
  width: min(560px, 100%);
  margin: 24px auto;
  padding: 20px;
  border: 2px solid var(--blue);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 16px 40px var(--shadow);
}
.panel.wide { width: min(860px, 100%); }
.locked-panel {
  border-color: var(--line);
  background:
    linear-gradient(135deg, rgba(213,157,33,.2), transparent 45%),
    rgba(255,252,244,.9);
}
.field {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  text-align: left;
  font-weight: 700;
}
.input {
  width: 100%;
  min-height: 42px;
  border: 2px solid rgba(42,33,22,.2);
  border-radius: 8px;
  background: rgba(255,255,255,.74);
  padding: 0 12px;
}
.hidden-file { display: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff8e6;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}
.btn.gold { background: linear-gradient(#ffe08a, var(--gold)); }
.btn.dark { background: #201914; color: #fff; }
.btn.danger { background: #b93333; color: #fff; }
.upload-trigger {
  min-width: 230px;
  min-height: 74px;
  margin: 10px auto;
  font-size: 24px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.upload-trigger:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 28px rgba(64,44,20,.18);
}
.modal-panel {
  margin: 16px 0;
  padding: 16px;
  border: 2px solid rgba(42,33,22,.16);
  border-radius: 16px;
  background: rgba(255,255,255,.55);
}
.pop-in {
  animation: popIn .22s ease both;
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.button-line {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.rows {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  text-align: left;
}
.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(42,33,22,.16);
  border-radius: 12px;
  background: rgba(255,255,255,.54);
}
.row.deleting {
  animation: tossToTrash .52s ease forwards;
  transform-origin: right center;
}
.delete-btn {
  gap: 7px;
  overflow: hidden;
}
.trash-can {
  display: inline-block;
  transform: translateY(1px);
}
.row.deleting .trash-can {
  animation: trashBounce .42s ease both;
}
@keyframes tossToTrash {
  0% { opacity: 1; transform: translateX(0) rotate(0deg) scale(1); }
  45% { opacity: .85; transform: translateX(24px) rotate(3deg) scale(.98); }
  100% { opacity: 0; transform: translateX(130px) translateY(20px) rotate(12deg) scale(.72); }
}
@keyframes trashBounce {
  0%, 100% { transform: translateY(1px) scale(1); }
  45% { transform: translateY(-5px) scale(1.22); }
}
.row small, .fine, .status {
  color: var(--muted);
  font-size: 13px;
}
.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 15px;
}
.admin-panel h3 {
  margin: 24px 0 8px;
  text-align: left;
}
.admin-title {
  animation: adminPulse .38s ease both;
}
.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 12px 0 18px;
}
.admin-tab {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 2px solid rgba(42,33,22,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.5);
}
.admin-tab.active {
  border-color: var(--line);
  background: linear-gradient(#ffe08a, var(--gold));
  color: var(--ink);
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.stat-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 2px solid rgba(42,33,22,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.55);
}
.stat-card span {
  overflow-wrap: anywhere;
  font-size: 20px;
  font-weight: 900;
}
.admin-user-row {
  align-items: center;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
@keyframes adminPulse {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.donate-panel h2 {
  margin-top: 0;
}
.file-preview-card h2 {
  margin-top: 0;
}
.file-link-text {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-weight: 700;
}
.file-outline {
  display: grid;
  place-items: center;
  margin: 16px 0;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.5);
}
.file-preview-img {
  display: block;
  max-width: 100%;
  max-height: 560px;
  border-radius: 10px;
  object-fit: contain;
}
.donate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.donate-card {
  padding: 16px;
  border: 2px solid rgba(42,33,22,.16);
  border-radius: 16px;
  background: rgba(255,255,255,.55);
}
.coin-logo {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 10px;
  border: 3px solid var(--line);
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 42px;
  font-weight: 900;
}
.btc-logo {
  background: linear-gradient(145deg, #ffe28a, var(--gold));
  color: #2b1b04;
}
.ltc-logo {
  background: linear-gradient(145deg, #f4f4f4, #a6a9b0);
  color: #2d3036;
}
.address {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}
@media (max-width: 680px) {
  .logo { flex-direction: column; gap: 6px; }
  .row { grid-template-columns: 1fr; }
  .donate-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .admin-actions { justify-content: flex-start; }
}
