/* =========================================================
   RHAPSODY PRODUCTION PLATFORM
   Shell Global CSS v2.4 — livrat din PLUGIN (mutat din Bricks)
   BethanyDev · v0.6.37: după instalare, ȘTERGE Global CSS din Bricks
   (regulile sunt identice; dublura e inofensivă dar inutilă)

   IMPORTANT:
   - Bricks owns only the site shell: body background, header, footer,
     generic static page shell, wrapper resets and the application layout anchor.
   - The custom plugin owns all .rpp-* application UI and typography.
   - The only allowed .rpp-* selector here is .rpp-app as a layout anchor.
   - Do not add application typography or component styling back into Bricks Global CSS.
   ========================================================= */

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */
:root {
  --rhy-layout-max: 1600px;
  /* v0.7.1 safe-area: în landscape pe iPhone (viewport-fit=cover) marginile laterale
     nu au voie să intre sub „urechile” ecranului — padding-ul exterior crește la nevoie. */
  --rhy-outer-pad: max(clamp(1rem, 3.1vw, 4rem), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --rhy-inner-pad: clamp(1.1rem, 2vw, 2.35rem);
  /* Inset-ul de sus (notch/status bar) — 0 pe desktop și în browserul mobil obișnuit,
     ~59px în PWA standalone pe iPhone cu notch. Purtat de padding-ul header-ului. */
  --rhy-safe-top: env(safe-area-inset-top, 0px);

  --rhy-shell-bg: #edf3ff;
  --rhy-shell-panel: rgba(17, 22, 33, 0.96);
  --rhy-shell-border: rgba(203, 214, 255, 0.12);
  --rhy-shell-border-strong: rgba(203, 214, 255, 0.2);
  --rhy-shell-text: #f7f8fd;
  --rhy-shell-text-soft: #b8c1d2;
  --rhy-shell-text-muted: #8792a7;
  --rhy-shell-success: #72d99c;
  --rhy-shell-danger: #ff9da6;

  --rhy-radius-xl: clamp(1.55rem, 1.35rem + 0.35vw, 2.05rem);
  --rhy-radius-2xl: clamp(1.9rem, 1.55rem + 0.55vw, 2.55rem);

  --rhy-shadow-shell: 0 1.15rem 3.4rem rgba(0, 0, 0, 0.18), 0 0.2rem 0.8rem rgba(0, 0, 0, 0.08);
}

/* =========================================================
   2. BASE RESET + STATIC PREMIUM BACKGROUND
   ========================================================= */
html {
  max-width: 100%;
}
/* Weekful 0.1.1: paginile platformei (html.rpp-page: aplicația și ecranele contului, șablonul propriu din RPP_Pages) au
   fundalul sistemului de design (--bd-bg, 41-auth-legacy.css); fundalul vechi al site-ului rămâne pe restul paginilor. */
html:not(.rpp-page) {
  background: var(--rhy-shell-bg) !important;
}

body {
  position: relative;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  padding-bottom: env(
    safe-area-inset-bottom,
    0px
  ); /* v0.7.1: footer-ul nu intră sub bara home a iPhone-ului în standalone */
  overflow-x: hidden;
  color: var(--rhy-shell-text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html:not(.rpp-page) body {
  background:
    radial-gradient(circle at 14% 5%, rgba(118, 150, 255, 0.16), transparent 34rem),
    radial-gradient(circle at 88% 9%, rgba(157, 205, 255, 0.16), transparent 36rem),
    radial-gradient(circle at 72% 86%, rgba(190, 162, 255, 0.09), transparent 38rem),
    linear-gradient(135deg, #eef4ff 0%, #f7faff 36%, #f1f6ff 68%, #eef7ff 100%) !important;
  background-attachment: fixed !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

/* Bricks page wrappers stay transparent. */
#brx-content,
#brx-main,
main,
.brx-body {
  position: relative;
  min-height: 100%;
  background: transparent !important;
}

/* =========================================================
   3. BRICKS HEADER / FOOTER WRAPPER RESET
   ========================================================= */
#brx-header,
#brx-header > *,
#brx-header .brxe-section,
#brx-header .brxe-container,
#brx-header .brxe-code,
#brx-header header,
#brx-header header::before,
#brx-header header::after,
#brx-footer,
#brx-footer > *,
#brx-footer .brxe-section,
#brx-footer .brxe-container,
#brx-footer .brxe-code {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Bricks wrappers must not clip the desktop account dropdown. */
#brx-header,
#brx-header > *,
#brx-header .brxe-section,
#brx-header .brxe-container,
#brx-header .brxe-code,
#brx-header header {
  overflow: visible !important;
}

#brx-header::before,
#brx-header::after,
#brx-header .brxe-section::before,
#brx-header .brxe-section::after,
#brx-header .brxe-container::before,
#brx-header .brxe-container::after,
#brx-header .brxe-code::before,
#brx-header .brxe-code::after {
  display: none !important;
  content: none !important;
}

#brx-header .brxe-section,
#brx-header .brxe-container,
#brx-header .brxe-code,
#brx-footer .brxe-section,
#brx-footer .brxe-container,
#brx-footer .brxe-code {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* =========================================================
   4. SHARED SHELL WIDTH
   ========================================================= */
.rhy-container,
.rhy-mobile-menu,
.rhy-footer,
.rhy-page,
.rpp-app {
  width: min(calc(100% - (var(--rhy-outer-pad) * 2)), var(--rhy-layout-max));
  margin-inline: auto;
}

.rpp-app {
  margin-top: clamp(0.82rem, 1vw, 1.1rem) !important;
  margin-bottom: clamp(1.5rem, 2.2vw, 2.4rem) !important;
}

/* =========================================================
   5. FLOATING HEADER
   ========================================================= */
.rhy-header,
.rhy-header * {
  box-sizing: border-box;
}

/* v0.7.1: status bar-ul iOS în modul black-translucent are text ALB — pe tema light,
   fundalul deschis l-ar face ilizibil (ceas/baterie invizibile). Pictăm DOAR fâșia de
   inset cu un scrim închis, pe ambele teme, deasupra oricărui overlay (pointer-events
   none — nu blochează nimic). Pe desktop/Android fără insets are înălțime 0 = invizibil.
   NB: pseudo-elementele header-ului sunt anulate de reset-ul #brx-header (secțiunea 3),
   de aceea scrim-ul stă pe html::before. */
html::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--rhy-safe-top, 0px);
  background: rgba(13, 18, 31, 0.93);
  z-index: 2147483600;
  pointer-events: none;
}

/* v0.7.1 FIX NOTCH iPHONE (PWA standalone): header-ul e sticky la top:0, iar cu
   viewport-fit=cover conținutul se întinde sub notch/status bar — padding-ul de sus
   include env(safe-area-inset-top) în AMBELE stări (normal + is-scrolled; padding-ul
   e tranziționat, deci fără termenul env() în ambele reguli pill-ul ar „sări”). */
.rhy-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  padding-top: calc(clamp(0.8rem, 1.2vw, 1.35rem) + var(--rhy-safe-top, 0px));
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transition: padding-top 220ms ease;
}

body.admin-bar .rhy-header {
  top: 32px;
}
.rhy-header.is-scrolled {
  padding-top: calc(clamp(0.52rem, 0.7vw, 0.76rem) + var(--rhy-safe-top, 0px));
}

.rhy-container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(22rem, 1fr) auto minmax(22rem, 1fr);
  align-items: center;
  gap: clamp(1rem, 1.75vw, 2.9rem);
  min-height: clamp(7rem, 6.45rem + 0.8vw, 8.35rem);
  padding-inline: clamp(1.35rem, 2.05vw, 2.75rem);
  overflow: visible !important;
  border: 0 !important;
  border-radius: var(--rhy-radius-xl);
  background: linear-gradient(135deg, rgba(24, 30, 45, 0.975), rgba(11, 15, 25, 0.96)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(211, 220, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 1.15rem 3rem rgba(45, 63, 108, 0.18),
    0 0.15rem 0.5rem rgba(22, 34, 63, 0.1) !important;
  transition:
    min-height 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.rhy-header.is-scrolled .rhy-container {
  min-height: clamp(6.15rem, 5.75rem + 0.62vw, 7.05rem);
  background: linear-gradient(135deg, rgba(18, 23, 35, 0.99), rgba(8, 11, 18, 0.985)) !important;
}

/* =========================================================
   6. HEADER BRAND
   ========================================================= */
.rhy-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: clamp(0.88rem, 0.72rem + 0.26vw, 1.22rem);
  color: var(--rhy-shell-text);
}

.rhy-brand-mark,
.rhy-footer-mark {
  display: grid;
  grid-template-columns: repeat(3, clamp(0.5rem, 0.44rem + 0.09vw, 0.63rem));
  align-items: end;
  gap: clamp(0.24rem, 0.2rem + 0.05vw, 0.31rem);
  width: clamp(2.05rem, 1.88rem + 0.28vw, 2.42rem);
  height: clamp(2.38rem, 2.18rem + 0.34vw, 2.82rem);
  padding: clamp(0.17rem, 0.15rem + 0.03vw, 0.21rem);
  overflow: hidden;
  border-radius: clamp(0.7rem, 0.62rem + 0.12vw, 0.85rem);
  background: linear-gradient(145deg, rgba(201, 212, 255, 0.23), rgba(145, 169, 255, 0.055));
  box-shadow:
    inset 0 0 0 1px rgba(201, 212, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0.65rem 1.55rem rgba(67, 91, 181, 0.22);
}

.rhy-brand-mark span,
.rhy-footer-mark span {
  display: block;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef2ff, #8ea6ff);
  box-shadow: 0 0 1rem rgba(145, 169, 255, 0.4);
}

.rhy-brand-mark span:nth-child(1),
.rhy-footer-mark span:nth-child(1) {
  height: 56%;
}
.rhy-brand-mark span:nth-child(2),
.rhy-footer-mark span:nth-child(2) {
  height: 93%;
}
.rhy-brand-mark span:nth-child(3),
.rhy-footer-mark span:nth-child(3) {
  height: 72%;
}

.rhy-brand-copy,
.rhy-footer-brand-copy {
  display: grid;
  gap: 0.22rem;
  line-height: 1;
}

.rhy-brand-copy strong,
.rhy-footer-brand-copy strong {
  color: var(--rhy-shell-text);
  font-size: clamp(1.28rem, 1.04rem + 0.38vw, 1.78rem);
  font-weight: 800;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.rhy-brand-copy small,
.rhy-footer-brand-copy small {
  color: var(--rhy-shell-text-muted);
  font-size: clamp(0.8rem, 0.7rem + 0.16vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* =========================================================
   7. HEADER NAVIGATION + ACTIONS
   ========================================================= */
.rhy-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: clamp(0.36rem, 0.24rem + 0.17vw, 0.58rem);
  padding: clamp(0.31rem, 0.25rem + 0.08vw, 0.42rem);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.rhy-nav-link,
.rhy-button,
.rhy-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.rhy-nav-link {
  gap: clamp(0.62rem, 0.53rem + 0.13vw, 0.8rem);
  min-height: clamp(3.35rem, 3.05rem + 0.42vw, 3.95rem);
  padding: clamp(0.86rem, 0.72rem + 0.18vw, 1.08rem) clamp(1.16rem, 0.95rem + 0.32vw, 1.62rem);
  color: rgba(225, 230, 242, 0.76);
  font-size: clamp(1.08rem, 0.94rem + 0.2vw, 1.34rem);
  font-weight: 720;
}

.rhy-nav-link:hover,
.rhy-nav-link.is-active {
  color: #f7f9ff;
  transform: translateY(-1px);
}

.rhy-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
}
.rhy-nav-link.is-active {
  background: linear-gradient(135deg, rgba(129, 155, 255, 0.33), rgba(98, 123, 219, 0.18));
  box-shadow:
    inset 0 0 0 1px rgba(176, 194, 255, 0.31),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0.55rem 1.4rem rgba(65, 89, 184, 0.2);
}

.rhy-nav-icon,
.rhy-admin-icon,
.rhy-dropdown-icon,
.rhy-chevron {
  display: inline-flex;
  width: clamp(1.42rem, 1.28rem + 0.2vw, 1.7rem);
  height: clamp(1.42rem, 1.28rem + 0.2vw, 1.7rem);
  flex: 0 0 auto;
}

.rhy-nav-icon svg,
.rhy-admin-icon svg,
.rhy-dropdown-icon svg,
.rhy-chevron svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rhy-actions,
.rhy-guest-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: clamp(0.68rem, 0.52rem + 0.21vw, 0.98rem);
  overflow: visible !important;
}

.rhy-button {
  min-height: clamp(3.4rem, 3.15rem + 0.35vw, 3.9rem);
  padding: clamp(0.92rem, 0.82rem + 0.15vw, 1.08rem) clamp(1.35rem, 1.16rem + 0.28vw, 1.7rem);
  font-size: clamp(1rem, 0.92rem + 0.14vw, 1.18rem);
  font-weight: 760;
  line-height: 1;
}

.rhy-button:hover {
  transform: translateY(-2px);
}
.rhy-button-ghost {
  background: rgba(255, 255, 255, 0.045);
  color: var(--rhy-shell-text-soft);
  box-shadow: inset 0 0 0 1px var(--rhy-shell-border);
}
.rhy-button-primary {
  background: linear-gradient(135deg, #a4b6ff, #748ff6);
  color: #0a1024;
  box-shadow:
    inset 0 0 0 1px rgba(216, 224, 255, 0.36),
    0 0.7rem 1.85rem rgba(98, 126, 239, 0.27);
}

.rhy-admin {
  gap: clamp(0.56rem, 0.46rem + 0.13vw, 0.72rem);
  padding: clamp(0.82rem, 0.72rem + 0.15vw, 0.98rem) clamp(1rem, 0.88rem + 0.18vw, 1.24rem);
  background: rgba(255, 255, 255, 0.045);
  color: var(--rhy-shell-text-soft);
  font-size: clamp(1rem, 0.91rem + 0.13vw, 1.16rem);
  font-weight: 730;
  box-shadow: inset 0 0 0 1px var(--rhy-shell-border);
}

/* =========================================================
   8. PROFILE MENU
   ========================================================= */
.rhy-profile {
  position: relative;
  overflow: visible !important;
  z-index: 10020;
}

.rhy-profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.76rem, 0.64rem + 0.16vw, 0.96rem);
  padding: clamp(0.46rem, 0.4rem + 0.08vw, 0.56rem) clamp(0.64rem, 0.56rem + 0.11vw, 0.76rem)
    clamp(0.46rem, 0.4rem + 0.08vw, 0.56rem) clamp(0.46rem, 0.4rem + 0.08vw, 0.56rem);
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--rhy-shell-text);
  box-shadow: inset 0 0 0 1px var(--rhy-shell-border);
  cursor: pointer;
}

.rhy-profile-trigger:hover,
.rhy-profile.is-open .rhy-profile-trigger {
  background: rgba(255, 255, 255, 0.085);
}

.rhy-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(3.15rem, 2.9rem + 0.34vw, 3.62rem);
  height: clamp(3.15rem, 2.9rem + 0.34vw, 3.62rem);
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(145, 169, 255, 0.34), rgba(89, 113, 210, 0.17)), rgba(255, 255, 255, 0.055);
  color: #e5eaff;
  font-size: clamp(0.96rem, 0.87rem + 0.13vw, 1.14rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: inset 0 0 0 1px rgba(201, 212, 255, 0.28);
}

.rhy-avatar-large {
  width: clamp(3.8rem, 3.52rem + 0.38vw, 4.32rem);
  height: clamp(3.8rem, 3.52rem + 0.38vw, 4.32rem);
  font-size: clamp(1.08rem, 0.98rem + 0.14vw, 1.27rem);
}

.rhy-identity,
.rhy-mobile-identity div,
.rhy-profile-menu-head div {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  text-align: left;
}

.rhy-identity strong,
.rhy-mobile-identity strong,
.rhy-profile-menu-head strong {
  overflow: hidden;
  max-width: 15rem;
  color: var(--rhy-shell-text);
  font-size: clamp(1.04rem, 0.94rem + 0.15vw, 1.24rem);
  font-weight: 770;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rhy-identity small,
.rhy-mobile-identity small,
.rhy-profile-menu-head small {
  color: var(--rhy-shell-text-muted);
  font-size: clamp(0.86rem, 0.78rem + 0.12vw, 1.02rem);
  font-weight: 670;
}

.rhy-chevron {
  color: var(--rhy-shell-text-muted);
  transition: transform 180ms ease;
}

.rhy-profile.is-open .rhy-chevron {
  transform: rotate(180deg);
}

.rhy-profile-menu {
  position: absolute;
  top: calc(100% + 1rem);
  right: 0;
  z-index: 10030;
  width: min(24rem, calc(100vw - 2rem));
  padding: clamp(1rem, 0.9rem + 0.15vw, 1.18rem);
  overflow: visible;
  visibility: hidden;
  border-radius: clamp(1.25rem, 1.1rem + 0.2vw, 1.5rem);
  background: rgba(14, 18, 28, 0.995);
  box-shadow:
    inset 0 0 0 1px var(--rhy-shell-border),
    var(--rhy-shadow-shell);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.5rem) scale(0.985);
  transform-origin: top right;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}

.rhy-profile.is-open .rhy-profile-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.rhy-profile-menu-head,
.rhy-mobile-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rhy-profile-divider {
  height: 1px;
  margin-block: 1rem;
  background: var(--rhy-shell-border);
}
.rhy-profile-menu-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: clamp(0.95rem, 0.86rem + 0.14vw, 1.12rem);
  border-radius: 0.95rem;
  color: var(--rhy-shell-text-soft);
  font-size: clamp(1rem, 0.91rem + 0.14vw, 1.18rem);
  font-weight: 710;
}
.rhy-profile-menu-link:hover {
  background: rgba(255, 255, 255, 0.075);
  color: var(--rhy-shell-text);
}

/* =========================================================
   9. MOBILE HEADER
   ========================================================= */
.rhy-mobile-toggle {
  display: none;
  width: 3.55rem;
  height: 3.55rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.34rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 0 1px var(--rhy-shell-border);
  cursor: pointer;
}
.rhy-mobile-toggle span {
  display: block;
  width: 1.32rem;
  height: 1px;
  background: var(--rhy-shell-text);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}
.rhy-mobile-toggle.is-open span:nth-child(1) {
  transform: translateY(0.41rem) rotate(45deg);
}
.rhy-mobile-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.rhy-mobile-toggle.is-open span:nth-child(3) {
  transform: translateY(-0.41rem) rotate(-45deg);
}
.rhy-mobile-menu {
  overflow: hidden;
  max-height: 0;
  margin-top: 0.5rem;
  border-radius: 1.35rem;
  background: rgba(7, 9, 16, 0.985);
  box-shadow:
    inset 0 0 0 1px transparent,
    0 0.9rem 2.4rem rgba(0, 0, 0, 0.18);
  transition:
    max-height 260ms ease,
    box-shadow 220ms ease;
}
.rhy-mobile-menu.is-open {
  max-height: 46rem;
  box-shadow:
    inset 0 0 0 1px var(--rhy-shell-border),
    0 0.9rem 2.4rem rgba(0, 0, 0, 0.18);
}
.rhy-mobile-menu-inner {
  display: grid;
  gap: 1.25rem;
  padding: 1.35rem var(--rhy-inner-pad) 1.55rem;
}
.rhy-mobile-nav {
  display: grid;
  gap: 0.48rem;
}
.rhy-mobile-link {
  padding: 1.08rem 1.1rem;
  border-radius: 0.98rem;
  color: var(--rhy-shell-text-soft);
  font-size: 1.08rem;
  font-weight: 710;
}
.rhy-mobile-link:hover,
.rhy-mobile-link.is-active {
  background: rgba(255, 255, 255, 0.07);
  color: var(--rhy-shell-text);
  box-shadow: inset 0 0 0 1px var(--rhy-shell-border);
}
.rhy-mobile-link-logout {
  color: var(--rhy-shell-danger);
}

/* =========================================================
   10. OPTIONAL GENERIC STATIC PAGE SHELL
   ========================================================= */
.rhy-page {
  min-height: 720px;
  margin-top: clamp(1rem, 1.45vw, 1.55rem);
  margin-bottom: clamp(1.5rem, 2.2vw, 2.4rem);
  padding: clamp(2.6rem, 4vw, 4.7rem) clamp(1.35rem, 2.5vw, 2.65rem) clamp(4rem, 5vw, 6.2rem);
  border-radius: var(--rhy-radius-2xl);
  background: linear-gradient(145deg, rgba(252, 253, 255, 0.93), rgba(244, 248, 255, 0.88));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.88),
    0 1.5rem 4rem rgba(72, 92, 141, 0.14);
  color: #142035;
  overflow: hidden;
}
.rhy-page-title {
  margin: 0;
  color: #142035;
  font-size: clamp(3rem, 2.35rem + 1.5vw, 4.45rem);
  font-weight: 840;
  letter-spacing: -0.05em;
  line-height: 0.98;
}
.rhy-page-subtitle {
  max-width: 58rem;
  margin: 1rem 0 0;
  color: #68758a;
  font-size: clamp(1.12rem, 1.02rem + 0.26vw, 1.35rem);
  line-height: 1.62;
}

/* =========================================================
   11. FOOTER
   ========================================================= */
.rhy-footer,
.rhy-footer * {
  box-sizing: border-box;
}
.rhy-footer {
  margin-top: clamp(1.4rem, 2vw, 2.2rem);
  margin-bottom: clamp(0.9rem, 1.3vw, 1.35rem);
  border: 0;
  border-radius: var(--rhy-radius-xl);
  background:
    radial-gradient(circle at 11% 0%, rgba(145, 169, 255, 0.13), transparent 25rem),
    linear-gradient(135deg, rgba(21, 27, 41, 0.975), rgba(9, 13, 22, 0.96)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(205, 215, 255, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 1.15rem 3.3rem rgba(53, 71, 115, 0.17) !important;
  overflow: hidden;
}
.rhy-footer-container,
.rhy-footer-bottom-container {
  width: 100%;
  padding-inline: clamp(1.35rem, 2.2vw, 2.4rem);
}
.rhy-footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.6rem;
  padding-block: clamp(2.7rem, 3.8vw, 4rem);
}
.rhy-footer-brand-area {
  display: grid;
  gap: 1.18rem;
}
.rhy-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  width: max-content;
  color: var(--rhy-shell-text);
}
.rhy-footer-mark {
  grid-template-columns: repeat(3, 0.47rem);
  gap: 0.24rem;
  width: 1.98rem;
  height: 2.27rem;
  padding: 0.17rem;
  border-radius: 0.68rem;
}
.rhy-footer-description {
  max-width: 50rem;
  margin: 0;
  color: var(--rhy-shell-text-muted);
  font-size: clamp(1rem, 0.95rem + 0.12vw, 1.1rem);
  line-height: 1.75;
}
.rhy-footer-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1.2rem, 2vw, 1.9rem);
  flex-wrap: wrap;
}
.rhy-footer-nav a {
  color: var(--rhy-shell-text-muted);
  font-size: 1.03rem;
  font-weight: 710;
}
.rhy-footer-nav a:hover {
  color: var(--rhy-shell-text);
}
.rhy-footer-bottom {
  background: rgba(255, 255, 255, 0.012);
  box-shadow: inset 0 1px 0 var(--rhy-shell-border);
}
.rhy-footer-bottom-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  min-height: 4.8rem;
  color: var(--rhy-shell-text-muted);
  font-size: 0.94rem;
}
.rhy-footer-powered {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.rhy-footer-powered strong {
  color: var(--rhy-shell-text-soft);
  font-weight: 800;
}
.rhy-footer-status {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--rhy-shell-success);
  box-shadow: 0 0 1rem rgba(119, 219, 161, 0.7);
}

/* =========================================================
   12. RESPONSIVE SHELL
   ========================================================= */
@media (max-width: 1500px) {
  .rhy-container {
    grid-template-columns: minmax(18rem, 1fr) auto minmax(18rem, 1fr);
  }
  .rhy-nav-link {
    padding-inline: clamp(1rem, 0.84rem + 0.2vw, 1.25rem);
  }
}

@media (max-width: 1320px) {
  .rhy-container {
    grid-template-columns: minmax(16.5rem, 1fr) auto minmax(16.5rem, 1fr);
  }
  .rhy-identity {
    display: none;
  }
}

@media (max-width: 1060px) {
  .rhy-nav-link {
    gap: 0.52rem;
    padding-inline: 0.98rem;
    font-size: 1.04rem;
  }
  .rhy-nav-icon {
    width: 1.34rem;
    height: 1.34rem;
  }
}

@media (max-width: 980px) {
  .rhy-header {
    padding-top: calc(0.72rem + var(--rhy-safe-top, 0px));
  }
  .rhy-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 6.1rem;
    border-radius: 1.4rem;
  }
  .rhy-nav,
  .rhy-admin,
  .rhy-profile {
    display: none;
  }
  .rhy-mobile-toggle {
    display: flex;
  }
}

@media (max-width: 782px) {
  body.admin-bar .rhy-header {
    top: 46px;
  }
}

@media (max-width: 680px) {
  :root {
    --rhy-outer-pad: max(0.75rem, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    --rhy-inner-pad: 1rem;
  }
  .rhy-header {
    padding-top: calc(0.7rem + var(--rhy-safe-top, 0px));
  }
  .rhy-container {
    min-height: 5.65rem;
    padding-inline: 1rem;
    border-radius: 1.22rem;
  }
  .rhy-brand {
    gap: 0.78rem;
  }
  .rhy-brand-mark {
    width: 1.82rem;
    height: 2.1rem;
    grid-template-columns: repeat(3, 0.43rem);
    gap: 0.22rem;
  }
  .rhy-brand-copy strong {
    font-size: 1.08rem;
  }
  .rhy-brand-copy small {
    font-size: 0.66rem;
  }
  .rhy-mobile-toggle {
    width: 3.1rem;
    height: 3.1rem;
  }
  .rhy-footer {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 1.35rem;
  }
  .rhy-footer-container {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1.15rem;
  }
  .rhy-footer-bottom-container {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.42rem;
    min-height: 4.5rem;
    padding: 0.95rem 1.15rem;
    font-size: 0.86rem;
  }
  .rhy-footer-description {
    font-size: 0.94rem;
  }
  .rhy-footer-nav {
    justify-content: flex-start;
    gap: 1rem;
  }
  .rhy-footer-nav a {
    font-size: 0.96rem;
  }
  .rpp-app {
    width: calc(100% - (var(--rhy-outer-pad) * 2));
    margin-top: 0.75rem !important;
  } /* v0.7.1: identic cu 1.5rem când insets=0, dar respectă urechile în landscape */
  .rhy-mobile-link {
    padding: 0.92rem 1rem;
    font-size: 1rem;
  }
  .rhy-theme-toggle-mobile {
    min-height: 2.95rem;
    padding: 0.82rem 0.95rem;
    font-size: 0.96rem;
  }
}

@media (max-width: 440px) {
  .rhy-brand-copy small {
    display: none;
  }
  .rhy-brand-copy strong {
    font-size: 1rem;
  }
}

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

/* =========================================================
   13. DARK SHELL BACKGROUND + MOBILE RAILS
   ========================================================= */
html[data-rpp-theme='dark']:not(.rpp-page) {
  background: #0b1321 !important;
}
html[data-rpp-theme='dark']:not(.rpp-page) body {
  background:
    radial-gradient(circle at 14% 5%, rgba(77, 108, 210, 0.18), transparent 34rem),
    radial-gradient(circle at 88% 9%, rgba(63, 141, 177, 0.12), transparent 36rem),
    radial-gradient(circle at 72% 86%, rgba(118, 88, 180, 0.09), transparent 38rem),
    linear-gradient(135deg, #0c1321 0%, #121c2e 48%, #0d1626 100%) !important;
  background-attachment: fixed !important;
}

/* =========================================================
   15. v2.3 ALIGNMENT + MOBILE DENSITY SAFEGUARDS
   ========================================================= */
/* The plugin intentionally removes header paint containment as well.
   Keep the shell-side guarantee explicit so the account menu can
   render outside the floating header panel. */
#brx-header .rhy-container,
#brx-header .rhy-actions,
#brx-header .rhy-profile,
#brx-header .rhy-profile-menu {
  overflow: visible !important;
}
#brx-header .rhy-container {
  contain: none !important;
}
