/* Global front-end skin: shared black navigation + dark glass panels on every page. */
html {
  background: #02060d;
}

html.ui-has-page-background {
  background: #02060d !important;
}

body {
  color-scheme: dark;
  background:
    radial-gradient(circle at 14% 4%, rgba(45, 132, 255, 0.15), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgba(73, 255, 145, 0.08), transparent 28rem),
    linear-gradient(155deg, #030812 0%, #050d18 52%, #02060c 100%);
  color: #e8f1ff;
}

body[data-app-view] {
  --theme-primary: #61f79a;
  --theme-deep: #0b5b35;
  --theme-soft: rgba(83, 255, 151, 0.1);
  --theme-accent: #c4ffd9;
  --ink: #e8f1ff;
  --ink-strong: #ffffff;
  --muted: rgba(188, 205, 227, 0.7);
  --soft: rgba(188, 205, 227, 0.5);
  --paper: #040a12;
  --paper-deep: #0a1421;
  --card: rgba(10, 18, 29, 0.92);
  --line: rgba(151, 180, 216, 0.18);
  --line-strong: rgba(151, 180, 216, 0.34);
  --green: #61f79a;
  --green-deep: #0b5b35;
  --green-soft: rgba(83, 255, 151, 0.1);
  --lime: #c4ffd9;
  --dr-navy: #030914;
  --dr-navy-2: #071827;
  --dr-blue: #61f79a;
  --dr-cyan: #a5ffc4;
  --dr-ink: #edf6ff;
  --dr-muted: rgba(188, 205, 227, 0.66);
  --dr-line: rgba(151, 180, 216, 0.18);
  --dr-surface: rgba(9, 17, 28, 0.92);
  --dr-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --dr-shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.28);
  background: transparent;
  color: var(--ink);
}

body[data-app-view]::before {
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(103, 255, 155, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 255, 155, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

body[data-app-view]:not([data-app-view="lobby"]) .ui-page-background::after {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(1, 5, 10, 0.72) 0%, rgba(1, 5, 10, 0.82) 58%, rgba(1, 5, 10, 0.94) 100%),
    radial-gradient(circle at 50% 32%, transparent 16%, rgba(0, 0, 0, 0.46) 100%);
  pointer-events: none;
}

body[data-app-view] h1,
body[data-app-view] h2,
body[data-app-view] h3,
body[data-app-view] .page-heading h1,
body[data-app-view] .panel-heading h2 {
  color: var(--ink-strong);
}

body[data-app-view] p,
body[data-app-view] .page-heading p,
body[data-app-view] .hint,
body[data-app-view] .form-message,
body[data-app-view] .form-footnote {
  color: var(--muted);
}

body[data-app-view] .eyebrow,
body[data-app-view] .panel-heading .eyebrow {
  color: #8cffb2;
}

/* Shared floating top navigation, matching the lobby reference. */
body[data-app-view] .sticky-shell {
  position: fixed;
  z-index: 80;
  inset: 0 0 auto;
  padding: 0;
  background: linear-gradient(180deg, rgba(1, 5, 10, 0.9) 0%, rgba(1, 5, 10, 0.46) 68%, transparent 100%);
  pointer-events: none;
}

body[data-app-view] .sticky-shell > * {
  pointer-events: auto;
}

body[data-app-view] .topbar {
  width: 100%;
  max-width: none;
  min-height: 74px;
  justify-content: center;
  gap: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  padding: 12px 92px 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body[data-app-view] .topbar::before,
body[data-app-view] .profile-trigger::after {
  display: none;
}

body[data-app-view] #site-logo-image {
  display: none !important;
}

body[data-app-view] .main-nav {
  flex: 0 1 auto;
  justify-content: center;
  gap: clamp(24px, 4vw, 68px);
  margin: 0 auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

body[data-app-view] .nav-button {
  position: relative;
  flex: 0 0 auto;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 10px 3px 13px;
  background: transparent;
  color: rgba(247, 250, 255, 0.86);
  font-size: clamp(17px, 1.35vw, 22px);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.95);
}

body[data-app-view] .nav-button:hover,
body[data-app-view] .nav-button.is-active {
  background: transparent;
  color: #fff;
}

body[data-app-view] .nav-button.is-active::after {
  position: absolute;
  bottom: 1px;
  left: 50%;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: #6bff9e;
  box-shadow: 0 0 14px rgba(103, 255, 155, 0.9);
  content: "";
  transform: translateX(-50%);
}

/* Profile stays available on every page as the same compact bottom-right dock. */
body[data-app-view] #account-home-button {
  position: fixed;
  z-index: 70;
  right: 24px;
  bottom: 22px;
  display: grid;
  width: 360px;
  min-width: 0;
  min-height: 122px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(103, 255, 155, 0.33);
  border-radius: 24px;
  padding: 12px 15px;
  background: linear-gradient(135deg, rgba(10, 18, 25, 0.94), rgba(5, 10, 17, 0.96));
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.52), 0 0 24px rgba(103, 255, 155, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #fff;
  text-align: left;
  backdrop-filter: blur(18px);
}

body[data-app-view] #account-home-button:hover,
body[data-app-view] #account-home-button.is-active {
  border-color: rgba(103, 255, 155, 0.58);
  background: linear-gradient(135deg, rgba(14, 26, 32, 0.97), rgba(5, 10, 17, 0.98));
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.58), 0 0 30px rgba(103, 255, 155, 0.12);
  transform: none;
}

body[data-app-view] .profile-trigger-visual {
  display: contents;
}

body[data-app-view] #account-avatar {
  order: 1;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(137, 255, 175, 0.62);
  border-radius: 20px;
  background: #0b1711 url("/lobby-cat-avatar.svg") center / cover no-repeat;
  box-shadow: 0 0 18px rgba(103, 255, 155, 0.18);
  color: transparent;
  font-size: 0;
}

body[data-app-view] #account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-app-view] .account-level-ring {
  position: relative;
  order: 3;
  display: grid;
  width: 58px;
  height: 58px;
  place-content: center;
  justify-items: center;
  border-radius: 50%;
  background: conic-gradient(#6bff9e var(--level-progress, 20%), rgba(255, 255, 255, 0.12) 0);
  box-shadow: 0 0 18px rgba(103, 255, 155, 0.14);
}

body[data-app-view] .account-level-ring::before {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #08120f;
  content: "";
}

body[data-app-view] .account-level-ring b,
body[data-app-view] .account-level-ring small {
  position: relative;
  z-index: 1;
  display: block;
  line-height: 1;
}

body[data-app-view] .account-level-ring b {
  color: #f7fff9;
  font-size: 13px;
  font-weight: 900;
}

body[data-app-view] .account-level-ring small {
  margin-top: 2px;
  color: rgba(232, 255, 240, 0.52);
  font-size: 7px;
}

body[data-app-view] .profile-trigger-copy {
  order: 2;
  gap: 2px;
}

body[data-app-view] .profile-trigger-kicker {
  color: #70ffa3;
  font-size: 9px;
  letter-spacing: 0.18em;
}

body[data-app-view] #account-name {
  max-width: none;
  color: #f9fcff;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.15;
}

body[data-app-view] .profile-trigger-id {
  display: block;
  color: rgba(226, 236, 248, 0.55);
  font-size: 10px;
  font-weight: 600;
}

body[data-app-view] .profile-trigger-meta {
  gap: 5px;
  color: rgba(226, 236, 248, 0.48);
  font-size: 9px;
}

body[data-app-view] .profile-trigger-meta #account-role {
  max-width: 120px;
}

body[data-app-view] .profile-trigger-meta .account-credit {
  border: 1px solid rgba(103, 255, 155, 0.16);
  padding: 2px 5px;
  background: rgba(103, 255, 155, 0.08);
  color: rgba(202, 255, 218, 0.72);
  font-size: 8px;
}

body[data-app-view] .profile-card-shortcuts {
  display: flex;
  gap: 8px;
  margin-top: 7px;
}

body[data-app-view] .profile-card-shortcuts i {
  border: 1px solid rgba(103, 255, 155, 0.35);
  border-radius: 10px;
  padding: 6px 11px;
  color: #8dffb1;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 800;
  min-height: 34px;
}

body[data-app-view] .profile-trigger-arrow {
  display: none;
}

/* Keep account actions reachable without cluttering the centre navigation. */
body[data-app-view] .account-menu {
  position: fixed;
  z-index: 92;
  top: 18px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 7px;
}

body[data-app-view]:not(.is-authenticated) .account-menu {
  display: none !important;
}

body[data-app-view].is-authenticated .account-menu {
  display: flex !important;
}

body[data-app-view] .account-menu .button {
  min-height: 34px;
  border: 1px solid rgba(159, 185, 220, 0.2);
  border-radius: 11px;
  padding: 0.35rem 0.75rem;
  background: rgba(8, 15, 24, 0.74);
  color: rgba(235, 244, 255, 0.7);
  font-size: 12px;
  backdrop-filter: blur(14px);
}

body[data-app-view] .account-menu .button:hover {
  border-color: rgba(103, 255, 155, 0.36);
  background: rgba(11, 24, 18, 0.9);
  color: #fff;
}

body[data-app-view] .admin-entry-link {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(103, 255, 155, 0.24);
  border-radius: 11px;
  background: rgba(9, 25, 17, 0.82);
  color: #91ffb5;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

body[data-app-view]:not([data-app-view="lobby"]) .app-main {
  width: min(1400px, calc(100% - clamp(1rem, 4vw, 3.5rem)));
  max-width: 1400px;
  padding-top: 120px;
  padding-bottom: 150px;
}

body[data-app-view]:not([data-app-view="lobby"]) .app-footer {
  border-top-color: rgba(151, 180, 216, 0.16);
  color: rgba(181, 199, 221, 0.44);
}

/* Dark glass surfaces for every business page. */
body[data-app-view] .panel,
body[data-app-view] .order-card,
body[data-app-view] .stat-card,
body[data-app-view] .price-row,
body[data-app-view] .referral-user-row,
body[data-app-view] .public-comment,
body[data-app-view] .chat-message,
body[data-app-view] .ai-review-card,
body[data-app-view] .timer-log-panel,
body[data-app-view] .credit-appeal-card,
body[data-app-view] .carousel-settings-slide,
body[data-app-view] .game-category-order-item,
body[data-app-view] .role-option,
body[data-app-view] .game-mode-list > div {
  border-color: var(--line);
  background: linear-gradient(145deg, rgba(13, 24, 38, 0.92), rgba(5, 12, 21, 0.95));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  color: var(--ink);
}

body[data-app-view] .panel-accent {
  border-color: rgba(103, 255, 155, 0.18);
  background:
    radial-gradient(circle at 100% 0, rgba(103, 255, 155, 0.1), transparent 18rem),
    linear-gradient(145deg, rgba(13, 24, 38, 0.94), rgba(5, 12, 21, 0.96));
}

body[data-app-view] .order-card.is-running {
  border-color: rgba(103, 255, 155, 0.3);
  background:
    linear-gradient(90deg, rgba(31, 85, 51, 0.34), transparent 48%),
    linear-gradient(145deg, rgba(13, 24, 38, 0.95), rgba(5, 12, 21, 0.96));
}

body[data-app-view] .task-card.task-status-open,
body[data-app-view] .unlock-strip.is-unlocked,
body[data-app-view] .public-chat-strip {
  border-color: rgba(103, 255, 155, 0.18);
  background: linear-gradient(110deg, rgba(21, 53, 34, 0.58), rgba(7, 16, 25, 0.94));
}

body[data-app-view] .task-card {
  border-color: rgba(151, 180, 216, 0.18);
  background: linear-gradient(145deg, rgba(13, 24, 38, 0.92), rgba(5, 12, 21, 0.95));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

body[data-app-view] .task-card:hover {
  border-color: rgba(103, 255, 155, 0.3);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34);
}

body[data-app-view] .task-filter-form {
  border-color: rgba(151, 180, 216, 0.16);
  background: rgba(5, 12, 21, 0.66);
}

body[data-app-view] .task-card-footer {
  border-top-color: rgba(151, 180, 216, 0.13);
}

body[data-app-view] .level-badge {
  border-color: rgba(151, 180, 216, 0.2);
  background: linear-gradient(145deg, rgba(13, 24, 38, 0.94), rgba(5, 14, 21, 0.96));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

body[data-app-view] .level-badge-frame {
  border-color: rgba(103, 255, 155, 0.42);
  background: linear-gradient(145deg, #163c2a, #071a11);
  color: #c9ffdc;
}

body[data-app-view] .level-badge-copy small,
body[data-app-view] .level-badge-copy span {
  color: var(--muted);
}

body[data-app-view] .level-badge-copy strong {
  color: #dfffe9;
}

body[data-app-view] .level-badge progress,
body[data-app-view] .level-badge progress::-webkit-progress-bar,
body[data-app-view] .credit-progress,
body[data-app-view] .credit-progress::-webkit-progress-bar,
body[data-app-view] .profile-credit-panel .credit-progress,
body[data-app-view] .profile-credit-panel .credit-progress::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.08) !important;
}

body[data-app-view] .level-badge progress::-webkit-progress-value {
  background: linear-gradient(90deg, #36e27f, #a4ffc3);
}

body[data-app-view] .level-badge progress::-moz-progress-bar {
  background: linear-gradient(90deg, #36e27f, #a4ffc3);
}

body[data-app-view] .promo-link-row input,
body[data-app-view] .profile-promo-panel .promo-link-row input {
  border-color: rgba(151, 180, 216, 0.22);
  background: rgba(4, 10, 18, 0.82);
  color: var(--ink);
}

body[data-app-view] .personal-overview-scorelist > div {
  border-color: rgba(151, 180, 216, 0.16);
  background: rgba(4, 10, 18, 0.72);
}

body[data-app-view] .task-hall-hero,
body[data-app-view] .personal-center-hero {
  border-color: rgba(103, 255, 155, 0.16);
  background:
    radial-gradient(circle at 88% 4%, rgba(72, 136, 255, 0.22), transparent 20rem),
    radial-gradient(circle at 12% 110%, rgba(103, 255, 155, 0.12), transparent 28rem),
    linear-gradient(125deg, #03080f 0%, #071a2b 52%, #0b261c 100%);
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.35);
}

body[data-app-view] .credit-hero-card {
  border: 1px solid rgba(103, 255, 155, 0.15);
  background:
    radial-gradient(circle at 8% 16%, rgba(96, 165, 250, 0.18), transparent 18rem),
    radial-gradient(circle at 96% 92%, rgba(103, 255, 155, 0.12), transparent 20rem),
    linear-gradient(135deg, #03080f, #061a24 54%, #09271b);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.34);
}

body[data-app-view] .credit-score-orbit::before {
  background: #07150e;
}

body[data-app-view] .task-hall-hero h1,
body[data-app-view] .personal-center-hero h1 {
  color: #fff;
}

body[data-app-view] .task-hall-stats > div,
body[data-app-view] .asset-balance-grid > div,
body[data-app-view] .dual-credit-panel > div,
body[data-app-view] .profile-rate-strip > div,
body[data-app-view] .promo-metrics > div,
body[data-app-view] .personal-task-stats > div {
  border-color: rgba(151, 180, 216, 0.16);
  background: rgba(255, 255, 255, 0.045);
}

body[data-app-view] .button-primary {
  border-color: rgba(103, 255, 155, 0.55);
  background: linear-gradient(135deg, #55f58f, #159c58);
  color: #03140a;
  box-shadow: 0 10px 24px rgba(28, 173, 92, 0.24);
}

body[data-app-view] .button-primary:hover {
  background: linear-gradient(135deg, #8affb1, #24b96c);
}

body[data-app-view] .button-secondary,
body[data-app-view] .button-quiet,
body[data-app-view] .mini-button {
  border-color: rgba(151, 180, 216, 0.24);
  background: rgba(9, 18, 29, 0.72);
  color: rgba(234, 244, 255, 0.86);
}

body[data-app-view] .button-secondary:hover,
body[data-app-view] .button-quiet:hover,
body[data-app-view] .mini-button:hover {
  border-color: rgba(103, 255, 155, 0.42);
  background: rgba(12, 31, 21, 0.86);
  color: #fff;
}

body[data-app-view] .text-button,
body[data-app-view] .section-heading-row .text-button {
  color: #8cffb2;
}

body[data-app-view] input,
body[data-app-view] select,
body[data-app-view] textarea,
body[data-app-view] .search-field,
body[data-app-view] .compact-select {
  border-color: rgba(151, 180, 216, 0.22);
  background: rgba(5, 12, 21, 0.76);
  color: #edf6ff;
}

body[data-app-view] input::placeholder,
body[data-app-view] textarea::placeholder {
  color: rgba(188, 205, 227, 0.42);
}

body[data-app-view] select option {
  background: #08121e;
  color: #edf6ff;
}

body[data-app-view] input:focus,
body[data-app-view] select:focus,
body[data-app-view] textarea:focus {
  border-color: rgba(103, 255, 155, 0.52);
  box-shadow: 0 0 0 4px rgba(103, 255, 155, 0.08);
}

body[data-app-view] .field > span,
body[data-app-view] .compact-select > span,
body[data-app-view] .search-field > span,
body[data-app-view] .check-line,
body[data-app-view] .section-title small,
body[data-app-view] .type-tag,
body[data-app-view] .count-badge,
body[data-app-view] .status-pill {
  color: var(--muted);
}

body[data-app-view] .count-badge,
body[data-app-view] .type-tag,
body[data-app-view] .status-pill {
  border-color: rgba(151, 180, 216, 0.18);
  background: rgba(255, 255, 255, 0.055);
}

body[data-app-view] .segmented-control,
body[data-app-view] .tab-switch,
body[data-app-view] .personal-tab-nav {
  border-color: rgba(151, 180, 216, 0.16);
  background: rgba(4, 11, 19, 0.72);
}

body[data-app-view] .segmented-control input:checked + span,
body[data-app-view] .tab-button.is-active,
body[data-app-view] .personal-tab-button.is-active {
  border-color: rgba(103, 255, 155, 0.22);
  background: rgba(24, 65, 42, 0.72);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

body[data-app-view] .empty-state,
body[data-app-view] .locked-feature-callout {
  border-color: rgba(151, 180, 216, 0.24);
  background: rgba(7, 15, 25, 0.52);
  color: var(--muted);
}

body[data-app-view] .data-table th,
body[data-app-view] .ledger-row,
body[data-app-view] .frequent-row,
body[data-app-view] .rule-list div {
  border-color: rgba(151, 180, 216, 0.13);
  color: var(--muted);
}

body[data-app-view] .data-table td,
body[data-app-view] .ledger-row strong,
body[data-app-view] .frequent-row strong {
  color: var(--ink);
}

body[data-app-view] .claim-panel,
body[data-app-view] .profile-promo-panel,
body[data-app-view] .referral-hero {
  background:
    radial-gradient(circle at 95% 20%, rgba(103, 255, 155, 0.1), transparent 17rem),
    linear-gradient(145deg, rgba(13, 24, 38, 0.94), rgba(5, 12, 21, 0.96));
}

body[data-app-view] .quote-box,
body[data-app-view] .panel-soft {
  border-color: rgba(103, 255, 155, 0.16);
  background: rgba(22, 60, 39, 0.38);
  color: var(--muted);
}

body[data-app-view] .toast {
  border-color: rgba(103, 255, 155, 0.22);
  background: rgba(6, 18, 13, 0.96);
  color: #edfff4;
}

body[data-app-view] .confirm-dialog {
  border: 1px solid rgba(151, 180, 216, 0.22);
  background: #07111c;
  color: var(--ink);
}

body[data-app-view] .confirm-dialog p {
  color: var(--muted);
}

/* The authentication screen follows the same black visual language. */
.auth-view {
  background:
    radial-gradient(circle at 12% 8%, rgba(50, 119, 255, 0.18), transparent 30rem),
    radial-gradient(circle at 84% 86%, rgba(103, 255, 155, 0.1), transparent 30rem),
    linear-gradient(125deg, rgba(2, 7, 13, 0.98), rgba(4, 13, 24, 0.96) 58%, rgba(3, 10, 15, 0.98));
}

.auth-view::before {
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(103, 255, 155, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 255, 155, 0.06) 1px, transparent 1px);
}

.auth-hero {
  border-color: rgba(151, 180, 216, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    radial-gradient(circle at 88% 8%, rgba(58, 139, 255, 0.2), transparent 22rem),
    radial-gradient(circle at 12% 100%, rgba(103, 255, 155, 0.1), transparent 22rem),
    linear-gradient(145deg, #030a12 0%, #071827 52%, #0a261b 100%);
}

.auth-copy .eyebrow,
.feature-icon,
.rule-examples b {
  color: #83ffad;
}

.feature-item {
  border-color: rgba(151, 180, 216, 0.16);
  background: rgba(255, 255, 255, 0.045);
}

.auth-card {
  border-color: rgba(151, 180, 216, 0.2);
  background: rgba(6, 13, 22, 0.94);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
}

.auth-card-head h2 {
  color: #fff;
}

.auth-card-head p,
.form-footnote,
.form-message {
  color: rgba(188, 205, 227, 0.68);
}

.auth-card .tab-switch {
  background: rgba(255, 255, 255, 0.05);
}

.auth-card .tab-button.is-active {
  background: rgba(24, 65, 42, 0.78);
  color: #fff;
}

.auth-card input,
.auth-card select,
.auth-card textarea {
  border-color: rgba(151, 180, 216, 0.24);
  background: rgba(4, 10, 18, 0.86);
  color: #edf6ff;
}

.auth-back-button {
  border: 1px solid rgba(151, 180, 216, 0.22);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: rgba(5, 12, 21, 0.7);
  color: rgba(234, 244, 255, 0.82);
}

.boot-screen {
  background: #030811;
  color: #edf6ff;
}

@media (max-width: 1100px) {
  body[data-app-view] #account-home-button {
    width: 330px;
  }

  body[data-app-view] .topbar {
    padding-inline: 76px;
  }
}

@media (max-width: 820px) {
  body[data-app-view] .topbar {
    min-height: 58px;
    padding: 6px 12px 0;
  }

  body[data-app-view] .main-nav {
    gap: 16px;
  }

  body[data-app-view] .nav-button {
    padding: 8px 2px 11px;
    font-size: 15px;
  }

  body[data-app-view]:not([data-app-view="lobby"]) .app-main {
    width: calc(100% - 24px);
    padding-top: 92px;
    padding-bottom: 170px;
  }

  body[data-app-view] #account-home-button {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    min-height: 92px;
    border-radius: 20px;
    padding: 10px 12px;
  }

  body[data-app-view] #account-avatar {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }

  body[data-app-view] .account-level-ring {
    width: 48px;
    height: 48px;
  }

  body[data-app-view] #account-name {
    font-size: 17px;
  }

  body[data-app-view] .profile-card-shortcuts {
    display: none;
  }

  body[data-app-view] .account-menu {
    top: 12px;
    right: 12px;
  }

  body[data-app-view] .account-menu .button {
    min-height: 30px;
    padding: 0.25rem 0.55rem;
    font-size: 11px;
  }
}

@media (max-width: 520px) {
  body[data-app-view] .main-nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    gap: 18px;
  }

  body[data-app-view] .nav-button {
    padding-inline: 0;
    font-size: 13px;
    white-space: nowrap;
  }

  body[data-app-view] .profile-trigger-kicker,
  body[data-app-view] #account-role {
    display: none;
  }
}

/* Shared search dock on lobby sub-pages: keep the same black esports glass as the home page. */
body[data-app-view]:not([data-app-view="lobby"]) .lobby-taskbar {
  border: 1px solid rgba(103, 255, 155, 0.24);
  background:
    linear-gradient(120deg, rgba(3, 9, 16, 0.95), rgba(8, 24, 17, 0.88)),
    var(--ui-surface-image, none);
  background-position: center;
  background-size: cover;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.36), 0 0 24px rgba(103, 255, 155, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(18px) saturate(130%);
}

body[data-app-view]:not([data-app-view="lobby"]) .global-search-main {
  border: 1px solid rgba(151, 180, 216, 0.18);
  background: rgba(3, 10, 16, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-app-view]:not([data-app-view="lobby"]) .global-search-icon {
  border-color: rgba(103, 255, 155, 0.28);
  background: linear-gradient(145deg, rgba(17, 50, 32, 0.9), rgba(5, 17, 13, 0.92));
  color: #76ffa4;
}

body[data-app-view]:not([data-app-view="lobby"]) #global-search-submit {
  border: 1px solid rgba(103, 255, 155, 0.42);
  background: rgba(6, 20, 13, 0.78);
  color: #79ffa8;
  box-shadow: inset 0 0 16px rgba(103, 255, 155, 0.06);
}

body[data-app-view]:not([data-app-view="lobby"]) #search-filter-toggle {
  border-color: rgba(151, 180, 216, 0.18);
  background: rgba(8, 16, 26, 0.72);
  color: rgba(235, 244, 255, 0.72);
}

body[data-app-view]:not([data-app-view="lobby"]) #search-filter-toggle:hover,
body[data-app-view]:not([data-app-view="lobby"]) #search-filter-toggle[aria-expanded="true"] {
  border-color: rgba(103, 255, 155, 0.34);
  background: rgba(18, 50, 31, 0.78);
  color: #8cffb2;
}

body[data-app-view] .hot-search-strip {
  border-top-color: rgba(151, 180, 216, 0.16);
}

body[data-app-view] .hot-search-strip > span {
  color: rgba(188, 205, 227, 0.62);
}

body[data-app-view] .hot-search-strip button {
  border-color: rgba(151, 180, 216, 0.2);
  background: rgba(8, 18, 29, 0.78);
  color: rgba(225, 237, 255, 0.78);
}

body[data-app-view] .hot-search-strip button:hover {
  border-color: rgba(103, 255, 155, 0.36);
  background: rgba(18, 50, 31, 0.78);
  color: #8cffb2;
}

body[data-app-view]:not([data-app-view="lobby"]):is([data-app-view="lobbyGame"], [data-app-view="searchResults"]) .app-main {
  padding-top: clamp(272px, 16vw, 292px);
}

@media (max-width: 900px) {
  body[data-app-view]:not([data-app-view="lobby"]):is([data-app-view="lobbyGame"], [data-app-view="searchResults"]) .app-main {
    padding-top: 286px;
  }
}

@media (max-width: 620px) {
  body[data-app-view]:not([data-app-view="lobby"]) .lobby-taskbar {
    width: calc(100vw - 18px);
    border-radius: 18px;
    padding: 10px;
  }

  body[data-app-view]:not([data-app-view="lobby"]):is([data-app-view="lobbyGame"], [data-app-view="searchResults"]) .app-main {
    padding-top: 326px;
  }
}

body[data-app-view]:not([data-app-view="lobby"]) .search-filter-panel {
  border-color: rgba(103, 255, 155, 0.24);
  background: rgba(5, 13, 23, 0.985);
  color: #edf5ff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-app-view]:not([data-app-view="lobby"]) .search-filter-panel .field > span,
body[data-app-view]:not([data-app-view="lobby"]) .search-filter-panel .range-filter > span,
body[data-app-view]:not([data-app-view="lobby"]) .search-filter-panel .check-line {
  color: rgba(237, 245, 255, 0.72);
}

body[data-app-view]:not([data-app-view="lobby"]) .search-filter-panel select,
body[data-app-view]:not([data-app-view="lobby"]) .search-filter-panel input:not([type="checkbox"]) {
  border-color: rgba(151, 180, 216, 0.22);
  background: rgba(255, 255, 255, 0.065);
  color: #fff;
}

body[data-app-view]:not([data-app-view="lobby"]) .search-filter-panel select option {
  background: #08121e;
  color: #edf6ff;
}

body[data-app-view]:not([data-app-view="lobby"]) .search-filter-panel .check-line input[type="checkbox"] {
  accent-color: #61f79a;
}
