@font-face {
  font-family: 'AzeA V2';
  src: url('/fonts/AzeAV2.ttf') format('truetype');
  font-display: swap;
}
:root { --display-font: 'Bangers', cursive; --body-font: 'Baloo 2', sans-serif; }

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: #FFF8EC;
  font-family: var(--body-font);
  color: #1B1B2F;
}
#app { min-height: 100vh; display: flex; flex-direction: column; }
#app > * { width: 100%; }
#app > .footer { margin-top: auto; }
.footer {
  border-top: 5px solid #1B1B2F; background: #FFF8EC;
  text-align: center; padding: 18px 24px; font-size: 13.5px; font-weight: 700;
  color: #4a4a5c; letter-spacing: 0.3px;
}
::selection { background: #FFC93C; color: #1B1B2F; }
input, textarea { font-family: var(--body-font); color: #1B1B2F; }
.bangers { font-family: var(--display-font); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: #FFF8EC; border-bottom: 5px solid #1B1B2F;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px; flex-wrap: wrap; gap: 14px;
}
.nav-logo { display: flex; align-items: baseline; gap: 2px; cursor: pointer; }
.nav-logo-img {
  display: block; height: 52px; width: auto; transition: transform .12s;
}
.nav-logo-img:hover { transform: rotate(-2deg) scale(1.04); }
.logo-option { display: flex; align-items: center; }
.nav-logo span { font-family: var(--display-font); font-size: 32px; letter-spacing: 1px; display: inline-block; }
.nav-logo .azea { color: #EF3E36; transform: rotate(-3deg); }
.nav-logo .comix { color: #2E86DE; transform: rotate(2deg); }
.nav-links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.nav-link {
  font-weight: 700; font-size: 15px; text-transform: uppercase;
  letter-spacing: 0.5px; cursor: pointer;
}
.nav-link:hover { color: #EF3E36; }
.nav-admin {
  font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px;
  cursor: pointer; background: #1B1B2F; color: #FFF8EC; padding: 9px 18px; border-radius: 999px;
}
.nav-admin:hover { background: #EF3E36; }

/* ---------- hero ---------- */
.hero {
  position: relative; padding: 56px 32px 44px; background: #2E86DE;
  background-image: radial-gradient(circle, rgba(255,255,255,0.35) 1.6px, transparent 1.6px);
  background-size: 14px 14px;
  border-bottom: 5px solid #1B1B2F; overflow: hidden;
}
.hero-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.hero-copy { flex: 1; min-width: 280px; }
.hero-title {
  font-family: var(--display-font); font-size: clamp(40px, 6vw, 72px); line-height: 1;
  color: #FFF8EC; text-shadow: 4px 4px 0 #1B1B2F; transform: rotate(-1.5deg);
}
.hero-sub { margin-top: 18px; font-size: 19px; font-weight: 600; color: #FFF8EC; max-width: 440px; }
.hero-art {
  width: 260px; height: 320px; border: 5px solid #1B1B2F; border-radius: 14px;
  box-shadow: 9px 9px 0 #1B1B2F; background: #fff; transform: rotate(3deg); flex-shrink: 0;
}

/* ---------- layout ---------- */
.container { max-width: 1100px; margin: 0 auto; padding: 48px 32px 64px; }
.section-title { font-family: var(--display-font); font-size: 34px; margin-bottom: 24px; transform: rotate(-0.5deg); }

/* ---------- series grid ---------- */
.series-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.series-card {
  background: #fff; border: 4px solid #1B1B2F; border-radius: 14px;
  cursor: pointer; overflow: hidden; transition: transform .15s;
}
.series-card:hover { transform: translate(-3px, -3px); }
.series-cover { width: 100%; aspect-ratio: 4/3; border-bottom: 4px solid #1B1B2F; }
.series-body { padding: 16px 18px 18px; }
.series-title { font-family: var(--display-font); font-size: 24px; line-height: 1.05; }
.series-desc { margin-top: 6px; font-size: 14.5px; font-weight: 500; color: #4a4a5c; line-height: 1.4; }
.series-count {
  display: inline-flex; align-items: center; height: 28px; font-size: 12.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px; background: #FFF8EC;
  border: 2px solid #1B1B2F; border-radius: 999px; padding: 0 12px;
}

/* ---------- series page ---------- */
.series-hero { padding: 40px 32px; border-bottom: 5px solid #1B1B2F; }
.series-hero-inner { max-width: 1100px; margin: 0 auto; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.series-hero-cover {
  width: 180px; height: 180px; border: 5px solid #1B1B2F; border-radius: 12px;
  box-shadow: 7px 7px 0 #1B1B2F; flex-shrink: 0; background: #fff;
}
.series-hero-title { font-family: var(--display-font); font-size: 42px; color: #FFF8EC; text-shadow: 3px 3px 0 #1B1B2F; line-height: 1.05; }
.series-hero-desc { margin-top: 10px; font-size: 16.5px; font-weight: 600; color: #FFF8EC; max-width: 560px; }
.issues-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.issue-card {
  background: #fff; border: 4px solid #1B1B2F; border-radius: 12px;
  box-shadow: 6px 6px 0 #1B1B2F; cursor: pointer; overflow: hidden; transition: transform .15s;
}
.issue-card:hover { transform: translate(-3px, -3px); }
.issue-cover { width: 100%; aspect-ratio: 3/4; border-bottom: 4px solid #1B1B2F; }
.issue-body { padding: 12px 14px 16px; }
.issue-title { font-family: var(--display-font); font-size: 19px; }
.issue-pages { margin-top: 4px; font-size: 13px; font-weight: 700; color: #4a4a5c; }

/* ---------- reader ---------- */
.reader {
  background: #1B1B2F; min-height: calc(100vh - 76px);
  padding: 24px 20px 40px; display: flex; flex-direction: column; align-items: center;
}
.reader-bar {
  width: 100%; max-width: 760px; display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 18px; gap: 10px;
}
.reader-back {
  font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px;
  color: #FFF8EC; cursor: pointer; background: #EF3E36; border-radius: 999px; padding: 9px 18px;
  white-space: nowrap;
}
.reader-title { font-family: var(--display-font); font-size: 22px; color: #FFF8EC; text-align: center; }
.reader-count { font-weight: 700; font-size: 14px; color: #FFF8EC; min-width: 60px; text-align: right; }
.reader-main { width: 100%; max-width: 760px; display: flex; align-items: center; gap: 14px; }
.reader-arrow {
  font-family: var(--display-font); font-size: 40px; color: #FFF8EC;
  cursor: pointer; user-select: none; padding: 0 6px;
}
.reader-arrow:hover { color: #FFC93C; }
.reader-page {
  flex: 1; aspect-ratio: 3/4; border: 5px solid #1B1B2F; border-radius: 10px;
  box-shadow: 0 10px 0 rgba(0,0,0,0.3); background: #fff;
}
.reader-thumbs { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; justify-content: center; max-width: 760px; }
.reader-thumb {
  width: 34px; height: 34px; border-radius: 6px; background: #FFF8EC; color: #1B1B2F;
  font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.reader-thumb.active { background: #FFC93C; }

/* ---------- characters ---------- */
.char-group { margin-bottom: 44px; }
.char-group-title {
  font-family: var(--display-font); font-size: 27px; margin-bottom: 18px;
  transform: rotate(-0.5deg); cursor: pointer; display: inline-block;
}
.char-group-title:hover { text-decoration: underline; }
.role-title {
  font-family: var(--display-font); font-size: 20px; margin: 6px 0 14px;
  letter-spacing: 0.5px;
}
.role-title.heroes { color: #3DBE73; }
.role-title.villains { color: #EF3E36; }
.chars-grid + .role-title { margin-top: 26px; }
.role-toggle { display: flex; gap: 6px; }
.role-pill {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px;
  border: 2px solid #1B1B2F; border-radius: 999px; padding: 4px 10px; cursor: pointer;
  background: #fff; color: #4a4a5c;
}
.role-pill.on-hero { background: #3DBE73; color: #fff; }
.role-pill.on-villain { background: #1B1B2F; color: #FFF8EC; }
.char-role-pill {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
  border: 2px solid #1B1B2F; border-radius: 999px;
}
.char-role-pill.hero { background: #3DBE73; color: #fff; }
.char-role-pill.villain { background: #1B1B2F; color: #FFF8EC; }
.person-role {
  margin-top: 2px; font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.6px; color: #2E86DE;
}
.featured-role {
  font-size: 13.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px;
  color: #2E86DE; margin: -8px 0 14px;
}

/* ---------- fans ---------- */
.fan-count {
  display: inline-block; vertical-align: middle; font-family: var(--body-font);
  font-size: 13px; font-weight: 800; background: #FFC93C; border: 2px solid #1B1B2F;
  border-radius: 999px; padding: 2px 11px; margin-left: 8px;
}
.fans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.fan-card {
  background: #fff; border: 3px solid #1B1B2F; border-radius: 12px;
  box-shadow: 4px 4px 0 #FFC93C; padding: 14px; text-align: center;
}
.fan-portrait {
  width: 62px; height: 62px; margin: 0 auto 10px; border: 3px solid #1B1B2F;
  border-radius: 50%; overflow: hidden;
}
.fan-name { font-family: var(--display-font); font-size: 17px; line-height: 1.1; }
.fan-note { margin-top: 4px; font-size: 12.5px; font-weight: 500; color: #4a4a5c; line-height: 1.35; }
.chars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 26px; }
.char-card {
  background: #fff; border: 4px solid #1B1B2F; border-radius: 14px;
  box-shadow: 6px 6px 0 #FFC93C; padding: 20px; text-align: center;
}
.char-portrait { width: 96px; height: 96px; margin: 0 auto 14px; border: 4px solid #1B1B2F; border-radius: 50%; }
.char-name { font-family: var(--display-font); font-size: 20px; }
.char-bio { margin-top: 6px; font-size: 13.5px; font-weight: 500; color: #4a4a5c; line-height: 1.4; }

/* ---------- about ---------- */
.about {
  max-width: 900px; margin: 0 auto; padding: 56px 32px 64px;
  display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap;
}
.about-photo {
  width: 220px; height: 220px; flex-shrink: 0; border: 5px solid #1B1B2F;
  border-radius: 16px; box-shadow: 8px 8px 0 #2E86DE;
}
.about-body { flex: 1; min-width: 280px; }
.about-title { font-family: var(--display-font); font-size: 34px; margin-bottom: 16px; }
.about-bio { font-size: 17px; font-weight: 500; line-height: 1.6; color: #333; white-space: pre-wrap; }
.yt-btn {
  display: inline-block; margin-top: 22px; font-weight: 800; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.5px; text-decoration: none;
  background: #EF3E36; color: #FFF8EC; border: 3px solid #1B1B2F; border-radius: 999px;
  padding: 11px 22px; box-shadow: 4px 4px 0 #1B1B2F; transition: transform .12s;
}
.yt-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #1B1B2F; }

/* ---------- image slots ---------- */
.slot { width: 100%; height: 100%; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; border-radius: inherit; }
.slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot img.contain { object-fit: contain; }
.slot-placeholder {
  font-size: 12px; font-weight: 700; color: #b9b2a4; text-align: center;
  padding: 8px; user-select: none;
}
.slot.uploadable { cursor: pointer; }
.slot.uploadable:hover::after {
  content: 'Upload'; position: absolute; inset: 0; background: rgba(27,27,47,0.55);
  color: #FFF8EC; font-weight: 800; font-size: 13px; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center;
}
.slot.busy::after { content: '…' !important; }

/* ---------- admin ---------- */
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 40px 32px 80px; }
.login-box {
  max-width: 360px; margin: 80px auto; background: #fff; border: 4px solid #1B1B2F;
  border-radius: 14px; box-shadow: 7px 7px 0 #1B1B2F; padding: 32px;
}
.login-title { font-family: var(--display-font); font-size: 26px; margin-bottom: 16px; text-align: center; }
.login-input {
  width: 100%; padding: 12px 14px; border: 3px solid #1B1B2F; border-radius: 8px;
  font-size: 15px; font-weight: 600;
}
.login-btn {
  margin-top: 14px; font-weight: 800; text-transform: uppercase; font-size: 13px;
  letter-spacing: 0.5px; text-align: center; background: #1B1B2F; color: #FFF8EC;
  padding: 11px; border-radius: 8px; cursor: pointer;
}
.login-error { margin-top: 12px; color: #EF3E36; font-weight: 700; font-size: 13.5px; text-align: center; }

.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; flex-wrap: wrap; gap: 10px; }
.admin-title { font-family: var(--display-font); font-size: 32px; }
.save-status { font-size: 13px; font-weight: 700; color: #3DBE73; min-height: 18px; margin-bottom: 20px; }
.logout-btn {
  font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px;
  background: #EF3E36; color: #fff; padding: 9px 18px; border-radius: 999px; cursor: pointer;
}
.admin-section-title { font-family: var(--display-font); font-size: 26px; margin-bottom: 18px; }

.admin-series { background: #fff; border: 4px solid #1B1B2F; border-radius: 14px; padding: 20px; }
.admin-series-row { display: flex; gap: 18px; flex-wrap: wrap; }
.admin-cover { width: 120px; height: 120px; flex-shrink: 0; border: 3px solid #1B1B2F; border-radius: 10px; }
.admin-fields { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 10px; }
.admin-title-input { font-family: var(--display-font); font-size: 20px; padding: 8px 10px; border: 2px solid #1B1B2F; border-radius: 8px; }
.admin-year-input {
  width: 76px; flex-shrink: 0; font-weight: 700; font-size: 15px; text-align: center;
  padding: 8px 6px; border: 2px solid #1B1B2F; border-radius: 8px;
}
.series-hero-year { font-size: 0.55em; opacity: 0.85; }
.admin-desc-input { font-size: 14px; padding: 8px 10px; border: 2px solid #1B1B2F; border-radius: 8px; min-height: 54px; resize: vertical; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 24px; height: 24px; border-radius: 50%; border: 3px solid #1B1B2F; cursor: pointer; }
.swatch.selected { outline: 3px solid #FFC93C; }
.admin-btns { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.abtn {
  font-size: 12px; font-weight: 800; background: #FFF8EC; border: 2px solid #1B1B2F;
  border-radius: 6px; padding: 6px 10px; cursor: pointer; text-align: center;
}
.abtn.blue { background: #2E86DE; color: #fff; }
.abtn.red { background: #EF3E36; color: #fff; }
.abtn.sm { font-size: 11px; padding: 5px 8px; background: #fff; }
.abtn.sm.blue { background: #2E86DE; }
.abtn.sm.red { background: #EF3E36; }

.admin-issues { margin-top: 18px; padding-top: 18px; border-top: 3px dashed #1B1B2F; display: flex; flex-direction: column; gap: 14px; }
.admin-issue { background: #FFF8EC; border: 3px solid #1B1B2F; border-radius: 10px; padding: 14px; }
.admin-issue-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.admin-issue-cover { width: 80px; height: 80px; flex-shrink: 0; border: 2px solid #1B1B2F; border-radius: 8px; }
.admin-issue-title { flex: 1; min-width: 180px; font-weight: 700; font-size: 15px; padding: 8px 10px; border: 2px solid #1B1B2F; border-radius: 8px; }
.admin-issue-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-pages { margin-top: 12px; padding-top: 12px; border-top: 2px dashed #1B1B2F; }
.admin-pages-row { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-page { width: 90px; display: flex; flex-direction: column; gap: 5px; align-items: center; }
.admin-page-slot { width: 90px; height: 110px; border: 2px solid #1B1B2F; border-radius: 6px; }
.admin-page-btns { display: flex; gap: 4px; }
.pbtn {
  font-size: 10px; font-weight: 800; background: #fff; border: 1.5px solid #1B1B2F;
  border-radius: 5px; padding: 2px 5px; cursor: pointer;
}
.pbtn.red { background: #EF3E36; color: #fff; }
.add-page {
  width: 90px; height: 110px; border: 2px dashed #1B1B2F; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 24px; cursor: pointer;
}
.add-issue {
  font-weight: 800; font-size: 13px; text-transform: uppercase; background: #FFC93C;
  border: 2px solid #1B1B2F; border-radius: 8px; padding: 10px; text-align: center; cursor: pointer;
}
.add-big {
  font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px;
  background: #1B1B2F; color: #FFF8EC; border-radius: 10px; padding: 14px;
  text-align: center; cursor: pointer; margin-bottom: 48px; margin-top: 16px;
}

.admin-sub-label {
  font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 1px;
  color: #4a4a5c;
}
.admin-char {
  background: #FFF8EC; border: 3px solid #1B1B2F; border-radius: 12px; padding: 16px;
  display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start;
}
.admin-char-side { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.char-series-select {
  font-family: var(--body-font); font-weight: 700; font-size: 12px;
  border: 2px solid #1B1B2F; border-radius: 6px; padding: 6px 8px; background: #fff;
  max-width: 160px;
}
.admin-char-portrait { width: 70px; height: 70px; flex-shrink: 0; border: 2px solid #1B1B2F; border-radius: 50%; }
.admin-char-fields { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 8px; }
.admin-char-name { font-family: var(--display-font); font-size: 17px; padding: 7px 10px; border: 2px solid #1B1B2F; border-radius: 8px; }
.admin-char-bio { font-size: 13.5px; padding: 7px 10px; border: 2px solid #1B1B2F; border-radius: 8px; min-height: 44px; resize: vertical; }
.admin-char-del { font-size: 12px; font-weight: 800; background: #EF3E36; color: #fff; border: 2px solid #1B1B2F; border-radius: 6px; padding: 8px 12px; cursor: pointer; flex-shrink: 0; }

.admin-about { background: #fff; border: 3px solid #1B1B2F; border-radius: 12px; padding: 18px; display: flex; gap: 16px; flex-wrap: wrap; }
.admin-about-photo { width: 100px; height: 100px; flex-shrink: 0; border: 2px solid #1B1B2F; border-radius: 12px; }
.admin-about-bio { flex: 1; min-width: 240px; font-size: 14.5px; padding: 10px; border: 2px solid #1B1B2F; border-radius: 8px; min-height: 100px; resize: vertical; }

.admin-hero-slot { width: 130px; height: 160px; border: 3px solid #1B1B2F; border-radius: 10px; background: #fff; }

.empty-note { font-size: 15px; font-weight: 600; color: #4a4a5c; }

/* ---------- like button ---------- */
.like-btn {
  display: inline-flex; align-items: center; gap: 5px; height: 28px;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.3px;
  background: #fff; color: #4a4a5c; border: 2px solid #1B1B2F; border-radius: 999px;
  padding: 0 12px; cursor: pointer; user-select: none; transition: transform .1s;
}
.like-btn:hover { transform: scale(1.08); }
.like-btn.liked { background: #EF3E36; color: #FFF8EC; }

/* ---------- admin tabs ---------- */
.admin-tabs { display: flex; gap: 12px; margin-bottom: 34px; }
.admin-tab {
  font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px;
  border: 3px solid #1B1B2F; border-radius: 999px; padding: 9px 22px; cursor: pointer;
  background: #fff;
}
.admin-tab:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 #1B1B2F; }
.admin-tab.active { background: #1B1B2F; color: #FFF8EC; box-shadow: 4px 4px 0 #FFC93C; }
.admin-tab.small { font-size: 12px; padding: 6px 14px; border-width: 2px; }
.admin-tab.small.active { box-shadow: 3px 3px 0 #FFC93C; }
.who-pill {
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
  background: #FFF8EC; border: 2px solid #1B1B2F; border-radius: 999px; padding: 7px 14px;
}
.who-pill b { color: #EF3E36; }
table.audit-table td { vertical-align: middle; }
table.audit-table td:not(:first-child) { text-align: left; width: auto; }
table.audit-table td:nth-child(2) { width: 96px; }
table.audit-table td:nth-child(3) { font-weight: 600; }
.audit-when { white-space: nowrap; color: #9a9485; font-weight: 700; font-size: 12.5px; width: 104px; }
.audit-user {
  display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.4px; background: #FFF8EC; border: 2px solid #1B1B2F;
  border-radius: 999px; padding: 2px 10px; white-space: nowrap;
}
.audit-user.owner { background: #1B1B2F; color: #FFF8EC; }
table.audit-table td:nth-child(4) { width: 74px; text-align: right; }
.audit-undo { white-space: nowrap; }
.undo-btn {
  display: inline-block; font-size: 11.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.4px; background: #FFC93C; border: 2px solid #1B1B2F;
  border-radius: 999px; padding: 4px 12px; cursor: pointer;
}
.undo-btn:hover { background: #EF3E36; color: #FFF8EC; }
table.users-table td:not(:first-child), table.users-table th:not(:first-child) { text-align: left; width: auto; }
table.users-table td { vertical-align: middle; font-weight: 600; }
table.users-table td:first-child, table.users-table th:first-child { width: 150px; }
table.users-table td:nth-child(3), table.users-table th:nth-child(3) { width: 120px; }
table.users-table td:last-child, table.users-table th:last-child { width: 110px; text-align: right; }
.access-pill {
  display: inline-block; font-size: 11.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.4px; border: 2px solid #1B1B2F; border-radius: 999px; padding: 3px 11px;
}
.access-pill.on { background: #3DBE73; color: #fff; }
.access-pill.off { background: #f6f1e6; color: #6c6658; border-color: #c9c2b4; }

/* ---------- admin analytics ---------- */
.stats-refresh {
  font-family: var(--body-font); font-size: 13px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px; color: #2E86DE;
  cursor: pointer; margin-left: 12px; vertical-align: middle;
}
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.stat-tile {
  background: #fff; border: 3px solid #1B1B2F; border-radius: 12px;
  box-shadow: 5px 5px 0 #1B1B2F; padding: 16px 18px; text-align: center;
}
.stat-value { font-family: var(--display-font); font-size: 36px; line-height: 1; }
.stat-tile.muted { background: #f6f1e6; box-shadow: 5px 5px 0 #9a9485; }
.stat-tile.muted .stat-value { color: #6c6658; }
.stat-label {
  margin-top: 8px; font-size: 11.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.6px; color: #4a4a5c;
}
.stats-sub {
  font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 1px;
  color: #4a4a5c; margin: 26px 0 12px;
}
.mini-bars {
  display: flex; align-items: flex-end; gap: 4px; height: 84px;
  background: #fff; border: 3px solid #1B1B2F; border-radius: 10px; padding: 8px 10px 0;
}
.mini-bar-col { flex: 1; display: flex; align-items: flex-end; justify-content: center; height: 100%; }
.mini-bar { width: 100%; max-width: 34px; background: #2E86DE; border-radius: 4px 4px 0 0; }
.mini-bars-axis {
  display: flex; justify-content: space-between; font-size: 11px; font-weight: 700;
  color: #4a4a5c; padding: 4px 12px 0;
}
.country-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.country-pill {
  font-size: 13px; font-weight: 700; background: #fff; border: 2px solid #1B1B2F;
  border-radius: 999px; padding: 5px 13px;
}
.country-pill b { font-weight: 800; }
.country-pill.expandable { cursor: pointer; }
.country-pill.expandable:not(.open):hover { background: #FFF8EC; transform: translate(-1px, -1px); }
.country-pill.open, .country-pill.open:hover { background: #1B1B2F; color: #FFF8EC; }
.country-pill .stats-caret { margin-right: 2px; }
.country-pill.open .stats-caret { color: #FFC93C; }
.region-row {
  margin-top: 12px; padding: 14px 16px; background: #fff;
  border: 3px solid #1B1B2F; border-radius: 12px;
}
.region-row-label {
  font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px;
  color: #4a4a5c; margin-bottom: 10px;
}
.region-pill {
  font-size: 13px; font-weight: 700; background: #FFF8EC; border: 2px solid #1B1B2F;
  border-radius: 999px; padding: 5px 13px;
}
.region-pill.unknown { color: #9a9485; border-color: #c9c2b4; }
.stats-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 3px solid #1B1B2F; border-radius: 10px; overflow: hidden;
  font-size: 14px;
}
.stats-table th {
  text-align: left; font-size: 11.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.6px; color: #4a4a5c; padding: 9px 14px; border-bottom: 2px solid #1B1B2F;
  background: #FFF8EC;
}
.stats-table td { padding: 9px 14px; border-bottom: 1px solid #e8e0d0; font-weight: 600; }
.stats-table tr:last-child td { border-bottom: none; }
.stats-table td:not(:first-child), .stats-table th:not(:first-child) { text-align: right; width: 110px; }
.table-muted { color: #9a9485; font-weight: 600; font-size: 12.5px; }
.stats-series-row { cursor: pointer; }
.stats-series-row:hover td { background: #FFF8EC; }
.stats-series-row td { font-weight: 800; }
.stats-caret { display: inline-block; width: 14px; color: #2E86DE; }
.stats-issue-row td { background: #fdfbf5; }
.stats-issue-row td:first-child { padding-left: 38px; font-weight: 600; }

/* ---------- font picker ---------- */
.font-options { display: flex; gap: 14px; flex-wrap: wrap; }
.font-option {
  background: #fff; border: 3px solid #1B1B2F; border-radius: 12px;
  padding: 14px 22px; font-size: 24px; cursor: pointer; line-height: 1;
}
.font-option:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 #1B1B2F; }
.font-option.selected { background: #FFC93C; box-shadow: 5px 5px 0 #1B1B2F; }

/* ---------- crop modal ---------- */
.crop-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(15,15,28,0.8);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.crop-box {
  background: #FFF8EC; border: 4px solid #1B1B2F; border-radius: 14px;
  box-shadow: 8px 8px 0 #1B1B2F; padding: 18px; max-width: calc(100vw - 24px);
}
.crop-heading { font-family: var(--display-font); font-size: 24px; margin-bottom: 12px; text-align: center; }
.crop-canvas {
  display: block; max-width: 100%; background: #1B1B2F; border-radius: 8px;
  cursor: grab; margin: 0 auto;
}
.crop-canvas:active { cursor: grabbing; }
.crop-zoom-row { display: flex; align-items: center; gap: 12px; margin: 14px 4px 4px; }
.crop-zoom-label { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.crop-zoom { flex: 1; accent-color: #EF3E36; }
.crop-actions { display: flex; gap: 10px; margin-top: 14px; justify-content: flex-end; flex-wrap: wrap; }
.crop-btn {
  font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px;
  border: 2px solid #1B1B2F; border-radius: 8px; padding: 9px 16px; cursor: pointer;
  background: #fff;
}
.crop-btn.original { background: #FFC93C; }
.crop-btn.save { background: #1B1B2F; color: #FFF8EC; }
.crop-btn.save:hover { background: #EF3E36; }
