/*
 * Nitro Console experience theme
 * Visual inspiration: contemporary console companion apps.
 * This file intentionally contains no third-party branding, artwork, or UI copy.
 */

:root {
  color-scheme: dark;
  --nc-black: #0B0B0F;
  --nc-ink: #09090C;
  --nc-chrome: #111419;
  --nc-surface: #1A1D22;
  --nc-surface-raised: #22262C;
  --nc-surface-field: #292E35;
  --nc-surface-hover: #303640;
  --nc-border: #343A43;
  --nc-border-strong: #464E59;
  --nc-text: #F5F7FA;
  --nc-text-muted: #9AA2AD;
  --nc-text-faint: #6E7681;
  --nc-brand: #1476D4;
  --nc-brand-strong: #2D91F2;
  --nc-brand-soft: rgba(20, 118, 212, 0.18);
  --nc-nav-label-gradient: linear-gradient(180deg, #1C1C1C 0%, #181818 32%, #141414 63%, #121212 100%);
  --nc-success: #3FD879;
  --nc-warning: #F2BF4B;
  --nc-danger: #FF5D5D;
  --nc-radius-sm: 8px;
  --nc-radius-md: 12px;
  --nc-radius-lg: 16px;
  --nc-radius-pill: 999px;
  --nc-shadow-soft: none;
  --nc-shadow-sheet: 0 18px 46px rgba(0, 0, 0, 0.38);
  --nc-motion-fast: 120ms;
  --nc-motion-ui: 180ms;
  --nc-motion-page: 220ms;
  --nc-ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --auth-bg: var(--nc-black);
  --auth-field: var(--nc-surface-field);
  --auth-text: var(--nc-text);
  --auth-muted: var(--nc-text-muted);
  --auth-blue: var(--nc-brand);
  --payment-page-bg: var(--nc-black);
  --payment-surface: var(--nc-surface);
  --payment-surface-raised: var(--nc-surface-raised);
  --payment-border: var(--nc-border);
  --payment-text: var(--nc-text);
  --payment-muted: var(--nc-text-muted);
  --payment-primary: var(--nc-brand);
}

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

/* --------------------------------------------------------------------------
   Settings — canonical account surface

   The source page was exported as a fixed 402 × 1040 artboard. Reflow the
   actual controls here so the shared shell, spacing scale, surfaces, focus
   treatment and responsive rules are visible in production. This deliberately
   targets the page contract instead of relying on brittle top/left offsets.
   -------------------------------------------------------------------------- */
body[data-page="settings"] .app-content--full {
  padding: calc(var(--nc-header-total, 60px) + 16px) 0 calc(32px + env(safe-area-inset-bottom)) !important;
}

body[data-page="settings"] .settings {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 16px !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  background: transparent !important;
}

body[data-page="settings"] .settings > .profile_01 {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  max-width: none !important;
  height: 142px !important;
  margin: 0 0 16px !important;
  overflow: hidden !important;
  border: 1px solid var(--nc-border) !important;
  border-radius: var(--nc-radius-lg) !important;
  background: var(--nc-surface) !important;
  box-shadow: none !important;
}

body[data-page="settings"] .profile_01 > .background_03 {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: var(--nc-surface) !important;
  box-shadow: none !important;
}

body[data-page="settings"] .profile_01 .frame-41 {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

body[data-page="settings"] .profile_01 .image {
  position: absolute !important;
  left: 20px !important;
  top: 27px !important;
  width: 88px !important;
  height: 88px !important;
}

body[data-page="settings"] .profile_01 :is(.ellipse-4, .ellipse-1) {
  width: 88px !important;
  height: 88px !important;
  inset: 0 !important;
}

body[data-page="settings"] .profile_01 :is(.ellipse-4, svg[data-avatar-outline]) {
  display: none !important;
}

body[data-page="settings"] .profile_01 .username,
body[data-page="settings"] .profile_01 .display-name {
  position: absolute !important;
  left: 128px !important;
  right: 18px !important;
  width: auto !important;
  text-align: left !important;
}

body[data-page="settings"] .profile_01 .display-name {
  top: 48px !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="settings"] .profile_01 .username {
  top: 80px !important;
}

body[data-page="settings"] .profile_01 .displayname_span {
  font: 700 24px/1.2 var(--nc-font-family) !important;
  letter-spacing: -0.35px !important;
}

body[data-page="settings"] .profile_01 .username_span {
  color: var(--nc-text-muted) !important;
  font: 400 14px/1.35 var(--nc-font-family) !important;
}

body[data-page="settings"] .settings > :is(
  .edit-profile,
  .change-password,
  .invite-friends,
  .report-issue,
  .privacy-policy,
  .contact-us,
  .terms-and-conditions,
  .about
) {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  max-width: none !important;
  height: 60px !important;
  min-height: 60px !important;
  overflow: hidden !important;
  border: 1px solid var(--nc-border) !important;
  border-radius: 0 !important;
  background: var(--nc-surface) !important;
  box-shadow: none !important;
  transition: background-color 150ms ease, border-color 150ms ease !important;
}

body[data-page="settings"] .settings > :is(
  .edit-profile,
  .change-password,
  .invite-friends,
  .report-issue,
  .privacy-policy,
  .contact-us,
  .terms-and-conditions,
  .about
) > [class*="background"] {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-page="settings"] .settings > :is(
  .edit-profile,
  .change-password,
  .invite-friends,
  .report-issue,
  .privacy-policy,
  .contact-us,
  .terms-and-conditions,
  .about
) > [class^="icon"] {
  position: absolute !important;
  left: 16px !important;
  top: 50% !important;
  width: 28px !important;
  height: 28px !important;
  transform: translateY(-50%) !important;
  display: grid !important;
  place-items: center !important;
}

body[data-page="settings"] .settings > :is(
  .edit-profile,
  .change-password,
  .invite-friends,
  .report-issue,
  .privacy-policy,
  .contact-us,
  .terms-and-conditions,
  .about
) > [class^="icon"] img {
  width: 26px !important;
  height: 26px !important;
  object-fit: contain !important;
}

body[data-page="settings"] .settings > :is(
  .edit-profile,
  .change-password,
  .invite-friends,
  .report-issue,
  .privacy-policy,
  .contact-us,
  .terms-and-conditions,
  .about
) > :is(
  .edit-profile_01,
  .change-password_01,
  .invite-friends_01,
  .report-issue_01,
  .privacy-policy_01,
  .contact-us_01,
  .terms-and-conditions_01,
  .about_01
) {
  position: absolute !important;
  left: 58px !important;
  right: 42px !important;
  top: 50% !important;
  width: auto !important;
  transform: translateY(-50%) !important;
  text-align: left !important;
}

body[data-page="settings"] .settings > :is(
  .edit-profile,
  .change-password,
  .invite-friends,
  .report-issue,
  .privacy-policy,
  .contact-us,
  .terms-and-conditions,
  .about
) span {
  color: var(--nc-text) !important;
  font: 600 16px/1.25 var(--nc-font-family) !important;
  letter-spacing: 0 !important;
}

body[data-page="settings"] .settings > :is(
  .edit-profile,
  .change-password,
  .invite-friends,
  .report-issue,
  .privacy-policy,
  .contact-us,
  .terms-and-conditions,
  .about
)::after {
  content: "›";
  position: absolute;
  right: 17px;
  top: 50%;
  transform: translateY(-52%);
  color: var(--nc-text-muted);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}

body[data-page="settings"] .settings > :is(.edit-profile, .invite-friends, .privacy-policy) {
  margin-top: 12px !important;
  border-radius: var(--nc-radius-md) var(--nc-radius-md) 0 0 !important;
}

body[data-page="settings"] .settings > :is(.change-password, .report-issue, .about) {
  border-radius: 0 0 var(--nc-radius-md) var(--nc-radius-md) !important;
}

body[data-page="settings"] .settings > :is(.contact-us, .terms-and-conditions) {
  border-top: 0 !important;
}

body[data-page="settings"] .settings > :is(.change-password, .report-issue, .contact-us, .terms-and-conditions, .about) {
  margin-top: -1px !important;
}

body[data-page="settings"] .settings > :is(
  .edit-profile,
  .change-password,
  .invite-friends,
  .report-issue,
  .privacy-policy,
  .contact-us,
  .terms-and-conditions,
  .about
):is(:hover, :focus-visible) {
  z-index: 1;
  outline: none !important;
  border-color: var(--nc-brand) !important;
  background: var(--nc-surface-raised) !important;
}

body[data-page="settings"] .settings > .logout {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: 48px !important;
  margin: 18px 0 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 92, 92, 0.5) !important;
  border-radius: var(--nc-radius-md) !important;
  background: rgba(255, 92, 92, 0.08) !important;
}

body[data-page="settings"] .settings > .logout > .backgroud {
  display: none !important;
}

body[data-page="settings"] .settings > .logout > .logout_01 {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
}

body[data-page="settings"] .settings > .logout .logout_01_span {
  color: #ff7676 !important;
  font: 600 15px/1 var(--nc-font-family) !important;
}

@media (max-width: 360px) {
  body[data-page="settings"] .settings {
    padding-inline: 12px !important;
  }

  body[data-page="settings"] .profile_01 .image {
    left: 16px !important;
  }

  body[data-page="settings"] .profile_01 .username,
  body[data-page="settings"] .profile_01 .display-name {
    left: 118px !important;
  }
}

html,
body {
  background: var(--nc-black) !important;
  color: var(--nc-text);
  font-family: Helvetica !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--nc-black);
}

img,
svg,
video,
canvas {
  max-inline-size: 100%;
}

:where(.app-content, .app-content--full, .nc-page-flow, [data-nc-page-flow]) :where(.row, .stack, .cluster, [class*="grid"], [class*="list"]) > * {
  min-inline-size: 0;
}

button,
input,
select,
textarea {
  font-family: inherit !important;
}

/* ── Global focus polish ──────────────────────────────────────
   Strip the browser's default focus ring / glow on ALL elements
   that act as input field wrappers. The visible styled border on
   the container is already the focus affordance — the browser's
   blue rectangle is a second, redundant indicator.
   Keyboard users still get a visible focus indicator via the
   border-color / background change in each component's CSS.
──────────────────────────────────────────────────────────────── */

/* Raw form elements */
input:focus,
input:focus-visible,
textarea:focus,
textarea:focus-visible,
select:focus,
select:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Field wrapper divs used across the app (phone, email, auth, edit-profile, etc.) */
.rectangle-22:focus,
.rectangle-22:focus-visible,
.enter-your-phone-number:focus,
.enter-your-phone-number:focus-visible,
.enter-your-phone-number:focus-within,
.enter-your-email:focus,
.enter-your-email:focus-visible,
.enter-your-email:focus-within,
.auth-field:focus,
.auth-field:focus-visible,
.auth-field:focus-within,
.ep-field:focus,
.ep-field:focus-visible,
.ep-field:focus-within,
.ep-field__input:focus,
.ep-field__input:focus-visible,
.value-box:focus,
.value-box:focus-visible,
.value-box:focus-within,
.name-field:focus,
.name-field:focus-visible,
.name-field:focus-within,
[class*="field"]:focus,
[class*="field"]:focus-visible,
[class*="input"]:not(input):focus,
[class*="input"]:not(input):focus-visible,
[class*="rectangle"]:focus,
[class*="rectangle"]:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}


button,
a,
[role="button"],
[tabindex="0"] {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(45, 145, 242, 0.36);
  color: #FFFFFF;
}

.app-shell,
.page-shell,
.auth-page,
.app-content,
.app-content--full,
.home,
.wallet,
.profile,
.find-players,
.my-booking,
.booking-process,
.booking-history-page,
.games-page,
body[data-payment-result] :where(.payment-done-shell, .host-result-shell, .player-result-shell, .result-shell) {
  background: var(--nc-black) !important;
}

/* Shared app chrome */
.nitro-shared-main-header .header-top-bar,
.nitro-shared-back-header .header-top-bar,
.auth-header .header-top-bar,
.auth-header .top-bar {
  background: var(--nc-chrome) !important;
  background-image: none !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 0 0 var(--nc-radius-lg) var(--nc-radius-lg) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.nitro-shared-main-header .nitroconsole_span,
.nitro-shared-back-header .nitroconsole_span,
[data-nitro-header] .nitroconsole_span {
  color: var(--nc-text) !important;
  font-size: 21px !important;
  font-weight: 650 !important;
  letter-spacing: -0.02em;
}

[data-nitro-header] :where(.notification-icon, .vector_01, .back-icon) {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  top: 8px !important;
  border-radius: 50% !important;
  transition:
    background-color var(--nc-motion-fast) ease,
    transform var(--nc-motion-fast) var(--nc-ease-out),
    opacity var(--nc-motion-fast) ease !important;
}

[data-nitro-header] .back-icon {
  top: 50% !important;
}

[data-nitro-header] .notification-icon {
  left: calc(var(--nitro-header-side) - 11px) !important;
}

[data-nitro-header] .vector_01 {
  right: calc(var(--nitro-header-side) - 11px) !important;
}

[data-nitro-header] .back-icon {
  left: calc(var(--nitro-header-side) - 11px) !important;
}

[data-nitro-header] :where(.notification-icon, .vector_01, .back-icon):active {
  transform: scale(0.92) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

[data-nitro-header] .back-icon:active {
  transform: translateY(-50%) scale(0.92) !important;
}

[data-nitro-header] :where(.notification-icon, .vector_01, .back-icon) img {
  width: 21px !important;
  height: 21px !important;
  opacity: 0.94;
}

.app-bottom-nav .navbar-container,
.app-shell > .app-bottom-nav .navbar-container {
  background: var(--nc-chrome) !important;
  background-image: none !important;
  border: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.app-bottom-nav .navbar-banner-background,
.app-shell > .app-bottom-nav .navbar-banner-background {
  background-color: #121212 !important;
  background-image: linear-gradient(180deg, #1C1C1C 0%, #181818 32%, #141414 63%, #121212 100%) !important;
  box-shadow: none !important;
}

.app-bottom-nav .active-bar,
.app-shell > .app-bottom-nav .active-bar {
  top: -12px !important;
  filter: none !important;
}

.app-bottom-nav .active-bar::before,
.app-shell > .app-bottom-nav .active-bar::before {
  left: 27px !important;
  top: 27px !important;
  width: 44px !important;
  height: 44px !important;
  background: rgba(20, 118, 212, 0.22) !important;
  filter: blur(12px) !important;
}

.app-bottom-nav .active-bar::after,
.app-shell > .app-bottom-nav .active-bar::after {
  left: 27px !important;
  top: 62px !important;
  width: 44px !important;
  height: 4px !important;
  border-radius: 999px !important;
  background: #FFFFFF !important;
  box-shadow: none !important;
}

.app-bottom-nav .nav-icon-btn {
  transition:
    transform var(--nc-motion-fast) var(--nc-ease-out),
    opacity var(--nc-motion-fast) ease !important;
}

.app-bottom-nav .nav-icon-btn:not([aria-current="page"]) {
  opacity: 0.64 !important;
}

.app-bottom-nav .nav-icon-btn[aria-current="page"] {
  opacity: 1 !important;
}

.app-bottom-nav .nav-icon-btn:active {
  transform: scale(0.88) !important;
}

.app-bottom-nav .homelabel_span {
  color: var(--nc-text) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

/* Typography */
:where(
  .games-label,
  .subscription-plans_span,
  .booking-title,
  .section-heading,
  .tool-title,
  .tool-title-card h1,
  .settings-title,
  .profile-friends-title,
  .notification-title
) {
  color: var(--nc-text) !important;
  font-weight: 650 !important;
  letter-spacing: -0.025em;
  text-shadow: none !important;
}

:where(
  .games-sublabel,
  .auth-subtitle,
  .payment-safety-note,
  .tool-subtitle,
  .settings-subtitle,
  .empty-message,
  .notification-time
) {
  color: var(--nc-text-muted) !important;
}

/* Inputs and segmented controls */
/* NOTE: .ep-field is a full-width list row (not a visual input box) —
   it must NOT receive a border or background from this rule. */
:where(
  .auth-field__bg,
  .tool-input,
  .value-box,
  .role-input,
  .members-search-control,
  .tool-search,
  .wallet-top-up-input,
  .invite-search,
  .search-bar
) {
  border: 1px solid var(--nc-border) !important;
  border-radius: var(--nc-radius-md) !important;
  background: var(--nc-surface-field) !important;
  background-image: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025) !important;
}

:where(input, select, textarea) {
  color: var(--nc-text) !important;
  caret-color: var(--nc-brand-strong);
  accent-color: var(--nc-brand);
}

:where(input, textarea)::placeholder {
  color: var(--nc-text-muted) !important;
  opacity: 0.84 !important;
}

:where(
  .tool-input,
  .value-box,
  .role-input,
  .members-search-control,
  .tool-search,
  .wallet-top-up-input
):focus-within {
  border-color: rgba(45, 145, 242, 0.70) !important;
  box-shadow:
    0 0 0 3px rgba(20, 118, 212, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

:where(
  .full-amount-container,
  .analytics-tabs,
  .cp-screen-toggle,
  .date-navigation
) {
  border: 1px solid var(--nc-border) !important;
  border-radius: var(--nc-radius-pill) !important;
  background: var(--nc-surface) !important;
  background-image: none !important;
  box-shadow: none !important;
}

:where(.analytics-tabs .is-active, .cp-screen-btn.is-active) {
  border-radius: var(--nc-radius-pill) !important;
  background: var(--nc-surface-hover) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

/* Primary and secondary actions */
:where(
  .auth-button--primary,
  .auth-button--secondary,
  .guest-auth-action--primary,
  .proceed-to-book,
  .book-next-session,
  .wallet-top-up-submit,
  .payment-primary-btn,
  .admin-login-submit,
  .done-primary-btn,
  .host-primary-btn,
  .player-primary-btn,
  .result-primary-btn,
  .tool-button,
  .save,
  .export-button,
  .book-now-btn
) {
  border: 0 !important;
  border-radius: var(--nc-radius-pill) !important;
  background: var(--nc-brand) !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #FFFFFF !important;
  font-weight: 650 !important;
  transition:
    background-color var(--nc-motion-fast) ease,
    transform var(--nc-motion-fast) var(--nc-ease-out),
    filter var(--nc-motion-fast) ease !important;
}

:where(
  .auth-button--outline,
  .guest-auth-action--guest,
  .guest-auth-action--create,
  .payment-secondary-btn,
  .done-secondary-btn,
  .host-secondary-btn,
  .player-secondary-btn,
  .result-secondary-btn,
  .profile-logged-out__button--outline,
  .profile-logged-out__button--ghost,
  .view-booking
) {
  border: 1px solid var(--nc-border-strong) !important;
  border-radius: var(--nc-radius-pill) !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--nc-text) !important;
  font-weight: 600 !important;
  transition:
    background-color var(--nc-motion-fast) ease,
    border-color var(--nc-motion-fast) ease,
    transform var(--nc-motion-fast) var(--nc-ease-out) !important;
}

:where(
  .auth-button,
  .guest-auth-action,
  .proceed-to-book,
  .book-next-session,
  .wallet-top-up-submit,
  .payment-primary-btn,
  .payment-secondary-btn,
  .admin-login-submit,
  .tool-button,
  .save,
  .export-button,
  .view-booking,
  .book-now-btn
):active {
  transform: scale(0.975) !important;
}

@media (hover: hover) and (pointer: fine) {
  :where(
    .auth-button--primary,
    .guest-auth-action--primary,
    .proceed-to-book,
    .book-next-session,
    .wallet-top-up-submit,
    .payment-primary-btn,
    .admin-login-submit,
    .tool-button,
    .save,
    .export-button,
    .book-now-btn
  ):hover {
    background: var(--nc-brand-strong) !important;
  }

  :where(
    .auth-button--outline,
    .guest-auth-action--guest,
    .guest-auth-action--create,
    .payment-secondary-btn,
    .view-booking
  ):hover {
    border-color: #5A6471 !important;
    background: rgba(255, 255, 255, 0.05) !important;
  }
}

/* Calm shared surfaces */
:where(
  .summary-card,
  .booking-card,
  .booking-details-card,
  .team-card,
  .reason-card,
  .notice-card,
  .done-notice-card,
  .tool-card,
  .chart-card,
  .analytics-wide-card,
  .rank-card,
  .pricing-panel,
  .permission-card,
  .tool-list-shell,
  .members-table,
  .profile-logged-out__card
) {
  border: 1px solid var(--nc-border) !important;
  border-radius: var(--nc-radius-lg) !important;
  background: var(--nc-surface) !important;
  background-image: none !important;
  box-shadow: var(--nc-shadow-soft) !important;
}

:where(
  button,
  input,
  select,
  textarea,
  [role="button"]
):disabled,
:where(button, [role="button"])[aria-disabled="true"] {
  cursor: not-allowed !important;
  opacity: 0.48 !important;
  transform: none !important;
}

:where(
  .summary-row,
  .booking-details-row,
  .tool-table-header,
  .members-table-header,
  .team-list > *,
  .tool-list > *
) {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Home: compact utility chips and media-led session cards */
body[data-page="home"] .app-content > .home {
  background: var(--nc-black) !important;
}

body[data-page="home"] .home-info-card {
  border: 1px solid var(--nc-border) !important;
  border-radius: var(--nc-radius-pill) !important;
  background: var(--nc-surface) !important;
  box-shadow: none !important;
  transition:
    border-color var(--nc-motion-fast) ease,
    background-color var(--nc-motion-fast) ease !important;
}

body[data-page="home"] .home-info-card > :where(.background_01, .background_02) {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

body[data-page="home"] .home-booking-card,
body[data-page="home"] .logic-card {
  border: 1px solid var(--nc-border) !important;
  border-radius: var(--nc-radius-lg) !important;
  background: var(--nc-surface) !important;
  box-shadow: none !important;
  transition:
    border-color var(--nc-motion-ui) ease,
    transform var(--nc-motion-ui) var(--nc-ease-out) !important;
}

body[data-page="home"] .home-booking-card > :where(
  .background,
  .background_04,
  .background_06,
  .background_08,
  .background_10,
  .background_12
),
body[data-page="home"] .logic-card > :where(
  .background,
  .background_04,
  .background_06,
  .background_08,
  .background_10,
  .background_12
),
body[data-page="home"] .logic-card > .nc-ratio-card__inner > :where(
  .background,
  .background_04,
  .background_06,
  .background_08,
  .background_10,
  .background_12
) {
  border-color: var(--nc-border) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 38%),
    var(--nc-surface) !important;
  box-shadow: none !important;
}

body[data-page="home"] #btn-session-availability {
  border: 1px solid var(--nc-border-strong) !important;
  border-radius: var(--nc-radius-pill) !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Game catalogue: artwork first, quiet title overlay */
body[data-page="game"] .games-page {
  background: var(--nc-black) !important;
}

body[data-page="game"] .games-label {
  font-size: 28px !important;
  line-height: 1.12 !important;
}

body[data-page="game"] .game-card {
  position: relative !important;
  border: 1px solid transparent !important;
  border-radius: var(--nc-radius-md) !important;
  background: var(--nc-surface) !important;
  box-shadow: none !important;
  transition:
    transform var(--nc-motion-ui) var(--nc-ease-out),
    border-color var(--nc-motion-ui) ease,
    box-shadow var(--nc-motion-ui) ease !important;
}

body[data-page="game"] .game-card img {
  width: 100% !important;
  height: 100% !important;
  border-radius: inherit !important;
}

body[data-page="game"] .game-card__name {
  position: absolute !important;
  inset: auto 0 0 !important;
  width: 100% !important;
  height: 42px !important;
  padding: 14px 12px 6px !important;
  justify-content: flex-start !important;
  background: linear-gradient(180deg, transparent, rgba(7, 9, 12, 0.92)) !important;
  color: #FFFFFF !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-align: left !important;
}

body[data-page="game"] .game-card:is(:focus-visible, .game-card--selected) {
  border-color: var(--nc-brand-strong) !important;
  box-shadow: 0 0 0 2px var(--nc-brand-soft) !important;
  transform: translateY(-2px);
}

body[data-page="game"] .game-card:active {
  transform: scale(0.97) !important;
}

/* Wallet and subscriptions */
body[data-page="wallet"] .wallet > .wallet-add-money,
body[data-page="wallet"] .wallet > .free {
  border-color: var(--nc-border) !important;
  background: var(--nc-surface) !important;
  background-image: none !important;
  box-shadow: var(--nc-shadow-soft) !important;
}

body[data-page="wallet"] .wallet-add-money > .wallet_01 {
  border-color: var(--nc-border) !important;
  background: var(--nc-surface-raised) !important;
  background-image: none !important;
}

body[data-page="wallet"] .wallet-add-money > .add-money {
  border: 0 !important;
  border-radius: var(--nc-radius-pill) !important;
  background: var(--nc-brand) !important;
  background-image: none !important;
  box-shadow: none !important;
}

body[data-page="wallet"] .wallet > .free::before {
  display: none !important;
}

body[data-page="wallet"] .loyalty-slot-grid {
  background: #111419 !important;
  border-color: var(--nc-border) !important;
}

body[data-page="wallet"] .loyalty-slot {
  background: var(--nc-surface) !important;
  border-color: var(--nc-border) !important;
  box-shadow: none !important;
}

body[data-page="wallet"] .loyalty-slot.is-current {
  border-color: var(--nc-brand-strong) !important;
  background: var(--nc-brand-soft) !important;
  box-shadow: 0 0 0 3px rgba(20, 118, 212, 0.12) !important;
}

body[data-page="wallet"] .text-10-bookings-left-30-days-left {
  border-color: var(--nc-border) !important;
  background: var(--nc-surface-raised) !important;
  background-image: none !important;
}

body[data-page="wallet"] .loyalty-progress__number {
  border: 0 !important;
  background: var(--nc-brand) !important;
}

/* Profile, friends, settings, and notification rows */
body[data-page="profile"] :where(.profile_01, .section-title, .session),
body[data-page="profile-friends"] :where(.profile-friend-card, .friend-card),
body[data-page="notification"] :where(.notification-card, .notification-item),
.settings-page :where(.settings-card, .settings-row, .settings-section) {
  border: 1px solid var(--nc-border) !important;
  border-radius: var(--nc-radius-lg) !important;
  background: var(--nc-surface) !important;
  background-image: none !important;
  box-shadow: none !important;
}

body[data-page="profile"] :where(.profile_01, .section-title, .session) > [class^="background"] {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

body[data-page="profile"] .settings {
  border: 1px solid var(--nc-border-strong) !important;
  border-radius: var(--nc-radius-pill) !important;
  background: transparent !important;
  color: var(--nc-text) !important;
}

body[data-page="profile"] :where(.a-way-out, .fifa-2026, .asphalt-legends, .wwe-2k25) {
  border: 1px solid transparent !important;
  border-radius: var(--nc-radius-md) !important;
  overflow: hidden !important;
  transition:
    transform var(--nc-motion-ui) var(--nc-ease-out),
    border-color var(--nc-motion-ui) ease !important;
}

body[data-page="profile"] :where(.a-way-out, .fifa-2026, .asphalt-legends, .wwe-2k25):active {
  transform: scale(0.97) !important;
}

/* Booking, availability, checkout, and result flows */
:where(
  .booking-process-card,
  .booking-card,
  .date-navigation,
  .screen-card,
  .availability-card,
  .member-billing-card,
  .wallet,
  .upi
) {
  border-color: var(--nc-border) !important;
  background: var(--nc-surface) !important;
  background-image: none !important;
  box-shadow: none !important;
}

.bill-page :where(.summary-card, .wallet, .upi) > :where(.card-bg, .card-shell) {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.bill-page :where(.wallet, .upi) {
  border: 1px solid var(--nc-border) !important;
  border-radius: var(--nc-radius-md) !important;
  transition:
    border-color var(--nc-motion-fast) ease,
    background-color var(--nc-motion-fast) ease,
    transform var(--nc-motion-fast) var(--nc-ease-out) !important;
}

.bill-page :where(.wallet, .upi)[aria-pressed="true"] {
  border-color: var(--nc-brand-strong) !important;
  background: var(--nc-brand-soft) !important;
}

.bill-page :where(.wallet, .upi):active {
  transform: scale(0.985) !important;
}

.method-check {
  border-color: var(--nc-border-strong) !important;
}

[aria-pressed="true"] > .method-check {
  border-color: var(--nc-brand-strong) !important;
  background: var(--nc-brand) !important;
  box-shadow: inset 0 0 0 4px var(--nc-surface) !important;
}

body[data-payment-result] :where(.booking-details-card, .summary-card, .team-card, .reason-card) {
  background: var(--nc-surface) !important;
  background-image: none !important;
}

body[data-payment-result] .payment-result-icon {
  filter: drop-shadow(0 10px 24px rgba(var(--result-accent-rgb), 0.18));
}

/* Dialogs and sheets */
:where([role="dialog"], .modal, .dialog, .invite-overlay-panel, .fp-invite-overlay-panel) {
  border: 1px solid var(--nc-border) !important;
  border-radius: var(--nc-radius-lg) !important;
  background: var(--nc-surface) !important;
  background-image: none !important;
  box-shadow: var(--nc-shadow-sheet) !important;
}

html #nii-root {
  background: rgba(4, 6, 9, 0.76) !important;
  backdrop-filter: blur(12px) saturate(110%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(110%) !important;
  transition:
    opacity var(--nc-motion-ui) ease,
    visibility var(--nc-motion-ui) ease !important;
}

html #nii-root .nii-panel {
  border: 1px solid var(--nc-border) !important;
  border-radius: var(--nc-radius-lg) !important;
  background: var(--nc-surface) !important;
  background-image: none !important;
  box-shadow: var(--nc-shadow-sheet) !important;
  transform: translateY(14px) scale(0.985) !important;
  transition: transform var(--nc-motion-page) var(--nc-ease-out) !important;
}

html #nii-root.nii-open .nii-panel,
html #nii-root.fp-invite-overlay--visible .fp-invite-overlay-panel {
  transform: translateY(0) scale(1) !important;
}

html #nii-root :where(.nii-divider, .nii-footer) {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: var(--nc-surface) !important;
}

/* Admin tools use the same neutral system at a denser scale */
body:has(.admin-shell),
body:has(.admin-tool-page),
body:has(.admin-fixed-canvas),
body:has(.admin-members-page),
body:has(.notifications-page),
body:has(.admin-login-card) {
  background: var(--nc-black) !important;
  color: var(--nc-text) !important;
  font-family: Helvetica !important;
}

:where(.admin-navbar, .admin-sidebar, .admin-topbar) {
  border-color: var(--nc-border) !important;
  background: var(--nc-chrome) !important;
  background-image: none !important;
  box-shadow: none !important;
}

:where(
  .admin-shell,
  .admin-tool-page,
  .admin-fixed-canvas,
  .admin-members-page,
  .notifications-page,
  .tool-main,
  .members-main
) {
  background: var(--nc-black) !important;
}

:where(
  .tool-card,
  .chart-card,
  .analytics-wide-card,
  .rank-card,
  .pricing-panel,
  .permission-card,
  .tool-list-shell,
  .members-table,
  .admin-login-card
) {
  border-color: var(--nc-border) !important;
  background: var(--nc-surface) !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Page and control motion */
@view-transition {
  navigation: auto;
}

::view-transition-old(nitro-page-content) {
  animation: nc-ps-page-out 120ms cubic-bezier(0.23, 1, 0.32, 1) both !important;
}

::view-transition-new(nitro-page-content) {
  animation: nc-ps-page-in var(--nc-motion-page) var(--nc-ease-out) both !important;
}

@keyframes nc-ps-page-out {
  to {
    opacity: 0;
    transform: translateX(-6px) scale(0.995);
  }
}

@keyframes nc-ps-page-in {
  from {
    opacity: 0;
    transform: translateX(10px) scale(0.995);
  }
}

html[data-nitro-navigation="pending"] :where(.app-content, .app-content--full, .bill-page, .auth-page) {
  opacity: 0.72;
  transform: none;
  transition: opacity 100ms ease !important;
}

html.nitro-experience-entering :where(
  .app-content,
  .app-content--full,
  .bill-page,
  .auth-page,
  [data-payment-result] .result-body
) {
  opacity: 0;
  transform: none;
}

html.nitro-experience-ready :where(
  .app-content,
  .app-content--full,
  .bill-page,
  .auth-page,
  [data-payment-result] .result-body
) {
  opacity: 1;
  transform: none;
  transition: opacity var(--nc-motion-page) ease;
}

:where(button, a, [role="button"]):focus-visible {
  outline: 2px solid var(--nc-brand-strong) !important;
  outline-offset: 3px !important;
}

@media (max-width: 350px) {
  :root {
    --nc-radius-lg: 16px;
  }
}

@media (min-width: 768px) {
  .app-shell,
  .page-shell,
  .auth-page,
  body[data-payment-result] :where(.payment-done-shell, .host-result-shell, .player-result-shell, .result-shell) {
    border-inline: 0;
    box-shadow: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.nitro-experience-entering :where(
    .app-content,
    .app-content--full,
    .bill-page,
    .auth-page,
    [data-payment-result] .result-body
  ) {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Adaptive application canvas — 2026.08.14

   Phone layouts keep the established single-column composition. Wider
   viewports use their space for useful parallel content instead of rendering
   the whole product inside a 430px phone simulation.
   ========================================================================== */

html[data-nitro-system="2026-08-sitewide"] :where(
  .fp-team-card .fp-card-action,
  .fp-team-card .fp-join-button
) {
  min-block-size: 46px !important;
}

@media (min-width: 48rem) {
  html[data-nitro-system="2026-08-sitewide"] {
    --nc-desktop-screen-cap: 1180px;
    --nc-layout-gutter: clamp(24px, 3vw, 36px);
    --nc-layout-edge-gap: clamp(20px, 2.4vw, 30px);
  }

  html[data-nitro-system="2026-08-sitewide"] :where(
    .app-shell,
    .app-header,
    [data-nitro-header],
    .app-content,
    .app-content--full
  ) {
    inline-size: min(100vw, var(--nc-desktop-screen-cap)) !important;
    max-inline-size: var(--nc-desktop-screen-cap) !important;
  }

  html[data-nitro-system="2026-08-sitewide"] body[data-page="home"] .home--cafe-first,
  html[data-nitro-system="2026-08-sitewide"] body[data-page="home"] .cafe-directory {
    inline-size: min(calc(100% - 48px), 60rem) !important;
    margin-inline: auto !important;
  }

  html[data-nitro-system="2026-08-sitewide"] body[data-page="home"] .cafe-directory__grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)) !important;
    gap: 18px !important;
  }

  html[data-nitro-system="2026-08-sitewide"] body[data-page="find-players"] .find-players {
    inline-size: min(calc(100% - 48px), 71rem) !important;
    min-block-size: 100% !important;
    block-size: auto !important;
    margin-inline: auto !important;
    padding-block: 20px 120px !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(354px, 1fr)) !important;
    align-content: start !important;
    align-items: start !important;
    gap: 18px 12px !important;
  }

  html[data-nitro-system="2026-08-sitewide"] body[data-page="find-players"] .find-players > :where(
    .search-container,
    .create-container,
    .fp-team-card
  ) {
    position: relative !important;
    inset: auto !important;
    margin: 0 !important;
  }

  html[data-nitro-system="2026-08-sitewide"] body[data-page="find-players"] .find-players > :where(
    .search-container,
    .create-container
  ) {
    inline-size: 100% !important;
    block-size: 52px !important;
    order: -1;
  }

  html[data-nitro-system="2026-08-sitewide"] body[data-page="find-players"] .find-players > .fp-team-card {
    justify-self: center !important;
  }

  html[data-nitro-system="2026-08-sitewide"] body[data-page="find-players"] .find-players-empty-state {
    position: relative !important;
    grid-column: 1 / -1;
  }

  html[data-nitro-system="2026-08-sitewide"] body[data-page="chat"] .nc-chat-shell,
  html[data-nitro-system="2026-08-sitewide"] body[data-page="chat-conversation"] .nc-chat-shell {
    inline-size: min(100vw, 720px) !important;
    max-inline-size: 720px !important;
  }

  html[data-nitro-system="2026-08-sitewide"] .location-picker__panel {
    inline-size: min(calc(100vw - 48px), 32rem) !important;
  }
}

@media (min-width: 56.25rem) {
  html[data-nitro-system="2026-08-sitewide"] body[data-page="home"] .app-shell,
  html[data-nitro-system="2026-08-sitewide"] body[data-page="home"] .app-header,
  html[data-nitro-system="2026-08-sitewide"] body[data-page="home"] [data-nitro-header],
  html[data-nitro-system="2026-08-sitewide"] body[data-page="home"] .app-content,
  html[data-nitro-system="2026-08-sitewide"] body[data-page="home"] .app-content--full {
    inline-size: min(100vw, var(--nc-desktop-screen-cap)) !important;
    max-inline-size: var(--nc-desktop-screen-cap) !important;
  }
}

@media (min-width: 68rem) {
  html[data-nitro-system="2026-08-sitewide"] body[data-page="find-players"] .find-players > .search-container {
    grid-column: span 2;
  }
}

/* The Find Players cards still use an exported absolute-position model.
   Keep that route on its stable compact canvas until the cards themselves are
   migrated, rather than stretching their internal coordinates on desktop. */
@media (min-width: 48rem) {
  html[data-nitro-system="2026-08-sitewide"] body[data-page="find-players"] .find-players {
    inline-size: 430px !important;
    block-size: 1427px !important;
    min-block-size: 1427px !important;
    margin-inline: 0 !important;
    padding: 0 !important;
    display: block !important;
  }

  html[data-nitro-system="2026-08-sitewide"] body[data-page="find-players"] .find-players > :where(
    .search-container,
    .create-container,
    .fp-team-card
  ) {
    position: absolute !important;
    margin: 0 !important;
  }

  html[data-nitro-system="2026-08-sitewide"] body[data-page="find-players"] .find-players > :where(
    .search-container,
    .create-container
  ) {
    inline-size: 188px !important;
    block-size: 44px !important;
  }
}

/* ==========================================================================
   Site-wide component contract — all production route families

   This high-specificity shared layer replaces visual variation inherited
   from individual Figma-export styles with one component grammar while
   leaving route behavior, data attributes, IDs and event wiring untouched.
   ========================================================================== */

html[data-nitro-system="2026-08-sitewide"] {
  --nc-layout-gutter: 16px;
  --nc-layout-edge-gap: 16px;
  --nc-page-gutter: 16px;
  --nc-card-padding: 16px;
  --nc-section-gap: 20px;
  --nc-control-radius: 12px;
}

html[data-nitro-system="2026-08-sitewide"],
html[data-nitro-system="2026-08-sitewide"] body {
  min-inline-size: 320px;
}

html[data-nitro-system="2026-08-sitewide"] :where(*, *::before, *::after) {
  box-sizing: border-box;
}

html[data-nitro-system="2026-08-sitewide"] :where(
  .app-content,
  .app-content--full,
  .auth-page,
  .bill-page,
  .booking-process,
  .result-body,
  .payment-done-body,
  .host-result-body,
  .player-result-body,
  .tool-main,
  .members-main,
  .roles-main,
  .games-main,
  .pricing-main,
  .log-main,
  .admin-main
) {
  min-inline-size: 0;
}

/* Shared header proportions across app, account, booking and result routes. */
html[data-nitro-system="2026-08-sitewide"] :where(
  .app-header,
  .ep-header,
  .nc-chat-header,
  .nc-thread-header,
  .result-header,
  .payment-done-header,
  .host-result-header,
  .player-result-header
) {
  min-block-size: 60px !important;
  border-block-end: 1px solid var(--nc-border) !important;
  border-radius: 0 0 var(--nc-radius-lg) var(--nc-radius-lg) !important;
  background: var(--nc-chrome) !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* One geometry for primary actions. Status chips and navigation icons keep
   their own pill/circle contracts and are intentionally excluded. */
html[data-nitro-system="2026-08-sitewide"] :where(
  .auth-button--primary,
  .guest-auth-action--primary,
  .proceed-to-book,
  .book-next-session,
  .wallet-top-up-submit,
  .wallet-inline-topup__submit,
  .payment-primary-btn,
  .admin-login-submit,
  .done-primary-btn,
  .host-primary-btn,
  .player-primary-btn,
  .result-primary-btn,
  .tool-button,
  .save,
  .export-button,
  .book-now-btn,
  .cafe-book-button,
  .fp-card-action,
  .fp-join-button,
  .npp-action--primary,
  .add-money,
  .venue-booking-card__footer button
) {
  min-block-size: 48px !important;
  border-radius: var(--nc-control-radius) !important;
  padding-inline: 20px !important;
}

html[data-nitro-system="2026-08-sitewide"] :where(
  .auth-button--secondary,
  .auth-button--outline,
  .guest-auth-action--guest,
  .guest-auth-action--create,
  .payment-secondary-btn,
  .done-secondary-btn,
  .host-secondary-btn,
  .player-secondary-btn,
  .result-secondary-btn,
  .view-booking,
  .npp-action--secondary
) {
  min-block-size: 48px !important;
  border-radius: var(--nc-control-radius) !important;
  padding-inline: 20px !important;
}

/* One field surface owns the background, border, and focus indication. */
html[data-nitro-system="2026-08-sitewide"] :where(
  .auth-field__bg,
  .tool-input,
  .value-box,
  .role-input,
  .members-search-control,
  .tool-search,
  .wallet-top-up-input,
  .wallet-inline-topup__custom,
  .invite-search,
  .search-bar,
  .cafe-search,
  .ig-search,
  .nc-search,
  .nc-inputbar__pill,
  .search-container,
  .search-background
) {
  min-block-size: 48px !important;
  border: 1px solid var(--nc-border) !important;
  border-radius: var(--nc-control-radius) !important;
  background: var(--nc-surface-field) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-nitro-system="2026-08-sitewide"] :where(
  .auth-field__bg,
  .tool-input,
  .value-box,
  .role-input,
  .members-search-control,
  .tool-search,
  .wallet-top-up-input,
  .wallet-inline-topup__custom,
  .invite-search,
  .search-bar,
  .cafe-search,
  .ig-search,
  .nc-search,
  .nc-inputbar__pill,
  .search-container,
  .search-background
):focus-within {
  border-color: var(--nc-focus) !important;
  outline: 2px solid color-mix(in srgb, var(--nc-focus) 28%, transparent) !important;
  outline-offset: 2px !important;
}

/* Canonical flat card surface across customer, booking, social, result and
   account families. Ticket cut-outs are excluded because their silhouette is
   owned by the shared booking-ticket component. */
html[data-nitro-system="2026-08-sitewide"] :where(
  .cafe-card,
  .cafe-hero,
  .cafe-opening-card,
  .availability-card,
  .availability-date-card,
  .setup-availability-card,
  .venue-booking-card,
  .booking-process > .screen,
  .booking-process > .booking-type,
  .booking-process > .player,
  .booking-process > .date,
  .booking-process > .time,
  .booking-process > .games,
  .booking-process > .date-time,
  .fp-team-card,
  .team-card,
  .wallet-balance-card,
  .wallet-inline-topup,
  .profile-card,
  .profile-stats-card,
  .npp-card,
  .notification-card,
  .notification-empty-state,
  .summary-card,
  .booking-details-card,
  .reason-card,
  .notice-card,
  .tool-card,
  .analytics-card,
  .members-card,
  .roles-card,
  .games-card,
  .pricing-card,
  .log-card
):not(.logic-ticket):not(.booking-ticket) {
  border: 1px solid var(--nc-border) !important;
  border-radius: var(--nc-radius-md) !important;
  background: var(--nc-surface) !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Normalize section rhythm without turning every region into another card. */
html[data-nitro-system="2026-08-sitewide"] :where(
  .cafe-page,
  .session-availability-page,
  .find-players,
  .wallet-page,
  .profile-page,
  .npp-content,
  .booking-process,
  .bill-page
) > :where(section, article, form, [class*="section"]) + :where(section, article, form, [class*="section"]) {
  margin-block-start: var(--nc-section-gap);
}

/* App list rows use a quiet single-surface hierarchy. */
html[data-nitro-system="2026-08-sitewide"] :where(
  .ig-conversation-row,
  .friend-row,
  .notification-row,
  .booking-history-row,
  .settings-row,
  .tool-list-row,
  .member-row,
  .role-row,
  .game-row
) {
  min-block-size: 60px;
  border-block-end: 1px solid var(--nc-border) !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Authentication and setup pages share a calm centered task column. */
html[data-nitro-system="2026-08-sitewide"] :where(
  .auth-page,
  .username-page,
  .not-logged-in,
  body.change-password-page > .change-password
) {
  inline-size: min(100%, 430px) !important;
  min-block-size: 100svh;
  margin-inline: auto !important;
  background: var(--nc-black) !important;
  box-shadow: none !important;
}

/* Auth and messaging roots can sit directly beside the legal footer. Keep
   those body children in a vertical page flow so the footer never becomes a
   competing flex-row item that shrinks the application canvas. */
html[data-nitro-system="2026-08-sitewide"] body:has(> .auth-page),
html[data-nitro-system="2026-08-sitewide"] body:is(
  [data-page="chat"],
  [data-page="chat-conversation"]
) {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

/* Result states are one centered decision path rather than floating artwork. */
html[data-nitro-system="2026-08-sitewide"] body[data-payment-result] :where(
  .payment-done-body,
  .result-body,
  .host-result-body,
  .player-result-body
) {
  inline-size: min(100% - 32px, 398px) !important;
  margin-inline: auto !important;
}

/* Admin remains desktop-capable while collapsing intrinsically on tablets. */
html[data-nitro-system="2026-08-sitewide"] :where(
  .tool-main,
  .members-main,
  .roles-main,
  .games-main,
  .pricing-main,
  .log-main,
  .admin-main
) {
  inline-size: min(100% - 32px, 1180px) !important;
  margin-inline: auto !important;
}

html[data-nitro-system="2026-08-sitewide"] :where(
  .tool-grid,
  .analytics-grid,
  .members-grid,
  .roles-grid,
  .games-grid,
  .pricing-grid,
  .admin-grid
) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px !important;
}

/* Content-driven responsive corrections. */
@media (max-width: 359px) {
  html[data-nitro-system="2026-08-sitewide"] {
    --nc-layout-gutter: 12px;
    --nc-layout-edge-gap: 12px;
    --nc-page-gutter: 12px;
    --nc-card-padding: 14px;
  }

  html[data-nitro-system="2026-08-sitewide"] :where(
    .fp-toolbar,
    .wallet-quick-grid,
    .payment-method-actions,
    .result-actions
  ) {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 600px) {
  html[data-nitro-system="2026-08-sitewide"] :where(
    .tool-main,
    .members-main,
    .roles-main,
    .games-main,
    .pricing-main,
    .log-main,
    .admin-main
  ) {
    inline-size: min(100% - 48px, 1180px) !important;
  }
}

/* ============================================================
   Nitro Console unified production system — 2026.08
   This is the final cascade contract. Legacy page styles retain
   structure and behavior; these rules own visual language.
   ============================================================ */

:root {
  color-scheme: dark;

  /* Brand and semantic colour roles */
  --nc-black: #0b0b0f;
  --nc-ink: #09090c;
  --nc-chrome: #111419;
  --nc-surface: #1a1d22;
  --nc-surface-raised: #22262c;
  --nc-surface-field: #22262c;
  --nc-surface-hover: #292e35;
  --nc-border: #343a43;
  --nc-border-strong: #4a525d;
  --nc-text: #f5f7fa;
  --nc-text-muted: #a7adb6;
  --nc-text-faint: #747c87;
  --nc-brand: #1476d4;
  --nc-brand-pressed: #1168bd;
  --nc-brand-active: #0d559d;
  --nc-brand-strong: #2d91f2;
  --nc-brand-soft: rgba(20, 118, 212, 0.18);
  --nc-success: #42d77d;
  --nc-warning: #f2bf4b;
  --nc-danger: #ff6b6b;

  /* Type */
  --nc-font-sans: Helvetica;
  --nc-type-display: clamp(2rem, 1.72rem + 1.2vw, 3.375rem);
  --nc-type-title: 1.75rem;
  --nc-type-section: 1.375rem;
  --nc-type-card: 1.125rem;
  --nc-type-body: 1rem;
  --nc-type-support: 0.875rem;
  --nc-type-caption: 0.75rem;
  --nc-type-control: 0.9375rem;

  /* Geometry */
  --nc-space-1: 4px;
  --nc-space-2: 8px;
  --nc-space-3: 12px;
  --nc-space-4: 16px;
  --nc-space-5: 24px;
  --nc-space-6: 32px;
  --nc-space-7: 48px;
  --nc-space-8: 64px;
  --nc-space-section: 96px;
  --nc-layout-gutter: 18px;
  --nc-layout-edge-gap: 18px;
  --nc-page-gutter: var(--nc-layout-gutter);
  --nc-radius-xs: 8px;
  --nc-radius-sm: 8px;
  --nc-radius-md: 12px;
  --nc-radius-lg: 16px;
  --nc-radius-pill: 9999px;
  --nc-control-height: 48px;
  --nc-touch-target: 44px;

  /* Flat elevation by design */
  --nc-shadow-soft: none;
  --nc-shadow-sheet: none;
  --nc-shadow-brand: none;
  --nc-focus: #2d91f2;

  /* Existing feature aliases */
  --auth-bg: var(--nc-black);
  --auth-field: var(--nc-surface-field);
  --auth-text: var(--nc-text);
  --auth-muted: var(--nc-text-muted);
  --auth-blue: var(--nc-brand);
  --payment-page-bg: var(--nc-black);
  --payment-surface: var(--nc-surface);
  --payment-surface-raised: var(--nc-surface-raised);
  --payment-border: var(--nc-border);
  --payment-text: var(--nc-text);
  --payment-muted: var(--nc-text-muted);
  --payment-primary: var(--nc-brand);
}

html,
body {
  background: var(--nc-black) !important;
  color: var(--nc-text) !important;
  font-family: var(--nc-font-sans) !important;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

body,
button,
input,
select,
textarea {
  font-family: var(--nc-font-sans) !important;
}

body,
body * {
  text-shadow: none !important;
}

:where(h1, h2, h3, h4, h5, h6, p) {
  margin-block-start: 0;
}

:where(h1, .nc-page-title, .tool-title) {
  color: var(--nc-text) !important;
  font-size: var(--nc-type-title);
  font-weight: 700 !important;
  line-height: 1.2;
  letter-spacing: 0 !important;
  text-wrap: balance;
}

:where(h2, .section-heading, .section-title, .booking-title) {
  color: var(--nc-text) !important;
  font-size: var(--nc-type-section);
  font-weight: 700 !important;
  line-height: 1.25;
  letter-spacing: 0 !important;
  text-wrap: balance;
}

:where(h3, h4, .card-title, .tool-card-title) {
  color: var(--nc-text) !important;
  font-size: var(--nc-type-card);
  font-weight: 600 !important;
  line-height: 1.3;
  letter-spacing: 0 !important;
}

:where(p, li, dd, td, .body-copy) {
  line-height: 1.5;
}

:where(.subtitle, .description, .meta, .helper, small, time) {
  color: var(--nc-text-muted);
}

:where(.prose, .hero-copy, .section-copy) {
  max-inline-size: 65ch;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

/* Media and intrinsic layout safety */
:where(img, video, svg, canvas) {
  max-inline-size: 100%;
}

:where(.app-content, .app-content--full, main, section, article, form, fieldset, .row, .stack, .cluster, [class*="grid"], [class*="list"]) > * {
  min-inline-size: 0;
}

:where(.app-content, .app-content--full) {
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable both-edges;
}

/* Controls */
:where(button, [role="button"], input, select, textarea) {
  font-size: var(--nc-type-control);
}

:where(button, [role="button"], a) {
  -webkit-tap-highlight-color: transparent;
}

:where(button, [role="button"]):not(.nav-icon-btn):not(.back-icon):not(.notification-icon):not(.vector_01) {
  min-block-size: var(--nc-touch-target);
}

:where(
  .auth-button--primary,
  .guest-auth-action--primary,
  .proceed-to-book,
  .book-next-session,
  .wallet-top-up-submit,
  .payment-primary-btn,
  .admin-login-submit,
  .done-primary-btn,
  .host-primary-btn,
  .player-primary-btn,
  .result-primary-btn,
  .tool-button,
  .save,
  .export-button,
  .book-now-btn,
  .cafe-book-button,
  .venue-booking-card__footer button,
  .availability-card a,
  .fp-card-action,
  .fp-join-button,
  .wallet-inline-topup__submit,
  .npp-action--primary,
  .add-money
) {
  min-block-size: var(--nc-control-height) !important;
  border: 0 !important;
  border-radius: var(--nc-radius-pill) !important;
  background: var(--nc-brand) !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: var(--nc-type-control) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}

:where(
  .auth-button--outline,
  .auth-button--secondary,
  .guest-auth-action--guest,
  .guest-auth-action--create,
  .payment-secondary-btn,
  .done-secondary-btn,
  .host-secondary-btn,
  .player-secondary-btn,
  .result-secondary-btn,
  .profile-logged-out__button--outline,
  .profile-logged-out__button--ghost,
  .view-booking,
  .npp-action--secondary
) {
  min-block-size: var(--nc-control-height) !important;
  border: 1px solid var(--nc-border-strong) !important;
  border-radius: var(--nc-radius-pill) !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--nc-text) !important;
  font-size: var(--nc-type-control) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}

:where(button, [role="button"]):active:not(:disabled):not([aria-disabled="true"]) {
  transform: scale(0.98);
}

:where(
  .auth-button--primary,
  .guest-auth-action--primary,
  .proceed-to-book,
  .book-next-session,
  .wallet-top-up-submit,
  .payment-primary-btn,
  .admin-login-submit,
  .tool-button,
  .save,
  .export-button,
  .book-now-btn,
  .cafe-book-button,
  .venue-booking-card__footer button,
  .availability-card a,
  .fp-card-action,
  .fp-join-button,
  .wallet-inline-topup__submit,
  .npp-action--primary
):active:not(:disabled) {
  background: var(--nc-brand-pressed) !important;
}

:where(button, [role="button"], input, select, textarea):disabled,
:where(button, [role="button"])[aria-disabled="true"] {
  border-color: transparent !important;
  background-color: #303238 !important;
  color: #8a9099 !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

:where(button, a, [role="button"], input, select, textarea):focus-visible {
  outline: 2px solid var(--nc-focus) !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}

/* ── Field surfaces ──────────────────────────────────────────────────────────
   Only WRAPPER container classes get the painted border + background.
   Raw <input>/<select>/<textarea> elements are NEVER given a border here —
   they are already visually inside one of these containers, and painting
   both layers produces the nested double-box appearance.
   NOTE: .ep-field is a transparent list-row layout element, not a visual
   input box — it must not receive a border or background from this rule.
   ─────────────────────────────────────────────────────────────────────────── */
:where(
  .auth-field__bg,
  .tool-input,
  .value-box,
  .role-input,
  .members-search-control,
  .tool-search,
  .wallet-top-up-input,
  .wallet-inline-topup__custom,
  .invite-search,
  .search-bar,
  .cafe-search,
  .ig-search
) {
  border: 1px solid var(--nc-border) !important;
  border-radius: var(--nc-radius-xs) !important;
  background: var(--nc-surface-field) !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--nc-text) !important;
}

/* ── Inner input erasure ─────────────────────────────────────────────────────
   Any <input>/<select>/<textarea> that lives inside a styled wrapper must
   have NO border, NO background, and NO box-shadow of its own so that only
   the outer container's single rectangle is visible.
   This rule is intentionally broad — it covers every current and future
   composite field component as long as it uses one of the wrapper classes
   listed here. Standalone inputs (e.g. OTP cells that are themselves the
   visual box) are not matched because they have no wrapper parent from
   this list.
   ─────────────────────────────────────────────────────────────────────────── */
:where(
  .auth-field,
  .auth-field__bg,
  .ep-field,
  .tool-input,
  .value-box,
  .role-input,
  .members-search-control,
  .tool-search,
  .wallet-top-up-input,
  .wallet-inline-topup__custom,
  .invite-search,
  .search-bar,
  .cafe-search,
  .ig-search,
  .nc-inputbar__pill,
  .nc-search,
  .search-container,
  .search-background
) :where(input, select, textarea) {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  outline: 0 !important;
}

/* Same erasure in focus states — prevents the global focus-visible rule from
   drawing a second blue rectangle inside the wrapper's own focus border. */
:where(
  .auth-field,
  .auth-field__bg,
  .ep-field,
  .tool-input,
  .value-box,
  .role-input,
  .members-search-control,
  .tool-search,
  .wallet-top-up-input,
  .wallet-inline-topup__custom,
  .invite-search,
  .search-bar,
  .cafe-search,
  .ig-search,
  .nc-inputbar__pill,
  .nc-search,
  .search-container,
  .search-background
) :where(input, select, textarea):is(:focus, :focus-visible, :focus-within) {
  border: 0 !important;
  outline: 0 !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
}

:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select) {
  min-block-size: var(--nc-control-height);
}

:where(textarea) {
  min-block-size: 96px;
  resize: vertical;
}

:where(input, textarea)::placeholder {
  color: var(--nc-text-faint) !important;
  opacity: 1 !important;
}

/* Focus ring on wrapper containers only — never on the raw input inside.
   NOTE: .auth-field has border:0 (layout wrapper); its focus ring is applied
   to .auth-field__bg via mobile-layout-fixes.css. .ep-field is a list row
   with no visible border so border-color on it is a no-op. */
:where(
  .tool-input,
  .value-box,
  .role-input,
  .members-search-control,
  .tool-search,
  .wallet-top-up-input,
  .wallet-inline-topup__custom,
  .cafe-search,
  .ig-search,
  .nc-search,
  .nc-inputbar__pill,
  .search-container
):focus-within {
  border-color: var(--nc-focus) !important;
  border-width: 2px !important;
  outline: 0 !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
}

/* Segmented controls, tabs, and chips */
:where(
  .filter-chip,
  .filter-tab,
  .wallet-inline-chip,
  .ig-filter-chip,
  .setup-category-button,
  .analytics-tabs button,
  .cp-screen-btn,
  .date-navigation button,
  [role="tab"]
) {
  min-block-size: 40px;
  min-inline-size: 44px;
  border: 1px solid var(--nc-border) !important;
  border-radius: var(--nc-radius-pill) !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--nc-text-muted) !important;
  font-size: var(--nc-type-support) !important;
  font-weight: 700 !important;
}

:where(
  .filter-chip.is-active,
  .filter-tab.is-active,
  .wallet-inline-chip.is-selected,
  .ig-filter-chip.is-active,
  .ig-filter-chip.active,
  .setup-category-button.is-active,
  .analytics-tabs .is-active,
  .cp-screen-btn.is-active,
  [role="tab"][aria-selected="true"]
) {
  border-color: var(--nc-brand) !important;
  background: var(--nc-brand) !important;
  color: #fff !important;
}

/* Shared surfaces */
:where(
  .summary-card,
  .booking-card,
  .booking-details-card,
  .booking-process-card,
  .team-card,
  .reason-card,
  .notice-card,
  .done-notice-card,
  .tool-card,
  .chart-card,
  .analytics-wide-card,
  .rank-card,
  .pricing-panel,
  .permission-card,
  .tool-list-shell,
  .members-table,
  .profile-logged-out__card,
  .screen-card,
  .availability-card,
  .member-billing-card,
  .npp-hero,
  .npp-stats,
  .npp-section,
  .cafe-hero,
  .cafe-hours-card,
  .setup-option-card,
  .venue-booking-card,
  .wallet-inline-topup,
  .fp-team-card,
  .cafe-card,
  .cafe-directions-card,
  .availability-date-card,
  .settings-row
) {
  border: 1px solid var(--nc-border) !important;
  border-radius: var(--nc-radius-md) !important;
  background: var(--nc-surface) !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* A component may contain legacy Figma background layers for geometry, but
   only the component root is allowed to paint a card surface. */
:where(
  .fp-team-card,
  .venue-booking-card,
  .wallet-inline-topup,
  .summary-card,
  .booking-card,
  .settings-row
) > :where([class^="background"], [class*=" background"], .fp-event-background) {
  border: 0 !important;
  box-shadow: none !important;
}

:where(.summary-row, .booking-details-row, .tool-table-header, .members-table-header, .team-list > *, .tool-list > *, .settings-row, .ig-conversation-row) {
  border-color: rgba(245, 247, 250, 0.12) !important;
}

/* Chrome: preserve the original Nitro information architecture and colours */
:where(
  .nitro-shared-main-header .header-top-bar,
  .nitro-shared-back-header .header-top-bar,
  .auth-header .header-top-bar,
  .auth-header .top-bar,
  .nc-chat-header,
  .nc-thread-header,
  .npp-header
) {
  background: var(--nc-chrome) !important;
  background-image: none !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(245, 247, 250, 0.10) !important;
  border-radius: 0 0 var(--nc-radius-lg) var(--nc-radius-lg) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

:where([data-nitro-header] .notification-icon, [data-nitro-header] .vector_01, [data-nitro-header] .back-icon, .nc-chat-header button, .nc-thread-header button, .npp-header button) {
  min-inline-size: var(--nc-touch-target) !important;
  min-block-size: var(--nc-touch-target) !important;
  border-radius: var(--nc-radius-pill) !important;
  box-shadow: none !important;
}

.app-bottom-nav .navbar-container,
.app-shell > .app-bottom-nav .navbar-container {
  background: var(--nc-chrome) !important;
  background-image: none !important;
  border: 0 !important;
  border-top: 1px solid rgba(245, 247, 250, 0.10) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.app-bottom-nav .navbar-banner-background,
.app-shell > .app-bottom-nav .navbar-banner-background {
  background-color: #121212 !important;
  background-image: linear-gradient(180deg, #1C1C1C 0%, #181818 32%, #141414 63%, #121212 100%) !important;
  box-shadow: none !important;
}

.app-bottom-nav .active-bar,
.app-shell > .app-bottom-nav .active-bar,
.app-bottom-nav .active-bar::before,
.app-shell > .app-bottom-nav .active-bar::before {
  filter: none !important;
  box-shadow: none !important;
}

.app-bottom-nav .active-bar::before,
.app-shell > .app-bottom-nav .active-bar::before {
  background: transparent !important;
}

.app-bottom-nav .active-bar::after,
.app-shell > .app-bottom-nav .active-bar::after {
  background: #fff !important;
  box-shadow: none !important;
}

.app-bottom-nav .nav-icon-btn:not([aria-current="page"]) {
  opacity: 0.62 !important;
}

.app-bottom-nav .nav-icon-btn[aria-current="page"] {
  opacity: 1 !important;
}

.app-bottom-nav .homelabel_span,
.app-bottom-nav .navbar-active-label,
.app-bottom-nav .navbar-label {
  color: var(--nc-text) !important;
  font-size: var(--nc-type-caption) !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

/* Messaging uses the same surface/blue rules without losing its WhatsApp-like geometry. */
body[data-page="chat"],
body[data-page="chat-conversation"],
.nc-chat-shell {
  background: var(--nc-black) !important;
  color: var(--nc-text) !important;
}

body[data-page="chat"] :where(.ig-search, .ig-filter, .ig-conversation-row),
body[data-page="chat-conversation"] :where(.nc-composer, .nc-share-sheet) {
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body[data-page="chat-conversation"] .nc-bubble--sent {
  background: #1f2024 !important;
  color: var(--nc-text) !important;
}

body[data-page="chat-conversation"] .nc-bubble--received {
  background: var(--nc-surface-raised) !important;
  color: var(--nc-text) !important;
}

body[data-page="chat-conversation"] :where(.nc-bubble--sent, .nc-bubble--received) {
  border: 1px solid var(--nc-border) !important;
  box-shadow: none !important;
  filter: none !important;
}

body[data-page="chat"] .nc-chat-header__inner,
body[data-page="chat-conversation"] :where(.nc-datestamp, .nc-inputbar) {
  box-shadow: none !important;
}

body[data-page="chat"] .nc-chat-header__inner,
body[data-page="chat-conversation"] .nc-thread-header {
  background: var(--nc-chrome) !important;
  background-image: none !important;
  border-block-end: 1px solid rgba(245, 247, 250, 0.10) !important;
  border-radius: 0 0 var(--nc-radius-lg) var(--nc-radius-lg) !important;
}

body[data-page="chat-conversation"] :where(.nc-messages, .nc-typing, .nc-inputbar) {
  background: var(--nc-black) !important;
  background-image: none !important;
}

body[data-page="chat-conversation"] .nc-msg-row--tail .nc-bubble--sent::after {
  background: #1f2024 !important;
}

body[data-page="chat-conversation"] .nc-msg-row--tail .nc-bubble--received::after {
  background: var(--nc-surface-raised) !important;
}

body[data-page="chat"] :where(.ig-search__input, .nc-search__input):is(:focus, :focus-visible),
body[data-page="chat-conversation"] .nc-inputbar__textarea:is(:focus, :focus-visible) {
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  outline-offset: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Composite messaging search: the wrapper is the only painted surface.
   Keep the input transparent in every state, matching Find Players. */
html body[data-page="chat"] :where(.ig-search, .nc-search) {
  min-block-size: 48px !important;
  padding-inline: 14px !important;
  border: 1px solid var(--nc-border-strong) !important;
  border-radius: var(--nc-radius-md) !important;
  background: var(--nc-surface-field) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html body[data-page="chat"] :where(.ig-search__input, .nc-search__input),
html body[data-page="chat"] :where(.ig-search__input, .nc-search__input):is(:hover, :focus, :focus-visible) {
  inline-size: auto !important;
  min-inline-size: 0 !important;
  block-size: auto !important;
  min-block-size: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  outline-offset: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

body[data-page="chat"] :where(.ig-search, .nc-search):focus-within,
body[data-page="chat-conversation"] .nc-inputbar__pill:focus-within {
  border-color: var(--nc-brand-strong) !important;
  outline: 0 !important;
  box-shadow: none !important;
}

body[data-page="chat-conversation"] .nc-inputbar__textarea {
  min-block-size: var(--nc-touch-target) !important;
}

/* Composite message field: the rounded pill owns the entire visible control.
   The textarea never paints a second rectangle inside it. */
html body[data-page="chat-conversation"] .nc-inputbar__pill {
  min-block-size: 48px !important;
  border: 1px solid var(--nc-border-strong) !important;
  border-radius: var(--nc-radius-pill) !important;
  background: var(--nc-surface-field) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html body[data-page="chat-conversation"] .nc-inputbar__textarea,
html body[data-page="chat-conversation"] .nc-inputbar__textarea:is(:hover, :focus, :focus-visible) {
  inline-size: auto !important;
  min-inline-size: 0 !important;
  block-size: auto !important;
  min-block-size: 34px !important;
  padding: 7px 0 5px !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  outline-offset: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

html body[data-page="chat-conversation"] .nc-inputbar__pill:focus-within {
  border-color: var(--nc-brand-strong) !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* Dialogs and overlays stay readable without glass or cinematic lighting. */
:where([role="dialog"], .modal, .dialog, .invite-overlay-panel, .fp-invite-overlay-panel, .nc-share-sheet) {
  border: 1px solid var(--nc-border) !important;
  border-radius: var(--nc-radius-lg) !important;
  background: var(--nc-surface) !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html #nii-root,
:where(.modal-backdrop, .dialog-backdrop, .sheet-backdrop) {
  background: rgba(0, 0, 0, 0.72) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html #nii-root .nii-panel {
  border: 1px solid var(--nc-border) !important;
  border-radius: var(--nc-radius-lg) !important;
  background: var(--nc-surface) !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Notification states use the same flat system as the rest of the product. */
body[data-page="notification"] :where(.notifications-page, .notification-lock__background) {
  background: var(--nc-black) !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body[data-page="notification"] .app-header {
  display: block !important;
  visibility: visible !important;
  z-index: 5000 !important;
}

body[data-page="notification"] .app-content--full:has(.notifications-page.is-locked) {
  padding-top: 60px !important;
}

body[data-page="notification"] .notifications-page.is-locked {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  inline-size: 100% !important;
  block-size: calc(var(--nc-screen-height, 100dvh) - 60px) !important;
  min-block-size: calc(var(--nc-screen-height, 100dvh) - 60px) !important;
}

body[data-page="notification"] .notification-lock__background::before {
  content: none !important;
}

body[data-page="notification"] .notification-empty__icon {
  inline-size: 88px !important;
  block-size: 88px !important;
  border: 1px solid var(--nc-border) !important;
  border-radius: var(--nc-radius-pill) !important;
  background: var(--nc-surface) !important;
  background-image: none !important;
}

body[data-page="notification"] .notification-empty__title {
  font-size: var(--nc-type-section) !important;
  line-height: 1.25 !important;
}

body[data-page="notification"] .notification-empty__message {
  max-inline-size: 30ch;
  color: var(--nc-text-muted) !important;
  font-size: var(--nc-type-support) !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}

/* Admin and business surfaces share the same foundations at a wider density. */
:where(.admin-navbar, .admin-sidebar, .admin-topbar, .business-header) {
  border-color: var(--nc-border) !important;
  background: var(--nc-chrome) !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

:where(.admin-shell, .admin-tool-page, .admin-fixed-canvas, .admin-members-page, .notifications-page, .tool-main, .members-main, body:has(.business-header)) {
  background: var(--nc-black) !important;
  color: var(--nc-text) !important;
}

body:has(.business-header) :where(.trust-card, .registration, fieldset, .provider-notice, .location-map, .location-search-results) {
  border-color: var(--nc-border) !important;
  border-radius: var(--nc-radius-md) !important;
  background: var(--nc-surface) !important;
  background-image: none !important;
  box-shadow: none !important;
}

:where(.members-table-wrap, .tool-table-wrap, .admin-table-wrap) {
  max-inline-size: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

/* Eliminate remaining decorative lighting while preserving functional icon tint. */
:where(
  .app-shell,
  .page-shell,
  .auth-page,
  .bill-page,
  .payment-done-shell,
  .host-result-shell,
  .player-result-shell,
  .result-shell,
  .home-booking-card,
  .logic-card,
  .game-card,
  .loyalty-slot,
  .payment-result-icon
) {
  box-shadow: none !important;
}

:where(.game-card, .loyalty-slot.is-current, .method-check, [aria-pressed="true"] > .method-check) {
  box-shadow: none !important;
}

/* Final effect cleanup: depth comes from solid surfaces and borders only. */
:where(.active-bar, .cafe-card__distance) {
  filter: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body[data-page="find-players"] .fp-team-card,
html body[data-page="find-players"] .fp-event-background,
html body[data-page="find-players"] .fp-event-image,
html body[data-page="find-players"] .fp-player-slot,
html body[data-page="find-players"] .fp-team-kind,
html body[data-page="find-players"] .fp-event-time::before {
  filter: none !important;
  box-shadow: none !important;
}

html body[data-page="find-players"] .fp-event-background {
  background: var(--nc-surface) !important;
  background-image: none !important;
}

html body[data-page="find-players"] .fp-event-background::before {
  content: none !important;
}

body[data-page="find-players"] .search-container,
body[data-page="find-players"] .search-background {
  border-radius: var(--nc-radius-xs) !important;
  background: var(--nc-surface-field) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html body[data-page="find-players"] .fp-card-action {
  block-size: var(--nc-control-height) !important;
  min-block-size: var(--nc-control-height) !important;
}

body[data-page="find-players"] :where(.search-icon, .create-team-icon) img {
  filter: none !important;
}

body[data-page="wallet"] :where(.wallet-add-money, .free) {
  filter: none !important;
}

body[data-page="wallet"] .loyalty-slot-grid,
html body[data-page="profile"] .a-way-out,
html body[data-page="profile"] .fifa-2026,
html body[data-page="profile"] .asphalt-legends,
html body[data-page="profile"] .wwe-2k25 {
  box-shadow: none !important;
}

body[data-page="booking-process"] :where(
  .players-details,
  .hours,
  .date,
  .time,
  .games,
  .screen,
  .date-time
) {
  filter: none !important;
}

body:has(.business-header) :where(.brand-mark, .brand) {
  box-shadow: none !important;
  filter: none !important;
}

body:has(.business-header) .brand {
  min-block-size: var(--nc-touch-target);
  display: inline-flex;
  align-items: center;
}

@media (hover: hover) and (pointer: fine) {
  :where(
    .auth-button--primary,
    .guest-auth-action--primary,
    .proceed-to-book,
    .book-next-session,
    .wallet-top-up-submit,
    .payment-primary-btn,
    .admin-login-submit,
    .tool-button,
    .save,
    .export-button,
    .book-now-btn,
    .cafe-book-button,
    .venue-booking-card__footer button,
    .availability-card a,
    .fp-card-action,
    .wallet-inline-topup__submit,
    .fp-join-button
  ):hover:not(:disabled) {
    background: var(--nc-brand-pressed) !important;
  }

}

@media (max-width: 350px) {
  :root {
    --nc-layout-gutter: 16px;
    --nc-layout-edge-gap: 16px;
    --nc-type-title: 1.625rem;
    --nc-type-section: 1.25rem;
  }
}

@media (min-width: 768px) {
  :root {
    --nc-business-gutter: clamp(24px, 4vw, 32px);
  }

  .app-shell,
  .page-shell,
  .auth-page,
  body[data-payment-result] :where(.payment-done-shell, .host-result-shell, .player-result-shell, .result-shell) {
    border-inline: 0;
    box-shadow: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Responsive canvas finalization must remain the last visual layer. */
@media (min-width: 48rem) {
  html[data-nitro-system="2026-08-sitewide"] {
    --nc-desktop-screen-cap: 1180px;
    --nc-layout-gutter: clamp(24px, 3vw, 36px);
    --nc-layout-edge-gap: clamp(20px, 2.4vw, 30px);
  }

  html[data-nitro-system="2026-08-sitewide"] :where(
    .app-shell,
    .app-header,
    [data-nitro-header],
    .app-content,
    .app-content--full
  ) {
    inline-size: min(100vw, var(--nc-desktop-screen-cap)) !important;
    max-inline-size: var(--nc-desktop-screen-cap) !important;
  }

  html[data-nitro-system="2026-08-sitewide"] body[data-page="home"] :where(
    .app-header,
    [data-nitro-header],
    .app-bottom-nav,
    .app-bottom-nav .navigation-bar
  ) {
    inline-size: min(calc(100vw - 48px), 60rem) !important;
    max-inline-size: 60rem !important;
  }

  html[data-nitro-system="2026-08-sitewide"] body[data-page="home"] :where(.app-header, [data-nitro-header]) {
    --nitro-header-side: 11px;
  }

  html[data-nitro-system="2026-08-sitewide"] body[data-page="home"] .app-bottom-nav {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  html[data-nitro-system="2026-08-sitewide"] body[data-page="home"] .home--cafe-first,
  html[data-nitro-system="2026-08-sitewide"] body[data-page="home"] .cafe-directory {
    inline-size: min(calc(100% - 48px), 60rem) !important;
    margin-inline: auto !important;
  }

  html[data-nitro-system="2026-08-sitewide"] body[data-page="home"] .cafe-directory__grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)) !important;
    gap: 18px !important;
  }

  html[data-nitro-system="2026-08-sitewide"] body[data-page="find-players"] .find-players {
    inline-size: min(calc(100% - 48px), 71rem) !important;
    min-block-size: 100% !important;
    block-size: auto !important;
    margin-inline: auto !important;
    padding-block: 20px 120px !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(354px, 1fr)) !important;
    align-content: start !important;
    align-items: start !important;
    gap: 18px 12px !important;
  }

  html[data-nitro-system="2026-08-sitewide"] body[data-page="find-players"] .find-players > :where(
    .search-container,
    .create-container,
    .fp-team-card
  ) {
    position: relative !important;
    inset: auto !important;
    margin: 0 !important;
  }

  html[data-nitro-system="2026-08-sitewide"] body[data-page="find-players"] .find-players > :where(
    .search-container,
    .create-container
  ) {
    inline-size: 100% !important;
    block-size: 52px !important;
    order: -1;
  }

  html[data-nitro-system="2026-08-sitewide"] body[data-page="find-players"] .find-players > .fp-team-card {
    justify-self: center !important;
  }

  html[data-nitro-system="2026-08-sitewide"] body[data-page="find-players"] .find-players-empty-state {
    position: relative !important;
    grid-column: 1 / -1;
  }

  html[data-nitro-system="2026-08-sitewide"] body[data-page="chat"] .nc-chat-shell,
  html[data-nitro-system="2026-08-sitewide"] body[data-page="chat-conversation"] .nc-chat-shell {
    inline-size: min(100vw, 720px) !important;
    max-inline-size: 720px !important;
  }

  html[data-nitro-system="2026-08-sitewide"] .location-picker__panel {
    inline-size: min(calc(100vw - 48px), 32rem) !important;
  }
}

@media (min-width: 68rem) {
  html[data-nitro-system="2026-08-sitewide"] body[data-page="find-players"] .find-players > .search-container {
    grid-column: span 2;
  }
}
