/* ==========================================================================
   PUBLIC HOMEPAGE (templates/public/home.html)
   Moved verbatim from the template's three inline <style> blocks in Phase
   H.2 (2026-11-04); same order, so the cascade is unchanged.
   ========================================================================== */

/* ---- inline block 1 of 3 ---- */
  /*
   * Homepage — intentionally scoped to .luxury-home.
   * Palette = the shared Tawiyah brand system (library / assessments / news).
   * No markup, link, or JavaScript behaviour is changed by this template.
   */
  .luxury-home {
    --home-accent: rgb(var(--t-c-2fbfa4));
    --home-accent-strong: rgb(var(--t-c-0d8f7a));
    --home-accent-deep: rgb(var(--t-c-006b69));
    --home-lime: rgb(var(--t-c-82bc41));
    --home-gold: rgb(var(--t-c-f2c14e));

    --home-ink: rgb(var(--t-c-04141c));
    --home-surface: linear-gradient(180deg, rgba(var(--t-c-081821), 0.92), rgba(var(--t-c-030c14), 0.96));
    --home-surface-soft: rgba(var(--t-c-020a12), 0.55);

    --home-line: rgba(var(--t-c-94a3b8), 0.1);
    --home-line-brand: rgba(var(--t-c-7dd3c0), 0.13);
    --home-line-accent: rgba(var(--t-c-2fbfa4), 0.38);

    --home-text: rgb(var(--t-c-f4f8fa));
    --home-soft: rgb(var(--t-c-a9bcc8));
    --home-muted: rgb(var(--t-c-7d93a3));

    --home-shadow: 0 28px 70px -44px rgb(var(--t-c-000000));

    position: relative;
    isolation: isolate;
    overflow: clip;
    width: min(100% - 2rem, 82rem);
    margin-inline: auto;
    padding-block: clamp(1.25rem, 3vw, 2.75rem);
    color: var(--home-text);
  }

  .luxury-home,
  .luxury-home *,
  .luxury-home *::before,
  .luxury-home *::after {
    box-sizing: border-box;
  }

  /* الهالات صارت absolute بدل fixed حتى لا تبقى معلّقة أثناء التمرير */
  .luxury-home::before,
  .luxury-home::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 30rem;
    height: 30rem;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
  }

  .luxury-home::before {
    inset: 2rem -10rem auto auto;
    background: rgba(var(--t-c-0d8f7a), 0.12);
  }

  .luxury-home::after {
    inset: auto auto 10rem -12rem;
    background: rgba(var(--t-c-82bc41), 0.05);
  }

  .luxury-home a {
    text-decoration: none;
  }

  .luxury-home svg {
    display: block;
  }

  .luxury-home__stack {
    display: grid;
    gap: clamp(2rem, 4.5vw, 3.75rem);
  }

  /* ===================== Hero ===================== */
  

  /* شريط الهوية العمودي — التوقيع المشترك بين كل صفحات المنصة */
  

  /* شبكة سيبرانية تنزلق ببطء — طبقة الأرضية الحيّة */
  

  

  /* خط المسح الضوئي — يمرّ على الهيرو كل 7 ثوانٍ */
  

  /* إطار الاستهداف — أربع زوايا HUD */
  

  

  
  .luxury-home .home-section-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.5rem;
    color: rgb(var(--t-c-b8f0e2));
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.02em;
  }

  

  

  .luxury-home .home-hero-title {
    max-width: 16ch;
    margin: 0;
    color: rgb(var(--t-c-ffffff));
    font-size: clamp(2.05rem, 4.8vw, 3.75rem);
    font-weight: 900;
    line-height: 1.24;
    letter-spacing: -0.015em;
    text-wrap: balance;
  }

  [dir="ltr"] .luxury-home .home-hero-title {
    letter-spacing: -0.028em;
  }

  .luxury-home .home-hero-title::after {
    content: "";
    display: block;
    width: 4.5rem;
    height: 0.28rem;
    margin-block-start: 1.05rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--home-accent), var(--home-lime));
  }

  [dir="rtl"] .luxury-home .home-hero-title::after {
    background: linear-gradient(270deg, var(--home-accent), var(--home-lime));
  }

  

  

  /* ---- Buttons ---- */
  .luxury-home .public-link-btn {
    display: inline-flex;
    min-height: 3.1rem;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.2;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
  }

  .luxury-home .public-link-btn.primary {
    color: rgb(var(--t-c-ffffff));
    border-color: rgba(var(--t-c-82bc41), 0.34);
    background: linear-gradient(180deg, var(--home-accent-strong), var(--home-accent-deep));
    box-shadow: 0 16px 32px -18px rgba(var(--t-c-006b69), 0.95), inset 0 1px 0 rgba(var(--t-c-ffffff), 0.12);
  }

  .luxury-home .public-link-btn.secondary {
    color: var(--home-soft);
    border-color: var(--home-line);
    background: rgba(var(--t-c-ffffff), 0.03);
  }

  .luxury-home .public-link-btn:hover {
    transform: translateY(-2px);
  }

  .luxury-home .public-link-btn.primary:hover {
    border-color: rgba(var(--t-c-82bc41), 0.6);
    background: linear-gradient(180deg, rgb(var(--t-c-12a58c)), var(--home-accent-strong));
    box-shadow: 0 22px 40px -18px rgb(var(--t-c-006b69)), inset 0 1px 0 rgba(var(--t-c-ffffff), 0.16);
  }

  .luxury-home .public-link-btn.secondary:hover {
    color: var(--home-text);
    border-color: rgba(var(--t-c-2fbfa4), 0.4);
    background: rgba(var(--t-c-006b69), 0.28);
  }

  .luxury-home .public-link-btn:focus-visible,
  .luxury-home .home-card-link:focus-visible,
  .luxury-home .home-feature-card:focus-within {
    outline: 2px solid var(--home-lime);
    outline-offset: 4px;
    border-radius: 15px;
  }

  .luxury-home .button-arrow {
    transition: transform 180ms ease;
  }

  [dir="ltr"] .luxury-home .button-arrow {
    transform: rotate(180deg);
  }

  .luxury-home .public-link-btn:hover .button-arrow {
    transform: translateX(-0.18rem);
  }

  [dir="ltr"] .luxury-home .public-link-btn:hover .button-arrow {
    transform: rotate(180deg) translateX(-0.18rem);
  }

  /* ===================== Awareness panel ===================== */
  

  

  /* مسح الرادار — الحزمة الدوّارة خلف المؤشرات */
  

  

  

  

  

  

  /* نبضة الدرع — حلقتان تتمدّدان كإشارة رصد حيّة */
  

  

  

  

  

  

  /* عند وجود المقياس تصير البطاقات شريطًا مدمجًا تحته */
  

  

  

  

  

  

  /* خط تيليمتري علوي يضيء عند التمرير */
  

  
  
  
  
  
  

  

  

  

  .luxury-home .home-kpi-value {
    display: block;
    margin-block-start: 0.4rem;
    color: rgb(var(--t-c-ffffff));
    font-size: clamp(1.55rem, 2.6vw, 2.1rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.015em;
    font-variant-numeric: tabular-nums;
  }

  /* شريط قياس صغير أسفل كل رقم — يُرسم عند الدخول */
  .luxury-home .home-kpi-value::after {
    content: "";
    display: block;
    width: 2.4rem;
    height: 2px;
    margin-block-start: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--home-lime), rgba(47, 191, 164, 0));
    animation: cyberMeter 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.95s both;
  }

  [dir="rtl"] .luxury-home .home-kpi-value::after {
    background: linear-gradient(270deg, var(--home-lime), rgba(47, 191, 164, 0));
  }

  .luxury-home .empty-state {
    padding: 1.15rem;
    color: var(--home-muted);
    border: 1px dashed var(--home-line-brand);
    border-radius: 15px;
    background: var(--home-surface-soft);
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
  }

  /* ===================== Section headings ===================== */
  .luxury-home .home-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-block-end: 1.25rem;
  }

  .luxury-home .home-section-copy {
    max-width: 47rem;
  }

  .luxury-home .home-section-kicker {
    margin-block-end: 0.55rem;
  }

  .luxury-home .page-section-title {
    margin: 0;
    color: rgb(var(--t-c-ffffff));
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    font-weight: 900;
    line-height: 1.32;
    letter-spacing: -0.012em;
    text-wrap: balance;
  }

  .luxury-home .page-section-subtitle {
    margin: 0.6rem 0 0;
    color: var(--home-soft);
    font-size: 0.93rem;
    line-height: 1.85;
    text-wrap: pretty;
  }

  /* ===================== Features ===================== */
  .luxury-home .homepage-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .luxury-home .home-feature-card {
    position: relative;
    overflow: hidden;
    min-height: 16rem;
    padding: 1.35rem;
    border: 1px solid var(--home-line);
    border-radius: 20px;
    background: var(--home-surface);
    box-shadow: 0 18px 44px -34px rgb(var(--t-c-000000));
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  }

  .luxury-home .home-feature-card::after {
    content: "";
    position: absolute;
    width: 9rem;
    height: 9rem;
    inset-block-start: -5.5rem;
    inset-inline-end: -4.5rem;
    border-radius: 50%;
    background: rgba(var(--t-c-006b69), 0.22);
    transition: transform 280ms ease;
  }

  .luxury-home .home-feature-card::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset-block-start: 0.85rem;
    inset-inline-end: 0.85rem;
    width: 1.15rem;
    height: 1.15rem;
    border-block-start: 1px solid var(--home-accent);
    border-inline-end: 1px solid var(--home-accent);
    opacity: 0.35;
    transition: opacity 220ms ease, width 260ms ease, height 260ms ease;
  }

  .luxury-home .home-feature-card:hover::before {
    opacity: 1;
    width: 1.9rem;
    height: 1.9rem;
  }

  .luxury-home .home-feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--home-line-accent);
    box-shadow: 0 26px 52px -30px rgb(var(--t-c-000000));
  }

  .luxury-home .home-feature-card:hover::after {
    transform: scale(1.18);
  }

  .luxury-home .home-feature-icon {
    position: relative;
    z-index: 1;
    display: grid;
    width: 3.3rem;
    height: 3.3rem;
    margin-block-end: 1.05rem;
    place-items: center;
    color: var(--home-accent);
    border: 1px solid rgba(var(--t-c-2fbfa4), 0.26);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(var(--t-c-006b69), 0.42), rgba(var(--t-c-0d8f7a), 0.14));
  }

  .luxury-home .home-feature-icon svg {
    width: 1.65rem;
    height: 1.65rem;
  }

  .luxury-home .panel-title {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgb(var(--t-c-ffffff));
    font-size: 1.16rem;
    font-weight: 900;
    line-height: 1.6;
    letter-spacing: -0.008em;
  }

  .luxury-home .home-feature-subtitle {
    position: relative;
    z-index: 1;
    margin: 0.6rem 0 1.2rem;
    color: var(--home-soft);
    font-size: 0.89rem;
    line-height: 1.85;
  }

  .luxury-home .home-text-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: rgb(var(--t-c-b8f0e2));
    font-size: 0.87rem;
    font-weight: 900;
    transition: color 180ms ease;
  }

  .luxury-home .home-feature-card:hover .home-text-link {
    color: rgb(var(--t-c-eaffd6));
  }

  .luxury-home .home-feature-card:hover .home-text-link .button-arrow {
    transform: translateX(-0.18rem);
  }

  [dir="ltr"] .luxury-home .home-feature-card:hover .home-text-link .button-arrow {
    transform: rotate(180deg) translateX(-0.18rem);
  }

  /* ===================== Collections ===================== */
  .luxury-home .homepage-section-stack {
    min-width: 0;
  }

  .luxury-home .homepage-collections {
    display: grid;
    gap: 1.1rem;
  }

  .luxury-home .home-collection-block {
    padding: clamp(1rem, 2.4vw, 1.5rem);
    border: 1px solid var(--home-line);
    border-radius: 22px;
    background: var(--home-surface);
    box-shadow: 0 18px 48px -36px rgb(var(--t-c-000000));
  }

  .luxury-home .home-collection-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-block-end: 1.1rem;
  }

  .luxury-home .home-collection-title {
    margin: 0;
    color: rgb(var(--t-c-ffffff));
    font-size: clamp(1.12rem, 2vw, 1.35rem);
    font-weight: 900;
    line-height: 1.5;
    letter-spacing: -0.008em;
  }

  .luxury-home .home-collection-subtitle {
    margin: 0.35rem 0 0;
    color: var(--home-muted);
    font-size: 0.86rem;
    line-height: 1.75;
  }

  .luxury-home .home-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .luxury-home .home-card-link {
    display: block;
    min-width: 0;
    height: 100%;
    color: inherit;
    border-radius: 18px;
  }

  .luxury-home .home-feed-card,
  .luxury-home .home-announcement-card {
    position: relative;
    display: flex;
    overflow: hidden;
    height: 100%;
    min-height: 100%;
    flex-direction: column;
    border: 1px solid var(--home-line);
    border-radius: 18px;
    background: rgba(var(--t-c-ffffff), 0.03);
    transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
  }

  .luxury-home .home-feed-card::before,
  .luxury-home .home-announcement-card::before {
    content: "";
    position: absolute;
    z-index: 3;
    inset-inline: 20%;
    inset-block-start: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--home-accent), transparent);
    opacity: 0;
    transition: opacity 220ms ease, inset-inline 260ms ease;
  }

  .luxury-home .home-card-link:hover .home-feed-card::before,
  .luxury-home .home-card-link:hover .home-announcement-card::before {
    opacity: 0.9;
    inset-inline: 0;
  }

  .luxury-home .home-card-link:hover .home-feed-card,
  .luxury-home .home-card-link:hover .home-announcement-card {
    transform: translateY(-4px);
    border-color: var(--home-line-accent);
    background: rgba(var(--t-c-006b69), 0.18);
    box-shadow: 0 24px 46px -30px rgb(var(--t-c-000000));
  }

  .luxury-home .home-feed-cover,
  .luxury-home .home-announcement-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background:
      radial-gradient(circle at 75% 20%, rgba(var(--t-c-2fbfa4), 0.16), transparent 45%),
      linear-gradient(145deg, rgb(var(--t-c-06202a)), rgb(var(--t-c-030c15)));
  }

  .luxury-home .home-feed-cover::after,
  .luxury-home .home-announcement-image::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(to bottom, transparent, rgba(var(--t-c-020a12), 0.8));
    pointer-events: none;
  }

  .luxury-home .home-feed-cover img,
  .luxury-home .home-announcement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .luxury-home .home-card-link:hover img {
    transform: scale(1.045);
  }

  .luxury-home .home-feed-cover.is-empty,
  .luxury-home .home-announcement-image.is-empty {
    display: grid;
    place-items: center;
    color: rgb(var(--t-c-7fd8c6));
    font-size: 0.84rem;
    font-weight: 800;
  }

  .luxury-home .home-feed-cover.is-empty::before,
  .luxury-home .home-announcement-image.is-empty::before {
    content: "";
    position: absolute;
    width: 6rem;
    height: 6rem;
    border: 1px solid rgba(var(--t-c-2fbfa4), 0.14);
    border-radius: 50%;
    box-shadow: 0 0 0 2rem rgba(var(--t-c-2fbfa4), 0.022);
  }

  .luxury-home .home-feed-chip,
  .luxury-home .status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.34rem 0.7rem;
    border-radius: 999px;
    font-size: 0.69rem;
    font-weight: 900;
    line-height: 1.35;
  }

  .luxury-home .home-feed-chip {
    position: absolute;
    z-index: 2;
    inset-block-start: 0.8rem;
    inset-inline-start: 0.8rem;
    color: rgb(var(--t-c-d7f2ea));
    border: 1px solid rgba(var(--t-c-2fbfa4), 0.3);
    background: rgba(var(--t-c-006b69), 0.68);
    backdrop-filter: blur(10px);
  }

  .luxury-home .status-chip.info {
    color: rgb(var(--t-c-b8f0e2));
    border: 1px solid rgba(var(--t-c-2fbfa4), 0.28);
    background: rgba(var(--t-c-006b69), 0.32);
  }

  .luxury-home .status-chip.success {
    color: rgb(var(--t-c-dff3c4));
    border: 1px solid rgba(var(--t-c-82bc41), 0.34);
    background: rgba(var(--t-c-345418), 0.42);
  }

  .luxury-home .home-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.05rem;
  }

  .luxury-home .home-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-block-end: 0.7rem;
  }

  .luxury-home .home-card-title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: rgb(var(--t-c-ffffff));
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.65;
    letter-spacing: -0.005em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 180ms ease;
  }

  .luxury-home .home-card-link:hover .home-card-title {
    color: rgb(var(--t-c-d7f2ea));
  }

  .luxury-home .home-card-summary {
    display: -webkit-box;
    overflow: hidden;
    margin: 0.5rem 0 1rem;
    color: var(--home-soft);
    font-size: 0.82rem;
    line-height: 1.8;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .luxury-home .home-card-footer {
    margin-block-start: auto;
  }

  .luxury-home .home-assessment-metrics,
  .luxury-home .home-content-metrics {
    display: grid;
    gap: 0.5rem;
  }

  .luxury-home .home-assessment-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .luxury-home .home-content-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .luxury-home .home-mini-metric {
    display: flex;
    min-width: 0;
    min-height: 2.65rem;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.48rem 0.35rem;
    color: var(--home-soft);
    border: 1px solid var(--home-line);
    border-radius: 11px;
    background: var(--home-surface-soft);
    font-size: 0.69rem;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    font-variant-numeric: tabular-nums;
  }

  .luxury-home .home-mini-metric svg {
    flex: 0 0 auto;
    width: 0.9rem;
    height: 0.9rem;
    color: var(--home-accent);
  }

  .luxury-home .home-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-block-start: 0.95rem;
    padding-block-start: 0.8rem;
    color: rgb(var(--t-c-b8f0e2));
    border-block-start: 1px solid var(--home-line);
    font-size: 0.78rem;
    font-weight: 900;
    transition: color 180ms ease;
  }

  .luxury-home .home-card-link:hover .home-card-action {
    color: rgb(var(--t-c-eaffd6));
  }

  .luxury-home .home-card-link:hover .home-card-action .button-arrow {
    transform: translateX(-0.18rem);
  }

  [dir="ltr"] .luxury-home .home-card-link:hover .home-card-action .button-arrow {
    transform: rotate(180deg) translateX(-0.18rem);
  }

  /* ===================== CTA ===================== */
  .luxury-home .home-cta-shell {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(1.35rem, 3vw, 2.5rem);
    border: 1px solid rgba(var(--t-c-2fbfa4), 0.24);
    border-radius: 26px;
    background:
      radial-gradient(circle at 88% 12%, rgba(var(--t-c-006b69), 0.42), transparent 20rem),
      linear-gradient(135deg, rgba(var(--t-c-062224), 0.96), rgba(var(--t-c-020c14), 0.98));
    box-shadow: var(--home-shadow);
  }

  .luxury-home .home-cta-shell::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    z-index: 2;
    width: 3px;
    opacity: 0.85;
    background: linear-gradient(180deg, var(--home-accent), var(--home-lime));
    pointer-events: none;
  }

  .luxury-home .home-cta-shell::after {
    content: "";
    position: absolute;
    width: 17rem;
    height: 17rem;
    inset-block-end: -12rem;
    inset-inline-start: -7rem;
    border: 1px solid rgba(var(--t-c-2fbfa4), 0.14);
    border-radius: 50%;
    box-shadow: 0 0 0 3rem rgba(var(--t-c-2fbfa4), 0.022);
    pointer-events: none;
  }

  .luxury-home .home-cta-copy,
  .luxury-home .home-cta-action {
    position: relative;
    z-index: 1;
  }

  .luxury-home .home-cta-copy {
    max-width: 48rem;
  }

  .luxury-home .home-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-block-end: 0.75rem;
    padding: 0.42rem 0.85rem;
    color: rgb(var(--t-c-b8f0e2));
    border: 1px solid rgba(var(--t-c-2fbfa4), 0.28);
    border-radius: 999px;
    background: rgba(var(--t-c-006b69), 0.32);
    font-size: 0.74rem;
    font-weight: 900;
  }

  .luxury-home .home-cta-title {
    margin: 0;
    color: rgb(var(--t-c-ffffff));
    font-size: clamp(1.5rem, 3vw, 2.35rem);
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: -0.012em;
    text-wrap: balance;
  }

  .luxury-home .home-cta-description {
    margin: 0.75rem 0 0;
    color: var(--home-soft);
    font-size: 0.95rem;
    line-height: 1.9;
    text-wrap: pretty;
  }

  .luxury-home .home-cta-action .public-link-btn {
    min-width: 11rem;
  }

  /* ===================== Motion =====================
     لحظة واحدة مُخرَجة: دخول الهيرو. لا جافاسكربت، لا تغيير في البنية.
     كل الحركة تعتمد animation-fill-mode: both فلا يختفي شيء إن تعطّل شيء. */

  @keyframes homeRise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
  }

  @keyframes homePanelIn {
    from { opacity: 0; transform: translateY(24px) scale(0.985); }
    to   { opacity: 1; transform: none; }
  }

  @keyframes homeRuleGrow {
    from { width: 0; opacity: 0; }
    to   { width: 4.5rem; opacity: 1; }
  }

  @keyframes homeHalo {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -46%) scale(1); }
    50%      { opacity: 1;   transform: translate(-50%, -46%) scale(1.045); }
  }

  @keyframes homeDot {
    0%, 100% { box-shadow: 0 0 0 0.28rem rgba(130, 188, 65, 0.16); }
    50%      { box-shadow: 0 0 0 0.55rem rgba(130, 188, 65, 0); }
  }

  @keyframes cyberGridDrift {
    to { background-position: 46px 46px, 46px 46px; }
  }

  @keyframes cyberScan {
    0%   { transform: translateY(-110%); opacity: 0; }
    12%  { opacity: 1; }
    88%  { opacity: 1; }
    100% { transform: translateY(460%); opacity: 0; }
  }

  @keyframes cyberRadar {
    to { transform: translate(-50%, -46%) rotate(360deg); }
  }

  @keyframes cyberBrackets {
    from { opacity: 0; transform: scale(1.035); }
    to   { opacity: 0.5; transform: none; }
  }

  @keyframes cyberMeter {
    from { width: 0; opacity: 0; }
    to   { width: 2.4rem; opacity: 1; }
  }

  /* --- إيقاعات موسّعة --- */
  @keyframes cyberPing {
    0%   { opacity: 0.55; transform: scale(0.85); }
    70%  { opacity: 0;    transform: scale(2.4); }
    100% { opacity: 0;    transform: scale(2.4); }
  }

  @keyframes cyberBoot {
    from { transform: scaleX(0); opacity: 0; }
    to   { transform: scaleX(1); opacity: 0.35; }
  }

  @keyframes cyberFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
  }

  @keyframes cyberBlip {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50%      { opacity: 1;    transform: scale(1.25); }
  }

  @keyframes cyberBreathe {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50%      { transform: scale(1.06); opacity: 1; }
  }

  @keyframes cyberNudge {
    0%, 82%, 100% { transform: translateX(0); }
    88%           { transform: translateX(-0.22rem); }
    94%           { transform: translateX(0.05rem); }
  }

  @keyframes cyberNudgeLtr {
    0%, 82%, 100% { transform: rotate(180deg) translateX(0); }
    88%           { transform: rotate(180deg) translateX(-0.22rem); }
    94%           { transform: rotate(180deg) translateX(0.05rem); }
  }

  @keyframes homeRiseBlur {
    from { opacity: 0; transform: translateY(20px); filter: blur(7px); }
    to   { opacity: 1; transform: none; filter: blur(0); }
  }

  @keyframes homeShine {
    from { transform: translateX(-260%) skewX(-18deg); }
    to   { transform: translateX(380%) skewX(-18deg); }
  }

  /* --- تتابع دخول الهيرو --- */
  

  .luxury-home .home-hero-title {
    animation: homeRiseBlur 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.09s both;
  }

  .luxury-home .home-hero-title::after {
    animation: homeRuleGrow 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
  }

  

  

  

  

  
  
  
  
  
  

  /* --- إيقاع دائم وهادئ بعد استقرار الدخول --- */
  

  /* --- أيقونات المزايا تطفو بهدوء --- */
  .luxury-home .home-feature-icon {
    animation: cyberFloat 6s ease-in-out infinite;
  }

  .luxury-home .home-feature-card:nth-child(2) .home-feature-icon { animation-delay: 0.9s; }
  .luxury-home .home-feature-card:nth-child(3) .home-feature-icon { animation-delay: 1.8s; }

  /* --- معيَّن الأقسام ينبض كمؤشّر حالة --- */
  .luxury-home .home-section-kicker > span[aria-hidden],
  .luxury-home .home-cta-badge > span[aria-hidden]  {
    display: inline-block;
    color: var(--home-lime);
    animation: cyberBlip 2.6s ease-in-out infinite;
  }

  /* --- دائرة الدعوة للإجراء تتنفّس --- */
  .luxury-home .home-cta-shell::after {
    animation: cyberBreathe 10s ease-in-out 1.5s infinite;
  }

  /* --- سهم الزر الأساسي يومئ كل بضع ثوانٍ (دعوة صامتة) --- */
  .luxury-home .public-link-btn.primary .button-arrow {
    animation: cyberNudge 5.5s ease-in-out 2.5s infinite;
  }

  [dir="ltr"] .luxury-home .public-link-btn.primary .button-arrow {
    animation-name: cyberNudgeLtr;
  }

  .luxury-home .public-link-btn.primary:hover .button-arrow {
    animation: none;
  }

  /* --- ومضة الزر الأساسي عند التمرير فقط --- */
  .luxury-home .public-link-btn.primary {
    position: relative;
    overflow: hidden;
  }

  .luxury-home .public-link-btn.primary::after {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 28%;
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(var(--t-c-ffffff), 0.24), transparent);
    transform: translateX(-260%) skewX(-18deg);
    pointer-events: none;
  }

  .luxury-home .public-link-btn.primary:hover::after {
    opacity: 1;
    animation: homeShine 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* --- كشف تدريجي عند التمرير (CSS خالص، بلا مراقب جافاسكربت) ---
     محميّ بـ @supports: المتصفحات غير الداعمة تعرض المحتوى كما هو. */
  @supports (animation-timeline: view()) {
    .luxury-home .home-feature-card,
    .luxury-home .home-collection-block,
    .luxury-home .home-cta-shell {
      animation: homeRise 1s linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 42%;
    }
  }

  /* حاجز احتواء صارم: أي رسم بياني (حلقة/دونات/مقياس) داخل اللوحة
     يُحصر داخل حدودها مهما كان مقاسه الأصلي. */
  

  

  /* ===================== Responsive =====================
     نفس نقاط توقّف بقية صفحات المنصة: 1 / 2 من 768 / 3 من 1280 */
  @media (min-width: 768px) {
    .luxury-home .homepage-feature-grid,
    .luxury-home .home-cards-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .luxury-home .home-feature-card:last-child:nth-child(odd) {
      grid-column: 1 / -1;
      min-height: auto;
    }
  }

  @media (min-width: 1280px) {
    .luxury-home .homepage-feature-grid,
    .luxury-home .home-cards-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .luxury-home .home-feature-card:last-child:nth-child(odd) {
      grid-column: auto;
      min-height: 16rem;
    }
  }

  

  @media (max-width: 720px) {
    .luxury-home {
      width: min(100% - 1rem, 82rem);
      padding-block: 0.75rem 2.25rem;
    }

    .luxury-home__stack {
      gap: 2.25rem;
    }

    

    .luxury-home .home-hero-title {
      max-width: none;
      font-size: clamp(1.75rem, 8vw, 2.4rem);
    }

    

    

    .luxury-home .public-link-btn {
      width: 100%;
    }

    

    

    

    .luxury-home .page-section-title {
      font-size: 1.4rem;
    }

    .luxury-home .home-section-head,
    .luxury-home .home-collection-header,
    .luxury-home .home-cta-shell {
      align-items: stretch;
      flex-direction: column;
    }

    .luxury-home .home-section-head,
    .luxury-home .home-collection-header {
      display: flex;
    }

    .luxury-home .home-feature-card,
    .luxury-home .home-feature-card:last-child:nth-child(odd) {
      grid-column: auto;
      min-height: auto;
    }

    .luxury-home .home-collection-block {
      padding: 0.9rem;
      border-radius: 18px;
    }

    .luxury-home .home-collection-header .public-link-btn {
      width: fit-content;
    }

    .luxury-home .home-cta-shell {
      border-radius: 20px;
    }

    .luxury-home .home-cta-action .public-link-btn {
      width: 100%;
    }

    /* على الجوال: يبقى الرادار فقط — الشبكة والمسح يُطفآن توفيرًا للبطارية */
    

    

    

    /* على الجوال: طفو الأيقونات وإيماءة السهم يتوقفان */
    .luxury-home .home-feature-icon,
    .luxury-home .public-link-btn.primary .button-arrow {
      animation: none;
    }
  }

  @media (max-width: 390px) {
    

    .luxury-home .home-assessment-metrics {
      grid-template-columns: 1fr;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .luxury-home *,
    .luxury-home *::before,
    .luxury-home *::after {
      scroll-behavior: auto !important;
      transition-duration: 0.01ms !important;
      animation: none !important;
    }

    /* ضمان بقاء كل شيء ظاهرًا بعد إلغاء الحركة */
    
    .luxury-home .home-hero-title,
    .luxury-home .home-feature-card,
    .luxury-home .home-collection-block,
    .luxury-home .home-cta-shell  {
      opacity: 1 !important;
      transform: none !important;
    }

    .luxury-home .home-hero-title::after {
      width: 4.5rem !important;
      opacity: 1 !important;
    }

    .luxury-home .home-kpi-value::after {
      width: 2.4rem !important;
      opacity: 1 !important;
    }

    

    /* إيقاف طبقات المسح والرادار والنبضات كليًّا */
    

    

    .luxury-home .home-hero-title {
      filter: none !important;
    }
  }


  /* ==========================================================================
     PROJECT05 HPX-1E-A PREMIUM HOMEPAGE START
     Compact premium hero + KPI presentation + responsive refinement.
     Visual layer only. No business logic or data contract changes.
     ========================================================================== */

  .luxury-home {
    --hpx-premium-border: rgba(var(--t-c-56e0b8), 0.18);
    --hpx-premium-border-strong: rgba(var(--t-c-56e0b8), 0.34);
    --hpx-premium-glow: rgba(var(--t-c-2dd4bf), 0.16);
    --hpx-premium-shadow: 0 24px 70px rgba(var(--t-c-020c17), 0.3);
    --hpx-premium-ease: cubic-bezier(0.22, 1, 0.36, 1);
  }

  .luxury-home .luxury-home__stack {
    gap: clamp(1.15rem, 2.2vw, 2rem) !important;
  }

  /* --------------------------------------------------------------------------
     HERO — shorter, denser and more executive
     -------------------------------------------------------------------------- */

  

  

  

  

  .luxury-home .home-hero-title {
    max-width: 54rem !important;
    margin-block: 0 !important;

    font-size:
      clamp(2.15rem, 4vw, 4.15rem) !important;

    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
    text-wrap: balance;
  }

  [dir="ltr"] .luxury-home .home-hero-title {
    letter-spacing: -0.045em !important;
  }

  

  

  

  /* --------------------------------------------------------------------------
     HERO VISUAL — preserve identity but reduce visual mass
     -------------------------------------------------------------------------- */

  

  

  

  /* --------------------------------------------------------------------------
     KPI DASHBOARD STRIP
     -------------------------------------------------------------------------- */

  

  

  .luxury-home .home-kpi-value {
    font-size:
      clamp(1.7rem, 3vw, 2.5rem) !important;

    line-height: 1 !important;
    letter-spacing: -0.045em !important;
    font-variant-numeric: tabular-nums;
  }

  

  /* --------------------------------------------------------------------------
     PREMIUM SECTION RHYTHM
     -------------------------------------------------------------------------- */

  .luxury-home .homepage-section-stack {
    gap: clamp(0.9rem, 1.8vw, 1.35rem) !important;
  }

  .luxury-home .homepage-collections {
    gap: clamp(1rem, 2vw, 1.5rem) !important;
  }

  .luxury-home .home-collection-block {
    border-radius: clamp(1.15rem, 1.7vw, 1.5rem) !important;

    box-shadow:
      0 16px 44px rgba(var(--t-c-020c17), 0.14),
      inset 0 1px 0 rgba(var(--t-c-ffffff), 0.02);
  }

  .luxury-home .home-feed-card,
  .luxury-home .home-feature-card {
    transition:
      transform 0.36s var(--hpx-premium-ease),
      border-color 0.36s ease,
      box-shadow 0.36s ease !important;
  }

  .luxury-home .home-feed-cover img {
    transition:
      transform 0.55s var(--hpx-premium-ease),
      filter 0.4s ease !important;
  }

  /* --------------------------------------------------------------------------
     DESKTOP POINTER MICRO-INTERACTIONS
     -------------------------------------------------------------------------- */

  @media (hover: hover) and (pointer: fine) {

    

    .luxury-home .home-feature-card:hover,
    .luxury-home .home-feed-card:hover {
      transform: translateY(-5px) !important;
      border-color: rgba(var(--t-c-56e0b8), 0.25) !important;

      box-shadow:
        0 20px 48px rgba(var(--t-c-020c17), 0.24) !important;
    }

    .luxury-home .home-feed-card:hover .home-feed-cover img {
      transform: scale(1.035);
      filter: saturate(1.05) contrast(1.02);
    }

    .luxury-home .public-link-btn:hover {
      transform: translateY(-2px);
    }
  }

  /* --------------------------------------------------------------------------
     CONTROLLED SCROLL REVEAL
     Existing scattered section animations are replaced on selected blocks
     after JS enhancement is active.
     -------------------------------------------------------------------------- */

  .luxury-home.hpx-motion-ready .hpx-reveal {
    animation: none !important;

    opacity: 0;
    transform: translateY(18px);

    transition:
      opacity 0.65s var(--hpx-premium-ease),
      transform 0.65s var(--hpx-premium-ease) !important;

    transition-delay:
      var(--hpx-reveal-delay, 0ms) !important;
  }

  .luxury-home.hpx-motion-ready .hpx-reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  /* --------------------------------------------------------------------------
     TABLET
     -------------------------------------------------------------------------- */

  @media (max-width: 1100px) {

    

    

    .luxury-home .home-hero-title {
      max-width: 48rem !important;

      font-size:
        clamp(2.05rem, 6vw, 3.7rem) !important;
    }
  }

  /* --------------------------------------------------------------------------
     MOBILE COMPACT HERO
     -------------------------------------------------------------------------- */

  @media (max-width: 720px) {

    .luxury-home {
      width: min(100% - 0.75rem, 82rem) !important;
      padding-block: 0.5rem 1.75rem !important;
    }

    .luxury-home .luxury-home__stack {
      gap: 0.9rem !important;
    }

    

    

    .luxury-home .home-hero-title {
      max-width: none !important;

      font-size:
        clamp(1.65rem, 8vw, 2.2rem) !important;

      line-height: 1.14 !important;
      letter-spacing: -0.025em !important;
    }

    

    

    

    

    

    

    

    .luxury-home .home-kpi-value {
      font-size:
        clamp(1.45rem, 8vw, 1.95rem) !important;
    }

    .luxury-home .homepage-section-stack,
    .luxury-home .homepage-collections {
      gap: 0.8rem !important;
    }

    .luxury-home .home-collection-block {
      border-radius: 1rem !important;
    }
  }

  

  /* --------------------------------------------------------------------------
     ACCESSIBILITY
     -------------------------------------------------------------------------- */

  @media (prefers-reduced-motion: reduce) {

    .luxury-home.hpx-motion-ready .hpx-reveal,
    .luxury-home.hpx-motion-ready .hpx-reveal.is-visible {
      opacity: 1 !important;
      transform: none !important;
      transition: none !important;
      animation: none !important;
    }

    
    .luxury-home .home-feature-card,
    .luxury-home .home-feed-card,
    .luxury-home .home-feed-cover img  {
      transition: none !important;
    }
  }

  /* PROJECT05 HPX-1E-A PREMIUM HOMEPAGE END */

/* ---- inline block 2 of 3 ---- */
/* ==========================================================================
   PROJECT05 HPX-1E-B-R1 MOBILE KPI CORRECTION
   ========================================================================== */


@media (max-width: 720px) {

  /* Hide only the large desktop visual. */
  


  /* ------------------------------------------------------------
     HERO
     ------------------------------------------------------------ */

  


  


  


  .luxury-home .home-hero-title {
    max-width:
      none !important;

    margin:
      0 !important;

    font-size:
      clamp(
        1.55rem,
        7vw,
        1.95rem
      ) !important;

    line-height:
      1.16 !important;

    letter-spacing:
      -0.025em !important;

    text-wrap:
      balance;
  }


  


  /* ------------------------------------------------------------
     CTA
     ------------------------------------------------------------ */

  


  


  


  


  /* ------------------------------------------------------------
     MOBILE KPI OVERVIEW
     ------------------------------------------------------------ */

  


  


  


  


  


  


  


  


  


  


  

}


/* ---- inline block 3 of 3 ---- */
/* ==========================================================================
   PROJECT05 HPX-1E-B-R2 FINAL MOBILE VISUAL
   ========================================================================== */


/* --------------------------------------------------------------------------
   DESKTOP DEFAULT
   -------------------------------------------------------------------------- */


/* --------------------------------------------------------------------------
   MOBILE ROOT CONTRACT
   -------------------------------------------------------------------------- */


/* --------------------------------------------------------------------------
   MOBILE HERO
   -------------------------------------------------------------------------- */


.luxury-home.hpx-mobile-layout
.home-hero-title {
  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;

  font-size:
    clamp(
      1.55rem,
      7vw,
      1.95rem
    ) !important;

  line-height:
    1.16 !important;

  letter-spacing:
    -0.025em !important;

  text-wrap: balance;
}


/* --------------------------------------------------------------------------
   MOBILE CTA
   -------------------------------------------------------------------------- */


/* --------------------------------------------------------------------------
   MOBILE KPI SUMMARY
   -------------------------------------------------------------------------- */


/* --------------------------------------------------------------------------
   VERY SMALL MOBILE
   -------------------------------------------------------------------------- */


/* ==========================================================================
   PHASE H.2 (2026-11-04) — HERO + PLATFORM INDICATORS  (.hx-*)
   New markup with its own class names, so the older hero / awareness-panel /
   mobile-overview layers above (and the app.css "82%" ring on
   .awareness-visual) no longer apply to it. One indicators panel serves every
   screen size; the separate mobile copy was removed.
   ========================================================================== */

.luxury-home {
  --hx-bg: rgb(var(--t-c-04121a));
  --hx-surface: rgba(var(--t-c-07181f), 0.78);
  --hx-surface-2: rgba(var(--t-c-0c242a), 0.72);
  --hx-line: rgba(var(--t-c-94a3b8), 0.12);
  --hx-line-strong: rgba(var(--t-c-2fbfa4), 0.3);
  --hx-text: rgb(var(--t-c-f2f8f7));
  --hx-text-2: rgb(var(--t-c-aec1cb));
  --hx-muted: rgb(var(--t-c-7f97a3));
  --hx-accent: rgb(var(--t-c-2fbfa4));
  --hx-lime: rgb(var(--t-c-82bc41));
  --hx-primary: rgb(var(--t-c-34d399));
  --hx-primary-2: rgb(var(--t-c-18c79b));
  --hx-primary-ink: rgb(var(--t-c-03251d));
}

/* Hero card: deep teal surface + faint technical grid + corner bracket */
.luxury-home .hx-hero {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(var(--t-c-18c79b), 0.14), transparent 55%),
    radial-gradient(70% 90% at 0% 100%, rgba(var(--t-c-006b69), 0.18), transparent 60%),
    linear-gradient(180deg, rgba(var(--t-c-061a20), 0.96), rgba(var(--t-c-030e15), 0.98));
  border: 1px solid var(--hx-line);
  border-radius: 26px;
  box-shadow: 0 30px 80px -50px rgba(var(--t-c-000000), 0.9), inset 0 1px 0 rgba(var(--t-c-ffffff), 0.03);
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.4rem, 1rem + 2.4vw, 3rem);
  position: relative;
}

.luxury-home .hx-hero::before {
  background-image:
    linear-gradient(rgba(var(--t-c-2fbfa4), 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--t-c-2fbfa4), 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  content: "";
  inset: 0;
  -webkit-mask-image: radial-gradient(75% 85% at 70% 35%, #000 0%, transparent 75%);
  mask-image: radial-gradient(75% 85% at 70% 35%, #000 0%, transparent 75%);
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.luxury-home .hx-hero::after {
  border-block-start: 2px solid rgba(var(--t-c-2fbfa4), 0.45);
  border-inline-start: 2px solid rgba(var(--t-c-2fbfa4), 0.45);
  border-start-start-radius: 8px;
  content: "";
  height: 22px;
  inset-block-start: 14px;
  inset-inline-start: 14px;
  pointer-events: none;
  position: absolute;
  width: 22px;
}

.luxury-home .hx-hero__grid {
  align-items: center;
  display: grid;
  gap: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .85fr);
}

/* Copy */
.luxury-home .hx-hero__copy {
  animation: hx-rise .55s cubic-bezier(.22, 1, .36, 1) both;
  min-width: 0;
}

.luxury-home .hx-eyebrow {
  align-items: center;
  background: rgba(var(--t-c-2fbfa4), 0.08);
  border: 1px solid rgba(var(--t-c-2fbfa4), 0.24);
  border-radius: 999px;
  color: rgb(var(--t-c-a7ecd9));
  display: inline-flex;
  font-size: .78rem;
  font-weight: 800;
  gap: .5rem;
  margin: 0 0 1.1rem;
  padding: .4rem .85rem;
}

.luxury-home .hx-eyebrow__dot {
  background: var(--hx-lime);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(var(--t-c-82bc41), 0.16);
  height: 7px;
  width: 7px;
}

.luxury-home .hx-title {
  background: linear-gradient(180deg, rgb(var(--t-c-ffffff)) 0%, rgb(var(--t-c-d4f3e9)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(1.85rem, 1.15rem + 2.6vw, 3.25rem);
  font-weight: 900;
  line-height: 1.28;
  margin: 0;
  max-width: 17em;
  text-wrap: balance;
}

[dir="ltr"] .luxury-home .hx-title {
  letter-spacing: -.02em;
  line-height: 1.15;
}

.luxury-home .hx-title::after {
  background: linear-gradient(90deg, var(--hx-accent), var(--hx-lime));
  border-radius: 999px;
  content: "";
  display: block;
  height: 3px;
  margin-block-start: 1rem;
  width: 64px;
}

.luxury-home .hx-lead {
  color: var(--hx-text-2);
  font-size: clamp(.95rem, .9rem + .25vw, 1.08rem);
  line-height: 1.85;
  margin: 1rem 0 0;
  max-width: 58ch;
}

/* Actions: one clear primary, quieter secondaries */
.luxury-home .hx-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-block-start: 1.6rem;
}

.luxury-home .hx-btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 14px;
  display: inline-flex;
  font-weight: 900;
  gap: .55rem;
  justify-content: center;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}

.luxury-home .hx-btn--primary {
  background: linear-gradient(135deg, var(--hx-primary), var(--hx-primary-2));
  box-shadow: 0 16px 32px -16px rgba(var(--t-c-18c79b), 0.85), inset 0 1px 0 rgba(var(--t-c-ffffff), 0.25);
  color: var(--hx-primary-ink);
  font-size: 1rem;
  min-height: 52px;
  padding: 0 1.6rem;
}

.luxury-home .hx-btn--primary:hover {
  box-shadow: 0 20px 38px -16px rgb(var(--t-c-18c79b)), inset 0 1px 0 rgba(var(--t-c-ffffff), 0.3);
  color: var(--hx-primary-ink);
  transform: translateY(-2px);
}

.luxury-home .hx-btn__arrow {
  height: 18px;
  transition: transform .18s ease;
  width: 18px;
}

[dir="rtl"] .luxury-home .hx-btn__arrow {
  transform: scaleX(-1);
}

.luxury-home .hx-btn--primary:hover .hx-btn__arrow {
  transform: translateX(3px);
}

[dir="rtl"] .luxury-home .hx-btn--primary:hover .hx-btn__arrow {
  transform: scaleX(-1) translateX(3px);
}

.luxury-home .hx-btn--quiet {
  background: rgba(var(--t-c-ffffff), 0.025);
  border-color: var(--hx-line);
  color: var(--hx-text-2);
  font-size: .88rem;
  min-height: 44px;
  padding: 0 1.1rem;
}

.luxury-home .hx-btn--quiet:hover {
  background: rgba(var(--t-c-006b69), 0.24);
  border-color: var(--hx-line-strong);
  color: var(--hx-text);
}

.luxury-home .hx-btn:focus-visible {
  box-shadow: 0 0 0 2px var(--hx-bg), 0 0 0 4px var(--hx-lime);
  outline: none;
}

/* Indicators panel */
.luxury-home .hx-panel {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: var(--hx-surface);
  border: 1px solid var(--hx-line);
  border-radius: 20px;
  box-shadow: 0 24px 60px -40px rgba(var(--t-c-000000), 0.9);
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding: 1.15rem;
}

.luxury-home .hx-panel__head {
  align-items: flex-start;
  display: flex;
  gap: .75rem;
}

.luxury-home .hx-panel__icon {
  align-items: center;
  background: rgba(var(--t-c-2fbfa4), 0.1);
  border: 1px solid rgba(var(--t-c-2fbfa4), 0.26);
  border-radius: 12px;
  color: rgb(var(--t-c-8fe7cf));
  display: inline-flex;
  flex: 0 0 auto;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.luxury-home .hx-panel__icon svg {
  height: 20px;
  width: 20px;
}

.luxury-home .hx-panel__kicker {
  align-items: center;
  color: var(--hx-muted);
  display: flex;
  font-size: .72rem;
  font-weight: 800;
  gap: .4rem;
  margin: 0;
}

.luxury-home .hx-panel__kicker::before {
  animation: hx-pulse 2.4s ease-in-out infinite;
  background: var(--hx-primary);
  border-radius: 50%;
  content: "";
  height: 6px;
  width: 6px;
}

.luxury-home .hx-panel__title {
  color: var(--hx-text);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.4;
  margin: .15rem 0 0;
}

.luxury-home .hx-panel__subtitle {
  color: var(--hx-muted);
  font-size: .8rem;
  margin: .2rem 0 0;
}

.luxury-home .hx-panel__empty {
  border: 1px dashed var(--hx-line);
  border-radius: 14px;
  color: var(--hx-muted);
  font-size: .85rem;
  margin: 0;
  padding: 1rem;
  text-align: center;
}

.luxury-home .hx-kpis {
  display: grid;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.luxury-home .hx-kpi {
  align-items: center;
  animation: hx-rise .5s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: calc(120ms + var(--hx-i, 0) * 70ms);
  background: var(--hx-surface-2);
  border: 1px solid rgba(var(--t-c-94a3b8), 0.08);
  border-radius: 14px;
  display: grid;
  gap: .75rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 60px;
  padding: .6rem .9rem;
  transition: border-color .18s ease, background .18s ease;
}

.luxury-home .hx-kpi:hover {
  background: rgba(var(--t-c-0e2c32), 0.85);
  border-color: var(--hx-line-strong);
}

.luxury-home .hx-kpi__icon {
  align-items: center;
  background: rgba(var(--t-c-34d399), 0.1);
  border-radius: 10px;
  color: rgb(var(--t-c-7ee6c6));
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.luxury-home .hx-kpi__icon svg {
  height: 19px;
  width: 19px;
}

.luxury-home .hx-kpi__label {
  color: var(--hx-text-2);
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.4;
  min-width: 0;
}

/* Keeps .home-kpi-value for the count-up script; the !important sizes and the
   underline that older layers put on that class are neutralised here. */
.luxury-home .hx-kpi .hx-kpi__value {
  color: var(--hx-text);
  display: block;
  font-size: 1.55rem !important;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  margin: 0;
  min-width: 2ch;
  text-align: end;
}

.luxury-home .hx-kpi .hx-kpi__value::after {
  content: none !important;
}

/* Tablet and below: panel under the copy, indicators side by side */
@media (max-width: 960px) {
  .luxury-home .hx-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .luxury-home .hx-title {
    max-width: none;
  }

  .luxury-home .hx-kpis {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  }
}

/* Phones: full-width primary, secondaries share one row, one KPI per row */
@media (max-width: 600px) {
  .luxury-home .hx-hero {
    border-radius: 20px;
  }

  .luxury-home .hx-hero::after {
    display: none;
  }

  .luxury-home .hx-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .luxury-home .hx-btn--primary {
    grid-column: 1 / -1;
    width: 100%;
  }

  .luxury-home .hx-btn--quiet {
    padding-inline: .6rem;
    text-align: center;
    white-space: normal;
  }

  /* A lone secondary button takes the whole row */
  .luxury-home .hx-btn--quiet:last-child:nth-child(2) {
    grid-column: 1 / -1;
  }

  .luxury-home .hx-panel {
    padding: 1rem;
  }

  .luxury-home .hx-kpis {
    grid-template-columns: minmax(0, 1fr);
  }

  .luxury-home .hx-kpi {
    min-height: 54px;
  }
}

@keyframes hx-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes hx-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .45); }
  50% { box-shadow: 0 0 0 5px rgba(52, 211, 153, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .luxury-home .hx-hero__copy,
  .luxury-home .hx-kpi,
  .luxury-home .hx-panel__kicker::before {
    animation: none !important;
  }

  .luxury-home .hx-btn,
  .luxury-home .hx-btn__arrow {
    transition: none !important;
  }
}

/* ==========================================================================
   PHASE H.3 (2026-11-04) — «متصدرو التحديات السيبرانية»  (.hx-board*)
   Pseudonymous, read-only boards built in core/leaderboards.py. Tabs are
   enhanced by static/js/pages/home-leaderboard.js; without it every panel
   stays visible.
   ========================================================================== */

.luxury-home .hx-board__card {
  background: var(--hx-surface);
  border: 1px solid var(--hx-line);
  border-radius: 22px;
  display: grid;
  gap: 1rem;
  padding: clamp(.9rem, .7rem + 1vw, 1.4rem);
}

.luxury-home .hx-board__tabs {
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  padding-block-end: 2px;
  scrollbar-width: thin;
}

.luxury-home .hx-board__tab {
  align-items: center;
  background: rgba(var(--t-c-ffffff), 0.025);
  border: 1px solid var(--hx-line);
  border-radius: 12px;
  color: var(--hx-text-2);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font: inherit;
  font-size: .85rem;
  font-weight: 800;
  gap: .5rem;
  max-width: 260px;
  min-height: 44px;
  padding: 0 .85rem;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.luxury-home .hx-board__tab:hover {
  background: rgba(var(--t-c-006b69), 0.2);
  color: var(--hx-text);
}

.luxury-home .hx-board__tab[aria-selected="true"] {
  background: rgba(var(--t-c-006b69), 0.42);
  border-color: var(--hx-line-strong);
  color: rgb(var(--t-c-e3f8f1));
}

.luxury-home .hx-board__tab:focus-visible,
.luxury-home .hx-board__panel:focus-visible {
  box-shadow: 0 0 0 2px var(--hx-bg), 0 0 0 4px var(--hx-lime);
  outline: none;
}

.luxury-home .hx-board__kind {
  background: rgba(var(--t-c-82bc41), 0.14);
  border-radius: 999px;
  color: rgb(var(--t-c-c3e79a));
  flex: 0 0 auto;
  font-size: .72rem;
  padding: 2px 8px;
}

.luxury-home .hx-board__tab-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.luxury-home .hx-board__panel {
  border-radius: 14px;
  display: grid;
  gap: .85rem;
}

.luxury-home .hx-board__panel[hidden] {
  display: none;
}

.luxury-home .hx-board__list {
  counter-reset: none;
  display: grid;
  gap: .4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.luxury-home .hx-board__row {
  align-items: center;
  background: var(--hx-surface-2);
  border: 1px solid rgba(var(--t-c-94a3b8), 0.08);
  border-radius: 14px;
  display: grid;
  gap: .85rem;
  grid-template-columns: 36px minmax(0, 1fr) minmax(90px, 32%) 3.5rem;
  min-height: 56px;
  padding: .5rem .85rem;
}

.luxury-home .hx-board__row.is-viewer {
  border-color: rgba(var(--t-c-34d399), 0.55);
  box-shadow: inset 0 0 0 1px rgba(var(--t-c-34d399), 0.2);
}

.luxury-home .hx-board__rank {
  align-items: center;
  background: rgba(var(--t-c-ffffff), 0.05);
  border: 1px solid var(--hx-line);
  border-radius: 10px;
  color: var(--hx-text-2);
  display: inline-flex;
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.luxury-home .hx-board__row--top1 .hx-board__rank { background: rgba(var(--t-c-fbbf24), 0.16); border-color: rgba(var(--t-c-fbbf24), 0.45); color: rgb(var(--t-c-fcd34d)); }
.luxury-home .hx-board__row--top2 .hx-board__rank { background: rgba(var(--t-c-cbd5e1), 0.12); border-color: rgba(var(--t-c-cbd5e1), 0.4); color: rgb(var(--t-c-e2e8f0)); }
.luxury-home .hx-board__row--top3 .hx-board__rank { background: rgba(var(--t-c-d97706), 0.14); border-color: rgba(var(--t-c-d97706), 0.42); color: rgb(var(--t-c-fdba74)); }

.luxury-home .hx-board__who {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .5rem;
  min-width: 0;
}

.luxury-home .hx-board__alias {
  color: var(--hx-text);
  font-size: .9rem;
  font-weight: 800;
}

.luxury-home .hx-board__code {
  color: rgb(var(--t-c-9fe9d3));
  direction: ltr;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .06em;
  unicode-bidi: isolate;
}

.luxury-home .hx-board__you {
  background: rgba(var(--t-c-34d399), 0.16);
  border: 1px solid rgba(var(--t-c-34d399), 0.4);
  border-radius: 999px;
  color: rgb(var(--t-c-8ff0d2));
  font-size: .7rem;
  font-weight: 900;
  padding: 1px 8px;
}

.luxury-home .hx-board__meter {
  background: rgba(var(--t-c-ffffff), 0.06);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}

.luxury-home .hx-board__meter > span {
  background: linear-gradient(90deg, var(--hx-accent), var(--hx-lime));
  border-radius: inherit;
  display: block;
  height: 100%;
  width: var(--hx-score, 0%);
}

[dir="rtl"] .luxury-home .hx-board__meter > span {
  background: linear-gradient(270deg, var(--hx-accent), var(--hx-lime));
  margin-inline-start: 0;
}

.luxury-home .hx-board__score {
  color: var(--hx-text);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  text-align: end;
}

.luxury-home .hx-board__score small {
  color: var(--hx-muted);
  font-size: .72rem;
  margin-inline-start: 1px;
}

.luxury-home .hx-board__foot {
  align-items: center;
  color: var(--hx-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: .8rem;
  gap: .6rem 1rem;
  justify-content: space-between;
}

.luxury-home .hx-board__empty {
  align-items: center;
  border: 1px dashed var(--hx-line-strong);
  border-radius: 22px;
  color: var(--hx-text-2);
  display: flex;
  flex-wrap: wrap;
  gap: .9rem 1.25rem;
  justify-content: space-between;
  padding: 1.15rem 1.35rem;
}

.luxury-home .hx-board__empty p {
  font-size: .92rem;
  line-height: 1.8;
  margin: 0;
  max-width: 60ch;
}

.luxury-home .hx-board__empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

@media (max-width: 600px) {
  .luxury-home .hx-board__row {
    gap: .35rem .7rem;
    grid-template-areas:
      "rank who score"
      "rank meter meter";
    grid-template-columns: 34px minmax(0, 1fr) auto;
    padding: .6rem .75rem;
  }

  .luxury-home .hx-board__rank { grid-area: rank; }
  .luxury-home .hx-board__who { grid-area: who; }
  .luxury-home .hx-board__meter { grid-area: meter; }
  .luxury-home .hx-board__score { grid-area: score; }

  .luxury-home .hx-board__foot .hx-btn,
  .luxury-home .hx-board__empty-actions,
  .luxury-home .hx-board__empty-actions .hx-btn {
    width: 100%;
  }

  .luxury-home .hx-board__empty-actions .hx-btn {
    flex: 1 1 0;
  }
}

/* ==========================================================================
   PHASE P1 (2026-11-04) — homepage experience
   Hero network + scan line, guest nudge, «استكشف المنصة» cards and journey,
   reveal-on-scroll, leaderboard podium + CTAs. Motion: static/js/pages/
   home-experience.js. Everything degrades to a complete static page.
   ========================================================================== */

/* ---- Hero motion layers ---- */
.luxury-home .hx-hero__network {
  height: 100%;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity .8s ease;
  width: 100%;
  z-index: -1;
}

.luxury-home .hx-hero.has-network .hx-hero__network {
  opacity: 1;
}

.luxury-home .hx-hero__scan {
  animation: hx-scan 7s cubic-bezier(.45, 0, .55, 1) infinite;
  background: linear-gradient(90deg, transparent, rgba(var(--t-c-2fbfa4), 0.5) 30%, rgba(var(--t-c-82bc41), 0.55) 50%, rgba(var(--t-c-2fbfa4), 0.5) 70%, transparent);
  box-shadow: 0 0 18px rgba(var(--t-c-2fbfa4), 0.35);
  height: 1px;
  inset-inline: 0;
  opacity: .45;
  pointer-events: none;
  position: absolute;
  top: 0;
  z-index: -1;
}

@keyframes hx-scan {
  0% { opacity: 0; transform: translateY(0); }
  10% { opacity: .45; }
  90% { opacity: .45; }
  100% { opacity: 0; transform: translateY(var(--hx-scan-h, 520px)); }
}

.luxury-home .hx-nudge {
  color: var(--hx-muted);
  font-size: .84rem;
  line-height: 1.8;
  margin: 1.1rem 0 0;
}

/* Icon flows with the first line of text instead of taking a row of its own */
.luxury-home .hx-nudge svg {
  color: var(--hx-lime);
  display: inline-block;
  height: 18px;
  margin-inline-end: .35rem;
  vertical-align: -4px;
  width: 18px;
}

.luxury-home .hx-nudge a {
  margin-inline-start: .3rem;
  white-space: nowrap;
}

.luxury-home .hx-nudge a {
  color: rgb(var(--t-c-9fe9d3));
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(var(--t-c-9fe9d3), 0.35);
  text-underline-offset: 4px;
}

.luxury-home .hx-nudge a:hover {
  text-decoration-color: currentColor;
}

/* ---- Reveal on scroll (only when the script opted in) ---- */
.hx-reveal-ready .luxury-home [data-hx-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(var(--hx-i, 0) * 90ms);
}

.hx-reveal-ready .luxury-home [data-hx-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---- «استكشف المنصة» ---- */
.luxury-home .hx-explore {
  display: grid;
  gap: 1.5rem;
}

.luxury-home .hx-explore__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.luxury-home .hx-feature {
  background:
    radial-gradient(260px circle at var(--hx-mx, 50%) var(--hx-my, -20%), rgba(var(--t-c-2fbfa4), 0.14), transparent 70%),
    linear-gradient(180deg, rgba(var(--t-c-0a2026), 0.9), rgba(var(--t-c-051219), 0.95));
  border: 1px solid var(--hx-line);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  min-height: 100%;
  overflow: hidden;
  padding: 1.35rem;
  position: relative;
  transition: border-color .25s ease, transform .25s cubic-bezier(.22, 1, .36, 1), box-shadow .25s ease;
}

.luxury-home .hx-feature::after {
  background: linear-gradient(90deg, var(--hx-accent), var(--hx-lime));
  content: "";
  height: 2px;
  inset-block-start: 0;
  inset-inline: 22% 22%;
  opacity: 0;
  position: absolute;
  transition: opacity .25s ease, inset-inline .35s cubic-bezier(.22, 1, .36, 1);
}

.luxury-home .hx-feature:hover {
  border-color: var(--hx-line-strong);
  box-shadow: 0 24px 48px -32px rgba(var(--t-c-18c79b), 0.55);
  transform: translateY(-4px);
}

.luxury-home .hx-feature:hover::after {
  inset-inline: 0 0;
  opacity: 1;
}

.luxury-home .hx-feature__top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-block-end: .35rem;
}

.luxury-home .hx-feature__icon {
  align-items: center;
  background: rgba(var(--t-c-2fbfa4), 0.1);
  border: 1px solid rgba(var(--t-c-2fbfa4), 0.26);
  border-radius: 14px;
  color: rgb(var(--t-c-8fe7cf));
  display: inline-flex;
  height: 50px;
  justify-content: center;
  transition: background .25s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
  width: 50px;
}

.luxury-home .hx-feature__icon svg {
  height: 24px;
  width: 24px;
}

.luxury-home .hx-feature:hover .hx-feature__icon {
  background: rgba(var(--t-c-2fbfa4), 0.2);
  transform: rotate(-6deg) scale(1.06);
}

/* Icon strokes redraw on hover (paths use pathLength="1") */
.luxury-home .hx-feature:hover .hx-feature__icon path {
  animation: hx-draw .7s cubic-bezier(.65, 0, .35, 1) both;
  stroke-dasharray: 1;
}

@keyframes hx-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

.luxury-home .hx-feature__step {
  color: rgba(var(--t-c-9fe9d3), 0.16);
  font-size: 2.4rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1;
  transition: color .25s ease;
}

.luxury-home .hx-feature:hover .hx-feature__step {
  color: rgba(var(--t-c-9fe9d3), 0.32);
}

.luxury-home .hx-feature__tag {
  align-self: flex-start;
  background: rgba(var(--t-c-82bc41), 0.12);
  border-radius: 999px;
  color: rgb(var(--t-c-c3e79a));
  font-size: .72rem;
  font-weight: 800;
  padding: 3px 10px;
}

.luxury-home .hx-feature__title {
  color: var(--hx-text);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.4;
  margin: 0;
}

.luxury-home .hx-feature__text {
  color: var(--hx-text-2);
  flex: 1 1 auto;
  font-size: .9rem;
  line-height: 1.85;
  margin: 0;
}

.luxury-home .hx-feature__link {
  align-items: center;
  border-block-start: 1px solid var(--hx-line);
  color: rgb(var(--t-c-9fe9d3));
  display: flex;
  font-size: .88rem;
  font-weight: 900;
  justify-content: space-between;
  margin-block-start: .4rem;
  min-height: 44px;
  padding-block-start: .6rem;
  text-decoration: none;
}

.luxury-home .hx-feature__link:hover .hx-btn__arrow {
  transform: translateX(3px);
}

[dir="rtl"] .luxury-home .hx-feature__link:hover .hx-btn__arrow {
  transform: scaleX(-1) translateX(3px);
}

.luxury-home :is(.hx-feature__link, .hx-journey a, .hx-board__signin, .hx-nudge a):focus-visible {
  border-radius: 8px;
  box-shadow: 0 0 0 2px var(--hx-bg), 0 0 0 4px var(--hx-lime);
  outline: none;
}

/* Journey strip */
.luxury-home .hx-journey {
  counter-reset: none;
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.luxury-home .hx-journey::before {
  background: linear-gradient(90deg, transparent, rgba(var(--t-c-2fbfa4), 0.4), rgba(var(--t-c-82bc41), 0.4), transparent);
  content: "";
  height: 1px;
  inset-block-start: 22px;
  inset-inline: 6%;
  position: absolute;
}

.luxury-home .hx-journey a {
  align-items: center;
  color: var(--hx-text-2);
  display: flex;
  flex-direction: column;
  font-size: .84rem;
  font-weight: 800;
  gap: .45rem;
  min-height: 44px;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: color .2s ease;
}

.luxury-home .hx-journey__dot {
  align-items: center;
  background: rgb(var(--t-c-06161e));
  border: 1px solid var(--hx-line-strong);
  border-radius: 50%;
  color: rgb(var(--t-c-9fe9d3));
  display: inline-flex;
  font-size: .85rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  transition: background .2s ease, transform .25s cubic-bezier(.22, 1, .36, 1), border-color .2s ease;
  width: 44px;
}

.luxury-home .hx-journey a:hover {
  color: var(--hx-text);
}

.luxury-home .hx-journey a:hover .hx-journey__dot {
  background: rgba(var(--t-c-2fbfa4), 0.18);
  border-color: var(--hx-lime);
  transform: translateY(-3px);
}

/* ---- Leaderboard: head, tabs, podium, CTAs ---- */
.luxury-home .hx-board {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}

/* The tab row is wider than the page; keep it from widening the grid tracks */
.luxury-home .hx-board__card {
  grid-template-columns: minmax(0, 1fr);
}

/* Tab strip: no visible scrollbar, edge fades signal more tabs */
.luxury-home .hx-board__tabs-wrap {
  min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  margin-inline: -4px;
  padding-inline: 4px;
}

.luxury-home .hx-board__tabs {
  overscroll-behavior-x: contain;
  padding: 2px 28px 4px;
  scroll-padding-inline: 28px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.luxury-home .hx-board__tabs::-webkit-scrollbar {
  display: none;
}

.luxury-home .hx-board__tab {
  scroll-snap-align: start;
}

/* Panel enters each time it is shown */
.luxury-home .hx-board__panel:not([hidden]) {
  animation: hx-rise .45s cubic-bezier(.22, 1, .36, 1) both;
}

/* Podium: visual order 2 · 1 · 3 */
.luxury-home .hx-podium {
  align-items: end;
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0 auto;
  max-width: 760px;
  padding: .5rem 0 0;
  width: 100%;
}

.luxury-home .hx-podium__spot {
  --hx-medal: rgb(var(--t-c-fcd34d));
  --hx-medal-soft: rgba(var(--t-c-fbbf24), 0.14);
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-width: 0;
  text-align: center;
}

.luxury-home .hx-podium__spot--1 { order: 2; }
.luxury-home .hx-podium__spot--2 { order: 1; --hx-medal: rgb(var(--t-c-e2e8f0)); --hx-medal-soft: rgba(var(--t-c-cbd5e1), 0.12); }
.luxury-home .hx-podium__spot--3 { order: 3; --hx-medal: rgb(var(--t-c-fdba74)); --hx-medal-soft: rgba(var(--t-c-d97706), 0.14); }

.luxury-home .hx-podium__medal {
  align-items: center;
  background: var(--hx-medal-soft);
  border: 1px solid color-mix(in srgb, var(--hx-medal) 50%, transparent);
  border-radius: 50%;
  color: var(--hx-medal);
  display: inline-flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.luxury-home .hx-podium__spot--1 .hx-podium__medal {
  box-shadow: 0 0 0 6px rgba(var(--t-c-fbbf24), 0.06), 0 10px 30px -10px rgba(var(--t-c-fbbf24), 0.6);
  height: 58px;
  width: 58px;
}

.luxury-home .hx-podium__medal svg {
  height: 24px;
  width: 24px;
}

.luxury-home .hx-podium__rank {
  color: var(--hx-medal);
  font-size: .72rem;
  font-weight: 900;
}

.luxury-home .hx-podium__score {
  color: var(--hx-text);
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1.1;
}

.luxury-home .hx-podium__score small {
  color: var(--hx-muted);
  font-size: .75rem;
}

.luxury-home .hx-podium__base {
  background: linear-gradient(180deg, var(--hx-medal-soft), rgba(var(--t-c-ffffff), 0.015));
  border: 1px solid color-mix(in srgb, var(--hx-medal) 28%, transparent);
  border-block-end: 0;
  border-radius: 14px 14px 0 0;
  display: block;
  height: 40px;
  margin-block-start: .35rem;
  width: 100%;
}

.luxury-home .hx-podium__spot--1 .hx-podium__base { height: 72px; }
.luxury-home .hx-podium__spot--2 .hx-podium__base { height: 52px; }

.luxury-home .hx-podium__spot.is-viewer .hx-podium__base {
  border-color: rgba(var(--t-c-34d399), 0.7);
  box-shadow: inset 0 0 0 1px rgba(var(--t-c-34d399), 0.3);
}

.luxury-home .hx-board__list {
  margin-block-start: .25rem;
}

.luxury-home .hx-board__foot {
  align-items: center;
  border-block-start: 1px solid var(--hx-line);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  justify-content: space-between;
  padding-block-start: .9rem;
}

.luxury-home .hx-board__meta {
  color: var(--hx-muted);
  font-size: .8rem;
  line-height: 1.7;
  margin: 0;
}

.luxury-home .hx-board__cta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
}

.luxury-home .hx-btn--md {
  font-size: .92rem;
  min-height: 46px;
  padding: 0 1.25rem;
}

.luxury-home .hx-board__signin {
  color: rgb(var(--t-c-9fe9d3));
  font-size: .84rem;
  font-weight: 800;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-decoration-color: rgba(var(--t-c-9fe9d3), 0.35);
  text-underline-offset: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .luxury-home .hx-explore__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .luxury-home .hx-journey {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 1rem;
  }

  .luxury-home .hx-journey::before {
    display: none;
  }
}

@media (min-width: 640px) and (max-width: 960px) {
  .luxury-home .hx-explore__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .luxury-home .hx-explore__grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .luxury-home .hx-board__foot,
  .luxury-home .hx-board__cta {
    align-items: stretch;
    flex-direction: column;
  }

  .luxury-home .hx-board__cta .hx-btn {
    width: 100%;
  }

  .luxury-home .hx-board__signin {
    justify-content: center;
  }

  .luxury-home .hx-podium {
    gap: .45rem;
  }

  .luxury-home .hx-podium__spot .hx-board__alias {
    font-size: .78rem;
  }

  .luxury-home .hx-podium__score {
    font-size: 1.2rem;
  }
}

@media (max-width: 380px) {
  .luxury-home .hx-podium__spot .hx-board__alias {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .luxury-home .hx-hero__scan,
  .luxury-home .hx-board__panel:not([hidden]),
  .luxury-home .hx-feature:hover .hx-feature__icon path {
    animation: none !important;
  }

  .luxury-home .hx-hero__scan {
    display: none;
  }

  .luxury-home :is(.hx-feature, .hx-feature__icon, .hx-journey__dot) {
    transition: none !important;
  }

  .luxury-home .hx-feature:hover,
  .luxury-home .hx-feature:hover .hx-feature__icon,
  .luxury-home .hx-journey a:hover .hx-journey__dot {
    transform: none;
  }
}

/* Owner 2026-11-14: the card label sits beside its icon, the step number stays at the far end */
.luxury-home .hx-feature__top { justify-content: flex-start; gap: .6rem; }
.luxury-home .hx-feature__top .hx-feature__tag { align-self: center; }
.luxury-home .hx-feature__top .hx-feature__step { margin-inline-start: auto; }

/* Light themes (2026-11-19, home leaves the dark pin). Small accent text sits on its own tint; the converted light
   steps read 3.4-4.3:1 there. The colour is mixed with the text ink instead of replaced, so a published «مخصص»
   theme keeps its own hue. The decorative step numbers keep the faintness they have in dark (about 1.5:1).
   Dark is unchanged. */
[data-theme="light"] .luxury-home :is(.hx-feature__tag, .hx-board__kind) {
  color: color-mix(in oklab, rgb(var(--t-c-c3e79a)) 72%, var(--t-text));
}
[data-theme="light"] .luxury-home :is(.hx-feature__link, .hx-nudge a) {
  color: color-mix(in oklab, rgb(var(--t-c-9fe9d3)) 80%, var(--t-text));
}
[data-theme="light"] .luxury-home .hx-feature__step { color: rgba(var(--t-c-9fe9d3), 0.26); }
[data-theme="light"] .luxury-home .hx-feature:hover .hx-feature__step { color: rgba(var(--t-c-9fe9d3), 0.42); }
@media (prefers-color-scheme: light) {
  [data-theme="system"] .luxury-home :is(.hx-feature__tag, .hx-board__kind) {
    color: color-mix(in oklab, rgb(var(--t-c-c3e79a)) 72%, var(--t-text));
  }
  [data-theme="system"] .luxury-home :is(.hx-feature__link, .hx-nudge a) {
    color: color-mix(in oklab, rgb(var(--t-c-9fe9d3)) 80%, var(--t-text));
  }
  [data-theme="system"] .luxury-home .hx-feature__step { color: rgba(var(--t-c-9fe9d3), 0.26); }
  [data-theme="system"] .luxury-home .hx-feature:hover .hx-feature__step { color: rgba(var(--t-c-9fe9d3), 0.42); }
}

/* ==========================================================================
   Owner's item 8 (2026-11-23): a compact «ابدأ رحلتك» strip and light motion in the hero.
   CSS only (no new library, nothing to download); everything stops under «تقليل الحركة».
   ========================================================================== */

/* ---- «ابدأ رحلتك»: one compact row (icon · copy · actions) ---- */
.luxury-home .home-cta-shell.hx-cta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.25rem;
  max-width: 68rem;
  width: 100%;
  margin-inline: auto;
  padding: 1rem 1.25rem;
  border-radius: 20px;
}
.luxury-home .home-cta-shell.hx-cta::after { display: none; }
.luxury-home .hx-cta__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(var(--t-c-2fbfa4), 0.3);
  border-radius: 14px;
  background: rgba(var(--t-c-006b69), 0.3);
  color: var(--hx-accent);
  position: relative;
  z-index: 1;
}
.luxury-home .hx-cta__icon svg { width: 1.5rem; height: 1.5rem; }
.luxury-home .hx-cta .home-cta-copy { max-width: none; }
.luxury-home .hx-cta__badge {
  margin: 0 0 .2rem;
  color: var(--hx-accent);
  font-size: .72rem;
  font-weight: 900;
}
.luxury-home .hx-cta .home-cta-title {
  font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem);
  line-height: 1.45;
  letter-spacing: 0;
}
.luxury-home .hx-cta .home-cta-description {
  margin-block-start: .25rem;
  font-size: .86rem;
  line-height: 1.75;
}
.luxury-home .hx-cta .home-cta-action { display: flex; flex-wrap: wrap; gap: .5rem; }
.luxury-home .hx-cta .hx-cta__btn { min-height: 44px; padding-inline: 1.1rem; font-size: .9rem; }
@media (max-width: 760px) {
  .luxury-home .home-cta-shell.hx-cta { grid-template-columns: auto minmax(0, 1fr); padding: 1rem; }
  .luxury-home .hx-cta .home-cta-action { grid-column: 1 / -1; }
  .luxury-home .hx-cta .hx-cta__btn { flex: 1 1 8rem; }
}

/* ---- hero: the copy arrives piece by piece instead of as one block ---- */
.luxury-home .hx-hero__copy { animation: none; }
.luxury-home .hx-hero__copy > * { animation: hx-rise .6s cubic-bezier(.22, 1, .36, 1) both; }
.luxury-home .hx-hero__copy > :nth-child(2) { animation-delay: .08s; }
.luxury-home .hx-hero__copy > :nth-child(3) { animation-delay: .16s; }
.luxury-home .hx-hero__copy > :nth-child(4) { animation-delay: .24s; }
.luxury-home .hx-hero__copy > :nth-child(5) { animation-delay: .32s; }

/* ---- «ابدأ الآن»: a soft shine passes once after load, and again on hover ---- */
.luxury-home [data-hx-start] { position: relative; overflow: hidden; isolation: isolate; }
.luxury-home [data-hx-start]::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(var(--t-c-ffffff), 0.45), transparent);
  transform: skewX(-18deg);
  animation: hx-shine 1.1s ease-out .9s 1 both;
  pointer-events: none;
}
.luxury-home [data-hx-start]:hover::after { animation: hx-shine .8s ease-out 1 both; }
@keyframes hx-shine {
  from { inset-inline-start: -60%; opacity: 1; }
  to { inset-inline-start: 120%; opacity: 0; }
}

/* ---- a slow glow drifts behind the indicators panel ---- */
.luxury-home .hx-panel { position: relative; isolation: isolate; }
.luxury-home .hx-panel::before {
  content: "";
  position: absolute;
  inset: -18% -10%;
  z-index: -1;
  background: radial-gradient(45% 45% at 50% 50%, rgba(var(--t-c-18c79b), 0.16), transparent 70%);
  animation: hx-glow 9s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes hx-glow {
  from { transform: translate3d(-6%, -4%, 0) scale(1); opacity: .7; }
  to { transform: translate3d(6%, 5%, 0) scale(1.08); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .luxury-home .hx-hero__copy > *,
  .luxury-home [data-hx-start]::after,
  .luxury-home [data-hx-start]:hover::after,
  .luxury-home .hx-panel::before { animation: none !important; }
  .luxury-home [data-hx-start]::after { display: none; }
}
