:root {
  color-scheme: dark;
  --bg: #080410;
  --bg-2: #120826;
  --card: rgba(26, 14, 50, 0.72);
  --card-border: rgba(120, 74, 255, 0.35);
  --text: #f5f1ff;
  --muted: rgba(214, 202, 255, 0.65);
  --accent: #7a3cff;
  --accent-2: #a067ff;
  --glow: rgba(144, 88, 255, 0.6);
  --bottom-nav-height: 76px;
}

/* --- Shop v2 (compact, no nested modals) --- */

.shop-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}

.shop-preview-card {
  border-radius: 22px;
  background: rgba(20, 12, 44, 0.64);
  border: 1px solid rgba(124, 92, 255, 0.28);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
  padding: 14px 14px 12px;
}

.shop-preview-title {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(236, 232, 255, 0.9);
  margin-bottom: 10px;
}

.shop-preview-profile {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
}

.shop-preview-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(124, 92, 255, 0.18);
  border: 1px solid rgba(124, 92, 255, 0.35);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  background-size: cover;
  background-position: center;
}

.shop-preview-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-preview-name {
  font-weight: 900;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.94);
}

.shop-preview-listing-title {
  font-weight: 900;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.92);
}

.shop-preview-listing-meta {
  margin-top: 4px;
  color: rgba(214, 205, 255, 0.74);
  font-size: 13px;
}

.shop-preview-seller-card {
  margin-top: 10px;
}

.shop-preview-seller-card.seller-card {
  padding: 12px;
}

.shop-sections {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.shop-section {
  border-radius: 22px;
  background: rgba(20, 12, 44, 0.46);
  border: 1px solid rgba(124, 92, 255, 0.22);
  padding: 12px 12px 10px;
}

.shop-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.shop-section-title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
}

.shop-section-title .shop-section-note {
  font-size: 12px;
  color: rgba(214, 205, 255, 0.68);
}

.shop-row {
  position: relative;
  margin-top: 10px;
}

.shop-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 10px;
  -webkit-overflow-scrolling: touch;
}

.shop-track::-webkit-scrollbar {
  height: 6px;
}

.shop-track::-webkit-scrollbar-thumb {
  background: rgba(124, 92, 255, 0.25);
  border-radius: 999px;
}

.shop-card {
  scroll-snap-align: start;
  flex: 0 0 78%;
  max-width: 360px;
  border-radius: 22px;
  padding: 14px;
  background: rgba(12, 7, 22, 0.62);
  border: 1px solid rgba(124, 92, 255, 0.22);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.36);
}

.shop-card--gold {
  background: linear-gradient(135deg, rgba(245, 205, 110, 0.22), rgba(12, 7, 22, 0.64));
  border-color: rgba(245, 205, 110, 0.32);
}

.shop-card--blue {
  background: linear-gradient(135deg, rgba(78, 196, 255, 0.22), rgba(12, 7, 22, 0.64));
  border-color: rgba(78, 196, 255, 0.28);
}

.shop-card--violet {
  background: linear-gradient(135deg, rgba(155, 108, 255, 0.22), rgba(12, 7, 22, 0.64));
  border-color: rgba(155, 108, 255, 0.28);
}

.shop-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.shop-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(10, 7, 22, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.shop-card-title {
  font-size: 20px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.94);
  margin: 2px 0 0;
}

.shop-card-subtitle {
  font-size: 13px;
  color: rgba(220, 210, 255, 0.74);
  margin-top: 6px;
}

.shop-card-desc {
  font-size: 13px;
  color: rgba(235, 232, 255, 0.78);
  margin-top: 10px;
  line-height: 1.35;
}

.shop-card-preview {
  margin-top: 12px;
  border-radius: 18px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-card-bottom {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.shop-card-price {
  width: 100%;
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 900;
  font-size: 16px;
}

.shop-card-price:disabled {
  opacity: 0.55;
}

.shop-card-action {
  width: 100%;
  border-radius: 18px;
  padding: 14px 14px;
  font-weight: 900;
  font-size: 16px;
}

.shop-row-arrow {
  position: absolute;
  top: 44%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 7, 22, 0.55);
  color: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  z-index: 2;
}

.shop-row-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.shop-row-arrow--prev {
  left: 4px;
}

.shop-row-arrow--next {
  right: 4px;
}

.color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  position: relative;
  flex: 0 0 auto;
}

.color-swatch.is-selected::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.color-swatch.is-locked {
  filter: grayscale(1);
  opacity: 0.55;
}

.cosmetic-badge {
  width: 28px;
  height: 28px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 7, 22, 0.35);
  color: rgba(255, 255, 255, 0.92);
}

.cosmetic-badge[data-badge-style="badge_style_gold"] {
  background: linear-gradient(135deg, rgba(245, 205, 110, 0.45), rgba(124, 92, 255, 0.25));
  border-color: rgba(245, 205, 110, 0.5);
  box-shadow: 0 10px 22px rgba(245, 205, 110, 0.14);
}

.cosmetic-badge[data-badge-style="badge_style_neon"] {
  background: rgba(10, 7, 22, 0.35);
  border-color: rgba(31, 230, 209, 0.55);
  box-shadow: 0 0 0 3px rgba(31, 230, 209, 0.10), 0 14px 30px rgba(31, 230, 209, 0.10);
}

.cosmetic-badge[data-badge-style="badge_style_ultra"] {
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0) 55%),
    linear-gradient(135deg, rgba(124, 92, 255, 0.35), rgba(31, 230, 209, 0.18));
  border-color: rgba(31, 230, 209, 0.55);
  box-shadow: 0 0 0 3px rgba(31, 230, 209, 0.10), 0 14px 30px rgba(31, 230, 209, 0.14);
}

.seller-card[data-listing-frame="listing_frame_violet"] {
  border-color: rgba(155, 108, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(155, 108, 255, 0.10), 0 18px 44px rgba(155, 108, 255, 0.10);
}

@media (min-width: 720px) {
  .shop-preview-grid {
    grid-template-columns: 1fr 1fr;
  }
  .shop-card {
    flex-basis: 340px;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

button,
input,
textarea,
select {
  font-family: inherit;
  touch-action: manipulation;
}

button,
.pill,
.server-btn,
.settings-item,
.nav-btn,
.listing-item,
.icon-btn,
.chip-btn,
.action-btn,
.ghost-btn {
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
  will-change: transform;
}

.tap-active {
  transform: scale(0.98);
  filter: brightness(1.05);
}

body {
  font-family: "Space Grotesk", "Manrope", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1c0f37 0%, var(--bg) 45%),
    radial-gradient(circle at 20% 90%, #2b164f 0%, transparent 50%);
  color: var(--text);
  min-height: 100dvh;
  padding: 24px 16px 110px;
  overflow-x: hidden;
  touch-action: manipulation;
}

body.modal-open {
  overflow: hidden;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  animation: float 12s ease-in-out infinite;
}

.orb-1 {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(122, 60, 255, 0.6), transparent 70%);
  top: -60px;
  right: -40px;
}

.orb-2 {
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(164, 96, 255, 0.5), transparent 70%);
  bottom: 10%;
  left: -40px;
  animation-delay: 2s;
}

.orb-3 {
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(116, 40, 220, 0.6), transparent 70%);
  top: 40%;
  right: 10%;
  animation-delay: 4s;
}

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
  width: 100%;
  max-width: 520px;
  min-width: 0;
  margin: 0 auto;
}

.page {
  display: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.page.active {
  display: grid;
  gap: 22px;
  min-height: calc(100dvh - 110px);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  align-content: start;
}

.page-admin {
  gap: 16px;
}

.admin-card {
  display: grid;
  gap: 12px;
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.admin-section {
  display: none;
  gap: 10px;
}

.admin-section.active {
  display: grid;
}

.admin-tabs .pill {
  font-size: 11px;
}

.admin-row {
  display: grid;
  gap: 4px;
}

.notice-card {
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.35);
  margin-top: 10px;
}

.notice-title {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.notice-text {
  font-size: 12px;
  color: var(--muted);
}

.notice-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.toast-stack {
  position: fixed;
  left: 50%;
  bottom: 120px;
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  z-index: 6;
  width: min(320px, 92vw);
  pointer-events: none;
}

.toast {
  background: rgba(18, 12, 32, 0.95);
  border: 1px solid rgba(124, 92, 255, 0.35);
  border-radius: 14px;
  padding: 10px 12px;
  color: #fff;
  font-size: 12px;
  box-shadow: 0 12px 24px rgba(10, 4, 26, 0.35);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
  white-space: pre-line;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  border-color: rgba(110, 245, 163, 0.4);
}

.toast-danger {
  border-color: rgba(255, 143, 143, 0.45);
}

.admin-row strong {
  font-size: 13px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 20px;
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 40px rgba(10, 4, 26, 0.45);
  animation: fadeUp 0.8s ease forwards;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  align-self: start;
}

.identity-card {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 16px;
  align-items: center;
}

.identity-card--public {
  grid-template-columns: 96px 1fr;
}

.profile-header--seller {
  grid-template-columns: 76px 1fr;
}

.profile-header--seller .identity-side {
  display: none;
}

.profile-header--seller .avatar {
  width: 56px;
  height: 56px;
  font-size: 16px;
}

.profile-header--seller .role-badge {
  margin-top: 4px;
}

.profile-header--mini {
  grid-template-columns: 72px 1fr;
  gap: 12px;
}

.profile-header--mini .identity-side {
  display: none;
}

.profile-header--mini .avatar {
  width: 54px;
  height: 54px;
  font-size: 16px;
  box-shadow: 0 0 14px rgba(122, 60, 255, 0.55);
}

.profile-header--mini .shop-preview-name {
  font-weight: 900;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.94);
}

.profile-header--mini .role-badge.compact {
  margin-top: 4px;
}

.shop-tryon {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-tryon-title {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(214, 205, 255, 0.72);
}

.shop-tryon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.shop-tryon-main {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 6px;
}

.shop-tryon-name-row {
  min-width: 0;
}

.shop-tryon-name {
  font-weight: 900;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.94);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-tryon-avatar {
  width: 44px;
  height: 44px;
  font-size: 16px;
  box-shadow: 0 0 12px rgba(122, 60, 255, 0.45);
  flex: 0 0 auto;
}

.shop-tryon-avatar--sm {
  width: 34px;
  height: 34px;
  font-size: 14px;
  box-shadow: none;
}

.shop-mini-listing-title {
  font-weight: 900;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
}

.shop-mini-listing-meta {
  font-size: 12px;
  color: rgba(214, 205, 255, 0.68);
}

.store-listing-preview {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.store-listing-preview-text {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.store-listing-title {
  font-weight: 900;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-listing-meta {
  font-size: 12px;
  color: rgba(214, 205, 255, 0.68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-listing-seller {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  min-width: 0;
}

.store-listing-avatar {
  width: 34px;
  height: 34px;
  font-size: 14px;
  box-shadow: none;
}

.store-listing-name-row {
  min-width: 0;
}

.store-listing-name {
  font-weight: 900;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listing-frame-target[data-listing-frame="listing_frame_violet"] {
  border-color: rgba(155, 108, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(155, 108, 255, 0.10), 0 18px 44px rgba(155, 108, 255, 0.10);
}

.avatar-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.identity-side {
  display: grid;
  justify-items: end;
  gap: 8px;
  align-self: center;
}

.identity-side .ghost-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
}

.identity-side .ghost-btn svg {
  width: 18px;
  height: 18px;
}

.identity-side .notif-btn svg {
  width: 60%;
  height: 60%;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #9c62ff, #5a2fd2);
  font-weight: 600;
  font-size: 20px;
  box-shadow: 0 0 18px rgba(122, 60, 255, 0.7);
  overflow: hidden;
}

.avatar.avatar-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.identity-info .profile-name {
  font-size: 22px;
  margin-bottom: 4px;
}

.identity-info {
  display: grid;
  align-content: center;
  gap: 2px;
}

.name-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.role-inline {
  margin-left: 2px;
}

.name-row .profile-name {
  margin-bottom: 0;
}

.handle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.profile-badges {
  display: inline-grid;
  gap: 6px;
  margin-top: 6px;
}

.restriction-pill {
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(255, 120, 120, 0.14);
  border: 1px solid rgba(255, 120, 120, 0.45);
  color: #ffd1d1;
}

.role-inline {
  font-size: 11px;
  color: rgba(170, 150, 215, 0.85);
  font-weight: 500;
  letter-spacing: 0.2px;
}

.staff-shield {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(122, 60, 255, 0.12);
  border: 1px solid rgba(122, 60, 255, 0.35);
  color: #f7f1ff;
}

.staff-shield svg {
  width: 14px;
  height: 14px;
}

.cosmetic-badge {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 198, 120, 0.14);
  border: 1px solid rgba(255, 198, 120, 0.45);
  color: rgba(255, 236, 205, 0.98);
  box-shadow: 0 10px 18px rgba(255, 185, 105, 0.14);
  font-size: 15px;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", system-ui, sans-serif;
  overflow: hidden;
  flex: 0 0 auto;
}

.cosmetic-badge svg {
  width: 15px;
  height: 15px;
  display: block;
}

.staff-shield {
  flex: 0 0 auto;
}

.staff-shield svg {
  display: block;
}

.name-row {
  min-width: 0;
}

.name-row .profile-name,
.name-row #publicName,
.name-row #sellerName {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-badge {
  --badge-edge: #6c3cff;
  --badge-main: #b68dff;
  --badge-dark: #1b0f3a;
  --badge-glow: rgba(140, 96, 255, 0.45);
  --badge-gradient: linear-gradient(90deg, var(--badge-edge), var(--badge-main), var(--badge-edge));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  position: relative;
  padding: 7px 16px;
  min-height: 28px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 2px rgba(4, 7, 18, 0.6);
  line-height: 1;
  z-index: 0;
  background: var(--badge-dark);
  isolation: isolate;
  border-radius: 999px;
  box-shadow: 0 10px 20px var(--badge-glow);
}

.role-badge.compact {
  padding: 7px 14px;
  min-height: 24px;
  font-size: 10px;
  letter-spacing: 0.5px;
}

.role-badge::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-sizing: border-box;
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}

.role-badge::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 55%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 14px, transparent 14px 28px),
    var(--badge-gradient);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.12);
  z-index: -2;
}

.role-badge.rank-newbie {
  --badge-edge: #5c5f6f;
  --badge-main: #9aa1b8;
  --badge-dark: #1a1c24;
  --badge-glow: rgba(154, 161, 184, 0.35);
}

.role-badge.rank-trusted {
  --badge-edge: #1f9d6a;
  --badge-main: #5ee59c;
  --badge-dark: #0f2b1c;
  --badge-glow: rgba(94, 229, 156, 0.4);
}

.role-badge.rank-elite {
  --badge-edge: #7a4dff;
  --badge-main: #c7a6ff;
  --badge-dark: #231142;
  --badge-glow: rgba(199, 166, 255, 0.45);
}

.role-badge.rank-legend {
  --badge-edge: #ffb84f;
  --badge-main: #ffe1a6;
  --badge-dark: #3a230b;
  --badge-glow: rgba(255, 225, 166, 0.45);
}

.role-badge.rank-admin {
  --badge-edge: #ff6b8a;
  --badge-main: #ff9fb6;
  --badge-dark: #3b1320;
  --badge-glow: rgba(255, 159, 182, 0.45);
}

.role-badge[data-label-style="label_style_amethyst"] {
  --badge-gradient: linear-gradient(135deg, #7C5CFF, #FF4D8D);
  --badge-dark: #1b0f3a;
  --badge-glow: rgba(124, 92, 255, 0.45);
}

.role-badge[data-label-style="label_style_aurora"] {
  --badge-gradient: linear-gradient(135deg, #1FE6D1, #4DA3FF);
  --badge-dark: #06212c;
  --badge-glow: rgba(31, 230, 209, 0.42);
}

.role-badge[data-label-style="label_style_sunset"] {
  --badge-gradient: linear-gradient(135deg, #FF4D8D, #FFB340);
  --badge-dark: #2f1321;
  --badge-glow: rgba(255, 77, 141, 0.42);
}

.role-badge[data-label-style="label_style_ice"] {
  --badge-gradient: linear-gradient(135deg, #BFF4FF, #C7D6FF);
  --badge-dark: #0d1a2b;
  --badge-glow: rgba(199, 214, 255, 0.35);
}

.role-badge[data-label-style="label_style_lime"] {
  --badge-gradient: linear-gradient(135deg, #B6FF3B, #1FE6D1);
  --badge-dark: #0b2b1c;
  --badge-glow: rgba(182, 255, 59, 0.32);
}

.role-badge[data-label-style="label_style_goldrush"] {
  --badge-gradient: linear-gradient(135deg, #FFD56A, #FFB340);
  --badge-dark: #3a230b;
  --badge-glow: rgba(255, 179, 64, 0.38);
}

.ghost-btn {
  border-radius: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(12, 7, 25, 0.55);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.menu-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
  letter-spacing: 2px;
  position: relative;
}

.ghost-btn.icon-back {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.ghost-btn.icon-back svg {
  width: 20px;
  height: 20px;
}

.ghost-btn.icon-close {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.ghost-btn.icon-close svg {
  width: 18px;
  height: 18px;
}

.report-btn {
  align-self: start;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
}

.report-btn svg {
  width: 18px;
  height: 18px;
}

.notif-btn,
.settings-btn {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-top: -4px;
  position: relative;
}

.notif-btn svg {
  width: 60%;
  height: 60%;
  display: block;
}

.settings-btn svg {
  width: 60%;
  height: 60%;
  display: block;
  color: #fff;
}

.notif-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #8e5bff;
  color: #fff;
  font-size: 10px;
  line-height: 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 12px rgba(90, 33, 255, 0.35);
}

.coin-wallet {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.referral-card {
  display: grid;
  gap: 10px;
}

.referral-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.referral-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(122, 60, 255, 0.28);
  background: rgba(12, 7, 25, 0.5);
  font-size: 12px;
}

.referral-link span {
  word-break: break-all;
  color: #f0e8ff;
}

.referral-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.referral-stat {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(122, 60, 255, 0.25);
  background: rgba(12, 7, 25, 0.5);
}

.referral-value {
  font-size: 16px;
  font-weight: 700;
  color: #f7f1ff;
}

.referral-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.coin-panel--referrals {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.referrals-hero {
  border-radius: 18px;
  padding: 14px 14px 12px;
  background: radial-gradient(circle at 20% 0%, rgba(122, 60, 255, 0.22), rgba(12, 7, 25, 0.92) 62%);
  border: 1px solid rgba(122, 60, 255, 0.22);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 6px;
}

.referrals-hero-title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.referrals-hero-subtitle {
  font-size: 12px;
  color: rgba(226, 216, 255, 0.86);
  line-height: 1.3;
}

.referrals-cta {
  margin-top: 4px;
  width: 100%;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 16px;
  font-weight: 900;
  font-size: 13px;
}

.referrals-link {
  margin-top: 12px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(122, 60, 255, 0.18);
  background: rgba(12, 7, 25, 0.32);
}

.referrals-link-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.referrals-link-label {
  font-size: 12px;
  font-weight: 900;
  color: rgba(244, 237, 255, 0.92);
  letter-spacing: 0.2px;
}

.referrals-link-url {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: rgba(214, 205, 255, 0.76);
}

.referrals-copy {
  flex: 0 0 auto;
  border-radius: 14px;
  padding: 9px 12px;
  font-weight: 800;
  font-size: 12px;
}

.referrals-stats-line {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.referrals-stat {
  padding: 10px 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(122, 60, 255, 0.18);
  background: rgba(12, 7, 25, 0.32);
  text-align: center;
}

.referrals-stat-value {
  font-size: 18px;
  font-weight: 900;
  color: rgba(247, 241, 255, 0.98);
}

.referrals-stat-label {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(198, 179, 255, 0.75);
}

.referrals-section-title {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 900;
  color: rgba(244, 237, 255, 0.92);
}

.referrals-how {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(122, 60, 255, 0.18);
  background: rgba(12, 7, 25, 0.32);
}

.referrals-how .referrals-section-title {
  margin-top: 0;
}

.referrals-how-list {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: rgba(214, 205, 255, 0.76);
  line-height: 1.35;
}

.referrals-list-block {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(122, 60, 255, 0.18);
  background: rgba(12, 7, 25, 0.32);
}

.referrals-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.referrals-section-head .referrals-section-title {
  margin-top: 0;
}

.referrals-section-meta {
  font-size: 12px;
  font-weight: 900;
  color: rgba(214, 205, 255, 0.76);
}

.referrals-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.referral-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.referral-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.4px;
  color: rgba(244, 237, 255, 0.94);
  background: rgba(122, 60, 255, 0.18);
  border: 1px solid rgba(122, 60, 255, 0.28);
}

.referral-main {
  min-width: 0;
}

.referral-name {
  font-size: 13px;
  font-weight: 900;
  color: rgba(244, 237, 255, 0.94);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.referral-status {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  color: rgba(214, 205, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 7, 25, 0.4);
  white-space: nowrap;
}

.referral-status.is-active {
  color: rgba(210, 255, 245, 0.95);
  border-color: rgba(95, 255, 210, 0.18);
  background: rgba(95, 255, 210, 0.08);
}

.referrals-empty {
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.14);
  font-size: 12px;
  color: rgba(214, 205, 255, 0.76);
  line-height: 1.3;
}

@media (max-width: 380px) {
  .referrals-stats-line {
    grid-template-columns: 1fr;
  }
  .referrals-stat {
    text-align: left;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 12px;
  }
  .referrals-stat-label {
    margin-top: 0;
  }
}

.coin-balance {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.coin-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.coin-actions {
  display: grid;
  gap: 10px;
}

.section-title {
  font-size: 15px;
  margin-bottom: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

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

.header-actions {
  display: grid;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.header-actions--listing {
  grid-template-columns: auto 1fr;
}

.header-actions--listing .section-title {
  justify-self: end;
}

.page-listing .header-actions--listing {
  grid-template-columns: 1fr;
}

.page-listing .header-actions--listing .section-title {
  justify-self: center;
}

.header-actions--profile {
  grid-template-columns: auto 1fr auto;
}

.header-actions--profile .section-title {
  justify-self: center;
}

.page-public .header-actions--profile {
  grid-template-columns: auto auto;
  justify-content: space-between;
}

.page-public #publicBack {
  display: none;
}

.page-public .header-actions--profile {
  grid-template-columns: 1fr;
  justify-content: end;
}

.page-public .header-actions--profile .report-btn {
  justify-self: end;
}

.link-btn {
  background: transparent;
  border: none;
  color: #cbb6ff;
  font-size: 12px;
  cursor: pointer;
}

.listing-tabs {
  margin-bottom: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.listing-tabs::-webkit-scrollbar {
  display: none;
}

.listing-tabs .pill {
  white-space: nowrap;
  flex: 0 0 auto;
  padding: 6px 10px;
  font-size: 11px;
}

.my-listings-empty {
  display: none;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.my-listings-card .listing-meta {
  margin-top: 2px;
}
.my-listings-card .listing-item {
  padding: 10px;
  border-radius: 14px;
}

.listing-actions {
  display: inline-flex;
  gap: 6px;
}

.chip-btn {
  border-radius: 999px;
  border: 1px solid rgba(122, 60, 255, 0.35);
  background: rgba(122, 60, 255, 0.12);
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  cursor: pointer;
}

.chip-stack {
  display: grid;
  gap: 4px;
}

.chip-note {
  font-size: 11px;
  color: var(--muted);
}

.chip-btn.muted {
  opacity: 0.6;
  cursor: not-allowed;
}

.icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(122, 60, 255, 0.35);
  background: rgba(122, 60, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 13px;
}

.icon-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.icon-btn.glow {
  box-shadow: 0 0 12px rgba(255, 145, 0, 0.55);
  border-color: rgba(255, 145, 0, 0.6);
}

.promo-timer {
  font-size: 10px;
  color: rgba(255, 219, 140, 0.98);
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 169, 74, 0.14);
  border: 1px solid rgba(255, 169, 74, 0.25);
  font-variant-numeric: tabular-nums;
}

.stat-item {
  background: rgba(122, 60, 255, 0.08);
  border-radius: 16px;
  padding: 12px;
  border: 1px solid rgba(122, 60, 255, 0.18);
  min-height: 84px;
  display: grid;
  align-content: start;
  gap: 6px;
}

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

.stat-label {
  font-size: 11px;
  color: rgba(198, 179, 255, 0.75);
  margin-top: 0;
}

.page-public .stat-value {
  background: linear-gradient(180deg, #f2e7ff, #b18bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.filter-card {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.market-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.market-search-row .filter-input {
  flex: 1;
  padding: 10px 12px;
  font-size: 12px;
}

.filters-bar {
  width: 100%;
  border-radius: 14px;
  padding: 8px 10px;
  background: rgba(12, 7, 25, 0.5);
  border: 1px solid rgba(122, 60, 255, 0.25);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.filters-bar:hover {
  border-color: rgba(122, 60, 255, 0.45);
  background: rgba(12, 7, 25, 0.6);
}

.filters-bar.highlight {
  animation: filterPulse 2s ease-out 1;
}

.filters-icon {
  font-size: 13px;
}

.filters-text {
  font-size: 11px;
  color: #e7dcff;
}

.filter-group {
  display: grid;
  gap: 8px;
}

.filter-label {
  font-size: 12px;
  color: var(--muted);
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.filter-server-grid {
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}

.filter-server-grid .server-btn {
  min-height: 36px;
}

.filter-group + .filter-group {
  margin-top: 6px;
}

.filters-actions {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.filters-actions .filters-apply {
  margin-top: 6px;
}

@keyframes filterPulse {
  0% {
    box-shadow: 0 0 0 rgba(122, 60, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(122, 60, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 rgba(122, 60, 255, 0);
  }
}

.filter-sub {
  font-size: 11px;
  color: var(--muted);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-group--compact {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pill-group--compact::-webkit-scrollbar {
  display: none;
}

.pill-group--compact .pill {
  white-space: nowrap;
  flex: 0 0 auto;
  padding: 6px 10px;
  font-size: 11px;
}

.pill-group.listing-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pill-group.listing-tabs::-webkit-scrollbar {
  display: none;
}

.pill-group.listing-tabs .pill {
  white-space: nowrap;
  flex: 0 0 auto;
}

.pill-group.locked .pill {
  opacity: 0.6;
  cursor: not-allowed;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(122, 60, 255, 0.35);
  background: rgba(122, 60, 255, 0.12);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
}


.pill.active {
  background: linear-gradient(135deg, #7a3cff, #a86bff);
  border-color: transparent;
}

.filter-input,
.filter-select,
.filter-btn,
.create-form textarea {
  width: 100%;
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(12, 7, 25, 0.6);
  border: 1px solid rgba(122, 60, 255, 0.25);
  color: #fff;
  font-size: 12px;
}

.filters-apply {
  width: 100%;
}

.filter-btn {
  text-align: left;
  cursor: pointer;
}

.listings-card .listing-list {
  display: grid;
  gap: 10px;
}

.top-market-bar {
  margin: 10px 0 12px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 187, 96, 0.35);
  background: linear-gradient(135deg, rgba(255, 193, 120, 0.12), rgba(122, 60, 255, 0.14));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.top-market-bar.is-hidden {
  display: none;
}

.top-market-metrics {
  display: flex;
  gap: 14px;
}

.top-market-metric {
  display: grid;
  gap: 3px;
}

.top-market-label {
  font-size: 11px;
  opacity: 0.75;
}

.top-market-value {
  font-size: 14px;
  font-weight: 700;
}

.top-market-cta {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 12px;
  white-space: nowrap;
}


.listing-item {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(122, 60, 255, 0.18);
  background: rgba(122, 60, 255, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.listing-main {
  display: grid;
  gap: 6px;
}

.listing-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.market-price {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(90deg, #f3eaff, #c4a7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.market-price,
.public-listing-price,
.listing-price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.price-game-note {
  font-size: 10px;
  color: rgba(198, 179, 255, 0.6);
  letter-spacing: 0.2px;
}

.coin-hero {
  padding: 18px;
  background: radial-gradient(circle at top, rgba(140, 98, 255, 0.22), rgba(17, 10, 35, 0.9));
  border-color: rgba(130, 92, 255, 0.45);
  box-shadow: 0 20px 40px rgba(68, 35, 140, 0.28);
}

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

.coin-balance-row {
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.coin-history-link {
  background: transparent;
  border: none;
  padding: 0;
  color: rgba(214, 199, 255, 0.85);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.coin-history-link:active {
  opacity: 0.8;
}

.coin-tiles {
  margin: 14px 0 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.coins-window {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  padding: calc(12px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom));
  background: rgba(7, 4, 15, 0.82);
  backdrop-filter: blur(10px);
  transition: opacity 180ms ease, visibility 0s linear 180ms;
  overscroll-behavior: contain;
}

.coins-window.show {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 220ms ease;
  align-items: stretch;
  justify-content: center;
}

.coins-window-card {
  width: min(560px, 100%);
  height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  max-height: 860px;
  border-radius: 22px;
  border: 1px solid rgba(122, 60, 255, 0.28);
  background: rgba(17, 10, 35, 0.92);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  transform: translateY(18px) scale(0.985);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.coins-window.show .coins-window-card {
  transform: translateY(0) scale(1);
}

.coins-window-header {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(122, 60, 255, 0.18);
  background: rgba(12, 7, 25, 0.55);
}

.coins-window-title {
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  color: rgba(244, 237, 255, 0.95);
  letter-spacing: 0.3px;
}

.coins-window-body {
  overflow: auto;
  padding: 12px 12px 16px;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.coins-pane {
  display: none;
}

.coins-pane.active {
  display: block;
}

.coins-window .coin-panel {
  margin-bottom: 0;
}

.coins-window .coin-panel > .section-title {
  display: none;
}

.coins-window .coin-panel > .coin-panel-note {
  margin-top: 0;
}

body.coins-window-open .action-bar {
  opacity: 0;
  pointer-events: none;
}

body.coins-window-open #createFab {
  opacity: 0;
  pointer-events: none;
}

.shop-action {
  margin-top: 8px;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(122, 60, 255, 0.35);
  background: rgba(122, 60, 255, 0.14);
  color: #fff;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.shop-card.active .shop-action {
  background: rgba(122, 255, 186, 0.12);
  border-color: rgba(122, 255, 186, 0.35);
}

.shop-card.owned .shop-action {
  background: rgba(122, 202, 255, 0.12);
  border-color: rgba(122, 202, 255, 0.35);
}

.shop-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.shop-carousel {
  position: relative;
  margin-top: 12px;
}

.shop-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.shop-track::-webkit-scrollbar {
  display: none;
}

.shop-slide {
  scroll-snap-align: center;
  flex: 0 0 auto;
  width: min(380px, 88vw);
}

.shop-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 10, 24, 0.72);
  color: rgba(244, 237, 255, 0.95);
  backdrop-filter: blur(10px);
  font-size: 22px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: transform 140ms ease, opacity 140ms ease;
}

.shop-nav:active {
  transform: translateY(-50%) scale(0.96);
}

.shop-nav:disabled {
  opacity: 0.25;
  cursor: default;
}

.shop-nav--prev {
  left: 2px;
}

.shop-nav--next {
  right: 2px;
}

.shop-card {
  position: relative;
  overflow: hidden;
  padding-top: 18px;
}

.shop-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.shop-card--badge {
  background: radial-gradient(circle at top, rgba(255, 194, 115, 0.16), rgba(17, 10, 35, 0.92));
  border-color: rgba(255, 194, 115, 0.28);
}

.shop-card--badge .shop-chip {
  background: rgba(255, 194, 115, 0.16);
  border-color: rgba(255, 194, 115, 0.3);
}

.shop-card--nick {
  background: radial-gradient(circle at top, rgba(122, 202, 255, 0.16), rgba(17, 10, 35, 0.92));
  border-color: rgba(122, 202, 255, 0.26);
}

.shop-card--nick .shop-chip {
  background: rgba(122, 202, 255, 0.14);
  border-color: rgba(122, 202, 255, 0.28);
}

.shop-card--frame {
  background: radial-gradient(circle at top, rgba(122, 255, 186, 0.14), rgba(17, 10, 35, 0.92));
  border-color: rgba(122, 255, 186, 0.24);
}

.shop-card--frame .shop-chip {
  background: rgba(122, 255, 186, 0.12);
  border-color: rgba(122, 255, 186, 0.24);
}

.shop-card--title {
  background: radial-gradient(circle at top, rgba(180, 140, 255, 0.16), rgba(17, 10, 35, 0.92));
  border-color: rgba(180, 140, 255, 0.26);
}

.shop-card--title .shop-chip {
  background: rgba(180, 140, 255, 0.12);
  border-color: rgba(180, 140, 255, 0.24);
}

.shop-visibility {
  font-size: 11px;
  color: rgba(198, 179, 255, 0.72);
}

.shop-footer-note {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(198, 179, 255, 0.68);
}

.shop-preview--profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(122, 60, 255, 0.10);
  border: 1px solid rgba(122, 60, 255, 0.22);
}

.shop-preview-name {
  font-size: 16px;
  font-weight: 800;
  color: rgba(244, 237, 255, 0.95);
}

.shop-preview-badge {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(122, 60, 255, 0.12);
  border: 1px solid rgba(122, 60, 255, 0.35);
  color: rgba(244, 237, 255, 0.95);
}

.shop-preview-badge svg {
  width: 16px;
  height: 16px;
}

.avatar-frame {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  border: 2px solid rgba(124, 92, 255, 0.6);
  box-shadow: 0 0 0 6px rgba(124, 92, 255, 0.14);
  font-weight: 800;
  letter-spacing: 0.4px;
}

.coin-tile {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(122, 60, 255, 0.35);
  background: linear-gradient(145deg, rgba(27, 17, 55, 0.95), rgba(20, 10, 40, 0.85));
  padding: 14px;
  display: grid;
  gap: 6px;
  text-align: left;
  color: #f5eeff;
  box-shadow: inset 0 0 22px rgba(122, 60, 255, 0.12);
}

.coin-tile::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at 20% 0%, rgba(var(--tile-accent, 122, 60, 255), 0.16), transparent 55%),
    radial-gradient(circle at 100% 40%, rgba(var(--tile-accent-2, 124, 92, 255), 0.12), transparent 60%);
  pointer-events: none;
}

.coin-tile > * {
  position: relative;
  z-index: 1;
}

.coin-tile--promo {
  --tile-accent: 255, 176, 74;
  --tile-accent-2: 124, 92, 255;
  border-color: rgba(255, 176, 74, 0.32);
  box-shadow: inset 0 0 22px rgba(255, 176, 74, 0.12);
}

.coin-tile--tasks {
  --tile-accent: 95, 255, 210;
  --tile-accent-2: 122, 60, 255;
  border-color: rgba(95, 255, 210, 0.22);
  box-shadow: inset 0 0 22px rgba(95, 255, 210, 0.08);
}

.coin-tile--referrals {
  --tile-accent: 122, 202, 255;
  --tile-accent-2: 255, 146, 200;
  border-color: rgba(122, 202, 255, 0.22);
  box-shadow: inset 0 0 22px rgba(122, 202, 255, 0.08);
}

.coin-tile--shop {
  --tile-accent: 124, 92, 255;
  --tile-accent-2: 255, 205, 110;
  border-color: rgba(124, 92, 255, 0.28);
  box-shadow: inset 0 0 22px rgba(124, 92, 255, 0.1);
}

.coin-tile-icon {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.coin-tile--promo .coin-tile-icon {
  background: rgba(255, 176, 74, 0.18);
}

.coin-tile--tasks .coin-tile-icon {
  background: rgba(95, 255, 210, 0.14);
}

.coin-tile--referrals .coin-tile-icon {
  background: rgba(122, 202, 255, 0.14);
}

.coin-tile--shop .coin-tile-icon {
  background: rgba(124, 92, 255, 0.18);
}

.coin-tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(122, 60, 255, 0.22);
  font-size: 18px;
}

.coin-tile-title {
  font-size: 15px;
  font-weight: 700;
}

.coin-tile-note {
  font-size: 11px;
  color: rgba(198, 179, 255, 0.7);
}

.coin-tile-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 6, 22, 0.55);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: rgba(244, 237, 255, 0.92);
  max-width: calc(100% - 68px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coin-tile--promo .coin-tile-badge {
  border-color: rgba(255, 176, 74, 0.28);
  color: rgba(255, 236, 210, 0.95);
}

.coin-tile--tasks .coin-tile-badge {
  border-color: rgba(95, 255, 210, 0.22);
  color: rgba(210, 255, 245, 0.95);
}

.coin-tile--referrals .coin-tile-badge {
  border-color: rgba(122, 202, 255, 0.22);
  color: rgba(224, 245, 255, 0.95);
}

.coin-panel {
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.coin-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 18% 0%, rgba(var(--panel-accent, 122, 60, 255), 0.20), transparent 60%),
    radial-gradient(circle at 100% 30%, rgba(var(--panel-accent-2, 124, 92, 255), 0.14), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 55%);
  pointer-events: none;
}

.coin-panel > * {
  position: relative;
  z-index: 1;
}

.coin-panel--promo {
  --panel-accent: 124, 92, 255;
  --panel-accent-2: 255, 205, 140;
  border-color: rgba(124, 92, 255, 0.22);
  box-shadow: 0 18px 34px rgba(124, 92, 255, 0.06);
}

.coin-panel--tasks {
  --panel-accent: 124, 92, 255;
  --panel-accent-2: 122, 255, 186;
  border-color: rgba(124, 92, 255, 0.22);
  box-shadow: 0 18px 34px rgba(124, 92, 255, 0.06);
}

.coin-panel--referrals {
  --panel-accent: 122, 202, 255;
  --panel-accent-2: 255, 146, 200;
  border-color: rgba(122, 202, 255, 0.18);
  box-shadow: 0 18px 34px rgba(122, 202, 255, 0.06);
}

.coin-panel--shop {
  --panel-accent: 124, 92, 255;
  --panel-accent-2: 255, 205, 110;
  border-color: rgba(124, 92, 255, 0.22);
  box-shadow: 0 18px 34px rgba(124, 92, 255, 0.06);
}

.coin-panel-note {
  font-size: 12px;
  color: rgba(198, 179, 255, 0.75);
  margin-top: 6px;
}

.coin-panel--promo .coin-panel-note {
  color: rgba(233, 226, 255, 0.72);
}

.coin-panel--tasks .coin-panel-note {
  color: rgba(233, 226, 255, 0.72);
}

.coin-panel--referrals .coin-panel-note {
  color: rgba(208, 235, 255, 0.72);
}

.coin-panel--shop .coin-panel-note {
  color: rgba(233, 226, 255, 0.72);
}

.coin-panel--promo .tariff-pill {
  border-color: rgba(124, 92, 255, 0.4);
  background: rgba(124, 92, 255, 0.12);
  color: rgba(244, 237, 255, 0.94);
}

.coin-panel--promo .tariff-pill:active {
  transform: scale(0.98);
}

.coin-panel--tasks .task-week-timer {
  color: rgba(233, 226, 255, 0.82);
}

.coin-panel--referrals .referral-text {
  color: rgba(208, 235, 255, 0.8);
}

.coin-panel--shop .shop-card {
  border-color: rgba(124, 92, 255, 0.26);
}
.coin-info-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.coin-info {
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(122, 60, 255, 0.28);
  background: rgba(15, 9, 33, 0.7);
  text-align: center;
}

.coin-info-label {
  font-size: 10px;
  color: rgba(198, 179, 255, 0.7);
}

.coin-info-value {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
}

.coin-info-value.is-full {
  color: #ffd1a1;
}

.coin-action-row {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

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

.tariff-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(122, 60, 255, 0.45);
  background: rgba(20, 10, 40, 0.75);
  font-size: 11px;
  color: #efe7ff;
}

.task-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  padding-bottom: 86px;
}

.task-week-timer {
  margin: 10px 0 12px;
  font-size: 12px;
  color: rgba(226, 216, 255, 0.85);
}

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

.task-card.ready {
  border-color: rgba(122, 255, 186, 0.35);
  box-shadow: 0 0 0 1px rgba(122, 255, 186, 0.08), 0 12px 24px rgba(122, 255, 186, 0.08);
}

.task-card.done .task-status {
  opacity: 0.9;
}

.task-card {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(122, 60, 255, 0.28);
  background: rgba(15, 9, 33, 0.7);
  display: grid;
  gap: 4px;
}

.task-card.locked {
  opacity: 0.6;
}

.task-card.done {
  border-color: rgba(122, 255, 186, 0.35);
  box-shadow: inset 0 0 12px rgba(122, 255, 186, 0.15);
}

.task-title {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.task-meta {
  font-size: 12px;
  color: rgba(198, 179, 255, 0.78);
  line-height: 1.25;
}

.task-status {
  font-size: 11px;
  font-weight: 600;
  color: rgba(202, 188, 255, 0.9);
}

.task-ready-pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(122, 255, 186, 0.28);
  background: rgba(122, 255, 186, 0.10);
  color: rgba(220, 255, 240, 0.92);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.tasks-footer {
  position: sticky;
  bottom: 0;
  margin-top: 12px;
  padding: 12px 0 0;
  background: linear-gradient(180deg, rgba(10, 6, 22, 0) 0%, rgba(10, 6, 22, 0.78) 28%, rgba(10, 6, 22, 0.92) 100%);
}

.tasks-footer::before {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  top: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.tasks-footer-hint {
  font-size: 12px;
  color: rgba(198, 179, 255, 0.78);
  margin-bottom: 8px;
}

.tasks-claim-btn {
  width: 100%;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 900;
}

.coin-shop .shop-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.shop-card {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(122, 60, 255, 0.32);
  background: linear-gradient(160deg, rgba(25, 14, 52, 0.98), rgba(14, 7, 30, 0.85));
  display: grid;
  gap: 6px;
  text-align: center;
}

.shop-card.locked {
  opacity: 0.75;
}

.shop-card.owned {
  border-color: rgba(122, 202, 255, 0.4);
}

.shop-card.active {
  border-color: rgba(122, 255, 186, 0.5);
  box-shadow: 0 0 14px rgba(122, 255, 186, 0.18);
}

.shop-preview {
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(122, 60, 255, 0.18);
  font-weight: 700;
}

.nick-style--sunset {
  color: #ffd4a8;
  text-shadow: 0 0 8px rgba(255, 170, 90, 0.35);
}

.nick-style--ice {
  color: #bfe9ff;
  text-shadow: 0 0 8px rgba(160, 220, 255, 0.35);
}

.nick-style--royal {
  color: #d7b5ff;
  text-shadow: 0 0 10px rgba(183, 123, 255, 0.45);
}

.badge-preview {
  font-size: 9px;
  letter-spacing: 0.6px;
  line-height: 1.1;
  padding: 0 6px;
  text-transform: uppercase;
  color: rgba(255, 231, 184, 0.95);
  text-align: center;
}

.avatar-frame {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(122, 60, 255, 0.65);
  display: grid;
  place-items: center;
  color: #f4edff;
}

.title-preview {
  font-size: 12px;
}

.shop-name {
  font-size: 13px;
  font-weight: 700;
}

.shop-price {
  font-size: 11px;
  color: rgba(198, 179, 255, 0.7);
}

.shop-status {
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(198, 179, 255, 0.6);
}

.shop-footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(122, 60, 255, 0.28);
  background: rgba(15, 9, 33, 0.7);
}

.shop-balance {
  font-size: 12px;
  color: rgba(198, 179, 255, 0.75);
}

.shop-tabs {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  padding: 4px 2px 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.shop-tabs::-webkit-scrollbar {
  display: none;
}

.shop-tab {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(122, 60, 255, 0.28);
  background: rgba(12, 7, 24, 0.58);
  color: rgba(236, 228, 255, 0.92);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1px;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.shop-tab:active {
  transform: scale(0.98);
}

.shop-tab.active {
  border-color: rgba(170, 140, 255, 0.55);
  background: linear-gradient(135deg, rgba(122, 60, 255, 0.38), rgba(20, 10, 40, 0.75));
  box-shadow: 0 8px 18px rgba(122, 60, 255, 0.16);
}

.shop-feed {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
}

.shop-feed.is-carousel {
  display: block;
  padding-bottom: 0;
}

.shop-feed.is-carousel .shop-carousel {
  margin-top: 12px;
}

.shop-slide .shop-offer {
  width: 100%;
}

.shop-style-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 520px;
  border-radius: 22px;
  border: 1px solid rgba(122, 60, 255, 0.28);
  background: radial-gradient(circle at top, rgba(122, 60, 255, 0.16), rgba(12, 7, 25, 0.94) 70%);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
  padding: 18px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.shop-style-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.10), rgba(0, 0, 0, 0) 45%);
  opacity: 0.7;
  pointer-events: none;
}

.shop-style-card::after {
  content: "";
  position: absolute;
  left: -25%;
  top: -18%;
  width: 150%;
  height: 52%;
  transform: rotate(-7deg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0));
  opacity: 0.55;
  pointer-events: none;
}

.shop-style-card--gold {
  border-color: rgba(255, 194, 115, 0.34);
  background: radial-gradient(circle at top, rgba(255, 194, 115, 0.20), rgba(12, 7, 25, 0.94) 70%);
}

.shop-style-card--blue {
  border-color: rgba(122, 202, 255, 0.32);
  background: radial-gradient(circle at top, rgba(122, 202, 255, 0.18), rgba(12, 7, 25, 0.94) 70%);
}

.shop-style-card--violet {
  border-color: rgba(180, 140, 255, 0.3);
  background: radial-gradient(circle at top, rgba(180, 140, 255, 0.18), rgba(12, 7, 25, 0.94) 70%);
}

.shop-style-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 6, 22, 0.5);
  color: rgba(255, 255, 255, 0.92);
}

.shop-style-pill--new {
  border-color: rgba(255, 214, 140, 0.28);
  background: rgba(255, 194, 115, 0.12);
  color: rgba(255, 242, 220, 0.92);
}

.shop-style-pill--owned {
  border-color: rgba(122, 202, 255, 0.24);
  background: rgba(122, 202, 255, 0.12);
  color: rgba(226, 244, 255, 0.92);
}

.shop-style-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 6, 22, 0.66);
  color: rgba(244, 237, 255, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(10px);
  opacity: 0.78;
  transition: transform 140ms ease, opacity 140ms ease;
  z-index: 2;
}

.shop-style-arrow:active {
  transform: translateY(-50%) scale(0.96);
  opacity: 1;
}

.shop-style-arrow--prev {
  left: 10px;
}

.shop-style-arrow--next {
  right: 10px;
}

.shop-style-icon {
  margin-top: 54px;
}

.shop-style-icon-ring {
  width: 164px;
  height: 164px;
  border-radius: 999px;
  background: rgba(10, 6, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.06);
  color: rgba(244, 237, 255, 0.92);
}

.shop-style-icon-ring svg {
  width: 86px;
  height: 86px;
}

.shop-style-title-type {
  font-size: 26px;
  font-weight: 950;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.96);
}

.shop-style-title-name {
  margin-top: 2px;
  font-size: 22px;
  font-weight: 850;
  color: rgba(233, 226, 255, 0.9);
}

.shop-style-subtitle {
  font-size: 14px;
  font-weight: 800;
  color: rgba(244, 237, 255, 0.82);
}

.shop-style-desc {
  font-size: 13px;
  line-height: 1.3;
  color: rgba(244, 237, 255, 0.78);
  background: rgba(10, 6, 22, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 12px 12px;
  width: 100%;
}

.shop-style-preview {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(12, 7, 24, 0.52);
  padding: 12px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  width: 100%;
}

.shop-style-price {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(10, 6, 22, 0.64);
  color: rgba(255, 255, 255, 0.95);
  font-size: 18px;
  font-weight: 950;
  padding: 16px 14px;
  cursor: pointer;
}

.shop-style-price:active {
  transform: scale(0.985);
}

.shop-style-price:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.shop-style-price--static {
  opacity: 0.78;
  cursor: default;
}

.shop-style-action {
  width: 100%;
  border-radius: 18px;
  padding: 16px 14px;
  font-size: 16px;
  font-weight: 950;
  border: 1px solid rgba(170, 140, 255, 0.28);
  background: linear-gradient(135deg, rgba(122, 60, 255, 0.94), rgba(80, 40, 255, 0.78));
  color: #fff;
  cursor: pointer;
}

.shop-style-action:active {
  transform: scale(0.985);
}

.shop-style-action:disabled {
  opacity: 0.55;
  cursor: default;
}

@media (max-width: 360px) {
  .shop-style-card {
    min-height: 500px;
  }
  .shop-style-icon-ring {
    width: 148px;
    height: 148px;
  }
  .shop-style-title-type {
    font-size: 24px;
  }
}

.shop-brawl-footer {
  margin-top: auto;
  width: 100%;
  display: grid;
  gap: 10px;
}

.shop-brawl-price {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(10, 6, 22, 0.64);
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px;
  font-weight: 950;
  padding: 14px 14px;
  cursor: pointer;
}

.shop-brawl-price:active {
  transform: scale(0.985);
}

.shop-brawl-price:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.shop-brawl-price--static {
  opacity: 0.78;
  cursor: default;
}

.shop-brawl-action {
  width: 100%;
  border-radius: 18px;
  padding: 14px 14px;
  font-size: 15px;
  font-weight: 900;
  border: 1px solid rgba(170, 140, 255, 0.3);
  background: linear-gradient(135deg, rgba(122, 60, 255, 0.92), rgba(80, 40, 255, 0.78));
  color: #fff;
  cursor: pointer;
}

.shop-brawl-action:active {
  transform: scale(0.985);
}

.shop-brawl-action:disabled {
  opacity: 0.55;
  cursor: default;
}

.shop-offer {
  width: min(560px, 92%);
  border-radius: 20px;
  border: 1px solid rgba(122, 60, 255, 0.3);
  background: radial-gradient(circle at 20% 0%, rgba(122, 60, 255, 0.16), rgba(12, 7, 25, 0.92) 60%);
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.shop-offer--gold {
  border-color: rgba(255, 194, 115, 0.32);
  background: radial-gradient(circle at 20% 0%, rgba(255, 194, 115, 0.22), rgba(12, 7, 25, 0.92) 62%);
}

.shop-offer--blue {
  border-color: rgba(122, 202, 255, 0.3);
  background: radial-gradient(circle at 20% 0%, rgba(122, 202, 255, 0.2), rgba(12, 7, 25, 0.92) 62%);
}

.shop-offer--cyan {
  border-color: rgba(118, 255, 246, 0.26);
  background: radial-gradient(circle at 20% 0%, rgba(118, 255, 246, 0.16), rgba(12, 7, 25, 0.92) 62%);
}

.shop-offer--violet {
  border-color: rgba(180, 140, 255, 0.28);
  background: radial-gradient(circle at 20% 0%, rgba(180, 140, 255, 0.2), rgba(12, 7, 25, 0.92) 62%);
}

.shop-offer--mint {
  border-color: rgba(122, 255, 186, 0.26);
  background: radial-gradient(circle at 20% 0%, rgba(122, 255, 186, 0.16), rgba(12, 7, 25, 0.92) 62%);
}

.shop-offer--pink {
  border-color: rgba(255, 140, 220, 0.24);
  background: radial-gradient(circle at 20% 0%, rgba(255, 140, 220, 0.14), rgba(12, 7, 25, 0.92) 62%);
}

.shop-offer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0));
}

.shop-offer-top-left {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.shop-offer-label {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.94);
}

.shop-offer-label--new {
  border-color: rgba(255, 214, 140, 0.35);
  background: rgba(255, 194, 115, 0.16);
}

.shop-offer-label--sale {
  border-color: rgba(122, 202, 255, 0.32);
  background: rgba(122, 202, 255, 0.14);
}

.shop-offer-label--bundle {
  border-color: rgba(118, 255, 246, 0.26);
  background: rgba(118, 255, 246, 0.1);
}

.shop-offer-label--limited {
  border-color: rgba(255, 140, 220, 0.26);
  background: rgba(255, 140, 220, 0.1);
}

.shop-offer-label--soon {
  opacity: 0.88;
}

.shop-offer-status {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(232, 224, 255, 0.92);
  border: 1px solid rgba(122, 60, 255, 0.28);
  background: rgba(12, 7, 24, 0.58);
}

.shop-offer.is-active .shop-offer-status {
  border-color: rgba(122, 255, 186, 0.35);
  background: rgba(122, 255, 186, 0.12);
}

.shop-offer.is-owned .shop-offer-status {
  border-color: rgba(122, 202, 255, 0.35);
  background: rgba(122, 202, 255, 0.12);
}

.shop-offer-top-right {
  font-size: 11px;
  color: rgba(198, 179, 255, 0.7);
  text-align: right;
  line-height: 1.2;
}

.shop-offer-pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.94);
}

.shop-offer-pill--new {
  border-color: rgba(255, 214, 140, 0.28);
  background: rgba(255, 205, 140, 0.12);
  color: rgba(255, 242, 220, 0.92);
}

.shop-offer-pill--owned {
  border-color: rgba(122, 202, 255, 0.26);
  background: rgba(122, 202, 255, 0.12);
  color: rgba(226, 244, 255, 0.92);
}

.shop-offer-center {
  padding: 2px 14px 12px;
  display: grid;
  gap: 8px;
}

.shop-offer-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.96);
}

.shop-offer-kicker {
  font-size: 12px;
  color: rgba(233, 226, 255, 0.84);
  font-weight: 800;
}

.shop-offer-subtitle {
  font-size: 12px;
  color: rgba(233, 226, 255, 0.84);
  font-weight: 800;
}

.shop-offer-desc {
  font-size: 12px;
  color: rgba(233, 226, 255, 0.78);
  line-height: 1.3;
  background: rgba(10, 6, 22, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 10px 10px;
}

.shop-offer-preview {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 7, 24, 0.56);
  padding: 12px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
}

.shop-preview-name {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.2px;
}

.shop-preview-badge {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 231, 184, 0.95);
  border: 1px solid rgba(255, 214, 140, 0.22);
  background: rgba(255, 194, 115, 0.08);
}

.shop-preview-badge svg {
  width: 22px;
  height: 22px;
}

.shop-preview-pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(122, 60, 255, 0.28);
  background: rgba(122, 60, 255, 0.12);
  font-size: 12px;
  font-weight: 800;
  color: rgba(236, 228, 255, 0.92);
}

.shop-offer-countdown {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 214, 140, 0.9);
}

.shop-offer-bottom {
  padding: 12px 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.14);
}

.shop-offer-price {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.shop-offer-price-value {
  font-size: 22px;
  font-weight: 900;
}

.shop-offer-price-currency {
  font-size: 12px;
  font-weight: 800;
  color: rgba(198, 179, 255, 0.75);
}

.shop-offer-price-plain {
  font-size: 16px;
  font-weight: 900;
  color: rgba(236, 228, 255, 0.92);
}

.shop-offer-btn {
  min-width: 160px;
  justify-content: center;
}

.shop-offer.is-soon .shop-offer-btn {
  opacity: 0.7;
}

@media (max-width: 380px) {
  .shop-offer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .shop-offer-btn {
    width: 100%;
  }
}

.image-zoom {
  background: rgba(8, 5, 18, 0.78);
}

.image-zoom-card {
  position: relative;
  width: min(92vw, 560px);
  height: min(70vh, 420px);
  border-radius: 18px;
  border: 1px solid rgba(122, 60, 255, 0.4);
  background: rgba(12, 7, 25, 0.9);
  display: grid;
  place-items: center;
  padding: 16px;
}

.image-zoom-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.15s ease;
  cursor: zoom-in;
  transform-origin: center;
}

.image-zoom-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(122, 60, 255, 0.45);
  background: rgba(17, 10, 35, 0.8);
  color: #f4edff;
  font-size: 18px;
}

.image-zoom-controls {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  gap: 6px;
}

.image-zoom-controls .ghost-btn {
  min-width: 44px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(122, 60, 255, 0.45);
  background: rgba(17, 10, 35, 0.7);
  color: #f4edff;
  font-size: 14px;
  padding: 0 10px;
}

.listing-meta {
  font-size: 12px;
  color: rgba(198, 179, 255, 0.72);
}

.page-public .listing-item {
  border-color: rgba(122, 60, 255, 0.12);
  background: rgba(122, 60, 255, 0.06);
  box-shadow: none;
}

.public-listing-price {
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(90deg, #c7a6ff, #f0e4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.2px;
}

.page-public .listings-card {
  padding-bottom: 56px;
}

.listing-item.listing-top {
  background: linear-gradient(135deg, rgba(255, 193, 120, 0.18), rgba(122, 60, 255, 0.22));
  border-color: rgba(255, 187, 96, 0.6);
  box-shadow: 0 14px 28px rgba(255, 170, 70, 0.2), inset 0 0 0 1px rgba(255, 214, 140, 0.12);
}

.listing-item.placeholder {
  opacity: 0.7;
  cursor: default;
}

.market-price {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.market-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 44px;
}

.favorite-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(122, 60, 255, 0.35);
  background: rgba(122, 60, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.favorite-btn svg {
  width: 18px;
  height: 18px;
}

.favorite-btn.active {
  background: linear-gradient(135deg, #7a3cff, #a86bff);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 18px rgba(90, 33, 255, 0.35);
}

.listing-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(122, 60, 255, 0.16);
  border: 1px solid rgba(122, 60, 255, 0.35);
  flex-shrink: 0;
  overflow: visible;
}

.listing-icon svg {
  width: 24px;
  height: 24px;
}

.listing-detail {
  position: relative;
  animation: detailIn 240ms ease-out;
}

.listing-title {
  font-size: 16px;
  font-weight: 600;
}

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

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.status-active {
  color: #6ef5a3;
  border-color: rgba(110, 245, 163, 0.4);
}

.status-pending {
  color: #ffd27a;
  border-color: rgba(255, 210, 122, 0.45);
}

.status-awaiting {
  color: #8fd0ff;
  border-color: rgba(143, 208, 255, 0.45);
}

.status-rejected {
  color: #ff8f8f;
  border-color: rgba(255, 143, 143, 0.45);
}

.status-archived {
  color: #cfcfe8;
  border-color: rgba(207, 207, 232, 0.4);
}

.status-hidden {
  color: #f5d46e;
  border-color: rgba(245, 212, 110, 0.4);
}

.status-expired {
  color: #cfcfe8;
  border-color: rgba(207, 207, 232, 0.4);
}

.status-sold {
  color: #6ed5ff;
  border-color: rgba(110, 213, 255, 0.4);
}

.listing-price {
  font-size: 20px;
  font-weight: 600;
  margin: 8px 0;
}

.listing-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.listing-gallery {
  display: none;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 16px;
  border: 1px solid rgba(122, 60, 255, 0.25);
  background: rgba(12, 7, 25, 0.6);
  touch-action: pan-y;
}

.gallery-track {
  display: flex;
  transition: transform 280ms ease-in-out;
}

.gallery-slide {
  min-width: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: rgba(12, 7, 25, 0.6);
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.gallery-dot.active {
  background: #fff;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(122, 60, 255, 0.45);
  background: rgba(17, 10, 35, 0.75);
  color: #efe7ff;
  display: grid;
  place-items: center;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}

.gallery-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.gallery-arrow:hover:not(:disabled) {
  border-color: rgba(164, 121, 255, 0.8);
  transform: translateY(-50%) scale(1.04);
}

.gallery-prev {
  left: 10px;
}

.gallery-next {
  right: 10px;
}

.empty-state {
  display: none;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

#marketMore {
  margin-top: 12px;
}

.seller-card .seller-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  cursor: default;
}

.seller-info {
  display: grid;
  gap: 6px;
  align-content: center;
}

.seller-card .seller-info {
  align-items: start;
  text-align: left;
  min-width: 0;
}

.seller-card .seller-name {
  justify-content: flex-start;
}

.seller-card .role-badge {
  justify-self: start;
  max-width: min(220px, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-info .role-badge {
  align-self: start;
}

.seller-card .seller-row:active {
  background: transparent;
  border-color: transparent;
}

.seller-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: default;
}

.contact-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.icon-btn.contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  font-size: 16px;
}

.seller-meta {
  font-size: 12px;
  color: var(--muted);
}

.seller-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.seller-contact .action-btn {
  flex: 1;
  min-width: 0;
}

.seller-contact.solo .action-btn {
  width: 100%;
}

.icon-btn.secondary {
  width: 34px;
  height: 34px;
  font-size: 16px;
  border-radius: 12px;
}

.listing-header {
  margin-bottom: 10px;
}

.listing-header {
  position: relative;
  z-index: 3;
}

#listingBack {
  display: none;
}

.seller-card .report-btn {
  margin-top: 10px;
  width: 100%;
  justify-content: center;
}

.seller-card {
  position: relative;
}

.seller-card.card {
  padding: 12px;
  border-radius: 18px;
}

.seller-card .section-title {
  margin-bottom: 8px;
  font-size: 15px;
}

.seller-card .profile-header--seller {
  grid-template-columns: 48px 1fr;
  gap: 8px;
  align-items: center;
}

.seller-card .avatar {
  width: 46px;
  height: 46px;
  font-size: 14px;
}

.seller-card .name-row {
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.seller-card .cosmetic-badge {
  width: 22px;
  height: 22px;
  font-size: 14px;
}

.seller-card .seller-subrow {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.seller-card .role-badge.compact {
  min-height: 22px;
  padding: 4px 10px;
  letter-spacing: 0.3px;
  font-size: 11px;
}

.seller-card .seller-role-text {
  font-size: 11px;
  font-weight: 700;
  color: rgba(214, 205, 255, 0.68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  max-width: 45%;
}

.seller-card #sellerName {
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.1;
}

.seller-card #sellerSince {
  margin-top: 2px;
  font-size: 12px;
}

.seller-card #sellerProfile {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
  width: 100%;
}

.seller-card #sellerMessage {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.seller-card .seller-actions {
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.seller-card .seller-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.seller-card .action-btn {
  height: 38px;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1;
}

.seller-card .contact-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.seller-card .icon-btn.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 10, 24, 0.62);
  color: rgba(244, 237, 255, 0.95);
}

.seller-card .seller-contact .action-btn {
  width: 100%;
}

.seller-card .seller-contact.solo {
  grid-template-columns: minmax(0, 1fr);
}

.seller-card .icon-btn.contact-icon svg {
  display: block;
}

.seller-staff-side {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  justify-items: end;
}

.seller-staff-side .staff-shield {
  width: 24px;
  height: 24px;
}

.row-inline {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.report-reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 10px;
}

.report-reasons .pill {
  justify-content: center;
  text-align: center;
}

.report-input {
  min-height: 80px;
  resize: vertical;
}

.public-card {
  padding: 16px 18px;
}

.public-info {
  display: grid;
  gap: 4px;
  align-items: start;
}

.public-name {
  font-size: 18px;
  font-weight: 700;
  gap: 8px;
}

.public-name #publicName {
  background: linear-gradient(90deg, #f2eaff, #c9b3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.public-meta {
  font-size: 12px;
  color: rgba(198, 179, 255, 0.75);
}

.public-badges {
  display: inline-grid;
  gap: 4px;
  justify-items: start;
  width: fit-content;
}

.public-role-text {
  font-size: 11px;
  color: rgba(170, 150, 215, 0.85);
  font-weight: 500;
  letter-spacing: 0.2px;
}

.public-info.has-role {
  margin-bottom: 6px;
}

.identity-info.has-role {
  margin-bottom: 6px;
}

.public-since-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(122, 60, 255, 0.14);
  border: 1px solid rgba(122, 60, 255, 0.35);
  font-size: 11px;
  color: rgba(216, 198, 255, 0.85);
}

.public-card .staff-shield {
  width: 20px;
  height: 20px;
  border-radius: 10px;
  color: #ffffff;
}

.public-card .staff-shield svg {
  width: 12px;
  height: 12px;
}

.staff-shield[data-role] {
  background: linear-gradient(135deg, rgba(122, 60, 255, 0.35), rgba(196, 150, 255, 0.5));
  border-color: rgba(186, 150, 255, 0.7);
  box-shadow: 0 0 10px rgba(160, 120, 255, 0.6), inset 0 0 8px rgba(255, 255, 255, 0.2);
  animation: shieldPulse 2.6s ease-in-out infinite;
}

.staff-shield[data-role] svg {
  filter: drop-shadow(0 0 4px rgba(195, 160, 255, 0.8));
}

.public-card .staff-shield svg {
  stroke: #ffffff;
}

@keyframes shieldPulse {
  0% {
    box-shadow: 0 0 8px rgba(155, 120, 255, 0.4), inset 0 0 8px rgba(255, 255, 255, 0.15);
  }
  50% {
    box-shadow: 0 0 14px rgba(180, 140, 255, 0.7), inset 0 0 10px rgba(255, 255, 255, 0.25);
  }
  100% {
    box-shadow: 0 0 8px rgba(155, 120, 255, 0.4), inset 0 0 8px rgba(255, 255, 255, 0.15);
  }
}

.create-form {
  display: grid;
  gap: 12px;
}

.create-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.rules-btn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(122, 60, 255, 0.16);
  border: 1px solid rgba(122, 60, 255, 0.4);
  display: grid;
  place-items: center;
  color: #fff;
}

.rules-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 4, 18, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 30;
}

.rules-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.rules-drawer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  max-height: 100dvh;
  width: min(360px, 88vw);
  background: linear-gradient(180deg, rgba(36, 20, 68, 0.95), rgba(20, 12, 40, 0.95));
  border-right: 1px solid rgba(122, 60, 255, 0.35);
  padding: 16px 14px calc(24px + var(--bottom-nav-height));
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 18px 0 36px rgba(10, 4, 24, 0.45);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.rules-overlay.show .rules-drawer {
  transform: translateX(0);
}

.rules-drawer-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.rules-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(122, 60, 255, 0.2);
  border: 1px solid rgba(122, 60, 255, 0.4);
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #fff;
  box-shadow: inset 0 0 10px rgba(122, 60, 255, 0.3);
}

.rules-title {
  font-size: 13px;
  font-weight: 700;
}

.rules-close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.rules-section {
  display: grid;
  gap: 6px;
}

.rules-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #e8dcff;
}

.rules-list {
  display: grid;
  gap: 6px;
  padding-left: 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.rules-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

.photo-block {
  display: grid;
  gap: 10px;
}

.photo-add {
  border: 1px dashed rgba(122, 60, 255, 0.5);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(12, 7, 25, 0.6);
  color: #e7ddff;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}

.photo-input {
  display: none;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.photo-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(122, 60, 255, 0.25);
  animation: photoIn 180ms ease-out;
}

.photo-thumb img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}

.photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(12, 7, 25, 0.8);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
}

.photo-thumb.removing {
  animation: photoOut 160ms ease-out forwards;
}

.photo-hint {
  font-size: 12px;
  color: var(--muted);
}

.action-bar {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: var(--nav-gap, 12px);
  padding: var(--nav-padding, 12px);
  border-radius: 26px;
  background: rgba(12, 10, 24, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(122, 60, 255, 0.5);
  box-shadow: 0 24px 46px rgba(7, 4, 18, 0.65);
  z-index: 2;
  overflow: hidden;
  --nav-gap: 12px;
  --nav-padding: 12px;
  --nav-count: 4;
  --nav-index: 0;
  --nav-item-width: calc(
    (100% - (var(--nav-gap) * (var(--nav-count) - 1)) - (var(--nav-padding) * 2)) / var(--nav-count)
  );
}

.action-bar.has-admin {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nav-indicator {
  position: absolute;
  top: var(--nav-padding);
  left: calc(var(--nav-padding) + (var(--nav-item-width) + var(--nav-gap)) * var(--nav-index));
  width: var(--nav-item-width);
  height: calc(100% - (var(--nav-padding) * 2));
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(155, 107, 255, 0.88), rgba(108, 77, 255, 0.78));
  box-shadow: 0 12px 20px rgba(90, 33, 255, 0.4), inset 0 0 18px rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(190, 160, 255, 0.45);
  transition: left 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.nav-btn {
  position: relative;
  z-index: 1;
  height: 46px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav-btn:active {
  transform: scale(0.98);
}

.nav-btn.active {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.nav-btn .nav-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: opacity 160ms ease, transform 160ms ease, filter 160ms ease;
}

.nav-btn .nav-icon svg {
  width: 100%;
  height: 100%;
}

.nav-btn .nav-icon--mono {
  color: rgba(255, 255, 255, 0.92);
}

.nav-btn .nav-icon--mono svg * {
  fill: currentColor;
  stroke: currentColor;
}

.nav-btn.active .nav-icon {
  opacity: 1;
  transform: scale(1.05);
  filter: drop-shadow(0 6px 12px rgba(109, 69, 255, 0.45));
}

.page-nickname .nickname-card {
  display: grid;
  gap: 12px;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fab {
  position: fixed;
  right: 22px;
  bottom: calc(var(--bottom-nav-height) + 16px + env(safe-area-inset-bottom));
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #9b6bff, #6c4dff);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(89, 52, 255, 0.35);
  cursor: pointer;
  z-index: 3;
  transition: opacity 180ms ease, transform 180ms ease;
}

.fab:active {
  transform: scale(0.98);
}

.fab.is-hidden {
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  pointer-events: none;
}


.action-btn {
  border: none;
  border-radius: 14px;
  padding: 10px 8px;
  background: rgba(122, 60, 255, 0.14);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  min-width: 0;
  white-space: nowrap;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn.active {
  background: linear-gradient(135deg, #7a3cff, #a86bff);
  box-shadow: 0 10px 18px rgba(90, 33, 255, 0.35);
}

.action-btn:disabled,
.action-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.action-btn.primary {
  background: linear-gradient(135deg, #7a3cff, #a86bff);
}

.action-btn.accent {
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.25);
}

.action-btn.accent.active {
  background: linear-gradient(135deg, #7a3cff, #a86bff);
  border: none;
  box-shadow: 0 10px 18px rgba(90, 33, 255, 0.35);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 4, 12, 0.7);
  z-index: 3;
  padding: 20px;
}

.modal.show {
  display: flex;
}

.modal-card {
  width: min(420px, 100%);
  background: rgba(18, 8, 35, 0.95);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(122, 60, 255, 0.35);
  box-shadow: 0 20px 40px rgba(10, 4, 26, 0.6);
}

.modal-text {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 16px;
}

.modal-hint {
  margin: 6px 0 14px;
  font-size: 12px;
  color: var(--muted);
}

.nick-suggest {
  margin-top: 8px;
  display: none;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(122, 60, 255, 0.3);
  background: rgba(12, 7, 25, 0.7);
}

.nick-suggest.show {
  display: grid;
}

.nick-suggest button {
  background: rgba(122, 60, 255, 0.14);
  border: 1px solid rgba(122, 60, 255, 0.35);
  color: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.nick-suggest button:active {
  transform: scale(0.98);
}

.notification-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  overflow-y: auto;
  padding-right: 4px;
}

.notification-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(20, 12, 40, 0.45);
  border: 1px solid rgba(122, 60, 255, 0.3);
  display: grid;
  gap: 10px;
}

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

.notification-title {
  font-weight: 600;
}

.notification-amount {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 6, 22, 0.55);
  color: rgba(235, 232, 255, 0.95);
}

.notification-amount.pos {
  border-color: rgba(88, 255, 190, 0.25);
  color: rgba(170, 255, 220, 0.95);
}

.notification-amount.neg {
  border-color: rgba(255, 140, 140, 0.25);
  color: rgba(255, 185, 185, 0.95);
}

.notification-message {
  font-size: 13px;
  color: var(--muted);
  white-space: pre-line;
}

.notification-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#notificationsModal .modal-card {
  width: min(520px, 100%);
  max-height: 80dvh;
  display: flex;
  flex-direction: column;
}

#notificationsModal .notification-list {
  flex: 1;
}

.modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.modal-list {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}

.modal-list .listing-item {
  margin: 0;
}

.modal-actions.single {
  grid-template-columns: 1fr;
}

#settingsModal .modal-actions {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
}

#settingsModal .modal-actions .action-btn {
  width: 100%;
}

.profile-edit {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.avatar-edit {
  display: grid;
  justify-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.avatar-edit-label {
  font-size: 12px;
  color: var(--muted);
}

.file-input {
  display: none;
}

.ghost-btn.small {
  padding: 8px 10px;
  font-size: 11px;
}

.form-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: -6px;
}

.radio-group {
  display: grid;
  gap: 8px;
}

.radio-row,
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
}

.radio-row input,
.check-row input {
  accent-color: #8e5bff;
}

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

.promo-title {
  font-size: 13px;
  color: #d8ccff;
  margin-bottom: 8px;
}

.promo-options {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.promo-option {
  border: 1px solid rgba(124, 92, 255, 0.4);
  background: rgba(124, 92, 255, 0.16);
  color: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
}

.promo-option.active {
  background: linear-gradient(135deg, #7a3cff, #a86bff);
  border: none;
}

.promo-option.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.promo-hint {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.top-scope {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(124, 92, 255, 0.22);
  background: rgba(124, 92, 255, 0.08);
}

.top-scope-label {
  font-size: 12px;
  color: rgba(214, 200, 255, 0.9);
  line-height: 1.25;
}

.top-scope-btn {
  white-space: nowrap;
}

.top-lists {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.top-list-card {
  border-radius: 16px;
  border: 1px solid rgba(124, 92, 255, 0.2);
  background: rgba(10, 6, 22, 0.35);
  padding: 10px 12px;
}

.top-list-title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(244, 237, 255, 0.92);
  margin-bottom: 8px;
}

.top-list {
  display: grid;
  gap: 8px;
}

.top-empty {
  font-size: 12px;
  color: rgba(198, 179, 255, 0.72);
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px dashed rgba(124, 92, 255, 0.28);
  background: rgba(124, 92, 255, 0.06);
}

.top-row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(124, 92, 255, 0.26);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.12), rgba(255, 205, 140, 0.06));
}

.top-row.is-queue {
  border-color: rgba(124, 92, 255, 0.25);
  background: rgba(124, 92, 255, 0.10);
}

.top-rank {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: rgba(244, 237, 255, 0.95);
  background: rgba(124, 92, 255, 0.14);
  border: 1px solid rgba(124, 92, 255, 0.28);
}

.top-row.is-queue .top-rank {
  color: rgba(214, 200, 255, 0.95);
  background: rgba(124, 92, 255, 0.14);
  border-color: rgba(124, 92, 255, 0.28);
}

.top-row-main {
  min-width: 0;
}

.top-row-title {
  font-size: 13px;
  font-weight: 650;
  color: rgba(244, 237, 255, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-row-meta {
  margin-top: 3px;
  font-size: 11px;
  color: rgba(198, 179, 255, 0.78);
  font-variant-numeric: tabular-nums;
}

.top-open {
  border-radius: 12px;
  border: 1px solid rgba(124, 92, 255, 0.35);
  background: rgba(124, 92, 255, 0.12);
  color: rgba(244, 237, 255, 0.95);
  padding: 7px 10px;
  font-size: 12px;
  cursor: pointer;
}

.top-open:hover {
  background: rgba(124, 92, 255, 0.18);
}

.top-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 205, 140, 0.16), rgba(124, 92, 255, 0.12));
  border: 1px solid rgba(255, 205, 140, 0.28);
  color: rgba(255, 242, 220, 0.92);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.16);
}

.top-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 245, 220, 0.95) 0%, rgba(255, 205, 140, 0.8) 60%, rgba(255, 205, 140, 0.1) 100%);
  box-shadow: 0 0 6px rgba(124, 92, 255, 0.45);
}

.top-scope-btn {
  border-radius: 14px;
  border: 1px solid rgba(124, 92, 255, 0.32);
  background: rgba(12, 7, 24, 0.55);
  color: rgba(244, 237, 255, 0.95);
}

.top-scope-btn:active {
  transform: scale(0.98);
}

.settings-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.settings-item {
  border: 1px solid rgba(124, 92, 255, 0.35);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(80, 52, 150, 0.22));
  color: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.settings-item:hover {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.28), rgba(80, 52, 150, 0.3));
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(22, 10, 48, 0.35);
}

#settingsModal .modal-card {
  padding: 24px;
  border-radius: 24px;
}

#settingsModal .section-title {
  font-size: 16px;
  letter-spacing: 0.2px;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.server-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#serverModal .modal-card {
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
}

#serverModal .server-grid {
  overflow-y: auto;
  padding-right: 4px;
  max-height: calc(100vh - 140px);
  -webkit-overflow-scrolling: touch;
}

.server-btn {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(122, 60, 255, 0.35);
  background: rgba(122, 60, 255, 0.12);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
}

.server-btn.active {
  background: linear-gradient(135deg, #7a3cff, #a86bff);
  border-color: transparent;
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(18px);
  }
}

@keyframes photoIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes photoOut {
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

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

@media (max-width: 480px) {
  .card {
    padding: 16px;
  }

  .identity-card {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
  }

  .avatar {
    width: 64px;
    height: 64px;
  }

  .identity-info .profile-name {
    font-size: 18px;
  }

  .handle {
    font-size: 12px;
  }

  .role-badge {
    padding: 6px 10px;
    font-size: 10px;
  }

  .report-btn {
    justify-self: end;
  }

  .identity-side {
    justify-items: end;
    gap: 8px;
    align-self: center;
  }

  .coin-wallet {
    gap: 10px;
  }

  .action-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--nav-gap, 8px);
    padding: var(--nav-padding, 6px);
    width: calc(100% - 20px);
    --nav-gap: 10px;
    --nav-padding: 10px;
  }

  .action-bar.has-admin {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav-btn {
    height: 42px;
  }

  .nav-btn .nav-icon {
    width: 20px;
    height: 20px;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .server-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  .shell {
    max-width: 520px;
    padding: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .card {
    padding: 12px;
    border-radius: 16px;
  }

  .avatar {
    width: 56px;
    height: 56px;
    font-size: 18px;
    box-shadow: 0 0 14px rgba(122, 60, 255, 0.6);
  }

  .identity-info .profile-name {
    font-size: 16px;
  }

  .role-badge {
    padding: 6px 10px;
    font-size: 10px;
  }

  .pill-group {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  .pill {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 13px;
  }

  .stats-card .stat-item {
    padding: 12px;
  }

  .fab {
    right: 14px;
    bottom: calc(var(--bottom-nav-height) + 16px + env(safe-area-inset-bottom));
  }

  .action-bar {
    padding: 8px;
    --nav-gap: 8px;
  }

  .modal-card {
    padding: 14px;
    width: calc(100% - 32px);
  }

  #settingsModal .modal-actions {
    margin-top: 16px;
  }

  #settingsModal .modal-actions .action-btn {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

}

/* --- Store refresh (coins-shop) --- */

.coin-shop .coin-shop-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.coin-shop .coin-shop-balance {
  font-weight: 900;
  font-size: 13px;
  color: rgba(244, 237, 255, 0.92);
  white-space: nowrap;
  opacity: 0.92;
}

.coin-shop .store-preview {
  margin-top: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.coin-shop .store-preview > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
  font-weight: 900;
  color: rgba(244, 237, 255, 0.94);
}

.coin-shop .store-preview > summary::-webkit-details-marker {
  display: none;
}

.coin-shop .store-preview > summary::marker {
  content: "";
}

.coin-shop .store-preview-hint {
  font-weight: 700;
  font-size: 12px;
  color: rgba(214, 205, 255, 0.68);
}

.coin-shop .store-preview[open] > summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.14);
}

.coin-shop .shop-preview-grid {
  margin-top: 0;
  padding: 12px;
  gap: 12px;
}

.coin-shop .shop-preview-card {
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: none;
}

.coin-shop .shop-preview-title {
  font-size: 12px;
  color: rgba(214, 205, 255, 0.72);
  margin-bottom: 8px;
}

.coin-shop .store-sections {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.coin-shop .store-list {
  display: grid;
  gap: 12px;
}

.coin-shop .store-row {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px;
  overflow: hidden;
}

.coin-shop .store-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.coin-shop .store-row-head-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.coin-shop .store-row-title {
  font-size: 15px;
  font-weight: 900;
  color: rgba(244, 237, 255, 0.94);
  line-height: 1.15;
}

.coin-shop .store-row-subtitle {
  font-size: 12px;
  color: rgba(214, 205, 255, 0.68);
  line-height: 1.25;
}

.coin-shop .store-row-action {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 10, 24, 0.55);
  color: rgba(244, 237, 255, 0.95);
  font-weight: 900;
  font-size: 13px;
  line-height: 1;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.coin-shop .store-row-action:active {
  transform: scale(0.98);
  background: rgba(122, 60, 255, 0.16);
  border-color: rgba(122, 60, 255, 0.35);
}

.coin-shop .store-row-action.is-primary {
  background: linear-gradient(135deg, rgba(122, 60, 255, 0.95), rgba(96, 140, 255, 0.92));
  border-color: rgba(160, 140, 255, 0.65);
  box-shadow: 0 16px 30px rgba(122, 60, 255, 0.22);
}

.coin-shop .store-row-action.is-danger {
  background: rgba(255, 120, 120, 0.12);
  border-color: rgba(255, 140, 140, 0.32);
}

.coin-shop .store-row-action:disabled {
  opacity: 0.55;
  transform: none;
}

.coin-shop .store-row-body {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.coin-shop .store-palette-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.coin-shop .store-palette-tab {
  padding: 8px 12px;
  min-height: 34px;
  border-radius: 999px;
  font-size: 12px;
}

.coin-shop .store-row-hint {
  font-size: 12px;
  color: rgba(214, 205, 255, 0.72);
}

.coin-shop .store-hscroll {
  position: relative;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 44px;
}

.coin-shop .store-hscroll-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.coin-shop .store-hscroll-track::-webkit-scrollbar {
  display: none;
}

.coin-shop .store-hscroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 10, 24, 0.62);
  color: rgba(244, 237, 255, 0.95);
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.coin-shop .store-hscroll-arrow:active {
  transform: translateY(-50%) scale(0.95);
  background: rgba(122, 60, 255, 0.16);
  border-color: rgba(122, 60, 255, 0.35);
}

.coin-shop .store-hscroll-arrow--prev {
  left: 8px;
}

.coin-shop .store-hscroll-arrow--next {
  right: 8px;
}

.coin-shop .store-option {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 10, 24, 0.58);
  color: rgba(244, 237, 255, 0.92);
  font-weight: 900;
  font-size: 12px;
  white-space: nowrap;
  transition: transform 0.12s ease, opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.coin-shop .store-option:active {
  transform: scale(0.98);
}

.coin-shop .store-option.is-selected {
  border-color: rgba(160, 140, 255, 0.72);
  background: rgba(122, 60, 255, 0.18);
}

.coin-shop .store-option.is-active {
  border-color: rgba(110, 245, 163, 0.55);
  background: rgba(110, 245, 163, 0.10);
}

.coin-shop .store-option.is-locked {
  opacity: 0.55;
}

.coin-shop .store-swatch {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
}

.coin-shop .store-swatch.is-selected {
  border-color: rgba(160, 140, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(122, 60, 255, 0.22);
}

.coin-shop .store-swatch.is-locked {
  opacity: 0.65;
  filter: grayscale(1);
}

.coin-shop .store-swatch.is-locked::after {
  content: "🔒";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.coin-shop .store-section {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.coin-shop .store-section > summary {
  list-style: none;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
}

.coin-shop .store-section > summary::-webkit-details-marker {
  display: none;
}

.coin-shop .store-section > summary::marker {
  content: "";
}

.coin-shop .store-section[open] > summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.14);
}

.coin-shop .store-section-head {
  display: grid;
  gap: 2px;
}

.coin-shop .store-section-title {
  font-size: 15px;
  font-weight: 900;
  color: rgba(244, 237, 255, 0.94);
}

.coin-shop .store-section-note {
  font-size: 12px;
  color: rgba(214, 205, 255, 0.68);
}

.coin-shop .store-grid {
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.coin-shop .store-color-panel {
  padding: 12px;
}

.coin-shop .store-color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.coin-shop .store-color-grid .color-swatch {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.coin-shop .store-color-grid .color-swatch.is-locked {
  opacity: 0.75;
  filter: grayscale(1);
}

.coin-shop .store-color-grid .color-swatch.is-locked::before {
  content: "🔒";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.28);
}

.coin-shop .store-color-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.coin-shop .store-section-actions {
  padding: 0 12px 12px;
  display: flex;
  justify-content: flex-end;
}

.coin-shop .store-reset-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.20);
  color: rgba(244, 237, 255, 0.92);
  font-weight: 900;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 14px;
}

.coin-shop .store-reset-btn:active {
  transform: scale(0.98);
}

.coin-shop .store-reset-btn:disabled {
  opacity: 0.45;
}

.coin-shop .store-item {
  border-radius: 18px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.coin-shop .store-item--gold {
  border-color: rgba(245, 205, 110, 0.28);
}

.coin-shop .store-item--blue {
  border-color: rgba(78, 196, 255, 0.22);
}

.coin-shop .store-item--violet {
  border-color: rgba(155, 108, 255, 0.22);
}

.coin-shop .store-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.coin-shop .store-item-title {
  font-size: 16px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.94);
}

.coin-shop .store-item-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(214, 205, 255, 0.72);
}

.coin-shop .store-chip {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.coin-shop .store-chip--active {
  border-color: rgba(122, 255, 186, 0.30);
  background: rgba(122, 255, 186, 0.10);
}

.coin-shop .store-chip--owned {
  border-color: rgba(122, 202, 255, 0.28);
  background: rgba(122, 202, 255, 0.10);
}

.coin-shop .store-chip--locked {
  opacity: 0.78;
}

.coin-shop .store-item-desc {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(235, 232, 255, 0.78);
}

.coin-shop .store-item-preview {
  margin-top: 10px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.coin-shop .store-inline-preview {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.coin-shop .store-item-bottom {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.coin-shop .store-item-price {
  font-size: 13px;
  font-weight: 900;
  color: rgba(244, 237, 255, 0.92);
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.coin-shop .store-item-action {
  border: 0;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(124, 92, 255, 0.22);
  border: 1px solid rgba(124, 92, 255, 0.32);
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease, background 140ms ease;
}

.coin-shop .store-item-action:active {
  transform: scale(0.98);
}

.coin-shop .store-item-action:disabled {
  opacity: 0.45;
  cursor: default;
}

.coin-shop .store-footnote {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(214, 205, 255, 0.62);
}

@media (min-width: 720px) {
  .coin-shop .store-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Shop minimal layout override (coins-shop) --- */
.coin-shop .coin-panel-note {
  margin: 6px 0 14px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(232, 228, 255, 0.78);
}

.coin-shop .shop-tryon {
  margin-top: 6px;
  padding: 0;
  background: transparent;
  border: 0;
}

.coin-shop .shop-tryon-title {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(188, 178, 230, 0.7);
}

.coin-shop .shop-tryon-row {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.coin-shop .shop-tryon-row:last-child {
  border-bottom: 0;
}

.coin-shop .shop-mini-listing {
  border-radius: 14px;
  background: rgba(12, 10, 24, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
}

.coin-shop .shop-mini-listing-title {
  font-size: 14px;
}

.coin-shop .shop-mini-listing-meta {
  font-size: 12px;
  color: rgba(210, 200, 255, 0.7);
}

.coin-shop .store-sections {
  margin-top: 16px;
  gap: 16px;
}

.coin-shop .store-section {
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

.coin-shop .store-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.coin-shop .store-section > summary {
  padding: 6px 0 10px;
  background: transparent;
}

.coin-shop .store-section[open] > summary {
  border-bottom: 0;
  background: transparent;
}

.coin-shop .store-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coin-shop .store-section-title {
  font-size: 16px;
  font-weight: 800;
  color: rgba(246, 242, 255, 0.96);
  display: flex;
  align-items: center;
  gap: 10px;
}

.coin-shop .store-section-title::before {
  content: "•";
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(124, 92, 255, 0.18);
  border: 1px solid rgba(124, 92, 255, 0.35);
}

.coin-shop .store-section[data-shop-section="nick_color"] .store-section-title::before {
  content: "C";
}

.coin-shop .store-section[data-shop-section="badge"] .store-section-title::before {
  content: "B";
}

.coin-shop .store-section[data-shop-section="badge_style"] .store-section-title::before {
  content: "S";
}

.coin-shop .store-section[data-shop-section="label"] .store-section-title::before {
  content: "L";
}

.coin-shop .store-section[data-shop-section="label_style"] .store-section-title::before {
  content: "LS";
  font-size: 10px;
}

.coin-shop .store-section[data-shop-section="listing_frame"] .store-section-title::before {
  content: "F";
}

.coin-shop .store-section-note {
  font-size: 12px;
  color: rgba(210, 200, 255, 0.68);
}

.coin-shop .store-grid {
  padding: 0;
  gap: 10px;
}

.coin-shop .store-item {
  padding: 12px 12px 10px;
  border-radius: 14px;
  background: rgba(12, 10, 24, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.coin-shop .store-item-top {
  align-items: center;
}

.coin-shop .store-item-title {
  font-size: 15px;
}

.coin-shop .store-item-subtitle {
  font-size: 12px;
  color: rgba(210, 200, 255, 0.68);
}

.coin-shop .store-chip {
  padding: 5px 10px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.coin-shop .store-item-desc {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(226, 220, 255, 0.72);
}

.coin-shop .store-item-preview {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.coin-shop .store-item-bottom {
  margin-top: 10px;
  gap: 10px;
}

.coin-shop .store-item-price {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 12px;
  color: rgba(232, 228, 255, 0.8);
}

.coin-shop .store-item-action {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(124, 92, 255, 0.18);
  border: 1px solid rgba(124, 92, 255, 0.35);
}

.coin-shop .store-color-panel {
  padding: 0 0 10px;
}

.coin-shop .store-color-grid {
  gap: 8px;
}

.coin-shop .store-color-grid .color-swatch {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.coin-shop .store-color-grid .color-swatch.is-selected {
  box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.45);
}

.coin-shop .store-color-actions,
.coin-shop .store-section-actions {
  margin-top: 10px;
}

.coin-shop .store-reset-btn {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
