/* porn4betas.com - Beta Social Hub Theme */
:root {
  --bg: #0a0a0f;
  --card: #121217;
  --accent: #ff2e63;
  --accent2: #c026ff;
  --text: #f0e6ff;
  --muted: #9a8aa3;
  --beta-pink: #ff69b4;
  --denied: #4a0e2e;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.site-footer__link {
  color: var(--beta-pink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__link:hover {
  color: #ff8cc8;
}

.beta-header {
  background: linear-gradient(90deg, #0a0a0f 0%, #1a0f1f 100%);
  border-bottom: 1px solid #2a1f2f;
}

.post-card {
  background: var(--card);
  border: 1px solid #2a1f2f;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.post-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -15px rgb(0 0 0 / 0.6);
}

.patron-feed-banner {
  position: sticky;
  top: calc(3.5rem + env(safe-area-inset-top, 0px));
  z-index: 30;
  border-color: #4a2048;
  background: linear-gradient(145deg, #14101c 0%, #1a1224 55%, #121217 100%);
  box-shadow: 0 12px 40px -18px rgb(255 46 99 / 0.35);
}

.patron-feed-banner:hover {
  transform: none;
}

.patron-feed-banner__inner {
  padding: 1rem 1.1rem 1.15rem;
}

.patron-feed-banner__pin {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--beta-pink);
  margin-bottom: 0.55rem;
}

.patron-feed-banner__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.patron-feed-banner__desc {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.patron-feed-banner__tiers,
.patron-feed-banner__upgrades {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.patron-tier-row,
.patron-tier-upgrade {
  border: 1px solid #2f2238;
  border-radius: 0.85rem;
  background: rgb(0 0 0 / 0.22);
  padding: 0.65rem 0.75rem;
}

.patron-tier-row__head,
.patron-tier-upgrade__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.patron-tier-row__label,
.patron-tier-upgrade__price {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f6d8ff;
  margin-bottom: 0.25rem;
}

.patron-tier-upgrade__tag {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.patron-tier-row__features,
.patron-tier-upgrade__features {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--muted);
}

.patron-tier-row__features li,
.patron-tier-upgrade__features li {
  margin-bottom: 0.15rem;
}

.patron-tier-row__features li::marker,
.patron-tier-upgrade__features li::marker {
  color: var(--beta-pink);
}

.patron-preview-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  border-top: 1px solid #5c3d18;
  background: linear-gradient(180deg, rgb(26 18 8 / 0.97) 0%, rgb(14 10 6 / 0.99) 100%);
  box-shadow: 0 -10px 30px -12px rgb(0 0 0 / 0.65);
  backdrop-filter: blur(8px);
}

.patron-preview-bar__inner {
  min-height: 3rem;
}

.patron-preview-bar__badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fbbf24;
  background: rgb(120 53 15 / 0.35);
  border: 1px solid rgb(180 83 9 / 0.45);
  border-radius: 9999px;
  padding: 0.2rem 0.55rem;
}

.patron-preview-bar__select {
  background: #0a0a0f;
  border: 1px solid #4a3520;
  border-radius: 0.5rem;
  color: #f0e6ff;
  font-size: 0.75rem;
  padding: 0.3rem 0.5rem;
  max-width: 11rem;
}

.patron-preview-bar__flag {
  border-radius: 9999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.68rem;
  border: 1px solid #2a1f2f;
}

.patron-preview-bar__flag.is-on {
  color: #86efac;
  border-color: rgb(22 101 52 / 0.5);
  background: rgb(20 83 45 / 0.25);
}

.patron-preview-bar__flag.is-off {
  color: #9a8aa3;
  background: rgb(0 0 0 / 0.25);
}

.patron-preview-bar__exit,
.patron-preview-bar__admin-link {
  color: #fbbf24;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.patron-preview-bar__exit {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.75rem;
}

body.patron-preview-active #main-app .safe-bottom {
  padding-bottom: 5.5rem;
}

@media (min-width: 640px) {
  body.patron-preview-active #main-app .safe-bottom {
    padding-bottom: 4.5rem;
  }
}

body.patron-preview-active .fab-stack {
  bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
}

.beta-tag {
  background: #2a1f2f;
  color: var(--beta-pink);
  font-size: 0.7rem;
  padding: 1px 9px;
  border-radius: 9999px;
  border: 1px solid #3f2a40;
  white-space: nowrap;
}

.beta-tag:hover {
  background: #3f2a40;
}

.censored-overlay {
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: #ff2e63;
  text-shadow: 0 0 8px black;
  font-weight: 700;
}

.uncensor {
  filter: none !important;
  transition: filter 0.2s;
}

.beta-safe {
  filter: blur(18px) saturate(0.6) contrast(0.8);
}

.nav-active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.modal {
  animation: popIn 0.1s ease-out;
}

@keyframes popIn {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.feed-container {
  scrollbar-width: thin;
  scrollbar-color: #3f2a40 #121217;
}

.post-image-container {
  position: relative;
  background: #111;
  overflow: hidden;
}

.post-image-container img {
  width: 100%;
  display: block;
  max-height: 520px;
  object-fit: contain;
  background: #0a0a0f;
}

.caption {
  white-space: pre-wrap;
  font-size: 0.95rem;
  line-height: 1.35;
}

.beta-btn {
  background: #1f1624;
  border: 1px solid #3f2a40;
  transition: all 0.1s;
}

.beta-btn:hover {
  background: #2a1f2f;
  border-color: var(--accent);
  color: var(--accent);
}

.beta-btn.accent {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.beta-btn.accent:hover {
  filter: brightness(1.1);
}

.age-gate {
  background: rgba(10, 10, 15, 0.98);
}

.disclaimer {
  font-size: 0.75rem;
  color: #77667f;
}

.like-btn.liked {
  color: #ff2e63;
}

.tag-filter.active {
  background: #ff2e63;
  color: white;
  border-color: #ff2e63;
}

/* Beta timer FAB */
.beta-timer-fab {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  border: 1px solid #3f2a40;
  background: #1f1624;
  color: #ff69b4;
  font-size: 1.35rem;
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.beta-timer-fab:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.beta-timer-fab.is-running {
  border-color: var(--accent);
  animation: timerPulse 1.2s ease-in-out infinite;
}

.beta-timer-fab.is-paused {
  border-color: #fbbf24;
  color: #fbbf24;
}

.beta-timer-fab.is-triggering {
  border-color: var(--accent2);
  color: var(--accent2);
  animation: timerPulse 0.7s ease-in-out infinite;
}

@keyframes timerPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 46, 99, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(255, 46, 99, 0); }
}

.beta-timer-hud {
  position: fixed;
  right: 5.5rem;
  bottom: 6.25rem;
  z-index: 40;
  min-width: 5.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.85rem;
  background: rgba(18, 18, 23, 0.94);
  border: 1px solid #3f2a40;
  text-align: right;
  pointer-events: none;
}

.beta-timer-hud__time {
  font-family: ui-monospace, monospace;
  font-size: 1.15rem;
  color: var(--beta-pink);
  line-height: 1.1;
}

.beta-timer-hud__status {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.15rem;
}

.beta-timer-hud__countdown {
  font-family: ui-monospace, monospace;
  font-size: 0.95rem;
  color: var(--accent2);
  margin-top: 0.25rem;
}

.trigger-overlay {
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(4, 4, 8, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.trigger-overlay__inner {
  position: relative;
  width: min(100%, 32rem);
  max-height: 90vh;
  overflow: auto;
  background: var(--card);
  border: 1px solid #3f2a40;
  border-radius: 1.25rem;
  padding: 1rem;
}

.trigger-overlay__close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 1.75rem;
  color: var(--muted);
  z-index: 2;
}

.trigger-overlay__countdown {
  margin-top: 0.75rem;
  text-align: center;
  font-family: ui-monospace, monospace;
  font-size: 1.5rem;
  color: var(--accent2);
}

.trigger-btn.active {
  border-color: var(--accent2);
  color: var(--accent2);
}

/* === Mobile-first layout === */
.safe-top {
  padding-top: env(safe-area-inset-top, 0px);
}

.safe-bottom {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.touch-target {
  min-height: 2.75rem;
  min-width: 2.75rem;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.nav-bar {
  -webkit-overflow-scrolling: touch;
}

.fab-stack {
  position: fixed;
  width: 3.5rem;
  height: 3.5rem;
  right: max(1rem, env(safe-area-inset-right, 0px));
  touch-action: manipulation;
}

.fab-stack--post {
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}

.fab-stack--timer {
  bottom: calc(max(1rem, env(safe-area-inset-bottom, 0px)) + 4.25rem);
}

.post-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.15rem;
}

.post-actions .beta-btn {
  flex-shrink: 0;
}

.post-actions .card-offer-btn {
  border-color: rgba(251, 191, 36, 0.35);
}

.post-actions .card-offer-btn.text-amber-300:hover {
  border-color: rgba(251, 191, 36, 0.65);
  background: rgba(251, 191, 36, 0.08);
}

.card-offer-feed-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
  cursor: pointer;
  vertical-align: middle;
}

.card-offer-feed-badge:hover {
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.7);
}

.post-tags-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 0.5rem;
}

.reaction-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.reaction-summary__chip {
  font-size: 0.68rem;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  background: #1a1220;
  border: 1px solid #3f2a40;
  color: var(--muted);
}

.reaction-picker {
  position: fixed;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 10rem;
  padding: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid #2a1f2f;
  background: #121217;
  box-shadow: 0 12px 40px -12px rgb(0 0 0 / 0.85);
}

.reaction-picker__option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  cursor: pointer;
}

.reaction-picker__option:hover {
  background: #1a1220;
  border-color: #3f2a40;
}

.reaction-picker__clear {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.35rem 0.75rem;
  font-size: 0.68rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.reaction-picker__clear:hover {
  color: var(--text);
}

.modal-sheet {
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 1.25rem 1.25rem 0 0;
}

@media (min-width: 640px) {
  .modal-sheet {
    border-radius: 1.25rem;
    max-width: 36rem;
  }
}

.modal-backdrop > .modal,
.modal-backdrop > .modal-sheet {
  animation: popIn 0.12s ease-out;
}

.user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 11rem;
  background: var(--card);
  border: 1px solid #3f2a40;
  border-radius: 0.85rem;
  padding: 0.35rem;
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.9);
  z-index: 60;
}

.user-menu button,
.user-menu a {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
}

.user-menu button:hover,
.user-menu a:hover {
  background: #1f1624;
}

.discover-tag {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  background: #1f1624;
  border: 1px solid #3f2a40;
  font-size: 0.82rem;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.discover-tag:hover {
  border-color: var(--accent);
}

.discover-tag__count {
  font-size: 0.68rem;
  color: var(--muted);
  font-family: ui-monospace, monospace;
}

.p4b-toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(5.5rem, calc(env(safe-area-inset-bottom, 0px) + 4.5rem));
  max-width: calc(100vw - 2rem);
  z-index: 999;
  text-align: center;
}

@media (min-width: 640px) {
  .p4b-toast {
    left: auto;
    right: 1rem;
    transform: none;
    bottom: 1rem;
    text-align: left;
  }

  .beta-timer-hud {
    right: 6.5rem;
    bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 639px) {
  .post-card:hover {
    transform: none;
    box-shadow: none;
  }

  .post-image-container img {
    max-height: 70vh;
  }

  .beta-timer-hud {
    right: max(1rem, env(safe-area-inset-right, 0px));
    bottom: calc(max(1rem, env(safe-area-inset-bottom, 0px)) + 8.5rem);
    min-width: 4.75rem;
    padding: 0.45rem 0.6rem;
  }

  .beta-timer-hud__time {
    font-size: 1rem;
  }

  .age-gate .flex {
    flex-direction: column;
  }
}

@media (hover: none) {
  .beta-btn:hover,
  .beta-timer-fab:hover,
  .post-card:hover {
    transform: none;
  }
}

/* Profile / channel */
.profile-channel-header {
  background: linear-gradient(135deg, #121217 0%, #1a0f1f 55%, #121217 100%);
  border: 1px solid #2a1f2f;
  border-radius: 1.25rem;
  padding: 1.25rem;
}

.profile-channel-avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #2a1f2f, #1a0f1f);
  border: 1px solid #3f2a40;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--beta-pink);
  flex-shrink: 0;
}

.profile-channel-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid #2a1f2f;
  overflow-x: auto;
  scrollbar-width: none;
}

.profile-channel-tabs::-webkit-scrollbar {
  display: none;
}

.profile-tab {
  padding: 0.65rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
}

.profile-tab:hover {
  color: var(--text);
}

.profile-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.profile-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .profile-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.profile-post-card {
  background: var(--card);
  border: 1px solid #2a1f2f;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.profile-post-card__media {
  aspect-ratio: 1;
  background: #0a0a0f;
  position: relative;
  overflow: hidden;
}

.profile-post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-post-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0.75rem;
  text-align: center;
}

.profile-post-card__body {
  padding: 0.65rem 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.profile-post-card__caption {
  font-size: 0.75rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-post-card__meta {
  font-size: 0.65rem;
  color: var(--muted);
}

.profile-post-card--clickable {
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.profile-post-card--clickable:hover {
  border-color: #4a3550;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.profile-post-card--clickable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.profile-media-hub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 639px) {
  .profile-media-hub {
    grid-template-columns: minmax(0, 1fr);
  }
}

.profile-media-hub__tile {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 1rem;
  background: var(--card);
  border: 1px solid #2a1f2f;
  border-radius: 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.profile-media-hub__tile:hover {
  border-color: #4a3550;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.profile-media-hub__tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.profile-media-hub__tile--video .profile-media-hub__title {
  color: #c4b5fd;
}

.profile-media-hub__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.profile-media-hub__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.profile-media-hub__sub {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.profile-media-hub__arrow {
  font-size: 1.1rem;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}

.profile-media-hub__previews {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
}

.profile-media-hub__thumb {
  aspect-ratio: 1;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #0a0a0f;
  border: 1px solid #2a1f2f;
}

.profile-media-hub__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-media-hub__empty {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--muted);
  border: 1px dashed #2a1f2f;
  border-radius: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile-media-hub__cta {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.profile-contents-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #2a1f2f;
}

.profile-contents-back {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--muted);
  background: none;
  border: 1px solid #2a1f2f;
  border-radius: 9999px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.profile-contents-back:hover {
  color: var(--accent);
  border-color: #4a3550;
}

.profile-contents-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  min-width: 0;
}

.profile-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  background: #1f1624;
  border: 1px solid #3f2a40;
}

.profile-time-stat {
  background: #121217;
  border: 1px solid #2a1f2f;
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
}

.profile-time-stat__value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--beta-pink);
  font-variant-numeric: tabular-nums;
}

.profile-time-stat__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 0.25rem;
}

.profile-session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #2a1f2f;
  font-size: 0.8rem;
}

.daily-claim-bar {
  position: sticky;
  top: 3.5rem;
  z-index: 40;
  background: linear-gradient(90deg, rgba(18, 18, 23, 0.98), rgba(26, 16, 32, 0.98));
  border-bottom: 1px solid rgba(255, 105, 180, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.daily-claim-bar__inner {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.daily-claim-bar__copy {
  min-width: 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--muted);
}

.daily-claim-bar__title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fde68a;
  margin-bottom: 0.15rem;
}

.daily-claim-bar__streak {
  color: #fbbf24;
  font-weight: 600;
}

.daily-claim-bar__pending {
  color: #f472b6;
}

.daily-claim-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, #f59e0b, #ff69b4);
  color: #0a0a0f;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  animation: daily-claim-pulse 2.4s ease-in-out infinite;
}

.daily-claim-btn:disabled {
  opacity: 0.55;
  cursor: wait;
  animation: none;
}

@keyframes daily-claim-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 105, 180, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(255, 105, 180, 0); }
}

.daily-claim-card {
  background: linear-gradient(145deg, #14101a, #121217);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.daily-claim-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.daily-claim-card__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fde68a;
}

.daily-claim-card__desc {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 0.25rem;
}

.daily-claim-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.daily-claim-card__stat strong {
  color: #fbbf24;
}

.daily-claim-card__rules {
  font-size: 0.65rem;
  color: #665a6f;
  line-height: 1.4;
  margin-top: 0.65rem;
}

.daily-claim-card--risk {
  border-color: rgba(251, 113, 133, 0.55);
  box-shadow: 0 0 18px rgba(251, 113, 133, 0.12);
}

.daily-claim-bar__inner--risk {
  border-left: 3px solid rgba(251, 113, 133, 0.65);
  padding-left: 0.85rem;
}

.daily-claim-bar__risk {
  font-size: 0.68rem;
  color: #fda4af;
  margin-top: 0.25rem;
}

.daily-claim-bar__risk--soft {
  color: #665a6f;
}

.daily-claim-bar__jackpot {
  color: #fcd34d;
  font-weight: 700;
}

.daily-claim-streak {
  display: flex;
  gap: 0.3rem;
  margin: 0.35rem 0 0.45rem;
}

.daily-claim-streak__dot {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: #665a6f;
  font-size: 0.55rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
}

.daily-claim-streak__dot--done {
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.45);
  color: #fcd34d;
}

.daily-claim-streak__dot--current {
  background: linear-gradient(135deg, #f59e0b, #ff69b4);
  border-color: transparent;
  color: #0a0a0f;
  box-shadow: 0 0 10px rgba(255, 105, 180, 0.45);
}

.daily-claim-streak__dot--jackpot {
  border-color: rgba(252, 211, 77, 0.55);
}

.bits-spend-ladder {
  margin-top: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 105, 180, 0.18);
  background: rgba(10, 10, 15, 0.55);
}

.bits-spend-ladder__title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fda4af;
  margin-bottom: 0.35rem;
}

.bits-spend-ladder__row {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid rgba(42, 31, 47, 0.9);
  border-radius: 0.75rem;
  padding: 0.55rem 0.65rem;
  margin-top: 0.45rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.bits-spend-ladder__row:hover {
  border-color: rgba(255, 105, 180, 0.35);
  background: rgba(255, 105, 180, 0.04);
}

.bits-spend-ladder__row--ready {
  border-color: rgba(251, 191, 36, 0.45);
}

.bits-spend-ladder__label {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: #f0e6ff;
}

.bits-spend-ladder__cost {
  color: #fcd34d;
  font-weight: 600;
}

.bits-spend-ladder__track {
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  margin-top: 0.35rem;
  overflow: hidden;
}

.bits-spend-ladder__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #ff69b4);
}

.bits-spend-ladder__hint {
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.bits-economy-panel {
  margin-top: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(251, 191, 36, 0.2);
  background: rgba(26, 20, 16, 0.45);
}

.bits-economy-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.bits-economy-panel__title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fcd34d;
}

.bits-economy-panel__badge {
  font-size: 0.62rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.bits-economy-panel__badge--muted {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(42, 31, 47, 0.9);
  color: var(--muted);
}

.bits-economy-panel__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.bits-economy-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(42, 31, 47, 0.9);
  background: rgba(10, 10, 15, 0.4);
}

.bits-economy-stat__label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.bits-economy-stat__value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f0e6ff;
}

.bits-economy-stat__hint {
  font-size: 0.58rem;
  color: var(--muted);
}

.bits-economy-sinks {
  margin-top: 0.65rem;
}

.bits-economy-sinks__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.bits-economy-sink {
  font-size: 0.62rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(42, 31, 47, 0.9);
  color: #d4c4e8;
  background: rgba(10, 10, 15, 0.35);
}

.bits-economy-ledger {
  margin-top: 0.65rem;
  border-top: 1px solid rgba(42, 31, 47, 0.7);
  padding-top: 0.5rem;
}

.bits-economy-ledger__summary {
  font-size: 0.65rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.bits-economy-ledger__summary:hover {
  color: #ff69b4;
}

.bits-economy-ledger__list {
  margin-top: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bits-economy-ledger__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.62rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(42, 31, 47, 0.45);
}

.bits-economy-ledger__kind {
  color: #e9d5ff;
}

.bits-economy-ledger__delta {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.bits-economy-ledger__delta--gain {
  color: #6ee7b7;
}

.bits-economy-ledger__delta--spend {
  color: #fca5a5;
}

.bits-economy-ledger__time {
  color: var(--muted);
  min-width: 3.5rem;
  text-align: right;
}

.beta-bits-chip--claimable {
  animation: beta-bits-chip-pulse 2s ease-in-out infinite;
  border-color: rgba(255, 105, 180, 0.55);
}

.nav-tab--claim-pulse {
  color: #fcd34d !important;
  animation: daily-claim-pulse 2.4s ease-in-out infinite;
}

@keyframes beta-bits-chip-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.35); }
  50% { box-shadow: 0 0 0 4px rgba(251, 191, 36, 0); }
}

.feed-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.feed-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.2rem;
  background: #121217;
  border: 1px solid #2a1f2f;
  border-radius: 999px;
}

.feed-mode-tab {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.feed-mode-tab.active {
  background: rgba(255, 105, 180, 0.18);
  color: #ff69b4;
  box-shadow: 0 0 0 1px rgba(255, 105, 180, 0.25);
}

.feed-mode-tab--has-new {
  animation: daily-claim-pulse 2.4s ease-in-out infinite;
}

.following-feed-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(192, 132, 252, 0.25);
  background: rgba(18, 18, 23, 0.85);
  font-size: 0.72rem;
}

.following-feed-meta__stat {
  font-weight: 600;
  color: #e9d5ff;
}

.following-feed-meta__muted {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  color: #fcd34d;
  cursor: pointer;
}

.following-feed-meta__hint {
  font-size: 0.65rem;
  margin-left: auto;
}

.feed-post-badges {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.feed-post-badge {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.feed-post-badge--new {
  background: rgba(52, 211, 153, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.feed-post-badge--hot {
  background: rgba(251, 146, 60, 0.18);
  color: #fdba74;
  border: 1px solid rgba(251, 146, 60, 0.35);
}

.profile-badge-row,
.feed-author-badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.feed-author-badges {
  margin-left: 0.25rem;
  vertical-align: middle;
}

.beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}

.beta-badge--tier.beta-badge--creator {
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.35);
}

.beta-badge--tier.beta-badge--upload {
  background: rgba(244, 114, 182, 0.15);
  color: #f9a8d4;
  border-color: rgba(244, 114, 182, 0.35);
}

.beta-badge--tier.beta-badge--watch {
  background: rgba(167, 139, 250, 0.15);
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.35);
}

.beta-badge--tier.beta-badge--patron {
  background: rgba(255, 105, 180, 0.15);
  color: #ff69b4;
  border-color: rgba(255, 105, 180, 0.35);
}

.beta-badge--streak {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.3);
}

.beta-badge--streak-risk {
  background: rgba(251, 191, 36, 0.15);
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.4);
}

.beta-badge--streak-max {
  background: rgba(250, 204, 21, 0.18);
  color: #fde047;
  border-color: rgba(250, 204, 21, 0.45);
}

.beta-badge--preview {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
}

.feed-mute-btn {
  font-size: 0.85rem;
  line-height: 1;
  padding: 0.25rem 0.4rem;
  border-radius: 0.4rem;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.feed-mute-btn:hover {
  opacity: 1;
  border-color: rgba(192, 132, 252, 0.35);
}

.feed-admin-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.25);
  color: #fca5a5;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.feed-admin-remove-btn:hover {
  background: rgba(185, 28, 28, 0.35);
  border-color: rgba(248, 113, 113, 0.6);
  color: #fecaca;
}

.feed-mute-btn.is-muted {
  opacity: 1;
  border-color: rgba(251, 191, 36, 0.4);
}

.profile-follow-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.profile-mute-btn {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(192, 132, 252, 0.35);
  background: transparent;
  color: #c084fc;
  cursor: pointer;
}

.profile-mute-btn.is-muted {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fcd34d;
}

.muted-following-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #2a1f2f;
}

.muted-following-row:last-child {
  border-bottom: none;
}

.following-feed-panel {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.following-feed-meta__action {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(192, 132, 252, 0.35);
  background: rgba(192, 132, 252, 0.08);
  color: #c084fc;
  cursor: pointer;
}

.following-content-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0.15rem;
}

.following-content-filter {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(42, 31, 47, 0.9);
  background: rgba(18, 18, 23, 0.85);
  color: #9a8aa3;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.following-content-filter:hover {
  border-color: rgba(255, 105, 180, 0.35);
  color: #f0e6ff;
}

.following-content-filter--active {
  border-color: rgba(255, 105, 180, 0.45);
  background: rgba(255, 105, 180, 0.12);
  color: #ff69b4;
}

.following-activity-digest {
  padding: 0.5rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(42, 31, 47, 0.9);
  background: rgba(12, 12, 16, 0.75);
  font-size: 0.68rem;
}

.following-activity-digest--loading {
  padding: 0.55rem 0.85rem;
}

.following-activity-digest__toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.following-activity-digest__label {
  font-weight: 700;
  color: #e9d5ff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.58rem;
  flex-shrink: 0;
}

.following-activity-digest__summary {
  flex: 1;
  min-width: 0;
  color: #9a8aa3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.following-activity-digest__chevron {
  color: #c084fc;
  flex-shrink: 0;
}

.following-activity-digest__body {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid #2a1f2f;
}

.following-digest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
}

.following-digest-row__count {
  font-size: 0.62rem;
  flex-shrink: 0;
}

.following-digest-muted {
  color: #fcd34d;
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
}

.following-manage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #2a1f2f;
}

.following-manage-row:last-child {
  border-bottom: none;
}

.following-manage-row__meta {
  font-size: 0.65rem;
  margin-top: 0.15rem;
}

.following-manage-row__mute {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(192, 132, 252, 0.35);
  background: transparent;
  color: #c084fc;
  cursor: pointer;
  flex-shrink: 0;
}

.following-manage-row__mute.is-muted {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.1);
  color: #fcd34d;
}

.feed-sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.feed-sort-wrap__label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.feed-sort-select {
  appearance: none;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.42rem 1.75rem 0.42rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(192, 132, 252, 0.35);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23c084fc' d='M1 1l4 4 4-4'/%3E%3C/svg%3E")
    no-repeat right 0.65rem center / 10px 6px,
    #121217;
  color: #c084fc;
  cursor: pointer;
}

.feed-sort-select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(192, 132, 252, 0.25);
}

.profile-follow-btn {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 105, 180, 0.45);
  background: transparent;
  color: #ff69b4;
  cursor: pointer;
}

.profile-follow-btn.is-following {
  background: rgba(255, 105, 180, 0.12);
  border-color: rgba(255, 105, 180, 0.35);
  color: #f9a8d4;
}

.beta-bits-rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.beta-bits-rain__bit {
  position: absolute;
  top: -3rem;
  color: #fcd34d;
  font-weight: 700;
  text-shadow:
    0 0 6px rgba(251, 191, 36, 0.75),
    0 0 14px rgba(255, 105, 180, 0.35);
  animation: beta-bits-rain-fall linear forwards;
  will-change: transform, opacity;
}

.beta-bits-rain__bit--pink {
  color: #ff69b4;
  text-shadow: 0 0 8px rgba(255, 105, 180, 0.65);
}

.beta-bits-rain__bit--chip {
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
  font-size: 0.6rem !important;
  letter-spacing: 0.02em;
}

@keyframes beta-bits-rain-fall {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.85);
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  88% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(115vh) rotate(420deg) scale(1.05);
    opacity: 0;
  }
}

.daily-quest-card {
  background: #121217;
  border: 1px solid #2a1f2f;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
}

.daily-quest-card.is-active {
  border-color: rgba(255, 105, 180, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 105, 180, 0.12);
}

.daily-quest-card.is-complete {
  border-color: rgba(74, 222, 128, 0.35);
}

.daily-quest-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.daily-quest-card__title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.daily-quest-card__desc {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
  line-height: 1.4;
}

.daily-quest-card__bar {
  height: 6px;
  background: #0a0a0f;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.65rem;
}

.daily-quest-card__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff69b4, #c084fc);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.daily-quest-card.is-complete .daily-quest-card__bar-fill {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.dailies-hub-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.beta-bits-balance {
  background: linear-gradient(135deg, #1a1410 0%, #121217 100%);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
}

.beta-bits-balance__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(251, 191, 36, 0.75);
}

.beta-bits-balance__value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fcd34d;
  margin-top: 0.15rem;
}

.beta-bits-balance__today {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.beta-bits-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #fcd34d;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.beta-bits-chip__icon {
  font-size: 0.62rem;
  opacity: 0.85;
}

.trading-card-feed {
  background: linear-gradient(145deg, #1a1410 0%, #121217 55%, #121217 100%);
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.08);
}

.trading-card-feed__frame {
  position: relative;
  background: #0a0a0f;
  aspect-ratio: 4 / 5;
  max-height: 420px;
  overflow: hidden;
}

.trading-card-feed__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trading-card-feed__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.5rem;
  border-radius: 0.35rem;
  background: rgba(251, 191, 36, 0.9);
  color: #1a1410;
}

.trading-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.trading-card-grid--polished {
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
  gap: 0.85rem;
}

.trading-card-item {
  background: #121217;
  border: 1px solid #2a1f2f;
  border-radius: 0.85rem;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.trading-card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.35);
}

.trading-card-item--uncommon { border-color: rgb(110 231 183 / 0.35); }
.trading-card-item--rare { border-color: rgb(147 197 253 / 0.4); }
.trading-card-item--epic { border-color: rgb(196 181 253 / 0.45); }
.trading-card-item--legendary {
  border-color: rgb(252 211 77 / 0.55);
  box-shadow: 0 0 0 1px rgb(252 211 77 / 0.12);
}

.trading-card-item--trigger {
  box-shadow: 0 0 0 1px rgb(255 105 180 / 0.35);
}

.trading-card-item__frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  background: #0a0a0f;
}

.trading-card-item__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trading-card-item__badge {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  font-size: 0.7rem;
  color: #fcd34d;
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.8);
}

.trading-card-item__body {
  padding: 0.55rem 0.6rem 0.65rem;
}

.trading-card-item__caption {
  font-size: 0.68rem;
  line-height: 1.35;
}

.trading-card-item__caption-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
  font-weight: 600;
}

.trading-card-item__caption-btn:hover {
  color: #fcd34d;
}

.trading-card-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.3rem;
  font-size: 0.58rem;
  color: var(--muted);
}

.trading-card-item__record {
  color: rgb(251 113 133 / 0.85);
  font-weight: 600;
}

.trading-card-item__quick-tip {
  font-size: 0.58rem;
  font-weight: 600;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  border: 1px solid rgb(251 191 36 / 0.35);
  background: rgb(251 191 36 / 0.08);
  color: #fcd34d;
  cursor: pointer;
}

.trading-card-item__status {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  font-size: 0.62rem;
  line-height: 1;
  padding: 0.15rem 0.35rem;
  border-radius: 0.35rem;
  background: rgb(0 0 0 / 0.65);
  border: 1px solid rgb(255 255 255 / 0.12);
}

.trading-card-item__status--trigger { color: #f9a8d4; }
.trading-card-item__status--frame { color: #fcd34d; }

.trading-card-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.45rem;
}

.cards-collection-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid rgb(251 191 36 / 0.22);
  background: linear-gradient(135deg, rgb(26 20 16 / 0.9), rgb(18 18 23 / 0.95));
}

.cards-rarity-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  width: 100%;
  margin-top: 0.15rem;
}

.cards-rarity-chip {
  font-size: 0.58rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(42, 31, 47, 0.9);
  background: rgba(10, 10, 15, 0.45);
  color: #d4c4e8;
}

.cards-rarity-chip--legendary { border-color: rgba(251, 191, 36, 0.45); color: #fcd34d; }
.cards-rarity-chip--epic { border-color: rgba(192, 132, 252, 0.45); color: #c084fc; }
.cards-rarity-chip--rare { border-color: rgba(96, 165, 250, 0.4); color: #93c5fd; }
.cards-rarity-chip--uncommon { border-color: rgba(52, 211, 153, 0.35); color: #6ee7b7; }
.cards-rarity-chip--common { color: var(--muted); }
.cards-rarity-chip--muted { color: var(--muted); }

.cards-share-btn {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 105, 180, 0.35);
  background: rgba(255, 105, 180, 0.08);
  color: #ff69b4;
  cursor: pointer;
}

.cards-share-btn:hover {
  background: rgba(255, 105, 180, 0.14);
}

.cards-collection-summary__stat {
  display: flex;
  flex-direction: column;
  min-width: 3.5rem;
}

.cards-collection-summary__value {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fef3c7;
}

.cards-collection-summary__label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.cards-collection-summary__stat--alert .cards-collection-summary__value {
  color: #fcd34d;
}

.cards-hub-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}

.cards-hub-banner__hint {
  font-size: 0.68rem;
  color: var(--muted);
}

.cards-inbox {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.cards-inbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #2a1f2f;
  border-radius: 0.85rem;
  background: #121217;
}

.cards-inbox__header-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fcd34d;
}

.cards-inbox__header-badge {
  font-size: 0.58rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fcd34d;
}

.cards-inbox__header-badge--muted {
  background: transparent;
  border-color: rgba(42, 31, 47, 0.9);
  color: var(--muted);
}

.cards-inbox__section {
  border: 1px solid #2a1f2f;
  border-radius: 0.85rem;
  background: #121217;
  overflow: hidden;
}

.cards-inbox__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e9d5ff;
  cursor: pointer;
  list-style: none;
}

.cards-inbox__summary::-webkit-details-marker {
  display: none;
}

.cards-inbox__count {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  color: var(--muted);
}

.cards-inbox__count--hot {
  background: rgb(251 191 36 / 0.18);
  color: #fcd34d;
  animation: daily-claim-pulse 2.4s ease-in-out infinite;
}

.cards-inbox__hint {
  font-size: 0.65rem;
  color: var(--muted);
  padding: 0 0.85rem 0.55rem;
  margin: 0;
}

.cards-inbox__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0 0.85rem 0.85rem;
}

.cards-inbox__empty {
  font-size: 0.68rem;
  color: var(--muted);
  padding: 0 0.85rem 0.85rem;
}

.cards-trade-row {
  padding: 0.7rem;
  border-radius: 0.65rem;
  border: 1px solid #2a1f2f;
  background: #0d0d12;
  font-size: 0.72rem;
}

.cards-trade-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.cards-trade-row__title {
  font-weight: 600;
}

.cards-trade-row__time {
  font-size: 0.58rem;
  color: var(--muted);
  white-space: nowrap;
}

.cards-trade-row__visual {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.cards-trade-row__card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.cards-trade-row__thumb {
  width: 3.25rem;
  height: 4.25rem;
  object-fit: cover;
  border-radius: 0.35rem;
  border: 1px solid #2a1f2f;
}

.cards-trade-row__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #121217;
  color: var(--muted);
  font-size: 0.85rem;
}

.cards-trade-row__caption {
  font-size: 0.58rem;
  color: var(--muted);
  text-align: center;
  max-width: 5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cards-trade-row__swap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.cards-trade-row__arrow {
  color: #c084fc;
  font-weight: 700;
}

.cards-trade-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cards-collection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.cards-collection-header__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(251 191 36 / 0.9);
}

.cards-sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cards-sort-wrap__label {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.cards-sort-select {
  appearance: none;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.35rem 1.5rem 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgb(251 191 36 / 0.3);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23fcd34d' d='M1 1l4 4 4-4'/%3E%3C/svg%3E")
    no-repeat right 0.55rem center / 10px 6px,
    #121217;
  color: #fcd34d;
  cursor: pointer;
}

.cards-rarity-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.cards-rarity-filter {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(42, 31, 47, 0.9);
  background: rgba(10, 10, 15, 0.45);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.cards-rarity-filter:hover:not(:disabled) {
  border-color: rgba(255, 105, 180, 0.35);
  color: #f0e6ff;
}

.cards-rarity-filter--active {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.1);
  color: #fcd34d;
}

.cards-rarity-filter--disabled,
.cards-rarity-filter:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cards-filter-empty {
  border: 1px dashed rgba(42, 31, 47, 0.9);
  border-radius: 0.85rem;
}

.cards-empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  border: 1px dashed rgb(251 191 36 / 0.25);
  border-radius: 1rem;
  background: rgb(18 18 23 / 0.6);
}

.cards-empty-state__icon {
  font-size: 2rem;
  color: #fcd34d;
  margin-bottom: 0.5rem;
}

.cards-empty-state__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.cards-empty-state__desc {
  font-size: 0.72rem;
  color: var(--muted);
  max-width: 18rem;
  margin: 0 auto 1rem;
  line-height: 1.45;
}

.cards-empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.profile-tab--inbox-pulse {
  animation: daily-claim-pulse 2.4s ease-in-out infinite;
}

#user-area {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.notif-bell-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid #2a1f2f;
  background: #121217;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.notif-bell-btn:hover {
  border-color: rgba(255, 105, 180, 0.45);
}

.notif-bell-btn--unread {
  border-color: rgba(255, 105, 180, 0.5);
  animation: daily-claim-pulse 2.4s ease-in-out infinite;
}

.notif-bell-btn__icon {
  font-size: 1rem;
  line-height: 1;
}

.notif-bell-btn__badge {
  position: absolute;
  top: -0.2rem;
  right: -0.15rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #ff2e63;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
  box-shadow: 0 0 0 2px #121217;
}

.notifications-hub__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.notif-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.notif-filter-tab {
  font-size: 0.68rem;
}

.notif-load-more {
  display: flex;
  justify-content: center;
  margin-top: 0.85rem;
}

.post-card--highlight {
  box-shadow: 0 0 0 2px rgba(255, 105, 180, 0.55), 0 0 24px rgba(255, 105, 180, 0.15);
  transition: box-shadow 0.3s ease;
}

.notif-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid #2a1f2f;
  background: #121217;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.notif-item:hover {
  border-color: rgba(255, 105, 180, 0.35);
  background: #15151c;
}

.notif-item--unread {
  border-color: rgba(255, 105, 180, 0.28);
  background: linear-gradient(135deg, rgb(26 18 28 / 0.95), #121217);
}

.notif-item__icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgb(255 255 255 / 0.05);
  font-size: 0.9rem;
}

.notif-item--amber .notif-item__icon { background: rgb(251 191 36 / 0.12); }
.notif-item--rose .notif-item__icon { background: rgb(251 113 133 / 0.12); }
.notif-item--purple .notif-item__icon { background: rgb(192 132 252 / 0.12); }
.notif-item--pink .notif-item__icon { background: rgb(255 105 180 / 0.12); }

.notif-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.notif-item__title {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: #f0e6ff;
}

.notif-item__desc {
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--muted);
}

.notif-item__time {
  font-size: 0.58rem;
  color: rgb(154 138 163 / 0.85);
  margin-top: 0.1rem;
}

.notif-item__dot {
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #ff69b4;
  margin-top: 0.35rem;
}

.notif-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  border: 1px dashed #2a1f2f;
  border-radius: 1rem;
}

.notif-empty__icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.notif-empty__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.notif-empty__desc {
  font-size: 0.72rem;
  color: var(--muted);
  max-width: 18rem;
  margin: 0 auto;
  line-height: 1.45;
}

.card-detail-modal {
  border-color: rgb(251 191 36 / 0.35) !important;
}

.card-detail-modal__hero {
  position: relative;
  background: #0a0a0f;
  aspect-ratio: 4 / 5;
  max-height: 55vh;
}

.card-detail-modal__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-detail-modal__hero-overlay {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.card-detail-modal__pill {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.7);
  border: 1px solid rgb(255 255 255 / 0.15);
}

.card-detail-modal__pill--trigger { color: #f9a8d4; }
.card-detail-modal__pill--frame { color: #fcd34d; }

.card-detail-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: none;
  background: rgb(0 0 0 / 0.55);
  cursor: pointer;
}

.card-detail-modal__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: #fef3c7;
}

.card-detail-modal__stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.78rem;
  margin-bottom: 0.65rem;
}

.card-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.card-detail-action {
  width: 100%;
  text-align: center;
}

.trading-card-stats {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.trading-card-stats__name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fef3c7;
  text-shadow: 0 1px 4px rgb(0 0 0 / 0.85);
}

.trading-card-stats__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.62rem;
  color: #e5e7eb;
}

.trading-card-stats__stat strong {
  color: #fcd34d;
  font-weight: 700;
}

.trading-card-stats__rarity {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
  border-radius: 0.3rem;
  background: rgb(0 0 0 / 0.55);
  border: 1px solid rgb(255 255 255 / 0.12);
}

.trading-card-rarity--common { color: #9ca3af; }
.trading-card-rarity--uncommon { color: #6ee7b7; border-color: rgb(110 231 183 / 0.35); }
.trading-card-rarity--rare { color: #93c5fd; border-color: rgb(147 197 253 / 0.35); }
.trading-card-rarity--epic { color: #c4b5fd; border-color: rgb(196 181 253 / 0.35); }
.trading-card-rarity--legendary { color: #fcd34d; border-color: rgb(252 211 77 / 0.45); }

.trading-card-stats--compact .trading-card-stats__name {
  font-size: 0.62rem;
}

.trading-card-stats--compact .trading-card-stats__row {
  font-size: 0.55rem;
  gap: 0.3rem;
}

/* Wank Battles */
.wank-battles-header h1 {
  letter-spacing: 0.02em;
}

.wank-deck-panel {
  border: 1px solid rgba(255, 105, 180, 0.18);
  border-radius: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgb(22 14 24 / 0.7), #121217);
}

.wank-deck-panel__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

@media (min-width: 480px) {
  .wank-deck-panel__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.wank-deck-stat {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid #2a1f2f;
  border-radius: 0.65rem;
  padding: 0.5rem 0.65rem;
}

.wank-deck-stat__label {
  display: block;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.wank-deck-stat__value {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

.wank-deck-panel__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.wank-deck-chip {
  position: relative;
  width: 2.75rem;
  height: 3.75rem;
  border-radius: 0.45rem;
  overflow: hidden;
  border: 1px solid #2a1f2f;
  background: #000;
}

.wank-deck-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wank-deck-chip__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 0.9rem;
  color: var(--muted);
}

.wank-deck-chip__atk {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.55rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.75);
  color: #fbbf24;
  padding: 0.1rem 0;
}

.wank-history-row {
  border-color: rgba(255, 105, 180, 0.12);
}

.wank-battles-section__title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(251 113 133 / 0.9);
  margin-bottom: 0.65rem;
}

.wank-battle-card {
  background: #121217;
  border: 1px solid rgb(251 113 133 / 0.25);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
}

.wank-battle-card--compact {
  padding: 0.65rem 0.85rem;
}

.wank-battle-card__header {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fecdd3;
  margin-bottom: 0.65rem;
}

.wank-battle-card__versus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.wank-battle-card__versus--small {
  gap: 0.5rem;
}

.wank-battle-card__vs {
  font-size: 0.65rem;
  font-weight: 800;
  color: #fb7185;
  letter-spacing: 0.1em;
}

.wank-battle-thumb {
  width: 4.5rem;
  text-align: center;
  flex-shrink: 0;
}

.wank-battle-thumb img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0.45rem;
  border: 1px solid #2a1f2f;
}

.wank-battle-thumb__empty {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0c;
  border-radius: 0.45rem;
  border: 1px solid #2a1f2f;
  color: #6b7280;
  font-size: 1.25rem;
}

.wank-battle-thumb__empty--npc {
  background: rgb(251 113 133 / 0.08);
  border-color: rgb(251 113 133 / 0.35);
  font-size: 1.5rem;
}

.wank-battle-queue-active .wank-battle-card {
  animation: wank-queue-pulse 2s ease-in-out infinite;
}

@keyframes wank-queue-pulse {
  0%, 100% { border-color: rgb(251 113 133 / 0.25); }
  50% { border-color: rgb(251 113 133 / 0.55); }
}

/* Wank Battlefield — TCG board (Hearthstone-inspired layout, beta theme) */
.wank-battlefield-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background:
    radial-gradient(ellipse 120% 80% at 50% 110%, rgb(251 113 133 / 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at center, #1a0f24 0%, #06040a 72%);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.wank-battlefield-overlay.hidden {
  display: none !important;
}

.wank-bf {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

.wank-bf__hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  background: linear-gradient(180deg, rgb(0 0 0 / 0.55), transparent);
  flex-shrink: 0;
}

.wank-bf__title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fecdd3;
}

.wank-bf__wager {
  font-size: 0.62rem;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 0.04em;
}

.wank-bf__leave {
  font-size: 0.65rem;
  font-weight: 600;
  color: #9ca3af;
  background: rgb(0 0 0 / 0.45);
  border: 1px solid rgb(251 113 133 / 0.25);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.wank-bf__leave:hover {
  color: #fecdd3;
  border-color: rgb(251 113 133 / 0.5);
}

.wank-bf__table {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0.25rem 0.35rem 0.5rem;
  min-height: min(100%, 100vh);
}

.wank-bf__table-rim {
  display: none;
}

.wank-bf__table-inner {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: calc(100dvh - 3.5rem);
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 0.35rem;
  padding: 0.75rem 3.25rem 0.85rem;
  border-radius: 1.35rem;
  background:
    linear-gradient(165deg, #2a1528 0%, #1a0f1f 18%, #3d2238 42%, #2a1528 58%, #1a0f1f 82%, #120a14 100%);
  border: 3px solid #5c3a4a;
  box-shadow:
    inset 0 0 0 1px rgb(251 113 133 / 0.15),
    inset 0 2px 24px rgb(0 0 0 / 0.45),
    0 12px 40px rgb(0 0 0 / 0.65);
}

.wank-bf__deck {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  z-index: 4;
}

.wank-bf__deck--mine {
  left: 0.35rem;
}

.wank-bf__deck--opp {
  right: 0.35rem;
}

.wank-bf__deck-stack {
  width: 2.35rem;
  height: 3.25rem;
  border-radius: 0.4rem;
  background-size: cover;
  background-position: center;
  border: 1px solid #3f2a40;
  box-shadow:
    3px 3px 0 #0a0a0c,
    6px 6px 0 rgb(0 0 0 / 0.35);
}

.wank-bf__deck-count {
  font-size: 0.72rem;
  font-weight: 800;
  color: #fbbf24;
  background: rgb(0 0 0 / 0.7);
  border: 1px solid rgb(251 113 133 / 0.35);
  border-radius: 999px;
  min-width: 1.35rem;
  text-align: center;
  padding: 0.05rem 0.35rem;
}

.wank-bf__deck-label {
  font-size: 0.48rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.wank-bf__opponent-bar,
.wank-bf__player-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  z-index: 3;
}

.wank-bf__player-bar {
  flex-wrap: wrap;
}

.wank-bf__hero {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.wank-bf__hero--opp {
  flex-direction: row-reverse;
}

.wank-bf__hero-frame {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(145deg, #fcd34d, #fb7185 45%, #7c3aed);
  box-shadow: 0 0 14px rgb(251 113 133 / 0.35);
  flex-shrink: 0;
}

.wank-bf__hero--opp .wank-bf__hero-frame {
  background: linear-gradient(145deg, #a78bfa, #fb7185 50%, #4c1d4f);
}

.wank-bf__hero-portrait {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a0f1f, #0a0a0f);
  border: 2px solid #2a1f2f;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--beta-pink);
}

.wank-bf__hero-plate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
}

.wank-bf__hero--opp .wank-bf__hero-plate {
  align-items: center;
}

.wank-bf__hero-name {
  font-size: 0.68rem;
  font-weight: 700;
  color: #e5e7eb;
  max-width: 7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wank-bf__hero-score {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, #ef4444, #991b1b 70%);
  border: 2px solid #fca5a5;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.5);
  font-variant-numeric: tabular-nums;
}

.wank-bf__prompt {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
  text-align: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  max-width: 14rem;
  line-height: 1.35;
}

.wank-bf__prompt.is-active {
  color: #fecdd3;
  border-color: rgb(251 113 133 / 0.45);
  background: rgb(251 113 133 / 0.1);
  animation: wank-prompt-pulse 1.6s ease-in-out infinite;
}

@keyframes wank-prompt-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgb(251 113 133 / 0.25); }
  50% { box-shadow: 0 0 12px 2px rgb(251 113 133 / 0.2); }
}

.wank-bf__hand {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 8.5rem;
  padding: 0 0.5rem;
  z-index: 5;
}

.wank-bf__hand--pickable {
  align-items: center;
  min-height: 12rem;
  padding: 0.65rem 0.5rem 0.85rem;
  overflow-x: auto;
  overflow-y: visible;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0.65rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  position: relative;
  z-index: 20;
  touch-action: pan-x;
}

.wank-bf__hand--pickable .wank-play-card {
  margin-left: 0 !important;
  transform: none !important;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgb(251 113 133 / 0.35);
}

.wank-bf__table-inner--picking {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  grid-template-rows: auto auto minmax(8rem, 1fr) auto auto;
}

.wank-bf__table-inner--picking .wank-bf__deck {
  opacity: 0.35;
  pointer-events: none;
}

.wank-bf__table-inner--picking .wank-bf__mat {
  min-height: clamp(8rem, 22vh, 14rem);
}

.wank-bf--pick-phase .wank-bf__prompt.is-active {
  max-width: none;
  font-size: 0.72rem;
}

.wank-bf__hand--opp {
  align-items: flex-start;
  min-height: 3.75rem;
  transform: rotate(180deg);
}

.wank-bf__hand--opp .wank-play-card__stats {
  transform: rotate(180deg);
}

.wank-bf__hand--player .wank-play-card {
  margin-left: -0.55rem;
  transform-origin: bottom center;
}

.wank-bf__hand--player .wank-play-card:first-child {
  margin-left: 0;
}

.wank-bf__hand--player .wank-play-card:nth-child(1) { transform: rotate(-14deg) translateY(4px); z-index: 1; }
.wank-bf__hand--player .wank-play-card:nth-child(2) { transform: rotate(-8deg) translateY(2px); z-index: 2; }
.wank-bf__hand--player .wank-play-card:nth-child(3) { transform: rotate(-3deg); z-index: 3; }
.wank-bf__hand--player .wank-play-card:nth-child(4) { transform: rotate(3deg); z-index: 4; }
.wank-bf__hand--player .wank-play-card:nth-child(5) { transform: rotate(8deg) translateY(2px); z-index: 5; }
.wank-bf__hand--player .wank-play-card:nth-child(6) { transform: rotate(14deg) translateY(4px); z-index: 6; }

.wank-bf__hand--opp .wank-play-card {
  margin-left: -0.85rem;
}

.wank-bf__hand--opp .wank-play-card:first-child {
  margin-left: 0;
}

.wank-bf__mat {
  position: relative;
  display: grid;
  grid-template-rows: 1fr 1fr;
  min-height: clamp(14rem, 32vh, 22rem);
  margin: 0.25rem 0;
  border-radius: 0.85rem;
  overflow: visible;
  border: 2px solid #4a3050;
  box-shadow: inset 0 4px 28px rgb(0 0 0 / 0.35);
  background:
    linear-gradient(180deg, rgb(90 55 75 / 0.35) 0%, rgb(45 28 42 / 0.2) 48%, rgb(35 22 38 / 0.25) 52%, rgb(70 40 58 / 0.3) 100%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 18px,
      rgb(0 0 0 / 0.04) 18px,
      rgb(0 0 0 / 0.04) 19px
    ),
    linear-gradient(160deg, #3d2840 0%, #2a1a2e 40%, #352238 60%, #2a1a2e 100%);
}

.wank-bf__mat-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 45% at 50% 50%, rgb(251 113 133 / 0.08), transparent 70%);
  pointer-events: none;
}

.wank-bf__mat-line {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgb(251 113 133 / 0.35), transparent);
  pointer-events: none;
  z-index: 1;
}

.wank-bf__zone {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  padding: 0.35rem;
}

.wank-bf__zone--opp {
  align-items: flex-end;
  padding-bottom: 0.5rem;
}

.wank-bf__zone--player {
  align-items: flex-start;
  padding-top: 0.5rem;
}

.wank-bf__clash {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fb7185;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 0 16px rgb(251 113 133 / 0.9);
  z-index: 6;
  white-space: nowrap;
}

.wank-bf__clash.is-active {
  animation: wank-clash-pop 0.55s ease-out forwards;
}

@keyframes wank-clash-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  40% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.4); }
}

.wank-bf__round {
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  transform: translateX(-50%);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(251 113 133 / 0.75);
  background: rgb(0 0 0 / 0.55);
  border: 1px solid rgb(251 113 133 / 0.2);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  z-index: 7;
  pointer-events: none;
}

.wank-play-card {
  width: clamp(4.75rem, 11vw, 6.5rem);
  aspect-ratio: 5 / 7;
  position: relative;
  border-radius: 0.5rem;
  transform-style: preserve-3d;
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
  flex-shrink: 0;
}

.wank-play-card--in-hand {
  width: clamp(5.75rem, 15vw, 9rem);
}

.wank-bf__hand--pickable .wank-play-card--in-hand {
  width: clamp(7.25rem, 22vw, 11rem);
}

.wank-play-card--lg {
  width: clamp(6rem, 15vw, 8.5rem);
}

.wank-play-card--board {
  width: clamp(7.5rem, 18vw, 11rem);
  filter: drop-shadow(0 6px 12px rgb(0 0 0 / 0.55));
}

.wank-play-card--board .wank-play-card__art {
  inset: 0.3rem 0.3rem 0.55rem;
}

.wank-play-card--board .wank-play-card__stats {
  display: none;
}

.wank-play-card__gem {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 800;
  border: 2px solid rgb(0 0 0 / 0.45);
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.45);
  font-variant-numeric: tabular-nums;
}

.wank-play-card__gem--atk {
  left: -0.35rem;
  bottom: 0.55rem;
  color: #fef3c7;
  background: radial-gradient(circle at 35% 30%, #fbbf24, #b45309);
}

.wank-play-card__gem--def {
  right: -0.35rem;
  bottom: 0.55rem;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, #ef4444, #991b1b);
}

.wank-play-card__layer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}

.wank-play-card__bg {
  background-size: cover;
  background-position: center;
}

.wank-play-card__art {
  position: absolute;
  inset: 0.35rem 0.35rem 1.6rem;
  border-radius: 0.25rem;
  overflow: hidden;
  background: #0a0a0c;
}

.wank-play-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wank-play-card__npc-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: rgb(251 113 133 / 0.1);
}

.wank-play-card__border {
  pointer-events: none;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.wank-play-card__back {
  background-size: cover;
  background-position: center;
}

.wank-play-card__stats {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.15rem 0.25rem 0.2rem;
  font-size: 0.48rem;
  line-height: 1.15;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.85));
  color: #f3f4f6;
  z-index: 2;
}

.wank-play-card__name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wank-play-card--face-down .wank-play-card__front {
  display: none;
}

.wank-play-card--face-up .wank-play-card__back {
  display: none;
}

.wank-play-card--selectable {
  cursor: pointer;
  box-shadow: 0 0 0 3px rgb(251 113 133 / 0.65);
  pointer-events: auto;
  z-index: 30 !important;
  animation: wank-card-pick-pulse 1.4s ease-in-out infinite;
}

.wank-play-card--selectable .wank-play-card__layer,
.wank-play-card--selectable .wank-play-card__art,
.wank-play-card--selectable .wank-play-card__art img {
  pointer-events: none;
}

.wank-play-card--selectable:hover,
.wank-play-card--selectable:focus-visible {
  transform: translateY(-14px) scale(1.08) !important;
  box-shadow: 0 0 24px rgb(251 113 133 / 0.75);
  z-index: 40 !important;
  animation: none;
}

@keyframes wank-card-pick-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgb(251 113 133 / 0.55); }
  50% { box-shadow: 0 0 0 5px rgb(251 113 133 / 0.85), 0 0 18px rgb(251 113 133 / 0.35); }
}

.wank-play-card--in-hand.wank-play-card--played {
  opacity: 0.42;
  filter: grayscale(0.45);
  pointer-events: none;
  z-index: 1 !important;
}

.wank-play-card--winner {
  box-shadow: 0 0 16px rgb(252 211 77 / 0.65);
  transform: scale(1.05);
}

.wank-play-card--fly-in {
  animation: wank-card-fly-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes wank-card-fly-in {
  from { opacity: 0; transform: translateY(24px) scale(0.85); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wank-battlefield__result {
  text-align: center;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgb(251 113 133 / 0.2);
  background: linear-gradient(180deg, transparent, rgb(0 0 0 / 0.45));
  flex-shrink: 0;
}

.wank-battlefield__result.hidden {
  display: none;
}

@media (max-width: 480px) {
  .wank-bf__table-inner {
    padding: 0.5rem 1.75rem 0.45rem;
    min-height: calc(100dvh - 3rem);
    transform: none;
  }

  .wank-bf__table-inner--picking {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  .wank-bf__hand--pickable {
    min-height: 10.5rem;
    gap: 0.5rem;
  }

  .wank-bf__hand--pickable .wank-play-card--in-hand {
    width: clamp(6.75rem, 42vw, 8.75rem);
  }

  .wank-bf__deck-stack {
    width: 2rem;
    height: 2.85rem;
  }

  .wank-bf__hero-frame {
    width: 2.85rem;
    height: 2.85rem;
  }

  .wank-bf__hero-score {
    min-width: 1.85rem;
    height: 1.85rem;
    font-size: 0.9rem;
  }

  .wank-play-card--in-hand {
    width: clamp(4.35rem, 18vw, 5.5rem);
  }

  .wank-play-card--board {
    width: clamp(5.25rem, 20vw, 6.75rem);
  }

  .wank-bf__hand--player .wank-play-card {
    margin-left: -0.4rem;
  }

  .wank-bf__hand {
    min-height: 5.75rem;
  }

  .wank-bf__mat {
    min-height: 10rem;
  }

  .wank-bf__player-bar {
    flex-direction: column;
  }

  .wank-bf__prompt {
    max-width: 100%;
  }
}

.wank-battle-thumb__label {
  font-size: 0.58rem;
  margin-top: 0.25rem;
  color: #d1d5db;
  line-height: 1.2;
}

.wank-battle-thumb__stat {
  font-size: 0.58rem;
  color: #fb7185;
  font-weight: 600;
}

.wank-battle-result__powers {
  padding: 0.5rem;
  border-radius: 0.75rem;
  background: rgb(251 113 133 / 0.08);
  border: 1px solid rgb(251 113 133 / 0.2);
}

.trading-card-feed__stats,
.trading-card-item__stats {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.55rem 0.65rem;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.88));
  pointer-events: none;
}

/* ── Betafy shrine ───────────────────────────────────────── */

.betafy-hub {
  position: relative;
  max-width: 36rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.betafy-hub--veiled {
  padding-top: 2.5rem;
}

.betafy-header {
  position: relative;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}

.betafy-header__title {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fcd34d 0%, #e879f9 45%, #ff69b4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
  text-shadow: 0 0 40px rgba(192, 38, 255, 0.25);
}

.betafy-lore {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(200, 180, 220, 0.75);
  max-width: 28rem;
  margin: 0 auto;
  font-style: italic;
}

.betafy-header__depth {
  margin-top: 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(251, 191, 36, 0.45);
}

.betafy-header__refresh {
  position: absolute;
  top: 0;
  right: 0;
  opacity: 0.5;
}

.betafy-altar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

/* Shrine — animated pixel void swirl */

.betafy-shrine {
  position: relative;
  width: min(280px, 72vw);
  height: min(280px, 72vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.betafy-shrine__aurora {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(192, 38, 255, 0.2), transparent 70%),
    radial-gradient(ellipse 50% 60% at 70% 55%, rgba(251, 191, 36, 0.14), transparent 65%),
    radial-gradient(ellipse 40% 40% at 50% 80%, rgba(255, 105, 180, 0.12), transparent 60%);
  animation: betafy-aurora-drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.betafy-shrine__swirl {
  position: absolute;
  width: 68%;
  height: 68%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(192, 38, 255, 0.45) 40deg,
    transparent 80deg,
    rgba(251, 191, 36, 0.35) 140deg,
    transparent 180deg,
    rgba(255, 105, 180, 0.4) 260deg,
    transparent 300deg
  );
  filter: blur(3px);
  opacity: 0.55;
  animation: betafy-swirl-spin 5s linear infinite;
  pointer-events: none;
}

.betafy-shrine__swirl--b {
  width: 52%;
  height: 52%;
  opacity: 0.4;
  animation: betafy-swirl-spin-rev 8s linear infinite;
  filter: blur(2px);
}

.betafy-shrine__flare {
  position: absolute;
  width: 42%;
  height: 42%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
}

.betafy-shrine__flare--a {
  background: radial-gradient(circle, rgba(252, 211, 77, 0.85) 0%, rgba(192, 38, 255, 0.45) 35%, transparent 68%);
  animation: betafy-void-flare 7s ease-out infinite;
}

.betafy-shrine__flare--b {
  background: radial-gradient(circle, rgba(255, 105, 180, 0.75) 0%, rgba(251, 191, 36, 0.35) 40%, transparent 70%);
  animation: betafy-void-flare 9s ease-out infinite;
  animation-delay: 4s;
}

.betafy-shrine__void {
  position: absolute;
  width: 44%;
  height: 44%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.betafy-shrine__void-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, #000 0%, #050508 28%, rgba(10, 10, 20, 0.85) 55%, transparent 72%);
  box-shadow:
    inset 0 0 28px rgba(0, 0, 0, 0.95),
    0 0 24px rgba(192, 38, 255, 0.2);
  animation: betafy-void-breathe 7s ease-in-out infinite;
}

.betafy-shrine__void-orbit {
  position: absolute;
  inset: -8%;
  animation: betafy-orbit-spin-rev 4s linear infinite;
}

.betafy-shrine__mist {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 10, 20, 0) 25%, rgba(10, 10, 20, 0.55) 100%);
  animation: betafy-mist-pulse 6s ease-in-out infinite;
  pointer-events: none;
}

.betafy-shrine__orbit {
  position: absolute;
  inset: 0;
  animation: betafy-orbit-spin var(--orbit-dur, 14s) linear infinite;
}

.betafy-shrine__orbit--rev {
  animation-name: betafy-orbit-spin-rev;
}

.betafy-shrine__pixel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--sz, 4px);
  height: var(--sz, 4px);
  margin: calc(var(--sz, 4px) / -2) 0 0 calc(var(--sz, 4px) / -2);
  border-radius: 1px;
  background: var(--pixel-color, #fcd34d);
  box-shadow: 0 0 6px var(--pixel-glow, rgba(252, 211, 77, 0.75));
  transform: rotate(var(--a)) translateY(calc(-1 * var(--r))) rotate(calc(-1 * var(--a)));
  animation: betafy-pixel-flicker 2.2s ease-in-out infinite;
  animation-delay: var(--d);
  opacity: 0.75;
}

.betafy-shrine__pixel:nth-child(3n) {
  --pixel-color: #c026ff;
  --pixel-glow: rgba(192, 38, 255, 0.8);
}

.betafy-shrine__pixel:nth-child(3n+1) {
  --pixel-color: #ff69b4;
  --pixel-glow: rgba(255, 105, 180, 0.7);
}

.betafy-shrine__pixel--void {
  --pixel-color: #fcd34d;
  --pixel-glow: rgba(252, 211, 77, 0.9);
  animation: betafy-void-pixel 1.6s ease-in-out infinite;
}

.betafy-shrine__halo {
  position: absolute;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  border: 1px solid rgba(252, 211, 77, 0.12);
  box-shadow:
    0 0 30px rgba(192, 38, 255, 0.18),
    inset 0 0 40px rgba(255, 105, 180, 0.06);
  animation: betafy-halo-breathe 7s ease-in-out infinite;
  pointer-events: none;
}

.betafy-shrine__sigil {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  color: rgba(252, 211, 77, 0.3);
  letter-spacing: 0.3em;
  animation: betafy-sigil-flare-sync 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 5;
}

@keyframes betafy-aurora-drift {
  0% { transform: rotate(0deg) scale(1); opacity: 0.65; }
  100% { transform: rotate(12deg) scale(1.1); opacity: 1; }
}

@keyframes betafy-swirl-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes betafy-swirl-spin-rev {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes betafy-void-flare {
  0%, 76%, 100% {
    opacity: 0;
    transform: scale(0.5);
  }
  80% {
    opacity: 1;
    transform: scale(1);
  }
  86% {
    opacity: 0.55;
    transform: scale(1.75);
  }
  92% {
    opacity: 0;
    transform: scale(2.4);
  }
}

@keyframes betafy-void-breathe {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(0.96); filter: brightness(0.85); }
  80% { transform: scale(1.08); filter: brightness(1.35); }
}

@keyframes betafy-mist-pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.04); }
}

@keyframes betafy-orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes betafy-orbit-spin-rev {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes betafy-pixel-flicker {
  0%, 100% { opacity: 0.3; transform: rotate(var(--a)) translateY(calc(-1 * var(--r))) rotate(calc(-1 * var(--a))) scale(0.75); }
  50% { opacity: 1; transform: rotate(var(--a)) translateY(calc(-1 * var(--r))) rotate(calc(-1 * var(--a))) scale(1.15); }
}

@keyframes betafy-void-pixel {
  0%, 100% { opacity: 0.2; }
  40% { opacity: 1; }
  80% { opacity: 0.15; }
}

@keyframes betafy-halo-breathe {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  80% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 50px rgba(251, 191, 36, 0.25), inset 0 0 40px rgba(255, 105, 180, 0.1); }
}

@keyframes betafy-sigil-flare-sync {
  0%, 76%, 100% { opacity: 0.25; text-shadow: none; }
  82% { opacity: 0.85; text-shadow: 0 0 16px rgba(252, 211, 77, 0.7), 0 0 32px rgba(192, 38, 255, 0.4); }
  90% { opacity: 0.3; text-shadow: none; }
}

/* Sacrifice button */

.betafy-sacrifice {
  width: 100%;
  max-width: 20rem;
}

.betafy-sacrifice__btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(252, 211, 77, 0.35);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(30, 15, 40, 0.9) 0%, rgba(10, 10, 20, 0.95) 100%);
  color: #fcd34d;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.15s;
}

.betafy-sacrifice__btn:hover:not(:disabled) {
  border-color: rgba(192, 38, 255, 0.6);
  box-shadow:
    0 0 24px rgba(192, 38, 255, 0.25),
    0 0 48px rgba(251, 191, 36, 0.1);
  transform: translateY(-1px);
}

.betafy-sacrifice__btn--dim {
  opacity: 0.45;
  cursor: not-allowed;
}

.betafy-sacrifice__btn--sm {
  display: inline-flex;
  width: auto;
  padding: 0.65rem 1.75rem;
}

.betafy-sacrifice__btn-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(192, 38, 255, 0.2), transparent 70%);
  animation: betafy-btn-glow 3s ease-in-out infinite;
  pointer-events: none;
}

.betafy-sacrifice__btn-label {
  position: relative;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.betafy-sacrifice__btn-cost {
  position: relative;
  font-size: 0.7rem;
  font-family: ui-monospace, monospace;
  color: rgba(252, 211, 77, 0.65);
}

@keyframes betafy-btn-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Ritual offerings */

.betafy-offerings {
  width: 100%;
  max-width: 28rem;
  padding: 1.25rem 1rem;
  border-top: 1px solid rgba(192, 38, 255, 0.12);
  background: linear-gradient(180deg, transparent, rgba(20, 10, 30, 0.4));
}

.betafy-offerings__title {
  text-align: center;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(200, 160, 255, 0.5);
  margin-bottom: 0.35rem;
}

.betafy-offerings__group {
  margin-bottom: 1.1rem;
}

.betafy-offerings__label {
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(154, 138, 163, 0.7);
  margin-bottom: 0.5rem;
}

.betafy-chip {
  font-size: 0.7rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(192, 38, 255, 0.2);
  background: rgba(10, 10, 20, 0.6);
  color: rgba(180, 160, 200, 0.75);
  backdrop-filter: blur(4px);
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}

.betafy-chip:hover {
  border-color: rgba(251, 191, 36, 0.4);
  color: #f0e6ff;
  box-shadow: 0 0 12px rgba(192, 38, 255, 0.15);
}

.betafy-chip.active {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(192, 38, 255, 0.12);
  color: #fcd34d;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.12);
}

.betafy-chip__cost {
  margin-left: 0.35rem;
  font-size: 0.62rem;
  color: rgba(251, 191, 36, 0.75);
  font-family: ui-monospace, monospace;
}

/* Processing state */

.betafy-processing {
  text-align: center;
  padding: 2.5rem 1rem;
  margin-top: 1.5rem;
}

.betafy-processing--inline {
  padding: 1rem 0.5rem 0.5rem;
  margin-top: 0;
  width: 100%;
  max-width: 20rem;
}

.betafy-processing__refresh {
  opacity: 0.7;
}

.betafy-hub--loading .betafy-header__title {
  margin-bottom: 0;
}

.betafy-processing__ring {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #fcd34d;
  border-right-color: rgba(192, 38, 255, 0.6);
  animation: betafy-ring-spin 1.2s linear infinite;
  box-shadow: 0 0 20px rgba(192, 38, 255, 0.2);
}

.betafy-processing__text {
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(200, 180, 220, 0.85);
  letter-spacing: 0.05em;
}

@keyframes betafy-ring-spin {
  to { transform: rotate(360deg); }
}

/* Blessed result */

.betafy-result {
  margin-top: 1.5rem;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(192, 38, 255, 0.25);
  background: linear-gradient(180deg, rgba(20, 12, 32, 0.95) 0%, rgba(10, 10, 18, 0.98) 100%);
  box-shadow: 0 0 40px rgba(192, 38, 255, 0.1);
}

.betafy-result__frame {
  position: relative;
  background: #0a0a0f;
}

.betafy-result__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(192, 38, 255, 0.08) 0%, transparent 30%, transparent 70%, rgba(251, 191, 36, 0.05) 100%);
}

.betafy-result__img {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.betafy-result__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.5rem;
  border-radius: 0.35rem;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.92), rgba(192, 38, 255, 0.85));
  color: #0a0a0f;
}

.betafy-result__body {
  padding: 1.25rem;
}

.betafy-result__body label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(154, 138, 163, 0.8);
  margin-bottom: 0.75rem;
}

.betafy-result__body textarea,
.betafy-result__body input {
  margin-top: 0.35rem;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(192, 38, 255, 0.2);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: #e8dff0;
}

.betafy-result__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

@media (min-width: 480px) {
  .betafy-result__actions {
    flex-direction: row;
  }
}

.betafy-result__footnote {
  font-size: 0.65rem;
  color: rgba(154, 138, 163, 0.6);
  line-height: 1.5;
  margin-top: 0.75rem;
  font-style: italic;
}

.profile-handle-link {
  color: inherit;
  cursor: pointer;
}

.profile-handle-link:hover {
  color: var(--beta-pink);
}

.favorite-btn.favorited {
  color: #fbbf24;
  border-color: #92400e;
}

.favorite-btn.favorited:hover {
  color: #fcd34d;
}

.post-video-container {
  position: relative;
  background: #0a0a0f;
}

.post-video {
  display: block;
  width: 100%;
  max-height: 70vh;
  background: #000;
}

.post-video-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  background: rgba(255, 105, 180, 0.9);
  color: #0a0a0f;
}

.post-video-locked {
  background: #0a0a0f;
  overflow: hidden;
}

.post-video-locked__poster,
.post-video-locked__placeholder {
  width: 100%;
  display: block;
  max-height: 70vh;
  object-fit: cover;
  filter: blur(6px) saturate(0.5);
}

.post-video-locked__placeholder {
  min-height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.post-video-locked__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  background: rgba(10, 10, 15, 0.72);
}

.post-video-processing {
  background: #0a0a0f;
  overflow: hidden;
}

.post-video-processing__poster,
.post-video-processing__placeholder {
  width: 100%;
  display: block;
  max-height: 70vh;
  object-fit: cover;
  opacity: 0.85;
}

.post-video-processing__placeholder {
  min-height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.post-video-processing__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  background: rgba(10, 10, 15, 0.55);
}

.profile-post-card__media {
  position: relative;
}

.profile-post-card__video-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

/* Utility — do not rely on Tailwind CDN for panel visibility */
.hidden {
  display: none !important;
}

/* === Admin dashboard === */
.admin-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #2a1f2f;
  background: rgba(18, 18, 23, 0.92);
  position: sticky;
  top: 0;
  z-index: 40;
}

.admin-topbar__title {
  font-size: 1.25rem;
  font-weight: 700;
}

.admin-topbar__user {
  font-size: 0.75rem;
  color: var(--muted);
}

.admin-topbar__actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.admin-topbar__link {
  font-size: 0.875rem;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.admin-topbar__link:hover {
  color: #fff;
}

.admin-shell {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .admin-shell {
    flex-direction: row;
    align-items: stretch;
    min-height: calc(100vh - 4.5rem);
  }
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #2a1f2f;
  background: #0d0d12;
  flex-shrink: 0;
}

@media (max-width: 1023px) {
  .admin-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .admin-nav__group {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    padding-right: 0.65rem;
    margin-right: 0.15rem;
    border-right: 1px solid #2a1f2f;
  }

  .admin-nav__group:last-child {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
  }

  .admin-nav__label,
  .admin-nav__hint {
    display: none !important;
  }

  .admin-tab {
    width: auto;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (min-width: 1024px) {
  .admin-nav {
    width: 15rem;
    gap: 1.25rem;
    padding: 1.25rem 1rem;
    border-bottom: none;
    border-right: 1px solid #2a1f2f;
    position: sticky;
    top: 4.5rem;
    align-self: flex-start;
    max-height: calc(100vh - 4.5rem);
    overflow-y: auto;
  }
}

.admin-nav__group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.admin-nav__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff69b4;
  padding: 0 0.25rem;
}

.admin-nav__hint {
  font-size: 0.65rem;
  line-height: 1.35;
  color: var(--muted);
  padding: 0 0.25rem 0.35rem;
  margin: 0;
  display: none;
}

@media (min-width: 1024px) {
  .admin-nav__hint {
    display: block;
  }
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  font-size: 0.8125rem;
  padding: 0.5rem 0.75rem;
  width: 100%;
  border-radius: 0.5rem;
  cursor: pointer;
  color: inherit;
  line-height: 1.25;
}

.admin-tab.accent {
  box-shadow: inset 3px 0 0 #ff69b4;
}

@media (max-width: 1023px) {
  .admin-tab.accent {
    box-shadow: none;
    outline: 1px solid rgba(255, 105, 180, 0.45);
  }
}

.admin-main {
  flex: 1;
  min-width: 0;
  padding: 1.25rem;
}

.admin-panel {
  width: 100%;
}

.admin-panel:not(.hidden) {
  display: block;
}

@media (min-width: 1024px) {
  .admin-main {
    padding: 1.5rem 1.75rem 2.5rem;
  }
}

.admin-panel__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #2a1f2f;
}

.admin-panel__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.admin-panel__desc {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
  max-width: 42rem;
}

.admin-section {
  margin-bottom: 1.75rem;
}

.admin-section--card {
  background: #121217;
  border: 1px solid #2a1f2f;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
}

@media (min-width: 640px) {
  .admin-section--card {
    padding: 1.25rem 1.5rem;
  }
}

.admin-section--amber {
  border-color: rgba(180, 83, 9, 0.35);
}

.admin-section__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.admin-section__subtitle {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.admin-section__desc {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted);
  margin: 0 0 0.85rem;
}

.admin-grok-chat {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #121217;
  border: 1px solid #2a1f2f;
  border-radius: 1rem;
  overflow: hidden;
  min-height: min(70vh, 42rem);
}

.admin-grok-chat__messages {
  flex: 1;
  min-height: 18rem;
  max-height: min(58vh, 36rem);
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  scroll-behavior: smooth;
}

.admin-grok-chat__empty {
  margin: auto;
  max-width: 22rem;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
}

.admin-grok-chat__msg {
  max-width: min(100%, 44rem);
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid #2a1f2f;
  background: #0f0f14;
}

.admin-grok-chat__msg--user {
  align-self: flex-end;
  border-color: rgba(255, 105, 180, 0.35);
  background: rgba(255, 105, 180, 0.08);
}

.admin-grok-chat__msg--assistant {
  align-self: flex-start;
  border-color: rgba(147, 112, 219, 0.35);
  background: rgba(147, 112, 219, 0.08);
}

.admin-grok-chat__msg-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.admin-grok-chat__msg-role {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ff69b4;
}

.admin-grok-chat__msg--assistant .admin-grok-chat__msg-role {
  color: #b794f6;
}

.admin-grok-chat__msg-time {
  font-size: 0.625rem;
  color: var(--muted);
  white-space: nowrap;
}

.admin-grok-chat__msg-body {
  font-size: 0.8125rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-grok-chat__composer {
  border-top: 1px solid #2a1f2f;
  padding: 0.85rem 1rem 1rem;
  background: #0d0d12;
}

.admin-grok-chat__input {
  width: 100%;
  resize: vertical;
  min-height: 4.5rem;
  max-height: 12rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #f0e6ff;
  background: #0a0a0f;
  border: 1px solid #2a1f2f;
  border-radius: 0.65rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.admin-grok-chat__input:focus {
  border-color: rgba(255, 105, 180, 0.55);
}

.admin-grok-chat__input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.admin-grok-chat__composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.65rem;
}

.admin-shell-panel {
  display: flex;
  flex-direction: column;
  min-height: min(72vh, 640px);
}

.admin-shell-status {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.admin-shell-status--online {
  color: #7dffb2;
}

.admin-shell-status--offline {
  color: #ffb86b;
}

.admin-shell-terminal {
  flex: 1;
  min-height: 420px;
  border: 1px solid rgba(255, 105, 180, 0.22);
  border-radius: 12px;
  overflow: hidden;
  background: #050508;
  padding: 0.35rem;
}

.admin-shell-terminal .xterm {
  height: 100%;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .admin-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .admin-stat-grid {
    grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  }
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-card-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-reframe-thumb {
  width: 4.5rem;
  height: 6.25rem;
}

.admin-reframe-thumb--empty {
  background: rgba(0, 0, 0, 0.5);
}

.admin-reframe-log {
  max-height: 10rem;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #2a1f2f;
  background: rgba(0, 0, 0, 0.35);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.6875rem;
  line-height: 1.5;
}

.admin-reframe-log__line--error {
  color: #fca5a5;
}

.admin-empty {
  text-align: center;
  color: var(--muted);
  padding: 4rem 1rem;
  font-size: 0.875rem;
}

.admin-alert {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(180, 83, 9, 0.45);
  background: rgba(69, 26, 3, 0.35);
  color: #fde68a;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.admin-pipeline-health {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(42, 31, 47, 0.9);
  font-size: 0.75rem;
  line-height: 1.45;
}

.admin-pipeline-health--warn {
  background: rgba(69, 26, 3, 0.45);
  border-bottom-color: rgba(180, 83, 9, 0.45);
  color: #fde68a;
}

.admin-pipeline-health--critical {
  background: rgba(69, 10, 10, 0.55);
  border-bottom-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.admin-pipeline-health__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
}

.admin-pipeline-health__title {
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.65rem;
}

.admin-pipeline-health__metrics {
  color: rgba(240, 230, 255, 0.65);
  font-size: 0.68rem;
}

.admin-pipeline-health__jump {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 105, 180, 0.35);
  background: rgba(255, 105, 180, 0.1);
  color: #ff69b4;
  cursor: pointer;
}

.admin-pipeline-health__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pipeline-alert-line--warn {
  color: #fde68a;
}

.pipeline-alert-line--critical {
  color: #fecaca;
  font-weight: 600;
}

.pipeline-alert-line--compact {
  font-size: 0.68rem;
}

.admin-tab--alert {
  position: relative;
}

.admin-tab--alert::after {
  content: '';
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #fbbf24;
  box-shadow: 0 0 0 2px rgba(10, 10, 15, 0.9);
}

.admin-tab--alert-critical::after {
  background: #f87171;
  animation: pipeline-pulse 1.6s ease-in-out infinite;
}

.pipeline-active-queue {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pipeline-active-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid #2a1f2f;
  background: rgba(0, 0, 0, 0.25);
}

.pipeline-active-item--running {
  border-color: rgba(255, 105, 180, 0.45);
  background: rgba(255, 105, 180, 0.08);
}

.pipeline-active-item__thumb {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  object-fit: cover;
  flex-shrink: 0;
  background: #000;
  border: 1px solid #2a1f2f;
}

.pipeline-active-item__body {
  flex: 1;
  min-width: 0;
}

.pipeline-active-item__title {
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pipeline-active-item__meta {
  font-size: 0.6875rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.pipeline-active-badge {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  flex-shrink: 0;
  font-weight: 600;
}

.pipeline-active-badge--running {
  color: #ffb6e0;
  background: rgba(255, 105, 180, 0.2);
  animation: pipeline-pulse 1.6s ease-in-out infinite;
}

.pipeline-active-badge--waiting {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.15);
}

.pipeline-active-badge--alter {
  color: #fde68a;
  background: rgba(180, 83, 9, 0.25);
}

.pipeline-active-badge--auto {
  color: #86efac;
  background: rgba(22, 101, 52, 0.3);
}

@keyframes pipeline-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* Live Feed Censor — patches float over original media */
.feed-censor-stage {
  position: relative;
  width: 100%;
  display: block;
}

.feed-censor-patches {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.feed-censor-patch {
  position: absolute;
  box-sizing: border-box;
  pointer-events: none;
}

.feed-censor-patch--blackout {
  background: #000;
  border-radius: 2px;
}

.feed-censor-patch--blur {
  border-radius: 2px;
  backdrop-filter: blur(var(--feed-censor-blur, 12px));
  -webkit-backdrop-filter: blur(var(--feed-censor-blur, 12px));
  background: rgba(0, 0, 0, 0.08);
}

.feed-censor-patch--pixelate {
  overflow: hidden;
  border-radius: 2px;
}

.feed-censor-patch__canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.feed-censor-toggle--on {
  background: rgba(255, 46, 99, 0.25);
  border-color: #ff2e63;
  color: #ffb3c8;
}

.feed-censor-toggle--busy {
  animation: feed-censor-pulse 1s ease-in-out infinite;
}

.feed-censor-wrap.feed-censor-scanning::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 46, 99, 0.08), transparent);
  animation: feed-censor-sweep 1.2s ease-in-out infinite;
}

@keyframes feed-censor-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

@keyframes feed-censor-sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.live-censor-group {
  margin-bottom: 0.65rem;
}

.live-censor-group__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted, #9a8aa3);
  margin-bottom: 0.35rem;
}

.live-censor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.live-censor-chip {
  font-size: 0.7rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #3f2a40;
  background: rgba(0, 0, 0, 0.35);
  color: #d4c4e8;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.live-censor-chip:hover {
  border-color: #ff2e63;
}

.live-censor-chip.is-on {
  background: rgba(255, 46, 99, 0.2);
  border-color: #ff2e63;
  color: #ffb3c8;
}
