/* ==========================================================================
   Web V2.1 — lapisan di atas halaman:
   1. Loader halaman: GIF logo Adhiya yang sama dengan Portal sandbox.
   2. Popup "Segera hadir" untuk menu Haji selama katalog belum punya
      paket Haji mendatang (partials/v21/haji_soon).
   Warna ditulis langsung juga (fallback) karena ::backdrop tidak selalu
   mewarisi variabel dari body.
   ========================================================================== */

/* 1. Loader halaman --------------------------------------------------------- */
.v21-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: rgba(251, 247, 239, .9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .38s cubic-bezier(.22, .61, .36, 1), visibility 0s linear .38s;
}

html.v21-page-pending .v21-loader {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .2s ease, visibility 0s;
}

.v21-loader__gif {
    display: block;
    width: 104px;
    height: auto;
}

.v21-loader__caption {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Label kecil di menu header (Haji Plus) */
.site-body--v21 .v21-soon-tag {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 4px 7px 3px;
    border: 1px solid rgba(201, 162, 75, .45);
    border-radius: 999px;
    background: #f8f0de;
    color: #7a5a14;
    font-family: var(--v21-display, "Plus Jakarta Sans", sans-serif);
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .12em;
    text-transform: uppercase;
    vertical-align: 1px;
}

/* 2. Popup "Segera hadir" ----------------------------------------------------- */
html:has(.v21-soon[open]) {
    overflow: hidden;
}

.v21-soon {
    width: min(456px, calc(100vw - 32px));
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
    color: var(--v21-ink, #231b1c);
}

.v21-soon::backdrop {
    background: radial-gradient(circle at 50% 38%, rgba(74, 3, 7, .5), rgba(20, 2, 4, .78));
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.v21-soon[open],
.v21-soon[open]::backdrop {
    animation: v21-soon-fade .32s ease both;
}

.v21-soon[open] .v21-soon__card {
    animation: v21-soon-rise .6s cubic-bezier(.22, .61, .36, 1) both;
}

.v21-soon.is-closing,
.v21-soon.is-closing::backdrop {
    animation: v21-soon-fade-out .2s ease both;
}

.v21-soon__card {
    position: relative;
    max-height: calc(100dvh - 32px);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(201, 162, 75, .42);
    border-radius: 28px;
    background: linear-gradient(180deg, #fff 0%, #fffdf8 58%, #fbf7ef 100%);
    box-shadow: 0 50px 110px -40px rgba(20, 2, 4, .85), 0 0 0 6px rgba(255, 255, 255, .07);
    text-align: center;
    overscroll-behavior: contain;
}

.v21-soon__band {
    position: relative;
    height: 136px;
    overflow: hidden;
    border-radius: 0 0 50% 50% / 0 0 36px 36px;
    background: radial-gradient(120% 150% at 50% 0%, #9e120e 0%, #81040c 46%, #4a0307 100%);
    box-shadow: inset 0 -2px 0 rgba(201, 162, 75, .7);
}

.v21-soon__pattern {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: #e3c378;
    opacity: .16;
}

.v21-soon__pattern g {
    fill: none;
    stroke: currentColor;
    stroke-width: 1;
}

.v21-soon__talbiyah {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    color: #e3c378;
    font-family: "Amiri", "Times New Roman", serif;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .3);
}

.v21-soon__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    transition: background-color .25s ease, transform .25s ease;
}

.v21-soon__close:hover {
    background: rgba(255, 255, 255, .24);
    transform: rotate(90deg);
}

.v21-soon__close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.v21-soon :is(a, button):focus-visible {
    outline: 2px solid #c9a24b;
    outline-offset: 3px;
}

.v21-soon__medal {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 148px;
    height: 148px;
    margin: -78px auto 0;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, #fff 0%, #fffaf0 68%, #f6ecd8 100%);
    box-shadow:
        0 0 0 1px rgba(201, 162, 75, .6),
        0 0 0 7px #fff,
        0 0 0 8px rgba(201, 162, 75, .38),
        0 24px 44px -18px rgba(74, 3, 7, .65);
}

.v21-soon__medal img {
    display: block;
    width: 136px;
    height: 136px;
}

.v21-soon__spark {
    position: absolute;
    width: 18px;
    height: 18px;
    fill: #c9a24b;
    animation: v21-soon-twinkle 2.6s ease-in-out infinite;
}

.v21-soon__spark--a {
    top: 6px;
    right: -26px;
    fill: #e3c378;
}

.v21-soon__spark--b {
    bottom: 10px;
    left: -30px;
    width: 14px;
    height: 14px;
    animation-delay: .9s;
}

.v21-soon__spark--c {
    bottom: 2px;
    right: -16px;
    width: 10px;
    height: 10px;
    animation-delay: 1.6s;
}

.v21-soon__body {
    padding: 20px clamp(22px, 6vw, 40px) 28px;
}

.v21-soon__pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    padding: 8px 15px 7px;
    border: 1px solid rgba(201, 162, 75, .45);
    border-radius: 999px;
    background: #f8f0de;
    color: #7a5a14;
    font-family: var(--v21-display, "Plus Jakarta Sans", sans-serif);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.v21-soon__pill span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #81040c;
    animation: v21-soon-ping 1.8s ease-out infinite;
}

.v21-soon__title {
    margin: 0;
    color: #231b1c;
    font-family: var(--v21-display, "Plus Jakarta Sans", sans-serif);
    font-size: clamp(1.45rem, 4.8vw, 1.8rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -.028em;
    text-wrap: balance;
}

.v21-soon__title em {
    color: #81040c;
    font-style: normal;
}

.v21-soon__desc {
    max-width: 35ch;
    margin: 12px auto 0;
    color: #5c5052;
    font-family: var(--v21-body, Poppins, sans-serif);
    font-size: .95rem;
    font-weight: 400;
    line-height: 1.65;
    text-wrap: pretty;
}

.v21-soon__desc strong {
    color: #7a5a14;
    font-weight: 600;
}

.v21-soon__dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin: 18px 0 22px;
}

.v21-soon__dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c9a24b;
    animation: v21-soon-dot 1.3s ease-in-out infinite;
}

.v21-soon__dots span:nth-child(2) { animation-delay: .16s; }
.v21-soon__dots span:nth-child(3) { animation-delay: .32s; }

.v21-soon__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 10px;
}

.v21-soon__actions .v21-btn {
    width: 100%;
    min-height: 50px;
    padding-inline: 1em;
    font-size: .92rem;
}

.v21-soon__alt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: #81040c;
    font-family: var(--v21-display, "Plus Jakarta Sans", sans-serif);
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.v21-soon__alt svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .3s ease;
}

.v21-soon__alt:hover {
    color: #4a0307;
}

.v21-soon__alt:hover svg {
    transform: translateX(3px);
}

@media (max-width: 420px) {
    .v21-soon__actions {
        grid-template-columns: 1fr;
    }

    .v21-soon__actions .v21-btn--primary {
        order: -1;
    }
}

@keyframes v21-soon-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes v21-soon-fade-out {
    to { opacity: 0; }
}

@keyframes v21-soon-rise {
    from { opacity: 0; transform: translateY(26px) scale(.96); }
    to { opacity: 1; transform: none; }
}

@keyframes v21-soon-twinkle {
    0%, 100% { opacity: .3; transform: scale(.65) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.1) rotate(25deg); }
}

@keyframes v21-soon-ping {
    0% { box-shadow: 0 0 0 0 rgba(129, 4, 12, .45); }
    80%, 100% { box-shadow: 0 0 0 8px rgba(129, 4, 12, 0); }
}

@keyframes v21-soon-dot {
    0%, 80%, 100% { opacity: .35; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
    .v21-loader,
    .v21-soon,
    .v21-soon::backdrop,
    .v21-soon *,
    html.v21-page-pending .v21-loader {
        animation: none !important;
        transition: none !important;
    }
}
