/* MEOW menu style: dark plum, lavender outlines, pink accent, chunky sticker cards with a hard shadow. */
:root {
  --bg: #160F22;
  --panel: #241935;
  --card: #31234A;
  --line: #C7B3FF;
  --pink: #F2B8E6;
  --pink-lip: #B676A8;
  --text: #F6EEFF;
  --muted: #B9A9D9;
  --shadow: #0B0713;
  --ok: #9FE6C0;
  --warn: #FFD59A;
  --bad: #FF9FB2;
  --r: 22px;
  --head: "M PLUS Rounded 1c", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--text); background: var(--bg);
  font: 16px/1.55 var(--body);
  background-image: radial-gradient(circle at 15% 0%, #2c1d45 0, transparent 45%), radial-gradient(circle at 100% 100%, #2a1838 0, transparent 40%);
}
/* faint paw prints scattered behind everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background: url(/paw.svg) 0 0 / 90px 90px, url(/paw.svg) 45px 45px / 60px 60px;
}
a { color: var(--pink); }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h2 { font-size: 1.35rem; display: flex; align-items: center; gap: .45em; }
h3 { font-size: 1.05rem; margin-top: 1.2em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }

/* ---------- header / footer */
.top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  max-width: 1040px; margin: 0 auto; padding: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 1.3rem var(--head); }
.brand b { color: var(--pink); }
.brand-paw { width: 38px; height: 38px; }
nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.navlink { color: var(--text); font-weight: 800; text-decoration: none; padding: 6px 10px; border-radius: 999px; }
.navlink:hover { background: var(--card); }
.inline { display: inline; margin: 0; }
main { max-width: 1040px; margin: 0 auto; padding: 8px 16px 40px; display: grid; gap: 26px; }
.foot { text-align: center; color: var(--muted); padding: 24px 16px 40px; font-size: .9rem; }
.foot-paw { width: 18px; height: 18px; vertical-align: -3px; }

/* ---------- sticker cards */
.card, .panel {
  background: var(--card); border: 3px solid var(--line); border-radius: var(--r);
  box-shadow: 0 8px 0 var(--shadow); padding: 22px;
}
.panel { background: var(--panel); position: relative; z-index: 1; }
.narrow { max-width: 460px; margin: 0 auto; width: 100%; }

/* cat ears on the main panel: two rotated squares tucked behind its top edge */
.eared { position: relative; margin-top: 26px; }
.eared::before, .eared::after {
  content: ""; position: absolute; top: -20px; width: 56px; height: 56px; z-index: 0;
  background: var(--panel); border: 3px solid var(--line); border-radius: 10px 6px 6px 6px;
  transform: rotate(45deg);
}
.eared::before { left: 38px; }
.eared::after { right: 38px; }
.eared::before, .eared::after { box-shadow: inset 10px 10px 0 -2px var(--pink); }

.hero { text-align: center; padding: 42px 22px 34px; }
.kicker { font: 800 .85rem var(--head); text-transform: uppercase; letter-spacing: .14em; color: var(--pink); margin: 0 0 .4em; }
.lead { font-size: 1.1rem; max-width: 640px; margin: 0 auto 1.4em; color: var(--muted); }
.row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- tiers */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.tier { display: flex; flex-direction: column; }
.tier-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.price { font: 800 1.9rem var(--head); color: var(--pink); }
.price small { font-size: .8rem; color: var(--muted); font-weight: 500; }
.tier-group { border-color: var(--pink); }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.perks li { display: flex; gap: 8px; align-items: flex-start; }
.li-paw { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.h-paw { width: 28px; height: 28px; }
.steps { padding-left: 1.3em; display: grid; gap: 6px; margin: 0; }
.note { background: var(--panel); }
.warn { border-color: var(--warn); }

/* ---------- badges / statuses */
.badge {
  display: inline-block; font: 800 .8rem var(--head); letter-spacing: .05em; padding: 4px 12px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--panel); color: var(--line); white-space: nowrap;
}
.badge-vip { color: var(--line); }
.badge-poster { color: #1a1027; background: var(--line); }
.badge-group { color: #1a1027; background: var(--pink); border-color: var(--pink); }
.badge-none { color: var(--muted); border-color: var(--muted); }
.status { display: inline-block; font-weight: 800; font-size: .85rem; padding: 2px 10px; border-radius: 999px; background: var(--panel); border: 2px solid currentColor; }
.status-approved { color: var(--ok); }
.status-pending { color: var(--warn); }
.status-rejected, .status-retired { color: var(--bad); }
.status-draft, .status-none { color: var(--muted); }

/* ---------- buttons: pill with a darker lip underneath */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none; text-align: center;
  font: 800 1rem var(--head); color: #2a1435; background: var(--pink);
  border: 3px solid var(--pink); border-radius: 999px; padding: 10px 24px;
  box-shadow: 0 5px 0 var(--pink-lip); transition: transform .08s, box-shadow .08s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--pink-lip); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid var(--line); outline-offset: 2px; }
.btn-big { font-size: 1.15rem; padding: 13px 30px; }
.btn-small { font-size: .85rem; padding: 6px 14px; box-shadow: 0 4px 0 var(--pink-lip); }
.btn-ghost { background: var(--panel); color: var(--line); border-color: var(--line); box-shadow: 0 5px 0 var(--shadow); }
.btn-ghost:active { box-shadow: 0 1px 0 var(--shadow); }
.btn-danger { background: var(--bad); border-color: var(--bad); box-shadow: 0 4px 0 #a5566a; }

/* ---------- forms */
.form { display: grid; gap: 14px; margin: 12px 0; }
label { display: grid; gap: 6px; font-weight: 800; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
input, select, textarea {
  width: 100%; font: 600 1rem var(--body); color: var(--text); background: var(--bg);
  border: 2px solid var(--line); border-radius: 14px; padding: 10px 14px;
}
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--pink); }
input[type=file] { border-style: dashed; padding: 12px; }
input[type=file]::file-selector-button {
  font: 800 .85rem var(--head); color: #2a1435; background: var(--line); border: 0; border-radius: 999px; padding: 6px 14px; margin-right: 10px; cursor: pointer;
}
textarea { resize: vertical; font-weight: 600; }
.row-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0 0; }
.row-form input:not([type=checkbox]), .row-form select { flex: 1 1 200px; width: auto; }
.slot { display: flex; align-items: center; gap: 6px; }
.slot input { width: 80px !important; flex: none !important; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }

/* ---------- flash */
.flash { border-radius: var(--r); padding: 12px 18px; font-weight: 800; border: 3px solid; box-shadow: 0 6px 0 var(--shadow); background: var(--panel); }
.flash-ok { border-color: var(--ok); color: var(--ok); }
.flash-error { border-color: var(--bad); color: var(--bad); }

/* ---------- /me */
.profile { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 34px; }
.profile h1 { margin-bottom: .2em; font-size: 1.8rem; }
.avatar { width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--pink); background: var(--card); }
.locked { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--panel); border: 2px dashed var(--line); border-radius: 16px; padding: 14px; }
.locked p { margin: 0; flex: 1 1 220px; }
.lock-paw { width: 40px; height: 40px; opacity: .7; }
.posters { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.poster-item { display: grid; gap: 8px; }
.thumb { width: 100%; max-width: 150px; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 14px; border: 3px solid var(--line); background: var(--bg); box-shadow: 0 5px 0 var(--shadow); }
.logo { width: 110px; height: 110px; border-radius: 50%; border: 3px solid var(--pink); object-fit: cover; background: var(--bg); }
.logo-empty { display: grid; place-items: center; color: var(--muted); font-size: .8rem; }

/* ---------- admin */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 10px 0 14px; }
.stat { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 12px; text-align: center; }
.stat b { display: block; font: 800 2rem var(--head); color: var(--pink); }
.stat span { color: var(--muted); font-weight: 800; }
.log { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.log li { background: var(--card); border-radius: 12px; padding: 8px 12px; word-break: break-word; }
.section-title { margin: 0 0 14px; }
.admin-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.admin-item { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.admin-item .thumb { width: 120px; }
.admin-body { flex: 1 1 260px; display: grid; gap: 6px; min-width: 0; word-break: break-word; }
.lists { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 4px 0; font-size: .9rem; }
.lists dt { font-weight: 800; color: var(--line); }
.lists dd { margin: 0; }
details summary { cursor: pointer; font-weight: 800; color: var(--muted); margin: 14px 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 2px solid var(--panel); vertical-align: top; }
th { font-family: var(--head); color: var(--line); }

@media (max-width: 600px) {
  .card, .panel { padding: 16px; }
  .eared::before { left: 18px; } .eared::after { right: 18px; }
  .eared::before, .eared::after { width: 44px; height: 44px; top: -16px; }
  .btn-big { width: 100%; }
  th:nth-child(3), td:nth-child(3) { display: none; }
}
