:root {
    --hir-black: #070707;
    --hir-black-soft: #0b0b0b;

    --hir-panel:
        rgba(18, 18, 17, 0.72);

    --hir-ivory: #f1ede4;
    --hir-muted: #918d84;
    --hir-dim: #625f58;

    --hir-gold: #bba36d;
    --hir-gold-light: #d6c28e;

    --hir-brand-gold: #f0a72d;
    --hir-brand-gold-bright: #ffba43;
    --hir-brand-copper: #b87333;

    --hir-line:
        rgba(214, 194, 142, 0.16);

    --hir-line-soft:
        rgba(255, 255, 255, 0.07);

    --hir-radius: 2px;

    --hir-shell-max: 1880px;
    --hir-gutter:
        clamp(24px, 3.8vw, 72px);
}

/* ==========================================================
   FONTS
   ========================================================== */

@font-face {
    font-family: "HiDi Sahel Display";

    src:
        url("../fonts/Sahel/Sahel-Display.woff2")
        format("woff2");

    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "HiDi Estedad";

    src:
        url("../fonts/Estedad/Estedad-Variable.woff2")
        format("woff2");

    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "HiDi Vazirmatn";

    src:
        url("../fonts/Vazirmatn/Vazirmatn-Variable.woff2")
        format("woff2");

    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

/* ==========================================================
   GLOBAL
   ========================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--hir-black);
}

html {
    color-scheme: dark;
}

body {
    min-width: 320px;

    color: var(--hir-ivory);

    overflow-x: hidden;

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
a {
    font: inherit;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================
   ROOT / AMBIENT
   ========================================================== */

.hir-gateway {
    min-height: 100svh;

    position: relative;
    isolation: isolate;

    background:
        radial-gradient(
            circle at 77% 43%,
            rgba(179, 151, 91, 0.078),
            transparent 31rem
        ),
        radial-gradient(
            circle at 18% 82%,
            rgba(118, 89, 43, 0.028),
            transparent 28rem
        ),
        linear-gradient(
            135deg,
            #050505 0%,
            #090909 52%,
            #060606 100%
        );
}

.hir-ambient {
    position: fixed;
    inset: 0;

    z-index: -1;

    pointer-events: none;
    overflow: hidden;
}

.hir-ambient::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            transparent 0,
            transparent calc(50% - 1px),
            rgba(255, 255, 255, 0.017) 50%,
            transparent calc(50% + 1px)
        );
}

.hir-ambient__grid {
    position: absolute;
    inset: 0;

    opacity: 0.24;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        );

    background-size:
        clamp(58px, 4vw, 76px)
        clamp(58px, 4vw, 76px);

    -webkit-mask-image:
        radial-gradient(
            circle at 72% 46%,
            black,
            transparent 68%
        );

    mask-image:
        radial-gradient(
            circle at 72% 46%,
            black,
            transparent 68%
        );
}

.hir-ambient__orb {
    position: absolute;

    display: block;

    border-radius: 999px;

    filter: blur(2px);
}

.hir-ambient__orb--one {
    width: 35rem;
    height: 35rem;

    right: -12rem;
    top: -13rem;

    border:
        1px solid
        rgba(199, 170, 106, 0.08);
}

.hir-ambient__orb--two {
    width: 17rem;
    height: 17rem;

    right: 15%;
    bottom: -10rem;

    border:
        1px solid
        rgba(199, 170, 106, 0.06);
}

/* ==========================================================
   APP SHELL
   ========================================================== */

.hir-shell {
    width:
        min(
            calc(100% - (var(--hir-gutter) * 2)),
            var(--hir-shell-max)
        );

    min-height: 100svh;

    margin: 0 auto;

    display: grid;

    grid-template-rows:
        auto
        minmax(0, 1fr)
        auto;
}

/* ==========================================================
   HEADER
   ========================================================== */

.hir-header {
    min-height:
        clamp(86px, 8.2vh, 104px);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    border-bottom:
        1px solid
        var(--hir-line-soft);
}

.hir-brand {
    display: inline-flex;
    align-items: center;

    gap: 14px;

    direction: ltr;

    flex-shrink: 0;
}

.hir-brand__symbol {
    width: 66px;
    min-width: 66px;
    height: 50px;

    display: block;

    background:
        linear-gradient(
            135deg,
            #ffe09a 0%,
            #f0a72d 38%,
            #b87333 72%,
            #75431d 100%
        );

    -webkit-mask:
        url("../images/brand/hidizbad-logo.png")
        center / contain
        no-repeat;

    mask:
        url("../images/brand/hidizbad-logo.png")
        center / contain
        no-repeat;

    filter:
        drop-shadow(
            0 0 6px
            rgba(240, 167, 45, 0.16)
        )
        drop-shadow(
            0 8px 20px
            rgba(0, 0, 0, 0.48)
        );
}

.hir-brand__identity {
    display: flex;
    flex-direction: column;

    gap: 4px;

    direction: ltr;
}

.hir-brand__identity strong {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.25rem;
    font-weight: 500;

    line-height: 1;

    letter-spacing: -0.02em;

    color: var(--hir-ivory);
}

.hir-brand__identity small {
    margin-top: 5px;

    font-family:
        "HiDi Vazirmatn",
        Tahoma,
        Arial,
        sans-serif;

    color: var(--hir-brand-gold);

    font-size: 0.70rem;
    font-weight: 700;

    line-height: 1;

    letter-spacing: 0;
}

.hir-header__tools {
    display: flex;
    align-items: center;

    gap:
        clamp(16px, 2vw, 30px);
}

.hir-security-indicator {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    color: var(--hir-muted);

    font-size: 10px;

    letter-spacing: 0.16em;
}

.hir-security-indicator i,
.hir-live i {
    width: 5px;
    height: 5px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: var(--hir-gold);

    box-shadow:
        0 0 10px
        rgba(187, 163, 109, 0.45);
}

/* ==========================================================
   LANGUAGE SWITCH
   ========================================================== */

.hir-language {
    display: none !important;
}

.hir-language-switch {
    min-width: 92px;
    height: 42px;

    display: inline-grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;

    gap: 7px;

    padding: 4px 8px;

    border:
        1px solid
        rgba(255, 255, 255, 0.10);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.025);

    backdrop-filter: blur(18px);
}

.hir-language-option {
    min-width: 28px;
    height: 30px;

    display: grid;
    place-items: center;

    border-radius: 999px;

    color: var(--hir-muted);

    font-size: 0.66rem;
    font-weight: 900;

    letter-spacing: 0.08em;

    transition:
        color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.hir-language-option:hover {
    color: var(--hir-ivory);
}

.hir-language-option.is-active {
    background:
        linear-gradient(
            135deg,
            rgba(255, 186, 67, 0.96),
            rgba(184, 115, 51, 0.96)
        );

    color: #090a09;

    box-shadow:
        0 4px 18px
        rgba(240, 167, 45, 0.16);
}

.hir-language-divider {
    width: 1px;
    height: 14px;

    background:
        rgba(255, 255, 255, 0.10);
}

/* ==========================================================
   MAIN STAGE
   ========================================================== */

.hir-stage {
    min-height: 0;

    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(350px, 0.62fr);

    align-items: center;

    gap:
        clamp(54px, 7vw, 150px);

    padding:
        clamp(44px, 6vh, 90px)
        clamp(20px, 3.5vw, 66px);
}

.hir-intro {
    width: 100%;
    max-width: 780px;
}

.hir-kicker {
    display: flex;
    align-items: center;

    gap: 15px;

    margin-bottom:
        clamp(20px, 2.2vh, 28px);

    color: var(--hir-gold-light);

    font-size: 11px;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}

.hir-kicker span {
    width: 44px;
    height: 1px;

    flex: 0 0 auto;

    background: var(--hir-gold);
}

.hir-intro h1 {
    max-width: 720px;

    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            52px,
            5vw,
            100px
        );

    font-weight: 400;

    line-height: 0.95;

    letter-spacing: -0.045em;

    text-wrap: balance;
}

.hir-description {
    max-width: 590px;

    margin:
        clamp(22px, 2.7vh, 32px)
        0
        0;

    color: var(--hir-muted);

    font-size:
        clamp(
            14px,
            1.05vw,
            17px
        );

    line-height: 1.85;
}

.hir-actions {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-top:
        clamp(28px, 3.5vh, 43px);
}

.hir-primary-action,
.hir-secondary-action {
    min-height: 54px;

    border-radius: var(--hir-radius);

    cursor: pointer;

    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease;
}

.hir-primary-action {
    min-width: 235px;

    padding:
        0
        19px
        0
        23px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    border:
        1px solid
        var(--hir-gold);

    background: var(--hir-gold);

    color: #090909;

    font-size: 11px;
    font-weight: 650;

    letter-spacing: 0.055em;
}

.hir-primary-action i {
    font-style: normal;

    font-size: 17px;
}

.hir-secondary-action {
    padding:
        0
        22px;

    border:
        1px solid
        var(--hir-line-soft);

    background:
        rgba(255, 255, 255, 0.015);

    color: var(--hir-muted);

    font-size: 11px;
}

.hir-primary-action:hover,
.hir-secondary-action:hover {
    transform: translateY(-2px);
}

.hir-primary-action:hover {
    box-shadow:
        0 10px 34px
        rgba(187, 163, 109, 0.11);
}

.hir-secondary-action:hover {
    border-color: var(--hir-line);
    color: var(--hir-ivory);
}

.hir-information {
    width: max-content;

    margin-top:
        clamp(18px, 2vh, 24px);

    display: flex;
    align-items: center;

    gap: 13px;

    color: var(--hir-dim);

    font-size: 11px;

    transition:
        color 180ms ease;
}

.hir-information:hover {
    color: var(--hir-muted);
}

/* ==========================================================
   INVESTOR ACCESS CARD
   ========================================================== */

.hir-access-card {
    width: min(100%, 440px);

    justify-self: end;

    position: relative;

    padding:
        clamp(24px, 2vw, 30px);

    overflow: hidden;

    border:
        1px solid
        var(--hir-line);

    background:
        linear-gradient(
            145deg,
            rgba(25, 24, 21, 0.82),
            rgba(10, 10, 10, 0.72)
        );

    box-shadow:
        0 35px 90px
        rgba(0, 0, 0, 0.32),
        inset 0 1px
        rgba(255, 255, 255, 0.025);

    backdrop-filter: blur(24px);
}

.hir-access-card::before {
    content: "";

    position: absolute;

    width: 240px;
    height: 240px;

    top: -140px;
    right: -100px;

    border-radius: 50%;

    border:
        1px solid
        rgba(214, 194, 142, 0.08);

    pointer-events: none;
}

.hir-access-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.hir-card-index {
    color: var(--hir-dim);

    font-family:
        Georgia,
        serif;

    font-size: 12px;
}

.hir-live {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: var(--hir-muted);

    font-size: 10px;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.hir-access-card__monogram {
    margin-top:
        clamp(48px, 7vh, 92px);

    color:
        rgba(214, 194, 142, 0.16);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            78px,
            6.5vw,
            120px
        );

    line-height: 0.80;

    letter-spacing: -0.09em;
}

.hir-access-card__title {
    margin-top:
        clamp(26px, 3vh, 32px);

    display: flex;
    flex-direction: column;

    gap: 8px;
}

.hir-access-card__title small {
    color: var(--hir-gold);

    font-size: 10px;

    letter-spacing: 0.15em;
}

.hir-access-card__title strong {
    font-family:
        Georgia,
        serif;

    font-size:
        clamp(
            18px,
            1.2vw,
            20px
        );

    font-weight: 400;

    letter-spacing: 0.05em;
}

.hir-status-list {
    margin:
        clamp(28px, 3.5vh, 38px)
        0
        0;

    padding: 0;

    border-top:
        1px solid
        var(--hir-line-soft);
}

.hir-status-list > div {
    min-height: 54px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 20px;

    border-bottom:
        1px solid
        var(--hir-line-soft);
}

.hir-status-list dt,
.hir-status-list dd {
    margin: 0;

    font-size: 10px;
}

.hir-status-list dt {
    color: var(--hir-dim);

    letter-spacing: 0.11em;

    text-transform: uppercase;
}

.hir-status-list dd {
    color: var(--hir-muted);

    text-align: end;
}

.hir-access-card__seal {
    margin-top:
        clamp(18px, 2.5vh, 24px);

    display: flex;
    justify-content: space-between;

    gap: 18px;

    color: var(--hir-dim);

    font-size: 9px;

    letter-spacing: 0.14em;
}

/* ==========================================================
   FOOTER
   ========================================================== */

.hir-footer {
    min-height:
        clamp(66px, 6.5vh, 78px);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;

    border-top:
        1px solid
        var(--hir-line-soft);
}

.hir-footer > div:first-child {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 14px;
}

.hir-footer span {
    color: var(--hir-muted);

    font-size: 10px;

    letter-spacing: 0.14em;
}

.hir-footer small {
    color: var(--hir-dim);

    font-size: 9px;

    letter-spacing: 0.09em;
}

.hir-footer__links {
    display: flex;
    align-items: center;

    gap: 13px;

    flex-shrink: 0;
}

.hir-footer__links button {
    padding: 0;

    border: 0;

    background: transparent;

    color: var(--hir-dim);

    cursor: pointer;

    font-size: 9px;

    transition:
        color 180ms ease;
}

.hir-footer__links button:hover {
    color: var(--hir-muted);
}

.hir-footer__links span {
    width: 2px;
    height: 2px;

    border-radius: 50%;

    background: var(--hir-dim);
}

/* ==========================================================
   PREVIEW NOTICE
   ========================================================== */

.hir-preview-notice {
    position: fixed;

    left: 50%;
    bottom:
        max(
            20px,
            env(safe-area-inset-bottom)
        );

    z-index: 10;

    transform:
        translateX(-50%);

    min-width:
        min(
            90vw,
            390px
        );

    padding:
        14px
        18px;

    border:
        1px solid
        var(--hir-line);

    background:
        rgba(12, 12, 12, 0.94);

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, 0.45);

    color: var(--hir-muted);

    text-align: center;

    font-size: 11px;

    backdrop-filter: blur(20px);
}

/* ==========================================================
   PERSIAN / RTL
   ========================================================== */

html[dir="rtl"] body,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea {
    font-family:
        "HiDi Vazirmatn",
        Tahoma,
        Arial,
        sans-serif;
}

html[dir="rtl"] .hir-stage {
    direction: rtl;
}

html[dir="rtl"] .hir-intro {
    text-align: right;
}

html[dir="rtl"] .hir-kicker,
html[dir="rtl"] .hir-primary-action,
html[dir="rtl"] .hir-secondary-action,
html[dir="rtl"] .hir-information,
html[dir="rtl"] .hir-status-list,
html[dir="rtl"] .hir-footer,
html[dir="rtl"] .hir-security-indicator {
    font-family:
        "HiDi Vazirmatn",
        Tahoma,
        sans-serif;

    letter-spacing: 0;
}

html[dir="rtl"] .hir-intro h1 {
    font-family:
        "HiDi Sahel Display",
        "HiDi Estedad",
        "HiDi Vazirmatn",
        sans-serif;

    font-weight: 400;

    line-height: 1.16;

    letter-spacing: -0.022em;
}

html[dir="rtl"] .hir-description {
    font-family:
        "HiDi Vazirmatn",
        Tahoma,
        sans-serif;

    font-weight: 380;

    line-height: 1.95;

    letter-spacing: 0;

    font-variation-settings:
        "wght" 380;
}

html[dir="rtl"] .hir-primary-action {
    padding:
        0
        23px
        0
        19px;
}

html[dir="rtl"] .hir-access-card__title strong {
    font-family:
        "HiDi Estedad",
        "HiDi Vazirmatn",
        sans-serif;

    font-weight: 470;

    letter-spacing: -0.012em;

    font-variation-settings:
        "wght" 470;
}

html[dir="rtl"] .hir-access-card__title small,
html[dir="rtl"] .hir-status-list dt {
    letter-spacing: 0;
}

html[dir="rtl"] .hir-status-list {
    text-align: right;
}

/* ==========================================================
   LARGE DESKTOP / ULTRAWIDE
   ========================================================== */

@media (min-width: 1900px) {
    :root {
        --hir-shell-max: 1980px;
    }

    .hir-stage {
        grid-template-columns:
            minmax(0, 1.18fr)
            minmax(390px, 0.58fr);

        padding-inline:
            clamp(
                70px,
                5.4vw,
                116px
            );
    }

    .hir-intro {
        max-width: 850px;
    }

    .hir-access-card {
        width:
            min(
                100%,
                455px
            );
    }
}

/* ==========================================================
   MID DESKTOP / LAPTOP
   ========================================================== */

@media (max-width: 1280px) {
    .hir-stage {
        gap:
            clamp(
                40px,
                5vw,
                74px
            );

        padding-inline: 20px;
    }

    .hir-intro h1 {
        font-size:
            clamp(
                48px,
                5vw,
                76px
            );
    }

    .hir-access-card {
        max-width: 410px;
    }
}

/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 980px) {
    .hir-shell {
        width:
            min(
                calc(100% - 40px),
                820px
            );

        min-height: 100svh;
    }

    .hir-stage {
        grid-template-columns: 1fr;

        align-content: center;

        gap: 42px;

        padding:
            48px
            0;
    }

    .hir-intro {
        max-width: 680px;
    }

    .hir-access-card {
        width: 100%;
        max-width: none;

        justify-self: stretch;
    }

    .hir-access-card__monogram {
        margin-top: 38px;

        font-size: 80px;
    }
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 640px) {
    :root {
        --hir-gutter: 15px;
    }

    .hir-shell {
        width:
            calc(
                100% - 30px
            );
    }

    .hir-header {
        min-height: 78px;

        gap: 12px;
    }

    .hir-brand {
        gap: 9px;
    }

    .hir-brand__symbol {
        width: 54px;
        min-width: 54px;
        height: 42px;
    }

    .hir-brand__identity strong {
        font-size: 1rem;
    }

    .hir-brand__identity small {
        margin-top: 3px;

        font-size: 0.62rem;
    }

    .hir-security-indicator {
        display: none;
    }

    .hir-header__tools {
        gap: 8px;
    }

    .hir-language-switch {
        min-width: 82px;
        height: 38px;

        padding-inline: 5px;
    }

    .hir-language-option {
        min-width: 25px;
        height: 27px;

        font-size: 0.62rem;
    }

    .hir-stage {
        display: flex;
        flex-direction: column;

        justify-content: center;

        gap: 30px;

        padding:
            36px
            0
            32px;
    }

    .hir-kicker {
        margin-bottom: 18px;

        font-size: 10px;
    }

    .hir-kicker span {
        width: 34px;
    }

    .hir-intro h1 {
        font-size:
            clamp(
                42px,
                13.5vw,
                64px
            );

        line-height: 1;
    }

    html[dir="rtl"] .hir-intro h1 {
        font-size:
            clamp(
                38px,
                11.8vw,
                56px
            );

        line-height: 1.18;
    }

    .hir-description {
        margin-top: 20px;

        font-size: 13.5px;

        line-height: 1.78;
    }

    html[dir="rtl"] .hir-description {
        line-height: 1.9;
    }

    .hir-actions {
        margin-top: 28px;

        flex-direction: column;
        align-items: stretch;

        gap: 11px;
    }

    .hir-primary-action,
    .hir-secondary-action {
        width: 100%;

        min-height: 52px;
    }

    .hir-access-card {
        padding: 22px;
    }

    .hir-access-card__monogram {
        margin-top: 30px;

        font-size: 68px;
    }

    .hir-access-card__title {
        margin-top: 24px;
    }

    .hir-status-list {
        margin-top: 26px;
    }

    .hir-access-card__seal {
        flex-wrap: wrap;
    }

    .hir-footer {
        min-height: 68px;

        gap: 10px;
    }

    .hir-footer > div:first-child small {
        display: none;
    }

    .hir-footer__links {
        gap: 8px;
    }
}

/* ==========================================================
   VERY SMALL MOBILE
   ========================================================== */

@media (max-width: 390px) {
    .hir-brand__symbol {
        width: 48px;
        min-width: 48px;
        height: 38px;
    }

    .hir-brand__identity strong {
        font-size: 0.92rem;
    }

    .hir-brand__identity small {
        font-size: 0.58rem;
    }

    .hir-language-switch {
        min-width: 76px;

        gap: 5px;
    }

    .hir-footer__links {
        gap: 6px;
    }

    .hir-footer__links button {
        font-size: 8.5px;
    }
}

/* ==========================================================
   SHORT DESKTOP / LAPTOP HEIGHT
   ========================================================== */

@media (
    max-height: 820px
)
and (
    min-width: 981px
) {
    .hir-header {
        min-height: 76px;
    }

    .hir-stage {
        padding-block: 26px;
    }

    .hir-kicker {
        margin-bottom: 16px;
    }

    .hir-description {
        margin-top: 20px;
    }

    .hir-actions {
        margin-top: 24px;
    }

    .hir-information {
        margin-top: 16px;
    }

    .hir-access-card {
        padding: 24px;
    }

    .hir-access-card__monogram {
        margin-top: 34px;

        font-size: 78px;
    }

    .hir-access-card__title {
        margin-top: 24px;
    }

    .hir-status-list {
        margin-top: 22px;
    }

    .hir-status-list > div {
        min-height: 48px;
    }

    .hir-access-card__seal {
        margin-top: 18px;
    }

    .hir-footer {
        min-height: 58px;
    }
}

/* ==========================================================
   VERY SHORT DESKTOP
   ========================================================== */

@media (
    max-height: 690px
)
and (
    min-width: 981px
) {
    .hir-stage {
        padding-block: 18px;
    }

    .hir-intro h1 {
        font-size:
            clamp(
                44px,
                4.5vw,
                70px
            );
    }

    .hir-access-card__monogram {
        margin-top: 26px;

        font-size: 68px;
    }

    .hir-status-list > div {
        min-height: 44px;
    }
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        transition-duration:
            0.001ms !important;

        animation-duration:
            0.001ms !important;

        animation-iteration-count:
            1 !important;
    }
}

/* ==========================================================
   HIR-01.7B2 — INVESTOR CARD ORBIT BRAND
   لوگوی اصلی HiDizbad با دو مدار ظریف مرکزی
   ========================================================== */

.hir-access-card__top {
    justify-content: flex-start;
}

html[dir="rtl"] .hir-access-card__top {
    justify-content: flex-start;
}

.hir-card-index {
    display: none !important;
}

.hir-access-card__brand {
    width:
        min(
            100%,
            310px
        );

    aspect-ratio: 1;

    margin:
        clamp(
            24px,
            3.4vh,
            42px
        )
        auto
        0;

    position: relative;

    display: grid;
    place-items: center;

    isolation: isolate;
}

/* مدار بیرونی */

.hir-access-card__brand::before {
    content: "";

    position: absolute;

    inset: 2%;

    border:
        1px dashed
        rgba(240, 167, 45, 0.24);

    border-radius: 50%;

    pointer-events: none;
}

/* مدار داخلی */

.hir-access-card__brand::after {
    content: "";

    position: absolute;

    inset: 15%;

    border:
        1px solid
        rgba(240, 167, 45, 0.30);

    border-radius: 50%;

    box-shadow:
        inset 0 0 34px
        rgba(240, 167, 45, 0.025);

    pointer-events: none;
}

.hir-access-card__brand-symbol {
    width: 58%;

    aspect-ratio: 809 / 443;

    position: relative;
    z-index: 2;

    display: block;

    transform:
        translateY(-5%);

    background:
        linear-gradient(
            135deg,
            #ffe09a 0%,
            #f0a72d 38%,
            #b87333 72%,
            #75431d 100%
        );

    -webkit-mask:
        url("../images/brand/hidizbad-logo.png")
        center / contain
        no-repeat;

    mask:
        url("../images/brand/hidizbad-logo.png")
        center / contain
        no-repeat;

    filter:
        drop-shadow(
            0 0 12px
            rgba(240, 167, 45, 0.12)
        )
        drop-shadow(
            0 14px 30px
            rgba(0, 0, 0, 0.44)
        );
}

.hir-access-card__brand-name {
    position: absolute;

    left: 50%;
    bottom: 25%;

    z-index: 3;

    transform:
        translateX(-50%);

    color:
        rgba(
            214,
            194,
            142,
            0.64
        );

    font-size: 9px;
    font-weight: 600;

    line-height: 1;

    letter-spacing: 0.30em;

    white-space: nowrap;
}

/* Legacy monogram */

.hir-access-card__monogram {
    display: none !important;
}

/* موبایل */

@media (max-width: 640px) {
    .hir-access-card__brand {
        width:
            min(
                86vw,
                270px
            );

        margin-top: 22px;
    }

    .hir-access-card__brand-symbol {
        width: 57%;
    }

    .hir-access-card__brand-name {
        bottom: 24%;

        font-size: 8.5px;
    }
}

/* لپ‌تاپ / ارتفاع کوتاه */

@media (
    max-height: 820px
)
and (
    min-width: 981px
) {
    .hir-access-card__brand {
        width: 250px;

        margin-top: 20px;
    }

    .hir-access-card__brand-name {
        font-size: 8.5px;
    }
}


/* ==========================================================
   HIR-01.8H10B — PRIVATE ACCESS EXPERIENCE
   ========================================================== */

.hir-modal-open {
    overflow: hidden;
}

.hir-access-layer {
    position: fixed;
    inset: 0;

    z-index: 100;

    display: grid;
    place-items: center;

    padding:
        clamp(18px, 3vw, 48px);

    visibility: hidden;
    opacity: 0;

    transition:
        opacity 220ms ease,
        visibility 220ms ease;
}

.hir-access-layer.is-open {
    visibility: visible;
    opacity: 1;
}

.hir-access-layer__backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(2, 2, 2, 0.82);

    backdrop-filter:
        blur(18px);

    cursor: pointer;
}

.hir-access-dialog {
    width:
        min(
            100%,
            1060px
        );

    max-height:
        min(
            88svh,
            760px
        );

    position: relative;
    z-index: 1;

    overflow: auto;

    border:
        1px solid
        rgba(214, 194, 142, 0.20);

    background:
        radial-gradient(
            circle at 80% 5%,
            rgba(240, 167, 45, 0.055),
            transparent 22rem
        ),
        linear-gradient(
            145deg,
            rgba(18, 18, 17, 0.985),
            rgba(7, 7, 7, 0.985)
        );

    box-shadow:
        0 50px 160px
        rgba(0, 0, 0, 0.72),
        inset 0 1px
        rgba(255, 255, 255, 0.035);

    backdrop-filter:
        blur(30px);

    animation:
        hirAccessEnter
        320ms
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}

.hir-access-dialog[hidden] {
    display: none !important;
}

@keyframes hirAccessEnter {
    from {
        opacity: 0;

        transform:
            translateY(18px)
            scale(0.985);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}

.hir-access-dialog__close {
    width: 40px;
    height: 40px;

    position: absolute;

    top: 20px;
    right: 20px;

    z-index: 5;

    display: grid;
    place-items: center;

    padding: 0;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.018);

    color: var(--hir-muted);

    cursor: pointer;

    font-size: 21px;
    font-weight: 200;

    line-height: 1;

    transition:
        border-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.hir-access-dialog__close:hover {
    border-color:
        rgba(214, 194, 142, 0.40);

    color: var(--hir-ivory);

    transform:
        rotate(5deg);
}

.hir-access-dialog__header {
    padding:
        38px
        72px
        28px;

    border-bottom:
        1px solid
        var(--hir-line-soft);
}

.hir-access-dialog__eyebrow {
    display: block;

    margin-bottom: 10px;

    color:
        var(--hir-gold);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.18em;
}

.hir-access-dialog h2,
.hir-access-dialog h3 {
    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-weight: 400;

    color:
        var(--hir-ivory);
}

.hir-access-dialog h2 {
    font-size:
        clamp(
            28px,
            2.4vw,
            40px
        );

    letter-spacing:
        -0.025em;
}

.hir-access-dialog h3 {
    font-size:
        clamp(
            24px,
            2vw,
            32px
        );
}

.hir-access-dialog__header p,
.hir-enrollment-copy p,
.hir-login-form-wrap > p,
.hir-enrollment-success > p {
    margin:
        10px
        0
        0;

    color:
        var(--hir-muted);

    font-size: 12px;

    line-height: 1.75;
}

.hir-enrollment-layout {
    min-height: 470px;

    display: grid;

    grid-template-columns:
        265px
        minmax(0, 1fr);
}

.hir-enrollment-steps {
    padding:
        54px
        26px
        46px
        42px;

    position: relative;

    border-right:
        1px solid
        var(--hir-line-soft);

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.016),
            transparent
        );
}

.hir-enrollment-steps::before {
    content: "";

    position: absolute;

    left: 57px;
    top: 72px;
    bottom: 76px;

    width: 1px;

    background:
        linear-gradient(
            to bottom,
            rgba(214, 194, 142, 0.28),
            rgba(255, 255, 255, 0.055)
        );
}

.hir-enrollment-step {
    width: 100%;

    min-height: 62px;

    position: relative;
    z-index: 1;

    display: grid;

    grid-template-columns:
        30px
        minmax(0, 1fr);

    align-items: start;

    gap: 14px;

    margin-bottom: 18px;

    padding: 0;

    border: 0;

    background:
        transparent;

    color:
        var(--hir-dim);

    text-align: left;

    pointer-events: none;
}

.hir-enrollment-step > span {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    border:
        1px solid
        rgba(255, 255, 255, 0.09);

    border-radius: 50%;

    background:
        #111;

    color:
        var(--hir-muted);

    font-size: 9px;

    transition:
        180ms ease;
}

.hir-enrollment-step strong,
.hir-enrollment-step small {
    display: block;
}

.hir-enrollment-step strong {
    margin-top: 2px;

    font-size: 11px;
    font-weight: 600;

    color:
        currentColor;
}

.hir-enrollment-step small {
    margin-top: 5px;

    color:
        var(--hir-dim);

    font-size: 9px;

    line-height: 1.5;
}

.hir-enrollment-step.is-active {
    color:
        var(--hir-gold-light);
}

.hir-enrollment-step.is-active > span {
    border-color:
        var(--hir-gold);

    background:
        linear-gradient(
            135deg,
            #e8c873,
            #a76f29
        );

    color:
        #090909;

    box-shadow:
        0 0 24px
        rgba(240, 167, 45, 0.18);
}

.hir-enrollment-step.is-complete > span {
    border-color:
        rgba(187, 163, 109, 0.55);

    color:
        var(--hir-gold-light);
}

.hir-enrollment-panel {
    min-width: 0;

    display: grid;
    place-items: center;

    padding:
        42px
        clamp(
            34px,
            5vw,
            76px
        );

    position: relative;

    overflow: hidden;
}

.hir-enrollment-panel::before {
    content: "";

    position: absolute;

    width: 460px;
    height: 180px;

    left: 50%;
    bottom: -140px;

    transform:
        translateX(-50%);

    border-radius: 50%;

    background:
        rgba(240, 167, 45, 0.085);

    filter:
        blur(65px);

    pointer-events: none;
}

.hir-enrollment-screen {
    width:
        min(
            100%,
            510px
        );

    position: relative;
    z-index: 1;

    animation:
        hirScreenEnter
        260ms
        ease;
}

.hir-enrollment-screen[hidden] {
    display: none !important;
}

@keyframes hirScreenEnter {
    from {
        opacity: 0;
        transform:
            translateY(9px);
    }

    to {
        opacity: 1;
        transform:
            translateY(0);
    }
}

.hir-enrollment-icon {
    width: 74px;
    height: 74px;

    margin:
        0
        auto
        25px;

    display: grid;
    place-items: center;

    border:
        1px solid
        rgba(214, 194, 142, 0.38);

    border-radius: 50%;

    color:
        var(--hir-gold-light);

    font-size: 25px;

    box-shadow:
        0 0 40px
        rgba(240, 167, 45, 0.055);
}

.hir-enrollment-copy {
    margin-bottom:
        30px;

    text-align: center;
}

.hir-enrollment-copy--code small {
    display: block;

    margin-top: 12px;

    color:
        var(--hir-gold);

    font-size: 10px;
}

.hir-field {
    display: block;

    margin-top: 20px;
}

.hir-field > span {
    display: block;

    margin-bottom: 9px;

    color:
        var(--hir-dim);

    font-size: 8.5px;
    font-weight: 700;

    letter-spacing: 0.13em;
}

.hir-field input {
    width: 100%;
    height: 52px;

    padding:
        0
        16px;

    border:
        1px solid
        rgba(255, 255, 255, 0.09);

    border-radius:
        var(--hir-radius);

    outline: none;

    background:
        rgba(0, 0, 0, 0.28);

    color:
        var(--hir-ivory);

    caret-color:
        var(--hir-gold);

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}

.hir-field input::placeholder {
    color:
        rgba(145, 141, 132, 0.50);
}

.hir-field input:focus {
    border-color:
        rgba(214, 194, 142, 0.50);

    background:
        rgba(0, 0, 0, 0.40);

    box-shadow:
        0 0 0 3px
        rgba(240, 167, 45, 0.045);
}

.hir-gold-action,
.hir-outline-action {
    min-height: 52px;

    border-radius:
        var(--hir-radius);

    cursor: pointer;

    transition:
        transform 180ms ease,
        opacity 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.hir-gold-action {
    width: 100%;

    margin-top: 19px;

    padding:
        0
        18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border:
        1px solid
        #cfb06b;

    background:
        linear-gradient(
            110deg,
            #c8aa65,
            #e0c681,
            #b98c42
        );

    color:
        #0a0907;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.04em;

    box-shadow:
        0 12px 34px
        rgba(177, 132, 57, 0.09);
}

.hir-gold-action i {
    font-style: normal;

    font-size: 16px;
}

.hir-gold-action:hover,
.hir-outline-action:hover {
    transform:
        translateY(-1px);
}

.hir-gold-action:hover {
    box-shadow:
        0 16px 44px
        rgba(187, 143, 66, 0.15);
}

.hir-gold-action:disabled {
    cursor: wait;

    opacity: 0.55;

    transform: none;
}

.hir-outline-action {
    width: 100%;

    margin-top: 19px;

    padding:
        0
        18px;

    border:
        1px solid
        rgba(214, 194, 142, 0.28);

    background:
        transparent;

    color:
        var(--hir-muted);
}

.hir-enrollment-actions {
    display: grid;

    grid-template-columns:
        0.7fr
        1.3fr;

    gap: 10px;
}

.hir-enrollment-privacy {
    margin-top: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    color:
        var(--hir-dim);

    font-size: 11px;

    text-align: center;
}

.hir-enrollment-privacy span {
    color:
        var(--hir-gold);
}

.hir-form-message {
    min-height: 18px;

    margin:
        10px
        0
        -7px;

    color:
        var(--hir-muted);

    font-size: 11.5px;

    text-align: center;
}

.hir-form-message[data-state="error"] {
    color:
        #d69682;
}

.hir-form-message[data-state="loading"] {
    color:
        var(--hir-gold-light);
}

.hir-otp {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap:
        clamp(
            7px,
            1vw,
            11px
        );

    margin-top: 30px;
}

.hir-otp input {
    width: 100%;
    min-width: 0;

    aspect-ratio: 0.85;

    padding: 0;

    border:
        1px solid
        rgba(255, 255, 255, 0.10);

    border-radius:
        var(--hir-radius);

    outline: none;

    background:
        rgba(255, 255, 255, 0.018);

    color:
        var(--hir-ivory);

    font-family:
        Georgia,
        serif;

    font-size:
        clamp(
            22px,
            2vw,
            30px
        );

    text-align: center;

    transition:
        border-color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}

.hir-otp input:focus {
    border-color:
        var(--hir-gold);

    background:
        rgba(240, 167, 45, 0.025);

    box-shadow:
        0 0 24px
        rgba(240, 167, 45, 0.055);
}

.hir-enrollment-success {
    text-align: center;
}

.hir-success-mark {
    width: 94px;
    height: 94px;

    margin:
        0
        auto
        25px;

    display: grid;
    place-items: center;

    border:
        1px solid
        rgba(214, 194, 142, 0.42);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(240, 167, 45, 0.15),
            rgba(240, 167, 45, 0.015)
        );

    color:
        #e0c681;

    font-size: 42px;

    box-shadow:
        0 0 55px
        rgba(240, 167, 45, 0.12);
}

.hir-shareholder-reference {
    margin-top: 26px;

    padding:
        16px;

    border:
        1px solid
        var(--hir-line-soft);

    background:
        rgba(255, 255, 255, 0.018);
}

.hir-shareholder-reference span,
.hir-shareholder-reference strong {
    display: block;
}

.hir-shareholder-reference span {
    color:
        var(--hir-dim);

    font-size: 8px;

    letter-spacing: 0.14em;
}

.hir-shareholder-reference strong {
    margin-top: 8px;

    color:
        var(--hir-gold-light);

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 13px;

    letter-spacing: 0.08em;
}

.hir-access-dialog__security {
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding:
        14px
        30px;

    border-top:
        1px solid
        var(--hir-line-soft);

    color:
        var(--hir-dim);

    font-size: 9px;

    text-align: center;
}

.hir-access-dialog__security span {
    color:
        var(--hir-gold);
}

/* LOGIN */

.hir-access-dialog--login {
    width:
        min(
            100%,
            900px
        );

    display: grid;

    grid-template-columns:
        minmax(280px, 0.78fr)
        minmax(380px, 1.22fr);

    overflow: hidden;
}

.hir-login-visual {
    min-height: 560px;

    position: relative;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 46px;

    overflow: hidden;

    border-right:
        1px solid
        var(--hir-line-soft);

    background:
        radial-gradient(
            circle at 50% 48%,
            rgba(240, 167, 45, 0.10),
            transparent 15rem
        ),
        linear-gradient(
            145deg,
            #15130f,
            #080808
        );
}

.hir-login-visual::after {
    content: "";

    width: 330px;
    height: 330px;

    position: absolute;

    border:
        1px dashed
        rgba(240, 167, 45, 0.16);

    border-radius: 50%;
}

.hir-login-lock {
    width: 112px;
    height: 112px;

    position: relative;
    z-index: 1;

    display: grid;
    place-items: center;

    border:
        1px solid
        rgba(214, 194, 142, 0.45);

    border-radius: 50%;

    color:
        var(--hir-gold-light);

    font-size: 42px;

    box-shadow:
        0 0 54px
        rgba(240, 167, 45, 0.12);
}

.hir-login-visual strong,
.hir-login-visual small {
    position: relative;
    z-index: 1;

    text-align: center;
}

.hir-login-visual strong {
    margin-top: 44px;

    color:
        var(--hir-gold);

    font-size: 11px;

    letter-spacing: 0.16em;
}

.hir-login-visual small {
    margin-top: 9px;

    color:
        var(--hir-muted);

    font-size: 10.5px;

    letter-spacing: 0.11em;
}

.hir-login-form-wrap {
    padding:
        72px
        clamp(
            40px,
            5vw,
            72px
        );

    align-self: center;
}

.hir-login-form-wrap form {
    margin-top: 30px;
}

.hir-login-activate-link {
    width: 100%;

    margin-top: 22px;

    padding: 0;

    border: 0;

    background:
        transparent;

    color:
        var(--hir-gold);

    cursor: pointer;

    font-size: 10.5px;

    text-align: center;
}

/* RTL */

html[dir="rtl"] .hir-access-dialog,
html[dir="rtl"] .hir-access-dialog button,
html[dir="rtl"] .hir-access-dialog input {
    font-family:
        "HiDi Vazirmatn",
        Tahoma,
        sans-serif;
}

html[dir="rtl"] .hir-access-dialog h2,
html[dir="rtl"] .hir-access-dialog h3 {
    font-family:
        "HiDi Estedad",
        "HiDi Vazirmatn",
        sans-serif;

    font-weight: 470;

    letter-spacing: -0.02em;
}

html[dir="rtl"] .hir-access-dialog__close {
    right: auto;
    left: 20px;
}

html[dir="rtl"] .hir-enrollment-steps {
    padding:
        54px
        42px
        46px
        26px;

    border-right: 0;

    border-left:
        1px solid
        var(--hir-line-soft);
}

html[dir="rtl"] .hir-enrollment-steps::before {
    left: auto;
    right: 57px;
}

html[dir="rtl"] .hir-enrollment-step {
    text-align: right;
}

html[dir="rtl"] .hir-field > span,
html[dir="rtl"] .hir-access-dialog__eyebrow {
    letter-spacing: 0;
}

html[dir="rtl"] .hir-login-visual {
    border-right: 0;

    border-left:
        1px solid
        var(--hir-line-soft);
}

/* TABLET */

@media (max-width: 820px) {
    .hir-access-dialog {
        max-height:
            calc(100svh - 24px);
    }

    .hir-access-dialog__header {
        padding:
            32px
            54px
            24px
            28px;
    }

    html[dir="rtl"] .hir-access-dialog__header {
        padding:
            32px
            28px
            24px
            54px;
    }

    .hir-enrollment-layout {
        grid-template-columns: 1fr;
    }

    .hir-enrollment-steps {
        display: grid;

        grid-template-columns:
            repeat(4, 1fr);

        gap: 6px;

        padding:
            18px
            22px;

        border-right: 0;
        border-bottom:
            1px solid
            var(--hir-line-soft);
    }

    html[dir="rtl"] .hir-enrollment-steps {
        padding:
            18px
            22px;

        border-left: 0;
        border-bottom:
            1px solid
            var(--hir-line-soft);
    }

    .hir-enrollment-steps::before {
        display: none;
    }

    .hir-enrollment-step {
        grid-template-columns: 1fr;

        gap: 5px;

        min-height: auto;

        margin: 0;

        text-align: center;
    }

    html[dir="rtl"] .hir-enrollment-step {
        text-align: center;
    }

    .hir-enrollment-step > span {
        margin: 0 auto;
    }

    .hir-enrollment-step small {
        display: none;
    }

    .hir-enrollment-panel {
        min-height: 440px;

        padding:
            34px
            28px;
    }

    .hir-access-dialog--login {
        grid-template-columns: 1fr;
    }

    .hir-login-visual {
        min-height: 220px;

        padding: 38px;

        border-right: 0;
        border-bottom:
            1px solid
            var(--hir-line-soft);
    }

    html[dir="rtl"] .hir-login-visual {
        border-left: 0;
        border-bottom:
            1px solid
            var(--hir-line-soft);
    }

    .hir-login-visual::after {
        width: 210px;
        height: 210px;
    }

    .hir-login-lock {
        width: 80px;
        height: 80px;

        font-size: 30px;
    }

    .hir-login-visual strong {
        margin-top: 22px;
    }

    .hir-login-form-wrap {
        padding:
            38px
            30px
            44px;
    }
}

/* MOBILE */

@media (max-width: 520px) {
    .hir-access-layer {
        padding: 8px;
    }

    .hir-access-dialog {
        width: 100%;

        max-height:
            calc(100svh - 16px);
    }

    .hir-access-dialog__header {
        padding:
            26px
            50px
            20px
            20px;
    }

    html[dir="rtl"] .hir-access-dialog__header {
        padding:
            26px
            20px
            20px
            50px;
    }

    .hir-access-dialog__close {
        width: 34px;
        height: 34px;

        top: 14px;
        right: 14px;
    }

    html[dir="rtl"] .hir-access-dialog__close {
        right: auto;
        left: 14px;
    }

    .hir-access-dialog h2 {
        font-size: 27px;
    }

    .hir-enrollment-steps {
        padding:
            14px
            12px;
    }

    .hir-enrollment-step strong {
        font-size: 10px;
    }

    .hir-enrollment-step > span {
        width: 27px;
        height: 27px;
    }

    .hir-enrollment-panel {
        min-height: 430px;

        padding:
            28px
            18px;
    }

    .hir-enrollment-icon {
        width: 64px;
        height: 64px;

        margin-bottom: 20px;
    }

    .hir-otp {
        gap: 5px;
    }

    .hir-otp input {
        font-size: 21px;
    }

    .hir-access-dialog__security {
        padding:
            12px
            18px;
    }

    .hir-login-visual {
        min-height: 180px;

        padding: 28px;
    }

    .hir-login-form-wrap {
        padding:
            30px
            20px
            36px;
    }
}


/* =========================================================
   HIR — Shareholder Profile / Enrollment Step 03
   ========================================================= */

.hir-profile-screen {
    width: 100%;
}

.hir-profile-heading {
    margin-bottom: 22px;
}

.hir-profile-heading h3 {
    margin: 7px 0 8px;
}

.hir-profile-heading p {
    margin: 0;
    max-width: 680px;
}

.hir-profile-reference {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 22px;
    padding: 13px 16px;
    border: 1px solid rgba(214, 179, 93, 0.18);
    border-radius: 14px;
    background: rgba(214, 179, 93, 0.045);
}

.hir-profile-reference span {
    opacity: 0.62;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

.hir-profile-reference strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    direction: ltr;
    text-align: right;
    overflow-wrap: anywhere;
}

.hir-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.hir-profile-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.hir-profile-field--wide {
    grid-column: 1 / -1;
}

.hir-profile-field > span {
    font-size: 0.78rem;
    opacity: 0.76;
}

.hir-profile-field input {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    outline: none;
    background: rgba(255, 255, 255, 0.035);
    color: inherit;
    font: inherit;
    transition:
        border-color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}

.hir-profile-field input:hover {
    border-color: rgba(214, 179, 93, 0.25);
}

.hir-profile-field input:focus {
    border-color: rgba(214, 179, 93, 0.62);
    background: rgba(214, 179, 93, 0.045);
    box-shadow: 0 0 0 3px rgba(214, 179, 93, 0.08);
}

.hir-profile-field small {
    opacity: 0.5;
    font-size: 0.75rem;
    line-height: 1.6;
}

@media (max-width: 680px) {
    .hir-profile-grid {
        grid-template-columns: 1fr;
    }

    .hir-profile-field--wide {
        grid-column: auto;
    }

    .hir-profile-reference {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* ==========================================================
   HIR-01.8H12H — ACCESS DIALOG SCROLL CORRECTION

   Dialog itself is not a scroll container.
   On genuinely short viewports, the overlay owns scrolling.
   ========================================================== */

.hir-access-layer {
    overflow-x: hidden;
    overflow-y: auto;
}

.hir-access-dialog {
    max-height: none;
    overflow: visible;
}

@media (min-width: 981px) {
    .hir-access-layer {
        align-items: center;
    }
}

@media (max-width: 980px) {
    .hir-access-layer {
        align-items: start;
    }
}

.hir-account-created .hir-shareholder-reference--final {
    margin-top: 22px;
}


/* ==========================================================
   HIR MESSAGE LANGUAGE
   Error / Notice / Success / Info / Loading
   ========================================================== */

.hir-form-message[data-state="notice"] {
    color:
        var(--hir-gold-light);
}

.hir-form-message[data-state="success"] {
    color:
        #8fc7a3;
}

.hir-form-message[data-state="info"] {
    color:
        #91b8d4;
}

.hir-form-message__action {
    appearance:
        none;

    margin-inline-start:
        6px;

    padding:
        0;

    border:
        0;

    background:
        transparent;

    color:
        var(--hir-gold);

    font:
        inherit;

    font-weight:
        700;

    text-decoration:
        underline;

    text-decoration-thickness:
        1px;

    text-underline-offset:
        3px;

    cursor:
        pointer;

    transition:
        opacity 160ms ease,
        color 160ms ease;
}

.hir-form-message__action:hover,
.hir-form-message__action:focus-visible {
    color:
        var(--hir-gold-light);

    opacity:
        0.82;
}

.hir-form-message__action[hidden] {
    display:
        none;
}
