/* =========================================================
   Dr. Lara Saifo Clinic — Luxury design system
   Loads on index.html only (admin.html keeps style.css).
   Animations are transform/opacity only → compositor-driven.
   ========================================================= */

:root {
    /* aliases used by inline styles in index.html / app.js */
    --luxury-primary: #c87d65;
    --luxury-dark: #9e5842;
    --luxury-light: #fbeee9;
    --rose: #c87d65;
    --rose-deep: #9e5842;
    --rose-light: #fbeee9;
    --champagne: #ecd5b5;
    --ivory: #fbf6ee;
    --gold: #d9a95a;
    --gold-light: #f4dc9f;
    --ink: #45322b;
    --ink-soft: #7b625a;

    --glass-fill: rgba(255, 250, 246, .40);
    --glass-edge: rgba(255, 255, 255, .65);
    --blur: 18px;
    --ease: cubic-bezier(.22, .8, .24, 1);

    /* layered, multi-step floating shadows */
    --shadow-rest:
        inset 0 1px 0 rgba(255, 255, 255, .7),
        0 1px 1px rgba(120, 70, 50, .05),
        0 2px 2px rgba(120, 70, 50, .05),
        0 4px 4px rgba(120, 70, 50, .05),
        0 8px 8px rgba(120, 70, 50, .05);
    --shadow-float:
        inset 0 1px 0 rgba(255, 255, 255, .75),
        0 1px 1px rgba(120, 70, 50, .04),
        0 2px 2px rgba(120, 70, 50, .04),
        0 4px 4px rgba(120, 70, 50, .05),
        0 8px 8px rgba(120, 70, 50, .05),
        0 16px 16px rgba(120, 70, 50, .05),
        0 32px 32px rgba(120, 70, 50, .06);
    --shadow-lift:
        inset 0 1px 0 rgba(255, 255, 255, .85),
        0 2px 2px rgba(120, 70, 50, .05),
        0 4px 4px rgba(120, 70, 50, .05),
        0 8px 8px rgba(120, 70, 50, .06),
        0 16px 16px rgba(120, 70, 50, .07),
        0 32px 32px rgba(120, 70, 50, .08),
        0 56px 56px rgba(120, 70, 50, .08);
}

@media (max-width: 575.98px) {
    :root { --blur: 12px; } /* lighter blur = steadier 60fps on phones */
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    :root { --glass-fill: rgba(255, 251, 247, .92); }
}

/* ---------- Base ---------- */
html { background: linear-gradient(160deg, #fbf1e6 0%, #f3dcc7 55%, #ebc9b3 100%); }

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--ink);
    background: transparent;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6, .brand-name, .gift-card__title {
    font-family: 'Amiri', 'Tajawal', !important;
    font-weight: 700;
}
h6 { font-size: 1.0rem; }
h5 { font-size: 1.2rem; }

.text-muted { color: #6a5149 !important; }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.max-w-mobile { max-width: 540px; margin: 0 auto; }

main, footer { position: relative; z-index: 1; }

/* =========================================================
   1. Living background — drifting colour blobs, mist, gold bokeh
   (transform/opacity only → stays on the GPU)
   ========================================================= */
.lux-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100lvh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    contain: paint;
}

.blob {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    background: radial-gradient(circle, var(--c) 0, transparent 66%);
    animation: blobMove var(--t) ease-in-out infinite alternate;
    will-change: transform;
}
.blob--rose  { --s: 95vmax; --x: -25vmax; --y: -30vmax; --c: rgba(205, 120, 96, .60);  --mx: 45vw;  --my: 32vh;  --t: 16s; }
.blob--gold  { --s: 85vmax; --x: 35vw;    --y: 25vh;    --c: rgba(240, 190, 108, .65); --mx: -50vw; --my: 26vh;  --t: 20s; }
.blob--blush { --s: 75vmax; --x: -10vw;   --y: 62vh;    --c: rgba(234, 148, 150, .50); --mx: 34vw;  --my: -38vh; --t: 24s; }
.blob--ivory { --s: 65vmax; --x: 20vw;    --y: -10vh;   --c: rgba(255, 255, 255, .85); --mx: -30vw; --my: 40vh;  --t: 18s; }

@keyframes blobMove {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(var(--mx), var(--my), 0) scale(1.25); }
    100% { transform: translate3d(calc(var(--mx) * -.6), calc(var(--my) * .5), 0) scale(.9); }
}

.mist {
    position: absolute;
    left: -30vw;
    width: 110vw;
    height: 46vh;
    border-radius: 50%;
    background: radial-gradient(ellipse at center,
        rgba(255, 255, 255, .7) 0,
        rgba(255, 244, 232, .32) 40%,
        transparent 70%);
    opacity: .5;
    animation: mistDrift var(--d) ease-in-out infinite alternate;
    will-change: transform, opacity;
}
.mist--1 { top: 4vh;  --d: 18s; }
.mist--2 { top: 40vh; --d: 26s; animation-delay: -10s; }
.mist--3 { top: 68vh; --d: 22s; animation-delay: -6s; }

@keyframes mistDrift {
    from { transform: translate3d(-10vw, 0, 0) scale(1);       opacity: .3; }
    to   { transform: translate3d(26vw, -5vh, 0) scale(1.2);   opacity: .8; }
}

/* flowing silk: soft satin waves drifting like fabric */
.silk {
    position: absolute;
    left: 0;
    top: var(--t);
    width: 200vw;
    height: var(--h);
    animation: silkFloat var(--fd) ease-in-out infinite alternate;
    will-change: transform;
}
.silk svg {
    display: block;
    width: 100%;
    height: 100%;
    animation: silkSlide var(--sp) linear infinite;
    will-change: transform;
}
.silk--rev svg { animation-direction: reverse; }
@keyframes silkSlide { to { transform: translate3d(-50%, 0, 0); } }
@keyframes silkFloat {
    from { transform: translate3d(0, -2.5vh, 0); }
    to   { transform: translate3d(0, 3vh, 0); }
}

/* a slow band of light gliding over the silk */
.sheen {
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: 0;
    width: 45vw;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .38), rgba(255, 236, 200, .26), transparent);
    transform: translate3d(-60vw, 0, 0) skewX(-18deg);
    animation: sheenSweep 16s ease-in-out infinite;
    will-change: transform;
}
@keyframes sheenSweep {
    0%, 45% { transform: translate3d(-60vw, 0, 0) skewX(-18deg); }
    100%    { transform: translate3d(140vw, 0, 0) skewX(-18deg); }
}

/* =========================================================
   2. Mouse-following light (sits behind the glass)
   ========================================================= */
.cursor-glow {
    position: absolute;
    left: 0;
    top: 0;
    width: 560px;
    height: 560px;
    margin: -280px 0 0 -280px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(236, 176, 140, .55) 0,
        rgba(240, 205, 150, .28) 38%,
        transparent 68%);
    opacity: 0;
    transition: opacity .6s ease;
    will-change: transform;
}
.cursor-glow.on { opacity: 1; }

/* touch devices have no cursor: let the light drift on its own */
@media (hover: none), (pointer: coarse) {
    .cursor-glow {
        left: 50%;
        top: 32%;
        opacity: .85;
        animation: glowDrift 24s ease-in-out infinite;
    }
}
@keyframes glowDrift {
    0%, 100% { transform: translate3d(-30vw, 0, 0); }
    50%      { transform: translate3d(30vw, 24vh, 0); }
}

/* =========================================================
   3. Glassmorphism surfaces
   ========================================================= */
.glass-nav,
.card,
.service-card,
.alert-light,
.input-group,
.custom-modal-box,
.gift-card {
    -webkit-backdrop-filter: blur(var(--blur)) saturate(170%);
    backdrop-filter: blur(var(--blur)) saturate(170%);
}

.glass-nav {
    background: rgba(255, 251, 247, .6) !important;
    border-bottom: 1px solid var(--glass-edge);
    box-shadow: var(--shadow-rest);
}

.card,
.service-card {
    position: relative;
    background: var(--glass-fill);
    border: 1px solid var(--glass-edge);
}
.card { box-shadow: var(--shadow-float) !important; }

.service-card {
    border-radius: 20px;
    box-shadow: var(--shadow-float) !important;
    cursor: pointer;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.service-card img { height: 140px; width: 100%; object-fit: cover; }
.service-card:hover { transform: translate3d(0, -4px, 0); box-shadow: var(--shadow-lift) !important; }
.service-card:active { transform: scale(.98); }

/* Bootstrap white boxes become frosted panes */
.bg-white { background-color: rgba(255, 255, 255, .32) !important; }
.bg-light { background-color: rgba(255, 255, 255, .32) !important; }
.card.bg-white { background-color: var(--glass-fill) !important; }

.shadow-sm, .shadow { box-shadow: var(--shadow-rest) !important; }
.card.shadow-sm, .card.shadow { box-shadow: var(--shadow-float) !important; }
.shadow-lg { box-shadow: 0 30px 80px rgba(60, 30, 20, .35) !important; }

.alert-light {
    background: var(--glass-fill) !important;
    border: 1px solid var(--glass-edge) !important;
    box-shadow: var(--shadow-rest);
}

.input-group { background: var(--glass-fill); box-shadow: var(--shadow-rest) !important; }
.input-group .form-control,
.input-group .input-group-text { background: transparent !important; color: var(--ink); }

/* soft light that follows the cursor across each glass card */
.glass-nav::before, .card::before, .service-card::before,
.card::after, .service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity .45s ease;
}
.glass-nav::before, .card::before, .service-card::before {
    z-index: 1;
    background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%),
        rgba(255, 255, 255, .5), transparent 62%);
}
.card::after, .service-card::after {
    z-index: 1;
    padding: 1px;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%),
        rgba(217, 169, 90, .95), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}
.glass-nav:hover::before, .card:hover::before, .service-card:hover::before,
.card:hover::after, .service-card:hover::after { opacity: 1; }

/* =========================================================
   Buttons & badges — rose gold
   ========================================================= */
.btn-luxury, .bg-luxury {
    background: linear-gradient(135deg, #c47a62, #9e5842) !important;
    color: #fff !important;
    border: none;
    text-shadow: 0 1px 1px rgba(80, 30, 15, .25);
    position: relative;
    overflow: hidden;
}
.btn-luxury {
    box-shadow: var(--shadow-rest) !important;
    transition: transform .35s var(--ease), filter .35s ease;
}
.btn-luxury:hover { transform: translate3d(0, -2px, 0); filter: brightness(1.08); color: #fff !important; }
.btn-luxury:active { transform: scale(.97); }

.btn-light, .btn-soft-luxury, .btn-light-luxury {
    background: rgba(255, 255, 255, .6) !important;
    border: 1px solid rgba(200, 125, 101, .3) !important;
    color: var(--rose-deep) !important;
    transition: transform .3s var(--ease), background-color .3s ease;
}
.btn-light:hover, .btn-soft-luxury:hover, .btn-light-luxury:hover {
    background: #fff !important;
    transform: translate3d(0, -2px, 0);
}

.pulsing-badge { animation: badgeGlow 2.4s ease-in-out infinite; }
@keyframes badgeGlow {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(217, 169, 90, 0)); }
    50%      { filter: drop-shadow(0 0 8px rgba(217, 169, 90, .8)); }
}

/* trend slider: see "Trends poster" below */
.department-card img { transition: transform .6s var(--ease); }
.department-card:hover img { transform: scale(1.05); }

/* view transitions */
.fade-in { animation: fadeInMove .45s var(--ease) both; }
@keyframes fadeInMove {
    from { opacity: 0; transform: translate3d(0, 12px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* =========================================================
   Department detail: service tiles + price pills
   ========================================================= */
.pulsing-card {
    position: relative;
    background: rgba(255, 255, 255, .5);
    border: 1px solid rgba(255, 255, 255, .75);
    box-shadow: var(--shadow-rest);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
/* gold ring that breathes — opacity only, so it stays on the GPU */
.pulsing-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, #f6dd9e, #d4a24c 40%, #fff1c4 60%, #c9893f);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: ringBreath 3.6s ease-in-out infinite;
}
@keyframes ringBreath {
    0%, 100% { opacity: .25; }
    50%      { opacity: .95; }
}
.pulsing-card:hover { transform: translate3d(0, -5px, 0); box-shadow: var(--shadow-lift); }

/* price pills */
.prices-grid-container { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 15px; }

.price-pill-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, .75), rgba(251, 238, 233, .6));
    border: 1px solid rgba(200, 125, 101, .25);
    border-radius: 50px;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 42%;
    flex: 1 1 42%;
    cursor: pointer;
    box-shadow: var(--shadow-rest);
    transition: transform .35s var(--ease), border-color .3s ease, background-color .3s ease;
}
.price-pill-card:hover { transform: translate3d(0, -3px, 0) scale(1.03); border-color: var(--rose); background: #fff; }
.price-pill-card:hover .price-title { color: var(--rose-deep) !important; }
.price-pill-card:hover .price-badge { background-color: var(--rose-deep) !important; color: #fff !important; }
.price-title { font-size: .9rem; transition: color .3s ease; }
.price-badge {
    background-color: var(--rose-light);
    color: var(--rose-deep);
    font-size: 1rem;
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: bold;
    direction: ltr;
    unicode-bidi: isolate;
    white-space: nowrap;
    transition: background-color .3s ease, color .3s ease;
}

/* =========================================================
   4. Gift / offers card
   ========================================================= */
.gift-card {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "box head" "text text" "cta cta";
    align-items: center;
    gap: 2px 16px;
    width: 100%;
    padding: 22px 20px 20px;
    border-radius: 26px;
    color: var(--ink);
    cursor: pointer;
    text-align: start;
    background: linear-gradient(135deg, rgba(255, 246, 236, .82), rgba(244, 222, 196, .55));
    box-shadow: var(--shadow-float);
    transform: perspective(900px) translate3d(0, var(--lift, 0), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .3s ease-out, box-shadow .45s var(--ease);
}
.gift-card:hover { --lift: -4px; box-shadow: var(--shadow-lift); }
.gift-card:active { --lift: -1px; }

/* pulsing gold border */
.gift-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, #f6dd9e, #d4a24c 35%, #fff1c4 55%, #c9893f 80%, #f0cf86);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: ringBreath 3.2s ease-in-out infinite;
}
/* gold halo behind the card */
.gift-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    box-shadow: 0 0 22px 2px rgba(222, 171, 84, .55), 0 0 64px 8px rgba(214, 150, 110, .35);
    opacity: .3;
    pointer-events: none;
    animation: haloBreath 3.2s ease-in-out infinite;
}
@keyframes haloBreath {
    0%, 100% { opacity: .22; }
    50%      { opacity: .75; }
}

.gift-card__clip { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.gift-card__sheen {
    position: absolute;
    inset: 0;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 244, 214, .9), transparent 60%);
    opacity: 0;
    transition: opacity .4s ease;
}
.gift-card:hover .gift-card__sheen { opacity: 1; }
.gift-card__shine {
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -45%;
    width: 38%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .7), transparent);
    transform: translate3d(0, 0, 0) skewX(-18deg);
    opacity: 0;
}
.gift-card:hover .gift-card__shine { animation: shine 1.1s var(--ease); }
@keyframes shine {
    0%   { opacity: 1; transform: translate3d(0, 0, 0) skewX(-18deg); }
    100% { opacity: 1; transform: translate3d(420%, 0, 0) skewX(-18deg); }
}

/* the gift box */
.gift-card__box {
    position: relative;
    flex: 0 0 84px;
    width: 84px;
    height: 84px;
    animation: boxFloat 4.5s ease-in-out infinite;
}
@keyframes boxFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50%      { transform: translate3d(0, -4px, 0); }
}
.gift-card__box svg { width: 100%; height: 100%; overflow: visible; display: block; filter: drop-shadow(0 6px 8px rgba(120, 60, 40, .22)); }

.gb-lid-idle { transform-box: fill-box; transform-origin: 10% 100%; animation: lidTease 6s ease-in-out infinite; }
@keyframes lidTease {
    0%, 82%, 100% { transform: rotate(0) translate3d(0, 0, 0); }
    88%           { transform: rotate(-5deg) translate3d(0, -4px, 0); }
    94%           { transform: rotate(2deg) translate3d(0, -1px, 0); }
}
.gb-lid { transform-box: fill-box; transform-origin: 10% 100%; transition: transform .55s cubic-bezier(.34, 1.56, .64, 1); }
.gb-glow { opacity: 0; transition: opacity .45s ease; }
.gift-card:hover .gb-lid { transform: translate3d(0, -13px, 0) rotate(-9deg); }
.gift-card:hover .gb-glow { opacity: 1; }
.gift-card.is-opening .gb-lid { transform: translate3d(0, -24px, 0) rotate(-20deg); }
.gift-card.is-opening .gb-glow { opacity: 1; }

.spark {
    position: absolute;
    left: 50%;
    top: 34%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    background: linear-gradient(#fff6cf, #e0b060);
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    opacity: 0;
    pointer-events: none;
}
.gift-card:hover .spark,
.gift-card.is-opening .spark { animation: sparkRise 1.5s ease-out infinite; animation-delay: var(--dl, 0s); }
.gift-card.is-opening .spark { animation-duration: .8s; }
@keyframes sparkRise {
    0%   { opacity: 0; transform: translate3d(0, 6px, 0) scale(.4); }
    25%  { opacity: 1; }
    100% { opacity: 0; transform: translate3d(var(--x, 0), var(--y, -44px), 0) scale(1.1) rotate(90deg); }
}

.gift-card__body { flex: 1 1 auto; min-width: 0; display: block; }
.gift-card__tag {
    display: inline-block;
    padding: 3px 12px;
    margin-bottom: 6px;
    border-radius: 50px;
    font-size: .74rem;
    font-weight: 800;
    color: #5a3a12;
    background: linear-gradient(135deg, #f6e2a6, #e2b45f);
    box-shadow: var(--shadow-rest);
}
.gift-card__title { font-size: 1.4rem; font-weight: 700; line-height: 1.35; margin: 0 0 4px; color: var(--ink); }
.gift-card__text { font-size: .82rem; line-height: 1.65; margin: 0 0 10px; color: var(--ink-soft); }
.gift-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #c47a62, #9e5842);
    text-shadow: 0 1px 1px rgba(80, 30, 15, .25);
    box-shadow: var(--shadow-rest);
}

@media (max-width: 380px) {
    .gift-card { gap: 12px; padding: 18px 14px; }
    .gift-card__box { flex-basis: 66px; width: 66px; height: 66px; }
    .gift-card__title { font-size: 1.2rem; }
}

/* department-level discount banner shares the gold border */
.special-offers-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(251, 238, 233, .8), rgba(255, 255, 255, .6));
    border: 0;
    border-radius: 16px;
    padding: 15px 20px;
    cursor: pointer;
    box-shadow: var(--shadow-rest);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.special-offers-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, #f6dd9e, #d4a24c 40%, #fff1c4 60%, #c9893f);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: ringBreath 3.2s ease-in-out infinite;
}
.special-offers-banner:hover { transform: translate3d(0, -3px, 0); box-shadow: var(--shadow-lift); }
.gift-box-icon { display: inline-block; font-size: 1.5rem; animation: giftBounce 2.4s ease-in-out infinite; }
.special-offers-banner:hover .gift-box-icon { animation-duration: .9s; }
@keyframes giftBounce {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0); }
    20%      { transform: translate3d(0, -6px, 0) rotate(-5deg); }
    40%      { transform: translate3d(0, 0, 0) rotate(5deg); }
    60%      { transform: translate3d(0, -4px, 0) rotate(-3deg); }
    80%      { transform: translate3d(0, 0, 0) rotate(2deg); }
}

/* =========================================================
   Modals
   ========================================================= */
.custom-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: radial-gradient(circle at 50% 40%, rgba(90, 45, 30, .42), rgba(30, 15, 10, .62));
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    animation: modalIn .35s var(--ease);
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(.94); }
    to   { opacity: 1; transform: scale(1); }
}
.custom-modal-box {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 24px;
    background: rgba(255, 251, 247, .82);
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: 0 30px 80px rgba(40, 20, 12, .35), var(--shadow-rest);
}
.custom-modal-overlay > .bg-white { background-color: rgba(255, 251, 247, .9) !important; }

/* =========================================================
   Scroll-to-top
   ========================================================= */
#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99;
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    color: var(--rose-deep);
    background: rgba(255, 251, 247, .7);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-float);
    cursor: pointer;
    transition: transform .3s var(--ease);
}
#scrollTopBtn:hover { transform: scale(1.1); }

/* =========================================================
   Trends poster — rotating gold frame, zoom-reveal, shine, progress
   ========================================================= */
.trend-frame, .dept-hero {
    position: relative;
    isolation: isolate;
    padding: 2px;
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(246, 221, 158, .7), rgba(201, 137, 63, .7));
    box-shadow: var(--shadow-float), 0 0 36px rgba(222, 171, 84, .35);
}
.trend-frame::before, .dept-hero::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 220%;
    aspect-ratio: 1;
    z-index: -1;
    background: conic-gradient(from 0deg, transparent 0 55%, #fff1c4 68%, #e2b45f 80%, #c9893f 90%, transparent 100%);
    transform: translate3d(-50%, -50%, 0) rotate(0deg);
    animation: frameSpin 5s linear infinite;
    will-change: transform;
}
@keyframes frameSpin {
    to { transform: translate3d(-50%, -50%, 0) rotate(360deg); }
}
.trend-frame .carousel { border-radius: 24px; background: #2b1d18; box-shadow: none !important; }

.carousel-fade .carousel-item { transition-duration: 1.4s; }
.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end { transition: opacity 0s 1.4s; }

.slider-img {
    object-fit: cover;
    filter: brightness(.94) saturate(1.12);
    will-change: transform;
}
.carousel-item.active .slider-img { animation: posterReveal 10s cubic-bezier(.22, .8, .24, 1) both; }
@keyframes posterReveal {
    from { transform: scale(1.2) translate3d(2.5%, 1.5%, 0); }
    to   { transform: scale(1.02) translate3d(0, 0, 0); }
}

/* light sweep when a slide arrives + progress line */
.carousel-item.active > .position-relative::after {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -40%;
    width: 35%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .6), transparent);
    transform: skewX(-18deg) translate3d(0, 0, 0);
    pointer-events: none;
    animation: slideShine 1.5s .35s ease-out both;
}
@keyframes slideShine {
    from { transform: translate3d(0, 0, 0) skewX(-18deg); opacity: 1; }
    to   { transform: translate3d(480%, 0, 0) skewX(-18deg); opacity: 1; }
}
.carousel-item.active > .position-relative::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    z-index: 3;
    background: linear-gradient(90deg, #fff1c4, #d4a24c);
    transform-origin: right center;
    animation: slideProgress 5.1s linear both;
    pointer-events: none;
}
@keyframes slideProgress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* caption rises in piece by piece */
.carousel-item.active .carousel-caption > * { animation: capIn .8s var(--ease) both; }
.carousel-item.active .carousel-caption > :nth-child(1) { animation-delay: .35s; }
.carousel-item.active .carousel-caption > :nth-child(2) { animation-delay: .5s; }
.carousel-item.active .carousel-caption > :nth-child(3) { animation-delay: .65s; }
@keyframes capIn {
    from { opacity: 0; transform: translate3d(0, 22px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* =========================================================
   Departments — see-through cards, image dissolves into glass
   ========================================================= */
.service-card {
    border-radius: 24px;
    background: rgba(255, 250, 246, .34);
}
.service-card img {
    -webkit-mask-image: linear-gradient(#000 60%, transparent);
    mask-image: linear-gradient(#000 60%, transparent);
    transition: transform .8s var(--ease);
}
.service-card:hover img { transform: scale(1.06); }
.service-card .bg-white { background: transparent !important; position: relative; margin-top: -22px; }
.service-card h5 { font-family: 'Amiri', 'Tajawal', !important; font-size: 1.2rem; }

#departments-container > .col-12 { animation: rise .8s var(--ease) both; }
#departments-container > .col-12:nth-child(2) { animation-delay: .1s; }
#departments-container > .col-12:nth-child(3) { animation-delay: .2s; }
#departments-container > .col-12:nth-child(4) { animation-delay: .3s; }
#departments-container > .col-12:nth-child(5) { animation-delay: .4s; }
#departments-container > .col-12:nth-child(n+6) { animation-delay: .5s; }
@keyframes rise {
    from { opacity: 0; transform: translate3d(0, 26px, 0) scale(.97); }
    to   { opacity: 1; transform: none; }
}

/* gift card — ordered layout */
.gift-card__box { grid-area: box; flex: none; width: 92px; height: 92px; margin-top: 8px; }
.gift-card__head { grid-area: head; display: block; min-width: 0; }
.gift-card__head .gift-card__tag { margin-bottom: 8px; }
.gift-card__head .gift-card__title { margin: 0; font-size: 1.45rem; }
.gift-card__text { grid-area: text; margin: 14px 0 16px; text-align: start; }
.gift-card__cta {
    grid-area: cta;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 12px 18px;
    font-size: .9rem;
}
.gift-card__cta i:last-child { transition: transform .35s var(--ease); }
.gift-card:hover .gift-card__cta i:last-child { transform: translate3d(-4px, 0, 0); }
@media (max-width: 380px) {
    .gift-card__box { width: 76px; height: 76px; }
    .gift-card__head .gift-card__title { font-size: 1.25rem; }
}

/* department hero: shining gold frame */
.dept-hero {
    margin: 14px 14px 0;
    border-radius: 24px;
}
.dept-hero img { display: block; width: 100%; border-radius: 22px; }
.dept-hero::before { animation: frameSpin 1.4s linear 2, frameSpin 5s linear 2.8s infinite; }
.dept-hero::after {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -40%;
    width: 35%;
    z-index: 2;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .65), transparent);
    transform: skewX(-18deg) translate3d(0, 0, 0);
    pointer-events: none;
    animation: slideShine 1.6s .4s ease-out both;
}

/* welcome message */
.welcome-card {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    padding-inline-end: 50px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 249, 242, .72), rgba(246, 226, 204, .48));
    -webkit-backdrop-filter: blur(var(--blur)) saturate(170%);
    backdrop-filter: blur(var(--blur)) saturate(170%);
    box-shadow: var(--shadow-float);
    animation: welcomeIn .9s var(--ease) both;
}
.welcome-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, #f6dd9e, #d4a24c 35%, #fff1c4 55%, #c9893f 80%, #f0cf86);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: ringBreath 3.6s ease-in-out infinite;
}
.welcome-card__clip { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.welcome-card__shine {
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -40%;
    width: 35%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .7), transparent);
    transform: skewX(-18deg) translate3d(0, 0, 0);
    animation: slideShine 1.8s .7s ease-out both;
}
.welcome-card__icon {
    position: relative;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #d68b72, #a35a44);
    box-shadow: var(--shadow-rest);
}
.welcome-card__icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(217, 169, 90, .8);
    animation: iconPulse 2.6s ease-out infinite;
}
@keyframes iconPulse {
    0%   { opacity: .8; transform: scale(1); }
    100% { opacity: 0;  transform: scale(1.6); }
}
.welcome-card__text { min-width: 0; }
.welcome-card__hello { font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.welcome-card__name {
    font-family: 'Amiri', 'Tajawal', serif;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--rose-deep);
    overflow-wrap: anywhere;
}
.welcome-card__sub { font-size: .85rem; color: var(--ink); }
.welcome-card__close {
    position: absolute;
    inset-block-start: 10px;
    inset-inline-end: 10px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--rose-deep);
    background: rgba(255, 255, 255, .6);
    cursor: pointer;
    transition: background-color .3s ease, transform .3s var(--ease);
}
.welcome-card__close:hover { background: #fff; transform: rotate(90deg); }
@keyframes welcomeIn {
    from { opacity: 0; transform: translate3d(0, -18px, 0) scale(.96); }
    to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes welcomeOut {
    to { opacity: 0; transform: translate3d(0, -14px, 0) scale(.97); }
}
#welcome-banner-container.is-leaving .welcome-card { animation: welcomeOut .45s var(--ease) forwards; }

/* share button, toast, shared-post highlight */
.share-btn {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--rose-deep);
    background: rgba(255, 255, 255, .55);
    box-shadow: var(--shadow-rest);
    cursor: pointer;
    transition: transform .3s var(--ease), background-color .3s ease;
}
.share-btn:hover { background: #fff; transform: translate3d(0, -2px, 0); }
.share-btn:active { transform: scale(.92); }

.lux-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 10000;
    padding: 11px 22px;
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 700;
    color: #fff;
    background: rgba(69, 50, 43, .94);
    box-shadow: var(--shadow-float);
    opacity: 0;
    transform: translate3d(-50%, 20px, 0);
    transition: opacity .35s ease, transform .35s var(--ease);
    pointer-events: none;
}
.lux-toast.show { opacity: 1; transform: translate3d(-50%, 0, 0); }

.post-highlight .card {
    outline: 3px solid rgba(217, 169, 90, .95);
    outline-offset: 3px;
    animation: outlineFade 2.8s ease-out .6s forwards;
}
@keyframes outlineFade { to { outline-color: transparent; } }

/* posts: tighter spacing between one post and the next */
#all-posts-container { --bs-gutter-y: .7rem; }
#all-posts-container > .col-12.mb-4 { margin-bottom: 0 !important; }

/* doctors */
.doc-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px 14px 12px;
    margin-bottom: 10px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .62), rgba(251, 238, 233, .42));
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: var(--shadow-rest);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(170%);
    backdrop-filter: blur(var(--blur)) saturate(170%);
    animation: rise .6s var(--ease) backwards;
    animation-delay: calc(var(--i, 0) * 90ms);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.doc-card:hover { transform: translate3d(0, -3px, 0); box-shadow: var(--shadow-float); }
.doc-card::before {
    content: "";
    position: absolute;
    inset-block: 16px;
    inset-inline-start: 0;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(#f6dd9e, #c9893f);
}
.doc-card__avatar {
    flex: none;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #d68b72, #a35a44);
    box-shadow: var(--shadow-rest), 0 0 0 3px rgba(217, 169, 90, .45);
}
.doc-card__avatar i { font-size: 1.25rem; }
.doc-card__body { flex: 1 1 auto; min-width: 0; }
.doc-card__role { display: block; margin-bottom: 8px; }
.doc-card__row { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; }
.doc-card__row > i { flex: none; margin-top: 3px; color: var(--rose); }
.doc-card__call {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 3px 12px;
    border-radius: 50px;
    background: rgba(25, 135, 84, .09);
    border: 1px solid rgba(25, 135, 84, .22);
    cursor: pointer;
    transition: background-color .3s ease, transform .3s var(--ease);
}
.doc-card__call > i { color: inherit; margin-top: 0; }
.doc-card__num { white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.doc-card__call:hover { background: rgba(25, 135, 84, .16); transform: translate3d(0, -1px, 0); }
.doc-card__call:active { transform: scale(.97); }

/* share sheet */
.share-sheet { max-width: 420px; }
.share-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 6px;
}
.share-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    animation: rise .5s var(--ease) backwards;
}
.share-opt:nth-child(2) { animation-delay: .04s; }
.share-opt:nth-child(3) { animation-delay: .08s; }
.share-opt:nth-child(4) { animation-delay: .12s; }
.share-opt:nth-child(5) { animation-delay: .16s; }
.share-opt:nth-child(6) { animation-delay: .20s; }
.share-opt:nth-child(7) { animation-delay: .24s; }
.share-opt__icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    box-shadow: var(--shadow-rest);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.share-opt__icon i { font-size: 1.45rem; }
.share-opt:hover .share-opt__icon { transform: translate3d(0, -4px, 0) scale(1.06); box-shadow: var(--shadow-float); }
.share-opt:active .share-opt__icon { transform: scale(.94); }
.share-opt--wa   .share-opt__icon { background: linear-gradient(135deg, #3be07d, #1ba94c); }
.share-opt--tg   .share-opt__icon { background: linear-gradient(135deg, #37b4ea, #1f86bd); }
.share-opt--fb   .share-opt__icon { background: linear-gradient(135deg, #3b8bff, #1259c9); }
.share-opt--x    .share-opt__icon { background: linear-gradient(135deg, #3a3a3a, #000); }
.share-opt--mail .share-opt__icon { background: linear-gradient(135deg, #e58f78, #b8634b); }
.share-opt--sms  .share-opt__icon { background: linear-gradient(135deg, #6fcf97, #2f9e63); }
.share-opt--more .share-opt__icon { background: linear-gradient(135deg, #f6dd9e, #c9893f); color: #5a3a12; }

.share-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 12px;
    border-radius: 50px;
    background: rgba(255, 255, 255, .6);
    border: 1px solid rgba(200, 125, 101, .25);
    box-shadow: var(--shadow-rest);
}
.share-link__url {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--ink-soft);
    unicode-bidi: plaintext;
}
.share-link__btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 0;
    border-radius: 50px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #c47a62, #9e5842);
    text-shadow: 0 1px 1px rgba(80, 30, 15, .25);
    cursor: pointer;
    transition: transform .3s var(--ease), filter .3s ease;
}
.share-link__btn:hover { filter: brightness(1.08); transform: translate3d(0, -1px, 0); }
.share-link__btn:active { transform: scale(.96); }

/* =========================================================
   Reviews, FAQ, find-us
   (لا يغيّر أي نوع أو حجم خط: الأحجام تبقى كما في الموقع)
   ========================================================= */
.min-w-0 { min-width: 0; }
.stars { color: var(--gold); white-space: nowrap; letter-spacing: 1px; }

.review-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    margin-bottom: 12px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 249, 242, .7), rgba(246, 226, 204, .45));
    border: 1px solid var(--glass-edge);
    box-shadow: var(--shadow-float);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(170%);
    backdrop-filter: blur(var(--blur)) saturate(170%);
}
.review-summary__score { text-align: center; }
.review-summary__score .stars i { font-size: 1.1rem; }

.reviews-track {
    display: flex;
    gap: 12px;
    padding: 4px 2px 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.reviews-track::-webkit-scrollbar { display: none; }

.review-card {
    position: relative;
    flex: 0 0 86%;
    max-width: 340px;
    padding: 18px 16px 16px;
    border-radius: 22px;
    scroll-snap-align: center;
    background: var(--glass-fill);
    border: 1px solid var(--glass-edge);
    box-shadow: var(--shadow-float);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(170%);
    backdrop-filter: blur(var(--blur)) saturate(170%);
    animation: rise .6s var(--ease) backwards;
}
.review-card:nth-child(2) { animation-delay: .08s; }
.review-card:nth-child(3) { animation-delay: .16s; }
.review-card__quote {
    position: absolute;
    inset-block-start: 8px;
    inset-inline-end: 12px;
    font-size: 2.2rem;
    color: rgba(217, 169, 90, .38);
    line-height: 1;
}
.review-card__text { margin: 10px 0 14px; line-height: 1.8; overflow-wrap: anywhere; }
.review-card__who { display: flex; align-items: center; gap: 10px; }
.review-card__avatar {
    flex: none;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #d68b72, #a35a44);
    box-shadow: var(--shadow-rest), 0 0 0 2px rgba(217, 169, 90, .45);
}

.review-empty {
    text-align: center;
    padding: 22px 16px;
    border-radius: 22px;
    background: var(--glass-fill);
    border: 1px dashed rgba(200, 125, 101, .45);
}
.review-empty > i { display: block; margin-bottom: 6px; font-size: 1.8rem; color: var(--gold); }

/* rating modal */
.rating-picker { display: flex; justify-content: center; gap: 4px; }
.rating-picker__star {
    padding: 2px;
    border: 0;
    background: none;
    color: rgba(200, 125, 101, .28);
    cursor: pointer;
    transition: transform .25s var(--ease), color .2s ease;
}
.rating-picker__star i { display: block; font-size: 2.1rem; }
.rating-picker__star.is-on { color: var(--gold); filter: drop-shadow(0 2px 5px rgba(217, 169, 90, .55)); }
.rating-picker__star:hover { transform: scale(1.15); }
.rating-picker__star:active { transform: scale(.92); }

.custom-modal-box .form-control,
.custom-modal-box .form-select {
    background-color: rgba(255, 255, 255, .72);
    border: 1px solid rgba(200, 125, 101, .3);
    border-radius: 14px;
    color: var(--ink);
}
.custom-modal-box .form-control:focus,
.custom-modal-box .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(217, 169, 90, .28);
}
.review-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.review-error {
    margin-bottom: 12px;
    padding: 9px 14px;
    border-radius: 14px;
    text-align: center;
    color: #842029;
    background: rgba(220, 53, 69, .1);
    border: 1px solid rgba(220, 53, 69, .25);
}

/* FAQ accordion */
.faq-item {
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--glass-fill);
    border: 1px solid var(--glass-edge);
    box-shadow: var(--shadow-rest);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(170%);
    backdrop-filter: blur(var(--blur)) saturate(170%);
    transition: box-shadow .4s var(--ease), border-color .3s ease;
}
.faq-item:hover { box-shadow: var(--shadow-float); }
.faq-item__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 700;
    text-align: start;
    color: var(--ink);
    cursor: pointer;
}
.faq-item__q > i { flex: none; color: var(--rose); transition: transform .35s var(--ease); }
.faq-item__q:not(.collapsed) > i { transform: rotate(180deg); }
.faq-item__a { padding: 0 16px 16px; line-height: 1.9; white-space: pre-line; color: var(--ink-soft); }

/* find us */
.find-us {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    text-align: center;
    padding: 26px 18px 18px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(255, 249, 242, .7), rgba(246, 226, 204, .45));
    border: 1px solid var(--glass-edge);
    box-shadow: var(--shadow-float);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(170%);
    backdrop-filter: blur(var(--blur)) saturate(170%);
}
.find-us::before {              /* شبكة خريطة ناعمة */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(200, 125, 101, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 125, 101, .12) 1px, transparent 1px);
    background-size: 30px 30px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 72%);
    mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 72%);
}
.find-us__pin {
    position: relative;
    width: 62px;
    height: 62px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #d68b72, #a35a44);
    box-shadow: var(--shadow-float), 0 0 0 4px rgba(217, 169, 90, .45);
    animation: pinBob 3s ease-in-out infinite;
}
.find-us__pin i { font-size: 1.7rem; }
.find-us__pin::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(217, 169, 90, .8);
    animation: iconPulse 2.4s ease-out infinite;
}
@keyframes pinBob {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50%      { transform: translate3d(0, -5px, 0); }
}

/* =========================================================
   Google sign-in: header button, account card, button slot
   ========================================================= */
.auth-btn {
    flex: none;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(200, 125, 101, .4);
    border-radius: 50%;
    color: var(--rose-deep);
    background: rgba(255, 255, 255, .7);
    box-shadow: var(--shadow-rest);
    cursor: pointer;
    transition: transform .3s var(--ease), background-color .3s ease;
}
.auth-btn:hover { background: #fff; transform: translate3d(0, -2px, 0); }
.auth-btn:active { transform: scale(.94); }
.auth-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.auth-btn i { font-size: 1.05rem; }

.auth-who {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .6);
    border: 1px solid rgba(200, 125, 101, .22);
    box-shadow: var(--shadow-rest);
}
.auth-who__img, .auth-who__letter {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(217, 169, 90, .6);
}
.auth-who__letter {
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, #d68b72, #a35a44);
}
.auth-btn .auth-who__letter { width: 100%; height: 100%; box-shadow: none; }
.min-w-0 { min-width: 0; }

.google-slot { display: flex; justify-content: center; align-items: center; min-height: 44px; }

/* =========================================================
   Reduced motion: stop interface motion, but keep the soft ambient backdrop
   (many phones turn this on via battery saver / "remove animations")
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *:not(.lux-bg *), *:not(.lux-bg *)::before, *:not(.lux-bg *)::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

.find-us__map{border-radius:18px;overflow:hidden;border:1px solid rgba(180,120,100,.25);box-shadow:0 6px 18px rgba(150,90,70,.12)}
.find-us__map iframe{display:block;width:100%;height:220px;border:0}

/* زر الحساب في الشريط العلوي: دائرة وردية أنيقة */
.auth-btn {
    width: 38px;
    height: 38px;
    border: 2px solid #fff;
    color: #fff;
    background: linear-gradient(135deg, #d99a82 0%, #b0634d 100%);
    box-shadow: 0 0 0 1px rgba(200, 125, 101, .45), 0 6px 14px rgba(160, 90, 70, .28);
}
.auth-btn:hover { background: linear-gradient(135deg, #e3a78f 0%, #bb6b54 100%); }
.auth-btn i { font-size: 1.15rem; }

/* ❤️ زر الإعجاب */
.like-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #9c8a85;
    background: rgba(255, 255, 255, .55);
    box-shadow: var(--shadow-rest);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: transform .25s var(--ease), color .2s ease, background-color .2s ease;
}
.like-btn:active { transform: scale(.88); }
.like-btn.is-liked { color: #e0344d; background: #fff; }
.like-btn.is-liked > i { animation: likePop .45s var(--ease); }
@keyframes likePop {
    0% { transform: scale(.6); }
    55% { transform: scale(1.35); }
    100% { transform: scale(1); }
}
.like-burst {
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -5px 0 0 -5px;
    font-size: .6rem;
    color: #e0344d;
    pointer-events: none;
    animation: likeBurst .65s ease-out forwards;
}
@keyframes likeBurst {
    from { opacity: 1; transform: translate3d(0, 0, 0) scale(.6); }
    to { opacity: 0; transform: translate3d(var(--dx), var(--dy), 0) scale(1.1); }
}

/* على اللمس: إلغاء تغبيش الخلفية عن البطاقات لأنه يسبّب بطئاً وومضة بيضاء عند التفاعل */
@media (hover: none) {
    .card, .service-card {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgba(255, 252, 249, .86);
    }
}

.like-btn.has-count { width: auto; min-width: 36px; padding: 0 12px; grid-auto-flow: column; gap: 6px; border-radius: 999px; }
.like-count { font-weight: 700; line-height: 1; }
.like-count:empty { display: none; }

/* ===== تحسين شكل الكمبيوتر (الشاشات الكبيرة فقط، لا يؤثر على الموبايل) ===== */
@media (min-width: 992px) {
    .max-w-mobile { max-width: 1080px; }
    #welcome-banner-container.max-w-mobile { max-width: 620px; }
    #departments-container > .col-12,
    #all-posts-container > .col-12 { width: 50%; }
}
@media (min-width: 1400px) {
    .max-w-mobile { max-width: 1180px; }
}

/* بوستر الترندات على الكمبيوتر: مستطيل عريض وأكبر */
@media (min-width: 992px) {
    .trend-frame .slider-img { height: 400px !important; }
}

/* صورة القسم على الكمبيوتر: مستطيل عريض */
@media (min-width: 992px) {
    .dept-hero img { height: 340px !important; }
}
