/* Patron page, modelled on coconutmc.com/store/patron/ but in the theme palette. */
.patron-hero {
  text-align: center;
  padding: 30px 20px 10px;
  font-family: Sora, Montserrat, sans-serif;
}
.patron-hero img.patron-logo { height: 120px; width: auto; margin: 0 auto 14px; display: block; }
.patron-hero-title { font: 800 38px/1.1 Sora, sans-serif; color: #fff; margin: 0; }
.patron-hero-sub { font: 300 15px/1.7 Sora, sans-serif; color: var(--secondary-text-color, #aeaeae); max-width: 520px; margin: 10px auto 0; }

.patron-toolbar { max-width: 1200px; margin: 24px auto 12px; padding: 0 20px; }
.store-breadcrumb-back {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--fourth-background, #1c2637);
  color: var(--secondary-text-color, #aeaeae);
  font: 600 12px Sora, sans-serif;
  padding: 8px 14px; border-radius: 6px;
  border: 1px solid var(--package-border, #2b3a54);
  text-decoration: none;
}
.store-breadcrumb-back:hover { color: #fff; border-color: var(--main-color, #8b5cf6); }

.patron-stage { max-width: 1200px; margin: 0 auto; padding: 0 20px 40px; font-family: Sora, sans-serif; }
.store-category-block { margin-top: 22px; }

.patron-tier-bar {
  border-radius: 10px;
  padding: 16px 20px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  font: 800 14px Sora, sans-serif;
}
/* Minecraft material tiers: diamond cyan, emerald green, netherite (500+) red */
.patron-tier-bar--diamond {
  background: linear-gradient(180deg, #5df6ff, #12d6f0); color: #05323a;
  box-shadow: 0 8px 22px rgba(20, 214, 240, 0.35);
}
.patron-tier-bar--emerald {
  background: linear-gradient(180deg, #4bf57e, #10cf58); color: #042a13;
  box-shadow: 0 8px 22px rgba(16, 207, 88, 0.35);
}
.patron-tier-bar--netherite {
  background: linear-gradient(180deg, #e14b52, #c0323a); color: #fff;
  box-shadow: 0 8px 22px rgba(192, 50, 58, 0.3);
}

.recent-payments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 18px;
}
.recent-payment-item { display: flex; flex-direction: column; }
.recent-payment-avatar {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--second-background, #1e283a);
  border: 1px solid var(--package-border, #2b3a54);
  border-radius: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: transform .18s ease, border-color .18s ease;
}
.recent-payment-item:hover .recent-payment-avatar {
  transform: translateY(-4px);
  border-color: var(--main-color, #8b5cf6);
}
.recent-payment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.recent-payment-name {
  font: 600 13px Sora, sans-serif;
  color: var(--secondary-text-color, #aeaeae);
  text-align: center;
  margin-top: 10px;
}

.patron-empty { text-align: center; color: var(--secondary-text-color, #aeaeae); padding: 40px 0; font-family: Sora, sans-serif; }
.patron-tier-empty {
  margin: 14px 0 0; padding: 22px;
  text-align: center; font-family: Sora, sans-serif; font-size: 14px;
  color: var(--secondary-text-color, #aeaeae);
  background: var(--second-background, #1e283a);
  border: 1px dashed var(--package-border, #2b3a54);
  border-radius: 10px;
}

@media (max-width: 620px) {
  .patron-hero-title { font-size: 28px; }
  .recent-payments-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
}

/* Account page */
.acc-hero {
  display: flex; align-items: center; gap: 28px;
  padding: 24px 28px; margin-bottom: 16px;
  border-radius: 16px;
  border: 1px solid var(--package-border, #2b3a54);
  background:
    radial-gradient(600px 200px at 12% -20%, color-mix(in oklab, var(--main-color) 30%, transparent), transparent 70%),
    linear-gradient(120deg, var(--second-background, #1e283a), var(--fourth-background, #1c2637));
  font-family: Sora, sans-serif;
}
.acc-body { height: 140px; width: auto; filter: drop-shadow(0 12px 22px rgba(0,0,0,.5)); }
.acc-hero-info { min-width: 0; }
.acc-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  color: var(--main-color, #8b5cf6);
  background: color-mix(in oklab, var(--main-color) 16%, transparent);
  padding: 5px 10px; border-radius: 999px;
}
.acc-username { margin: 10px 0 0; font-size: 30px; font-weight: 800; color: #fff; line-height: 1.05; }
.acc-muted { color: var(--secondary-text-color, #aeaeae); margin: 6px 0 0; font-size: 14px; }
.acc-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.acc-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; text-decoration: none;
  font-family: Sora, sans-serif; font-weight: 700; font-size: 13px;
  background: var(--main-color, #8b5cf6); color: #fff;
}
.acc-btn:hover { filter: brightness(1.08); }
.acc-btn--ghost { background: var(--third-background, #232f44); color: #fff; }
.acc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 4px; }
.acc-stat {
  background: var(--second-background, #1e283a);
  border: 1px solid var(--package-border, #2b3a54);
  border-radius: 10px; padding: 18px; text-align: center; font-family: Sora, sans-serif;
}
.acc-stat-value { display: block; font-size: 24px; font-weight: 800; color: var(--main-color, #8b5cf6); }
.acc-stat-value small { font-size: 13px; color: var(--secondary-text-color, #aeaeae); }
.acc-stat-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--secondary-text-color, #aeaeae); margin-top: 4px; }
.acc-list { list-style: none; margin: 6px 0 14px; padding: 0; font-family: Sora, sans-serif; }
.acc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 8px;
  background: var(--second-background, #1e283a);
  border: 1px solid var(--package-border, #2b3a54);
  margin-bottom: 8px; color: #fff; font-size: 14px;
}
.acc-tag {
  margin-left: 8px; font-size: 10px; font-weight: 800; letter-spacing: .5px;
  background: var(--main-color, #8b5cf6); color: #fff; padding: 2px 6px; border-radius: 4px;
}
.acc-panel {
  background: var(--second-background, #1e283a);
  border: 1px solid var(--package-border, #2b3a54);
  border-radius: 14px; padding: 20px 22px; margin-top: 16px; font-family: Sora, sans-serif;
}
.acc-panel-head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 14px; }
.acc-panel-head i { color: var(--main-color, #8b5cf6); font-size: 18px; }
.acc-empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 26px 0; color: var(--secondary-text-color, #aeaeae); text-align: center; font-size: 14px;
}
.acc-empty i { font-size: 34px; opacity: .45; }
@media (max-width: 600px) {
  .acc-profile { flex-direction: column; text-align: center; }
  .acc-stats { grid-template-columns: 1fr; }
}

/* Rules page - aged parchment scroll */
.rules-wrap {
  position: relative;
  max-width: 820px;
  margin: 40px auto 56px;
  padding: 56px 52px;
  color: #4a3517;
  border-radius: 6px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(120, 90, 40, 0.10), transparent 60%),
    radial-gradient(140% 120% at 50% 100%, rgba(90, 60, 20, 0.16), transparent 55%),
    repeating-linear-gradient(0deg, rgba(120, 90, 40, 0.04) 0 2px, transparent 2px 4px),
    linear-gradient(160deg, #f6eccf 0%, #efe0b4 55%, #e7d3a0 100%);
  box-shadow:
    inset 0 0 60px rgba(120, 85, 35, 0.35),
    inset 0 0 0 1px rgba(120, 85, 35, 0.20),
    0 24px 50px rgba(0, 0, 0, 0.45);
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
}
/* rolled ends of the scroll */
.rules-wrap::before,
.rules-wrap::after {
  content: "";
  position: absolute; left: -12px; right: -12px; height: 28px;
  background: linear-gradient(180deg, #d8c187, #b6975a);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(90, 60, 20, 0.35), 0 10px 20px rgba(0, 0, 0, 0.35);
}
.rules-wrap::before { top: -14px; }
.rules-wrap::after { bottom: -14px; }

.rules-hero { text-align: center; margin-bottom: 26px; }
.rules-title {
  font-family: Cinzel, serif; font-weight: 800; letter-spacing: 1px;
  font-size: 38px; color: #5b3a14; margin: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.rules-hero::after {
  content: ""; display: block; width: 160px; height: 2px; margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, #8a6a2e, transparent);
}
.rules-intro { font-size: 18px; font-style: italic; color: #5f4a24; max-width: 620px; margin: 14px auto 0; line-height: 1.7; }

.rules-list { display: flex; flex-direction: column; }
.rule-card {
  display: flex; gap: 18px; padding: 20px 4px;
  border-top: 1px solid rgba(120, 85, 35, 0.28);
}
.rules-list .rule-card:first-child { border-top: 0; }
.rule-num {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: Cinzel, serif; font-weight: 700; font-size: 17px; color: #f7e9c8;
  background: radial-gradient(circle at 35% 30%, #a83434, #7c1f1f 75%);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.25), inset 0 -3px 6px rgba(0, 0, 0, 0.4), 0 3px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(60, 15, 15, 0.6);
}
.rule-body { min-width: 0; }
.rule-name {
  margin: 6px 0 0; font-family: Cinzel, serif; font-weight: 700;
  font-size: 19px; color: #5b3a14; letter-spacing: .3px;
}
.rule-text { margin: 8px 0 0; color: #4a3517; line-height: 1.7; font-size: 16.5px; }
.rule-bullets { margin: 8px 0 0; padding-left: 20px; color: #4a3517; line-height: 1.7; font-size: 16.5px; }
.rule-bullets li { margin: 4px 0; }
.rule-bullets li::marker { color: #8a2b2b; }
.rules-outro { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(120, 85, 35, 0.28); text-align: center; color: #5f4a24; line-height: 1.7; font-size: 16.5px; }
.rules-thanks { font-family: Cinzel, serif; color: #7c1f1f; font-weight: 700; margin-top: 14px; }
@media (max-width: 520px) {
  .rules-wrap { padding: 44px 24px; }
  .rules-title { font-size: 28px; }
}

/* Vote page */
.vote-wrap { max-width: 1100px; margin: 26px auto 44px; padding: 0 16px; font-family: Sora, sans-serif; }
.vote-hero { text-align: center; margin-bottom: 26px; }
.vote-chip {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  color: var(--main-color, #8b5cf6); background: color-mix(in oklab, var(--main-color) 16%, transparent);
  padding: 5px 12px; border-radius: 999px;
}
.vote-title { font-size: 34px; font-weight: 800; color: #fff; margin: 12px 0 0; }
.vote-sub { color: var(--secondary-text-color, #aeaeae); max-width: 560px; margin: 10px auto 0; line-height: 1.6; }

.vote-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.vote-sites { display: flex; flex-direction: column; gap: 12px; }
.vote-site {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  border-radius: 14px; text-decoration: none;
  background: linear-gradient(120deg, var(--second-background, #1e283a), var(--fourth-background, #1c2637));
  border: 1px solid var(--package-border, #2b3a54);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.vote-site:hover { transform: translateY(-2px); border-color: var(--main-color, #8b5cf6); box-shadow: 0 16px 34px -18px var(--main-color, #8b5cf6); }
.vote-site-n {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--main-color) 18%, transparent);
  color: var(--main-color, #8b5cf6); font-weight: 800; font-size: 17px;
}
.vote-site-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.vote-site-name { color: #fff; font-weight: 700; font-size: 16px; }
.vote-site-note { color: var(--secondary-text-color, #aeaeae); font-size: 12.5px; margin-top: 2px; }
.vote-site i { color: var(--secondary-text-color, #aeaeae); font-size: 20px; }

.vote-board {
  background: var(--second-background, #1e283a);
  border: 1px solid var(--package-border, #2b3a54);
  border-radius: 16px; padding: 20px; position: sticky; top: 90px;
}
.vote-board-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.vote-board-head i { font-size: 26px; color: #f2b418; }
.vote-board-title { margin: 0; font-size: 17px; font-weight: 800; color: #fff; }
.vote-board-sub { margin: 2px 0 0; font-size: 12px; color: var(--secondary-text-color, #aeaeae); }
.vote-rank { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.vote-rank-row {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px;
}
.vote-rank-row.is-top { background: color-mix(in oklab, var(--main-color) 8%, transparent); }
.vote-rank-row + .vote-rank-row { margin-top: 4px; }
.vote-rank-n {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--fourth-background, #1c2637); color: var(--secondary-text-color, #aeaeae);
  font-weight: 800; font-size: 13px;
}
.vote-medal--gold { background: linear-gradient(180deg, #ffd35a, #e6a900); color: #4a3400; }
.vote-medal--silver { background: linear-gradient(180deg, #dfe6ee, #aab6c4); color: #2b333c; }
.vote-medal--bronze { background: linear-gradient(180deg, #e8a468, #c2763a); color: #3a2110; }
.vote-rank-head { width: 30px; height: 30px; border-radius: 7px; }
.vote-rank-name { flex: 1; min-width: 0; color: #fff; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vote-rank-votes { color: var(--main-color, #8b5cf6); font-weight: 700; font-size: 13px; white-space: nowrap; }

.vote-empty {
  text-align: center; color: var(--secondary-text-color, #aeaeae); font-size: 14px;
  padding: 26px; border: 1px dashed var(--package-border, #2b3a54); border-radius: 12px;
}

@media (max-width: 820px) {
  .vote-grid { grid-template-columns: 1fr; }
  .vote-board { position: static; }
}
