@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700&family=Raleway:wght@400;500;600;700;800&family=Montserrat:wght@500;600;700&display=swap');

:root {
  --bg: #fff1f4;
  --bg-soft: #ffd9e3;
  --card: #ffffff;
  --ink: #2b1118;
  --muted: #8c5a66;
  --accent: #c8103a;
  --accent-soft: #ffe3ea;
  --green: #c8103a;
  --shadow: 0 18px 42px rgba(120, 18, 46, 0.12);
  --radius: 18px;
  --hero-card: rgba(255, 255, 255, 0.96);
  --hero-gradient: linear-gradient(135deg, rgba(200, 16, 58, 0.24), rgba(255, 255, 255, 0.94) 58%, rgba(200, 16, 58, 0.2));
  --hero-accent: #ff7a9c;
  --hero-accent-strong: #c8103a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Raleway', sans-serif;
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 255, 255, 0.88), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(255, 170, 193, 0.42), transparent 26%),
    radial-gradient(circle at 78% 72%, rgba(179, 10, 49, 0.34), transparent 30%),
    linear-gradient(135deg, #fff8fa 0%, #ffd7e1 22%, #c8103a 58%, #7c0f29 100%);
  color: var(--ink);
  position: relative;
  overflow-x: hidden;
  background-attachment: fixed;
}

body > * {
  position: relative;
  z-index: 1;
}

body::before,
body::after {
  content: '';
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  z-index: 0;
  animation: floatGlow 10s ease-in-out infinite;
}

body::before {
  top: -140px;
  left: -80px;
  background: radial-gradient(circle, rgba(255, 173, 196, 0.46), rgba(200, 16, 58, 0.08));
}

body::after {
  bottom: -160px;
  right: -100px;
  background: radial-gradient(circle, rgba(136, 8, 38, 0.52), rgba(136, 8, 38, 0.08));
  animation-delay: -6s;
}

.ruby-veil,
.ruby-orb {
  display: none;
}

.topbar {
  position: relative;
  z-index: 2;
  padding: 0 0 12px;
}

.topbar::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 226, 234, 0.7), transparent);
  pointer-events: none;
}

.hero {
  margin: 0 auto 32px;
  padding: 42px 30px;
  border-radius: calc(var(--radius) * 1.2);
  background: var(--hero-gradient);
  box-shadow: 0 20px 50px rgba(26, 24, 40, 0.15);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  background: radial-gradient(circle at top right, rgba(95, 226, 255, 0.35), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
  filter: blur(0px);
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  position: relative;
  z-index: 1;
}

.hero-copy {
  color: #fff;
  text-shadow: 0 6px 20px rgba(20, 12, 28, 0.5);
}

.hero-kicker {
  margin: 0 0 8px;
  letter-spacing: 0.4em;
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 0 0 20px;
  font-size: 16px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero-cta {
  min-width: 180px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hero-card {
  background: var(--hero-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(14, 40, 80, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  animation: heroPulse 8s ease-in-out infinite;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  color: var(--ink);
}

.hero-card-header strong {
  font-size: 20px;
  font-weight: 700;
}

.hero-card-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

.hero-card-list li + li {
  margin-top: 6px;
}

.hero-card-foot {
  margin-top: 18px;
  font-size: 12px;
  color: rgba(12, 9, 13, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

@keyframes heroPulse {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 20px 50px rgba(14, 40, 80, 0.1);
  }
  50% {
    transform: translateY(-6px);
    box-shadow: 0 25px 70px rgba(14, 40, 80, 0.2);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 28px 18px;
  }

  .hero-badges {
    flex-direction: column;
  }

  .hero-cta-group {
    flex-direction: column;
  }
}

.topbar-inner {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.18), transparent 22%),
    radial-gradient(circle at 84% 14%, rgba(255, 190, 205, 0.22), transparent 18%),
    linear-gradient(135deg, rgba(116, 7, 32, 0.96), rgba(200, 16, 58, 0.92) 52%, rgba(124, 15, 41, 0.98));
  border: 1px solid rgba(255, 228, 236, 0.16);
  border-radius: 0 0 28px 28px;
  padding: 18px 24px;
  box-shadow: 0 24px 54px rgba(72, 8, 25, 0.34);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #fffafc;
}

.logo-wrap {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 233, 240, 0.62));
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 16px 30px rgba(77, 8, 26, 0.24);
  backdrop-filter: blur(14px);
}

.logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-tagline {
  color: rgba(255, 236, 242, 0.78);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff6f8;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.online-forum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
  color: #fffafc;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.online-forum:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px) scale(1.01);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffdbe5;
  box-shadow: 0 0 12px rgba(255, 244, 247, 0.62);
}

.status {
  text-align: right;
  min-width: 160px;
  display: grid;
  justify-items: end;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.status-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #8f1635;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 229, 237, 0.96));
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(77, 8, 26, 0.16);
}

.status-admin-link:hover {
  transform: translateY(-1px);
}

.status-admin-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(200, 16, 58, 0.1);
  display: grid;
  place-items: center;
}

.status-label {
  font-size: 11px;
  color: rgba(255, 229, 236, 0.74);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.status-ip {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 11px;
  color: rgba(255, 244, 247, 0.8);
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}

.status-ip:hover {
  color: #ffffff;
}

.status-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fffafc;
}

.status-copy {
  min-height: 14px;
  font-size: 11px;
  color: rgba(255, 230, 237, 0.86);
}

.admin-session .status {
  min-width: 220px;
  gap: 4px;
}

.hero {
  max-width: 100%;
  margin: 0 auto;
  padding: 24px 32px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.hero-copy {
  display: grid;
  gap: 12px;
}

.hero-copy h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  margin: 0;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
}

.hero-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 700;
}

.hero-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.hero-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  margin-bottom: 6px;
}

.hero-sub {
  font-size: 12px;
  color: var(--muted);
}

.hero-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
}

.hero-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.hero-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(210, 75, 75, 0), rgba(210, 75, 75, 0.4), rgba(210, 75, 75, 0));
  margin: 14px 0;
}

.online-block {
  display: grid;
  gap: 6px;
}

.online-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.online-count {
  font-size: 36px;
  font-family: 'Montserrat', sans-serif;
  color: var(--accent);
}

.online-badge.offline {
  background: rgba(0, 0, 0, 0.08);
  color: var(--muted);
}

.online-badge.offline .badge-dot {
  background: var(--muted);
  box-shadow: none;
}

.online-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}

main {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 32px 64px;
}

.banner {
  margin: 12px 0 24px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(210, 75, 75, 0.12), rgba(62, 154, 102, 0.12));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.banner-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
}

.banner-sub {
  color: var(--muted);
  font-size: 13px;
}

.banner-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  padding: 10px;
  object-fit: contain;
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
  padding: 20px 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.18), transparent 20%),
    radial-gradient(circle at 88% 20%, rgba(255, 179, 201, 0.2), transparent 18%),
    linear-gradient(135deg, rgba(124, 15, 41, 0.96), rgba(200, 16, 58, 0.92) 56%, rgba(90, 9, 28, 0.98));
  border: 1px solid rgba(255, 231, 237, 0.16);
  box-shadow: 0 22px 48px rgba(72, 8, 25, 0.24);
}

.section-head-split {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px 18px;
}

.section-head h2 {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  color: #fff8fb;
}

.section-head p {
  margin: 0;
  color: rgba(255, 233, 239, 0.8);
}

.section-head-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.section-head-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  color: #fff9fb;
  text-decoration: none;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.section-head-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
}

.rules-history-note {
  color: var(--accent) !important;
  font-weight: 600;
}

.payment-notice {
  margin: 14px 0 8px;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(200, 16, 58, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 245, 247, 0.98));
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(26, 18, 12, 0.08);
}

.payment-notice.info {
  border-color: rgba(210, 75, 75, 0.25);
  color: var(--ink);
}

.payment-notice.success {
  border-color: rgba(62, 154, 102, 0.3);
  color: #1f7045;
}

.payment-notice.error {
  border-color: rgba(210, 75, 75, 0.35);
  color: #a63131;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.step {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff8fb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 12px;
}

.page-tab {
  border: 1px solid rgba(200, 16, 58, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 241, 245, 0.98));
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.page-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(210, 75, 75, 0.35);
}

.page-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 10px 22px rgba(210, 75, 75, 0.25);
}

.anarchy-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 14px;
}

.anarchy-subtab {
  border: 1px solid rgba(200, 16, 58, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 241, 245, 0.98));
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.anarchy-subtab:hover {
  transform: translateY(-1px);
  border-color: rgba(210, 75, 75, 0.35);
}

.anarchy-subtab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 10px 22px rgba(210, 75, 75, 0.25);
}

.anarchy-subtab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.shop-subpanel {
  display: none;
}

.shop-grid.shop-subpanel.active {
  display: grid;
}

.currency-purchase.shop-subpanel.active {
  display: block;
}

.tab-section.rubies-open .product-grid {
  display: none;
}

.tab-section.rubies-open .admin-sort-tools,
.tab-section.rubies-open .sort-hint {
  display: none;
}

.tab-section {
  display: none;
  animation: fadeUp 0.25s ease;
  gap: 18px;
}

.tab-section.active {
  display: block;
}

.tab-section .shop-grid {
  margin-top: 12px;
}

.rules {
  margin-top: 24px;
}

.rules-mode-tabs {
  margin-bottom: 12px;
}

.rules-mode-panel {
  display: none;
  gap: 10px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 251, 252, 0.96), rgba(255, 239, 244, 0.94));
  border: 1px solid rgba(200, 16, 58, 0.08);
  box-shadow: 0 16px 38px rgba(72, 8, 25, 0.08);
}

.rules-mode-panel.active {
  display: grid;
}

.rules-mode-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.rules-soon {
  padding: 16px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.rules-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.rule-item {
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #f7f5f1;
  padding: 10px 14px;
  transition: box-shadow 0.2s ease, border 0.2s ease;
}

.rule-item[open] {
  border-color: rgba(210, 75, 75, 0.2);
  box-shadow: 0 10px 20px rgba(210, 75, 75, 0.12);
}

.rule-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--ink);
}

.rule-item summary::-webkit-details-marker {
  display: none;
}

.rule-item summary::after {
  content: '+';
  float: right;
  font-weight: 700;
  color: var(--accent);
}

.rule-item[open] summary::after {
  content: '–';
}

.rule-body {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.rule-body-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.rule-body p {
  margin: 0 0 10px;
}

.rule-body p:last-child {
  margin-bottom: 0;
}

.rule-subtitle {
  color: var(--ink);
  font-weight: 600;
}

.rule-list {
  margin: 8px 0 10px 18px;
  padding: 0;
  display: grid;
  gap: 6px;
}

.rule-list li {
  color: var(--muted);
}

.rule-list li strong {
  color: var(--ink);
}

@media (max-width: 820px) {
  .section-head-split {
    grid-template-columns: 1fr;
  }

  .section-head-links {
    justify-content: flex-start;
  }
}

.shop {
  display: grid;
  gap: 18px;
}

.shop-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.shop-grid.shop-subpanel {
  display: none;
}

.shop-grid.shop-subpanel.active {
  display: grid;
}

.product-area {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 185, 204, 0.14), transparent 20%),
    linear-gradient(180deg, rgba(124, 15, 41, 0.18), rgba(255, 246, 249, 0.9) 18%, rgba(255, 239, 244, 0.96));
  border: 1px solid rgba(255, 223, 230, 0.18);
  box-shadow: 0 18px 44px rgba(72, 8, 25, 0.14);
}

.admin-sort-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.sort-note {
  font-size: 12px;
  color: var(--muted);
}

.sort-hint {
  display: none;
  font-size: 12px;
  color: var(--accent);
}

.product-grid.sort-mode .product-card {
  cursor: grab;
  user-select: none;
}

.product-grid.sort-mode .product-card:hover {
  transform: translateY(-1px);
}

.product-grid.sort-mode .product-card.dragging {
  opacity: 0.45;
}

.sort-hint.show {
  display: block;
}

.mode-tabs,
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px;
  border-radius: 20px;
  background: rgba(124, 15, 41, 0.08);
  border: 1px solid rgba(200, 16, 58, 0.08);
}

.mode-tabs.tabs-sort-mode .mode-tab,
.category-tabs.tabs-sort-mode .category-tab {
  cursor: grab;
  user-select: none;
}

.mode-tabs.tabs-sort-mode .mode-tab.dragging,
.category-tabs.tabs-sort-mode .category-tab.dragging {
  opacity: 0.45;
}

.mode-tab,
.category-tab {
  border: 1px solid rgba(200, 16, 58, 0.1);
  background: linear-gradient(135deg, rgba(255, 252, 253, 0.96), rgba(255, 239, 244, 0.94));
  color: #7f1430;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease, background 0.2s ease;
  box-shadow: 0 8px 18px rgba(72, 8, 25, 0.06);
}

.mode-tab:hover,
.category-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(210, 75, 75, 0.26);
  background: linear-gradient(135deg, rgba(255, 246, 249, 1), rgba(255, 231, 238, 1));
}

.mode-tab.active,
.category-tab.active {
  background: linear-gradient(135deg, rgba(200, 16, 58, 0.96), rgba(126, 13, 40, 0.98));
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 12px 24px rgba(135, 14, 45, 0.24);
}

.category-tab.mode-hidden {
  display: none;
}

.site-admin-editor {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, clamp(220px, 18vw, 280px)), 1fr));
  gap: clamp(14px, 1.6vw, 20px);
  align-items: stretch;
}

.product-card {
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 214, 225, 0.24), transparent 24%),
    radial-gradient(circle at 14% 84%, rgba(255, 255, 255, 0.08), transparent 26%),
    linear-gradient(180deg, color-mix(in srgb, var(--tone) 54%, #b10f34 46%), color-mix(in srgb, var(--tone) 26%, #67091f 74%));
  border-radius: 24px;
  padding: 22px;
  border: 1px solid rgba(255, 218, 227, 0.16);
  box-shadow: 0 20px 48px rgba(72, 8, 25, 0.24);
  display: grid;
  gap: 14px;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  min-width: 0;
  height: 100%;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border 0.24s ease;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, rgba(255, 226, 233, 0.25), rgba(255, 244, 247, 0.95), rgba(255, 185, 204, 0.44));
}

.product-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 58px rgba(72, 8, 25, 0.32);
  border-color: rgba(255, 230, 237, 0.34);
}

.product-card.active {
  border-color: rgba(255, 244, 247, 0.52);
  box-shadow: 0 28px 64px rgba(135, 14, 45, 0.38);
}

.product-image {
  aspect-ratio: 1 / 1;
  min-height: clamp(176px, 16vw, 220px);
  border-radius: 18px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(200, 16, 58, 0.2), rgba(255, 222, 230, 0.68));
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(10px, 1vw, 14px);
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.product-card[style] .product-image {
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, color-mix(in srgb, var(--tone) 60%, #ffffff 40%), color-mix(in srgb, var(--tone) 20%, #ffffff 80%));
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: inherit;
  transform: scale(1);
  transition: transform 0.26s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.03);
}

.product-info {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.product-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(18px, 1.4vw, 20px);
  line-height: 1.2;
  margin: 0;
  color: #fff8fb;
  text-shadow: 0 4px 18px rgba(57, 5, 18, 0.3);
  overflow-wrap: anywhere;
}

.product-meta {
  width: fit-content;
  max-width: 100%;
  font-size: 11px;
  color: #fff7fa;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.product-variant-chip {
  width: fit-content;
  max-width: 100%;
  font-size: 11px;
  color: #8e1734;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 6px 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(72, 8, 25, 0.14);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 226, 234, 0.12);
}

.product-price-wrap {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.product-admin-edit {
  font-size: 11px;
  font-weight: 600;
  color: #fff8fb;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.08);
  max-width: 100%;
  text-align: center;
}

.product-admin-edit:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.details-panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  position: sticky;
  top: 18px;
}

.details-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.details-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
}

.details-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.details-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.details-body {
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.details-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.details-block {
  display: grid;
  gap: 8px;
}

.details-heading {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink);
  font-weight: 700;
}

.details-list {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 6px;
}

.details-empty {
  color: var(--muted);
}

.details-buy {
  justify-self: start;
}

.product-price {
  font-size: clamp(21px, 1.9vw, 24px);
  font-weight: 800;
  color: #fffafc;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 18px rgba(57, 5, 18, 0.28);
  overflow-wrap: anywhere;
}

.product-price-note {
  font-size: 11px;
  color: rgba(255, 244, 247, 0.82);
}

.product-buy {
  border: none;
  border-radius: 14px;
  padding: 8px 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(210, 75, 75, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(210, 75, 75, 0.34);
}

.currency-purchase {
  margin-top: 28px;
}

.currency-shell {
  --currency-accent: #d31845;
  --currency-muted: #a80f36;
  --currency-fill: 8.3%;
  width: 100%;
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 255, 255, 0.18), transparent 18%),
    radial-gradient(circle at 86% 16%, rgba(255, 171, 194, 0.2), transparent 20%),
    linear-gradient(135deg, rgba(123, 12, 39, 0.96), rgba(211, 24, 69, 0.9) 54%, rgba(90, 9, 28, 0.98));
  border-radius: 26px;
  box-shadow: 0 22px 50px rgba(72, 8, 25, 0.26);
  padding: 34px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) minmax(260px, 330px);
  gap: 24px;
  align-items: center;
  font-family: 'Inter', 'Roboto', 'Raleway', sans-serif;
  border: 1px solid rgba(255, 232, 238, 0.14);
}

.currency-icon-wrap {
  display: grid;
  place-items: center;
}

.currency-hex {
  width: 94px;
  height: 104px;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
  background: #ffe3ea;
  display: grid;
  place-items: center;
}

.currency-hex-inner {
  width: 70px;
  height: 78px;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
  background: var(--currency-accent);
  display: grid;
  place-items: center;
}

.currency-coin-icon {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.currency-center h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
  color: #fff9fb;
}

.currency-subtitle {
  margin: 8px 0 14px;
  color: rgba(255, 232, 238, 0.76);
  font-size: 14px;
  font-weight: 500;
}

.currency-pay-currency {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.currency-pay-label {
  font-size: 12px;
  color: rgba(255, 232, 238, 0.74);
  font-weight: 600;
}

.currency-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.currency-switch-btn {
  border: none;
  background: transparent;
  color: #fff9fb;
  min-width: 56px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.currency-switch-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.currency-switch-btn.active {
  background: rgba(255, 255, 255, 0.96);
  color: var(--currency-accent);
  box-shadow: 0 10px 22px rgba(72, 8, 25, 0.22);
}

.currency-switch-btn:focus-visible {
  outline: 3px solid rgba(211, 24, 69, 0.28);
  outline-offset: 1px;
}

.currency-slider-wrap {
  display: grid;
  gap: 8px;
}

.currency-slider-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 232, 238, 0.76);
  font-size: 12px;
  font-weight: 600;
}

.currency-range {
  --thumb-size: 24px;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  border: none;
  outline: none;
  background: linear-gradient(
    to right,
    var(--currency-accent) 0%,
    var(--currency-accent) var(--currency-fill),
    #f7d5df var(--currency-fill),
    #f7d5df 100%
  );
}

.currency-range:focus-visible {
  box-shadow: 0 0 0 4px rgba(211, 24, 69, 0.22);
}

.currency-range::-webkit-slider-runnable-track {
  height: 12px;
  border-radius: 999px;
  background: transparent;
}

.currency-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: var(--thumb-size);
  height: var(--thumb-size);
  border-radius: 50%;
  margin-top: -6px;
  border: 6px solid #fff;
  background: var(--currency-accent);
  box-shadow: 0 6px 16px rgba(211, 24, 69, 0.36);
}

.currency-range::-moz-range-track {
  height: 12px;
  border-radius: 999px;
  background: #f7d5df;
}

.currency-range::-moz-range-progress {
  height: 12px;
  border-radius: 999px;
  background: var(--currency-accent);
}

.currency-range::-moz-range-thumb {
  width: var(--thumb-size);
  height: var(--thumb-size);
  border-radius: 50%;
  border: 6px solid #fff;
  background: var(--currency-accent);
  box-shadow: 0 6px 16px rgba(211, 24, 69, 0.36);
}

.currency-ruler {
  height: 8px;
  border-radius: 999px;
  background-image: repeating-linear-gradient(
    to right,
    rgba(211, 24, 69, 0.28) 0 1px,
    transparent 1px 22px
  );
}

.currency-result {
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.currency-result-divider {
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.18);
}

.currency-result-col {
  display: grid;
  gap: 2px;
}

.currency-result-label {
  color: rgba(255, 232, 238, 0.74);
  font-size: 12px;
}

.currency-result-value {
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
  color: #fff9fb;
}

.currency-result-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(211, 24, 69, 0.2);
  border-radius: 10px;
  background: #fff6f8;
  padding: 6px 10px;
  min-width: 170px;
}

.currency-result-prefix,
.currency-result-suffix {
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
  color: var(--currency-accent);
}

.currency-result-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--currency-accent);
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  font-family: 'Inter', 'Roboto', sans-serif;
}

.currency-result-input::-webkit-outer-spin-button,
.currency-result-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.currency-result-input[type=number] {
  -moz-appearance: textfield;
}

.currency-actions {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

.currency-buy-btn {
  border: none;
  border-radius: 13px;
  background: var(--currency-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  min-height: 56px;
  padding: 10px 12px 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 12px 24px rgba(211, 24, 69, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.currency-buy-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(211, 24, 69, 0.34);
}

.currency-buy-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.currency-buy-btn:focus-visible {
  outline: 3px solid rgba(211, 24, 69, 0.32);
  outline-offset: 2px;
}

.currency-buy-arrow {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff0f4;
  color: var(--currency-accent);
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
}

.currency-buy-note {
  min-height: 16px;
  font-size: 12px;
  color: var(--currency-muted);
}

.currency-legal {
  margin: 0;
  font-size: 12px;
  color: var(--currency-muted);
  line-height: 1.45;
}

.currency-legal a {
  color: var(--currency-accent);
  text-decoration: none;
}

.currency-legal a:hover {
  text-decoration: underline;
}

.currency-modal-card {
  width: min(440px, 100%);
}

.currency-checkout-field {
  display: grid;
  gap: 6px;
  margin: 8px 0 14px;
  font-size: 12px;
  color: var(--muted);
}

.currency-checkout-field select,
.currency-checkout-field input {
  border-radius: 12px;
  border: 1px solid rgba(210, 75, 75, 0.25);
  padding: 10px 12px;
  font-family: 'Inter', 'Roboto', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: #fff8f8;
}

.payment-methods-compact {
  margin: 8px 0 14px;
}

.site-footer {
  max-width: 100%;
  margin: 40px auto 60px;
  padding: 0 32px;
}

.recent-ops {
  margin-top: 28px;
}

.ops-card {
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 182, 202, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(124, 15, 41, 0.16), rgba(255, 251, 252, 0.96) 16%, rgba(255, 239, 244, 0.94));
  border-radius: 26px;
  box-shadow: 0 18px 44px rgba(72, 8, 25, 0.14);
  padding: 18px;
  border: 1px solid rgba(255, 226, 234, 0.18);
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.ops-item-card {
  min-width: 0;
  padding: 16px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 214, 225, 0.22), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 240, 245, 0.96)),
    var(--card);
  border: 1px solid rgba(200, 16, 58, 0.1);
  box-shadow: 0 14px 34px rgba(72, 8, 25, 0.1);
}

.ops-item-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.ops-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #d63b3b, #8c1f1f);
  color: #fff;
  box-shadow: 0 10px 24px rgba(214, 59, 59, 0.26);
}

.ops-item-head {
  min-width: 0;
}

.ops-player {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ops-meta {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

.ops-product {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  margin-bottom: 12px;
  word-break: break-word;
}

.ops-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(214, 59, 59, 0.1);
  color: #a32828;
  border: 1px solid rgba(214, 59, 59, 0.08);
  font-size: 12px;
  font-weight: 700;
}

.ops-empty {
  padding: 16px;
  color: var(--muted);
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.14), transparent 20%),
    radial-gradient(circle at 82% 18%, rgba(255, 173, 196, 0.2), transparent 18%),
    linear-gradient(135deg, rgba(123, 12, 39, 0.98), rgba(200, 16, 58, 0.94) 52%, rgba(94, 10, 29, 0.98));
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 24px 58px rgba(72, 8, 25, 0.3);
  font-size: 13px;
  color: rgba(255, 238, 243, 0.82);
  border: 1px solid rgba(255, 240, 244, 0.14);
}

.footer-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  color: #fff8fb;
  margin-bottom: 8px;
}

.footer-sub {
  color: rgba(255, 234, 240, 0.76);
}

.footer-meta {
  display: grid;
  gap: 6px;
}

.footer-link {
  color: #fff9fb;
  text-decoration: none;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.footer-payments {
  gap: 8px;
  align-content: start;
}

.footer-payment-logo {
  max-height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(66, 7, 22, 0.2);
}

.donate {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.donate-panel,
.info-panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.panel-head h2 {
  font-family: 'Montserrat', sans-serif;
  margin: 0 0 8px;
}

.panel-head p {
  margin: 0 0 20px;
  color: var(--muted);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.amount-btn {
  background: #f7f5f1;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 14px 12px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.amount-btn.active,
.amount-btn:hover {
  border-color: rgba(210, 75, 75, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(210, 75, 75, 0.18);
}

.amount-value {
  font-size: 20px;
  font-weight: 700;
}

.amount-currency {
  font-size: 12px;
  color: var(--muted);
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.primary {
  border: none;
  border-radius: 16px;
  padding: 12px 20px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(210, 75, 75, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(210, 75, 75, 0.35);
}

.small-note {
  color: var(--muted);
  font-size: 12px;
}

.info-panel h3 {
  margin: 0 0 12px;
  font-family: 'Montserrat', sans-serif;
}

.badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(210, 75, 75, 0.12);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.perk-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.perk-list li {
  position: relative;
  padding-left: 18px;
}

.perk-list li::before {
  content: '*';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10;
}

.modal.open {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  width: min(420px, 100%);
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow);
  max-height: 90vh;
  overflow-y: auto;
}

#details-modal .modal-card {
  width: min(520px, 100%);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}

.modal-header h3 {
  margin: 0 0 6px;
  font-family: 'Montserrat', sans-serif;
}

.modal-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.modal-form {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.modal-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.modal-form input {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fdfbf9;
  color: var(--ink);
  font-family: 'Raleway', sans-serif;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 10px;
  background: #fdfbf9;
}

.payment-methods-title {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--muted);
}

.payment-method-card {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink);
  background: #fff;
}

.payment-icon {
  color: var(--accent);
  font-weight: 800;
}

.field-hint {
  margin-top: -6px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.field-hint.compact {
  margin-top: 0;
}

.privilege-duration-field {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #fdfbf9;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.privilege-duration-top,
.privilege-duration-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.privilege-duration-top {
  font-size: 13px;
  color: var(--muted);
}

.privilege-duration-top strong {
  color: var(--ink);
}

.privilege-duration-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.privilege-duration-option {
  position: relative;
  cursor: pointer;
}

.privilege-duration-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.privilege-duration-option span {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.privilege-duration-option strong {
  color: var(--ink);
  font-size: 14px;
}

.privilege-duration-option small {
  color: var(--muted);
  font-size: 11px;
}

.privilege-duration-option:hover span {
  transform: translateY(-1px);
  border-color: rgba(210, 75, 75, 0.24);
  box-shadow: 0 12px 22px rgba(18, 18, 18, 0.06);
}

.privilege-duration-option input:checked + span {
  border-color: rgba(210, 75, 75, 0.4);
  background: rgba(210, 75, 75, 0.08);
  box-shadow: 0 14px 26px rgba(210, 75, 75, 0.12);
}

.privilege-duration-option input:focus-visible + span {
  outline: 2px solid rgba(210, 75, 75, 0.35);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .privilege-duration-options {
    grid-template-columns: 1fr;
  }
}

.modal-inline-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -4px;
  margin-bottom: 2px;
}

.calculate-upgrade-btn {
  border: 1px solid rgba(210, 75, 75, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
  background: rgba(210, 75, 75, 0.08);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.calculate-upgrade-btn:hover {
  background: rgba(210, 75, 75, 0.12);
  border-color: rgba(210, 75, 75, 0.28);
  transform: translateY(-1px);
}

.calculate-upgrade-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.payment-method-card input {
  width: 14px;
  height: 14px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  accent-color: var(--accent);
}

.payment-method-card img {
  width: auto;
  height: 18px;
  object-fit: contain;
  display: block;
}

@media (max-width: 640px) {
  .payment-methods {
    grid-template-columns: 1fr;
  }

  .modal-inline-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.modal-summary {
  display: grid;
  gap: 8px;
  background: #f7f5f1;
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
}

.modal-summary div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-summary .total {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

.modal-legal {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.modal-legal a {
  color: var(--accent);
  text-decoration: none;
}

.modal-legal a:hover {
  text-decoration: underline;
}

.form-note {
  font-size: 12px;
  color: var(--muted);
}

.privilege-upgrade-box {
  display: grid;
  gap: 8px;
  background: rgba(210, 75, 75, 0.06);
  border: 1px solid rgba(210, 75, 75, 0.12);
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
}

.privilege-upgrade-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.privilege-upgrade-row span {
  color: var(--muted);
}

.privilege-upgrade-row strong {
  color: var(--ink);
  text-align: right;
}

.privilege-upgrade-note {
  font-size: 12px;
  line-height: 1.45;
  color: var(--accent);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

@media (max-width: 980px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .status {
    text-align: left;
    width: 100%;
    justify-items: start;
  }
  .shop-grid {
    grid-template-columns: 1fr;
  }
  .currency-shell {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 16px;
  }
  .currency-icon-wrap {
    justify-self: start;
  }
  .currency-actions {
    justify-items: start;
  }
  .currency-buy-btn {
    width: min(100%, 360px);
  }
  .details-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    padding: 12px 14px;
  }
  .banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-card-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-logo {
    width: 48px;
    height: 48px;
  }
  .hero-logo img {
    width: 28px;
    height: 28px;
  }
  .hero {
    padding: 20px 14px 16px;
  }
  main {
    padding: 0 14px 48px;
  }
  .currency-center h3 {
    font-size: 24px;
  }
  .currency-result {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .currency-result-divider {
    width: 100%;
    height: 1px;
  }
  .currency-result-value {
    font-size: 28px;
  }
  .ops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .panel-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-tabs {
    gap: 8px;
  }
  .page-tab {
    width: 100%;
    justify-content: center;
  }
  .anarchy-subtabs {
    gap: 8px;
  }
  .anarchy-subtab {
    width: 100%;
    text-align: center;
  }
  .ops-grid {
    grid-template-columns: 1fr;
  }
  .status {
    justify-items: start;
    text-align: left;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-card {
    padding: 18px;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatGlow {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(20px, -18px, 0) scale(1.05);
  }
}

@keyframes newsTicker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

body:not(.admin-session) {
  background:
    radial-gradient(circle at top right, rgba(200, 16, 58, 0.14), transparent 42%),
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.92), transparent 30%),
    radial-gradient(circle at 85% 78%, rgba(200, 16, 58, 0.1), transparent 34%),
    linear-gradient(180deg, #fff7f8 0%, #fffdfd 32%, #feecef 100%);
}

body:not(.admin-session)::before {
  background: radial-gradient(circle, rgba(200, 16, 58, 0.34), rgba(200, 16, 58, 0.04));
}

body:not(.admin-session)::after {
  background: radial-gradient(circle, rgba(255, 166, 186, 0.42), rgba(255, 166, 186, 0.05));
}

body:not(.admin-session) .topbar-inner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 238, 242, 0.98));
  border: none;
  border-bottom: 1px solid rgba(200, 16, 58, 0.08);
  border-radius: 0;
  box-shadow: var(--shadow);
}

body:not(.admin-session) .brand {
  color: var(--ink);
}

body:not(.admin-session) .logo-wrap {
  background: linear-gradient(135deg, rgba(200, 16, 58, 0.16), rgba(255, 255, 255, 0.95));
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

body:not(.admin-session) .brand-tagline {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

body:not(.admin-session) .online-badge {
  background: rgba(200, 16, 58, 0.1);
  color: var(--green);
  border: none;
  box-shadow: none;
}

body:not(.admin-session) .online-forum {
  color: var(--accent);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 232, 238, 0.98));
  border: 1px solid rgba(200, 16, 58, 0.16);
  box-shadow: none;
}

body:not(.admin-session) .online-forum:hover {
  color: var(--accent);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 232, 238, 0.98));
}

body:not(.admin-session) .badge-dot {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(200, 16, 58, 0.45);
}

body:not(.admin-session) .status {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

body:not(.admin-session) .status-label,
body:not(.admin-session) .status-ip {
  color: var(--muted);
}

body:not(.admin-session) .status-value {
  color: var(--ink);
}

body:not(.admin-session) .status-copy {
  color: var(--accent);
}

body:not(.admin-session) .section-head {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

body:not(.admin-session) .section-head h2 {
  color: var(--ink);
}

body:not(.admin-session) .section-head p {
  color: var(--muted);
}

body:not(.admin-session) .section-head-link {
  border: 1px solid rgba(200, 16, 58, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  box-shadow: 0 8px 18px rgba(200, 16, 58, 0.08);
}

body:not(.admin-session) .section-head-link:hover {
  background: rgba(255, 255, 255, 0.96);
}

body:not(.admin-session) .step {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 241, 245, 0.98));
  border: 1px solid rgba(200, 16, 58, 0.12);
  color: var(--ink);
  box-shadow: none;
}

body:not(.admin-session) .product-area {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

body:not(.admin-session) .mode-tabs,
body:not(.admin-session) .category-tabs {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
}

body:not(.admin-session) .mode-tab,
body:not(.admin-session) .category-tab {
  border: 1px solid rgba(200, 16, 58, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 241, 245, 0.98));
  color: var(--ink);
  box-shadow: none;
}

body:not(.admin-session) .mode-tab:hover,
body:not(.admin-session) .category-tab:hover {
  border-color: rgba(210, 75, 75, 0.35);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 241, 245, 0.98));
}

body:not(.admin-session) .mode-tab.active,
body:not(.admin-session) .category-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 10px 22px rgba(210, 75, 75, 0.25);
}

body:not(.admin-session) .product-card {
  background:
    radial-gradient(circle at top right, rgba(255, 212, 223, 0.38), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(255, 239, 244, 0.96));
  border: 1px solid rgba(200, 16, 58, 0.14);
  box-shadow: 0 18px 44px rgba(72, 8, 25, 0.12);
}

body:not(.admin-session) .product-card::before {
  background: linear-gradient(90deg, rgba(200, 16, 58, 0.22), rgba(200, 16, 58, 0.85), rgba(255, 178, 200, 0.52));
}

body:not(.admin-session) .product-card::after {
  border: 1px solid rgba(255, 255, 255, 0.66);
}

body:not(.admin-session) .product-card:hover {
  box-shadow: 0 24px 52px rgba(72, 8, 25, 0.18);
  border-color: rgba(200, 16, 58, 0.34);
}

body:not(.admin-session) .product-card.active {
  border-color: rgba(200, 16, 58, 0.72);
  box-shadow: 0 28px 64px rgba(135, 14, 45, 0.22);
}

body:not(.admin-session) .product-title,
body:not(.admin-session) .product-price {
  color: var(--ink);
  text-shadow: none;
}

body:not(.admin-session) .product-meta {
  color: #8e1734;
  background: rgba(200, 16, 58, 0.08);
  border: 1px solid rgba(200, 16, 58, 0.12);
  box-shadow: none;
}

body:not(.admin-session) .product-variant-chip {
  color: #8e1734;
  background: rgba(200, 16, 58, 0.08);
  border: 1px solid rgba(200, 16, 58, 0.12);
  box-shadow: none;
}

body:not(.admin-session) .product-footer {
  border-top: none;
  padding-top: 4px;
}

body:not(.admin-session) .product-admin-edit {
  color: #7d4d5b;
  border: 1px solid rgba(200, 16, 58, 0.16);
  background: rgba(255, 255, 255, 0.76);
}

body:not(.admin-session) .currency-shell {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(255, 241, 245, 0.98));
  border: none;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(15, 18, 24, 0.1);
}

body:not(.admin-session) .currency-center h3,
body:not(.admin-session) .currency-result-value {
  color: var(--currency-accent);
}

body:not(.admin-session) .currency-subtitle,
body:not(.admin-session) .currency-pay-label,
body:not(.admin-session) .currency-slider-top,
body:not(.admin-session) .currency-result-label {
  color: var(--currency-muted);
}

body:not(.admin-session) .currency-switch {
  background: #f9d8e1;
  border: 1px solid rgba(211, 24, 69, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body:not(.admin-session) .currency-switch-btn {
  color: var(--currency-accent);
}

body:not(.admin-session) .currency-switch-btn:hover {
  background: rgba(211, 24, 69, 0.14);
  color: var(--currency-muted);
}

body:not(.admin-session) .currency-switch-btn.active {
  background: var(--currency-accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(211, 24, 69, 0.3);
}

body:not(.admin-session) .currency-result {
  background: transparent;
  border: 1px solid rgba(211, 24, 69, 0.2);
  box-shadow: none;
}

body:not(.admin-session) .currency-result-divider {
  background: rgba(211, 24, 69, 0.18);
}

body:not(.admin-session) .rules-mode-panel {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

body:not(.admin-session) .ops-card {
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 182, 202, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(124, 15, 41, 0.16), rgba(255, 251, 252, 0.96) 16%, rgba(255, 239, 244, 0.94));
  border: 1px solid rgba(255, 226, 234, 0.18);
  box-shadow: 0 18px 44px rgba(72, 8, 25, 0.14);
}

body:not(.admin-session) .ops-item-card {
  background:
    radial-gradient(circle at top right, rgba(255, 214, 225, 0.22), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 240, 245, 0.96)),
    var(--card);
  border: 1px solid rgba(200, 16, 58, 0.1);
  box-shadow: 0 14px 34px rgba(72, 8, 25, 0.1);
}

body:not(.admin-session) .ops-avatar {
  background: linear-gradient(135deg, #d63b3b, #8c1f1f);
  color: #fff;
  box-shadow: 0 10px 24px rgba(214, 59, 59, 0.26);
}

body:not(.admin-session) .ops-player,
body:not(.admin-session) .ops-product {
  color: var(--ink);
}

body:not(.admin-session) .ops-meta,
body:not(.admin-session) .ops-empty {
  color: var(--muted);
}

body:not(.admin-session) .ops-mode {
  background: rgba(214, 59, 59, 0.1);
  color: #a32828;
  border: 1px solid rgba(214, 59, 59, 0.08);
}

body:not(.admin-session) .footer-grid {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(255, 240, 244, 0.98));
  color: var(--muted);
  border: none;
  box-shadow: var(--shadow);
}

body:not(.admin-session) .footer-title {
  color: var(--ink);
}

body:not(.admin-session) .footer-sub {
  color: var(--muted);
}

body:not(.admin-session) .footer-link {
  color: var(--accent);
  background: transparent;
  border: none;
  padding: 0;
}

body:not(.admin-session) .footer-link:hover {
  text-decoration: underline;
  background: transparent;
  transform: none;
}

body:not(.admin-session) .footer-payment-logo {
  background: transparent;
  box-shadow: none;
  padding: 0;
}
