/**
 * DXN Platform - Global Header CSS
 * File: assets/css/dxn-header.css
 *
 * تصميم الهيدر العام لمنصة dxn-platform.
 * هذا الملف خاص بمكوّن:
 * templates/components/header.php
 *
 * ملاحظات مهمة:
 * - لا يغيّر هذا الملف أي مسارات أو shortcodes أو منطق PHP.
 * - يحافظ على نفس أسماء الكلاسات الموجودة في header.php.
 * - متناسق مع dxn-style.css و dxn-bottom-nav.css.
 * - متوافق مع العروض والإشعارات ومجتمع العملاء وصفحات العضو الجديدة.
 *
 * @version 2.3.0
 */

/* =========================
   01. Foundation
========================= */

.dxn-global-header,
.dxn-global-header * {
    box-sizing: border-box;
}

.dxn-global-header {
    --dxn-header-font: var(--dxn-font, "Tajawal", "Cairo", "Arial", "Tahoma", sans-serif);

    --dxn-header-green: #0b8f3c;
    --dxn-header-green-2: #16a34a;
    --dxn-header-green-3: #067232;

    --dxn-header-blue: #0ea5e9;
    --dxn-header-blue-2: #38bdf8;

    --dxn-header-gold: var(--dxn-gold, #d8b661);
    --dxn-header-gold-2: var(--dxn-gold-2, #f4df9a);
    --dxn-header-gold-3: var(--dxn-gold-3, #9c7327);

    --dxn-header-black: #050505;
    --dxn-header-black-2: #10100d;
    --dxn-header-black-3: #1a1710;

    --dxn-header-dark: #0f172a;
    --dxn-header-text: #173629;
    --dxn-header-muted: #64748b;
    --dxn-header-soft: #ecfdf3;
    --dxn-header-white: #ffffff;

    --dxn-header-line: rgba(11, 143, 60, 0.16);
    --dxn-header-gold-line: rgba(216, 182, 97, 0.36);

    --dxn-header-radius-sm: 16px;
    --dxn-header-radius-md: 20px;
    --dxn-header-radius-lg: 24px;
    --dxn-header-radius-xl: 28px;

    --dxn-header-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --dxn-header-shadow-green: 0 18px 42px rgba(11, 143, 60, 0.16);
    --dxn-header-shadow-gold: 0 18px 44px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(216, 182, 97, 0.18);

    direction: rtl;
    width: 100%;
    margin: 0 auto 16px;
    padding: 12px 10px 6px;
    font-family: var(--dxn-header-font);
    color: var(--dxn-header-text);
    background:
        radial-gradient(circle at 14% 8%, rgba(216, 182, 97, 0.18), transparent 25%),
        radial-gradient(circle at 88% 12%, rgba(14, 165, 233, 0.10), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(11, 143, 60, 0.12), transparent 34%),
        linear-gradient(180deg, #050505 0%, #0c0b08 48%, #15120b 100%);
}

.dxn-global-header a {
    color: inherit;
    text-decoration: none;
}

.dxn-global-header img {
    max-width: 100%;
    height: auto;
}

.dxn-global-header__inner {
    width: min(100%, 1180px);
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

/* =========================
   02. Top Bar
========================= */

.dxn-global-header__topbar {
    position: relative;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    overflow: hidden;
    padding: 10px 12px;
    border-radius: var(--dxn-header-radius-lg);
    color: #fff7d7;
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.18), transparent 34%),
        linear-gradient(90deg, #11100d 0%, #1d170b 34%, #067232 100%);
    border: 1px solid var(--dxn-header-gold-line);
    box-shadow: var(--dxn-header-shadow-gold);
}

.dxn-global-header__topbar::before {
    content: "";
    position: absolute;
    inset: -70px auto auto -54px;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: rgba(244, 223, 154, 0.16);
    pointer-events: none;
}

.dxn-global-header__topbar::after {
    content: "";
    position: absolute;
    inset: auto -80px -100px auto;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.14);
    pointer-events: none;
}

.dxn-global-header__topbar-text {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff3c7;
    font-size: clamp(14px, 3.5vw, 18px);
    line-height: 1.65;
    font-weight: 950;
    letter-spacing: -0.2px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.dxn-global-header__topbar-text span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dxn-global-header__spark {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: #171006;
    background: linear-gradient(135deg, var(--dxn-header-gold-3), var(--dxn-header-gold-2) 52%, var(--dxn-header-gold));
    border: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow: 0 10px 20px rgba(216, 182, 97, 0.22);
}

/* =========================
   03. Social Links
========================= */

.dxn-global-header__social {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex: 0 0 auto;
}

.dxn-global-header__social-link {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    color: #fff3c7;
    font-size: 17px;
    line-height: 1;
    font-weight: 950;
    border: 1px solid rgba(244, 223, 154, 0.34);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dxn-global-header__social-link:hover,
.dxn-global-header__social-link:focus {
    transform: translateY(-2px);
    color: #171006;
    background: linear-gradient(135deg, var(--dxn-header-gold-2), var(--dxn-header-gold));
    border-color: rgba(255, 255, 255, 0.38);
    box-shadow: 0 12px 24px rgba(216, 182, 97, 0.24);
    outline: none;
}

/* =========================
   04. Member Card
========================= */

.dxn-global-header__member-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto 1fr minmax(180px, 270px);
    gap: 14px;
    align-items: center;
    padding: 15px;
    border-radius: var(--dxn-header-radius-xl);
    color: var(--dxn-header-text);
    background:
        radial-gradient(circle at 0% 0%, rgba(216, 182, 97, 0.10), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(255, 252, 242, 0.97));
    border: 1px solid var(--dxn-header-gold-line);
    box-shadow: var(--dxn-header-shadow-gold);
}

.dxn-global-header__member-card::after {
    content: "";
    position: absolute;
    inset: auto -76px -82px auto;
    width: 200px;
    height: 200px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.08);
    pointer-events: none;
}

.dxn-global-header__member-logo-wrap {
    position: relative;
    z-index: 1;
    width: 86px;
    height: 86px;
    border-radius: 27px;
    padding: 6px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top, rgba(244, 223, 154, 0.24), transparent 54%),
        linear-gradient(180deg, #ffffff 0%, #fff8df 100%);
    border: 1px solid rgba(216, 182, 97, 0.38);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

.dxn-global-header__member-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 21px;
}

.dxn-global-header__member-logo-fallback {
    width: 100%;
    height: 100%;
    border-radius: 21px;
    display: grid;
    place-items: center;
    color: #171006;
    background: linear-gradient(135deg, var(--dxn-header-gold-3), var(--dxn-header-gold-2) 52%, var(--dxn-header-gold));
    font-size: 21px;
    font-weight: 950;
}

.dxn-global-header__member-main {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.dxn-global-header__member-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    padding: 6px 11px;
    border-radius: 999px;
    color: #6f4f13;
    background: linear-gradient(135deg, rgba(244, 223, 154, 0.40), rgba(216, 182, 97, 0.14));
    border: 1px solid rgba(216, 182, 97, 0.34);
    font-size: 11px;
    line-height: 1.5;
    font-weight: 950;
}

.dxn-global-header__member-pill::before {
    content: "✓";
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: var(--dxn-header-green);
    font-size: 11px;
}

.dxn-global-header__member-name {
    margin: 8px 0 4px;
    color: var(--dxn-header-dark);
    font-size: clamp(20px, 4.6vw, 31px);
    line-height: 1.35;
    font-weight: 950;
    letter-spacing: -0.35px;
}

.dxn-global-header__member-note {
    margin: 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.9;
    font-weight: 850;
}

.dxn-global-header__member-note strong {
    display: inline-flex;
    margin-inline-start: 5px;
    color: var(--dxn-header-green-3);
    font-weight: 950;
}

.dxn-global-header__member-discount-box {
    position: relative;
    z-index: 1;
    min-height: 86px;
    border-radius: 23px;
    padding: 13px;
    display: grid;
    align-content: center;
    gap: 5px;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 35%),
        linear-gradient(135deg, var(--dxn-header-green-3), var(--dxn-header-green-2));
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 15px 32px rgba(11, 143, 60, 0.22);
}

.dxn-global-header__member-discount-box span {
    font-size: 11px;
    line-height: 1.6;
    font-weight: 950;
}

.dxn-global-header__member-discount-box strong {
    font-size: clamp(18px, 4vw, 25px);
    line-height: 1.1;
    font-weight: 950;
    direction: ltr;
}

/* =========================
   05. Banner
========================= */

.dxn-global-header__banner {
    overflow: hidden;
    min-height: 88px;
    border-radius: var(--dxn-header-radius-xl);
    background:
        radial-gradient(circle at 10% 0%, rgba(216, 182, 97, 0.16), transparent 34%),
        linear-gradient(120deg, #fff 0%, #fffaf0 52%, #ecfdf3 100%);
    border: 1px solid var(--dxn-header-gold-line);
    box-shadow: var(--dxn-header-shadow-gold);
}

.dxn-global-header__banner-img {
    width: 100%;
    height: min(28vw, 152px);
    min-height: 88px;
    object-fit: cover;
    display: block;
}

.dxn-global-header__banner-fallback {
    min-height: 112px;
    display: grid;
    place-items: center;
    gap: 0;
    padding: 16px;
    text-align: center;
    background:
        radial-gradient(circle at 25% 0%, rgba(14, 165, 233, 0.14), transparent 30%),
        radial-gradient(circle at 75% 100%, rgba(22, 163, 74, 0.18), transparent 32%),
        linear-gradient(180deg, #fffaf0 0%, #f3fff7 100%);
}

.dxn-global-header__banner-dxn {
    color: var(--dxn-header-green);
    font-size: clamp(34px, 10vw, 76px);
    line-height: 1;
    font-weight: 950;
    letter-spacing: 1px;
}

.dxn-global-header__banner-eworld {
    margin-top: -2px;
    color: var(--dxn-header-blue);
    font-size: clamp(19px, 5vw, 43px);
    line-height: 1;
    font-weight: 950;
}

.dxn-global-header__banner-fallback small {
    color: #64748b;
    font-size: 11px;
    letter-spacing: 1.8px;
    font-weight: 950;
}

/* =========================
   06. Customer Service
========================= */

.dxn-global-header__service-wrap {
    display: flex;
    justify-content: center;
}

.dxn-global-header__service-btn {
    width: min(100%, 540px);
    min-height: 52px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 17px;
    color: #fff;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.20), transparent 38%),
        linear-gradient(90deg, var(--dxn-header-green-3), var(--dxn-header-green-2));
    box-shadow: var(--dxn-header-shadow-green);
    border: 1px solid rgba(255, 255, 255, 0.26);
    font-size: clamp(14px, 3.7vw, 18px);
    line-height: 1.6;
    font-weight: 950;
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.dxn-global-header__service-btn:hover,
.dxn-global-header__service-btn:focus {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 20px 42px rgba(11, 143, 60, 0.22);
    outline: none;
}

.dxn-global-header__service-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.20);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

/* =========================
   07. Welcome Box
========================= */

.dxn-global-header__welcome {
    padding: 15px 14px 17px;
    border-radius: var(--dxn-header-radius-lg);
    text-align: center;
    color: var(--dxn-header-text);
    background:
        radial-gradient(circle at top, rgba(216, 182, 97, 0.14), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 252, 242, 0.96));
    border: 1px solid var(--dxn-header-gold-line);
    box-shadow: var(--dxn-header-shadow-gold);
}

.dxn-global-header__eyebrow {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 6px;
    padding: 5px 11px;
    border-radius: 999px;
    color: #6f4f13;
    background: linear-gradient(135deg, rgba(244, 223, 154, 0.38), rgba(216, 182, 97, 0.14));
    border: 1px solid rgba(216, 182, 97, 0.34);
    font-size: 11px;
    line-height: 1.5;
    font-weight: 950;
}

.dxn-global-header__title {
    margin: 0;
    color: var(--dxn-header-dark);
    font-size: clamp(20px, 4.8vw, 33px);
    line-height: 1.45;
    font-weight: 950;
    letter-spacing: -0.35px;
}

.dxn-global-header__subtitle {
    max-width: 780px;
    margin: 8px auto 0;
    color: #64748b;
    font-size: clamp(12px, 3.4vw, 15px);
    line-height: 1.9;
    font-weight: 850;
}

/* =========================
   08. Header Actions
========================= */

.dxn-global-header__actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
    gap: 8px;
}

.dxn-global-header__action {
    position: relative;
    min-height: 74px;
    border-radius: 21px;
    padding: 10px 8px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 6px;
    color: var(--dxn-header-text);
    background:
        radial-gradient(circle at top, rgba(216, 182, 97, 0.12), transparent 56%),
        rgba(255, 255, 255, 0.96);
    border: 1px solid var(--dxn-header-gold-line);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    text-align: center;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.dxn-global-header__action:hover,
.dxn-global-header__action:focus {
    transform: translateY(-2px);
    border-color: rgba(244, 223, 154, 0.72);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(244, 223, 154, 0.25);
    outline: none;
}

.dxn-global-header__action > span {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    color: #171006;
    font-size: 20px;
    line-height: 1;
    background: linear-gradient(135deg, var(--dxn-header-gold-3), var(--dxn-header-gold-2) 52%, var(--dxn-header-gold));
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: 0 10px 20px rgba(216, 182, 97, 0.18);
}

.dxn-global-header__action strong {
    color: var(--dxn-header-dark);
    font-size: 11.5px;
    line-height: 1.35;
    font-weight: 950;
}

.dxn-global-header__action small {
    display: block;
    max-width: 100%;
    color: #64748b;
    font-size: 9.5px;
    line-height: 1.35;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dxn-global-header__action--country {
    color: var(--dxn-header-green);
    background:
        radial-gradient(circle at top right, rgba(11, 143, 60, 0.12), transparent 36%),
        linear-gradient(180deg, #ffffff 0%, #f3fff7 100%);
}

.dxn-global-header__action--country > span {
    color: #fff;
    background: linear-gradient(135deg, var(--dxn-header-green), var(--dxn-header-green-2));
}

.dxn-global-header__action--cart {
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.11), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f7fdff 100%);
}

.dxn-global-header__cart-count {
    position: absolute;
    top: 7px;
    inset-inline-end: 8px;
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: #ef4444;
    border: 2px solid #fff;
    font-size: 11px;
    line-height: 1;
    font-style: normal;
    font-weight: 950;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.30);
}

.dxn-global-header--has-cart .dxn-global-header__action--cart {
    border-color: rgba(239, 68, 68, 0.24);
}

/* =========================
   09. Return Country
========================= */

.dxn-global-header__return-country {
    display: flex;
    justify-content: center;
}

.dxn-global-header__return-country a {
    width: min(100%, 470px);
    min-height: 44px;
    border-radius: 999px;
    padding: 9px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #c2410c;
    background: #fff7ed;
    border: 1px solid rgba(194, 65, 12, 0.20);
    font-size: 13px;
    line-height: 1.6;
    font-weight: 950;
}

/* =========================
   10. Compatibility
========================= */

.dxn-global-header--fallback {
    padding: 12px;
}

.dxn-global-header--fallback .dxn-global-header__top {
    display: none;
}

.dxn-global-header + .dxn-shop-wrap,
.dxn-global-header + .dxn-cart-wrap,
.dxn-global-header + .dxn-branches-wrap,
.dxn-global-header + .dxn-account-wrap,
.dxn-global-header + .dxn-member-wrap,
.dxn-global-header + .dxn-customer-page {
    margin-top: 10px;
}

/* =========================
   11. Responsive
========================= */

@media (max-width: 980px) {
    .dxn-global-header__member-card {
        grid-template-columns: auto 1fr;
    }

    .dxn-global-header__member-discount-box {
        grid-column: 1 / -1;
        min-height: auto;
    }

    .dxn-global-header__actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .dxn-global-header {
        padding: 10px 8px 4px;
        margin-bottom: 12px;
    }

    .dxn-global-header__inner {
        gap: 10px;
    }

    .dxn-global-header__topbar {
        align-items: stretch;
        flex-direction: column;
        border-radius: 22px;
        padding: 10px;
    }

    .dxn-global-header__topbar-text {
        justify-content: center;
        text-align: center;
    }

    .dxn-global-header__topbar-text span:last-child {
        white-space: normal;
    }

    .dxn-global-header__social {
        justify-content: center;
        flex-wrap: wrap;
    }

    .dxn-global-header__member-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        border-radius: 25px;
    }

    .dxn-global-header__member-logo-wrap {
        width: 88px;
        height: 88px;
    }

    .dxn-global-header__member-note strong {
        display: block;
        margin-top: 4px;
        margin-inline-start: 0;
    }

    .dxn-global-header__banner,
    .dxn-global-header__welcome {
        border-radius: 23px;
    }

    .dxn-global-header__banner-img {
        height: 120px;
    }

    .dxn-global-header__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dxn-global-header__action {
        min-height: 68px;
    }

    .dxn-global-header__action--country {
        grid-column: span 2;
    }
}

@media (max-width: 430px) {
    .dxn-global-header {
        padding-inline: 7px;
    }

    .dxn-global-header__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .dxn-global-header__action {
        border-radius: 18px;
        min-height: 64px;
        padding: 9px 6px;
    }

    .dxn-global-header__action strong {
        font-size: 10.8px;
    }

    .dxn-global-header__action > span {
        width: 32px;
        height: 32px;
        font-size: 19px;
    }

    .dxn-global-header__service-btn {
        min-height: 48px;
        font-size: 13.5px;
    }

    .dxn-global-header__service-icon {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 360px) {
    .dxn-global-header__action {
        min-height: 62px;
    }

    .dxn-global-header__action strong {
        font-size: 10.2px;
    }

    .dxn-global-header__action small {
        font-size: 9px;
    }
}

/* =========================
   12. Reduced Motion
========================= */

@media (prefers-reduced-motion: reduce) {
    .dxn-global-header__social-link,
    .dxn-global-header__service-btn,
    .dxn-global-header__action {
        transition: none;
    }

    .dxn-global-header__social-link:hover,
    .dxn-global-header__social-link:focus,
    .dxn-global-header__service-btn:hover,
    .dxn-global-header__service-btn:focus,
    .dxn-global-header__action:hover,
    .dxn-global-header__action:focus {
        transform: none;
    }
}

/* =========================
   13. Current System Integration
   Offers / Notifications / Community / Member Area
========================= */

.dxn-global-header *,
.dxn-global-header *::before,
.dxn-global-header *::after {
    box-sizing: border-box;
}

.dxn-global-header {
    position: relative;
    isolation: isolate;
    z-index: 20;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.dxn-global-header__inner > * {
    min-width: 0;
}

.dxn-global-header button,
.dxn-global-header a {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.dxn-global-header a:focus-visible,
.dxn-global-header button:focus-visible {
    outline: 3px solid rgba(14, 165, 233, 0.42);
    outline-offset: 3px;
}

.dxn-global-header__topbar-text,
.dxn-global-header__member-main,
.dxn-global-header__member-note,
.dxn-global-header__title,
.dxn-global-header__subtitle {
    overflow-wrap: anywhere;
}

.dxn-global-header__social-link[aria-disabled="true"],
.dxn-global-header__action[aria-disabled="true"],
.dxn-global-header__action.is-disabled {
    pointer-events: none;
    opacity: 0.48;
    filter: grayscale(0.35);
}

/* Dynamic action collection: supports customer and member headers without
   relying on a fixed number of cards. */
.dxn-global-header__actions {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
    align-items: stretch;
}

.dxn-global-header__action {
    min-width: 0;
    isolation: isolate;
}

.dxn-global-header__action strong,
.dxn-global-header__action small {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.dxn-global-header__action strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dxn-global-header__action small {
    min-height: 13px;
}

/* Active page state. */
.dxn-global-header__action[aria-current="page"],
.dxn-global-header__action.is-active,
.dxn-global-header--page-shop .dxn-global-header__action--shop,
.dxn-global-header--page-cart .dxn-global-header__action--cart,
.dxn-global-header--page-my-account .dxn-global-header__action--account,
.dxn-global-header--page-offers .dxn-global-header__action--offers,
.dxn-global-header--page-notifications .dxn-global-header__action--notifications,
.dxn-global-header--page-member-dashboard .dxn-global-header__action--dashboard,
.dxn-global-header--page-member-customers .dxn-global-header__action--customers,
.dxn-global-header--page-member-new-customers .dxn-global-header__action--customers,
.dxn-global-header--page-member-offers .dxn-global-header__action--offers,
.dxn-global-header--page-member-notifications .dxn-global-header__action--notifications,
.dxn-global-header--page-member-community .dxn-global-header__action--community,
.dxn-global-header--page-member-account .dxn-global-header__action--account,
.dxn-global-header--page-member-supply .dxn-global-header__action--supply {
    border-color: rgba(11, 143, 60, 0.48);
    box-shadow:
        0 17px 36px rgba(11, 143, 60, 0.14),
        0 0 0 2px rgba(11, 143, 60, 0.10) inset;
}

/* Offers action. */
.dxn-global-header__action--offers {
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 38%),
        linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
    border-color: rgba(217, 119, 6, 0.24);
}

.dxn-global-header__action--offers > span:not(.dxn-global-header__action-count):not(.dxn-global-header__badge):not(.dxn-global-header__pulse-dot) {
    color: #ffffff;
    background: linear-gradient(135deg, #b45309, #f59e0b);
}

/* Notifications action. */
.dxn-global-header__action--notifications {
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 38%),
        linear-gradient(180deg, #ffffff 0%, #eff8ff 100%);
    border-color: rgba(14, 165, 233, 0.24);
}

.dxn-global-header__action--notifications > span:not(.dxn-global-header__action-count):not(.dxn-global-header__badge):not(.dxn-global-header__pulse-dot) {
    color: #ffffff;
    background: linear-gradient(135deg, #0369a1, #38bdf8);
}

/* Community action. */
.dxn-global-header__action--community {
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.14), transparent 38%),
        linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
    border-color: rgba(124, 58, 237, 0.22);
}

.dxn-global-header__action--community > span:not(.dxn-global-header__action-count):not(.dxn-global-header__badge):not(.dxn-global-header__pulse-dot) {
    color: #ffffff;
    background: linear-gradient(135deg, #6d28d9, #a78bfa);
}

/* Member navigation actions. */
.dxn-global-header__action--dashboard,
.dxn-global-header__action--customers {
    background:
        radial-gradient(circle at top right, rgba(11, 143, 60, 0.14), transparent 38%),
        linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.dxn-global-header__action--dashboard > span,
.dxn-global-header__action--customers > span {
    color: #ffffff;
    background: linear-gradient(135deg, #065f2b, #22c55e);
}

.dxn-global-header__action--supply {
    background:
        radial-gradient(circle at top right, rgba(216, 182, 97, 0.20), transparent 40%),
        linear-gradient(180deg, #ffffff 0%, #fff8df 100%);
}

.dxn-global-header__action--supply > span {
    color: #171006;
    background: linear-gradient(135deg, #9c7327, #f4df9a 52%, #d8b661);
}

/* Generic badges used by the current and future header component. */
.dxn-global-header__action-count,
.dxn-global-header__notification-count,
.dxn-global-header__offer-count,
.dxn-global-header__badge,
.dxn-global-header__action > [data-dxn-header-count],
.dxn-global-header__action > [data-dxn-count] {
    position: absolute;
    top: 7px;
    inset-inline-end: 8px;
    z-index: 3;
    width: auto;
    min-width: 23px;
    height: 23px;
    margin: 0;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: #ef4444;
    border: 2px solid #ffffff;
    font-size: 10.5px;
    line-height: 1;
    font-style: normal;
    font-weight: 950;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.30);
}

.dxn-global-header__action--offers .dxn-global-header__action-count,
.dxn-global-header__action--offers .dxn-global-header__offer-count {
    background: #d97706;
    box-shadow: 0 8px 18px rgba(217, 119, 6, 0.28);
}

.dxn-global-header__action--community .dxn-global-header__action-count {
    background: #7c3aed;
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.28);
}

/* Pulse indicator for offers and unread notifications. */
.dxn-global-header__pulse-dot,
.dxn-global-header__action-dot,
.dxn-global-header__notification-dot,
.dxn-global-header__offer-dot,
.dxn-global-header__action > [data-dxn-header-pulse] {
    position: absolute;
    top: 9px;
    inset-inline-end: 10px;
    z-index: 3;
    width: 11px;
    height: 11px;
    margin: 0;
    border-radius: 999px;
    background: #ef4444;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.58);
}

.dxn-global-header__pulse-dot.is-pulsing,
.dxn-global-header__action-dot.is-pulsing,
.dxn-global-header__notification-dot.is-pulsing,
.dxn-global-header__offer-dot.is-pulsing,
.dxn-global-header__action.is-pulsing .dxn-global-header__pulse-dot,
.dxn-global-header__action[data-pulse="1"] .dxn-global-header__pulse-dot,
.dxn-global-header__action[data-pulse="true"] .dxn-global-header__pulse-dot {
    animation: dxnHeaderPulse 1.45s ease-out infinite;
}

@keyframes dxnHeaderPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.58);
    }
    72% {
        box-shadow: 0 0 0 12px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Muted notification state keeps the page accessible but removes urgency. */
.dxn-global-header__action--notifications.is-muted,
.dxn-global-header--notifications-muted .dxn-global-header__action--notifications,
.dxn-global-header__action--notifications[data-muted="1"],
.dxn-global-header__action--notifications[data-muted="true"] {
    filter: saturate(0.58);
}

.dxn-global-header__action--notifications.is-muted::after,
.dxn-global-header--notifications-muted .dxn-global-header__action--notifications::after,
.dxn-global-header__action--notifications[data-muted="1"]::after,
.dxn-global-header__action--notifications[data-muted="true"]::after {
    content: "مكتومة";
    position: absolute;
    top: 7px;
    inset-inline-start: 7px;
    z-index: 3;
    padding: 3px 6px;
    border-radius: 999px;
    color: #475569;
    background: #e2e8f0;
    border: 1px solid rgba(100, 116, 139, 0.18);
    font-size: 8.5px;
    line-height: 1.2;
    font-weight: 950;
}

/* Header state classes supplied by PHP or JavaScript. */
.dxn-global-header--has-offers .dxn-global-header__action--offers,
.dxn-global-header__action--offers.has-offers,
.dxn-global-header__action--offers[data-count]:not([data-count="0"]) {
    border-color: rgba(217, 119, 6, 0.42);
}

.dxn-global-header--has-notifications .dxn-global-header__action--notifications,
.dxn-global-header__action--notifications.has-unread,
.dxn-global-header__action--notifications[data-count]:not([data-count="0"]) {
    border-color: rgba(14, 165, 233, 0.46);
}

.dxn-global-header--member .dxn-global-header__actions {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 142px), 1fr));
}

.dxn-global-header--member .dxn-global-header__member-discount-box {
    min-width: 0;
}

.dxn-global-header--member .dxn-global-header__service-wrap,
.dxn-global-header--member .dxn-global-header__return-country {
    display: none;
}

/* The fallback renderer uses compact dxn-gh-* classes. */
.dxn-global-header--fallback .dxn-gh-count {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    color: #ffffff;
    background: #ef4444;
    font-size: 10px;
    line-height: 1;
    font-weight: 950;
}

.dxn-global-header--fallback .dxn-gh-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #ef4444;
    border: 2px solid #ffffff;
}

.dxn-global-header--fallback .dxn-gh-dot.is-pulsing {
    animation: dxnHeaderPulse 1.45s ease-out infinite;
}

/* LTR-safe behavior for translated interfaces. */
.dxn-global-header[dir="ltr"],
[dir="ltr"] .dxn-global-header {
    direction: ltr;
}

.dxn-global-header[dir="ltr"] .dxn-global-header__member-discount-box strong,
[dir="ltr"] .dxn-global-header .dxn-global-header__member-discount-box strong {
    direction: ltr;
}

/* Avoid expensive hover effects on touch-only devices. */
@media (hover: none) {
    .dxn-global-header__social-link:hover,
    .dxn-global-header__service-btn:hover,
    .dxn-global-header__action:hover {
        transform: none;
    }
}

/* Tablet layout. */
@media (max-width: 980px) {
    .dxn-global-header__actions,
    .dxn-global-header--member .dxn-global-header__actions {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 138px), 1fr));
    }
}

/* Mobile-first action layout. */
@media (max-width: 760px) {
    .dxn-global-header__actions,
    .dxn-global-header--member .dxn-global-header__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .dxn-global-header__action {
        min-height: 70px;
    }

    .dxn-global-header__action--country,
    .dxn-global-header--member .dxn-global-header__action--dashboard {
        grid-column: 1 / -1;
    }

    .dxn-global-header__member-discount-box {
        width: 100%;
    }

    .dxn-global-header__topbar-text {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .dxn-global-header__action {
        min-height: 66px;
    }

    .dxn-global-header__action strong {
        font-size: 10.7px;
    }

    .dxn-global-header__action small {
        white-space: normal;
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .dxn-global-header__action-count,
    .dxn-global-header__notification-count,
    .dxn-global-header__offer-count,
    .dxn-global-header__badge,
    .dxn-global-header__cart-count {
        top: 5px;
        inset-inline-end: 6px;
    }
}

/* Print and reduced-motion safeguards. */
@media print {
    .dxn-global-header__social,
    .dxn-global-header__service-wrap,
    .dxn-global-header__actions,
    .dxn-global-header__return-country {
        display: none !important;
    }

    .dxn-global-header {
        padding: 0;
        background: #ffffff;
        color: #000000;
    }

    .dxn-global-header__member-card,
    .dxn-global-header__welcome {
        box-shadow: none;
        border-color: #d1d5db;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dxn-global-header__pulse-dot,
    .dxn-global-header__action-dot,
    .dxn-global-header__notification-dot,
    .dxn-global-header__offer-dot,
    .dxn-global-header--fallback .dxn-gh-dot {
        animation: none !important;
    }
}

/* =========================================================
   14. Reference Header Layout
   Header markup: templates/components/header.php v2.3.0

   الترتيب:
   - بطاقة العضو: يمين.
   - شعار DXN eWorld: الوسط.
   - خدمة العملاء والتسجيل: يسار.
   - روابط النظام السريعة: صف مستقل أسفل الهيدر.

   ملاحظة:
   يعتمد هذا القسم على ألوان DXN الأساسية المعرفة أعلى الملف،
   ولا يضيف هوية لونية منفصلة عن النظام.
========================================================= */

.dxn-global-header--reference-layout .dxn-global-header__reference-main {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 250px;
    align-items: stretch;
    gap: 12px;
    min-width: 0;
}

/* بطاقة العضو في العمود الأيمن. */
.dxn-global-header--reference-layout .dxn-global-header__member-card {
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: center;
    align-content: center;
    gap: 12px;
    min-width: 0;
    min-height: 150px;
    padding: 12px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 0% 0%, rgba(216, 182, 97, 0.13), transparent 35%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(255, 252, 242, 0.97));
    border: 1px solid var(--dxn-header-gold-line);
    box-shadow: var(--dxn-header-shadow-gold);
}

.dxn-global-header--reference-layout .dxn-global-header__member-logo-wrap {
    width: 104px;
    height: 104px;
    padding: 4px;
    border-radius: 24px;
}

.dxn-global-header--reference-layout .dxn-global-header__member-logo,
.dxn-global-header--reference-layout .dxn-global-header__member-logo-fallback {
    border-radius: 20px;
}

.dxn-global-header--reference-layout .dxn-global-header__member-main {
    align-self: center;
    min-width: 0;
}

.dxn-global-header--reference-layout .dxn-global-header__member-pill {
    padding: 5px 9px;
    font-size: 10.5px;
}

.dxn-global-header--reference-layout .dxn-global-header__member-name {
    margin: 7px 0 4px;
    font-size: clamp(15px, 2vw, 20px);
    line-height: 1.45;
}

.dxn-global-header--reference-layout .dxn-global-header__member-note {
    font-size: 11px;
    line-height: 1.75;
}

.dxn-global-header--reference-layout .dxn-global-header__member-note strong {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 5px 0 0;
    padding: 5px 8px;
    border-radius: 11px;
    color: #ffffff;
    background: linear-gradient(
        135deg,
        var(--dxn-header-green-3),
        var(--dxn-header-green-2)
    );
    direction: ltr;
    font-size: 12px;
}

/* شعار DXN eWorld في الوسط. */
.dxn-global-header--reference-layout .dxn-global-header__banner {
    position: relative;
    isolation: isolate;
    min-width: 0;
    min-height: 150px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 14px 18px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 12% 0%, rgba(244, 223, 154, 0.20), transparent 34%),
        radial-gradient(circle at 88% 100%, rgba(22, 163, 74, 0.16), transparent 34%),
        linear-gradient(
            135deg,
            var(--dxn-header-black) 0%,
            var(--dxn-header-black-2) 48%,
            var(--dxn-header-black-3) 100%
        );
    border: 1px solid var(--dxn-header-gold-line);
    box-shadow: var(--dxn-header-shadow-gold);
}

.dxn-global-header--reference-layout .dxn-global-header__banner::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 44%;
    height: 100%;
    pointer-events: none;
    opacity: 0.72;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.04) 32%,
        rgba(244, 223, 154, 0.28) 50%,
        rgba(255, 255, 255, 0.04) 68%,
        transparent 100%
    );
    transform: translateX(-150%) skewX(-13deg);
    animation: dxnHeaderReferenceShine 6s linear infinite;
}

.dxn-global-header--reference-layout .dxn-global-header__banner-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 130px;
    min-height: 0;
    object-fit: contain;
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.30));
}

.dxn-global-header--reference-layout .dxn-global-header__banner-fallback {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 120px;
    border-radius: 22px;
    background: transparent;
}

.dxn-global-header--reference-layout .dxn-global-header__banner-fallback small {
    color: var(--dxn-header-gold-2);
}

@keyframes dxnHeaderReferenceShine {
    0% {
        transform: translateX(-150%) skewX(-13deg);
    }
    45%,
    100% {
        transform: translateX(350%) skewX(-13deg);
    }
}

/* أزرار الجهة اليسرى. */
.dxn-global-header--reference-layout .dxn-global-header__reference-actions {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.dxn-global-header--reference-layout .dxn-global-header__service-btn,
.dxn-global-header--reference-layout .dxn-global-header__register-btn {
    width: 100%;
    min-height: 64px;
    border-radius: 18px;
    padding: 10px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-align: center;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 950;
    transition:
        transform 0.18s ease,
        filter 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.dxn-global-header--reference-layout .dxn-global-header__service-btn {
    color: #ffffff;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.20), transparent 38%),
        linear-gradient(
            135deg,
            var(--dxn-header-green-3),
            var(--dxn-header-green-2)
        );
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: var(--dxn-header-shadow-green);
}

.dxn-global-header--reference-layout .dxn-global-header__register-btn {
    color: #fff3c7;
    background:
        radial-gradient(circle at top right, rgba(244, 223, 154, 0.15), transparent 42%),
        linear-gradient(
            135deg,
            var(--dxn-header-black-2),
            var(--dxn-header-black-3)
        );
    border: 1px solid var(--dxn-header-gold-line);
    box-shadow: var(--dxn-header-shadow-gold);
}

.dxn-global-header--reference-layout .dxn-global-header__service-icon,
.dxn-global-header--reference-layout .dxn-global-header__register-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
}

.dxn-global-header--reference-layout .dxn-global-header__service-icon {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.dxn-global-header--reference-layout .dxn-global-header__register-icon {
    color: #171006;
    background: linear-gradient(
        135deg,
        var(--dxn-header-gold-3),
        var(--dxn-header-gold-2) 52%,
        var(--dxn-header-gold)
    );
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.dxn-global-header--reference-layout .dxn-global-header__service-btn:hover,
.dxn-global-header--reference-layout .dxn-global-header__service-btn:focus,
.dxn-global-header--reference-layout .dxn-global-header__register-btn:hover,
.dxn-global-header--reference-layout .dxn-global-header__register-btn:focus {
    transform: translateY(-2px);
    filter: brightness(1.04);
    outline: none;
}

/* روابط النظام الحالية تبقى في صف مستقل أسفل الهيدر الرئيسي. */
.dxn-global-header--reference-layout .dxn-global-header__actions--secondary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.dxn-global-header--reference-layout .dxn-global-header__actions--secondary .dxn-global-header__action {
    min-height: 66px;
}

/* لا يوجد صندوق الخصم القديم في قالب الترتيب المرجعي. */
.dxn-global-header--reference-layout .dxn-global-header__member-discount-box,
.dxn-global-header--reference-layout .dxn-global-header__welcome,
.dxn-global-header--reference-layout .dxn-global-header__service-wrap {
    display: none;
}

/* دعم اتجاه الواجهة المترجمة. */
.dxn-global-header--reference-layout[dir="ltr"] .dxn-global-header__reference-main,
[dir="ltr"] .dxn-global-header--reference-layout .dxn-global-header__reference-main {
    direction: ltr;
}

/* التابلت: بطاقة العضو والشعار أولًا، ثم الأزرار بعرض كامل. */
@media (max-width: 980px) {
    .dxn-global-header--reference-layout .dxn-global-header__reference-main {
        grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.35fr);
    }

    .dxn-global-header--reference-layout .dxn-global-header__reference-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dxn-global-header--reference-layout .dxn-global-header__service-btn,
    .dxn-global-header--reference-layout .dxn-global-header__register-btn {
        min-height: 56px;
    }
}

/* الجوال: نفس ترتيب المرجع عموديًا. */
@media (max-width: 760px) {
    .dxn-global-header--reference-layout .dxn-global-header__reference-main {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dxn-global-header--reference-layout .dxn-global-header__member-card {
        grid-template-columns: 88px minmax(0, 1fr);
        justify-items: stretch;
        min-height: 116px;
        padding: 10px 12px;
        text-align: start;
        border-radius: 22px;
    }

    .dxn-global-header--reference-layout .dxn-global-header__member-logo-wrap {
        width: 88px;
        height: 88px;
        border-radius: 20px;
    }

    .dxn-global-header--reference-layout .dxn-global-header__member-logo,
    .dxn-global-header--reference-layout .dxn-global-header__member-logo-fallback {
        border-radius: 17px;
    }

    .dxn-global-header--reference-layout .dxn-global-header__member-pill {
        margin-inline: 0;
        font-size: 9.5px;
    }

    .dxn-global-header--reference-layout .dxn-global-header__member-name {
        font-size: 14px;
    }

    .dxn-global-header--reference-layout .dxn-global-header__member-note {
        font-size: 10px;
        line-height: 1.65;
    }

    .dxn-global-header--reference-layout .dxn-global-header__banner {
        min-height: 115px;
        padding: 11px;
        border-radius: 22px;
    }

    .dxn-global-header--reference-layout .dxn-global-header__banner-img {
        height: 90px;
    }

    .dxn-global-header--reference-layout .dxn-global-header__banner-fallback {
        min-height: 90px;
    }

    .dxn-global-header--reference-layout .dxn-global-header__reference-actions {
        grid-column: auto;
        display: flex;
        flex-direction: column;
    }

    .dxn-global-header--reference-layout .dxn-global-header__service-btn,
    .dxn-global-header--reference-layout .dxn-global-header__register-btn {
        min-height: 48px;
        border-radius: 16px;
        font-size: 12.5px;
    }

    .dxn-global-header--reference-layout .dxn-global-header__actions--secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dxn-global-header--reference-layout .dxn-global-header__actions--secondary .dxn-global-header__action--country {
        grid-column: 1 / -1;
    }
}

@media (max-width: 430px) {
    .dxn-global-header--reference-layout .dxn-global-header__member-card {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 9px;
    }

    .dxn-global-header--reference-layout .dxn-global-header__member-logo-wrap {
        width: 82px;
        height: 82px;
    }

    .dxn-global-header--reference-layout .dxn-global-header__member-pill {
        padding: 4px 7px;
        font-size: 8.8px;
    }

    .dxn-global-header--reference-layout .dxn-global-header__member-name {
        margin-top: 5px;
        font-size: 13px;
    }

    .dxn-global-header--reference-layout .dxn-global-header__member-note {
        font-size: 9.4px;
    }

    .dxn-global-header--reference-layout .dxn-global-header__member-note strong {
        padding: 4px 7px;
        font-size: 10.5px;
    }
}

@media print {
    .dxn-global-header--reference-layout .dxn-global-header__reference-actions,
    .dxn-global-header--reference-layout .dxn-global-header__actions--secondary {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dxn-global-header--reference-layout .dxn-global-header__banner::before {
        animation: none !important;
        display: none;
    }

    .dxn-global-header--reference-layout .dxn-global-header__service-btn,
    .dxn-global-header--reference-layout .dxn-global-header__register-btn {
        transition: none;
    }
}

