@import "../features/egg/egg.css";
@import "../phone/phone.css";
@import "../features/posts/posts.css";

:root {
  --bg: #0b0b0c;
  --surface: #141416;
  --surface-2: #1b1b1f;
  --border: #222226;
  --text: #e4e4e7;
  --muted: #a1a1aa;
  --accent: #3b82f6;
  --scrollbar-track: #0d1018;
  --scrollbar-thumb: #2d4b8f;
  --scrollbar-thumb-hover: #4f74d6;
  --platform-gold-texture: url("/images/gold.jpg");
  --platform-gold-glow: rgba(255, 190, 46, 0.28);
  --platform-gold-ring-size: 1px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: #050609;
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

html {
  color-scheme: dark;
  scrollbar-gutter: stable;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb {
  border: 3px solid var(--scrollbar-track);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--scrollbar-thumb), var(--scrollbar-thumb-hover));
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--scrollbar-thumb-hover), #84a4ff);
}

body[data-embed="phone"] {
  background: transparent;
}

html[data-embed="phone"],
body[data-embed="phone"] {
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html[data-embed="phone"]::-webkit-scrollbar,
body[data-embed="phone"]::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

a { color: inherit; text-decoration: none; }
button, input, textarea {
  font: inherit;
  color: inherit;
}

.appRoot {
  width: 100%;
  max-width: 1920px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 16px 96px;
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 16px;
  z-index: 1;
}

.topBar {
  min-height: 72px;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 140;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brandLogo {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.brandText {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.eggxWordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.46em;
  vertical-align: middle;
}

.eggxWordmarkLogo {
  width: 1.22em;
  height: 1.22em;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.eggxWordmarkText {
  line-height: 1;
}

.searchInput {
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #101014;
  padding: 0 16px;
  outline: none;
}

.searchShell {
  position: relative;
  min-width: 0;
}

.searchShell .searchInput {
  width: 100%;
}

.appSearchDropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: 30;
  max-height: min(68vh, 560px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(13, 14, 18, 0.98);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.46);
  padding: 10px;
}

.appSearchSection + .appSearchSection {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.appSearchSectionTitle {
  padding: 4px 8px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.appSearchList {
  display: grid;
  gap: 6px;
}

.appSearchItem {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}

.appSearchItem:hover,
.appSearchItem.isActive {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.appSearchEgg {
  width: 34px;
  height: 44px;
}

.appSearchItemCopy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.appSearchItemCopy strong,
.appSearchItemCopy span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.appSearchItemCopy span {
  color: var(--muted);
  font-size: 12px;
}

.appSearchEmpty {
  padding: 18px 14px;
  color: var(--muted);
  text-align: center;
}

.mainNav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.topBarLocale {
  justify-self: end;
}

.languageSwitch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.languageSwitch--topBar {
  max-width: 220px;
}

.languageSwitchLabel {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.languageSwitchSelect {
  min-width: 120px;
  max-width: 180px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #17171b;
  color: inherit;
  padding: 0 10px;
}

.navBtn {
  min-width: 0;
  padding: 0 14px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #17171b;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.navBtn .eggxWordmark {
  gap: 8px;
  font-size: 15px;
}

.navBtn .eggxWordmarkLogo {
  width: 18px;
  height: 18px;
}

.cardTitle .eggxWordmarkLogo {
  width: 1.3em;
  height: 1.3em;
}

.navBtn.active {
  border-color: #3a3a42;
  background: #23232a;
}
.navBtnIcon {
  position: relative;
  width: 60px;
  height: 52px;
  min-width: 60px;
  padding: 0;
  border-radius: 12px;
  border: 2px solid rgba(240, 246, 255, 0.58);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)),
    linear-gradient(165deg, #13161d, #0c0f15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 20px rgba(0,0,0,0.28);
  display: grid;
  place-items: center;
}
.navBtnIcon .navBtnLabel {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.navBtnIcon::before {
  content: "";
  width: 24px;
  height: 24px;
  background: #f3f7ff;
  display: block;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}
.navBtnIcon::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  background: rgba(14, 17, 24, 0.96);
  color: #e8efff;
  border: 1px solid rgba(240, 246, 255, 0.42);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease, transform 120ms ease;
  z-index: 30;
}
.navBtnIcon:hover::after,
.navBtnIcon:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.navBtnIcon:hover,
.navBtnIcon:focus-visible {
  border-color: rgba(240, 246, 255, 0.92);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0)),
    linear-gradient(165deg, rgba(28, 32, 44, 0.9), rgba(14, 18, 28, 0.95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 10px 22px rgba(255,255,255,0.16);
}
.navBtnIcon.active {
  border-color: rgba(246, 182, 75, 0.98);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0)),
    linear-gradient(165deg, rgba(56, 40, 20, 0.88), rgba(28, 20, 12, 0.94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 10px 24px rgba(246,182,75,0.28);
}
.navBtnIcon[data-route="profile"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3a5 5 0 100 10 5 5 0 000-10zm-8 16a8 8 0 0116 0v2H4v-2z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3a5 5 0 100 10 5 5 0 000-10zm-8 16a8 8 0 0116 0v2H4v-2z'/%3E%3C/svg%3E");
}
.navBtnIcon[data-route="badges"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2l7 3v6c0 5-3.5 8.9-7 9-3.5-.1-7-4-7-9V5l7-3zm-1 7v6l5-3-5-3z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2l7 3v6c0 5-3.5 8.9-7 9-3.5-.1-7-4-7-9V5l7-3zm-1 7v6l5-3-5-3z'/%3E%3C/svg%3E");
}
.navBtnIcon[data-route="eggvoice"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3a4 4 0 014 4v5a4 4 0 01-8 0V7a4 4 0 014-4zm-7 8h2a5 5 0 0010 0h2a7 7 0 01-6 6.92V21h-2v-3.08A7 7 0 015 11z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3a4 4 0 014 4v5a4 4 0 01-8 0V7a4 4 0 014-4zm-7 8h2a5 5 0 0010 0h2a7 7 0 01-6 6.92V21h-2v-3.08A7 7 0 015 11z'/%3E%3C/svg%3E");
}
.navBtnIcon[data-route="eggflix"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 5h18v14H3V5zm2 2v10h14V7H5zm4 2h6v2H9V9zm0 4h4v2H9v-2z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 5h18v14H3V5zm2 2v10h14V7H5zm4 2h6v2H9V9zm0 4h4v2H9v-2z'/%3E%3C/svg%3E");
}
.navBtnIcon[data-route="eggx"]::before {
  mask-image: none;
  -webkit-mask-image: none;
  background: url("../images/logo.png") center/contain no-repeat;
}
.navBtnIcon[data-route="waggfit"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 10h3v4H3v-4zm15 0h3v4h-3v-4zM7 9h2v6H7V9zm8 0h2v6h-2V9zm-5 2h4v2h-4v-2z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 10h3v4H3v-4zm15 0h3v4h-3v-4zM7 9h2v6H7V9zm8 0h2v6h-2V9zm-5 2h4v2h-4v-2z'/%3E%3C/svg%3E");
}
.navBtnIcon[data-route="myegggames"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 8h10l2 3v5a2 2 0 01-2 2h-2v-2H9v2H7a2 2 0 01-2-2v-5l2-3zm3 3H8v2h2v2h2v-2h2v-2h-2V9h-2v2zm6 1a1.2 1.2 0 100 2.4A1.2 1.2 0 0016 12zm2 2a1.2 1.2 0 100 2.4A1.2 1.2 0 0018 14z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 8h10l2 3v5a2 2 0 01-2 2h-2v-2H9v2H7a2 2 0 01-2-2v-5l2-3zm3 3H8v2h2v2h2v-2h2v-2h-2V9h-2v2zm6 1a1.2 1.2 0 100 2.4A1.2 1.2 0 0016 12zm2 2a1.2 1.2 0 100 2.4A1.2 1.2 0 0018 14z'/%3E%3C/svg%3E");
}
.navBtnIcon[data-route="school"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 6.5A2.5 2.5 0 015.5 4h13A2.5 2.5 0 0121 6.5v11a2.5 2.5 0 01-2.5 2.5h-13A2.5 2.5 0 013 17.5v-11zm3 1v9h12v-9H6zm2 2h4v2H8v-2zm0 3h7v2H8v-2z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 6.5A2.5 2.5 0 015.5 4h13A2.5 2.5 0 0121 6.5v11a2.5 2.5 0 01-2.5 2.5h-13A2.5 2.5 0 013 17.5v-11zm3 1v9h12v-9H6zm2 2h4v2H8v-2zm0 3h7v2H8v-2z'/%3E%3C/svg%3E");
}
.navBtnIcon[data-route="vip"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3l2.4 4.9L20 8.7l-4 3.9.9 5.5-4.9-2.6-4.9 2.6.9-5.5-4-3.9 5.6-.8L12 3z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3l2.4 4.9L20 8.7l-4 3.9.9 5.5-4.9-2.6-4.9 2.6.9-5.5-4-3.9 5.6-.8L12 3z'/%3E%3C/svg%3E");
}

.pageBody {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #0f1014;
  padding: 16px;
  overflow: visible;
  position: relative;
  isolation: isolate;
}

.pageBody::before,
.pageBody::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.pageBody::before {
  z-index: 0;
  background:
    radial-gradient(ellipse 64px 84px at 3% 10%, rgba(255, 255, 255, 0.022) 0 60%, transparent 62%),
    radial-gradient(ellipse 50px 72px at 7% 24%, rgba(255, 255, 255, 0.018) 0 60%, transparent 62%),
    radial-gradient(ellipse 58px 78px at 5% 40%, rgba(255, 255, 255, 0.018) 0 60%, transparent 62%),
    radial-gradient(ellipse 72px 96px at 9% 58%, rgba(255, 255, 255, 0.017) 0 60%, transparent 62%),
    radial-gradient(ellipse 56px 74px at 4% 76%, rgba(255, 255, 255, 0.017) 0 60%, transparent 62%),
    radial-gradient(ellipse 78px 106px at 11% 92%, rgba(255, 255, 255, 0.016) 0 60%, transparent 62%),
    radial-gradient(ellipse 32px 44px at 14% 16%, rgba(255, 255, 255, 0.018) 0 60%, transparent 62%),
    radial-gradient(ellipse 28px 40px at 18% 26%, rgba(255, 255, 255, 0.014) 0 60%, transparent 62%),
    radial-gradient(ellipse 22px 30px at 22% 38%, rgba(255, 255, 255, 0.016) 0 60%, transparent 62%),
    radial-gradient(ellipse 24px 34px at 27% 51%, rgba(255, 255, 255, 0.013) 0 60%, transparent 62%),
    radial-gradient(ellipse 22px 30px at 31% 66%, rgba(255, 255, 255, 0.015) 0 60%, transparent 62%),
    radial-gradient(ellipse 24px 34px at 36% 78%, rgba(255, 255, 255, 0.012) 0 60%, transparent 62%),
    radial-gradient(ellipse 20px 28px at 42% 21%, rgba(255, 255, 255, 0.015) 0 60%, transparent 62%),
    radial-gradient(ellipse 18px 25px at 46% 34%, rgba(255, 255, 255, 0.011) 0 60%, transparent 62%),
    radial-gradient(ellipse 16px 22px at 50% 48%, rgba(255, 255, 255, 0.014) 0 60%, transparent 62%),
    radial-gradient(ellipse 18px 25px at 54% 62%, rgba(255, 255, 255, 0.01) 0 60%, transparent 62%),
    radial-gradient(ellipse 16px 22px at 58% 76%, rgba(255, 255, 255, 0.013) 0 60%, transparent 62%),
    radial-gradient(ellipse 18px 25px at 62% 26%, rgba(255, 255, 255, 0.01) 0 60%, transparent 62%),
    radial-gradient(ellipse 14px 20px at 67% 42%, rgba(255, 255, 255, 0.013) 0 60%, transparent 62%),
    radial-gradient(ellipse 16px 22px at 71% 58%, rgba(255, 255, 255, 0.009) 0 60%, transparent 62%),
    radial-gradient(ellipse 20px 28px at 76% 74%, rgba(255, 255, 255, 0.013) 0 60%, transparent 62%),
    radial-gradient(ellipse 32px 44px at 82% 18%, rgba(255, 255, 255, 0.012) 0 60%, transparent 62%),
    radial-gradient(ellipse 34px 48px at 86% 35%, rgba(255, 255, 255, 0.016) 0 60%, transparent 62%),
    radial-gradient(ellipse 44px 62px at 91% 54%, rgba(255, 255, 255, 0.013) 0 60%, transparent 62%),
    radial-gradient(ellipse 54px 74px at 95% 82%, rgba(255, 255, 255, 0.018) 0 60%, transparent 62%),
    radial-gradient(ellipse 12px 18px at 13% 31%, rgba(255, 255, 255, 0.014) 0 60%, transparent 62%),
    radial-gradient(ellipse 11px 16px at 16% 44%, rgba(255, 255, 255, 0.01) 0 60%, transparent 62%),
    radial-gradient(ellipse 10px 15px at 19% 56%, rgba(255, 255, 255, 0.013) 0 60%, transparent 62%),
    radial-gradient(ellipse 12px 17px at 23% 67%, rgba(255, 255, 255, 0.01) 0 60%, transparent 62%),
    radial-gradient(ellipse 10px 14px at 28% 76%, rgba(255, 255, 255, 0.012) 0 60%, transparent 62%),
    radial-gradient(ellipse 11px 16px at 33% 28%, rgba(255, 255, 255, 0.01) 0 60%, transparent 62%),
    radial-gradient(ellipse 9px 13px at 37% 41%, rgba(255, 255, 255, 0.012) 0 60%, transparent 62%),
    radial-gradient(ellipse 10px 15px at 41% 53%, rgba(255, 255, 255, 0.009) 0 60%, transparent 62%),
    radial-gradient(ellipse 9px 12px at 45% 66%, rgba(255, 255, 255, 0.012) 0 60%, transparent 62%),
    radial-gradient(ellipse 10px 14px at 49% 79%, rgba(255, 255, 255, 0.009) 0 60%, transparent 62%),
    radial-gradient(ellipse 9px 13px at 57% 30%, rgba(255, 255, 255, 0.012) 0 60%, transparent 62%),
    radial-gradient(ellipse 10px 14px at 61% 43%, rgba(255, 255, 255, 0.009) 0 60%, transparent 62%),
    radial-gradient(ellipse 9px 12px at 65% 56%, rgba(255, 255, 255, 0.011) 0 60%, transparent 62%),
    radial-gradient(ellipse 10px 14px at 69% 69%, rgba(255, 255, 255, 0.008) 0 60%, transparent 62%),
    radial-gradient(ellipse 10px 15px at 73% 82%, rgba(255, 255, 255, 0.012) 0 60%, transparent 62%),
    radial-gradient(ellipse 12px 18px at 79% 31%, rgba(255, 255, 255, 0.01) 0 60%, transparent 62%),
    radial-gradient(ellipse 10px 15px at 84% 45%, rgba(255, 255, 255, 0.013) 0 60%, transparent 62%),
    radial-gradient(ellipse 11px 16px at 88% 67%, rgba(255, 255, 255, 0.01) 0 60%, transparent 62%);
}

.pageBody::after {
  z-index: 0;
  background-image:
    radial-gradient(ellipse 2px 1.2px, rgba(255, 255, 255, 0.024) 60%, transparent 62%),
    radial-gradient(ellipse 1.8px 1.1px, rgba(255, 255, 255, 0.014) 60%, transparent 62%),
    radial-gradient(ellipse 1.6px 1px, rgba(255, 255, 255, 0.017) 60%, transparent 62%),
    radial-gradient(ellipse 2.2px 1.3px, rgba(255, 255, 255, 0.012) 60%, transparent 62%);
  background-size: 62px 62px, 84px 84px, 110px 110px, 140px 140px;
  background-position: 0 0, 24px 37px, 12px 62px, 41px 18px;
  opacity: 0.38;
}

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

.appRoot--embed {
  max-width: none;
  width: 100%;
  height: 100%;
  min-height: 100%;
  aspect-ratio: auto;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.pageBody--embed {
  height: 100%;
  min-height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pageBody--embed::before,
.pageBody--embed::after {
  display: none;
}

body[data-embed="phone"] #app {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

.pageBody--embed::-webkit-scrollbar,
body[data-embed="phone"]::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body[data-embed="phone"] {
  overflow: hidden;
}

.mainLayout {
  display: grid;
  grid-template-columns: minmax(720px, 860px) minmax(300px, 360px);
  gap: 16px;
  max-width: 1240px;
  margin: 0 auto;
  align-items: start;
  justify-content: center;
}

.leftSpacer,
.rightSpacer {
  display: none;
  min-height: 1px;
}

.feedColumn,
.sidebarColumn {
  display: grid;
  gap: 16px;
  align-content: start;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

body[data-page="myegggames"] .feedColumn .card,
body[data-page="myegggames"] .sidebarColumn .card {
  border-color: rgba(0, 0, 0, 0.62);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(0, 0, 0, 0.24), transparent 52%),
    radial-gradient(120% 120% at 100% 0%, rgba(255, 255, 255, 0.02), transparent 54%),
    linear-gradient(165deg, rgba(10, 12, 18, 0.985), rgba(6, 8, 13, 0.985));
}

.cardTitle {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 800;
}

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

.usernameMention {
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

.profileHero {
  min-height: 220px;
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 16px;
}

.tabRow {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.tabBtn {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #1b1b20;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 700;
}

.tabBtn.active { background: #292934; }

.feedComposer textarea {
  width: 100%;
  min-height: 100px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #101014;
  padding: 12px;
}

.feedPost {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #111217;
}

.feedPostHeader {
  display: flex;
  gap: 10px;
  padding: 12px;
}

.feedPostImage {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feedPostText { padding: 12px; }

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.badgeEgg {
  width: 46px;
  height: 58px;
  border-radius: 50% / 60%;
  border: 1px solid #3a3a44;
  background: #0d0f15;
}

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

.btnPrimary,
.btnGhost {
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
}

.btnPrimary {
  background: #2f6fed;
  border-color: #2f6fed;
  color: #fff;
  font-weight: 700;
}

.btnGhost { background: #17171b; }

.textMuted { color: var(--muted); }
.hidden { display: none !important; }

.staffTabletLauncher {
  position: fixed;
  right: clamp(12px, 1.7vw, 28px);
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: none;
  z-index: 330;
  width: 58px;
  height: 74px;
  border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%;
  border: 1px solid rgba(255, 216, 108, 0.78);
  background:
    radial-gradient(120% 120% at 16% 12%, rgba(255, 229, 142, 0.22), transparent 50%),
    linear-gradient(165deg, rgba(14, 18, 30, 0.99), rgba(9, 12, 22, 0.99));
  display: grid;
  place-items: center;
  box-shadow:
    0 20px 34px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(255, 229, 142, 0.22) inset;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.staffTabletLauncher:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 24px 38px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 236, 170, 0.32) inset;
}

.staffTabletLauncher.isActive {
  filter: saturate(1.08) brightness(1.04);
}

.staffTabletLauncher.isHidden {
  display: none;
}

body[data-embed="phone"] .staffTabletLauncher,
body[data-embed="phone"] .staffTabletPanel {
  display: none !important;
}

.staffTabletLauncherLogo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(84%) sepia(50%) saturate(1492%)
    hue-rotate(335deg) brightness(103%) contrast(102%);
}

.staffTabletLauncherDot {
  position: absolute;
  right: 8px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #f6b64b;
  border: 1px solid rgba(255, 255, 255, 0.88);
}

.staffTabletBackdrop {
  position: fixed;
  inset: 0;
  z-index: 318;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 190ms ease;
}

.staffTabletBackdrop.isOpen {
  opacity: 1;
  pointer-events: auto;
}

.staffTabletBackdrop.isHidden {
  display: none;
}

.staffTabletPanel {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(1120px, calc(100vw - 96px));
  max-height: calc(100vh - 74px);
  aspect-ratio: 4 / 3;
  border-radius: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(140% 130% at 14% -8%, rgba(246, 182, 75, 0.2), transparent 44%),
    linear-gradient(176deg, rgba(22, 26, 40, 0.995), rgba(10, 12, 22, 0.995));
  box-shadow: 0 32px 68px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  z-index: 325;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  padding: 12px 14px;
  transform: translate(-50%, -50%) scale(0.94);
  opacity: 0;
  pointer-events: none;
  transition: transform 240ms ease, opacity 210ms ease;
  isolation: isolate;
}

.staffTabletPanel.isOpen {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.staffTabletPanel.isHidden {
  display: none;
}

.staffTabletCamera {
  justify-self: center;
  margin-top: 2px;
  margin-bottom: 8px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(9, 10, 18, 0.95);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.14),
    0 0 12px rgba(120, 155, 255, 0.22) inset;
  pointer-events: none;
}

.staffTabletViewport {
  min-height: 0;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    radial-gradient(120% 110% at 18% -10%, rgba(255, 214, 102, 0.12), transparent 42%),
    linear-gradient(166deg, rgba(10, 12, 20, 0.98), rgba(12, 16, 27, 0.985));
  padding: 14px;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
}

.staffTabletHomeBar {
  justify-self: center;
  width: min(180px, 22%);
  height: 5px;
  border-radius: 999px;
  margin-top: 10px;
  margin-bottom: 2px;
  background: rgba(255, 255, 255, 0.26);
}

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

.staffTabletHead h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: 0.01em;
}

.staffTabletHead p {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(236, 240, 255, 0.72);
}

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

.staffTabletRole {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(246, 182, 75, 0.42);
  background: rgba(246, 182, 75, 0.16);
  color: rgba(255, 215, 236, 0.98);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.staffTabletRole img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.staffTabletCloseBtn {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 7px 11px;
  color: rgba(238, 242, 255, 0.9);
  font-weight: 700;
  cursor: pointer;
}

.staffTabletCloseBtn[aria-pressed="true"] {
  border-color: rgba(255, 210, 92, 0.52);
  background: rgba(255, 196, 78, 0.16);
  color: rgba(255, 236, 184, 0.98);
}

.staffTabletFilters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 116px;
  gap: 8px;
}

.staffTabletFilters input,
.staffTabletFilters select,
.staffTabletFilters button {
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(239, 244, 255, 0.95);
  padding: 0 10px;
}

.staffTabletFilters select,
.staffTabletLine select {
  color-scheme: dark;
}

.staffTabletFilters select option,
.staffTabletLine select option {
  background: #0d1422;
  color: rgba(238, 244, 255, 0.98);
}

.staffTabletFilters button {
  background: linear-gradient(160deg, rgba(246, 182, 75, 0.26), rgba(246, 182, 75, 0.22));
  border-color: rgba(246, 182, 75, 0.4);
  font-weight: 700;
  cursor: pointer;
}

.staffTabletSummary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  color: rgba(226, 233, 255, 0.86);
  background: rgba(255, 255, 255, 0.03);
}

.staffTabletBody {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.25fr);
  gap: 12px;
}

.staffTabletWhitelistWrap {
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: linear-gradient(170deg, rgba(13, 18, 30, 0.86), rgba(8, 12, 20, 0.72));
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.staffTabletWhitelistFrame {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  display: block;
  background: transparent;
}

.staffTabletPanel.isWhitelistMode .staffTabletFilters,
.staffTabletPanel.isWhitelistMode .staffTabletSummary,
.staffTabletPanel.isWhitelistMode .staffTabletBody {
  display: none;
}

.staffTabletPanel.isWhitelistMode .staffTabletViewport {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}

.staffTabletPanel.isWhitelistMode .staffTabletWhitelistWrap {
  min-height: 0;
}

.staffTabletListWrap,
.staffTabletDetailWrap {
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: linear-gradient(170deg, rgba(13, 18, 30, 0.82), rgba(8, 12, 20, 0.68));
  padding: 10px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
}

.staffTabletListWrap h3,
.staffTabletDetailWrap h3 {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(235, 239, 255, 0.76);
}

.staffTabletList,
.staffTabletDetail {
  min-height: 0;
  overflow: auto;
  padding-right: 3px;
  display: grid;
  align-content: start;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
}

.staffTabletEmpty {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 11px;
  font-size: 12px;
  color: rgba(232, 237, 255, 0.72);
}

.staffTabletReportRow {
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  display: grid;
  gap: 4px;
  padding: 8px;
  cursor: pointer;
}

.staffTabletReportRow.isActive {
  border-color: rgba(246, 182, 75, 0.62);
  box-shadow: 0 0 0 1px rgba(246, 182, 75, 0.2) inset;
  background: rgba(246, 182, 75, 0.1);
}

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

.staffTabletTag {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.staffTabletReportMeta {
  color: rgba(229, 234, 255, 0.72);
  font-size: 11px;
}

.staffTabletDetailCard {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
  padding: 10px;
  display: grid;
  gap: 8px;
}

.staffTabletDetailHead,
.staffTabletLine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.staffTabletLine span,
.staffTabletBlock span {
  color: rgba(228, 234, 255, 0.7);
  font-size: 11px;
  font-weight: 700;
}

.staffTabletLine strong {
  font-size: 12px;
  font-weight: 700;
  color: rgba(243, 247, 255, 0.92);
}

.staffTabletBlock p {
  margin: 0;
  font-size: 12px;
  color: rgba(237, 242, 255, 0.86);
  line-height: 1.35;
  white-space: pre-wrap;
}

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

.staffTabletActions button,
.staffTabletMacros button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 8px;
  color: rgba(236, 241, 255, 0.92);
  padding: 7px 8px;
  text-align: left;
  cursor: pointer;
}

.staffTabletMacros {
  display: grid;
  gap: 6px;
}

.staffTabletMacros button span {
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.staffTabletMacros button small {
  display: block;
  margin-top: 2px;
  color: rgba(224, 230, 255, 0.72);
  font-size: 11px;
  line-height: 1.25;
}

.staffTabletAdminTools strong {
  font-size: 12px;
  letter-spacing: 0.02em;
}

.staffTabletSearchRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.staffTabletSearchRow input,
.staffTabletSearchRow button,
.staffTabletLine select,
.staffTabletAdminReason {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(239, 244, 255, 0.96);
}

.staffTabletSearchRow input,
.staffTabletLine select {
  height: 34px;
  padding: 0 10px;
}

.staffTabletSearchRow button {
  height: 34px;
  padding: 0 12px;
  font-weight: 700;
  cursor: pointer;
}

.staffTabletFieldBlock {
  display: grid;
  gap: 6px;
}

.staffTabletFieldBlock > button {
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(236, 241, 255, 0.92);
  font-weight: 700;
  cursor: pointer;
}

.staffTabletTimelineList {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  max-height: 180px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 6px;
}

.staffTabletTimelineRow {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 7px 8px;
  display: grid;
  gap: 4px;
}

.staffTabletTimelineTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}

.staffTabletTimelineTop strong {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(245, 248, 255, 0.96);
}

.staffTabletTimelineTop span {
  color: rgba(224, 231, 255, 0.68);
}

.staffTabletTimelineMeta {
  display: grid;
  gap: 2px;
  font-size: 10px;
  color: rgba(224, 231, 255, 0.68);
}

.staffTabletTimelineRow p {
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(236, 241, 255, 0.86);
}

.staffTabletAdminReason {
  width: 100%;
  min-height: 66px;
  resize: vertical;
  padding: 8px 10px;
  font: inherit;
}

.staffTabletUserResults {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  max-height: 168px;
  overflow: auto;
  padding: 6px;
  display: grid;
  align-content: start;
  gap: 6px;
}

.staffTabletUserBtn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
  padding: 7px 8px;
  display: grid;
  gap: 3px;
  cursor: pointer;
}

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

.staffTabletUserResultAvatar {
  width: 28px;
  height: 36px;
  border-radius: 46% 46% 54% 54% / 58% 58% 42% 42%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.35);
}

.staffTabletRolePill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 211, 102, 0.45);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 192, 70, 0.15);
  color: rgba(255, 234, 187, 0.95);
  width: fit-content;
}

.staffTabletRolePill em {
  font-style: normal;
}

.staffTabletRolePillIcon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.42));
}

.staffTabletRolePill.isSmall {
  padding: 1px 5px;
  font-size: 9px;
}

.staffTabletRolePill.isSmall .staffTabletRolePillIcon {
  width: 13px;
  height: 13px;
}

.staffTabletUserBtn strong {
  font-size: 12px;
  font-weight: 700;
  color: rgba(243, 247, 255, 0.95);
}

.staffTabletUserBtn small {
  color: rgba(224, 231, 255, 0.66);
  font-size: 10px;
}

.staffTabletUserBtn.isActive {
  border-color: rgba(246, 182, 75, 0.62);
  box-shadow: 0 0 0 1px rgba(255, 229, 142, 0.22) inset;
  background: rgba(246, 182, 75, 0.1);
}

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

.staffTabletActionGrid button {
  min-height: 58px;
  text-align: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.staffTabletUserProfileCard {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px;
  display: grid;
  gap: 8px;
}

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

.staffTabletUserAvatar {
  width: 54px;
  height: 70px;
  border-radius: 46% 46% 54% 54% / 58% 58% 42% 42%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.38);
}

.staffTabletUserHeadCopy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.staffTabletUserHeadCopy strong {
  font-size: 12px;
  color: rgba(245, 248, 255, 0.96);
}

.staffTabletUserHeadCopy small {
  font-size: 10px;
  color: rgba(220, 230, 255, 0.68);
}

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

.staffTabletUserStats > div {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 6px 7px;
  display: grid;
  gap: 2px;
}

.staffTabletUserStats span {
  font-size: 10px;
  color: rgba(220, 230, 255, 0.68);
}

.staffTabletUserStats strong {
  font-size: 13px;
  color: rgba(244, 247, 255, 0.95);
}

.staffTabletBadgeList {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.staffTabletBadgeChip {
  border: 1px solid rgba(246, 182, 75, 0.36);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
  background: rgba(246, 182, 75, 0.12);
  color: rgba(255, 218, 238, 0.96);
}

.staffTabletRoleButtons {
  display: inline-flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.staffTabletRoleButtons button {
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(239, 244, 255, 0.94);
  font-size: 11px;
  font-weight: 700;
  padding: 0 8px;
  cursor: pointer;
}

.staffTabletRoleButtons button.isActive {
  border-color: rgba(246, 182, 75, 0.62);
  background: rgba(246, 182, 75, 0.18);
  color: rgba(255, 221, 240, 0.98);
}

.staffTabletActions button.isDanger {
  border-color: rgba(255, 135, 135, 0.35);
  color: rgba(255, 202, 202, 0.95);
  background: rgba(112, 29, 38, 0.35);
}

@media (max-width: 900px) {
  .staffTabletActionGrid {
    grid-template-columns: 1fr;
  }

  .staffTabletRoleButtons {
    justify-content: flex-start;
  }
}

@supports (height: 100dvh) {
  .staffTabletPanel {
    max-height: calc(100dvh - 74px);
  }
}

@media (max-width: 1100px) {
  .staffTabletPanel {
    width: min(100vw - 64px, 980px);
    max-height: calc(100vh - 50px);
  }

  .staffTabletBody {
    grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  }
}

@media (max-width: 900px) {
  .staffTabletLauncher {
    width: 52px;
    height: 66px;
  }

  .staffTabletPanel {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 22px);
    border-radius: 28px;
    padding: 10px;
  }

  .staffTabletViewport {
    border-radius: 22px;
    padding: 10px;
  }

  .staffTabletFilters {
    grid-template-columns: minmax(0, 1fr) 120px 94px;
    gap: 6px;
  }

  .staffTabletBody {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(180px, 0.9fr) minmax(220px, 1.1fr);
  }
}

@media (max-width: 1200px) {
  .appRoot { min-height: 100vh; }
  .topBar {
    grid-template-columns: 1fr;
    height: auto;
    padding: 12px;
  }
  .mainLayout { grid-template-columns: 1fr; }
  .leftSpacer { display: none; }
  .topBarLocale {
    justify-self: start;
  }
}

html[dir="rtl"] .mainNav {
  flex-direction: row-reverse;
}

html[dir="rtl"] .brand {
  flex-direction: row-reverse;
}

html[dir="rtl"] .topBarLocale {
  justify-self: start;
}

html[dir="rtl"] .searchInput {
  text-align: right;
}

html[dir="rtl"] .appSearchDropdown {
  direction: rtl;
}

html[dir="rtl"] .appSearchSectionTitle,
html[dir="rtl"] .appSearchItemCopy {
  text-align: right;
}

html[dir="rtl"] .appSearchItem {
  grid-template-columns: minmax(0, 1fr) 34px;
}

html[dir="rtl"] .staffTabletLauncher {
  right: auto;
  left: clamp(12px, 1.7vw, 28px);
}

html[dir="rtl"] .staffTabletPanel {
  direction: rtl;
}

html[dir="rtl"] [data-mirror-in-rtl="true"] {
  transform: scaleX(-1);
}

/* TEST ONLY: unified premium selected ring with gold texture.
   Replace gold.jpg with licensed/no-watermark texture before production. */
:where(
  .tabBtn.active,
  .appSearchItem.isActive,
  .staffTabletReportRow.isActive,
  .staffTabletUserBtn.isActive,
  .staffTabletRoleButtons button.isActive,
  .badgeShelfCard.isActive,
  .wlAdminFilterBtn.isActive,
  .wlAdminInviteItemBtn.isActive,
  .wlAdminListItem.isActive,
  .eggxFilterBtn.active,
  .eggxMenuItem.isActive,
  .eggxPostAction.isActive,
  .eggxReactionMini.isActive,
  .eggxReactionPick.isActive,
  .pillBtn.active,
  .waggfitTabBtn.isActive,
  .waggfitTabBtnSquare.isActive,
  .waggfitDayTab.isActive,
  .profileLinkPill.isSquare.isActive,
  .profileGalleryReactionBtn.isActive,
  .supportersTab.isActive,
  .supportersPageBtn.isActive
) {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-color: transparent !important;
  background: rgba(5, 5, 7, 0.92) !important;
  box-shadow:
    0 0 16px var(--platform-gold-glow),
    inset 0 0 12px rgba(255, 210, 90, 0.04) !important;
}

:where(
  .tabBtn.active,
  .appSearchItem.isActive,
  .staffTabletReportRow.isActive,
  .staffTabletUserBtn.isActive,
  .staffTabletRoleButtons button.isActive,
  .badgeShelfCard.isActive,
  .wlAdminFilterBtn.isActive,
  .wlAdminInviteItemBtn.isActive,
  .wlAdminListItem.isActive,
  .eggxFilterBtn.active,
  .eggxMenuItem.isActive,
  .eggxPostAction.isActive,
  .eggxReactionMini.isActive,
  .eggxReactionPick.isActive,
  .pillBtn.active,
  .waggfitTabBtn.isActive,
  .waggfitTabBtnSquare.isActive,
  .waggfitDayTab.isActive,
  .profileLinkPill.isSquare.isActive,
  .profileGalleryReactionBtn.isActive,
  .supportersTab.isActive,
  .supportersPageBtn.isActive
)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: var(--platform-gold-ring-size);
  border-radius: inherit;
  pointer-events: none;
  background-image: var(--platform-gold-texture);
  background-size: cover;
  background-position: center;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

:where(
  .tabBtn.active,
  .appSearchItem.isActive,
  .staffTabletReportRow.isActive,
  .staffTabletUserBtn.isActive,
  .staffTabletRoleButtons button.isActive,
  .badgeShelfCard.isActive,
  .wlAdminFilterBtn.isActive,
  .wlAdminInviteItemBtn.isActive,
  .wlAdminListItem.isActive,
  .eggxFilterBtn.active,
  .eggxMenuItem.isActive,
  .eggxPostAction.isActive,
  .eggxReactionMini.isActive,
  .eggxReactionPick.isActive,
  .pillBtn.active,
  .waggfitTabBtn.isActive,
  .waggfitTabBtnSquare.isActive,
  .waggfitDayTab.isActive,
  .profileLinkPill.isSquare.isActive,
  .profileGalleryReactionBtn.isActive,
  .supportersTab.isActive,
  .supportersPageBtn.isActive
) > * {
  position: relative;
  z-index: 1;
}

/* Keep top nav buttons with original inner fill and apply gold only on the ring. */
.navBtnIcon.active {
  border: 2px solid transparent !important;
  background:
    linear-gradient(#050507, #050507) padding-box,
    var(--platform-gold-texture) border-box !important;
  background-size: auto, cover;
  background-position: center;
  box-shadow:
    inset 0 0 0 1px rgba(255, 221, 140, 0.08),
    0 8px 20px rgba(0,0,0,0.28),
    0 0 16px var(--platform-gold-glow) !important;
}
