/*
|--------------------------------------------------------------------------
| Sauqly V2 — Global Design System
|--------------------------------------------------------------------------
*/

/*
|--------------------------------------------------------------------------
| Cairo — Arabic Font
|--------------------------------------------------------------------------
*/

@font-face {
    font-family: "Cairo";
    src: url("../fonts/cairo/Cairo-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cairo";
    src: url("../fonts/cairo/Cairo-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cairo";
    src: url("../fonts/cairo/Cairo-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cairo";
    src: url("../fonts/cairo/Cairo-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/*
|--------------------------------------------------------------------------
| Poppins — English Font
|--------------------------------------------------------------------------
*/

@font-face {
    font-family: "Poppins";
    src: url("../fonts/poppins/Poppins-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/poppins/Poppins-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/poppins/Poppins-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/poppins/Poppins-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/poppins/Poppins-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/*
|--------------------------------------------------------------------------
| Global Variables
|--------------------------------------------------------------------------
*/

:root {
    /*
    |--------------------------------------------------------------------------
    | Fonts
    |--------------------------------------------------------------------------
    */

    --font-arabic:
        "Cairo",
        Tahoma,
        Arial,
        sans-serif;

    --font-english:
        "Poppins",
        "Segoe UI",
        Arial,
        sans-serif;

    --font-primary: var(--font-arabic);

    /*
    |--------------------------------------------------------------------------
    | Brand Colors
    |--------------------------------------------------------------------------
    */

    --color-primary: #0a1d63;
    --color-primary-light: #17327d;
    --color-primary-soft: rgba(10, 29, 99, 0.08);

    --color-accent: #ff7900;
    --color-accent-hover: #ec7000;
    --color-accent-light: #ff920f;
    --color-accent-soft: rgba(255, 121, 0, 0.12);

    /*
    |--------------------------------------------------------------------------
    | Light Theme
    |--------------------------------------------------------------------------
    */

    --color-page: #ffffff;
    --color-surface: #ffffff;
    --color-surface-soft: #f7f8fc;
    --color-surface-muted: #f0f2f8;

    --color-text: #0a1d63;
    --color-text-secondary: #46506a;
    --color-text-muted: #747d91;

    --color-border: rgba(10, 29, 99, 0.13);
    --color-border-strong: rgba(10, 29, 99, 0.25);

    /*
    |--------------------------------------------------------------------------
    | Status Colors
    |--------------------------------------------------------------------------
    */

    --color-success: #198754;
    --color-danger: #c6362b;
    --color-warning: #d98200;
    --color-info: #2878c7;

    /*
    |--------------------------------------------------------------------------
    | Shadows
    |--------------------------------------------------------------------------
    */

    --shadow-xs:
        0 4px 12px rgba(10, 29, 99, 0.04);

    --shadow-sm:
        0 8px 24px rgba(10, 29, 99, 0.06);

    --shadow-md:
        0 16px 38px rgba(10, 29, 99, 0.09);

    --shadow-lg:
        0 24px 58px rgba(10, 29, 99, 0.13);

    --shadow-accent:
        0 16px 34px rgba(255, 121, 0, 0.24);

    /*
    |--------------------------------------------------------------------------
    | Radius
    |--------------------------------------------------------------------------
    */

    --radius-xs: 8px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;
    --radius-pill: 999px;

    /*
    |--------------------------------------------------------------------------
    | Fluid Container
    |--------------------------------------------------------------------------
    |
    | أسلوب شبيه بـTailwind:
    | لا يوجد width ثابت، بل padding داخلي متدرج.
    |
    */

    --container-padding-inline: 1rem;

    /*
    |--------------------------------------------------------------------------
    | Typography Scale
    |--------------------------------------------------------------------------
    */

    --font-size-xs: 12px;
    --font-size-sm: 13px;
    --font-size-md: 15px;
    --font-size-lg: 17px;
    --font-size-xl: 20px;

    /*
    |--------------------------------------------------------------------------
    | Transitions
    |--------------------------------------------------------------------------
    */

    --transition-fast: 160ms ease;
    --transition-normal: 240ms ease;
    --transition-slow: 360ms ease;
}

/*
|--------------------------------------------------------------------------
| Responsive Container Padding
|--------------------------------------------------------------------------
*/

@media (min-width: 640px) {
    :root {
        --container-padding-inline: 1.5rem;
    }
}

@media (min-width: 768px) {
    :root {
        --container-padding-inline: 2rem;
    }
}

@media (min-width: 1024px) {
    :root {
        --container-padding-inline: 2.5rem;
    }
}

@media (min-width: 1280px) {
    :root {
        --container-padding-inline: 3rem;
    }
}

@media (min-width: 1536px) {
    :root {
        --container-padding-inline: 4rem;
    }
}

/*
|--------------------------------------------------------------------------
| Language Font Selection
|--------------------------------------------------------------------------
*/

html[lang="ar"] {
    --font-primary: var(--font-arabic);
}

html[lang="en"] {
    --font-primary: var(--font-english);
}


.white-tt{
    color: white !important;
}
/*
|--------------------------------------------------------------------------
| Dark Theme
|--------------------------------------------------------------------------
*/

html[data-theme="dark"] {
    --color-page: #020d21;
    --color-surface: #071832;
    --color-surface-soft: #06152e;
    --color-surface-muted: #0b1d3d;

    --color-text: #ffffff;
    --color-text-secondary: #d5dae5;
    --color-text-muted: #a4aec1;

    --color-border: rgba(255, 255, 255, 0.10);
    --color-border-strong: rgba(255, 255, 255, 0.17);

    --shadow-xs:
        0 4px 12px rgba(0, 0, 0, 0.12);

    --shadow-sm:
        0 8px 24px rgba(0, 0, 0, 0.17);

    --shadow-md:
        0 18px 42px rgba(0, 0, 0, 0.24);

    --shadow-lg:
        0 26px 62px rgba(0, 0, 0, 0.32);
}

/*
|--------------------------------------------------------------------------
| Reset
|--------------------------------------------------------------------------
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-inline-size: 320px;
    min-block-size: 100%;

    scroll-behavior: smooth;
}

body {
    min-inline-size: 320px;
    min-block-size: 100vh;
    margin: 0;

    color: var(--color-text);
    background: var(--color-page);

    font-family: var(--font-primary);
    font-size: var(--font-size-md);
    font-weight: 400;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    text-rendering: optimizeLegibility;

    transition:
        color var(--transition-normal),
        background var(--transition-normal);
}

body,
button,
input,
textarea,
select {
    font-family: var(--font-primary);
}

button,
input,
textarea,
select {
    font-size: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

img,
svg {
    display: block;
    max-inline-size: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    margin: 0;
    padding: 0;

    list-style: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-block-start: 0;
}

/*
|--------------------------------------------------------------------------
| Typography
|--------------------------------------------------------------------------
*/

html[lang="ar"] body {
    line-height: 1.75;
}

html[lang="en"] body {
    line-height: 1.55;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text);

    font-weight: 700;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 {
    line-height: 1.45;
}

html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3 {
    line-height: 1.2;
    letter-spacing: -0.4px;
}

p {
    color: var(--color-text-secondary);
}

/*
|--------------------------------------------------------------------------
| Shared Layout
|--------------------------------------------------------------------------
*/

.v2-container {
    inline-size: 100%;
    margin-inline: auto;
    padding-inline: var(--container-padding-inline);
}

.v2-stack {
    display: flex;
    flex-direction: column;
}

.v2-row {
    display: flex;
    align-items: center;
}

.v2-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-hidden {
    display: none !important;
}

/*
|--------------------------------------------------------------------------
| Shared Surface
|--------------------------------------------------------------------------
*/

.v2-surface {
    background: var(--color-surface);

    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);
}

/*
|--------------------------------------------------------------------------
| Shared Controls
|--------------------------------------------------------------------------
*/

.v2-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-block-size: 44px;
    padding-inline: 14px;

    color: var(--color-text);
    background: rgba(255, 255, 255, 0.82);

    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);

    font-size: 14px;
    font-weight: 500;

    cursor: pointer;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast),
        background var(--transition-fast),
        box-shadow var(--transition-fast);
}

html[data-theme="dark"] .v2-control {
    background: rgba(7, 24, 50, 0.82);
}

.v2-control:hover {
    border-color: var(--color-accent);

    box-shadow: var(--shadow-xs);

    transform: translateY(-1px);
}

.v2-control:active {
    transform: translateY(0);
}

.v2-control--icon {
    aspect-ratio: 1;
    padding: 0;
}

/*
|--------------------------------------------------------------------------
| Shared Primary Button
|--------------------------------------------------------------------------
*/
.home-mobile-bottom-nav {
    display: none;
}

@media (max-width: 767px) {
    .home-page {
        padding-bottom: 82px;
    }

    .home-mobile-bottom-nav {
        position: fixed;
        inset-inline: 12px;
        bottom: 3px;
        z-index: 999;

        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: center;

        height: 64px;
        padding: 6px;

        background: rgba(255, 255, 255, 0.97);
        border: 1px solid rgba(10, 29, 99, 0.08);
        border-radius: 20px;

        box-shadow:
            0 10px 30px rgba(10, 29, 99, 0.16),
            inset 0 1px 0 rgba(255, 255, 255, 0.75);

        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .home-mobile-bottom-nav__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;

        min-width: 0;
        height: 52px;

        color: #6f7c94;
        text-decoration: none;
        border-radius: 13px;

        transition:
            color 160ms ease,
            background 160ms ease,
            transform 160ms ease;
    }

    .home-mobile-bottom-nav__item.is-active {
        color: #0a1d63;
        background: rgba(10, 29, 99, 0.06);
    }

    .home-mobile-bottom-nav__item:active {
        transform: scale(0.96);
    }

    .home-mobile-bottom-nav__icon,
    .home-mobile-bottom-nav__post-icon {
        display: grid;
        place-items: center;

        width: 24px;
        height: 24px;

        font-size: 19px;
        line-height: 1;
    }

    .home-mobile-bottom-nav__label {
        max-width: 100%;
        overflow: hidden;

        font-size: 9px;
        font-weight: 600;
        /* line-height: 1; */
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .home-mobile-bottom-nav__item--post {
        color: #ff7900;
    }

    .home-mobile-bottom-nav__item--post
    .home-mobile-bottom-nav__post-icon {
        width: 34px;
        height: 34px;

        color: #ffffff;
        background: linear-gradient(135deg, #ff7900, #ff951f);
        border-radius: 50%;

        box-shadow: 0 7px 16px rgba(255, 121, 0, 0.24);

        font-size: 20px;
    }

    .home-mobile-bottom-nav__item--post
    .home-mobile-bottom-nav__label {
        color: #ff7900;
        font-weight: 700;
    }

    html[data-theme="dark"] .home-mobile-bottom-nav {
        background: rgba(7, 24, 50, 0.97);
        border-color: rgba(255, 255, 255, 0.08);

        box-shadow:
            0 12px 32px rgba(0, 0, 0, 0.34),
            inset 0 1px 0 rgba(255, 255, 255, 0.03);
    }

    html[data-theme="dark"]
    .home-mobile-bottom-nav__item {
        color: #9ba8bd;
    }

    html[data-theme="dark"]
    .home-mobile-bottom-nav__item.is-active {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.05);
    }
}
/*
|--------------------------------------------------------------------------
| Shared Primary Button
|--------------------------------------------------------------------------
*/

.v2-primary-button {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-block-size: 54px;
    padding-inline: clamp(2.75rem, 6vw, 4rem);

    overflow: hidden;

    color: #ffffff;

    background:
        linear-gradient(
            100deg,
            var(--color-accent),
            var(--color-accent-light)
        );

    border: 0;
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-accent);

    font-size: 16px;
    font-weight: 600;
    line-height: 1;

    cursor: pointer;

    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        opacity var(--transition-fast);
}

html[lang="ar"] .v2-primary-button {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

html[lang="en"] .v2-primary-button {
    font-size: 16px;
    font-weight: 600;
}

.v2-primary-button::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            110deg,
            transparent 15%,
            rgba(255, 255, 255, 0.22) 48%,
            transparent 80%
        );

    transform: translateX(-125%);
    transition: transform 560ms ease;
}

.v2-primary-button:not(:disabled):hover::before {
    transform: translateX(125%);
}

.v2-primary-button:not(:disabled):hover {
    box-shadow:
        0 18px 38px rgba(255, 121, 0, 0.31);

    transform: translateY(-2px);
}

.v2-primary-button:not(:disabled):active {
    transform: translateY(0);
}

.v2-primary-button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    box-shadow: none;
}

.v2-primary-button__label {
    position: relative;
    z-index: 2;
}

.v2-primary-button__icon {
    position: absolute;
    inset-inline-end: 22px;
    z-index: 2;

    font-size: 16px;
}

html[dir="ltr"] .v2-primary-button__icon {
    transform: rotate(180deg);
}

/*
|--------------------------------------------------------------------------
| Shared Inputs
|--------------------------------------------------------------------------
*/

.v2-input {
    inline-size: 100%;
    min-block-size: 48px;

    padding: 10px 14px;

    color: var(--color-text);
    background: var(--color-surface);

    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);

    font-size: 14px;

    outline: none;

    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast);
}

.v2-input::placeholder {
    color: var(--color-text-muted);
}

.v2-input:focus {
    border-color: var(--color-accent);

    box-shadow:
        0 0 0 4px var(--color-accent-soft);
}

/*
|--------------------------------------------------------------------------
| Shared States
|--------------------------------------------------------------------------
*/

.v2-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 11px 14px;

    color: #b42318;
    background: #fff0ee;

    border: 1px solid #ffc9c3;
    border-radius: var(--radius-md);

    font-size: 13px;
}

html[data-theme="dark"] .v2-error {
    color: #ffb4ac;
    background: rgba(180, 35, 24, 0.14);

    border-color: rgba(255, 180, 172, 0.27);
}

.v2-success {
    padding: 11px 14px;

    color: #146c43;
    background: #eaf8f1;

    border: 1px solid #b7e5ce;
    border-radius: var(--radius-md);

    font-size: 13px;
}

/*
|--------------------------------------------------------------------------
| Accessibility
|--------------------------------------------------------------------------
*/

:focus-visible {
    outline: 3px solid var(--color-accent-soft);
    outline-offset: 3px;
}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 767px) {
    body {
        font-size: 14px;
    }

    .v2-primary-button {
        min-block-size: 52px;
        padding-inline: 1.5rem;

        font-size: 15px;
    }

    html[lang="ar"] .v2-primary-button,
    html[lang="en"] .v2-primary-button {
        font-size: 15px;
    }

    .v2-primary-button__icon {
        inset-inline-end: 18px;

        font-size: 18px;
    }

    .v2-control {
        min-block-size: 42px;

        font-size: 13px;
    }
}

/*
|--------------------------------------------------------------------------
| Reduced Motion
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}




/* Auth required popup / mobile bottom sheet */

body.has-auth-required-modal {
    overflow: hidden;
}

.auth-required-modal[hidden] {
    display: none !important;
}

.auth-required-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    place-items: center;
    padding: 20px;
}

.auth-required-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(5, 15, 37, 0.62);
    backdrop-filter: blur(5px);
    opacity: 0;
    cursor: default;
    transition: opacity 0.22s ease;
}

.auth-required-modal__sheet {
    position: relative;
    z-index: 1;
    width: min(100%, 430px);
    padding: 30px;
    border: 1px solid #dce4ef;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(4, 15, 40, 0.24);
    color: #0a1d63;
    text-align: center;
    opacity: 0;
    transform: translateY(16px) scale(0.97);
    transition:
        opacity 0.22s ease,
        transform 0.22s ease;
}

.auth-required-modal.is-open .auth-required-modal__backdrop,
.auth-required-modal.is-open .auth-required-modal__sheet {
    opacity: 1;
}

.auth-required-modal.is-open .auth-required-modal__sheet {
    transform: translateY(0) scale(1);
}

.auth-required-modal__handle {
    display: none;
}

.auth-required-modal__close {
    position: absolute;
    inset-block-start: 16px;
    inset-inline-end: 16px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #dce4ef;
    border-radius: 50%;
    background: #ffffff;
    color: #66758d;
    cursor: pointer;
}

.auth-required-modal__icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 2px auto 18px;
    border-radius: 22px;
    background: #fff0e5;
    color: #ff6500;
    font-size: 30px;
}

.auth-required-modal__content > span {
    color: #ff6500;
    font-size: 12px;
    font-weight: 800;
}

.auth-required-modal__content h2 {
    margin: 7px 0 9px;
    color: #0a1d63;
    font-size: clamp(21px, 3vw, 26px);
    font-weight: 900;
    line-height: 1.35;
}

.auth-required-modal__content p {
    margin: 0;
    color: #6f7d94;
    font-size: 13px;
    line-height: 1.8;
}

.auth-required-modal__actions {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.auth-required-modal__login,
.auth-required-modal__cancel {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 20px;
    border-radius: 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.auth-required-modal__login {
    border: 1px solid #ff6500;
    background: #ff6500;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(255, 101, 0, 0.2);
}

.auth-required-modal__login:hover {
    background: #eb5d00;
    color: #ffffff;
}

.auth-required-modal__cancel {
    border: 1px solid #dce4ef;
    background: #ffffff;
    color: #66758d;
}

html[data-theme="dark"] .auth-required-modal__sheet {
    border-color: #263854;
    background: #0b1729;
    color: #f4f7fb;
}

html[data-theme="dark"] .auth-required-modal__close,
html[data-theme="dark"] .auth-required-modal__cancel {
    border-color: #2a3b56;
    background: #101f34;
    color: #c8d2e2;
}

html[data-theme="dark"] .auth-required-modal__content h2 {
    color: #f4f7fb;
}

html[data-theme="dark"] .auth-required-modal__content p {
    color: #9daac0;
}

html[data-theme="dark"] .auth-required-modal__icon {
    background: rgba(255, 101, 0, 0.13);
}

@media (max-width: 575px) {
    .auth-required-modal {
        place-items: end center;
        padding: 0;
    }

    .auth-required-modal__sheet {
        width: 100%;
        padding: 28px 20px calc(20px + env(safe-area-inset-bottom));
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
    }

    .auth-required-modal.is-open .auth-required-modal__sheet {
        transform: translateY(0);
    }

    .auth-required-modal__handle {
        position: absolute;
        inset-block-start: 9px;
        inset-inline-start: 50%;
        display: block;
        width: 42px;
        height: 4px;
        border-radius: 999px;
        background: #d6deea;
        transform: translateX(-50%);
    }

    [dir="rtl"] .auth-required-modal__handle {
        transform: translateX(50%);
    }

    .auth-required-modal__close {
        inset-block-start: 18px;
        width: 36px;
        height: 36px;
    }

    .auth-required-modal__icon {
        width: 64px;
        height: 64px;
        margin-top: 14px;
        border-radius: 19px;
        font-size: 27px;
    }
}

.service-provider-card__identity{
    margin-bottom: 13px ;
}

/* Reusable notice: centered dialog on desktop, bottom sheet on phones. */
body.has-site-notice { overflow: hidden; }
.site-notice[hidden] { display: none !important; }
.site-notice {
    position: fixed;
    inset: 0;
    z-index: 10100;
    display: grid;
    place-items: center;
    padding: 20px;
}
.site-notice__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(5, 15, 37, .62);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity .22s ease;
}
.site-notice__sheet {
    position: relative;
    z-index: 1;
    width: min(100%, 430px);
    padding: 30px;
    border: 1px solid #dce4ef;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(4, 15, 40, .24);
    text-align: center;
    opacity: 0;
    transform: translateY(16px) scale(.97);
    transition: opacity .22s ease, transform .22s ease;
}
.site-notice.is-open .site-notice__backdrop,
.site-notice.is-open .site-notice__sheet { opacity: 1; }
.site-notice.is-open .site-notice__sheet { transform: translateY(0) scale(1); }
.site-notice__handle { display: none; }
.site-notice__close {
    position: absolute;
    inset-block-start: 16px;
    inset-inline-end: 16px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #dce4ef;
    border-radius: 50%;
    background: #fff;
    color: #66758d;
    cursor: pointer;
}
.site-notice__icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 2px auto 18px;
    border-radius: 22px;
    background: #fff0e5;
    color: #ff7900;
    font-size: 30px;
}
.site-notice__sheet h2 {
    margin: 7px 0 9px;
    color: #0a1d63;
    font-size: clamp(21px, 3vw, 26px);
    line-height: 1.35;
}
.site-notice__sheet p {
    margin: 0;
    color: #6f7d94;
    font-size: 14px;
    line-height: 1.8;
}
.site-notice__action {
    width: 100%;
    min-height: 48px;
    margin-top: 24px;
    border: 1px solid #ff7900;
    border-radius: 12px;
    background: #ff7900;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
html[data-theme="dark"] .site-notice__sheet {
    border-color: #263854;
    background: #0b1729;
}
html[data-theme="dark"] .site-notice__sheet h2 { color: #f4f7fb; }
html[data-theme="dark"] .site-notice__sheet p { color: #9daac0; }
html[data-theme="dark"] .site-notice__close {
    border-color: #2a3b56;
    background: #101f34;
    color: #c8d2e2;
}
html[data-theme="dark"] .site-notice__icon { background: rgba(255, 121, 0, .13); }
@media (max-width: 575px) {
    .site-notice { place-items: end center; padding: 0; }
    .site-notice__sheet {
        width: 100%;
        padding: 28px 20px calc(20px + env(safe-area-inset-bottom));
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
    }
    .site-notice.is-open .site-notice__sheet { transform: translateY(0); }
    .site-notice__handle {
        position: absolute;
        inset-block-start: 9px;
        inset-inline-start: 50%;
        display: block;
        width: 42px;
        height: 4px;
        border-radius: 999px;
        background: #d6deea;
        transform: translateX(-50%);
    }
    [dir="rtl"] .site-notice__handle { transform: translateX(50%); }
}
@media (prefers-reduced-motion: reduce) {
    .site-notice__backdrop, .site-notice__sheet { transition: none; }
}
