/**
 * Home page — لجنة النظام
 * Loaded only on the public home route for clearer layering over Regna theme.
 */

:root {
  --home-accent: #2dc997;
  --home-accent-dim: rgba(45, 201, 151, 0.28);
  --home-accent-deep: #1a7a5f;
  --home-ink: #0f1f1c;
  --home-muted: #5c6d67;
  --home-surface: #f3f6f5;
  --home-surface-warm: #eef2f0;
  --home-surface-elevated: #ffffff;
  --home-radius: 14px;
  --home-radius-lg: 20px;
  --home-radius-xl: 26px;
  --home-shadow-sm: 0 1px 3px rgba(15, 31, 28, 0.06);
  --home-shadow-md: 0 8px 30px rgba(15, 31, 28, 0.08);
  --home-shadow-lg: 0 24px 60px rgba(15, 31, 28, 0.12);
  --home-wave-cta: #131b19;
}

/*
 * layout.home is RTL: align select value + options to the right; reserve inline-end for chevron.
 * (Regna/BS mix used physical padding-left for the arrow — wrong for RTL text alignment.)
 */
body.layout-home .form-select:not([multiple]),
body.layout-home select.form-control:not([multiple]),
.home-livewire .form-select:not([multiple]),
.home-livewire select.form-control:not([multiple]) {
  direction: rtl !important;
  text-align: right !important;
  text-align-last: right !important;
  padding-inline-start: 0.9rem !important;
  padding-inline-end: 2.35rem !important;
  background-position: left 0.75rem center !important;
}

body.layout-home .form-select option,
body.layout-home select.form-control option,
.home-livewire .form-select option,
.home-livewire select.form-control option {
  direction: rtl;
  text-align: right;
}

.form-select[multiple],
select.form-control[multiple] {
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
  background-image: none !important;
}

.home-livewire ::selection {
  background: rgba(45, 201, 151, 0.28);
  color: var(--home-ink);
}

/* ---- layout.home: avoid horizontal scroll / iOS text zoom ---- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.layout-home {
  overflow-x: clip;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}

body.layout-home .home-livewire {
  min-width: 0;
  max-width: 100%;
}

/* ---- Hero ---- */
#hero.home-hero-section {
  position: relative;
  background-color: #080f0d;
  background-size: cover;
  background-position: center center;
}

/* Landing: background image (Regna default: img/hero-bg.jpg) */
#hero.home-hero-section--landing {
  background-color: #0a1412;
  background-image: url("../img/hero-bg.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /*
   * Regna style.css: #hero { height: 100vh } and section { overflow: hidden }.
   * That clips in-flow hero content (bulletin cards, announcement, FB card CTA).
   */
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: visible;
}

/* Fixed attachment: desktop pointer devices only (avoids iOS / mobile viewport glitches) */
@media (min-width: 1024px) and (hover: hover) {
  #hero.home-hero-section--landing {
    background-attachment: fixed;
  }
}

#hero.home-hero-section::before {
  content: "";
  background: linear-gradient(
    165deg,
    rgba(6, 18, 15, 0.5) 0%,
    rgba(0, 0, 0, 0.38) 50%,
    rgba(5, 22, 18, 0.52) 100%
  );
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#hero.home-hero-section--landing::before {
  background: linear-gradient(
    165deg,
    rgba(4, 14, 12, 0.72) 0%,
    rgba(0, 0, 0, 0.5) 45%,
    rgba(6, 20, 17, 0.68) 100%
  );
}

/* Soft vignette for depth (modern stacked layers) */
#hero.home-hero-section--landing::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 95% 75% at 50% 35%,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.42) 100%
  );
}

#hero .hero-container {
  position: relative;
  z-index: 1;
  padding-left: clamp(1.25rem, 4vw, 2rem);
  padding-right: clamp(1.25rem, 4vw, 2rem);
  padding-top: clamp(6rem, 15vh, 10rem);
  padding-bottom: clamp(3.5rem, 9vh, 6rem);
}

#hero.home-hero-section--landing .hero-container {
  justify-content: flex-start;
  align-items: center;
  padding-top: clamp(7.5rem, 19vh, 12rem);
  /* Extra space so last cards / CTA sit above the decorative wave */
  padding-bottom: calc(clamp(4.25rem, 11vh, 7.5rem) + clamp(48px, 8vw, 84px));
}

/* No fixed header on landing — less top offset */
body.layout-home-landing #hero.home-hero-section--landing .hero-container {
  padding-top: clamp(3.25rem, 9vh, 6rem);
}

/* Constrain and inset main hero stack for clearer margins */
#hero.home-hero-section--landing .home-hero-inner {
  width: 100%;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(0.5rem, 2vw, 1rem);
  padding-right: clamp(0.5rem, 2vw, 1rem);
}

/* Bottom wave: soft transition from hero into CTA band */
.home-hero-wave-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  line-height: 0;
  pointer-events: none;
}

.home-hero-wave-wrap svg {
  display: block;
  width: 100%;
  height: clamp(52px, 9vw, 84px);
}

.home-hero-portraits {
  display: flex;
  gap: clamp(1rem, 3vw, 1.75rem);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.home-hero-portraits figure {
  margin: 0;
  padding: 0.45rem;
  background: linear-gradient(155deg, #ffffff 0%, #e8efed 100%);
  border-radius: 50%;
  outline: 2px solid rgba(255, 255, 255, 0.22);
  outline-offset: 3px;
  box-shadow:
    var(--home-shadow-md),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease, outline-color 0.3s ease;
}

.home-hero-portraits figure:hover {
  transform: translateY(-6px) scale(1.02);
  outline-color: rgba(45, 201, 151, 0.45);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.28) inset;
}

.home-hero-portraits img {
  width: clamp(112px, 26vw, 140px);
  height: clamp(112px, 26vw, 140px);
  object-fit: contain;
  object-position: center;
  background: linear-gradient(180deg, #eef1f0 0%, #e2e8e6 100%);
  border-radius: 50%;
  display: block;
}

.home-hero-title {
  margin: 1.15rem 0 0.4rem;
  font-size: clamp(1.85rem, 5.2vw, 3.05rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    0 12px 40px rgba(0, 0, 0, 0.35);
}

.home-hero-title__line2 {
  margin-top: 0.2rem;
  font-size: clamp(1.35rem, 4vw, 2.35rem);
  font-weight: 600;
  opacity: 0.96;
}

.home-hero-subtitle {
  margin: 0 0 1.25rem;
  font-size: clamp(1.02rem, 2.6vw, 1.45rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.home-hero-divider {
  width: min(300px, 78vw);
  height: 4px;
  margin: 0 auto 1.35rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(45, 201, 151, 0.35),
    var(--home-accent),
    rgba(45, 201, 151, 0.35),
    transparent
  );
  box-shadow: 0 0 28px rgba(45, 201, 151, 0.28);
  opacity: 0.98;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  align-items: stretch;
}

.home-hero-actions .btn-get-started {
  margin: 0;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 1.75rem;
  border-radius: 999px;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  gap: 0.4rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;
}

.home-hero-actions .btn-get-started:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.home-hero-actions .btn-get-started:active {
  transform: scale(0.98);
}

/* Hero: Facebook-style page card (main landing) */
.home-hero-fb-card-wrap {
  width: 100%;
  max-width: 22.5rem;
  margin: clamp(1.25rem, 3.2vh, 1.85rem) auto 0;
}

.home-hero-fb-card {
  display: block;
  overflow: hidden;
  border-radius: var(--home-radius-lg);
  text-decoration: none !important;
  color: inherit;
  background: #fff;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.07),
    0 18px 40px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.25s cubic-bezier(0.34, 1.25, 0.64, 1),
    box-shadow 0.25s ease;
}

.home-hero-fb-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 12px rgba(0, 0, 0, 0.08),
    0 26px 50px rgba(0, 0, 0, 0.32);
}

.home-hero-fb-card:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.95);
  outline-offset: 4px;
}

.home-hero-fb-card__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  background: #1877f2;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  direction: ltr;
  justify-content: flex-start;
}

.home-hero-fb-card__bar-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  font-size: 0.95rem;
  line-height: 1;
}

.home-hero-fb-card__main {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1rem 0.85rem;
  text-align: right;
  direction: rtl;
}

.home-hero-fb-card__avatar {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #e7f1ff 0%, #cfe4ff 100%);
  color: #1877f2;
  font-size: 1.65rem;
  line-height: 1;
  border: 1px solid rgba(24, 119, 242, 0.2);
}

.home-hero-fb-card__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.home-hero-fb-card__page-name {
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.35;
  color: #050505;
  letter-spacing: -0.01em;
}

.home-hero-fb-card__page-type {
  font-size: 0.78rem;
  color: #65676b;
  font-weight: 600;
}

.home-hero-fb-card__page-hint {
  font-size: 0.8rem;
  color: #65676b;
  line-height: 1.45;
  margin-top: 0.15rem;
}

.home-hero-fb-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.35rem 0.85rem 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  background: #1877f2;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  transition: filter 0.2s ease, background 0.2s ease;
}

.home-hero-fb-card__cta .bi {
  font-size: 0.95em;
  opacity: 0.95;
}

.home-hero-fb-card:hover .home-hero-fb-card__cta {
  filter: brightness(1.06);
}

#hero.home-hero-section .btn-get-started.btn-quiz {
  border-color: var(--home-accent);
  background: rgba(45, 201, 151, 0.22);
  color: #fff;
}

#hero.home-hero-section .btn-get-started.btn-quiz:hover {
  background: var(--home-accent);
  border-color: var(--home-accent);
  color: #fff;
}

#hero.home-hero-section .btn-get-started.btn-success {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.85);
}

#hero.home-hero-section .btn-get-started.btn-success:hover {
  background: var(--home-accent);
  border-color: var(--home-accent);
  color: #fff;
}

.home-hero-announcement {
  max-width: 44rem;
  margin: 0.85rem auto 1.35rem;
  padding: 1.1rem 1.4rem;
  background: rgba(255, 255, 255, 0.11);
  border-radius: var(--home-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.97);
  font-size: clamp(0.88rem, 2vw, 1.04rem);
  line-height: 1.65;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.home-hero-announcement--after-cta {
  margin-top: clamp(1.35rem, 3.5vh, 2rem);
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
}

/* Hero bulletins (news + notices) */
.home-hero-bulletins {
  width: min(100%, 54rem);
  margin: clamp(1rem, 2.8vh, 1.55rem) auto 0;
}

.home-hero-bulletins__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 992px) {
  .home-hero-bulletins__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

.home-hero-bulletin-card {
  position: relative;
  height: 100%;
  padding: 1rem 1.05rem 1rem;
  border-radius: calc(var(--home-radius-lg) - 2px);
  text-align: right;
  color: #fff;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.09) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 10px 34px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-hero-bulletin-card::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 4px;
  height: 100%;
  border-radius: 4px 0 0 4px;
  background: rgba(255, 255, 255, 0.65);
}

.home-hero-bulletin-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.home-hero-bulletin-card--news::before {
  background: linear-gradient(180deg, #2dc997 0%, #1a7a5f 100%);
}

.home-hero-bulletin-card--notice::before {
  background: linear-gradient(180deg, #ffc107 0%, #e0a800 100%);
}

.home-hero-bulletin-card__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
}

.home-hero-bulletin-card__icon {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.home-hero-bulletin-card--news .home-hero-bulletin-card__icon {
  color: #7bf0cd;
}

.home-hero-bulletin-card--notice .home-hero-bulletin-card__icon {
  color: #ffe082;
}

.home-hero-bulletin-card__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.home-hero-bulletin-card__body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
}

/* ---- CTA band ---- */
#call-to-action.home-cta-band {
  position: relative;
  margin-top: -1px;
  padding: clamp(4.5rem, 12vw, 6.5rem) 0 !important;
  overflow: hidden;
  /* call-to-action-bg.jpg: scroll attachment keeps image centered in this section (fixed = viewport crop / “strip at bottom”) */
  background-image: linear-gradient(rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.58)),
    url("../img/call-to-action-bg.jpg");
  background-size: cover;
  /* CTA bg: lower vertical % (6–11) moves the pyramids / caravan higher in the band (cover). */
  background-position: center 6%;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

@media (min-width: 768px) {
  #call-to-action.home-cta-band {
    background-position: center 9%;
  }
}

@media (min-width: 1200px) {
  #call-to-action.home-cta-band {
    background-position: center 11%;
  }
}

/* Neutral transition to registration note — no green tint */
.home-cta-data-bridge {
  display: block;
  height: clamp(20px, 4vw, 36px);
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 0;
  background: #ffffff;
}

/* Removed green wash over CTA */
#call-to-action.home-cta-band::before {
  display: none;
}

#call-to-action.home-cta-band .container {
  position: relative;
  z-index: 1;
}

.home-cta-band .cta-title {
  font-size: clamp(1.4rem, 3.6vw, 1.95rem);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.home-cta-band .cta-text {
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.98rem;
  line-height: 1.7;
  opacity: 0.92;
}

.home-cta-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 58rem;
  margin-inline: auto;
  text-align: center;
}

@media (min-width: 768px) {
  .home-cta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

@media (min-width: 1200px) {
  .home-cta-grid {
    gap: 1.5rem;
  }
}

.home-action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 1.65rem 1.35rem 1.55rem;
  border-radius: var(--home-radius-xl);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff !important;
  text-decoration: none !important;
  text-align: center;
  box-shadow: var(--home-shadow-md), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transition: transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1),
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.home-action-card:hover:not(.home-action-card--disabled) {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.home-action-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.home-action-card--disabled {
  opacity: 0.48;
  cursor: not-allowed;
  pointer-events: none;
}

.home-action-card--primary {
  border-top: 3px solid #4dabf7;
  border-inline-end: 3px solid rgba(77, 171, 247, 0.55);
}

.home-action-card--success {
  border-top: 3px solid #51cf66;
  border-inline-end: 3px solid rgba(81, 207, 102, 0.55);
}

.home-action-card--muted {
  border-top: 3px solid rgba(255, 255, 255, 0.55);
  border-inline-end: 3px solid rgba(255, 255, 255, 0.35);
}

.home-action-card__status {
  position: absolute;
  top: 0.65rem;
  inset-inline-end: 0.65rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(220, 53, 69, 0.55);
  border-radius: 6px;
}

.home-action-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  margin-bottom: 0.95rem;
  font-size: 1.55rem;
  line-height: 1;
  border-radius: 50%;
  opacity: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.home-action-card--primary .home-action-card__icon {
  background: rgba(77, 171, 247, 0.22);
  border-color: rgba(77, 171, 247, 0.45);
}

.home-action-card--success .home-action-card__icon {
  background: rgba(81, 207, 102, 0.22);
  border-color: rgba(81, 207, 102, 0.45);
}

.home-action-card--muted .home-action-card__icon {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

.home-action-card__title {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.home-action-card__hint {
  font-size: 0.86rem;
  opacity: 0.88;
  margin: 0;
  line-height: 1.6;
  flex-grow: 1;
  max-width: 17.5rem;
}

/* ---- Data / panels ---- */
.home-data-section {
  margin-top: -1px;
  padding: clamp(2.75rem, 6vw, 4rem) 0 clamp(4rem, 10vw, 6rem);
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.home-section-heading {
  text-align: center;
  margin-bottom: 1.75rem;
}

.home-section-heading h2 {
  font-size: clamp(1.28rem, 3.1vw, 1.65rem);
  font-weight: 800;
  color: var(--home-ink);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.home-section-heading p {
  margin: 0;
  color: var(--home-muted);
  font-size: 0.95rem;
}

.home-panel {
  background: var(--home-surface-elevated);
  border-radius: var(--home-radius-xl);
  padding: clamp(1.45rem, 4vw, 2.1rem);
  box-shadow: var(--home-shadow-sm), var(--home-shadow-md);
  border: 1px solid rgba(15, 31, 28, 0.06);
  margin-bottom: 1.5rem;
}

.home-panel__title {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--home-ink);
  margin-bottom: 1rem;
  text-align: center;
}

.home-panel .form-control,
.home-panel .form-select {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-panel .form-control {
  padding: 0.62rem 0.9rem;
}

.home-panel .form-control:focus,
.home-panel .form-select:focus {
  border-color: var(--home-accent);
  box-shadow: 0 0 0 0.2rem var(--home-accent-dim);
}

.home-btn-search {
  border-radius: 12px !important;
  font-weight: 600;
  padding-top: 0.62rem !important;
  padding-bottom: 0.62rem !important;
  background: linear-gradient(180deg, #ffc107 0%, #e0a800 100%) !important;
  border: none !important;
  color: #1a1a1a !important;
  box-shadow: 0 4px 14px rgba(224, 168, 0, 0.35);
}

.home-btn-search:hover {
  filter: brightness(1.05);
  color: #111 !important;
}

/* ---- User result cards ---- */
.home-user-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-user-card {
  display: flex;
  flex-direction: row-reverse;
  align-items: stretch;
  gap: 1.15rem;
  padding: 1.2rem 1.3rem;
  background: var(--home-surface-elevated);
  border-radius: var(--home-radius-lg);
  border: 1px solid rgba(15, 31, 28, 0.06);
  box-shadow: var(--home-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-user-card:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 201, 151, 0.35);
  box-shadow: var(--home-shadow-md);
}

.home-user-card__avatar {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, #e9ecef, #dee2e6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.home-user-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.home-user-card__avatar .bi {
  font-size: 2.25rem;
  color: #868e96;
}

.home-user-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  text-align: right;
}

.home-user-card__name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--home-ink);
  margin: 0;
}

.home-user-card__sector {
  font-size: 0.92rem;
  color: var(--home-muted);
  margin: 0;
}

.home-user-card__sector span {
  color: var(--home-accent-deep);
  font-weight: 600;
}

.home-user-card__action .btn {
  border-radius: 12px;
  font-weight: 600;
  padding: 0.5rem 1rem;
}

/* ---- Home header bar ---- */
#header.home-header-brand {
  padding: 0.65rem 0;
}

/* Landing: no white bar — sits on hero image */
#header.home-header-over-hero {
  min-height: 72px;
  height: auto !important;
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

#header.home-header-over-hero.header-transparent {
  background: transparent !important;
}

#header.home-header-over-hero.header-scrolled {
  background: rgba(6, 12, 11, 0.62) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#header.home-header-over-hero .home-brand {
  color: rgba(255, 255, 255, 0.96) !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

#header.home-header-over-hero .home-brand:hover {
  color: #fff !important;
  opacity: 0.95;
}

#header.home-header-over-hero .home-brand.home-brand--active {
  color: #fff !important;
  text-shadow:
    0 0 14px rgba(45, 201, 151, 0.55),
    0 1px 10px rgba(0, 0, 0, 0.45);
}

#header.home-header-over-hero .home-brand img {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* Light frosted bar (inner pages) */
#header.home-header-public {
  min-height: 72px;
  height: auto !important;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

#header.home-header-public.header-transparent {
  background: rgba(255, 255, 255, 0.94) !important;
}

#header.home-header-public.header-scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
}

.home-header-brand .home-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  transition: color 0.2s ease, opacity 0.2s ease;
}

#header.home-header-public .home-brand > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#header.home-header-public .home-brand {
  color: var(--home-ink);
  text-shadow: none;
}

.home-header-brand .home-brand:hover {
  color: #fff;
  opacity: 0.92;
}

#header.home-header-public .home-brand:hover {
  color: #0f1f1c;
  opacity: 1;
}

#header.home-header-public .home-brand.home-brand--active {
  color: var(--home-accent-deep);
}

.home-header-brand .home-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#header.home-header-public .home-brand img {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.home-header-actions {
  flex-shrink: 0;
}

.home-header-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--home-ink) !important;
  background: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease;
}

.home-header-home-btn:hover {
  background: rgba(45, 201, 151, 0.12) !important;
  border-color: rgba(45, 201, 151, 0.45) !important;
  color: var(--home-accent-deep) !important;
  box-shadow: 0 2px 8px rgba(45, 201, 151, 0.15);
}

.home-header-home-btn:focus-visible {
  outline: 2px solid var(--home-accent);
  outline-offset: 2px;
}

.home-brand.home-brand--active {
  opacity: 1;
}

/* Subpages: offset fixed header (no full-viewport hero) */
.home-main--subpage {
  padding-top: 88px;
}

/* Landing shortcuts under hero wave — same art as hero, heavy white wash */
.home-landing-next {
  position: relative;
  background-color: #ffffff;
  background-image: url("../img/hero-bg.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* Regna uses section { overflow: hidden }; allow tile shadows not to clip */
  overflow: visible;
}

.home-landing-next::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.93) 0%,
    rgba(255, 255, 255, 0.96) 45%,
    #ffffff 100%
  );
  pointer-events: none;
}

.home-landing-next .container {
  position: relative;
  z-index: 1;
}

.home-landing-next__header {
  margin-bottom: 2rem;
}

.home-landing-next__eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--home-muted);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
}

.home-landing-next__title {
  margin: 0;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 800;
  color: var(--home-ink);
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .home-landing-next__header {
    margin-bottom: 2.5rem;
  }
}

.home-landing-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.85rem 1.45rem;
  border-radius: var(--home-radius-xl);
  text-decoration: none !important;
  color: var(--home-ink) !important;
  background: var(--home-surface-elevated);
  border: 1px solid rgba(15, 31, 28, 0.07);
  box-shadow: var(--home-shadow-sm), var(--home-shadow-md);
  height: 100%;
  min-height: 210px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.home-landing-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    #5c6670 0%,
    #3d4a5c 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.home-landing-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: var(--home-shadow-lg);
}

.home-landing-tile:hover::before {
  opacity: 1;
}

.home-landing-tile:focus-visible {
  outline: 2px solid #495057;
  outline-offset: 3px;
}

.home-landing-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #3d4450;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 14px;
}

.home-landing-tile__title {
  font-weight: 800;
  font-size: 1.13rem;
  margin-bottom: 0.5rem;
  color: var(--home-ink);
  letter-spacing: -0.02em;
}

.home-landing-tile__hint {
  font-size: 0.89rem;
  color: var(--home-muted);
  line-height: 1.55;
  margin: 0;
}

/* /data hub (no flow selected) */
.home-data-section--hub {
  padding-top: clamp(2.25rem, 5vw, 3.25rem);
}

.home-hub-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .home-hub-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-hub-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.45rem 1.1rem;
  border-radius: var(--home-radius-lg);
  background: var(--home-surface-elevated);
  border: 1px solid rgba(15, 31, 28, 0.07);
  text-decoration: none !important;
  color: var(--home-ink) !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  box-shadow: var(--home-shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-hub-card .bi {
  font-size: 1.9rem;
  color: var(--home-accent-deep);
}

.home-hub-card:hover:not(.home-hub-card--disabled) {
  transform: translateY(-3px);
  border-color: rgba(45, 201, 151, 0.4);
  box-shadow: var(--home-shadow-md);
}

.home-hub-card--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.home-hub-hint {
  color: var(--home-muted);
  font-size: 0.92rem;
}

.home-hub-hint a {
  color: var(--home-accent-deep);
  font-weight: 600;
}

.home-registration-note {
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.home-registration-note__text {
  font-size: 0.95rem;
  color: var(--home-muted);
  line-height: 1.6;
}

.home-registration-note__text a {
  color: var(--home-accent-deep);
  font-weight: 700;
}

/* Wraps /registration/* main content; autocomplete=off applies to descendant controls */
.home-registration-shell {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Form block (livewire form-user) inside data section */
.home-data-section .container > .card.card-body {
  border-radius: var(--home-radius-xl);
  border: 1px solid rgba(15, 31, 28, 0.07);
  box-shadow: var(--home-shadow-sm), var(--home-shadow-md);
  padding: clamp(1.15rem, 3vw, 1.85rem);
}

.home-data-section .container > .card.card-body.home-form-user {
  padding: clamp(1.25rem, 3.5vw, 2rem);
  border-inline-start: 4px solid var(--home-accent);
  background: linear-gradient(
    180deg,
    rgba(45, 201, 151, 0.06) 0%,
    var(--home-surface-elevated) 14%,
    var(--home-surface-elevated) 100%
  );
  box-shadow:
    var(--home-shadow-sm),
    var(--home-shadow-md),
    0 0 0 1px rgba(45, 201, 151, 0.1);
}

/* ---- User registration / update form (form-user) ---- */
.home-form-user {
  --home-form-focus: rgba(45, 201, 151, 0.28);
  direction: rtl;
  text-align: start;
  font-feature-settings: "kern" 1;
}

.home-form-user__input-text {
  text-align: start !important;
}

.home-form-user__input-mono {
  text-align: center !important;
  font-variant-numeric: tabular-nums;
}

.home-form-user__section-head {
  margin-top: 0.1rem;
}

.home-form-user__section-head--spaced {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px dashed rgba(45, 201, 151, 0.35);
}

.home-form-user__section-kicker {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--home-accent-deep);
  margin-bottom: 0.45rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(45, 201, 151, 0.18) 0%,
    rgba(45, 201, 151, 0.08) 100%
  );
  border: 1px solid var(--home-accent-dim);
}

.home-form-user__section-label {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--home-ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1.35;
}

.home-form-user__section-label .bi {
  color: var(--home-accent-deep);
  opacity: 0.88;
  font-size: 1.08rem;
  flex-shrink: 0;
}

.home-form-user__deacon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.1rem;
  min-height: 2.85rem;
  padding: 0.5rem 0.85rem;
  background: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
}

.home-form-user__deacon .form-check-inline {
  margin: 0;
  padding-top: 0.1rem;
  padding-bottom: 0.1rem;
}

.home-form-user__header {
  margin-bottom: 1.35rem;
  padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1rem, 2.5vw, 1.35rem) 1.1rem;
  border-bottom: 1px solid rgba(45, 201, 151, 0.22);
  border-radius: var(--home-radius-lg);
  background: linear-gradient(
    135deg,
    rgba(45, 201, 151, 0.12) 0%,
    rgba(238, 242, 240, 0.95) 40%,
    #ffffff 100%
  );
  text-align: center;
  box-shadow: 0 6px 24px rgba(15, 31, 28, 0.05);
}

@media (min-width: 768px) {
  .home-form-user__header {
    text-align: start;
  }
}

.home-form-user__title {
  font-size: clamp(1.2rem, 3vw, 1.5rem) !important;
  font-weight: 800 !important;
  color: var(--home-ink) !important;
  margin: 0 0 0.35rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .home-form-user__title {
    justify-content: flex-start;
  }
}

.home-form-user__title .bi {
  opacity: 0.85;
  font-size: 1.1em;
}

.home-form-user__subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--home-muted);
  line-height: 1.5;
}

.home-form-user label.block,
.home-form-user__field label:not(.form-check-label) {
  font-size: 0.875rem;
  font-weight: 600;
}

.home-form-user label.block {
  color: var(--home-muted) !important;
}

.home-form-user__field {
  min-width: 0;
}

/*
 * Bootstrap only shows .invalid-feedback as display:block when it is a *sibling* after .is-invalid.
 * Some fields (e.g. checkbox + wrapper) break that pairing; keep server/Livewire messages visible.
 */
.home-form-user__field .invalid-feedback,
.home-form-user__instructions .invalid-feedback {
  display: block !important;
}

.home-form-user__value {
  min-height: 2.85rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: start;
  padding: 0.55rem 1rem;
  background: linear-gradient(180deg, #f8f9fa 0%, #f1f3f5 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-inline-start: 3px solid rgba(45, 201, 151, 0.45);
  border-radius: 12px;
  font-weight: 600;
  color: var(--home-ink);
  line-height: 1.4;
}

.home-form-user__value--mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.home-form-user .form-control,
.home-form-user .form-select,
.home-form-user__control {
  border-radius: 12px !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  font-size: 0.95rem;
}

.home-form-user .form-control:not(select),
.home-form-user textarea.home-form-user__control,
.home-form-user input.home-form-user__control:not([type="file"]) {
  padding: 0.62rem 0.9rem !important;
}

/*
 * Bootstrap “is-invalid” paints the info icon on the physical right; for RTL home forms
 * we move it to the physical left and mirror padding (requested UX).
 */
.home-form-user input.form-control.is-invalid:not([type="file"]),
.home-form-user input.home-form-user__control.is-invalid:not([type="file"]) {
  padding: 0.62rem 0.9rem !important;
  padding-left: calc(0.9rem + 1.5em + 0.1875rem) !important;
  background-position: left calc(0.375em + 0.1875rem) center !important;
}

.home-form-user textarea.form-control.is-invalid,
.home-form-user textarea.home-form-user__control.is-invalid {
  padding: 0.62rem 0.9rem !important;
  padding-left: calc(0.9rem + 1.5em + 0.1875rem) !important;
  background-position: top calc(0.375em + 0.1875rem) left calc(0.375em + 0.1875rem) !important;
}

.home-form-user .form-select.is-invalid:not([multiple]):not([size]),
.home-form-user select.form-select.is-invalid:not([multiple]):not([size]) {
  padding-inline-start: 0.9rem !important;
  padding-inline-end: calc(2.35rem + 1.125rem) !important;
  background-position:
    left 0.75rem center,
    left 2.35rem center !important;
  background-size:
    16px 12px,
    calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

.home-form-user .form-control:focus,
.home-form-user .form-select:focus {
  border-color: rgba(26, 122, 95, 0.55) !important;
  box-shadow: 0 0 0 0.2rem var(--home-form-focus) !important;
}

.home-form-user__textarea {
  min-height: 3.5rem;
  resize: vertical;
  line-height: 1.55;
  text-align: start;
}

.home-form-user__divider {
  margin: 0.5rem 0 1rem;
  opacity: 0.15;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.home-form-user__section-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--home-ink);
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.home-form-user__section-title .bi {
  color: var(--home-accent-deep);
  opacity: 0.9;
}

.home-form-user__instructions {
  background: linear-gradient(165deg, #f6f9fc 0%, #eef2f7 100%);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--home-radius-lg);
  padding: 1.25rem 1.35rem;
  margin-top: 0.25rem;
}

.home-form-user__instructions-title {
  color: var(--home-ink);
}

.home-form-user__instructions-lead {
  font-size: 0.9rem;
  color: var(--home-muted);
  line-height: 1.55;
}

.home-form-user__instructions-list {
  margin: 0 0 1rem;
  padding-inline-start: 1.1rem;
  font-size: 0.92rem;
  color: var(--home-muted);
  line-height: 1.65;
}

.home-form-user__instructions-list li + li {
  margin-top: 0.35rem;
}

.home-form-user__confirm {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.home-form-user__confirm-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  order: 1;
  width: 100%;
  max-width: 100%;
}

.home-form-user__confirm-row .form-check-input {
  float: none;
  margin: 0.3rem 0 0;
  flex-shrink: 0;
}

.home-form-user__confirm-row .form-check-label {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--home-ink);
  flex: 1;
  min-width: 0;
}

/* Force validation copy to its own row under the checkbox (never inline with the label). */
.home-form-user__confirm-feedback {
  width: 100%;
  max-width: 100%;
  display: block;
  flex: 0 0 auto;
  order: 2;
}

.home-form-user__confirm .invalid-feedback,
.home-form-user__confirm-feedback .invalid-feedback {
  width: 100% !important;
  max-width: 100%;
  display: block !important;
  margin-top: 0.2rem !important;
  margin-bottom: 0;
  text-align: start;
  clear: both;
}

.home-form-user__confirm--invalid {
  border-color: rgba(220, 53, 69, 0.5) !important;
  background: rgba(253, 242, 242, 0.75) !important;
}

.home-form-user__instructions .invalid-feedback {
  color: #b02a37;
  font-weight: 600;
}

.home-form-user__footer {
  margin-top: 1.5rem;
  padding: 1rem clamp(0.75rem, 3vw, 1.25rem);
  background: linear-gradient(180deg, #f8faf9 0%, #eef2f0 100%);
  border-radius: var(--home-radius-lg);
  border: 1px solid rgba(45, 201, 151, 0.18);
  box-shadow: 0 -4px 20px rgba(15, 31, 28, 0.04);
}

.home-form-user__submit {
  min-width: 12rem;
  box-shadow: 0 4px 18px rgba(45, 201, 151, 0.28);
  border-radius: 12px !important;
  font-weight: 700 !important;
}

/* Pending state driven by wire:loading.class on the button + wire:target (submit only) */
.home-form-user__submit .home-form-user__submit-loading {
  display: none !important;
}

.home-form-user__submit.home-form-user__submit--pending .home-form-user__submit-label {
  display: none !important;
}

.home-form-user__submit.home-form-user__submit--pending .home-form-user__submit-loading {
  display: inline-flex !important;
}

.home-form-user__submit--pending .spinner-border {
  border-width: 0.2em;
}

.home-form-user__grid--uploads {
  margin-top: 0.35rem;
  padding-top: 1.15rem;
  border-top: 1px dashed rgba(45, 201, 151, 0.28);
}

.home-form-user__city-loading {
  min-height: 1.35rem;
}

.home-form-user__grid--final-step {
  margin-top: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 31, 28, 0.09);
}

.home-form-user__grid--uploads .home-form-user__field {
  padding: 1rem 1.05rem 1.15rem;
  background: linear-gradient(
    165deg,
    rgba(45, 201, 151, 0.05) 0%,
    #ffffff 55%
  );
  border: 1px dashed rgba(45, 201, 151, 0.32);
  border-radius: var(--home-radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-form-user__grid--uploads .home-form-user__field:hover {
  border-color: rgba(26, 122, 95, 0.45);
  box-shadow: 0 6px 20px rgba(15, 31, 28, 0.06);
}

/* Image preview area sizing (spinner: assets/css/lw-upload-preview.css + upload-preview-loading component) */
.home-form-user__upload-preview {
  min-height: 5.5rem;
  min-width: 7.5rem;
  margin-top: 0.5rem;
}

.home-form-user__upload-thumb {
  display: block;
  position: relative;
  z-index: 1;
  width: 200px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: var(--home-radius, 12px);
}

.home-form-user__upload-thumb--sm {
  width: 100px;
}

.home-form-user .lw-upload-loading {
  border-radius: var(--home-radius, 12px);
}

.home-form-user .lw-upload-loading::after {
  border-color: rgba(45, 201, 151, 0.28);
  border-top-color: var(--home-accent, #2dc997);
}

@media (prefers-reduced-motion: reduce) {
  .home-form-user .lw-upload-loading::after {
    border-top-color: var(--home-accent-deep, #1a7a5f);
  }
}

.home-form-user__layout {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.home-form-user--update .home-form-user__header,
.home-form-user--edit-mode .home-form-user__header {
  border-bottom-color: rgba(13, 110, 253, 0.18);
  background: linear-gradient(
    135deg,
    rgba(13, 110, 253, 0.1) 0%,
    rgba(238, 244, 252, 0.98) 45%,
    #ffffff 100%
  );
}

.home-form-user__identity-summary {
  background: linear-gradient(165deg, #f0f7ff 0%, #e8f4fc 100%);
  border: 1px solid rgba(13, 110, 253, 0.14);
  border-radius: var(--home-radius-lg);
  padding: 1rem 1.15rem 1.15rem;
  margin-bottom: 0.15rem;
}

.home-form-user__identity-summary-head {
  margin-bottom: 0.85rem;
}

.home-form-user__identity-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0a58ca;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 110, 253, 0.2);
  margin-bottom: 0.45rem;
}

.home-form-user__identity-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--home-ink);
}

.home-form-user__identity-summary .home-form-user__value {
  min-height: auto;
  padding: 0.65rem 1rem;
  justify-content: flex-start;
  text-align: start;
}

.home-form-user__section-head--edit .home-form-user__section-hint {
  font-size: 0.88rem;
  color: var(--home-muted);
  line-height: 1.55;
  margin-top: 0.35rem;
}

.home-form-user__service-panel {
  background: rgba(255, 255, 255, 0.65);
  border-radius: var(--home-radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.25rem 0.15rem 0.5rem;
  margin-top: 0.35rem;
}

.home-form-user__service-panel .home-form-user__divider {
  margin-top: 0;
}

.home-form-user__service-panel .home-form-user__section-title {
  padding-inline: 0.35rem;
}

.home-form-user__service-panel .home-form-user__section-hint {
  font-size: 0.88rem;
  color: var(--home-muted);
  padding-inline: 0.35rem;
}

.home-form-user__pick-file {
  font-size: 0.9rem;
  border-radius: 12px !important;
  padding: 0.5rem 1rem !important;
}

.home-form-user__upload-hint {
  line-height: 1.45;
}

.home-form-user__preview-img {
  max-width: 100%;
  width: 200px;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: block;
}

.home-form-user__preview-img--saved {
  width: 160px;
  opacity: 0.95;
}

/* ---- Service response slot: loading state (phone search) ---- */
.home-service-response-slot {
  min-height: 0;
}

/* Relative box so loading layer can cover results without wire:loading.remove */
.home-service-response-slot--overlay {
  position: relative;
  min-height: 200px;
}

.home-service-response-slot__content {
  position: relative;
  z-index: 1;
}

.home-response-loading {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  padding: 2rem 1.25rem;
  border-radius: var(--home-radius-xl);
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 55%, #fde68a 100%);
  box-shadow: var(--home-shadow-sm), 0 8px 32px rgba(15, 31, 28, 0.07);
}

.home-response-loading--overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  min-height: 200px;
  margin: 0;
}

.home-response-loading__hero {
  width: 4.25rem;
  height: 4.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid rgba(217, 119, 6, 0.35);
  box-shadow: 0 4px 18px rgba(15, 31, 28, 0.08);
}

.home-response-loading__spinner {
  width: 2.25rem;
  height: 2.25rem;
  border-width: 0.2rem;
}

.home-response-loading__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--home-ink);
}

.home-response-loading__hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--home-muted);
  line-height: 1.5;
}

/* ---- Service / registration response (status & related flashes) ---- */
.home-service-response {
  position: relative;
  margin-top: 1.75rem;
  margin-bottom: 0;
  padding: 1.5rem 1.25rem 1.6rem;
  border-radius: var(--home-radius-xl);
  border: 1px solid transparent;
  box-shadow: var(--home-shadow-sm), 0 8px 32px rgba(15, 31, 28, 0.07);
  overflow: hidden;
}

.home-service-response--wait {
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 55%, #fde68a 100%);
  border-color: rgba(245, 158, 11, 0.28);
  color: var(--home-ink);
}

.home-service-response--success {
  background: linear-gradient(180deg, #f6fffc 0%, #d1fae5 50%, #a7f3d0 100%);
  border-color: rgba(45, 201, 151, 0.32);
}

.home-service-response--error {
  background: linear-gradient(180deg, #fffafa 0%, #ffe4e6 50%, #fecdd3 100%);
  border-color: rgba(220, 53, 69, 0.26);
}

/* Text dismiss — avoids looking like an “error X” next to status */
.home-service-response__dismiss {
  position: absolute;
  top: 0.65rem;
  inset-inline-end: 0.65rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.55rem;
  margin: 0;
  border: none;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--home-muted);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: color 0.2s ease, background 0.2s ease;
}

.home-service-response__dismiss:hover {
  color: var(--home-ink);
  background: rgba(255, 255, 255, 0.9);
}

.home-service-response__dismiss .bi {
  font-size: 0.85rem;
  opacity: 0.75;
}

.home-service-response__shell {
  max-width: 32rem;
  margin-inline: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: 0.35rem;
}

.home-service-response__hero {
  flex-shrink: 0;
  width: 4.25rem;
  height: 4.25rem;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid rgba(15, 31, 28, 0.08);
  box-shadow: 0 4px 18px rgba(15, 31, 28, 0.08);
}

.home-service-response--wait .home-service-response__hero {
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.35);
  background: rgba(255, 255, 255, 0.85);
}

.home-service-response--success .home-service-response__hero {
  color: var(--home-accent-deep);
  border-color: rgba(45, 201, 151, 0.4);
}

.home-service-response--error .home-service-response__hero {
  color: #c92a2a;
  border-color: rgba(201, 42, 42, 0.35);
}

.home-service-response__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.home-service-response__badge {
  display: inline-block;
  padding: 0.28rem 0.85rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 31, 28, 0.1);
  color: var(--home-ink);
  box-shadow: 0 1px 2px rgba(15, 31, 28, 0.05);
}

.home-service-response--wait .home-service-response__badge {
  border-color: rgba(217, 119, 6, 0.35);
  color: #92400e;
}

.home-service-response--success .home-service-response__badge {
  border-color: rgba(26, 122, 95, 0.38);
  color: var(--home-accent-deep);
}

.home-service-response--error .home-service-response__badge {
  border-color: rgba(201, 42, 42, 0.38);
  color: #9b2226;
}

.home-service-response__hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.95rem;
  color: var(--home-muted);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(15, 31, 28, 0.08);
  cursor: help;
}

.home-service-response__hint:hover {
  color: var(--home-accent-deep);
  border-color: rgba(45, 201, 151, 0.35);
}

.home-service-response__title {
  margin: 0 0 1rem;
  width: 100%;
  font-size: clamp(1.12rem, 3vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--home-ink);
  line-height: 1.35;
}

.home-service-response__verse {
  margin: 0 0 1rem;
  width: 100%;
  max-width: 28rem;
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--home-muted);
  background: rgba(255, 255, 255, 0.65);
  border-radius: var(--home-radius);
  border: 1px solid rgba(15, 31, 28, 0.06);
  border-inline-start: 3px solid var(--home-accent);
  text-align: start;
}

.home-service-response__verse-ref {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
  color: var(--home-accent-deep);
  letter-spacing: 0.02em;
}

.home-service-response__rule {
  width: min(100%, 20rem);
  height: 1px;
  margin: 0.75rem auto;
  background: rgba(15, 31, 28, 0.12);
  border: 0;
}

.home-service-response__rule--soft {
  opacity: 0.55;
}

.home-service-response__body {
  width: 100%;
  max-width: 28rem;
  margin-inline: auto;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.8;
  color: var(--home-ink);
  text-align: center;
}

.home-service-response__body hr {
  margin: 1.1rem auto;
  max-width: 16rem;
  border: 0;
  border-top: 1px solid rgba(15, 31, 28, 0.14);
}

.home-service-response__body b,
.home-service-response__body strong {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--home-ink);
  line-height: 1.5;
}

.home-service-response__footer {
  margin: 0.75rem 0 0;
  max-width: 26rem;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--home-muted);
}

@media (max-width: 575.98px) {
  .home-service-response {
    padding: 1.35rem 1rem 1.45rem;
  }

  .home-service-response__dismiss span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .home-service-response__dismiss {
    padding: 0.45rem;
    border-radius: 12px;
  }

  .home-service-response__hero {
    width: 3.85rem;
    height: 3.85rem;
    font-size: 1.75rem;
  }

  .home-service-response__verse {
    font-size: 0.8rem;
    padding: 0.75rem 0.85rem;
  }
}

/* ---- Small screens & notched devices ---- */
@media (max-width: 480px) {
  .home-hero-actions {
    width: 100%;
    padding-inline: 0.2rem;
  }

  .home-hero-actions .btn-get-started {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
    max-width: 22rem;
    margin-inline: auto;
  }

  .home-action-card {
    padding: 1.35rem 1.05rem 1.2rem;
  }

  .home-header-home-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.82rem;
  }

  #header.home-header-public .home-brand {
    font-size: 0.86rem;
    gap: 0.35rem;
  }

  #header.home-header-public .home-brand > span {
    max-width: min(50vw, 10.5rem);
  }
}

@media (max-width: 575.98px) {
  .home-user-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .home-user-card__body {
    text-align: center;
    align-items: center;
  }

  .home-user-card__action {
    width: 100%;
  }

  .home-user-card__action .btn {
    width: 100%;
  }

  .home-form-user__submit {
    min-width: 0;
    width: 100%;
  }
}

/* Regna default back-to-top is brand green; neutral on home bundle pages */
.back-to-top {
  background: #3d4450;
  bottom: max(15px, env(safe-area-inset-bottom, 0px) + 8px) !important;
  right: max(15px, env(safe-area-inset-right, 0px) + 4px) !important;
}
.back-to-top:hover {
  background: #2c3338;
  color: #fff;
}

/* Livewire DOM updates don’t re-run AOS — neutralize any leftover data-aos in this tree */
.home-livewire [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ---- Full-page preloader (initial load) + Livewire overlay ---- */
.home-preloader {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #0a1210 0%, #152a24 45%, var(--home-accent-deep, #1a7a5f) 100%);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.home-preloader.home-preloader--done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.home-preloader__inner {
  text-align: center;
  color: #fff;
}

.home-preloader__text {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.92;
}

.home-preloader__jumper {
  position: relative;
  width: 50px;
  height: 50px;
  margin: 0 auto;
}

.home-preloader__jumper > div {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  animation: home-preloader-jump 1s linear infinite;
  animation-fill-mode: both;
}

.home-preloader__jumper > div:nth-child(2) {
  animation-delay: 0.33333s;
}

.home-preloader__jumper > div:nth-child(3) {
  animation-delay: 0.66666s;
}

@keyframes home-preloader-jump {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  5% {
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-preloader__jumper > div {
    animation: none;
    opacity: 0.85;
    transform: scale(1);
  }

  .home-preloader {
    transition: opacity 0.2s ease;
  }
}

/* ---- Suspended user (blocked) — full page notice ---- */
.home-service-suspended {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2.5rem, 6vw, 4rem);
  min-height: 42vh;
}

.home-service-suspended__card {
  position: relative;
  width: min(100%, 520px);
  margin-inline: auto;
  padding: clamp(1.75rem, 4vw, 2.35rem) clamp(1.35rem, 4vw, 2rem) 1.5rem;
  background: var(--home-surface-elevated, #fff);
  border-radius: var(--home-radius-lg, 20px);
  box-shadow: var(--home-shadow-lg, 0 24px 60px rgba(15, 31, 28, 0.12));
  text-align: center;
  overflow: hidden;
}

.home-service-suspended__icon-wrap {
  margin-bottom: 1rem;
}

.home-service-suspended__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  background: #dc3545;
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
}

.home-service-suspended__greeting {
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  font-weight: 600;
  color: var(--home-ink, #0f1f1c);
  margin: 0 0 0.35rem;
  line-height: 1.55;
}

.home-service-suspended__greeting-mark {
  color: #dc3545;
  font-size: 1.1em;
  vertical-align: -0.12em;
  margin-inline-start: 0.35rem;
}

.home-service-suspended__rule {
  margin: 1rem auto;
  max-width: 85%;
  opacity: 0.35;
}

.home-service-suspended__body {
  font-size: clamp(0.98rem, 2.2vw, 1.12rem);
  color: var(--home-muted, #5c6d67);
  margin: 0 0 1.25rem;
  line-height: 1.65;
}

.home-service-suspended__accent {
  position: absolute;
  inset-inline-end: 0;
  bottom: 0;
  width: 3.5rem;
  height: 4px;
  border-radius: 3px 0 0 0;
  background: var(--home-accent, #2dc997);
}

.home-service-suspended__footer {
  padding-top: 0.25rem;
}

/* ---- Global responsive guardrails (public/home pages) ---- */
body.layout-home .home-livewire,
body.layout-home .home-livewire .container,
body.layout-home .home-livewire .row > [class*="col-"] {
  min-width: 0;
}

body.layout-home .home-livewire img,
body.layout-home .home-livewire video,
body.layout-home .home-livewire iframe,
body.layout-home .home-livewire canvas {
  max-width: 100%;
}

body.layout-home .home-livewire img {
  height: auto;
}

body.layout-home .home-livewire .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 767.98px) {
  body.layout-home .home-livewire .card,
  body.layout-home .home-livewire .card-body {
    min-width: 0;
  }

  body.layout-home .home-livewire .input-group {
    flex-wrap: wrap;
  }

  body.layout-home .home-livewire .input-group > .form-control,
  body.layout-home .home-livewire .input-group > .form-select,
  body.layout-home .home-livewire .input-group > .btn,
  body.layout-home .home-livewire .input-group > .input-group-text {
    width: 100%;
    border-radius: 0.45rem !important;
    margin-top: 0.35rem;
  }

  body.layout-home .home-livewire .input-group > :first-child {
    margin-top: 0;
  }
}