/* ==========================================================================
   Care Incubator — public site theme
   Loaded after minimal.css. Everything here is prefixed `ci-` so it never
   collides with the older marketplace/dashboard styles. Uses logical
   properties (inline-start/end) so the same rules work in Arabic (RTL).
   ========================================================================== */

:root {
    --ci-purple: #6a1b9a;
    --ci-purple-deep: #4a148c;
    --ci-purple-darker: #2e0b5c;
    --ci-purple-light: #7e3ff2;
    --ci-purple-pale: #f4f0fb;
    --ci-lavender: #ece6f7;
    --ci-yellow: #ffffff;
    --ci-yellow-dark: #f4f0fb;
    --ci-ink: #1b1330;
    --ci-text: #3d3550;
    --ci-muted: #6b6480;
    --ci-border: #e7e2f3;
    --ci-white: #ffffff;
    --ci-navy: #120a24;
    --ci-radius: 16px;
    --ci-radius-sm: 10px;
    --ci-shadow: 0 10px 30px rgba(74, 20, 140, 0.08);
    --ci-shadow-lg: 0 24px 60px rgba(74, 20, 140, 0.16);

    /* Re-point the legacy marketplace variables at the new palette so the
       cart, checkout and product pages pick up the brand colours too. */
    --primary: #6a1b9a;
    --primary-600: #5b1786;
    --primary-700: #4a148c;
    --primary-light: #7e3ff2;
    --accent: #7e3ff2;
    --accent-600: #6a1b9a;
    --accent-700: #4a148c;
    --bg-lavender: #f4f0fb;
    --purple-section: #4a148c;
    --purple-section-2: #6a1b9a;
}

.btn-accent,
.btn-accent:hover {
    color: var(--ci-ink);
}

body {
    font-family: 'Cairo', sans-serif;
}

.ci-container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 16px;
}

@media (min-width: 768px) {
    .ci-container {
        padding-inline: 24px;
    }
}

/* ---------- Buttons ---------- */
.ci-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.ci-btn:hover {
    transform: translateY(-2px);
}

.ci-btn:focus-visible,
.ci-nav a:focus-visible,
.ci-icon-btn:focus-visible {
    outline: 3px solid var(--ci-yellow);
    outline-offset: 2px;
}

.ci-btn-primary {
    background: var(--ci-white);
    border-color: var(--ci-white);
    color: var(--ci-purple-deep);
    font-weight: 700;
}

.ci-btn-primary:hover {
    background: var(--ci-purple-pale);
    border-color: var(--ci-purple-pale);
    color: var(--ci-purple);
    box-shadow: 0 10px 24px rgba(74, 20, 140, 0.2);
}

.ci-btn-purple {
    background: var(--ci-purple);
    border-color: var(--ci-purple);
    color: var(--ci-white);
}

.ci-btn-purple:hover {
    background: var(--ci-purple-deep);
    border-color: var(--ci-purple-deep);
    color: var(--ci-white);
    box-shadow: 0 10px 24px rgba(74, 20, 140, 0.3);
}

.ci-btn-light {
    background: var(--ci-white);
    border-color: var(--ci-white);
    color: var(--ci-purple-deep);
}

.ci-btn-light:hover {
    background: var(--ci-lavender);
    border-color: var(--ci-lavender);
    color: var(--ci-purple-deep);
}

.ci-btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--ci-white);
}

.ci-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--ci-white);
    color: var(--ci-white);
}

.ci-btn-outline-purple {
    background: transparent;
    border-color: var(--ci-purple);
    color: var(--ci-purple);
}

.ci-btn-outline-purple:hover {
    background: var(--ci-purple);
    color: var(--ci-white);
}

.ci-btn-block {
    width: 100%;
}

/* ---------- Header: top bar ---------- */
.ci-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 4px 20px rgba(46, 11, 92, 0.12);
}

.ci-topbar {
    background: linear-gradient(90deg, var(--ci-purple-darker), var(--ci-purple-deep) 55%, var(--ci-purple));
    color: var(--ci-white);
}

.ci-topbar__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 72px;
}

.ci-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

/* Capped in both directions so a stacked logo and a wide wordmark both fit. */
.ci-logo img {
    display: block;
    width: auto;
    height: auto;
    max-height: 52px;
    max-width: 170px;
}

.ci-search {
    flex: 1;
    display: none;
    max-width: 560px;
    margin-inline: auto;
    background: var(--ci-white);
    border-radius: 999px;
    overflow: hidden;
}

.ci-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 0.65rem 1.1rem;
    font-size: 0.92rem;
    color: var(--ci-ink);
    background: transparent;
    outline: none;
}

.ci-search button {
    border: 0;
    background: var(--ci-yellow);
    color: var(--ci-ink);
    padding-inline: 1.2rem;
    font-size: 1.05rem;
}

.ci-search button:hover {
    background: var(--ci-yellow-dark);
}

.ci-top-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-inline-start: auto;
}

.ci-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 42px;
    height: 42px;
    padding-inline: 0.6rem;
    border-radius: 999px;
    color: var(--ci-white);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 1.1rem;
    transition: background-color 0.2s ease;
}

.ci-icon-btn span {
    font-size: 0.85rem;
    font-weight: 700;
}

.ci-icon-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    color: var(--ci-white);
}

.ci-signin {
    display: none;
    align-items: center;
    gap: 0.4rem;
    height: 42px;
    padding-inline: 1.1rem;
    border-radius: 999px;
    background: var(--ci-white);
    color: var(--ci-purple-deep);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ci-signin:hover {
    background: var(--ci-purple-pale);
    color: var(--ci-purple);
}

.ci-register-link {
    display: none;
    color: var(--ci-white);
    font-weight: 600;
    font-size: 0.9rem;
}

.ci-register-link:hover {
    color: var(--ci-lavender);
}

.ci-menu-toggle {
    display: inline-flex;
}

@media (min-width: 768px) {
    .ci-search {
        display: flex;
    }
}

@media (max-width: 575.98px) {
    .ci-logo img {
        max-height: 40px;
        max-width: 120px;
    }

    .ci-topbar__inner {
        gap: 0.5rem;
    }

    .ci-top-actions {
        gap: 0.35rem;
    }

    .ci-icon-btn:not(.ci-lang-btn) span,
    .ci-hide-sm {
        display: none;
    }

    .ci-lang-btn {
        padding-inline: 0.65rem;
        gap: 0.35rem;
        min-width: auto;
        flex-shrink: 0;
    }

    .ci-lang-btn span {
        display: inline-block !important;
        font-size: 0.82rem;
        font-weight: 700;
        white-space: nowrap;
    }
}

@media (min-width: 992px) {
    .ci-signin,
    .ci-register-link {
        display: inline-flex;
    }

    .ci-menu-toggle {
        display: none;
    }
}

/* ---------- Header: navigation ---------- */
.ci-navbar {
    background: var(--ci-white);
    border-bottom: 1px solid var(--ci-border);
}

.ci-navbar__inner {
    position: relative;
}

.ci-nav {
    display: none;
    flex-direction: column;
    padding-block: 0.75rem;
}

.ci-nav.show {
    display: flex !important;
}

.ci-nav > li > a,
.ci-nav > li > button {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.7rem 0.4rem;
    border: 0;
    background: transparent;
    color: var(--ci-ink);
    font-weight: 700;
    font-size: 0.95rem;
    text-align: start;
}

.ci-nav > li > a i,
.ci-nav > li > button i {
    color: var(--ci-purple);
}

.ci-nav > li > a:hover,
.ci-nav > li > button:hover,
.ci-nav > li > a.active,
.ci-nav > li > button.active {
    color: var(--ci-purple);
}

.ci-nav .ci-caret {
    margin-inline-start: auto;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.ci-nav .ci-has-mega.open .ci-caret {
    transform: rotate(180deg);
}

.ci-mobile-search {
    display: flex;
    margin-bottom: 0.5rem;
    border: 1px solid var(--ci-border);
    border-radius: 999px;
    overflow: hidden;
}

.ci-mobile-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 0.6rem 1rem;
    outline: none;
}

.ci-mobile-search button {
    border: 0;
    background: var(--ci-yellow);
    padding-inline: 1rem;
}

.ci-mobile-auth {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.75rem;
}

.ci-mobile-auth .ci-btn {
    flex: 1;
    min-height: 42px;
}

/* Mega menu (services) */
.ci-mega {
    display: none;
    padding: 0.5rem 0 1rem;
}

.ci-has-mega.open .ci-mega {
    display: block;
}

@media (max-width: 991.98px) {
    .ci-nav.show {
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-inline: 0.5rem;
    }

    .ci-has-mega.open .ci-mega {
        max-height: 320px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: #faf7ff;
        border: 1.5px solid rgba(126, 63, 242, 0.15);
        border-radius: var(--ci-radius-sm);
        padding: 0.85rem;
        margin-top: 0.4rem;
        margin-bottom: 0.6rem;
        box-shadow: inset 0 2px 6px rgba(106, 27, 154, 0.04);
    }

    .ci-mega::-webkit-scrollbar,
    .ci-nav::-webkit-scrollbar {
        width: 5px;
    }

    .ci-mega::-webkit-scrollbar-track,
    .ci-nav::-webkit-scrollbar-track {
        background: rgba(126, 63, 242, 0.05);
        border-radius: 4px;
    }

    .ci-mega::-webkit-scrollbar-thumb,
    .ci-nav::-webkit-scrollbar-thumb {
        background: var(--ci-purple);
        border-radius: 4px;
    }
}

.ci-mega__grid {
    display: grid;
    gap: 1rem;
}

.ci-mega__group h6 {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ci-muted);
    margin-bottom: 0.4rem;
    font-weight: 800;
}

.ci-mega__group a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.5rem;
    border-radius: var(--ci-radius-sm);
    color: var(--ci-ink);
    font-size: 0.9rem;
    font-weight: 600;
}

.ci-mega__group a i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 9px;
    background: var(--ci-purple-pale);
    color: var(--ci-purple);
}

.ci-mega__group a:hover {
    background: var(--ci-purple-pale);
    color: var(--ci-purple);
}

.ci-mega__footer {
    margin-top: 0.75rem;
}

.ci-mega__footer a {
    color: var(--ci-purple);
    font-weight: 700;
}

@media (min-width: 992px) {
    .ci-nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        padding-block: 0;
    }

    .ci-nav > li > a,
    .ci-nav > li > button {
        padding: 1rem 0.75rem;
        position: relative;
    }

    .ci-nav > li > a.active::after,
    .ci-nav > li > button.active::after {
        content: "";
        position: absolute;
        inset-inline: 0.75rem;
        bottom: 0;
        height: 3px;
        border-radius: 3px 3px 0 0;
        background: var(--ci-purple);
    }

    .ci-nav .ci-nav-cta {
        margin-inline-start: auto;
    }

    .ci-nav .ci-nav-cta a {
        color: var(--ci-purple);
    }

    .ci-mobile-only,
    .ci-mobile-auth {
        display: none;
    }

    .ci-has-mega .ci-mega {
        position: absolute;
        top: 100%;
        inset-inline: 0;
        background: var(--ci-white);
        border: 1px solid var(--ci-border);
        border-radius: 0 0 var(--ci-radius) var(--ci-radius);
        box-shadow: var(--ci-shadow-lg);
        padding: 1.5rem;
        z-index: 20;
    }

    .ci-mega__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

/* ---------- Sections ---------- */
.ci-section {
    padding-block: 4.5rem;
}

.ci-section-sm {
    padding-block: 3rem;
}

.ci-bg-pale {
    background: var(--ci-purple-pale);
}

.ci-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    background: var(--ci-lavender);
    color: var(--ci-purple);
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 0.9rem;
}

.ci-title {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    color: var(--ci-ink);
    line-height: 1.25;
    margin-bottom: 0.9rem;
}

.ci-lead {
    color: var(--ci-muted);
    font-size: 1.02rem;
    max-width: 720px;
    margin-bottom: 0;
}

.ci-lead--strong {
    color: var(--ci-text);
    font-size: 1.1rem;
}

.ci-head {
    margin-bottom: 2.5rem;
}

.ci-head--center {
    text-align: center;
}

.ci-head--center .ci-lead {
    margin-inline: auto;
}

.ci-head--split {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

/* ---------- Hero ---------- */
.ci-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(700px 380px at 85% 10%, rgba(255, 199, 0, 0.16), transparent 60%),
        radial-gradient(600px 400px at 10% 100%, rgba(126, 63, 242, 0.45), transparent 60%),
        linear-gradient(120deg, var(--ci-purple-darker), var(--ci-purple-deep) 50%, var(--ci-purple));
    color: var(--ci-white);
    padding-block: 4rem 4.5rem;
}

.ci-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}

.ci-hero__grid {
    position: relative;
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.ci-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--ci-yellow);
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 1.1rem;
}

.ci-hero h1 {
    color: var(--ci-white);
    font-size: clamp(1.9rem, 4.2vw, 3.1rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.1rem;
}

.ci-hero p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    max-width: 640px;
    margin-bottom: 1.75rem;
}

.ci-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.ci-hero__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.ci-hero__links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    font-size: 0.92rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.35);
    padding-bottom: 2px;
}

.ci-hero__links a:hover {
    color: var(--ci-yellow);
    border-color: var(--ci-yellow);
}

.ci-hero__art {
    position: relative;
    max-width: 520px;
    margin-inline: auto;
}

.ci-hero__art img {
    width: 100%;
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(18, 10, 36, 0.35);
}

.ci-hero__chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    border-radius: 14px;
    background: var(--ci-white);
    color: var(--ci-ink);
    box-shadow: var(--ci-shadow-lg);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
}

.ci-hero__chip i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--ci-purple-pale);
    color: var(--ci-purple);
    font-size: 1.1rem;
}

.ci-hero__chip strong {
    display: block;
    font-size: 1.05rem;
    color: var(--ci-purple-deep);
}

.ci-hero__chip--a {
    top: 12%;
    inset-inline-start: -4%;
}

.ci-hero__chip--b {
    bottom: 22%;
    inset-inline-end: -2%;
}

@media (min-width: 992px) {
    .ci-hero {
        padding-block: 5rem 5.5rem;
    }

    .ci-hero__grid {
        grid-template-columns: 1.15fr 0.85fr;
    }
}

@media (max-width: 575.98px) {
    .ci-hero__chip {
        display: none;
    }

    .ci-hero__actions .ci-btn {
        flex: 1 1 100%;
    }
}

/* ---------- Inner page hero ---------- */
.ci-page-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(500px 260px at 90% 0%, rgba(255, 199, 0, 0.15), transparent 60%),
        linear-gradient(120deg, var(--ci-purple-darker), var(--ci-purple-deep) 55%, var(--ci-purple));
    color: var(--ci-white);
    padding-block: 3.25rem;
}

.ci-page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}

.ci-page-hero > * {
    position: relative;
}

.ci-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.9rem;
}

.ci-crumb a {
    color: rgba(255, 255, 255, 0.85);
}

.ci-crumb a:hover {
    color: var(--ci-yellow);
}

.ci-page-hero h1 {
    color: var(--ci-white);
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.ci-page-hero p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    max-width: 760px;
    margin-bottom: 0;
}

.ci-page-hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--ci-yellow);
    color: var(--ci-ink);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.ci-page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* ---------- About ---------- */
.ci-about {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.ci-about__text p {
    color: var(--ci-text);
    font-size: 1.02rem;
}

.ci-about__closing {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.2rem;
    margin-top: 1.25rem;
    border-inline-start: 4px solid var(--ci-yellow);
    background: var(--ci-purple-pale);
    border-radius: var(--ci-radius-sm);
    color: var(--ci-ink);
    font-weight: 600;
}

.ci-about__closing a {
    color: var(--ci-purple);
    text-decoration: underline;
}

.ci-about__card {
    background: var(--ci-white);
    border: 1px solid var(--ci-border);
    border-radius: var(--ci-radius);
    box-shadow: var(--ci-shadow);
    padding: 1.75rem;
}

.ci-about__card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ci-ink);
    margin-bottom: 1.1rem;
}

.ci-icon-list {
    display: grid;
    gap: 0.75rem;
}

.ci-icon-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    color: var(--ci-ink);
}

.ci-icon-list li i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--ci-purple-pale);
    color: var(--ci-purple);
    font-size: 1.15rem;
}

@media (min-width: 576px) {
    .ci-icon-list--2 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .ci-about {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 3.5rem;
    }
}

/* ---------- Service cards ---------- */
.ci-grid {
    display: grid;
    gap: 1.25rem;
}

@media (max-width: 575.98px) {
    section.ci-bg-pale#services .ci-grid,
    .ci-services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem !important;
    }

    #store .ci-grid {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }

    .ci-features {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.55rem !important;
    }

    .ci-feature {
        padding: 0.75rem 0.6rem !important;
        font-size: 0.82rem !important;
        gap: 0.45rem !important;
    }

    .ci-feature i {
        font-size: 1.15rem !important;
        flex-shrink: 0 !important;
    }

    .ci-cat-card {
        padding: 1.15rem 1rem !important;
    }

    .ci-service-card {
        padding: 1rem 0.75rem !important;
        border-radius: 14px !important;
    }

    .ci-service-card__icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.15rem !important;
        border-radius: 10px !important;
        margin-bottom: 0.6rem !important;
    }

    .ci-service-card h3 {
        font-size: 0.92rem !important;
        margin-bottom: 0.25rem !important;
        line-height: 1.3 !important;
    }

    .ci-service-card__tagline {
        font-size: 0.76rem !important;
        margin-bottom: 0.3rem !important;
        line-height: 1.25 !important;
    }

    .ci-service-card p {
        font-size: 0.78rem !important;
        margin-bottom: 0.6rem !important;
        line-height: 1.4 !important;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .ci-service-card__more {
        font-size: 0.78rem !important;
        font-weight: 700 !important;
    }
}

@media (min-width: 576px) {
    .ci-grid--2,
    .ci-grid--3,
    .ci-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .ci-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .ci-grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ci-service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.6rem;
    background: var(--ci-white);
    border: 1px solid var(--ci-border);
    border-radius: var(--ci-radius);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ci-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ci-shadow-lg);
    border-color: transparent;
}

.ci-service-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--ci-purple), var(--ci-purple-light));
    color: var(--ci-white);
    font-size: 1.5rem;
    margin-bottom: 1.1rem;
    box-shadow: 0 10px 22px rgba(106, 27, 154, 0.25);
}

.ci-service-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ci-ink);
    margin-bottom: 0.45rem;
}

.ci-service-card h3 a {
    color: inherit;
}

.ci-service-card h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.ci-service-card__tagline {
    color: var(--ci-purple);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.45rem;
}

.ci-service-card p {
    color: var(--ci-muted);
    font-size: 0.92rem;
    margin-bottom: 1.1rem;
}

.ci-service-card__more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    color: var(--ci-purple);
    font-weight: 800;
    font-size: 0.9rem;
}

.ci-service-card:hover .ci-service-card__more {
    color: var(--ci-purple-deep);
}

/* inline-block so the flip also applies inside inline links */
.ci-flip {
    display: inline-block;
}

[dir="rtl"] .ci-flip {
    transform: scaleX(-1);
}

/* ---------- Group filter (services page) ---------- */
.ci-group {
    margin-bottom: 3rem;
}

.ci-group:last-child {
    margin-bottom: 0;
}

.ci-group__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ci-ink);
    margin-bottom: 1.25rem;
}

.ci-group__title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ci-border);
}

.ci-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.ci-chips a {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--ci-white);
    font-weight: 700;
    font-size: 0.88rem;
}

.ci-chips a:hover {
    background: var(--ci-yellow);
    border-color: var(--ci-yellow);
    color: var(--ci-ink);
}

/* ---------- Online store ---------- */
.ci-store-band {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background:
        radial-gradient(500px 300px at 100% 0%, rgba(255, 199, 0, 0.2), transparent 60%),
        linear-gradient(120deg, var(--ci-purple-deep), var(--ci-purple));
    color: var(--ci-white);
    padding: 2.25rem 1.5rem;
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.ci-store-band .ci-eyebrow {
    background: rgba(255, 255, 255, 0.14);
    color: var(--ci-yellow);
}

.ci-store-band h2 {
    color: var(--ci-white);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.ci-store-band p {
    color: rgba(255, 255, 255, 0.84);
    margin-bottom: 0;
}

.ci-store-band__icon {
    display: none;
}

@media (min-width: 992px) {
    .ci-store-band {
        grid-template-columns: 1fr auto;
        padding: 3rem;
    }

    .ci-store-band__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 150px;
        height: 150px;
        border-radius: 40px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: var(--ci-yellow);
        font-size: 4.5rem;
        transform: rotate(-6deg);
    }
}

.ci-cat-card {
    height: 100%;
    padding: 1.4rem;
    border-radius: var(--ci-radius);
    border: 1px solid var(--ci-border);
    background: var(--ci-white);
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: break-word;
}

.ci-cat-card__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.ci-cat-card__head i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 13px;
    font-size: 1.3rem;
}

.ci-cat-card h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--ci-ink);
    margin: 0;
}

.ci-cat-card ul {
    display: grid;
    gap: 0.4rem;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ci-cat-card li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--ci-text);
    font-size: 0.9rem;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
}

.ci-cat-card li::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-top: 0.6rem;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.4;
    flex-shrink: 0;
}

.ci-tone-green i { background: #e6f6ec; color: #1f8a4c; }
.ci-tone-purple i { background: var(--ci-purple-pale); color: var(--ci-purple); }
.ci-tone-blue i { background: #e3effd; color: #2563eb; }
.ci-tone-orange i { background: #fff1e0; color: #d96b0b; }
.ci-tone-gray i { background: #eef0f4; color: #4b5563; }

.ci-features {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.ci-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: var(--ci-radius-sm);
    background: var(--ci-white);
    border: 1px solid var(--ci-border);
    font-weight: 700;
    color: var(--ci-ink);
    font-size: 0.92rem;
}

.ci-feature i {
    color: var(--ci-purple);
    font-size: 1.25rem;
}

/* ---------- Product cards ---------- */
.ci-products {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .ci-products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .ci-products {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ci-product {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--ci-white);
    border: 1px solid var(--ci-border);
    border-radius: var(--ci-radius);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ci-product:hover {
    transform: translateY(-4px);
    box-shadow: var(--ci-shadow-lg);
}

.ci-product__img {
    aspect-ratio: 1 / 1;
    background: var(--ci-purple-pale);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ci-product__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ci-product__img i {
    font-size: 2.5rem;
    color: var(--ci-purple-light);
}

.ci-product__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0.9rem 1rem 1rem;
}

.ci-product__cat {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ci-purple);
    margin-bottom: 0.2rem;
}

.ci-product h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ci-ink);
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ci-product h3 a {
    color: inherit;
}

.ci-product h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.ci-product__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
}

.ci-product__price {
    font-weight: 800;
    color: var(--ci-purple-deep);
}

.ci-product__go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ci-yellow);
    color: var(--ci-ink);
}

.ci-empty {
    padding: 2rem;
    text-align: center;
    border: 1px dashed var(--ci-border);
    border-radius: var(--ci-radius);
    color: var(--ci-muted);
    background: var(--ci-white);
}

/* ---------- Why choose ---------- */
.ci-why {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.ci-why__item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.15rem 1.2rem;
    border-radius: var(--ci-radius);
    background: var(--ci-white);
    border: 1px solid var(--ci-border);
    font-weight: 700;
    color: var(--ci-ink);
}

.ci-why__item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--ci-yellow);
    color: var(--ci-ink);
    font-size: 1.25rem;
}

/* ---------- Stats ---------- */
.ci-stats {
    background:
        radial-gradient(600px 300px at 0% 0%, rgba(126, 63, 242, 0.5), transparent 60%),
        linear-gradient(120deg, var(--ci-purple-darker), var(--ci-purple-deep));
    color: var(--ci-white);
    padding-block: 3.5rem;
}

.ci-stats h2 {
    color: var(--ci-white);
    text-align: center;
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 800;
    margin-bottom: 2rem;
}

.ci-stats__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

.ci-stat {
    text-align: center;
    padding: 1.4rem 1rem;
    border-radius: var(--ci-radius);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.ci-stat i {
    color: var(--ci-yellow);
    font-size: 1.6rem;
}

.ci-stat strong {
    display: block;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--ci-white);
    line-height: 1.2;
    margin-top: 0.4rem;
}

.ci-stat span {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
}

@media (min-width: 768px) {
    .ci-stats__grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 767.98px) {
    .ci-stat:last-child {
        grid-column: 1 / -1;
    }
}

/* ---------- CTA ---------- */
.ci-cta {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background:
        radial-gradient(420px 260px at 100% 100%, rgba(255, 199, 0, 0.28), transparent 60%),
        linear-gradient(120deg, var(--ci-purple-deep), var(--ci-purple) 60%, var(--ci-purple-light));
    color: var(--ci-white);
}

.ci-cta h2 {
    color: var(--ci-white);
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 0.9rem;
}

.ci-cta p {
    color: rgba(255, 255, 255, 0.86);
    max-width: 720px;
    margin: 0 auto 1.75rem;
    font-size: 1.05rem;
}

.ci-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

@media (min-width: 992px) {
    .ci-cta {
        padding: 3.5rem;
    }
}

/* ---------- Contact ---------- */
.ci-contact-cards {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .ci-contact-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ci-contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem;
    border-radius: var(--ci-radius);
    background: var(--ci-white);
    border: 1px solid var(--ci-border);
    color: var(--ci-ink);
}

a.ci-contact-card:hover {
    border-color: var(--ci-purple);
    color: var(--ci-ink);
}

.ci-contact-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ci-purple), var(--ci-purple-light));
    color: var(--ci-white);
    font-size: 1.3rem;
}

.ci-contact-card small {
    display: block;
    color: var(--ci-muted);
    font-weight: 600;
}

.ci-contact-card strong {
    display: block;
    font-weight: 800;
    word-break: break-word;
}

.ci-ltr {
    direction: ltr;
    unicode-bidi: isolate;
}

/* ---------- Service detail ---------- */
.ci-detail {
    display: grid;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 992px) {
    .ci-detail {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 3rem;
    }

    .ci-detail__aside {
        position: sticky;
        top: 150px;
    }
}

.ci-checklist {
    display: grid;
    gap: 0.75rem;
}

.ci-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-radius: var(--ci-radius-sm);
    background: var(--ci-white);
    border: 1px solid var(--ci-border);
    font-weight: 700;
    color: var(--ci-ink);
}

.ci-checklist li i {
    color: var(--ci-white);
    background: var(--ci-purple);
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.ci-steps {
    display: grid;
    gap: 1rem;
    counter-reset: ci-step;
}

@media (min-width: 576px) {
    .ci-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ci-step {
    position: relative;
    padding: 1.25rem 1.25rem 1.25rem 1.25rem;
    border-radius: var(--ci-radius);
    background: var(--ci-purple-pale);
}

.ci-step::before {
    counter-increment: ci-step;
    content: counter(ci-step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ci-purple);
    color: var(--ci-white);
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.ci-step h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--ci-ink);
    margin-bottom: 0.25rem;
}

.ci-step p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ci-muted);
}

.ci-subtitle {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ci-ink);
    margin-bottom: 1rem;
}

/* ---------- Forms ---------- */
.ci-form-card {
    padding: 1.75rem;
    border-radius: 20px;
    background: var(--ci-white);
    border: 1px solid var(--ci-border);
    box-shadow: var(--ci-shadow-lg);
}

.ci-form-card h2,
.ci-form-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ci-ink);
    margin-bottom: 0.35rem;
}

.ci-form-card > p {
    color: var(--ci-muted);
    margin-bottom: 1.25rem;
}

.ci-form {
    display: grid;
    gap: 0.9rem;
}

.ci-form__row {
    display: grid;
    gap: 0.9rem;
}

@media (min-width: 576px) {
    .ci-form__row--2 {
        grid-template-columns: 1fr 1fr;
    }
}

.ci-field label {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--ci-ink);
    margin-bottom: 0.35rem;
}

.ci-field label small {
    font-weight: 600;
    color: var(--ci-muted);
}

.ci-field input,
.ci-field select,
.ci-field textarea {
    width: 100%;
    padding: 0.7rem 0.95rem;
    border: 1.5px solid var(--ci-border);
    border-radius: var(--ci-radius-sm);
    background: #fcfbfe;
    color: var(--ci-ink);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ci-field textarea {
    min-height: 120px;
    resize: vertical;
}

.ci-field input:focus,
.ci-field select:focus,
.ci-field textarea:focus {
    outline: none;
    border-color: var(--ci-purple);
    box-shadow: 0 0 0 4px rgba(106, 27, 154, 0.12);
    background: var(--ci-white);
}

.ci-field .is-invalid {
    border-color: #dc3545;
}

.ci-error {
    display: block;
    margin-top: 0.3rem;
    color: #dc3545;
    font-size: 0.82rem;
    font-weight: 600;
}

.ci-alert {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    border-radius: var(--ci-radius-sm);
    background: #e7f7ee;
    color: #146c43;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ---------- Footer ---------- */
.ci-footer {
    background: var(--ci-navy);
    color: rgba(255, 255, 255, 0.72);
    padding-top: 4rem;
}

.ci-footer__grid {
    display: grid;
    gap: 2rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .ci-footer__grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }
}

@media (min-width: 1200px) {
    .ci-footer__grid {
        grid-template-columns: 1.5fr 1fr 1.1fr 1.2fr;
    }
}

.ci-footer__logo img {
    display: block;
    width: auto;
    height: auto;
    max-height: 72px;
    max-width: 220px;
    margin-bottom: 1.25rem;
}

.ci-footer p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.92rem;
}

.ci-footer h4 {
    color: var(--ci-white);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.ci-footer ul {
    display: grid;
    gap: 0.55rem;
}

.ci-footer a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

.ci-footer a:hover {
    color: var(--ci-yellow);
}

.ci-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.92rem;
}

.ci-footer__contact i {
    color: var(--ci-yellow);
    margin-top: 0.15rem;
}

.ci-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.ci-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--ci-white);
    font-size: 1.05rem;
}

.ci-social a:hover {
    background: var(--ci-yellow);
    color: var(--ci-ink);
}

.ci-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
    padding-block: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

.ci-footer__bottom nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ==========================================================================
   Auth pages (sign in, register, password, verification)
   ========================================================================== */
.ci-auth [v-cloak],
.ci-auth-modal [v-cloak],
.ci-account [v-cloak] {
    display: none !important;
}

.ci-auth {
    position: relative;
    padding-block: 2.5rem 4rem;
    background:
        radial-gradient(600px 320px at 100% 0%, rgba(126, 63, 242, 0.12), transparent 60%),
        radial-gradient(500px 300px at 0% 100%, rgba(255, 199, 0, 0.12), transparent 60%),
        var(--ci-purple-pale);
}

.ci-auth__grid {
    display: grid;
    gap: 1.5rem;
    max-width: 1100px;
    margin-inline: auto;
    align-items: stretch;
}

.ci-auth__grid--wide {
    max-width: 1240px;
}

.ci-auth__aside {
    display: none;
}

@media (min-width: 992px) {
    .ci-auth {
        padding-block: 3.5rem 5rem;
    }

    .ci-auth__grid {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 2rem;
    }

    .ci-auth__grid--wide {
        grid-template-columns: 0.72fr 1.28fr;
    }

    .ci-auth__aside {
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        padding: 2.5rem;
        border-radius: 28px;
        color: var(--ci-white);
        background:
            radial-gradient(420px 260px at 100% 0%, rgba(255, 199, 0, 0.22), transparent 60%),
            radial-gradient(380px 300px at 0% 100%, rgba(126, 63, 242, 0.55), transparent 60%),
            linear-gradient(150deg, var(--ci-purple-darker), var(--ci-purple-deep) 55%, var(--ci-purple));
    }

    .ci-auth__aside::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
        background-size: 22px 22px;
        pointer-events: none;
    }

    .ci-auth__aside-inner {
        position: relative;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .ci-auth__grid--wide .ci-auth__aside {
        align-self: start;
        position: sticky;
        top: 150px;
    }
}

.ci-auth__aside-logo img {
    display: block;
    width: auto;
    height: auto;
    max-height: 64px;
    max-width: 220px;
    margin-bottom: 2.25rem;
}

.ci-auth__aside h2 {
    color: var(--ci-white);
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.9rem;
}

.ci-auth__aside p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    margin-bottom: 1.75rem;
}

.ci-auth__points {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.ci-auth__points li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: var(--ci-white);
}

.ci-auth__points li i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--ci-yellow);
    color: var(--ci-ink);
    font-size: 0.95rem;
}

.ci-auth__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: auto;
}

.ci-auth__stats div {
    padding: 0.9rem 0.6rem;
    border-radius: 16px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.ci-auth__stats strong {
    display: block;
    color: var(--ci-yellow);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.2;
}

.ci-auth__stats span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8rem;
    font-weight: 600;
}

.ci-auth__card {
    background: var(--ci-white);
    border: 1px solid var(--ci-border);
    border-radius: 24px;
    box-shadow: var(--ci-shadow-lg);
    padding: 1.75rem 1.25rem;
}

@media (min-width: 576px) {
    .ci-auth__card {
        padding: 2.25rem;
    }
}

@media (min-width: 992px) {
    .ci-auth__card {
        padding: 2.75rem;
    }
}

.ci-auth__head {
    margin-bottom: 1.75rem;
}

.ci-auth__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--ci-purple), var(--ci-purple-light));
    color: var(--ci-white);
    font-size: 1.5rem;
    margin-bottom: 1.1rem;
    box-shadow: 0 10px 22px rgba(106, 27, 154, 0.25);
}

.ci-auth__title {
    font-size: clamp(1.5rem, 2.6vw, 1.9rem);
    font-weight: 800;
    color: var(--ci-ink);
    margin-bottom: 0.4rem;
}

.ci-auth__text {
    color: var(--ci-muted);
    margin-bottom: 0;
}

.ci-auth__foot {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ci-border);
    text-align: center;
    color: var(--ci-muted);
    font-weight: 600;
}

.ci-auth__note {
    margin: 0.25rem 0 0;
    color: var(--ci-muted);
    font-size: 0.85rem;
    text-align: center;
}

.ci-link {
    color: var(--ci-purple);
    font-weight: 800;
}

.ci-link:hover {
    color: var(--ci-purple-deep);
    text-decoration: underline;
}

/* Segmented tabs (account type) */
.ci-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 1.75rem;
    border-radius: 999px;
    background: var(--ci-purple-pale);
    border: 1px solid var(--ci-border);
}

.ci-tabs a,
.ci-tabs button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 42px;
    padding: 0.4rem 0.75rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ci-muted);
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.2;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ci-tabs a:hover,
.ci-tabs button:hover {
    color: var(--ci-purple);
}

.ci-tabs .active {
    background: var(--ci-white);
    color: var(--ci-purple);
    box-shadow: 0 4px 12px rgba(74, 20, 140, 0.12);
}

@media (max-width: 420px) {
    .ci-tabs a i,
    .ci-tabs button i {
        display: none;
    }
}

/* Form helpers */
.ci-form-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--ci-ink);
}

.ci-form-section::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ci-border);
}

.ci-form__row--full {
    grid-column: 1 / -1;
}

.ci-field .ci-req {
    color: #dc3545;
}

.ci-pass {
    position: relative;
}

/* Physical sides: the input is dir="ltr" even on Arabic pages, while the
   toggle sits at the page's inline end. */
.ci-field .ci-pass input {
    padding-right: 3rem;
}

[dir="rtl"] .ci-field .ci-pass input {
    padding-right: 0.95rem;
    padding-left: 3rem;
}

.ci-pass__toggle {
    position: absolute;
    top: 50%;
    inset-inline-end: 0.4rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ci-muted);
    font-size: 1.1rem;
}

.ci-pass__toggle:hover {
    color: var(--ci-purple);
    background: var(--ci-purple-pale);
}

.ci-row-between {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
}

.ci-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--ci-text);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.ci-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--ci-purple);
}

.ci-alert--error {
    background: #fdecec;
    color: #b42318;
}

.ci-alert--info {
    background: var(--ci-purple-pale);
    color: var(--ci-purple-deep);
}

.ci-alert a {
    color: inherit;
    text-decoration: underline;
    font-weight: 800;
}

.ci-btn:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.ci-btn-lg {
    min-height: 52px;
    font-size: 1rem;
}

.ci-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid currentColor;
    border-inline-end-color: transparent;
    border-radius: 50%;
    animation: ci-spin 0.75s linear infinite;
}

.ci-spinner--lg {
    width: 42px;
    height: 42px;
    border-width: 4px;
    color: var(--ci-purple);
}

@keyframes ci-spin {
    to {
        transform: rotate(360deg);
    }
}

.ci-auth__status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0 0.5rem;
    text-align: center;
    color: var(--ci-text);
    font-weight: 600;
}

/* Login modal (cart) */
.ci-auth-modal .modal-content {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
}

.ci-auth-modal .modal-header {
    border: 0;
    padding: 1.5rem 1.5rem 0;
}

.ci-auth-modal .modal-body {
    padding: 1rem 1.5rem 1.5rem;
}

.ci-auth-modal .modal-title {
    font-weight: 800;
    color: var(--ci-ink);
}

/* ==========================================================================
   Customer account area (syaanah/layouts/buyer)
   ========================================================================== */
.ci-account {
    background: var(--ci-purple-pale);
    padding-bottom: 4rem;
    overflow-x: hidden;
    max-width: 100vw;
}

.ci-account__band {
    position: relative;
    overflow: hidden;
    padding-block: 2rem 4.5rem;
    color: var(--ci-white);
    background:
        radial-gradient(500px 260px at 90% 0%, rgba(255, 199, 0, 0.16), transparent 60%),
        linear-gradient(120deg, var(--ci-purple-darker), var(--ci-purple-deep) 55%, var(--ci-purple));
}

.ci-account__band::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}

.ci-account__band-inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.ci-account__who {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.ci-account__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 18px;
    background: var(--ci-yellow);
    color: var(--ci-ink);
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ci-account__role {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.75rem;
    margin-bottom: 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--ci-yellow);
    font-size: 0.78rem;
    font-weight: 800;
}

.ci-account__band h1 {
    margin: 0 0 0.2rem;
    color: var(--ci-white);
    font-size: clamp(1.3rem, 2.6vw, 1.75rem);
    font-weight: 800;
}

.ci-account__band p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.ci-account__band-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.ci-account__band-actions .ci-btn {
    min-height: 42px;
    padding-block: 0.45rem;
}

.ci-account__grid {
    position: relative;
    display: grid;
    gap: 1.5rem;
    margin-top: -2.75rem;
    align-items: start;
    min-width: 0;
    max-width: 100%;
}

@media (min-width: 992px) {
    .ci-account__grid {
        grid-template-columns: 270px minmax(0, 1fr);
    }

    .ci-account__nav {
        position: sticky;
        top: 150px;
    }

    .ci-account__nav-mobile-bar,
    .ci-account__nav-scroll {
        display: none !important;
    }

    .ci-account__nav-body {
        display: block !important;
    }
}

.ci-account__nav {
    padding: 1.1rem;
    background: var(--ci-white);
    border: 1px solid var(--ci-border);
    border-radius: 20px;
    box-shadow: var(--ci-shadow-lg);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.ci-account__main {
    min-width: 0;
    max-width: 100%;
    width: 100%;
}

.ci-account__nav h2 {
    margin: 0.9rem 0.6rem 0.35rem;
    color: var(--ci-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ci-account__nav h2:first-child {
    margin-top: 0.2rem;
}

.ci-account__nav ul {
    display: grid;
    gap: 2px;
}

.ci-account__nav a,
.ci-account__logout {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.75rem;
    border-radius: 12px;
    color: var(--ci-text);
    font-weight: 700;
    font-size: 0.92rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ci-account__nav a i,
.ci-account__logout i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 9px;
    background: var(--ci-purple-pale);
    color: var(--ci-purple);
    font-size: 1rem;
}

.ci-account__nav a:hover {
    background: var(--ci-purple-pale);
    color: var(--ci-purple);
}

.ci-account__nav a.active {
    background: var(--ci-purple);
    color: var(--ci-white);
}

.ci-account__nav a.active i {
    background: rgba(255, 255, 255, 0.16);
    color: var(--ci-yellow);
}

.ci-account__logout {
    margin-top: 0.75rem;
    border-top: 1px solid var(--ci-border);
    border-radius: 0 0 12px 12px;
    padding-top: 0.9rem;
    color: #c0392b;
}

.ci-account__logout i {
    background: #fdecec;
    color: #c0392b;
}

.ci-account__logout:hover {
    color: #a52a1f;
}

/* Mobile & Tablet Styles for Customer Account Area */
@media (max-width: 991.98px) {
    .ci-account__band {
        padding-block: 1.5rem 2.5rem;
    }

    .ci-account__band-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .ci-account__who {
        gap: 0.85rem;
    }

    .ci-account__avatar {
        width: 50px;
        height: 50px;
        font-size: 1.15rem;
        border-radius: 14px;
    }

    .ci-account__band h1 {
        font-size: 1.2rem;
        margin-bottom: 0.2rem;
    }

    .ci-account__band p {
        font-size: 0.82rem;
        line-height: 1.4;
    }

    .ci-account__band-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        width: 100%;
    }

    .ci-account__band-actions .ci-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.82rem;
        padding: 0.45rem 0.5rem;
    }

    .ci-account__grid {
        margin-top: -1.25rem;
        gap: 1rem;
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
    }

    .ci-account__nav {
        padding: 0.75rem;
        border-radius: 16px;
        box-shadow: 0 4px 18px rgba(74, 20, 140, 0.08);
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .ci-account__nav-mobile-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        margin-bottom: 0.55rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--ci-border);
    }

    .ci-account__nav-current {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        font-weight: 800;
        font-size: 0.85rem;
        color: var(--ci-purple);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ci-account__nav-current i {
        font-size: 0.95rem;
        flex-shrink: 0;
    }

    .ci-account__nav-toggle-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.3rem 0.7rem;
        border-radius: 999px;
        background: var(--ci-purple-pale);
        border: 1px solid rgba(106, 27, 154, 0.15);
        color: var(--ci-purple);
        font-weight: 700;
        font-size: 0.75rem;
        cursor: pointer;
        flex-shrink: 0;
        transition: background 0.2s ease, border-color 0.2s ease;
    }

    .ci-account__nav-toggle-btn .ci-arrow {
        font-size: 0.7rem;
        transition: transform 0.25s ease;
    }

    .ci-account__nav.is-open .ci-account__nav-toggle-btn .ci-arrow {
        transform: rotate(180deg);
    }

    .ci-account__nav.is-open .ci-account__nav-toggle-btn {
        background: var(--ci-purple);
        color: #fff;
    }

    .ci-account__nav-scroll {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-block: 2px 4px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .ci-account__nav-scroll::-webkit-scrollbar {
        display: none;
    }

    .ci-account__chip {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.32rem 0.75rem;
        border-radius: 999px;
        background: var(--ci-purple-pale);
        border: 1px solid var(--ci-border);
        color: var(--ci-text) !important;
        font-weight: 700;
        font-size: 0.8rem;
        text-decoration: none !important;
        flex-shrink: 0;
        transition: all 0.2s ease;
    }

    .ci-account__chip i {
        font-size: 0.85rem;
        color: var(--ci-purple);
    }

    .ci-account__chip:hover {
        background: #ece4f7;
        color: var(--ci-purple) !important;
    }

    .ci-account__chip.active {
        background: var(--ci-purple);
        border-color: var(--ci-purple);
        color: #fff !important;
        box-shadow: 0 4px 12px rgba(106, 27, 154, 0.25);
    }

    .ci-account__chip.active i {
        color: var(--ci-yellow);
    }

    .ci-account__nav-body {
        display: none;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px dashed var(--ci-border);
        animation: ciNavFade 0.2s ease forwards;
        width: 100%;
        max-width: 100%;
    }

    .ci-account__nav.is-open .ci-account__nav-body {
        display: block;
    }

    .ci-account__nav-body h2 {
        display: block;
        margin: 0.65rem 0.25rem 0.3rem;
        font-size: 0.7rem;
        color: var(--ci-muted);
        font-weight: 800;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .ci-account__nav-body ul {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.35rem;
        list-style: none;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .ci-account__nav-body a {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        padding: 0.4rem 0.55rem;
        border-radius: 10px;
        background: #faf8fc;
        border: 1px solid var(--ci-border);
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--ci-text);
        text-decoration: none !important;
    }

    .ci-account__nav-body a i {
        width: 24px;
        height: 24px;
        border-radius: 6px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    .ci-account__nav-body a.active {
        background: var(--ci-purple);
        border-color: var(--ci-purple);
        color: #fff;
    }

    .ci-account__nav-body a.active i {
        background: rgba(255, 255, 255, 0.18);
        color: var(--ci-yellow);
    }

    .ci-account__logout {
        border-radius: 10px;
        margin-top: 0.65rem;
        padding: 0.5rem 0.75rem;
        background: #fdecec;
        border: 1px solid #f9d6d6;
        color: #c0392b !important;
        font-weight: 700;
        font-size: 0.82rem;
        text-decoration: none !important;
        justify-content: center;
    }
}

@keyframes ciNavFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bootstrap components inside the account pages, in the brand palette. */
.ci-account__main .card {
    background: var(--ci-white);
    border: 1px solid var(--ci-border) !important;
    border-radius: 18px !important;
    box-shadow: 0 6px 24px rgba(74, 20, 140, 0.06) !important;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.ci-account__main .card-header {
    background: var(--ci-white) !important;
    border-bottom: 1px solid var(--ci-border) !important;
    padding: 1rem 1.25rem;
    color: var(--ci-ink);
    font-weight: 800;
}

.ci-account__main .table {
    margin-bottom: 0;
}

.ci-account__main .table th {
    background: #faf8fd;
    color: var(--ci-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid var(--ci-border);
    white-space: nowrap;
}

.ci-account__main .table td {
    vertical-align: middle;
    border-color: #f1ecf8;
}

.ci-account__main .btn {
    border-radius: 999px;
    font-weight: 700;
}

.ci-account__main .btn-primary {
    background: var(--ci-purple);
    border-color: var(--ci-purple);
    color: var(--ci-white);
}

.ci-account__main .btn-primary:hover {
    background: var(--ci-purple-deep);
    border-color: var(--ci-purple-deep);
}

.ci-account__main .btn-outline-primary {
    color: var(--ci-purple);
    border-color: var(--ci-purple);
}

.ci-account__main .btn-outline-primary:hover {
    background: var(--ci-purple);
    color: var(--ci-white);
}

.ci-account__main .btn-outline-secondary {
    border-color: var(--ci-border);
    color: var(--ci-text);
}

.ci-account__main .btn-outline-secondary:hover {
    background: var(--ci-purple-pale);
    color: var(--ci-purple);
}

.ci-account__main .form-control,
.ci-account__main .form-select {
    border-color: #ddd5ec;
    border-radius: 10px;
}

.ci-account__main .form-control:focus,
.ci-account__main .form-select:focus {
    border-color: var(--ci-purple-light);
    box-shadow: 0 0 0 0.2rem rgba(106, 27, 154, 0.15);
}

.ci-account__main .nav-pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: var(--ci-white);
    border: 1px solid var(--ci-border);
}

.ci-account__main .nav-pills .nav-link {
    border-radius: 999px;
    color: var(--ci-muted);
    font-weight: 700;
}

.ci-account__main .nav-pills .nav-link.active {
    background: var(--ci-purple);
    color: var(--ci-white);
}

.ci-account__main .badge {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.4em 0.8em;
}

.ci-account__main .page-item.active .page-link {
    background: var(--ci-purple);
    border-color: var(--ci-purple);
}

.ci-account__main .page-link {
    color: var(--ci-purple);
}

/* Customer dashboard: one order, grouped by store */
.ci-order {
    border: 1px solid var(--ci-border);
    border-radius: 14px;
    overflow: hidden;
}

.ci-order + .ci-order {
    margin-top: 0.85rem;
}

.ci-order__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #faf8fd;
    border-bottom: 1px solid var(--ci-border);
}

.ci-order__store {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--ci-ink);
    font-weight: 800;
}

.ci-order__store img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--ci-white);
}

.ci-order__item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    color: var(--ci-text);
}

.ci-order__item + .ci-order__item {
    border-top: 1px solid #f3eff9;
}

.ci-order__item img {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 12px;
    object-fit: cover;
    background: var(--ci-purple-pale);
}

.ci-order__name {
    flex: 1;
    min-width: 0;
    color: var(--ci-ink);
    font-weight: 700;
}

.ci-order__name small {
    display: block;
    color: var(--ci-muted);
    font-weight: 600;
}

.ci-order__total {
    color: var(--ci-purple);
    font-weight: 800;
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .ci-btn,
    .ci-service-card,
    .ci-product {
        transition: none;
    }

    .ci-spinner {
        animation-duration: 2s;
    }

    .ci-btn:hover,
    .ci-service-card:hover,
    .ci-product:hover {
        transform: none;
    }
}
