/* Security enrollment and challenge surfaces remain usable on narrow screens. */
.mfa-panel { max-width: 34rem; margin-inline: auto; }
.mfa-panel form { display: grid; gap: 1rem; }
.mfa-panel input { min-height: 2.75rem; width: 100%; }
.mfa-qr { display: block; width: min(16rem, 80vw); height: auto; margin: 1rem auto; image-rendering: pixelated; }
.mfa-panel pre { white-space: pre-wrap; user-select: all; padding: 1rem; }
.email-mfa-panel {
  width: min(32rem, calc(100% - 2rem));
  margin-block: clamp(1.5rem, 5vw, 3rem);
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.email-mfa-panel h1 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; }
.email-mfa-panel > p { color: var(--muted); line-height: 1.55; }
.email-mfa-panel form + form {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.email-mfa-panel form button { justify-self: start; max-width: 100%; }
.email-mfa-panel > p:last-child { margin: 1.5rem 0 0; }
.email-mfa-panel > p:last-child a { color: var(--coral-dark); text-decoration: underline; }
/* Base custom properties */
:root {
  --ink: #102725;
  --ink-2: #173633;
  --paper: #f5f3ed;
  --card: #fffefa;
  --line: #deddd6;
  --muted: #6f7c79;
  --coral: #f07a63;
  --coral-dark: #dc614b;
  --yellow: #e8b833;
  --green: #39a86b;
  --red: #dc554f;
  --blue: #3f7ec9;

  --font-body: "DM Sans", sans-serif;
  --font-heading: "Manrope", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 99px;

  --shadow-sm: 0 4px 12px rgba(19, 43, 40, .04);
  --shadow-md: 0 12px 30px rgba(19, 43, 40, .08);
  --shadow-lg: 0 18px 55px rgba(19, 43, 40, .08);

  --border-width: 1px;
}

body.theme-classic {
  --font-body: "DM Sans", sans-serif;
  --font-heading: "Manrope", sans-serif;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-sm: none;
  --shadow-md: 0 4px 12px rgba(0,0,0,0.03);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.05);
}
body.theme-modern {
  --font-body: "Outfit", sans-serif;
  --font-heading: "Outfit", sans-serif;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 8px 24px rgba(0,0,0,0.04);
  --shadow-md: 0 20px 40px rgba(0,0,0,0.08);
  --shadow-lg: 0 30px 60px rgba(0,0,0,0.12);
  --border-width: 0px;
}
body.theme-minimal {
  --font-body: "DM Sans", sans-serif;
  --font-heading: "DM Sans", sans-serif;
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
}
body.theme-premium {
  --font-body: "DM Sans", sans-serif;
  --font-heading: "Playfair Display", serif;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 4px 20px rgba(0,0,0,0.03);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.08);
}
body.theme-mobile {
  --font-body: "DM Sans", sans-serif;
  --font-heading: "Manrope", sans-serif;
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --shadow-sm: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-md: 0 12px 32px rgba(0,0,0,0.08);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.1);
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  --ink: var(--theme-primary, #102725);
  --ink-2: var(--theme-secondary, #173633);
  --paper: var(--theme-background, #f5f3ed);
  --card: var(--theme-card, #fffefa);
  --line: var(--theme-border, #deddd6);
  --coral: var(--theme-button, #f07a63);
  --coral-dark: var(--theme-link, #dc614b);
  --yellow: var(--theme-status-invited, #e8b833);
  --green: var(--theme-status-paid, #39a86b);
  --red: var(--theme-status-completed, #dc554f);
  --blue: var(--theme-status-reward, #3f7ec9);
  margin: 0; font-family: var(--font-body); color: var(--theme-text, var(--ink)); background: var(--paper);
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, .brand, .metric-card strong { font-family: var(--font-heading); }

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: .11em; font-size: 1rem; }
.brand img { display: block; width: auto; height: 36px; max-width: 180px; object-fit: contain; }
.mobile-header .brand img { height: 28px; max-width: 120px; }
.public-nav { min-height: 64px; padding: 14px clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--card); border-bottom: 1px solid var(--line); }
.public-nav > a:last-child { color: var(--theme-primary, var(--ink)); font-weight: 700; }
.brand--light { color: #fff; }
.brand-mark { position: relative; width: 31px; height: 31px; display: inline-block; }
.brand-mark i { position: absolute; width: 17px; height: 17px; border: 2px solid currentColor; border-radius: 50%; }
.brand-mark i:nth-child(1) { top: 0; left: 7px; }
.brand-mark i:nth-child(2) { bottom: 1px; left: 1px; }
.brand-mark i:nth-child(3) { bottom: 1px; right: 1px; }
.language-switcher { display: flex; align-items: center; gap: 7px; color: #9eb2ad; font-size: .68rem; font-weight: 700; }
.language-switcher a { opacity: .72; }
.language-switcher a.active, .language-switcher a:hover { opacity: 1; color: var(--coral); }
.language-switcher--landing { color: rgba(255,255,255,.86); }
.language-switcher--auth { position: absolute; top: 28px; right: 30px; color: var(--muted); }
.auth-panel { position: relative; }

.button { border: 0; border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 0 20px; font-weight: 700; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--small { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.button--block { width: 100%; }
.button--light { background: #fff; color: var(--ink); }
.button--dark { background: var(--ink); color: #fff; box-shadow: var(--shadow-md); }
.button--dark:hover { background: color-mix(in srgb, var(--theme-primary, var(--ink)) 86%, white); }
.button--coral { background: var(--coral); color: #172d2a; box-shadow: var(--shadow-md); }
.button--coral:hover { background: #ff8b72; }
.button--ghost { color: #fff; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06); }
.text-link { color: rgba(255,255,255,.86); font-weight: 600; }
.eyebrow { display: block; color: var(--coral-dark); text-transform: uppercase; font-size: .71rem; font-weight: 800; letter-spacing: .16em; margin-bottom: 10px; }
.eyebrow--light { color: #f2b19e; }
.tone { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.tone--yellow { background: var(--yellow); }
.tone--green { background: var(--green); }
.tone--red { background: var(--red); }
.tone--blue { background: var(--blue); }

/* Landing */
.landing { min-height: 100vh; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.landing .language-switcher a.active,
.landing .language-switcher a:hover,
.landing .eyebrow--light,
.landing .hero-copy h1 em,
.landing .hero-card__label {
  color: var(--home-primary-contrast);
  background: var(--home-primary-color);
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.landing .language-switcher a.active,
.landing .language-switcher a:hover { padding: 3px 6px; }
.landing .eyebrow--light,
.landing .hero-card__label { display: inline-block; width: fit-content; padding: 5px 8px; }
.landing .hero-copy h1 em { padding: 0 .08em; }
.landing .button--coral { background: var(--home-primary-color); color: var(--home-primary-contrast); }
.landing .button--coral:hover { background: var(--home-primary-color); box-shadow: 0 16px 36px rgba(0,0,0,.24); }
.landing .button--ghost { border-color: var(--home-primary-color); }
.landing .text-link { text-decoration-color: var(--home-primary-color); text-decoration-line: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.landing .brand-mark { color: var(--home-primary-color); }
.landing .orbit { border-color: color-mix(in srgb, var(--home-primary-color) 42%, transparent); }
.landing .trust-line span { color: var(--home-primary-color); }
.landing::before { content: ""; position: absolute; width: 620px; height: 620px; right: -250px; top: -260px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.018), 0 0 0 140px rgba(255,255,255,.012); }
.landing-nav { max-width: 1200px; margin: auto; height: 88px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: relative; z-index: 2; }
.landing-nav__actions { display: flex; align-items: center; gap: 24px; }
.hero { position: relative; z-index: 1; max-width: 1200px; margin: auto; min-height: calc(100vh - 190px); padding: 70px 28px 100px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
.hero-copy h1 { font-size: clamp(3rem, 6vw, 5.6rem); line-height: .98; letter-spacing: -.06em; margin-bottom: 28px; }
.hero-copy h1 em { color: var(--coral); font-style: normal; }
.hero-copy > p { color: #b6c5c1; font-size: 1.12rem; line-height: 1.75; max-width: 590px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.trust-line { color: #9eb2ad; font-size: .82rem; display: flex; align-items: center; gap: 9px; margin-top: 28px; }
.trust-line span { color: var(--green); }
.hero-visual { height: 520px; position: relative; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.orbit--outer { width: 470px; height: 470px; }
.orbit--inner { width: 330px; height: 330px; border-style: dashed; }
.hero-card { width: 275px; background: #f8f5ed; color: var(--ink); padding: 28px; border-radius: var(--radius-lg); box-shadow: 0 35px 80px rgba(0,0,0,.28); transform: rotate(-2deg); }
.hero-card__label { color: var(--coral-dark); font-size: .68rem; letter-spacing: .16em; font-weight: 800; }
.hero-card > strong { display: block; font-family: "Manrope"; font-size: 1.35rem; margin: 10px 0 24px; }
.package-meter { display: grid; gap: 12px; font-size: .85rem; }
.package-meter span { display: flex; align-items: center; gap: 10px; }
.rule-pending { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .73rem; }
.person-node { position: absolute; display: grid; justify-items: center; gap: 5px; z-index: 3; }
.person-node span { width: 51px; height: 51px; display: grid; place-items: center; background: var(--card); border: 5px solid var(--ink-2); border-radius: 50%; color: var(--ink); font-weight: 800; font-size: .76rem; }
.person-node small { background: rgba(16,39,37,.88); padding: 4px 8px; border-radius: 99px; font-size: .62rem; }
.person-node--one { top: 55px; right: 70px; }
.person-node--one span { box-shadow: 0 0 0 3px var(--green); }
.person-node--two { bottom: 65px; left: 60px; }
.person-node--two span, .person-node--three span { box-shadow: 0 0 0 3px var(--yellow); }
.person-node--three { top: 130px; left: 12px; }
.status-strip { background: #fff; color: var(--ink); min-height: 102px; padding: 20px max(28px, calc((100vw - 1144px)/2)); display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.status-strip p { margin: 0; font-family: "Manrope"; font-weight: 700; }
.status-strip > div { display: flex; gap: 26px; flex-wrap: wrap; color: var(--muted); font-size: .78rem; }
.status-strip span { display: flex; align-items: center; gap: 7px; }

.home-primary-layout { display: grid; grid-template-columns: minmax(280px, .75fr) minmax(320px, 1.25fr); gap: 28px; align-items: stretch; }
.home-primary-preview { padding: 22px; border: 1px solid var(--theme-border); border-radius: var(--radius-md); background: var(--theme-background); }
.home-primary-preview__surface { min-height: 190px; padding: 28px; border-radius: var(--radius-sm); background: var(--theme-primary); color: #fff; display: grid; align-content: center; justify-items: start; gap: 18px; }
.home-primary-preview__highlight,
.home-primary-preview__surface button {
  border: 0; border-radius: 8px; padding: 8px 12px; background: var(--preview-home-primary); color: var(--preview-home-contrast); font-weight: 800;
}
.home-primary-preview__surface button { min-height: 44px; cursor: default; }
.home-primary-preview__surface a { color: #fff; text-decoration: underline var(--preview-home-primary) 3px; text-underline-offset: 5px; font-weight: 700; }
@media (max-width: 820px) {
  .home-primary-layout { grid-template-columns: 1fr; }
}

/* Auth */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 42% 58%; background: var(--card); }
.auth-story { background: var(--ink); color: #fff; padding: 52px clamp(36px, 6vw, 90px); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-story::after { content: ""; width: 510px; height: 510px; position: absolute; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; left: -270px; bottom: -250px; box-shadow: 0 0 0 70px rgba(255,255,255,.02), 0 0 0 140px rgba(255,255,255,.012); }
.auth-story h2 { font-size: clamp(2.4rem, 4vw, 4.1rem); line-height: 1.06; letter-spacing: -.05em; margin-bottom: 22px; }
.auth-story p { max-width: 450px; color: #afc0bc; line-height: 1.7; }
.auth-socials { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 18px; }
.auth-socials a { color: #fff; font-size: .82rem; font-weight: 700; text-decoration: none; }
.auth-socials a:hover, .auth-socials a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.auth-socials-mobile { display: none; }
.auth-story small { color: #79908b; letter-spacing: .14em; }
.auth-panel { display: grid; place-items: center; padding: 50px 30px; }
.auth-mobile-brand { display: none; }
.auth-form-wrap { width: min(430px, 100%); }
.auth-form-wrap h1 { font-size: 2.4rem; letter-spacing: -.04em; margin-bottom: 10px; }
.auth-form-wrap > p { color: var(--muted); margin-bottom: 32px; }
.auth-current-account a { color: var(--coral-dark); font-weight: 700; text-decoration: underline; }
.form-stack { display: grid; gap: 18px; }
.phone-fields { border: 0; padding: 0; margin: 0; }
.phone-fields legend { font-size: .82rem; font-weight: 700; margin-bottom: 8px; }
.phone-fields > div { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; }
.mock-mode-note { display: grid; gap: 5px; margin-bottom: 22px; padding: 14px; border-radius: var(--radius-sm); background: #fff5d7; color: #7b6218; font-size: .72rem; line-height: 1.45; }
.mock-mode-note strong { font-size: .76rem; }
.verification-form input { text-align: center; letter-spacing: .32em; font-size: 1.15rem; font-weight: 800; }
.verification-actions { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 18px; }
.verification-actions form { margin: 0; }
.verification-actions button, .verification-actions a { border: 0; background: transparent; color: var(--coral-dark); font-size: .76rem; font-weight: 800; cursor: pointer; padding: 0; }
label { display: grid; gap: 8px; font-size: .82rem; font-weight: 700; }
input, select { width: 100%; height: 50px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm); padding: 0 14px; color: var(--ink); outline: 0; transition: border .2s, box-shadow .2s; }
input:focus, select:focus { border-color: var(--theme-primary, var(--ink)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary, var(--ink)) 14%, transparent); }
input:disabled { background: #f0f0eb; color: #87928f; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 60px; }
.show-password { position: absolute; right: 8px; top: 8px; height: 34px; border: 0; background: transparent; font-size: .72rem; font-weight: 800; color: var(--muted); cursor: pointer; }
.auth-switch { text-align: center; font-size: .86rem; margin: 22px 0 0 !important; }
.auth-switch a, .demo-entry a { color: var(--coral-dark); font-weight: 800; }
.demo-entry { margin-top: 26px; padding: 14px; border: 1px dashed #c9cbc4; border-radius: var(--radius-sm); display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); }

/* App shell */
.app-frame { min-height: 100vh; }
.sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 244px; z-index: 20; background: var(--ink); color: #fff; padding: 28px 20px; display: flex; flex-direction: column; }
.sidebar .brand { padding: 0 12px 26px; }
.account-brief { display: flex; align-items: center; gap: 11px; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); padding: 18px 10px; margin-bottom: 22px; }
.avatar, .mini-avatar { border-radius: 50%; display: grid; place-items: center; font-weight: 800; }
.avatar { width: 38px; height: 38px; background: var(--coral); color: var(--ink); }
.account-brief strong, .account-brief small { display: block; }
.account-brief strong { font-size: .79rem; }
.account-brief small { color: #8ea49f; font-size: .67rem; margin-top: 2px; }
.side-nav { display: grid; gap: 5px; }
.side-nav a { color: #a8bbb7; min-height: 45px; display: flex; align-items: center; gap: 14px; padding: 0 13px; border-radius: var(--radius-sm); font-size: .82rem; font-weight: 600; transition: .2s; }
.side-nav a span { width: 18px; text-align: center; font-size: 1.05rem; }
.side-nav a:hover, .side-nav a.active { background: rgba(255,255,255,.1); color: #fff; }
.side-nav a.active { box-shadow: inset 3px 0 var(--coral); }
.sidebar-note { margin-top: auto; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-md); padding: 14px; }
.sidebar-note strong { color: #f1b4a3; font-size: .73rem; }
.sidebar-note p { color: #8da39e; font-size: .67rem; line-height: 1.45; margin: 5px 0 0; }
.sign-out { display: flex; justify-content: space-between; color: #9cb0ab; padding: 18px 12px 0; font-size: .77rem; font-weight: 700; }
.app-main { margin-left: 244px; min-height: 100vh; }
.mobile-header, .bottom-nav { display: none; }
.page-wrap { max-width: 1190px; margin: auto; padding: 48px 42px 80px; }
.page-wrap--narrow { max-width: 950px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 34px; }
.page-heading h1 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -.055em; line-height: 1.05; margin-bottom: 8px; }
.page-heading p { color: var(--muted); margin: 0; }
.page-heading--welcome h1 { font-size: clamp(2rem, 4vw, 3.35rem); }
.status-overview { min-height: 254px; background: var(--ink); border-radius: var(--radius-lg); color: #fff; padding: 40px 46px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; position: relative; box-shadow: var(--shadow-lg); }
.status-overview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 45%, rgba(255,255,255,.025)); pointer-events: none; }
.status-overview__copy { max-width: 500px; position: relative; z-index: 2; }
.status-overview h2 { font-size: 1.9rem; margin: 20px 0 10px; }
.status-overview p { color: #9fb3ae; line-height: 1.65; margin: 0; }
.compact-slots { display: flex; gap: 8px; margin-top: 22px; }
.compact-slots span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.24); color: #8fa39e; font-size: .7rem; font-weight: 800; }
.compact-slots span.filled { background: var(--green); border-color: var(--green); color: #fff; }
.status-chip { width: max-content; display: inline-flex; align-items: center; gap: 7px; border-radius: 99px; padding: 6px 10px; font-size: .67rem; font-weight: 800; white-space: nowrap; background: #eff1ed; color: var(--muted); }
.status-chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-chip--yellow { background: #fff5d7; color: #a27605; }
.status-chip--green { background: #e3f6ea; color: #26794d; }
.status-chip--red { background: #fde8e6; color: #b43c37; }
.status-chip--blue { background: #e5eef9; color: #3269ab; }
.status-chip--neutral { background: #ecefea; color: #65716e; }
.status-rings { position: relative; width: 220px; height: 220px; flex: 0 0 220px; display: grid; place-items: center; margin-right: 35px; }
.ring { position: absolute; border-radius: 50%; }
.ring--one { inset: 10px; border: 1px solid rgba(255,255,255,.11); }
.ring--two { inset: 33px; border: 2px dashed rgba(240,122,99,.45); }
.ring--three { inset: 54px; border: 10px solid rgba(255,255,255,.08); border-right-color: var(--coral); transform: rotate(28deg); }
.ring-center { text-align: center; z-index: 2; }
.ring-center strong { display: block; font: 800 2.25rem var(--font-heading); }
.ring-center small { color: #9cb0ab; font-size: .68rem; }
.section-title { margin: 48px 0 20px; }
.section-title h2, .panel-heading h2 { font-size: 1.35rem; letter-spacing: -.03em; margin: 0; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.metric-card { background: var(--card); border: var(--border-width) solid var(--theme-border); border-radius: var(--radius-lg); padding: 24px; min-height: 245px; display: flex; flex-direction: column; box-shadow: var(--shadow-md); transition: .2s; }
.metric-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.metric-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--radius-sm); margin-bottom: 25px; font-weight: 800; }
.metric-icon--coral { background: #fde6df; color: #bd5340; }
.metric-icon--green { background: #e2f5e9; color: #267b4c; }
.metric-icon--yellow { background: #fff3cd; color: #9f780e; }
.metric-icon--blue { background: #e2ecf8; color: #2d69af; }
.metric-card small { color: var(--muted); margin-bottom: 6px; }
.metric-card strong { font-size: 1.06rem; }
.metric-card p { font-size: .75rem; line-height: 1.5; color: var(--muted); margin: 8px 0 20px; }
.metric-card a { margin-top: auto; display: flex; justify-content: space-between; padding-top: 15px; border-top: 1px solid #e8e7e1; font-size: .73rem; font-weight: 800; }
.split-section { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; margin-top: 18px; }
.panel { background: var(--card); border: var(--border-width) solid var(--theme-border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-md); }
.panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; padding-bottom: 20px; border-bottom: 1px solid #e5e4de; }
.panel-heading a { color: var(--coral-dark); font-size: .73rem; font-weight: 800; }
.muted-count { color: var(--muted); font-size: .75rem; }
.activity-list { display: grid; }
.activity-item { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 13px; padding: 17px 0; border-bottom: 1px solid #eeece6; }
.activity-item:last-child { border-bottom: 0; }
.activity-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #edf2ee; color: var(--ink); }
.activity-item strong, .activity-item small { display: block; }
.activity-item strong { font-size: .78rem; }
.activity-item small, .activity-item time { color: var(--muted); font-size: .66rem; margin-top: 4px; }
.panel--legend { background: #e9e6dd; }
.panel--legend h2 { line-height: 1.3; }
.legend-list { display: grid; margin-top: 26px; }
.legend-list span { display: flex; gap: 11px; align-items: center; padding: 13px 0; border-bottom: 1px solid rgba(16,39,37,.1); font-size: .76rem; }
.legend-list span:last-child { border: 0; }
.package-summary, .invite-compose { border-radius: var(--radius-lg); padding: 35px 40px; display: flex; justify-content: space-between; align-items: center; gap: 35px; margin-bottom: 18px; }
.package-summary { background: #e4e0d5; }
.package-summary h2, .invite-compose h2 { font-size: 1.5rem; margin: 16px 0 8px; }
.package-summary p { color: var(--muted); margin: 0; }
.summary-number { width: 170px; flex: 0 0 170px; text-align: center; border-left: 1px solid rgba(16,39,37,.15); padding-left: 28px; }
.summary-number strong { display: block; font: 800 3.4rem var(--font-heading); line-height: 1; }
.summary-number span { display: block; color: var(--muted); font-size: .7rem; margin-top: 8px; }
.qualification-board { background: var(--card); border: var(--border-width) solid var(--theme-border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-md); margin-bottom: 18px; }
.qualification-slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding-top: 24px; }
.qualification-slot { min-height: 210px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; border: 1px dashed #c9cbc4; border-radius: var(--radius-lg); background: #f8f7f2; padding: 25px 12px 18px; }
.qualification-slot--filled { border-style: solid; border-color: #b8ddc6; background: #f3fbf5; }
.qualification-slot .slot-number { position: absolute; left: 10px; top: 10px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #e7e6df; color: var(--muted); font-size: .65rem; font-weight: 800; }
.qualification-slot strong { font-size: .76rem; }
.qualification-slot small { max-width: 110px; color: var(--muted); font-size: .65rem; line-height: 1.4; }
.qualification-slot .person-avatar { width: 52px; height: 52px; background: var(--green); }
.empty-ring { width: 50px; height: 50px; border: 2px dashed #c7cac3; border-radius: 50%; }
.package-complete-callout { margin-top: 22px; padding: 22px; border-radius: var(--radius-md); background: #f9edeb; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.package-complete-callout strong { display: block; margin-top: 10px; }
.package-complete-callout p { color: var(--muted); font-size: .75rem; margin: 5px 0 0; }
.package-history { margin-top: 18px; }
.history-list { display: grid; }
.history-list article { display: grid; grid-template-columns: 38px 1fr auto auto; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid #ebeae4; }
.history-list article:last-child { border: 0; }
.history-id { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--radius-sm); background: #ecebe4; font-size: .7rem; font-weight: 800; }
.history-list strong, .history-list small { display: block; }
.history-list strong { font-size: .78rem; }
.history-list small { color: var(--muted); font-size: .65rem; margin-top: 4px; }
.history-list article > b { font-size: .75rem; }
.people-list { display: grid; }
.person-row { display: grid; grid-template-columns: 45px 1fr auto; align-items: center; gap: 15px; padding: 18px 0; border-bottom: 1px solid #ecebe5; }
.person-row:last-child { border-bottom: 0; }
.person-avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 800; }
.person-row strong, .person-row small { display: block; }
.person-row strong { font-size: .84rem; }
.person-row small { color: var(--muted); font-size: .68rem; margin-top: 4px; }
.invite-compose { background: var(--ink); color: #fff; }
.invite-compose > div { max-width: 440px; }
.invite-compose p { color: #9db0ac; font-size: .84rem; line-height: 1.55; margin: 0; }
.inline-form { min-width: min(430px, 45%); }
.inline-form > div { display: flex; gap: 8px; }
.inline-form input { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; }
.inline-form label, .inline-form > label { color: #c3cfcc; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 17px 10px; border-bottom: 1px solid #ebeae4; font-size: .78rem; }
th { color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; }
.table-note { display: block; color: var(--muted); font-size: .64rem; font-weight: 400; margin-top: 4px; }
.phone-state { display: inline-flex; margin-top: 7px; padding: 4px 7px; border-radius: 99px; font-size: .58rem; font-weight: 800; }
.phone-state--verified { background: #e5eef9; color: #3269ab; }
.phone-state--unverified { background: #fff5d7; color: #a27605; }
.mini-action { min-height: 34px; border: 0; border-radius: 8px; padding: 0 12px; background: var(--ink); color: #fff; font-size: .69rem; font-weight: 800; cursor: pointer; }
.notice { background: #e7eef6; border: 1px solid #d4dfec; border-radius: var(--radius-md); padding: 17px 20px; display: flex; gap: 14px; margin-bottom: 18px; }
.notice > span { width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; }
.notice strong { font-size: .8rem; }
.notice p { color: #5f7186; font-size: .73rem; margin: 3px 0 0; }
.transaction-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 15px; align-items: center; padding: 19px 0; border-bottom: 1px solid #ecebe5; }
.transaction-row:last-child { border: 0; }
.transaction-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-sm); background: #edf0eb; }
.transaction-row strong, .transaction-row small { display: block; }
.transaction-row > div { min-width: 0; }
.transaction-row strong, .transaction-row small { overflow-wrap: anywhere; }
.transaction-row > div > strong { font-size: .83rem; }
.transaction-row small { color: var(--muted); font-size: .67rem; margin-top: 4px; }
.transaction-meta { text-align: right; }
.transaction-meta strong { font-size: .75rem; }
.transaction-meta span { font-size: .65rem; color: var(--green); }
.profile-card { overflow: hidden; background: var(--card); border: var(--border-width) solid var(--theme-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.profile-card__hero { background: var(--ink); color: #fff; padding: 35px 40px; display: flex; align-items: center; gap: 19px; }
.profile-avatar { width: 70px; height: 70px; border-radius: 50%; background: var(--coral); color: var(--ink); display: grid; place-items: center; font: 800 1.6rem var(--font-heading); }
.profile-card__hero h2 { margin: 0 0 4px; }
.profile-card__hero p { color: #a7bab6; font-size: .78rem; margin-bottom: 10px; }
.form-grid { padding: 34px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-grid label small { font-weight: 400; color: var(--muted); line-height: 1.4; }
.package-config-form { padding: 0 40px 34px; }
.package-config-form .form-grid { padding: 0 0 24px; }
.package-config-form .form-grid__wide { grid-column: 1 / -1; }
.package-config-form textarea { resize: vertical; min-height: 82px; }
.package-config-form .check-row { margin-bottom: 20px; }
.package-calculation { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 24px; }
.package-calculation div { padding: 16px; border: 1px solid var(--border); background: var(--cream); }
.package-calculation small { display: block; color: var(--muted); margin-bottom: 6px; }
.package-calculation strong { font-size: 1.1rem; color: var(--ink); }
.staff-table { min-width: 1500px; }
.staff-table td { vertical-align: top; }
.permission-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.permission-card { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px solid var(--border); background: var(--cream); cursor: pointer; }
.permission-card input { width: auto; margin-top: 4px; }
.permission-card span, .permission-card small { display: block; }
.permission-card small { margin-top: 4px; color: var(--muted); }
.staff-list-controls { display: grid; grid-template-columns: minmax(240px, 2fr) repeat(3, minmax(130px, 1fr)) auto; gap: 14px; align-items: end; margin-bottom: 16px; }
.staff-list-controls label { margin: 0; }
.staff-list-controls .button { min-height: 48px; }
.staff-result-count { color: var(--muted); font-weight: 700; }
.staff-pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 20px; }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; padding-top: 8px; }
.settings-panel { padding: 0; overflow: hidden; }
.settings-group { padding: 30px 35px; border-bottom: 1px solid #e4e3dd; }
.settings-group > div h2 { margin-bottom: 6px; font-size: 1.2rem; }
.settings-group > div p { color: var(--muted); font-size: .76rem; }
.settings-group > label:not(.toggle-row) { max-width: 320px; }
.toggle-row { grid-template-columns: 1fr auto; align-items: center; padding: 17px 0; border-top: 1px solid #ecebe5; position: relative; cursor: pointer; }
.toggle-row span strong, .toggle-row span small { display: block; }
.toggle-row span small { font-weight: 400; color: var(--muted); margin-top: 4px; }
.toggle-row input { position: absolute; opacity: 0; }
.toggle-row i { width: 43px; height: 25px; border-radius: 99px; background: #cacdc6; position: relative; transition: .2s; }
.toggle-row i::after { content: ""; position: absolute; width: 19px; height: 19px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 2px 5px rgba(0,0,0,.15); }
.toggle-row input:checked + i { background: var(--green); }
.toggle-row input:checked + i::after { transform: translateX(18px); }
.settings-panel > .form-actions { padding: 22px 35px; background: #f0eee7; }
.empty-state { text-align: center; padding: 40px; color: var(--muted); }
.reward-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reward-card { background: var(--card); border: var(--border-width) solid var(--theme-border); border-top: 4px solid var(--blue); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg); }
.reward-mark { width: 48px; height: 48px; margin: 28px 0 18px; display: grid; place-items: center; border-radius: 50%; background: #e5eef9; color: var(--blue); font-size: 1.4rem; }
.reward-card h2 { margin-bottom: 6px; }
.reward-card > p { color: var(--muted); font-size: .75rem; margin-bottom: 24px; }
.reward-card > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid #ebeae4; font-size: .7rem; }
.reward-card > div span { color: var(--muted); }
.empty-reward { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--card); border: var(--border-width) solid var(--theme-border); border-radius: var(--radius-lg); padding: 35px; }
.empty-reward > span { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: #e5eef9; color: var(--blue); font-size: 1.6rem; }
.empty-reward h2 { margin: 20px 0 8px; }
.empty-reward p { max-width: 500px; color: var(--muted); line-height: 1.6; }
.admin-metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.admin-metrics article { background: var(--ink); color: #fff; border-radius: var(--radius-md); padding: 20px; }
.admin-metrics small { display: block; color: #9db0ac; font-size: .68rem; }
.admin-metrics strong { display: block; margin-top: 7px; font: 800 1.7rem var(--font-heading); }
.admin-section { margin-bottom: 18px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.error-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; }
.error-page .brand { margin-bottom: 70px; }
.error-page h1 { font-size: clamp(2.5rem, 7vw, 5rem); max-width: 750px; letter-spacing: -.06em; }
.error-page p { color: var(--muted); }
.error-page .button { margin-top: 20px; }
.error-page #password-reset-confirm-form[hidden] { display: none; }
.flash-stack { position: fixed; z-index: 100; right: 25px; top: 20px; width: min(370px, calc(100vw - 40px)); display: grid; gap: 8px; }
.flash-stack--public { left: 50%; right: auto; transform: translateX(-50%); }
.flash { background: #fff; border-left: 4px solid var(--blue); box-shadow: var(--shadow-lg); border-radius: var(--radius-sm); padding: 14px 38px 14px 15px; font-size: .78rem; position: relative; animation: slide-in .3s ease both; }
.flash--success { border-color: var(--green); }
.flash--error { border-color: var(--red); }
.flash button { position: absolute; top: 7px; right: 7px; border: 0; background: transparent; color: var(--muted); font-size: 1.2rem; cursor: pointer; }
@keyframes slide-in { from { opacity: 0; transform: translateY(-8px); } }

/* Arabic is a true RTL layout; numbers and phone identifiers remain LTR. */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .sidebar { left: auto; right: 0; }
html[dir="rtl"] .app-main { margin-left: 0; margin-right: 244px; }
html[dir="rtl"] .side-nav a.active { box-shadow: inset -3px 0 var(--coral); }
html[dir="rtl"] .sign-out { flex-direction: row-reverse; }
html[dir="rtl"] .page-heading, html[dir="rtl"] .panel-heading { text-align: right; }
html[dir="rtl"] .summary-number { border-left: 0; border-right: 1px solid rgba(16,39,37,.15); padding-left: 0; padding-right: 28px; }
html[dir="rtl"] .transaction-meta { text-align: left; }
html[dir="rtl"] th, html[dir="rtl"] td { text-align: right; }
html[dir="rtl"] .status-rings { margin-right: 0; margin-left: 35px; }
html[dir="rtl"] .inline-form > div { flex-direction: row-reverse; }
html[dir="rtl"] .auth-panel { text-align: right; }
html[dir="rtl"] .language-switcher--auth { right: auto; left: 30px; }
html[dir="rtl"] input, html[dir="rtl"] select { text-align: right; }
html[dir="rtl"] input[type="tel"], html[dir="rtl"] input[inputmode="numeric"],
html[dir="rtl"] .numeric, html[dir="rtl"] time { direction: ltr; text-align: left; unicode-bidi: plaintext; }
html[dir="rtl"] .verification-form input { direction: ltr; text-align: center; }

@media (max-width: 980px) {
  .hero { gap: 30px; }
  .hero-visual { transform: scale(.85); }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .auth-shell { grid-template-columns: 38% 62%; }
  .auth-story { padding: 42px 30px; }
  .auth-story h2 { font-size: 2.6rem; }
  .invite-compose { align-items: stretch; flex-direction: column; }
  .inline-form { min-width: 100%; }
  .qualification-slots { grid-template-columns: repeat(3, 1fr); }
  .reward-grid { grid-template-columns: 1fr 1fr; }
  .admin-metrics { grid-template-columns: repeat(3, 1fr); }
  .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .flash-stack { top: 78px; right: 12px; width: calc(100vw - 24px); }
  html[dir="rtl"] .flash-stack { right: auto; left: 12px; }
  body { padding-bottom: 74px; }
  .public-body { padding-bottom: 0; }
  .sidebar { display: none; }
  .app-main { margin-left: 0; }
  html[dir="rtl"] .app-main { margin-right: 0; }
  .mobile-header { height: 68px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; background: var(--card); border-bottom: 1px solid var(--line); }
  .mini-avatar { width: 36px; height: 36px; background: var(--ink); color: #fff; }
  .bottom-nav { display: grid; position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; height: 70px; grid-template-columns: repeat(5, 1fr); background: rgba(255,254,250,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 5px max(6px, env(safe-area-inset-bottom)); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #83908d; font-size: .59rem; font-weight: 700; }
  .bottom-nav a > span { font-size: 1.1rem; }
  .bottom-nav a.active { color: var(--ink); }
  .bottom-nav__primary > span { width: 34px; height: 34px; margin-top: -20px; display: grid; place-items: center; border-radius: 50%; background: var(--coral); color: var(--ink); box-shadow: 0 5px 14px rgba(240,122,99,.35); }
  .page-wrap { padding: 31px 18px 35px; }
  .page-heading { align-items: flex-start; margin-bottom: 25px; }
  .page-heading .button { display: none; }
  .page-heading h1 { font-size: 2.1rem; }
  .page-heading p { font-size: .83rem; line-height: 1.5; }
  .button--desktop { display: none; }
  .status-overview { padding: 30px 25px; min-height: 305px; align-items: flex-start; }
  .status-overview h2 { font-size: 1.5rem; }
  .status-rings { position: absolute; width: 170px; height: 170px; right: -35px; bottom: -30px; margin: 0; opacity: .8; }
  .section-title { margin-top: 35px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card { padding: 18px; min-height: 228px; }
  .metric-card strong { font-size: .92rem; }
  .metric-icon { margin-bottom: 18px; }
  .split-section { grid-template-columns: 1fr; }
  .panel { padding: 21px 18px; }
  .activity-item { grid-template-columns: 34px 1fr; }
  .activity-item time { display: none; }
  .package-summary { padding: 25px; align-items: flex-start; flex-direction: column; }
  .summary-number { width: 100%; padding: 20px 0 0; border-left: 0; border-top: 1px solid rgba(16,39,37,.15); display: flex; align-items: center; gap: 13px; text-align: left; }
  .summary-number strong { font-size: 2.4rem; }
  .qualification-board { padding: 20px 16px; }
  .qualification-slots { grid-template-columns: 1fr; }
  .qualification-slot { min-height: 135px; display: grid; grid-template-columns: 52px 1fr auto; justify-items: start; text-align: left; padding: 25px 16px; }
  .qualification-slot .slot-number { left: auto; right: 9px; }
  .qualification-slot .status-chip { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .qualification-slot small { max-width: none; }
  .package-complete-callout { align-items: stretch; flex-direction: column; }
  .package-complete-callout .button { width: 100%; }
  .history-list article { grid-template-columns: 34px 1fr auto; }
  .history-list article > b { display: none; }
  .reward-grid { grid-template-columns: 1fr; }
  .admin-metrics { grid-template-columns: 1fr 1fr; }
  .person-row { grid-template-columns: 42px 1fr; }
  .person-row .status-chip { grid-column: 2; }
  .invite-compose { padding: 27px 22px; }
  .inline-form > div { display: grid; }
  th:nth-child(2), td:nth-child(2) { display: none; }
  .transaction-row { grid-template-columns: 40px 1fr; }
  .transaction-meta { grid-column: 2; text-align: left; display: flex; gap: 10px; align-items: center; }
  .profile-card__hero { padding: 28px 22px; }
  .form-grid { padding: 27px 22px; grid-template-columns: 1fr; }
  .package-config-form { padding: 0 22px 27px; }
  .package-config-form .form-grid__wide { grid-column: auto; }
  .package-calculation { grid-template-columns: 1fr; }
  .permission-grid { grid-template-columns: 1fr; }
  .staff-list-controls { grid-template-columns: 1fr; }
  .form-actions { justify-content: stretch; }
  .form-actions .button { width: 100%; }
  .settings-group { padding: 26px 21px; }
  .settings-panel > .form-actions { padding: 20px; }
  .landing-nav { height: 72px; padding: 0 18px; }
  .landing-nav .brand { gap: 7px; font-size: .86rem; }
  .landing-nav .brand-mark { transform: scale(.88); transform-origin: left center; }
  html[dir="rtl"] .landing-nav .brand-mark { transform-origin: right center; }
  .landing-nav__actions { gap: 8px; }
  .landing-nav__actions .language-switcher { gap: 4px; font-size: .62rem; }
  .landing-nav__actions .button { padding: 0 12px; }
  .landing-nav__actions .text-link { display: none; }
  .hero { min-height: auto; padding: 64px 21px 50px; grid-template-columns: 1fr; text-align: left; }
  .hero-copy h1 { font-size: 3.3rem; }
  .hero-copy > p { font-size: 1rem; }
  .hero-actions { display: grid; }
  .hero-visual { height: 390px; transform: scale(.76); margin: -25px -55px; }
  .status-strip { display: block; padding: 27px 21px; }
  .status-strip p { margin-bottom: 18px; }
  .status-strip > div { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .auth-shell { display: block; }
  .auth-story { display: none; }
  .auth-panel { min-height: 100vh; display: block; padding: 25px 21px 45px; }
  .auth-mobile-brand { display: inline-flex; margin-bottom: 65px; }
  .auth-form-wrap { margin: auto; }
  .auth-form-wrap h1 { font-size: 2.2rem; }
  .auth-socials-mobile { display: block; margin: -34px 0 28px; }
  .auth-socials-mobile p { color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
  .auth-socials-mobile .auth-socials { margin-top: 0; }
  .auth-socials-mobile .auth-socials a { color: var(--ink); }
  .phone-fields > div { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 210px; }
  .hero-copy h1 { font-size: 2.85rem; }
}

/* ==================== THEME OVERRIDES ==================== */

/* Theme: Modern */
.theme-modern .sidebar { margin: 16px 0 16px 16px; border-radius: var(--radius-lg); height: calc(100vh - 32px); box-shadow: var(--shadow-lg); }
.theme-modern .app-main { margin-left: 260px; }
html[dir="rtl"] .theme-modern .sidebar { margin: 16px 16px 16px 0; }
html[dir="rtl"] .theme-modern .app-main { margin-left: 0; margin-right: 260px; }
.theme-modern .panel { background: var(--theme-card); padding: 35px; }
.theme-modern .metric-card { padding: 30px; }
.theme-modern .button { padding: 0 24px; border-radius: var(--radius-full); }
.theme-modern .page-wrap { padding-top: 60px; }
.theme-modern h1, .theme-modern h2 { letter-spacing: -0.04em; }

/* Theme: Minimal */
.theme-minimal .sidebar { background: var(--theme-navigation); border-right: 1px solid var(--theme-border); color: var(--theme-text); }
.theme-minimal .sidebar .brand { color: var(--theme-text); }
.theme-minimal .side-nav a { color: var(--theme-text); opacity: 0.7; border-radius: 0; }
.theme-minimal .side-nav a:hover, .theme-minimal .side-nav a.active { background: transparent; opacity: 1; }
.theme-minimal .side-nav a.active { box-shadow: inset 3px 0 var(--theme-button); }
html[dir="rtl"] .theme-minimal .side-nav a.active { box-shadow: inset -3px 0 var(--theme-button); }
.theme-minimal .account-brief { border-color: var(--theme-border); }
.theme-minimal .sidebar-note { background: transparent; border-color: var(--theme-border); color: var(--theme-text); }
.theme-minimal .sidebar-note strong { color: var(--theme-text); }
.theme-minimal .sidebar-note p { color: var(--theme-text); opacity: 0.7; }
.theme-minimal .sign-out { color: var(--theme-text); }
.theme-minimal .panel, .theme-minimal .metric-card, .theme-minimal .qualification-board { background: transparent; border-top: 2px solid var(--theme-border); border-bottom: 0; border-left: 0; border-right: 0; padding-left: 0; padding-right: 0; }
.theme-minimal .metric-card { border-top: 1px solid var(--theme-border); }
.theme-minimal .status-overview { background: transparent; border: 1px solid var(--theme-border); color: var(--theme-text); }
.theme-minimal .status-overview p { color: var(--theme-text); opacity: 0.7; }
.theme-minimal .status-overview .compact-slots span { border-color: var(--theme-border); color: var(--theme-text); }
.theme-minimal .status-overview .ring { border-color: var(--theme-border); }
.theme-minimal .status-overview .ring--three { border-right-color: var(--theme-button); }
.theme-minimal .button { border-radius: 0; }
.theme-minimal .button--dark { background: var(--theme-text); color: var(--theme-background); }
.theme-minimal .button--coral { background: var(--theme-button); color: var(--theme-background); }
.theme-minimal h1, .theme-minimal h2 { font-weight: 500; }
.theme-minimal .eyebrow { letter-spacing: 0.1em; font-weight: 600; color: var(--theme-text); opacity: 0.7; }
.theme-minimal .status-chip { background: transparent; border: 1px solid var(--theme-border); }
.theme-minimal .numeric { font-family: var(--font-mono); }

/* Theme: Premium */
.theme-premium .panel { background: var(--theme-card); padding: 32px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5), var(--shadow-md); }
.theme-premium .metric-card { border-top: 4px solid var(--theme-primary); }
.theme-premium .status-overview { background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary)); }
.theme-premium .button { text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem; font-weight: 600; }
.theme-premium h1, .theme-premium h2 { font-weight: 600; }
.theme-premium .page-wrap { max-width: 1000px; }
.theme-premium .sidebar { background: var(--theme-navigation); border-right: 1px solid rgba(255,255,255,0.1); }

/* Theme: Mobile (App-like desktop) */
.theme-mobile .app-frame { display: flex; flex-direction: column; background: var(--theme-background); }
.theme-mobile .sidebar { display: none !important; }
.theme-mobile .bottom-nav { display: flex !important; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: var(--theme-card); border-top: 1px solid var(--theme-border); justify-content: space-around; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px rgba(0,0,0,0.05); }
.theme-mobile .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.65rem; color: var(--theme-text); opacity: 0.6; font-weight: 700; transition: color 0.2s; }
.theme-mobile .bottom-nav a:hover, .theme-mobile .bottom-nav a.active { color: var(--theme-button); opacity: 1; }
.theme-mobile .bottom-nav a span { font-size: 1.2rem; }
.theme-mobile .bottom-nav__primary { position: relative; top: -20px; background: var(--theme-button); color: var(--theme-background) !important; width: 50px; height: 50px; border-radius: 50%; justify-content: center; box-shadow: var(--shadow-md); opacity: 1 !important; }
.theme-mobile .app-main { margin-left: 0 !important; padding-bottom: 90px; }
html[dir="rtl"] .theme-mobile .app-main { margin-right: 0 !important; }
.theme-mobile .mobile-header { display: flex !important; background: var(--theme-navigation); color: #fff; position: sticky; top: 0; z-index: 40; }
.theme-mobile .mobile-header .brand { color: #fff; }
.theme-mobile .mobile-header .language-switcher { color: rgba(255,255,255,0.7); }
.theme-mobile .mobile-header .mini-avatar { background: var(--theme-button); color: var(--theme-navigation); }
.theme-mobile .page-wrap { max-width: 600px; margin: 0 auto; padding: 24px 16px 40px; }
.theme-mobile .panel, .theme-mobile .metric-card { padding: 20px; border-radius: var(--radius-lg); }
.theme-mobile .status-overview { flex-direction: column; align-items: flex-start; gap: 30px; padding: 30px 20px; border-radius: var(--radius-lg); }
.theme-mobile .status-rings { align-self: center; margin: 0; }
.theme-mobile .metrics-grid { grid-template-columns: 1fr; gap: 12px; }
.theme-mobile .split-section { grid-template-columns: 1fr; }
.theme-mobile .button { height: 56px; font-size: 1rem; border-radius: var(--radius-lg); }

@media (min-width: 761px) {
  .theme-mobile .app-frame { max-width: 420px; margin: 0 auto; box-shadow: var(--shadow-lg); min-height: 100vh; position: relative; border-left: 1px solid var(--theme-border); border-right: 1px solid var(--theme-border); }
  body.theme-mobile { background: #e8e8e8; }
  .theme-mobile .bottom-nav { position: absolute; }
}

/* ==================== ADMIN APPEARANCE ==================== */
.theme-showcase { margin-bottom: 40px; }
.theme-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.theme-card { background: var(--theme-card); border: 1px solid var(--theme-border); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.theme-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.theme-card--active-frontend { border-color: var(--theme-status-paid); box-shadow: 0 0 0 1px var(--theme-status-paid); }
.theme-mockup { height: 140px; background: #e0e0e0; position: relative; padding: 10px; display: flex; gap: 10px; border-bottom: 1px solid var(--theme-border); }
.mockup-sidebar { width: 40px; background: #333; border-radius: 4px; }
.mockup-main { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.mockup-header { height: 20px; background: #bbb; border-radius: 4px; }
.mockup-cards { display: flex; gap: 5px; flex: 1; }
.mockup-cards i { flex: 1; background: #fff; border-radius: 4px; display: block; }

.theme-mockup--classic .mockup-sidebar { border-radius: 0; background: #102725; }
.theme-mockup--classic .mockup-cards i { border-radius: 0; }
.theme-mockup--modern { background: #f0f0f0; }
.theme-mockup--modern .mockup-sidebar { border-radius: 12px; margin: 4px; background: #24104F; }
.theme-mockup--modern .mockup-header { border-radius: 12px; }
.theme-mockup--modern .mockup-cards i { border-radius: 12px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.theme-mockup--minimal { background: #fff; }
.theme-mockup--minimal .mockup-sidebar { background: transparent; border-right: 1px solid #ccc; width: 30px; }
.theme-mockup--minimal .mockup-cards i { background: transparent; border-bottom: 2px solid #ccc; border-radius: 0; }
.theme-mockup--premium { background: #f4efe7; padding: 15px; }
.theme-mockup--premium .mockup-sidebar { background: #211a16; }
.theme-mockup--premium .mockup-cards i { border-radius: 2px; border: 1px solid #d8c6aa; background: #fffdf9; }
.theme-mockup--mobile .mockup-sidebar { display: none; }
.theme-mockup--mobile { flex-direction: column; justify-content: space-between; }
.theme-mockup--mobile .mockup-main { flex: 1; margin-bottom: 20px; }
.theme-mockup--mobile::after { content: ""; position: absolute; bottom: 10px; left: 10px; right: 10px; height: 15px; background: #092F3D; border-radius: 8px; }

.theme-card-info { padding: 20px; display: flex; flex-direction: column; gap: 15px; flex: 1; }
.theme-card-info h3 { margin: 0; font-size: 1.2rem; }
.theme-status-badges { display: flex; flex-wrap: wrap; gap: 5px; min-height: 24px; }
.badge { font-size: 0.65rem; padding: 3px 8px; border-radius: 99px; font-weight: 700; }
.badge--frontend { background: var(--theme-status-paid); color: #fff; }
.badge--admin { background: var(--theme-status-invited); color: #fff; }
.badge--preview { background: var(--theme-status-reward); color: #fff; }
.theme-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

.palette-tabs { display: flex; gap: 10px; border-bottom: 1px solid var(--theme-border); margin-bottom: 20px; overflow-x: auto; }
.palette-tab { background: transparent; border: none; padding: 10px 20px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.palette-tab.active { color: var(--theme-button); border-bottom-color: var(--theme-button); }
.palette-form { display: none; }
.palette-form.active { display: block; }
.palette-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; margin-bottom: 20px; }
@media (max-width: 900px) { .palette-layout { grid-template-columns: 1fr; } }
.palette-controls { display: flex; flex-direction: column; gap: 30px; }
.color-group h4 { margin: 0 0 15px 0; font-size: 0.9rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; }
.color-input-wrap { display: flex; flex-direction: column; gap: 8px; font-size: 0.8rem; font-weight: 600; }
.color-picker-ui { display: flex; height: 36px; border: 1px solid var(--theme-border); border-radius: var(--radius-sm); overflow: hidden; }
.color-picker-ui input[type="color"] { width: 40px; height: 100%; border: none; padding: 0; cursor: pointer; background: transparent; }
.color-picker-ui input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-picker-ui input[type="color"]::-webkit-color-swatch { border: none; border-right: 1px solid var(--theme-border); }
.color-picker-ui input.color-hex { flex: 1; border: none; height: 100%; padding: 0 10px; font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; outline: none; background: var(--theme-background); color: var(--theme-text); }

.palette-live-preview { position: sticky; top: 20px; }
.preview-box { border: 1px solid var(--theme-border); border-radius: var(--radius-md); background: var(--theme-card); overflow: hidden; box-shadow: var(--shadow-sm); }
.preview-header { padding: 15px; border-bottom: 1px solid var(--theme-border); background: var(--theme-background); }
.preview-header h4 { margin: 0; font-size: 0.9rem; }
.preview-content { padding: 20px; background: var(--preview-background, var(--theme-background)); color: var(--preview-text, var(--theme-text)); display: flex; gap: 15px; min-height: 250px; }
.preview-nav { width: 40px; background: var(--preview-navigation, var(--theme-navigation)); border-radius: var(--radius-sm); }
.preview-body { flex: 1; display: flex; flex-direction: column; gap: 15px; }
.preview-hero { height: 60px; background: var(--preview-primary, var(--theme-primary)); border-radius: var(--radius-sm); display: flex; align-items: center; padding: 0 15px; color: var(--preview-card, var(--theme-card)); font-weight: bold; }
.preview-cards { display: flex; gap: 10px; }
.preview-card { flex: 1; height: 40px; background: var(--preview-card, var(--theme-card)); border: 1px solid var(--preview-border, var(--theme-border)); border-radius: var(--radius-sm); position: relative; }
.preview-card::after { content: ""; position: absolute; top: 10px; left: 10px; width: 8px; height: 8px; border-radius: 50%; }
.preview-card--paid::after { background: var(--preview-status-paid, var(--theme-status-paid)); }
.preview-card--invited::after { background: var(--preview-status-invited, var(--theme-status-invited)); }
.preview-btn { background: var(--preview-button, var(--theme-button)); color: var(--preview-card, var(--theme-card)); border: none; padding: 10px; border-radius: var(--radius-sm); font-weight: bold; margin-top: auto; cursor: default; font-family: var(--font-heading); text-align: center; }

.palette-actions { display: flex; gap: 15px; padding-top: 20px; border-top: 1px solid var(--theme-border); }
.package-display-form { background: var(--theme-card); padding: 15px; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); display: flex; flex-wrap: wrap; gap: 15px; align-items: center; margin-bottom: 10px; }
.package-display-form > * { margin: 0; }

.font-size-section { margin-bottom: 1.5rem; }
.font-size-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 28px; align-items: start; }
.font-size-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; }
.font-size-control { grid-template-columns: minmax(145px, 1fr) minmax(130px, 1.2fr) 58px; align-items: center; }
.font-size-control input { height: auto; padding: 0; }
.font-size-control output { font-variant-numeric: tabular-nums; text-align: right; color: var(--muted); font-weight: 800; }
.font-size-live-preview { display: grid; gap: 14px; padding: 22px; border: 1px solid var(--theme-border); border-radius: var(--radius-md); background: var(--theme-background); }
.font-size-live-preview h3, .font-size-live-preview p { margin: 0; }
.font-size-live-preview nav { color: var(--theme-link); font-size: var(--font-navigation-size); font-weight: 700; }
.font-preview-card, .font-preview-tree { padding: 14px; border-radius: var(--radius-sm); background: var(--theme-card); border: 1px solid var(--theme-border); }
.font-preview-card { font-size: var(--font-card-size); }
.font-preview-tree { font-size: var(--font-tree-size); }

@media (max-width: 820px) {
  .font-size-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .font-size-controls { grid-template-columns: 1fr; }
  .font-size-control { grid-template-columns: 1fr 54px; }
  .font-size-control > span { grid-column: 1 / -1; }
}

/* Participant Tree */
.tree-filter-bar { margin-top: 15px; }
.tree-filter-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 20px; }
.tree-filter-field label { display: block; font-size: 0.75rem; color: var(--muted); margin-bottom: 6px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.tree-filter-actions { display: flex; justify-content: flex-end; }

.tree-pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--theme-border); }
.tree-pagination-info { font-size: 0.8rem; color: var(--muted); font-weight: 700; }

.mono-id { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.05em; color: var(--muted); }

.qualification-mini { display: flex; flex-direction: column; gap: 6px; }
.qualification-mini strong { font-size: 0.75rem; }
.qual-bar { height: 4px; background: var(--theme-border); border-radius: 99px; overflow: hidden; width: 100px; max-width: 100%; }
.qual-fill { height: 100%; background: var(--green); border-radius: 99px; }

/* Tree Graph */
.tree-inspector-panel { scroll-margin-top: 20px; }
.tree-scroll-hint { margin: 0 0 4px; color: var(--muted); font-size: .75rem; text-align: center; }
.tree-graph-container { overflow-x: auto; padding: 24px 0 44px; scrollbar-gutter: stable; overscroll-behavior-inline: contain; }
.participant-hierarchy { --tree-line: #8ba19b; --node-width: 176px; min-width: 1040px; width: max-content; margin: 0 auto; padding: 4px 28px 20px; }
.participant-hierarchy__root { display: flex; justify-content: center; position: relative; z-index: 2; }

.tree-node-card { width: var(--node-width); min-height: 188px; box-sizing: border-box; background: var(--theme-card); border: 1px solid var(--theme-border); border-radius: 14px; padding: 14px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center; gap: 7px; position: relative; text-align: center; text-decoration: none; color: var(--ink); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.tree-node-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--ink); }
.tree-node-card--root { width: 230px; min-height: 210px; border: 2px solid var(--ink); box-shadow: var(--shadow-md); padding: 18px; }
.tree-node-card__position { color: var(--muted); font-size: 0.66rem !important; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.tree-node-card strong { max-width: 100%; font-size: 0.94rem !important; line-height: 1.25; overflow-wrap: anywhere; }
.tree-node-card--root strong { font-size: 1.1rem !important; }
.tree-node-card__id { font-family: var(--font-mono); color: var(--muted); font-size: 0.69rem !important; letter-spacing: 0.04em; }
.tree-node-card__package { max-width: 100%; min-height: 2.4em; color: var(--muted); font-size: 0.72rem !important; line-height: 1.2; overflow-wrap: anywhere; }
.tree-node-card__count { margin-top: auto; font-weight: 800; font-size: 1.28rem !important; line-height: 1; }
.tree-node-card small { color: var(--muted); font-size: 0.66rem !important; }
.tree-node-card .status-chip { max-width: 100%; }

.tree-node-card--empty { border: 1px dashed #a9b9b4; background: color-mix(in srgb, var(--theme-card) 74%, var(--theme-background)); box-shadow: none; color: var(--muted); }
.tree-node-card--empty:hover { transform: none; box-shadow: none; border-color: #7e948e; }
.tree-node-card--recorded { border-color: color-mix(in srgb, var(--green) 50%, var(--theme-border)); background: color-mix(in srgb, var(--theme-card) 92%, var(--green)); }
.tree-node-card--recorded:hover { transform: none; box-shadow: var(--shadow-sm); border-color: color-mix(in srgb, var(--green) 50%, var(--theme-border)); }
.tree-node-card__empty-icon { display: grid; place-items: center; width: 34px; height: 34px; margin: 8px 0 2px; border: 1px dashed currentColor; border-radius: 50%; font-size: 1.15rem !important; }

.tree-branch { position: relative; padding-top: 58px; }
.tree-branch::before { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 30px; background: var(--tree-line); transform: translateX(-50%); }
.tree-branch__rail { display: none; }
.tree-branch__children { display: grid; grid-template-columns: repeat(5, max-content); align-items: start; justify-content: center; gap: 28px; }
.tree-branch__slot { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.tree-branch__slot::before { content: ""; position: absolute; left: -14px; right: -14px; bottom: 100%; height: 2px; margin-bottom: 27px; background: var(--tree-line); }
.tree-branch__slot:first-child::before { left: 50%; }
.tree-branch__slot:last-child::before { right: 50%; }
.tree-branch__stem { position: absolute; left: 50%; bottom: 100%; width: 2px; height: 29px; background: var(--tree-line); transform: translateX(-50%); }
.tree-branch__slot > .tree-branch { width: max-content; }
.tree-branch__slot > .tree-branch .tree-branch__children { grid-template-columns: repeat(5, 154px); gap: 18px; }
.tree-branch__slot > .tree-branch .tree-node-card { --node-width: 154px; min-height: 178px; }

@media (max-width: 760px) {
  .tree-scroll-hint { text-align: start; }
  .tree-graph-container { margin-inline: -18px; padding-inline: 18px; scroll-snap-type: x proximity; scroll-padding-inline: calc(50% - 115px); }
  .participant-hierarchy { min-width: 940px; padding-inline: 18px; }
  .tree-node-card--root { scroll-snap-align: center; }
  .tree-branch__children { gap: 12px; }
}

/* Persisted Admin typography settings */
body { font-size: var(--font-body-size, 16px); }
body h1, body h2, body h3 { font-size: var(--font-heading-size, 28px) !important; }
.side-nav a, .bottom-nav a, .mobile-header { font-size: var(--font-navigation-size, 16px) !important; }
.button, button, .mini-action { font-size: var(--font-button-size, 16px) !important; }
input, select, textarea, label { font-size: var(--font-form-size, 16px) !important; }
.metric-card, .metric-card * { font-size: var(--font-card-size, 14px) !important; }
.tree-inspector-panel, .tree-inspector-panel *,
.tree-filter-bar, .tree-filter-bar * { font-size: var(--font-tree-size, 14px) !important; }
table, table th, table td, table td * { font-size: var(--font-table-size, 14px) !important; }


/* KHATTAH RESPONSIVE COMPLETE SIDE MENU */
.khattah-menu-toggle, .khattah-menu-close, .khattah-menu-overlay { display: none; }
@media (max-width: 1023px) {
  .app-body .app-frame { display: block; max-width: none; width: 100%; margin: 0; border: 0; box-shadow: none; }
  .app-body .app-main, html[dir="rtl"] .app-body .app-main,
  .app-body.theme-modern .app-main, .app-body.theme-mobile .app-main { margin: 0 !important; padding-bottom: 16px !important; width: 100%; min-width: 0; }
  .app-body .mobile-header, .app-body.theme-mobile .mobile-header { display: flex !important; position: sticky; top: 0; z-index: 40; gap: 10px; min-height: 68px; }
  .app-body .bottom-nav, .app-body.theme-mobile .bottom-nav { display: none !important; }
  .app-body .sidebar, .app-body.theme-mobile .sidebar, .app-body.theme-modern .sidebar {
    display: flex !important; position: fixed !important; top: 0 !important; bottom: 0 !important;
    left: 0 !important; right: auto !important; width: min(310px, 86vw) !important;
    height: 100dvh !important; margin: 0 !important; border-radius: 0 !important;
    z-index: 102 !important; transform: translateX(-105%); transition: transform .25s ease;
    overflow-y: auto; overscroll-behavior: contain; padding-top: 55px;
  }
  html[dir="rtl"] .app-body .sidebar { left: 0 !important; right: auto !important; }
  .app-body.khattah-menu-open .sidebar { transform: translateX(0) !important; }
  .app-body.khattah-menu-open { overflow: hidden; }
  .app-body .khattah-menu-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; height: 44px; background: transparent; color: inherit; border: 0; border-radius: 8px; cursor: pointer; font-size: 26px; }
  .app-body .khattah-menu-close { display: flex; align-items: center; justify-content: center; position: absolute; top: 8px; right: 12px; width: 40px; height: 40px; background: rgba(255,255,255,.12); color: inherit; border: 0; border-radius: 8px; cursor: pointer; font-size: 30px; }
  .app-body .khattah-menu-overlay { display: block; position: fixed; inset: 0; z-index: 101; background: rgba(0,0,0,.55); border: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, visibility .25s ease; }
  .app-body.khattah-menu-open .khattah-menu-overlay { opacity: 1; visibility: visible; pointer-events: auto; }
  .app-body .sidebar-note { margin-top: 20px; }
  .app-body .sign-out { margin-top: 20px; }
}
@media (min-width: 1024px) {
  .app-body.theme-mobile .sidebar { display: flex !important; }
  .app-body.theme-mobile .bottom-nav { display: none !important; }
  .app-body.theme-mobile .app-frame { display: block; max-width: none; margin: 0; box-shadow: none; border: 0; }
  .app-body.theme-mobile .app-main { margin-left: 244px !important; padding-bottom: 0 !important; }
  html[dir="rtl"] .app-body.theme-mobile .app-main { margin-left: 0 !important; margin-right: 244px !important; }
  .app-body.theme-mobile .mobile-header { display: none !important; }
}

/* Password reset visibility icons */
.error-page .show-password {
  font-size: 0;
  width: 40px;
  height: 40px;
  top: 5px;
  right: 6px;
  display: grid;
  place-items: center;
}
.error-page .show-password::before {
  content: "";
  width: 22px;
  height: 22px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 4.5c-5 0-9.27 3.11-11 7.5 1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5Zm0 12.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10Zm0-2a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.error-page .show-password[data-visible="true"] {
  opacity: .55;
}
