/* ===== icon-system.css ===== */
/* ========================================
   TeamKhoob — unified icon system
   Consistent shape, size & color across UI
   ======================================== */

.ui-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 16px;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.ui-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

.ui-icon i {
    position: relative;
    z-index: 1;
    line-height: 1;
}

/* Sizes */
.ui-icon--xs { width: 28px; height: 28px; border-radius: 9px; }
.ui-icon--xs i { font-size: 0.72rem; }

.ui-icon--sm { width: 38px; height: 38px; border-radius: 12px; }
.ui-icon--sm i { font-size: 0.95rem; }

.ui-icon--md { width: 46px; height: 46px; border-radius: 14px; }
.ui-icon--md i { font-size: 1.1rem; }

.ui-icon--lg { width: 54px; height: 54px; border-radius: 16px; }
.ui-icon--lg i { font-size: 1.25rem; }

.ui-icon--xl { width: 64px; height: 64px; border-radius: 18px; }
.ui-icon--xl i { font-size: 1.45rem; }

.ui-icon--2xl { width: 72px; height: 72px; border-radius: 20px; }
.ui-icon--2xl i { font-size: 1.65rem; }

/* Color variants — purple family + surprise accents */
.ui-icon--violet {
    background: linear-gradient(145deg, #7c3aed 0%, #9333ea 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.ui-icon--plum {
    background: linear-gradient(145deg, #6d28d9 0%, #a78bfa 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(109, 40, 217, 0.32);
}

.ui-icon--pink {
    background: linear-gradient(145deg, #db2777 0%, #f472b6 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(219, 39, 119, 0.28);
}

.ui-icon--coral {
    background: linear-gradient(145deg, #ea580c 0%, #fb923c 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(234, 88, 12, 0.28);
}

.ui-icon--mint {
    background: linear-gradient(145deg, #059669 0%, #34d399 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(5, 150, 105, 0.28);
}

.ui-icon--sky {
    background: linear-gradient(145deg, #4f46e5 0%, #818cf8 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(79, 70, 229, 0.28);
}

.ui-icon--amber {
    background: linear-gradient(145deg, #d97706 0%, #fbbf24 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(217, 119, 6, 0.28);
}

.ui-icon--soft {
    background: linear-gradient(180deg, #faf5ff 0%, #f3e8ff 100%);
    color: #7c3aed;
    border: 1px solid rgba(124, 58, 237, 0.14);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.08);
}

.ui-icon--glass {
    background: rgba(255, 255, 255, 0.85);
    color: #7c3aed;
    border: 1px solid rgba(124, 58, 237, 0.12);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(30, 11, 47, 0.06);
}

/* Hover lift on interactive cards */
a:hover .ui-icon,
.stat-card:hover .ui-icon,
.quick-nav__card:hover .ui-icon,
.package-card:hover .ui-icon,
.logo-marquee__item:hover .ui-icon {
    transform: translateY(-3px) scale(1.06);
}

/* Stat cards with icons */
body.page-home .stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 24px 24px !important;
    min-width: 180px;
    flex: 1;
}

body.page-home .stat-card .stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Quick nav icons */
.quick-nav__card .ui-icon {
    margin-bottom: 4px;
}

.quick-nav__card > i:not(.ui-icon) {
    display: none;
}

/* Package icon upgrade */
.package-icon {
    width: auto !important;
    height: auto !important;
    margin-bottom: 16px;
}

.package-icon .ui-icon {
    margin: 0 auto;
}

/* Section badge icon */
.section-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.section-badge .ui-icon {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    font-size: 0.65rem;
}

.section-badge .ui-icon i {
    font-size: 0.6rem;
}

/* How-it-works step icons */
.how-step__icon {
    margin-bottom: 14px;
}

/* Logo marquee */
.logo-marquee__item {
    gap: 12px !important;
    padding: 14px 22px !important;
}

.logo-marquee__item > i:not(.ui-icon i) {
    display: none;
}

.logo-marquee__item .ui-icon {
    transition: transform 0.3s ease;
    transform: none !important;
    opacity: 1 !important;
}

/* Feature pills & phone mockup icons inside ui-icon */
.feature-pill .ui-icon,
.phone-mockup__item .ui-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    margin-left: 8px;
}

.feature-pill .ui-icon i,
.phone-mockup__item .ui-icon i {
    font-size: 0.7rem;
}

/* Side reveal — initial state (GSAP animates in) */
[data-reveal-from],
.reveal-side-stagger > * {
    will-change: transform, opacity;
}

/* ---- Inner pages: service cards ---- */
.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.service-card > i:not(.ui-icon i) {
    display: none;
}

.service-card .ui-icon {
    margin-bottom: 4px;
}

/* Value cards */
.value-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.value-card > i:not(.ui-icon i) {
    display: none;
}

/* Contact methods */
.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-method > i:not(.ui-icon i) {
    display: none;
}

.contact-method .ui-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

/* About stats showcase */
.stats-showcase .stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    background: white;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius-md, 16px);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.06));
}

.stats-showcase .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.stats-showcase .stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--purple, #7c3aed);
}

/* Dashboard stat cards */
body.page-dashboard .stat-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

body.page-dashboard .stat-icon {
    display: none;
}

body.page-dashboard .stat-card > .ui-icon {
    margin-bottom: 14px;
}

body.page-dashboard .training-icon {
    display: none;
}

body.page-dashboard .training-card .ui-icon {
    margin-bottom: 16px;
}

body.page-dashboard .card-title > i:not(.ui-icon i) {
    display: none;
}

body.page-dashboard .card-title {
    gap: 12px;
}

body.page-dashboard .card-title .ui-icon {
    flex-shrink: 0;
}

body.page-dashboard .file-icon .ui-icon,
body.page-dashboard .file-icon > i {
    /* file icons rendered via JS — style in dashboard */
}

/* Page hero glass badge */
.page-hero__glass .section-badge {
    margin-bottom: 16px;
}

.page-hero__glass h1 > i:not(.ui-icon i) {
    display: none;
}

/* Filter pills */
.filter-buttons.reveal-side-stagger {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.filter-btn {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Team & blog cards get subtle icon area if added later */
.blog-card {
    overflow: hidden;
}

.contact-grid.reveal-side-stagger {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.stats-showcase .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted, #6b7280);
}

.milestones {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.milestone {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-info h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.contact-info h2 .ui-icon {
    flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
    .ui-icon {
        transition: none;
    }

    a:hover .ui-icon,
    .stat-card:hover .ui-icon {
        transform: none;
    }
}


/* ===== nav-enhanced.css ===== */
/* ========================================
   Enhanced navigation — clear, accessible
   ======================================== */

.header-wrap .header-container {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px 20px;
    padding: 10px 16px 10px 20px !important;
}

.header-wrap .logo h2 {
    font-size: 1.35rem;
    font-weight: 700;
}

.header-wrap .logo h2 span {
    color: var(--purple, #7c3aed);
}

.header-wrap .logo {
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.header-wrap .logo .logo-img {
    height: 46px;
    width: auto;
    border-radius: 10px;
    display: block;
}

/* Center nav pill cluster */
.primary-nav {
    justify-self: center;
    display: flex;
    align-items: center;
}

.nav-links-wrap {
    background: var(--bg-section, #f4f2f8);
    border: 1px solid var(--border, #e8e4ef);
    border-radius: var(--radius-full, 999px);
    padding: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    border-radius: var(--radius-full, 999px);
    text-decoration: none;
    color: var(--text-muted, #6b7280) !important;
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
}

.nav-link i {
    font-size: 0.82rem;
    opacity: 0.85;
    width: 16px;
    text-align: center;
}

.nav-link:hover {
    color: var(--text, #1e0b2f) !important;
    background: rgba(255, 255, 255, 0.7);
}

.nav-link.active {
    color: var(--purple, #7c3aed) !important;
    background: white !important;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.1);
}

.nav-link.active i {
    opacity: 1;
    color: var(--purple, #7c3aed);
}

/* Header actions (dashboard + CTA) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-full, 999px);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    transition: 0.2s ease;
    border: 1px solid rgba(124, 58, 237, 0.2);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(192, 132, 252, 0.06));
    color: var(--purple, #7c3aed) !important;
}

.header-action-btn:hover {
    background: var(--purple, #7c3aed);
    color: white !important;
    border-color: var(--purple, #7c3aed);
    transform: translateY(-1px);
}

.header-action-btn.is-active,
body.page-dashboard .header-action-btn--dashboard {
    background: var(--purple, #7c3aed);
    color: white !important;
    border-color: var(--purple, #7c3aed);
}

.header-wrap .consult-btn {
    padding: 10px 20px !important;
    font-size: 0.88rem !important;
    white-space: nowrap;
}

/* Mobile toggle */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border, #e8e4ef);
    border-radius: 12px;
    background: white;
    color: var(--purple, #7c3aed);
    cursor: pointer;
    font-size: 1.15rem;
    transition: 0.2s ease;
    flex-shrink: 0;
}

.mobile-menu-btn:hover {
    background: var(--purple-light, #f0e9ff);
}

.mobile-menu-btn.is-open {
    background: var(--purple, #7c3aed);
    color: white;
    border-color: var(--purple, #7c3aed);
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 10, 25, 0.45);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.is-visible {
    display: block;
    opacity: 1;
}

.nav-mobile-actions {
    display: none;
}

/* Hide old dashboard in nav list */
.nav-links .nav-link-dashboard {
    display: none !important;
}

/* Top bar — promo only, less clutter */
.top-bar-actions .top-bar-btn--dashboard {
    display: none;
}

.top-bar-btn {
    padding: 6px 16px !important;
    font-size: 0.8rem !important;
}

/* Sticky header shadow on scroll */
.header-wrap.is-scrolled .header {
    box-shadow: 0 8px 32px rgba(30, 11, 47, 0.1) !important;
}

/* ---- Tablet / mobile ---- */
@media (max-width: 1024px) {
    .nav-link span {
        font-size: 0.82rem;
    }

    .nav-link {
        padding: 9px 12px;
    }

    .header-action-btn span {
        display: none;
    }

    .header-action-btn {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
    }
}

.header-actions .header-user {
    margin: 0;
}

@media (max-width: 900px) {
    .header-actions .header-user span {
        display: none;
    }
}

@media (max-width: 768px) {
    .primary-nav .nav-links {
        display: flex !important;
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
    }
}

@media (max-width: 900px) {
    .header-wrap .header-container {
        grid-template-columns: 1fr auto auto;
    }

    .mobile-menu-btn {
        display: inline-flex;
        order: 2;
    }

    .header-actions {
        order: 3;
    }

    .header-wrap .logo {
        order: 1;
    }

    .primary-nav {
        order: 4;
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 88vw);
        height: 100vh;
        height: 100dvh;
        background: white;
        z-index: 999;
        flex-direction: column;
        align-items: stretch;
        padding: 80px 20px 24px;
        transform: translateX(100%);
        /* Hidden when closed so its white panel + box-shadow can't paint a
           sliver past the right edge (a fixed element escapes the page's
           overflow-x:clip). visibility is delayed so the slide-out still
           animates, then it stops rendering. */
        visibility: hidden;
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                    visibility 0s linear 0.35s;
        box-shadow: -8px 0 40px rgba(30, 11, 47, 0.15);
        overflow-y: auto;
        justify-self: auto;
    }

    .primary-nav.is-open {
        transform: translateX(0);
        visibility: visible;
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                    visibility 0s;
    }

    .nav-links-wrap {
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .nav-link {
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: 14px;
        border: 1px solid var(--border, #e8e4ef);
        background: var(--bg-section, #faf8fc);
    }

    .nav-link i {
        font-size: 1rem;
        width: 22px;
    }

    .nav-link.active {
        border-color: rgba(124, 58, 237, 0.25);
    }

    .nav-mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--border, #e8e4ef);
    }

    .nav-mobile-actions .header-action-btn {
        width: 100%;
        height: auto;
        padding: 14px 18px;
        justify-content: center;
    }

    .nav-mobile-actions .header-action-btn span {
        display: inline;
    }

    .nav-mobile-actions .consult-btn {
        width: 100%;
        padding: 14px !important;
        font-size: 1rem !important;
    }

    .header-wrap .header-actions .consult-btn {
        display: none;
    }

    .header-wrap .header-actions .header-action-btn--dashboard {
        display: none;
    }

body.nav-open {
        overflow: hidden;
    }

    body.nav-open .header-wrap {
        z-index: 1000;
    }
}

@media (max-width: 480px) {
    .header-wrap .logo h2 {
        font-size: 1.15rem;
    }

    .top-bar-text span {
        font-size: 0.72rem;
    }
}


/* ===== ux-enhancements.css ===== */
/* ========================================
   Site-wide UX enhancements
   ======================================== */

/* ---- Touch targets & interactive polish ---- */
.btn,
.btn-sm,
.consult-btn,
.top-bar-btn,
.filter-btn,
.carousel-btn,
.chat-toggle,
.floating-btn,
.dark-mode-toggle,
.mobile-menu-btn,
.header-action-btn {
    min-height: 44px;
}

.btn-sm,
.consult-btn {
    min-height: 44px;
    padding: 10px 20px !important;
}

.floating-options a {
    width: 48px;
    height: 48px;
}

.carousel-dots button,
.carousel-dot {
    min-width: 10px;
    min-height: 10px;
    padding: 6px;
    margin: 0 4px;
    cursor: pointer;
}

/* ---- Section rhythm ---- */
main > section,
main .container > section {
    scroll-margin-top: 100px;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}

.section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
}

/* ---- Cards: consistent hover & focus ---- */
.service-card,
.blog-card,
.portfolio-item,
.value-card,
.team-card,
.package-card,
.quick-nav__card,
.stat-card,
.testimonial-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover,
.blog-card:hover,
.value-card:hover,
.team-card:hover {
    transform: translateY(-4px);
}

.service-card:focus-within,
.blog-card:focus-within,
.portfolio-item:focus-within {
    outline: 2px solid rgba(124, 58, 237, 0.35);
    outline-offset: 3px;
}

/* ---- Unified CTA bands ---- */
.site-cta-band,
.cta-about,
.case-study,
.final-cta {
    margin: 64px auto;
    max-width: 1280px;
    padding: 48px 32px;
    border-radius: var(--radius-lg, 28px);
    text-align: center;
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: white;
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.25);
    position: relative;
    overflow: hidden;
}

.site-cta-band::before,
.cta-about::before,
.case-study::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12), transparent 50%);
    pointer-events: none;
}

.site-cta-band__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.site-cta-band h2,
.cta-about h2,
.case-study h2,
.final-cta h3 {
    color: white !important;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
    margin-bottom: 8px;
}

.site-cta-band p,
.cta-about p,
.case-study p,
.final-cta p {
    color: rgba(255, 255, 255, 0.88) !important;
    max-width: 520px;
    margin: 0 auto 8px;
    line-height: 1.65;
}

.site-cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.site-cta-band .btn {
    background: white !important;
    color: #7c3aed !important;
}

.site-cta-band .btn:hover {
    background: #f0e9ff !important;
    transform: translateY(-2px);
}

.site-cta-band .btn-outline {
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.85) !important;
    color: white !important;
}

.site-cta-band .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
}

.cta-about .btn,
.case-study .btn {
    background: white !important;
    color: #7c3aed !important;
    margin-top: 8px;
}

/* ---- Forms ---- */
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select,
.contact-form input,
.contact-form textarea,
.newsletter-input input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.newsletter-input input:focus {
    outline: none;
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.chat-input input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(124, 58, 237, 0.25);
}

/* ---- Modal accessibility ---- */
.modal {
    padding: 20px;
}

.modal[aria-hidden="false"] {
    display: flex !important;
}

body.modal-open {
    overflow: hidden;
}

.modal-content {
    max-width: 420px;
    width: 100%;
    border-radius: var(--radius-lg, 28px);
}

.modal-content .btn {
    min-width: 140px;
}

/* ---- Chat improvements ---- */
.chat-header {
    align-items: center;
    gap: 12px;
}

.chat-header__title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.chat-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.chat-close-btn:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.chat-input button {
    min-width: 48px;
    min-height: 48px;
}

/* ---- Floating widgets layout ---- */
.floating-cta {
    bottom: 88px;
    left: 20px;
}

.dark-mode-toggle {
    bottom: 20px !important;
    left: 20px !important;
    width: 52px !important;
    height: 52px !important;
    font-size: 20px !important;
}

.chat-widget {
    bottom: 20px;
    right: 20px;
}

/* ---- Blog layout (desktop) ---- */
@media (min-width: 1024px) {
    .container:has(> .blog-grid) {
        display: grid;
        grid-template-columns: 1fr 280px;
        gap: 36px;
        align-items: start;
    }

    .container:has(> .blog-grid) > .blog-grid {
        grid-column: 1;
    }

    .container:has(> .blog-grid) > .sidebar,
    .container:has(> .blog-grid) > .newsletter {
        grid-column: 2;
    }

    .container:has(> .blog-grid) > .sidebar {
        position: sticky;
        top: 100px;
    }

    .container:has(> .blog-grid) > .pagination {
        grid-column: 1;
    }
}

/* legacy class fallback */
@media (min-width: 1024px) {
    .blog-layout {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 40px;
        align-items: start;
    }

    .blog-layout .sidebar {
        position: sticky;
        top: 100px;
    }
}

/* ---- Services extras ---- */
.services-trust {
    padding: 48px 0 24px;
}

.services-trust__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.services-trust__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.services-trust__item i {
    color: var(--purple, #7c3aed);
}

/* ---- Portfolio overlay UX ---- */
.portfolio-item {
    cursor: pointer;
}

.portfolio-item .portfolio-overlay {
    transition: opacity 0.25s ease;
}

/* ---- Skip link ---- */
.skip-link {
    position: absolute;
    top: -100px;
    right: 16px;
    background: #7c3aed;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    z-index: 10000;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 16px;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .service-card:hover,
    .blog-card:hover,
    .value-card:hover,
    .team-card:hover {
        transform: none;
    }
}

@media (max-width: 768px) {
    .site-cta-band,
    .cta-about,
    .case-study {
        margin: 40px 16px;
        padding: 36px 24px;
    }

    .site-cta-band__actions {
        flex-direction: column;
        width: 100%;
    }

    .site-cta-band__actions .btn,
    .site-cta-band__actions .btn-outline {
        width: 100%;
    }

    .floating-cta {
        bottom: 80px;
        left: 16px;
    }

    .chat-box {
        width: min(320px, calc(100vw - 32px)) !important;
        right: 0 !important;
        left: auto !important;
    }
}


/* ===== main.css ===== */
/* ========================================
   TeamKhoob - Main Styles
   ======================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple: #7c3aed;
    --purple-dark: #4c1d95;
    --purple-light: #f0e9ff;
}

html {
    /* Guard the document itself against sideways scroll. `clip` (unlike
       `hidden`) does not create a scroll container, so the hero's
       position:sticky pin keeps working. Mirrored on body below. */
    overflow-x: clip;
}

html,
body {
    max-width: 100%;
}

body {
    font-family: 'Vazirmatn', system-ui, -apple-system, Segoe UI, sans-serif;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    color: #1e0b2f;
    line-height: 1.5;
    opacity: 0;
    transition: opacity 0.3s ease;
    /* Kill stray horizontal overflow (e.g. orbiting hero cards / bg orbs)
       without breaking the hero's position:sticky — `clip` (unlike `hidden`)
       does not create a scroll container. */
    overflow-x: clip;
}

body.loaded {
    opacity: 1;
}

:focus-visible {
    outline: 3px solid rgba(124, 58, 237, 0.45);
    outline-offset: 3px;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; }

.gradient-text {
    background: linear-gradient(135deg, #4c1d95, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    background: #7c3aed;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.btn:hover {
    background: #4c1d95;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #7c3aed;
    color: #7c3aed;
}

.btn-outline:hover {
    background: #7c3aed;
    color: white;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    gap: 20px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    font-size: 1.8rem;
    color: #7c3aed;
}

.logo h2 {
    font-size: 1.6rem;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #2d1b42;
    font-weight: 600;
    transition: 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #7c3aed;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #7c3aed;
}

/* Hero Section */
.hero {
    padding: 60px 0 40px;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
}

.hero-content p {
    font-size: 1.1rem;
    color: #4a5568;
    margin: 20px 0;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 48px;
    box-shadow: 0 25px 40px -14px rgba(0, 0, 0, 0.1);
}

/* Stats Section */
.stats {
    padding: 40px 0;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 20px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #7c3aed;
}

.stat-card span:last-child {
    font-size: 0.95rem;
    color: #4a5568;
}

/* Packages Section */
.packages {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header p {
    color: #6b7280;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.package-card {
    background: white;
    border-radius: 32px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(124, 58, 237, 0.1);
    position: relative;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 40px -14px rgba(124, 58, 237, 0.2);
    border-color: #7c3aed;
}

.package-card.featured {
    border: 2px solid #7c3aed;
    transform: scale(1.02);
}

.package-card .badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: white;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.package-icon {
    font-size: 2.5rem;
    color: #7c3aed;
    margin-bottom: 16px;
}

.package-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #7c3aed;
    margin: 16px 0;
}

.package-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: #6b7280;
}

.package-features {
    list-style: none;
    margin: 24px 0;
}

.package-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.package-features i {
    color: #10b981;
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

.view-all .btn-outline {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 32px;
    font-weight: 700;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 10px 26px rgba(124, 58, 237, 0.28);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease, background 0.3s ease;
}

.view-all .btn-outline:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(124, 58, 237, 0.42);
    background: linear-gradient(135deg, #8b4ff5 0%, #7c3aed 100%) !important;
    color: #fff !important;
}

.view-all .btn-outline i {
    transition: transform 0.3s ease;
}

.view-all .btn-outline:hover i {
    transform: translateX(-5px);
}

/* Testimonial */
.testimonial {
    padding: 40px 0;
}

.testimonial-card {
    background: white;
    border-radius: 32px;
    padding: 40px;
    text-align: center;
    border-right: 6px solid #7c3aed;
}

.testimonial-card i {
    font-size: 2.5rem;
    color: #7c3aed;
    opacity: 0.5;
    margin-bottom: 16px;
}

.testimonial-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.testimonial-author strong {
    display: block;
}

.testimonial-author span {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Final CTA */
.final-cta {
    padding: 60px 0;
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
    border-radius: 40px;
    margin: 40px 24px;
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-content h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.cta-content p {
    margin-bottom: 24px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-outline {
    border-color: white;
    color: white;
}

.cta-buttons .btn-outline:hover {
    background: white;
    color: #7c3aed;
}

/* Footer */
.footer {
    background: #1e0b2f;
    color: #a78bfa;
    padding: 48px 0 24px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(167, 139, 250, 0.2);
}

.footer-logo h3 {
    color: white;
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #a78bfa;
    text-decoration: none;
    transition: 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: #a78bfa;
    font-size: 1.3rem;
    transition: 0.2s;
}

.footer-social a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ===== components.css ===== */
/* ========================================
   TeamKhoob - Components
   ======================================== */

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 100px;
    left: 20px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-btn {
    background: #7c3aed;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
    transition: all 0.2s;
}

.floating-btn:hover {
    transform: scale(1.05);
}

.floating-btn i {
    font-size: 26px;
    color: white;
}

.floating-options {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.floating-options a {
    background: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: 0.2s;
}

.floating-options a:hover {
    transform: scale(1.1);
}

.floating-options .call { color: #7c3aed; border: 1px solid #7c3aed; }
.floating-options .whatsapp { color: #25D366; border: 1px solid #25D366; }
.floating-options .instagram { color: #E4405F; border: 1px solid #E4405F; }

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 200;
}

.chat-toggle {
    background: #7c3aed;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.chat-toggle i {
    font-size: 26px;
    color: white;
}

.chat-box {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

body.page-home .chat-box[hidden] {
    display: none !important;
}

.chat-header {
    background: #7c3aed;
    padding: 14px 16px;
    color: white;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.chat-header i {
    cursor: pointer;
}

.chat-messages {
    height: 280px;
    overflow-y: auto;
    padding: 12px;
    background: #fefcff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bot-msg, .user-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.bot-msg {
    background: #f0e9ff;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.user-msg {
    background: #7c3aed;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.chat-input {
    display: flex;
    border-top: 1px solid #eee;
}

.chat-input input {
    flex: 1;
    border: none;
    padding: 12px;
    outline: none;
    font-family: inherit;
}

.chat-input button {
    background: #7c3aed;
    border: none;
    color: white;
    padding: 0 16px;
    cursor: pointer;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    max-width: 380px;
    border-radius: 40px;
    padding: 40px;
    text-align: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content i {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 16px;
}

.modal-content h3 {
    margin-bottom: 8px;
}

.modal-content p {
    color: #6b7280;
    margin-bottom: 24px;
}

/* Consultation request form (step 1 of the consult modal) */
.consult-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: right;
    margin-top: 18px;
}

.consult-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.consult-field input,
.consult-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    font: inherit;
    font-weight: 400;
    color: #1e0b2f;
    background: #fff;
    resize: vertical;
}

.consult-field input:focus,
.consult-field textarea:focus {
    outline: none;
    border-color: var(--purple, #7c3aed);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.consult-form .btn {
    width: 100%;
    margin-top: 4px;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: white;
    border-radius: 60px;
    padding: 12px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 300;
    border-right: 4px solid #7c3aed;
    animation: slideIn 0.4s ease;
    font-size: 0.85rem;
    max-width: 280px;
}

@keyframes slideIn {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-notification i {
    font-size: 1.3rem;
    color: #10b981;
}

.close-toast {
    cursor: pointer;
    color: #999;
}

/* ===== responsive.css ===== */
/* ========================================
   TeamKhoob - Responsive Styles
   ======================================== */

/* Tablet — legacy nav overridden by nav-enhanced.css */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .package-card.featured {
        transform: none;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .final-cta {
        margin: 40px 16px;
        border-radius: 32px;
    }
    
    .cta-content h3 {
        font-size: 1.4rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .testimonial-card {
        padding: 24px;
    }
    
    .testimonial-card p {
        font-size: 1rem;
    }
    
    .chat-box {
        width: min(320px, calc(100vw - 32px));
        right: 0;
    }
    
    .floating-cta {
        bottom: 80px;
        left: 12px;
    }
    
    .toast-notification {
        right: 12px;
        left: 12px;
        max-width: calc(100% - 24px);
    }
}

/* Print */
@media print {
    .floating-cta, .chat-widget, .final-cta {
        display: none;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== cinematic.css ===== */
/* ========================================
   TeamKhoob - Cinematic Experience Styles
   ======================================== */

/* Fullscreen hero sections */
body.cinematic .hero,
body.cinematic .services-hero,
body.cinematic .about-hero,
body.cinematic .portfolio-hero,
body.cinematic .contact-hero,
body.cinematic .blog-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 90px;
    position: relative;
    overflow: hidden;
}

/* Layered background for depth */
.cinematic-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.cinematic-bg::before {
    content: "";
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 12% 30%, rgba(124, 58, 237, 0.25), transparent 46%),
        radial-gradient(circle at 82% 22%, rgba(76, 29, 149, 0.18), transparent 42%),
        radial-gradient(circle at 62% 86%, rgba(124, 58, 237, 0.16), transparent 44%);
    filter: blur(12px);
    opacity: 0.9;
}

.parallax-layer {
    position: absolute;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.55), rgba(76, 29, 149, 0.08));
    filter: blur(26px);
    opacity: 0.25;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.cinematic-hero .parallax-layer.layer-1 {
    width: 420px;
    height: 420px;
    left: -120px;
    top: 18%;
}

.cinematic-hero .parallax-layer.layer-2 {
    width: 520px;
    height: 520px;
    right: -180px;
    top: 8%;
    opacity: 0.18;
}

.cinematic-hero .parallax-layer.layer-3 {
    width: 620px;
    height: 620px;
    left: 20%;
    bottom: -380px;
    opacity: 0.14;
}

.cinematic-hero .container {
    position: relative;
    z-index: 1;
}

/* Premium minimal typography */
body.cinematic {
    letter-spacing: 0.01em;
}

body.cinematic h1,
body.cinematic h2,
body.cinematic h3 {
    letter-spacing: -0.01em;
}

/* Scroll reveals (GSAP will animate to final state) */
[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    will-change: transform, opacity;
}

/* Image expansion target */
.cinematic-expand {
    transform-origin: center;
    will-change: transform, filter;
}

/* Subtle hover behavior */
.cinematic-hover {
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}


/* Reduce motion accessibility */
@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 768px) {
    body.cinematic .hero,
    body.cinematic .services-hero,
    body.cinematic .about-hero,
    body.cinematic .portfolio-hero,
    body.cinematic .contact-hero,
    body.cinematic .blog-hero {
        padding: 110px 0 70px;
    }
}



/* ===== page-backgrounds.css ===== */
/* ========================================
   Per-page animated backgrounds
   Each page gets a themed ambient layer
   ======================================== */

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.page-bg__base {
    position: absolute;
    inset: 0;
    transition: background 0.8s ease;
}

/* Shared floating shapes */
.page-bg__orb,
.page-bg__shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(64px);
    will-change: transform;
}

/* ========== Dynamic mesh & ambient layers ========== */

.page-bg__mesh {
    position: absolute;
    inset: -20%;
    --mesh-x: 30%;
    --mesh-y: 70%;
    background:
        radial-gradient(ellipse 55% 45% at var(--mesh-x) var(--mesh-y), rgba(124, 58, 237, 0.14), transparent 65%),
        radial-gradient(ellipse 50% 40% at calc(100% - var(--mesh-x)) calc(100% - var(--mesh-y)), rgba(192, 132, 252, 0.1), transparent 60%);
    animation: meshDrift 28s ease-in-out infinite alternate;
    will-change: transform, background;
}

.page-bg__grain {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    pointer-events: none;
}

.page-bg__blob {
    position: absolute;
    border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
    filter: blur(48px);
    will-change: transform;
    animation: blobMorph 22s ease-in-out infinite;
}

@keyframes meshDrift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-2%, 1.5%) scale(1.03); }
    100% { transform: translate(1.5%, -1%) scale(1.01); }
}

@keyframes blobMorph {
    0%, 100% { border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; }
    33% { border-radius: 55% 45% 40% 60% / 45% 55% 45% 55%; }
    66% { border-radius: 45% 55% 60% 40% / 55% 40% 50% 50%; }
}

/* Hide icon glyphs — replaced by abstract shapes */
.page-bg__glyph {
    display: none !important;
}

@keyframes orbPulse {
    0%, 100% { opacity: 0.28; }
    50% { opacity: 0.4; }
}

@keyframes gridShift {
    0% { background-position: 0 0; }
    100% { background-position: 48px 48px; }
}

@keyframes waveMove {
    0% { transform: translateX(0) scaleY(1); }
    50% { transform: translateX(-4%) scaleY(1.04); }
    100% { transform: translateX(0) scaleY(1); }
}

@keyframes dotConnect {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.35; }
}

/* Hide all themed layers by default */
.page-bg [class*="page-bg--"] {
    display: none;
}

/* ========== HOME (Instagram / growth) ========== */
body.page-home {
    --page-accent: #7c3aed;
}

body.page-home .page-bg__base {
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(124, 58, 237, 0.1), transparent),
        radial-gradient(ellipse 70% 50% at 80% 70%, rgba(192, 132, 252, 0.12), transparent),
        linear-gradient(160deg, #faf5ff 0%, #f3e8ff 50%, #ede9fe 100%);
}

body.page-home .page-bg--home {
    display: block;
}

.page-bg--home .page-bg__orb--1 {
    width: 420px;
    height: 420px;
    left: -10%;
    top: 10%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.35), transparent 70%);
    animation: orbPulse 18s ease-in-out infinite;
}

.page-bg--home .page-bg__orb--2 {
    width: 500px;
    height: 500px;
    right: -12%;
    bottom: 5%;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.3), transparent 72%);
    animation: orbPulse 22s ease-in-out infinite 2s;
}

.page-bg--home .page-bg__orb--3 {
    width: 280px;
    height: 280px;
    left: 40%;
    top: 55%;
    background: radial-gradient(circle, rgba(76, 29, 149, 0.2), transparent 70%);
    animation: orbPulse 20s ease-in-out infinite 4s;
}

.page-bg--home .page-bg__blob--1 {
    width: 320px;
    height: 280px;
    right: 18%;
    top: 28%;
    background: rgba(167, 139, 250, 0.22);
    animation-delay: -3s;
}

.page-bg--home .page-bg__blob--2 {
    width: 240px;
    height: 260px;
    left: 12%;
    bottom: 22%;
    background: rgba(124, 58, 237, 0.18);
    animation-delay: -8s;
}

/* ========== SERVICES ========== */
body.page-services {
    --page-accent: #7c3aed;
}

body.page-services .page-bg__base {
    background: linear-gradient(145deg, #f5f0ff 0%, #ede9fe 40%, #e9d5ff 100%);
}

body.page-services .page-bg--services {
    display: block;
}

.page-bg--services .page-bg__orb--1 {
    width: 380px;
    height: 380px;
    left: 5%;
    top: 15%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.35), transparent);
    animation: orbPulse 16s infinite;
}

.page-bg--services .page-bg__orb--2 {
    width: 440px;
    height: 440px;
    right: 0;
    bottom: 10%;
    background: radial-gradient(circle, rgba(76, 29, 149, 0.28), transparent);
    animation: orbPulse 20s infinite 3s;
}

.page-bg--services .page-bg__wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 180px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.06), transparent);
    animation: waveMove 12s ease-in-out infinite;
}

.page-bg--services .page-bg__blob--1 {
    width: 260px;
    height: 240px;
    right: 10%;
    top: 30%;
    background: rgba(124, 58, 237, 0.2);
}

.page-bg--services .page-bg__blob--2 {
    width: 200px;
    height: 220px;
    left: 20%;
    bottom: 25%;
    background: rgba(192, 132, 252, 0.16);
    animation-delay: -6s;
}

/* ========== PORTFOLIO ========== */
body.page-portfolio {
    --page-accent: #a78bfa;
}

body.page-portfolio .page-bg__base {
    background: linear-gradient(165deg, #1e0b2f 0%, #2d1b42 35%, #1a0a28 100%);
}

body.page-portfolio .page-bg--portfolio {
    display: block;
}

.page-bg--portfolio .page-bg__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(167, 139, 250, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167, 139, 250, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: gridShift 24s linear infinite;
    opacity: 0.6;
}

.page-bg--portfolio .page-bg__orb--1 {
    width: 360px;
    height: 360px;
    left: 20%;
    top: 8%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.25), transparent);
    animation: orbPulse 15s infinite;
}

.page-bg--portfolio .page-bg__orb--2 {
    width: 300px;
    height: 300px;
    right: 10%;
    bottom: 20%;
    background: radial-gradient(circle, rgba(225, 48, 108, 0.15), transparent);
    animation: orbPulse 17s infinite 2s;
}

.page-bg--portfolio .page-bg__blob--1 {
    width: 300px;
    height: 280px;
    left: 15%;
    top: 40%;
    background: rgba(124, 58, 237, 0.15);
}

.page-bg--portfolio .page-bg__blob--2 {
    width: 220px;
    height: 240px;
    right: 12%;
    bottom: 30%;
    background: rgba(167, 139, 250, 0.12);
    animation-delay: -5s;
}

/* Portfolio page: dark cinematic area */
body.page-portfolio .portfolio-hero,
body.page-portfolio .filter-buttons,
body.page-portfolio .portfolio-grid,
body.page-portfolio .case-study {
    position: relative;
    z-index: 1;
}

body.page-portfolio .portfolio-hero {
    background: transparent;
    color: #faf5ff;
}

body.page-portfolio .portfolio-hero h1,
body.page-portfolio .portfolio-hero p {
    color: inherit;
}

body.page-portfolio .filter-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(167, 139, 250, 0.3);
    color: #e9d5ff;
}

body.page-portfolio .filter-btn.active,
body.page-portfolio .filter-btn:hover {
    background: #7c3aed;
    color: white;
}

body.page-portfolio .portfolio-item {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(167, 139, 250, 0.15);
}

body.page-portfolio .portfolio-info h3,
body.page-portfolio .portfolio-info p {
    color: #f3e8ff;
}

/* ========== ABOUT ========== */
body.page-about {
    --page-accent: #6d28d9;
}

body.page-about .page-bg__base {
    background: linear-gradient(135deg, #faf5ff 0%, #f0e9ff 50%, #ede9fe 100%);
}

body.page-about .page-bg--about {
    display: block;
}

.page-bg--about .page-bg__network {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.08) 2px, transparent 2px),
        radial-gradient(circle at 60% 70%, rgba(124, 58, 237, 0.06) 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(109, 40, 217, 0.07) 2px, transparent 2px);
    background-size: 120px 120px, 160px 160px, 140px 140px;
    animation: dotConnect 8s ease-in-out infinite;
}

.page-bg--about .page-bg__orb--1 {
    width: 400px;
    height: 400px;
    left: -5%;
    bottom: 10%;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.3), transparent);
    animation: orbPulse 16s infinite;
}

.page-bg--about .page-bg__orb--2 {
    width: 350px;
    height: 350px;
    right: 5%;
    top: 12%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.25), transparent);
    animation: orbPulse 14s infinite 4s;
}

.page-bg--about .page-bg__blob--1 {
    width: 280px;
    height: 260px;
    right: 8%;
    top: 35%;
    background: rgba(109, 40, 217, 0.18);
}

.page-bg--about .page-bg__blob--2 {
    width: 220px;
    height: 200px;
    left: 10%;
    bottom: 28%;
    background: rgba(124, 58, 237, 0.14);
    animation-delay: -7s;
}

/* ========== CONTACT ========== */
body.page-contact {
    --page-accent: #25d366;
}

body.page-contact .page-bg__base {
    background: linear-gradient(160deg, #f0fdf4 0%, #faf5ff 45%, #ede9fe 100%);
}

body.page-contact .page-bg--contact {
    display: block;
}

.page-bg--contact .page-bg__orb--1 {
    width: 380px;
    height: 380px;
    left: 10%;
    top: 5%;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.2), transparent);
    animation: orbPulse 15s infinite;
}

.page-bg--contact .page-bg__orb--2 {
    width: 420px;
    height: 420px;
    right: -5%;
    bottom: 15%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.22), transparent);
    animation: orbPulse 18s infinite 2s;
}

.page-bg--contact .page-bg__ring {
    position: absolute;
    border: 1px solid rgba(37, 211, 102, 0.15);
    border-radius: 50%;
    animation: ringExpand 4s ease-out infinite;
}

.page-bg--contact .page-bg__ring--1 {
    width: 200px;
    height: 200px;
    left: 25%;
    top: 40%;
}

.page-bg--contact .page-bg__ring--2 {
    width: 280px;
    height: 280px;
    right: 20%;
    top: 25%;
    animation-delay: 1.5s;
}

@keyframes ringExpand {
    0% { transform: scale(0.85); opacity: 0.4; }
    100% { transform: scale(1.4); opacity: 0; }
}

.page-bg--contact .page-bg__blob--1 {
    width: 260px;
    height: 240px;
    left: 15%;
    top: 42%;
    background: rgba(124, 58, 237, 0.16);
}

.page-bg--contact .page-bg__blob--2 {
    width: 200px;
    height: 210px;
    right: 18%;
    top: 38%;
    background: rgba(37, 211, 102, 0.1);
    animation-delay: -4s;
}

/* ========== BLOG ========== */
body.page-blog {
    --page-accent: #4c1d95;
}

body.page-blog .page-bg__base {
    background: linear-gradient(180deg, #f8fafc 0%, #f3e8ff 60%, #ede9fe 100%);
}

body.page-blog .page-bg--blog {
    display: block;
}

.page-bg--blog .page-bg__lines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -12deg,
        transparent,
        transparent 80px,
        rgba(76, 29, 149, 0.03) 80px,
        rgba(76, 29, 149, 0.03) 81px
    );
    animation: gridShift 30s linear infinite;
}

.page-bg--blog .page-bg__orb--1 {
    width: 360px;
    height: 360px;
    right: 8%;
    top: 10%;
    background: radial-gradient(circle, rgba(76, 29, 149, 0.2), transparent);
    animation: orbPulse 17s infinite;
}

.page-bg--blog .page-bg__blob--1 {
    width: 260px;
    height: 250px;
    left: 6%;
    top: 30%;
    background: rgba(76, 29, 149, 0.14);
}

.page-bg--blog .page-bg__blob--2 {
    width: 200px;
    height: 220px;
    right: 10%;
    bottom: 22%;
    background: rgba(124, 58, 237, 0.12);
    animation-delay: -6s;
}

/* ========== Page hero (glass) on inner pages ========== */
.page-hero {
    position: relative;
    z-index: 1;
    padding: 120px 0 72px;
    text-align: center;
    margin-bottom: 0;
}

.page-hero .container {
    position: relative;
}

.page-hero__glass {
    display: inline-block;
    padding: 40px 48px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 24px 48px -16px rgba(30, 11, 47, 0.12);
    max-width: 720px;
}

body.page-portfolio .page-hero__glass {
    background: rgba(30, 11, 47, 0.55);
    border-color: rgba(167, 139, 250, 0.25);
    color: #faf5ff;
}

body.page-portfolio .page-hero__glass p {
    color: #c4b5fd;
}

.page-hero h1 {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 1.05rem;
    color: #6b7280;
    margin: 0;
}

/* Keep content above animated background */
body[class*="page-"]:not(.page-home) main,
body[class*="page-"]:not(.page-home) .footer {
    position: relative;
    z-index: 1;
}

body.page-services .service-card,
body.page-about .story-section,
body.page-about .values-section,
body.page-about .team-card,
body.page-contact .contact-info,
body.page-contact .contact-form,
body.page-blog .blog-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
}

/* Page enter animation */
body.cinematic.page-enter main,
body.cinematic.page-enter .header {
    animation: pageContentIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes pageContentIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-bg__orb,
    .page-bg__blob,
    .page-bg__mesh,
    .page-bg__grid,
    .page-bg__wave,
    .page-bg__ring,
    .page-bg__lines,
    .page-bg__network {
        animation: none !important;
    }
}


/* ===== propertygpt-theme.css ===== */
/* ========================================
   TeamKhoob — PropertyGPT-inspired Design System
   ======================================== */


:root {
    --purple: #7c3aed;
    --purple-dark: #4c1d95;
    --purple-light: #f0e9ff;
    --purple-100: #e9d5ff;
    --purple-200: #c084fc;
    --blue: var(--purple);
    --blue-dark: var(--purple-dark);
    --blue-light: var(--purple-light);
    --blue-100: var(--purple-100);
    --blue-200: var(--purple-200);
    --bg: #fcfcfd;
    --bg-section: #f4f5f7;
    --bg-card: #ffffff;
    --text: #1a1a1c;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --border: rgba(0, 0, 0, 0.06);
    --border-strong: rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(124, 58, 237, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.06);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-full: 999px;
}

/* ---- Base ---- */
body {
    background: var(--bg) !important;
    color: var(--text);
}

:focus-visible {
    outline: 3px solid rgba(124, 58, 237, 0.45);
    outline-offset: 3px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--purple-dark), var(--purple), var(--purple-200));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---- Top announcement bar ---- */
.top-bar {
    background: var(--blue);
    color: white;
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: 500;
    position: relative;
    z-index: 110;
}

.top-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.top-bar-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.top-bar-btn--dashboard {
    background: white;
    color: var(--purple, #7c3aed);
    border-color: white;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-bar-btn--dashboard:hover {
    background: rgba(255, 255, 255, 0.92);
    color: var(--purple-dark, #4c1d95);
}

.nav-link-dashboard {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(192, 132, 252, 0.08)) !important;
    color: var(--purple, #7c3aed) !important;
    font-weight: 600 !important;
    border: 1px solid rgba(124, 58, 237, 0.18);
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}

.nav-link-dashboard:hover,
.nav-link-dashboard.active {
    background: var(--purple, #7c3aed) !important;
    color: white !important;
    border-color: var(--purple, #7c3aed);
}

.nav-link-dashboard i {
    font-size: 0.85em;
}

.top-bar-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s;
}

.top-bar-btn:hover { background: rgba(255,255,255,0.25); }

/* ---- Floating pill header ---- */
.header-wrap {
    position: sticky;
    top: 12px;
    z-index: 100;
    padding: 0 20px;
    margin-bottom: 4px;
}

.header {
    max-width: 1280px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(20px);
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-full) !important;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border) !important;
}

.header-container {
    padding: 10px 12px 10px 20px !important;
}

.logo i { color: var(--blue) !important; }

.logo h2 span,
.nav-links a:hover,
.nav-links a.active {
    color: var(--blue) !important;
}

.nav-links a {
    color: var(--text-muted) !important;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--blue-light);
}

.mobile-menu-btn { color: var(--blue) !important; }

/* ---- Buttons ---- */
.btn {
    background: var(--blue) !important;
    border-radius: var(--radius-full);
    transition: all 0.25s ease;
}

.btn:hover {
    background: var(--blue-dark) !important;
    transform: scale(1.02);
}

.btn.btn-outline {
    background: transparent !important;
    border: 2px solid var(--purple) !important;
    color: var(--purple) !important;
    box-shadow: none;
}

.btn.btn-outline:hover {
    background: var(--purple) !important;
    color: white !important;
    border-color: var(--purple) !important;
}

.btn-outline {
    border-color: var(--blue) !important;
    color: var(--blue) !important;
    border-radius: var(--radius-full);
}

.btn-outline:hover {
    background: var(--blue) !important;
    color: white !important;
}

/* ---- Section badges ---- */
.section-badge {
    display: inline-block;
    background: var(--blue-light);
    color: var(--blue);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-header p { color: var(--text-muted); }

body.page-home .stats-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

body.page-home .stat-number {
    display: block;
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--purple) !important;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

body.page-home .stat-card,
.how-step,
.quick-nav__card,
.package-card,
.testimonial-card,
.service-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm);
}

body.page-home .stat-card:hover,
.quick-nav__card:hover,
.package-card:hover {
    box-shadow: var(--shadow-md) !important;
    border-color: var(--blue-100) !important;
}

.quick-nav__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.quick-nav__card i:not(.ui-icon i) {
    display: none !important;
}

.quick-nav__card:hover { border-color: var(--blue) !important; }

.how-step__num {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark)) !important;
}

.package-card.featured {
    border: 2px solid var(--blue) !important;
}

.package-icon,
.package-price { color: var(--blue) !important; }

.package-card:hover { border-color: var(--blue) !important; }

/* ---- Final CTA ---- */
.final-cta {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark)) !important;
    border-radius: var(--radius-lg) !important;
}

/* ---- Footer (enhanced) ---- */
.footer.site-footer {
    position: relative;
    background: linear-gradient(180deg, #18181b 0%, #0f0f12 100%) !important;
    color: #a1a1aa !important;
    margin-top: 48px;
    padding: 0 0 28px !important;
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(720px, 90%);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.8), rgba(192, 132, 252, 0.6), transparent);
    box-shadow: 0 0 48px 8px rgba(124, 58, 237, 0.25);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding: 56px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand .footer-logo h3 {
    color: white !important;
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.footer-brand .footer-logo h3 span {
    color: var(--purple, #7c3aed);
}

.footer-logo h3 .footer-logo-img {
    height: 32px;
    width: auto;
    border-radius: 7px;
    vertical-align: middle;
    margin-inline-end: 8px;
}

.footer-brand .footer-logo p {
    color: #71717a;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 280px;
    margin: 0 0 20px;
}

.footer-col h4 {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #a1a1aa !important;
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.25s ease, transform 0.25s ease;
    display: inline-block;
}

.footer-col a:hover {
    color: white !important;
    transform: translateX(-3px);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a1a1aa !important;
    font-size: 1.1rem;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.footer-social a:hover {
    background: rgba(124, 58, 237, 0.2) !important;
    border-color: rgba(124, 58, 237, 0.4);
    color: white !important;
    transform: translateY(-2px);
}

.footer-cta-col p {
    color: #71717a;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 16px;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: white !important;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}

.footer-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.45);
    color: white !important;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 24px !important;
    font-size: 0.85rem;
    opacity: 1 !important;
}

.footer-bottom p {
    color: #52525b;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom-links a {
    color: #71717a !important;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: #a1a1aa !important;
}

.footer-dot {
    color: #3f3f46;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        padding-top: 44px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Legacy footer overrides */
.footer {
    background: var(--text) !important;
    color: #a1a1aa !important;
    margin-top: 40px;
}

.footer-logo h3 { color: white !important; }
.footer-links a { color: #a1a1aa !important; }
.footer-links a:hover { color: white !important; }
.footer-social a { color: #a1a1aa !important; }
.footer-social a:hover { color: var(--blue-200) !important; }

/* ---- Page backgrounds (light blue) ---- */
body.page-home .page-bg__base {
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(124, 58, 237, 0.08), transparent),
        radial-gradient(ellipse 70% 50% at 80% 70%, rgba(192, 132, 252, 0.1), transparent),
        var(--bg) !important;
}

body.page-services .page-bg__base,
body.page-about .page-bg__base,
body.page-blog .page-bg__base,
body.page-contact .page-bg__base {
    background: var(--bg) !important;
}

body.page-portfolio .page-bg__base {
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 58, 237, 0.1), transparent),
        var(--bg) !important;
}

body.page-portfolio .portfolio-hero,
body.page-portfolio .portfolio-hero h1,
body.page-portfolio .portfolio-hero p {
    color: var(--text) !important;
}

body.page-portfolio .page-hero__glass {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

body.page-portfolio .page-hero__glass p { color: var(--text-muted) !important; }

body.page-portfolio .portfolio-item {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
}

body.page-portfolio .portfolio-info h3 { color: var(--text) !important; }
body.page-portfolio .portfolio-info p { color: var(--text-muted) !important; }

body.page-portfolio .filter-btn {
    background: white !important;
    border-color: var(--border) !important;
    color: var(--text-muted) !important;
}

body.page-portfolio .filter-btn.active,
body.page-portfolio .filter-btn:hover {
    background: var(--blue) !important;
    color: white !important;
}

body.page-portfolio .portfolio-stats span {
    background: var(--blue-light) !important;
    color: var(--blue) !important;
}

.page-hero__glass {
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-md) !important;
}

.testimonials-track,
.showcase-track {
    direction: ltr;
}

.testimonial-slide,
.showcase-card {
    direction: rtl;
}
.logo-marquee {
    padding: 48px 0 56px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.logo-marquee__head {
    text-align: center;
    margin-bottom: 28px;
    padding: 0 24px;
}

.logo-marquee__head p {
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.logo-marquee__viewport {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.logo-marquee::before,
.logo-marquee::after {
    display: none;
}

.logo-marquee__track {
    display: flex;
    gap: 20px;
    animation: marqueeScroll 35s linear infinite;
    width: max-content;
    padding: 4px 0;
}

.logo-marquee__track:hover {
    animation-play-state: paused;
}

.logo-marquee__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px 12px 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text);
    flex-shrink: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.logo-marquee__item i {
    display: none;
}

.logo-marquee__item .ui-icon {
    flex-shrink: 0;
    transform: none !important;
    opacity: 1 !important;
}

.logo-marquee__item:hover {
    border-color: var(--blue-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- Testimonials carousel ---- */
.testimonials-section {
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.testimonials-carousel {
    overflow: hidden;
    direction: ltr;
    -webkit-mask-image: linear-gradient(to left, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to left, transparent, black 8%, black 92%, transparent);
}

@keyframes testimonials-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.testimonials-track {
    display: flex;
    width: max-content;
    animation: testimonials-scroll 45s linear infinite;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

.testimonial-slide {
    flex-shrink: 0;
    width: 340px;
    margin-right: 24px;
    direction: rtl;
}

@media (max-width: 480px) {
    .testimonial-slide {
        width: 280px;
    }
}

.testimonial-card {
    background: white !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    border-right: 1px solid var(--border) !important;
    padding: 28px !important;
    text-align: right !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 16px;
}

.testimonial-stars i {
    color: var(--blue) !important;
    font-size: 0.85rem !important;
    opacity: 1 !important;
}

.testimonial-card > i.fa-quote-right { display: none; }

.testimonial-card p {
    flex: 1;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    color: var(--text-muted) !important;
    margin-bottom: 20px !important;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-light), var(--blue-200));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--blue);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text);
}

.testimonial-author span {
    font-size: 0.8rem !important;
    color: var(--text-light) !important;
}


/* ---- Portfolio showcase carousel ---- */
.showcase-carousel {
    position: relative;
    z-index: 1;
    padding: 20px 0 60px;
}

.showcase-carousel__header {
    text-align: center;
    margin-bottom: 32px;
}

.showcase-track-wrap {
    overflow: hidden;
    margin: 0 -12px;
}

.showcase-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 12px;
}

.showcase-card {
    min-width: min(340px, 85vw);
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    opacity: 0.52;
    transform: scale(0.88);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.showcase-card.is-active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 20px 48px rgba(124, 58, 237, 0.2);
}

.showcase-card:hover {
    box-shadow: var(--shadow-lg);
}

.showcase-track--instant,
.showcase-track--instant .showcase-card {
    transition: none !important;
}

.showcase-card__img {
    height: 200px;
    overflow: hidden;
}

.showcase-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.showcase-card:hover .showcase-card__img img {
    transform: scale(1.05);
}

/* Real client logos — fit the whole mark on a clean white field */
.showcase-card__img--logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 24px 24px 8px;
}

.showcase-card__img--logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.showcase-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    padding-top: 6px;
}

.showcase-card__body h4 {
    margin: 0;
}

/* Instagram follower count under a client name */
.ig-followers {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #6b7280;
}

.ig-followers i {
    color: #E1306C;
    font-size: 1.05rem;
}

/* Branded gradient placeholders (no external images — always load instantly) */
.showcase-card__img--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6d28d9 0%, #a78bfa 100%);
}

.showcase-card__img--ph i {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.95);
    transition: transform 0.4s ease;
}

.showcase-card:hover .showcase-card__img--ph i {
    transform: scale(1.1);
}

.showcase-track .showcase-card:nth-of-type(2) .showcase-card__img--ph {
    background: linear-gradient(135deg, #7c3aed 0%, #c4b5fd 100%);
}

.showcase-track .showcase-card:nth-of-type(3) .showcase-card__img--ph {
    background: linear-gradient(135deg, #5b21b6 0%, #9b6cf0 100%);
}

.showcase-track .showcase-card:nth-of-type(4) .showcase-card__img--ph {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
}

.showcase-track .showcase-card:nth-of-type(5) .showcase-card__img--ph {
    background: linear-gradient(135deg, #6d28d9 0%, #b79df0 100%);
}

.showcase-card__body {
    padding: 20px;
}

.showcase-card__body h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.showcase-card__stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.showcase-card__stats span {
    background: var(--blue-light);
    color: var(--blue);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.showcase-card__body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---- Showcase carousel controls ---- */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.carousel-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--purple);
    background: #fff;
    border: 1.5px solid rgba(124, 58, 237, 0.25);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.12);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease,
        border-color 0.3s ease;
}

.carousel-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.4);
    transform: translateY(-3px) scale(1.06);
}

.carousel-btn:active {
    transform: translateY(-1px) scale(1.0);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.3);
}

.carousel-btn:focus-visible {
    outline: 3px solid rgba(124, 58, 237, 0.35);
    outline-offset: 3px;
}

/* Nudge the chevron in its travel direction on hover */
.carousel-btn i {
    transition: transform 0.3s ease;
}

.carousel-btn--next:hover i {
    transform: translateX(-3px);
}

.carousel-btn--prev:hover i {
    transform: translateX(3px);
}

/* ---- Showcase "view all" pill ---- */
.showcase-view-all {
    text-align: center;
    margin-top: 28px;
}

.showcase-view-all .btn-outline {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 32px;
    font-weight: 700;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 10px 26px rgba(124, 58, 237, 0.28);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease;
}

.showcase-view-all .btn-outline:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(124, 58, 237, 0.42);
    background: linear-gradient(135deg, #8b4ff5 0%, #7c3aed 100%) !important;
    color: #fff !important;
}

.showcase-view-all .btn-outline i {
    transition: transform 0.3s ease;
}

.showcase-view-all .btn-outline:hover i {
    transform: translateX(-5px);
}

body.dark-mode .carousel-btn {
    background: rgba(30, 27, 53, 0.9);
    border-color: rgba(167, 139, 250, 0.35);
    color: #c4b5fd;
}

body.dark-mode .carousel-btn:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
}

/* ---- Dark statement section (PropertyGPT style) ---- */
.statement-section {
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.statement-card {
    max-width: 1280px;
    margin: 0 auto;
    background: var(--text);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
}

.statement-card h2 {
    color: white;
    font-weight: 300;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    line-height: 1.45;
    max-width: 960px;
    margin: 0 auto;
}

.statement-card h2 span {
    color: var(--purple-200);
    font-weight: 600;
}

/* ---- Header user badge (dashboard) ---- */
.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-section);
    padding: 6px 8px 6px 16px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.header-user span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--purple), var(--purple-200));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
}

/* ---- Components overrides ---- */
.floating-btn,
.chat-toggle,
.dark-mode-toggle {
    background: var(--blue) !important;
}

.floating-options .call { color: var(--blue) !important; border-color: var(--blue) !important; }

.chat-header,
.chat-input button,
.user-msg { background: var(--blue) !important; }

.bot-msg { background: var(--blue-light) !important; }

.toast-notification { border-right-color: var(--blue) !important; }

.modal-content { border-radius: var(--radius-lg) !important; }

.back-to-top { background: var(--blue) !important; }

/* ---- Video hero blue tint ---- */
.video-hero__orb--1 {
    background: radial-gradient(circle, rgba(124, 58, 237, 0.7), transparent 70%) !important;
}

.video-hero__orb--2 {
    background: radial-gradient(circle, rgba(192, 132, 252, 0.6), transparent 70%) !important;
}

/* ---- How it works cards (PropertyGPT steps style) ---- */
.how-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: 0.3s;
}

.how-step__num {
    margin-top: 4px;
}

.how-step:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .header-wrap { top: 8px; padding: 0 12px; }
    .header { border-radius: var(--radius-md) !important; }
    .top-bar-actions { display: flex; gap: 6px; }
    .top-bar-text span { display: none; }
    .top-bar-btn:not(.top-bar-btn--dashboard) { display: none; }
    .statement-card { padding: 40px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .logo-marquee__track { animation: none; }
    .testimonials-track,
    .showcase-track,
    .showcase-card { transition: none; }
}


/* ===== dark-mode.css ===== */
:root {
    --dark-bg-primary: #0f172a;
    --dark-bg-secondary: #1e293b;
    --dark-card: #1e293b;
    --dark-text-primary: #f8fafc;
    --dark-text-secondary: #cbd5e1;
}

/* Floating Toggle Button */
.dark-mode-toggle {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: #7c3aed;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    transition: all .3s ease;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
}

/* Dark Mode */
body.dark-mode {
    background: var(--dark-bg-primary) !important;
    color: var(--dark-text-primary) !important;
}

/* Header */
body.dark-mode .header {
    background: var(--dark-bg-secondary) !important;
}

/* Cards */
body.dark-mode .package-card,
body.dark-mode .testimonial-card,
body.dark-mode .quick-nav__card,
body.dark-mode .how-step,
body.dark-mode .stat-card,
body.dark-mode .service-card,
body.dark-mode .blog-card,
body.dark-mode .portfolio-item,
body.dark-mode .value-card,
body.dark-mode .team-card,
body.dark-mode .page-hero__glass,
body.dark-mode .chat-box,
body.dark-mode .modal-content {
    background: var(--dark-card) !important;
    color: var(--dark-text-primary) !important;
    border-color: rgba(255,255,255,.1);
}

/* Footer */
body.dark-mode .footer {
    background: #020617 !important;
    color: var(--dark-text-primary) !important;
}

/* Links */
body.dark-mode a {
    color: var(--dark-text-primary);
}

/* Text */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode p,
body.dark-mode span,
body.dark-mode li {
    color: var(--dark-text-primary);
}

/* Inputs */
body.dark-mode input,
body.dark-mode textarea {
    background: #334155;
    color: white;
    border-color: #475569;
}

/* Background override */
body.dark-mode .page-bg__base {
    background: linear-gradient(
        135deg,
        #020617 0%,
        #0f172a 50%,
        #1e1b4b 100%
    ) !important;
}

/* ===== portal-login.css ===== */
/* In-page login modal — matches TeamKhoob UI */
.portal-login-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(15, 5, 25, 0.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.portal-login-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.portal-login-modal {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(124, 58, 237, 0.14);
    border-radius: 24px;
    padding: 32px 28px 28px;
    box-shadow: 0 24px 60px rgba(124, 58, 237, 0.18);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.portal-login-overlay.is-open .portal-login-modal {
    transform: translateY(0) scale(1);
}

.portal-login-modal__close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.08);
    color: #64748b;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.portal-login-modal__close:hover {
    background: rgba(124, 58, 237, 0.15);
    color: #7c3aed;
}

.portal-login-modal__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e0b2f;
    margin-bottom: 20px;
}

.portal-login-modal__brand i {
    color: #7c3aed;
    font-size: 1.3rem;
}

.portal-login-modal__brand span {
    color: #7c3aed;
}

.portal-login-modal__tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    padding: 4px;
    background: rgba(124, 58, 237, 0.06);
    border-radius: 12px;
}

.portal-login-modal__tab {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.portal-login-modal__tab.is-active {
    background: #fff;
    color: #7c3aed;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.12);
}

.portal-login-modal__optional {
    font-weight: 500;
    color: #94a3b8;
    font-size: 0.78rem;
}

.portal-login-modal__packages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.portal-login-modal__pkg {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid rgba(124, 58, 237, 0.16);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-size: 0.82rem;
}

.portal-login-modal__pkg input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.portal-login-modal__pkg span {
    font-weight: 700;
    color: #1e0b2f;
}

.portal-login-modal__pkg small {
    color: #64748b;
    font-size: 0.72rem;
}

.portal-login-modal__pkg:has(input:checked) {
    border-color: #7c3aed;
    background: rgba(124, 58, 237, 0.08);
}

.portal-login-modal__pkg.is-featured {
    border-color: rgba(124, 58, 237, 0.35);
}

.portal-login-modal h2 {
    font-size: 1.15rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 6px;
    color: #1e0b2f;
}

.portal-login-modal__sub {
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 22px;
    line-height: 1.6;
}

.portal-login-modal__field {
    margin-bottom: 14px;
}

.portal-login-modal__field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.portal-login-modal__input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(124, 58, 237, 0.18);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.92rem;
    background: #fff;
    color: #1e0b2f;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.portal-login-modal__input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.portal-login-modal__error {
    display: none;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 14px;
    text-align: center;
}

.portal-login-modal__error.is-visible {
    display: block;
}

.portal-login-modal__submit {
    width: 100%;
    padding: 13px;
    margin-top: 6px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.portal-login-modal__submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.4);
}

.portal-login-modal__submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

.portal-login-modal__hint {
    margin-top: 16px;
    padding: 10px 12px;
    background: rgba(124, 58, 237, 0.06);
    border: 1px dashed rgba(124, 58, 237, 0.18);
    border-radius: 10px;
    font-size: 0.78rem;
    color: #6b7280;
    text-align: center;
    line-height: 1.6;
}

.portal-login-modal__hint strong {
    color: #7c3aed;
}

/* Header auth button states */
.header-action-btn--portal[data-auth-state="login"] {
    background: transparent !important;
    border: 2px solid var(--purple, #7c3aed) !important;
    color: var(--purple, #7c3aed) !important;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}

.header-action-btn--portal[data-auth-state="login"]:hover {
    background: var(--purple, #7c3aed) !important;
    color: white !important;
}

.header-action-btn--portal[data-auth-state="dashboard"] {
    /* uses existing dashboard styles */
}

body.dark-mode .portal-login-modal {
    background: rgba(30, 41, 59, 0.98);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .portal-login-modal h2,
body.dark-mode .portal-login-modal__brand {
    color: #f8fafc;
}

body.dark-mode .portal-login-modal__input {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

body.dark-mode .portal-login-modal__tabs {
    background: rgba(255, 255, 255, 0.06);
}

body.dark-mode .portal-login-modal__tab.is-active {
    background: rgba(124, 58, 237, 0.25);
    color: #e9d5ff;
}


/* ===== scroll-reveal.css ===== */
/* ========================================
   PropertyGPT-style scroll reveal & features
   ======================================== */

/* Initial hidden state (GSAP will animate in) */
.pgpt-reveal,
[data-pgpt-reveal] {
    will-change: transform, opacity;
}

.pgpt-reveal-stagger > * {
    will-change: transform, opacity;
}

/* Split text statement */
.statement-card h2.split-reveal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35em 0.45em;
    text-align: center;
}

.split-word {
    display: inline-block;
    opacity: 0.2;
    color: rgba(255, 255, 255, 0.3);
    transition: none;
    will-change: opacity, color;
}

.split-word.is-highlight {
    color: rgba(192, 132, 252, 0.2);
}

.split-word.revealed {
    opacity: 1;
    color: #ffffff;
}

.split-word.is-highlight.revealed {
    color: var(--purple-200);
    font-weight: 600;
}

/* Features bento grid */
.features-bento {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.features-bento__wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.features-bento__header {
    text-align: center;
    margin-bottom: 48px;
}

.features-bento__header h2 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    margin-top: 8px;
}

.features-bento__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
}

.feature-bento-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.feature-bento-card--large {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    min-height: 520px;
    overflow: visible;
}

.feature-bento-card__visual {
    flex: 1;
    position: relative;
    overflow: visible;
    background: linear-gradient(180deg, var(--purple-light) 0%, rgba(240, 233, 255, 0.3) 100%);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 28px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.feature-bento-card--large .feature-bento-card__visual {
    min-height: 360px;
}

/* Phone mockup */
.phone-mockup {
    width: 210px;
    background: #1a1a1c;
    border-radius: 32px;
    padding: 12px;
    box-shadow: 0 24px 48px rgba(124, 58, 237, 0.2);
    transform: rotate(-2deg);
    transition: transform 0.4s ease;
    flex-shrink: 0;
}

.feature-bento-card--large:hover .phone-mockup {
    transform: rotate(0deg) scale(1.02);
}

.phone-mockup__screen {
    background: #0f0f10;
    border-radius: 24px;
    padding: 16px 12px;
    min-height: 280px;
    overflow: hidden;
}

.phone-mockup__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    overflow: visible;
}

.phone-mockup__header span {
    direction: ltr;
    unicode-bidi: isolate;
    white-space: nowrap;
}

.phone-mockup__header i { color: var(--purple); }

.phone-mockup__search {
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 12px;
}

.phone-mockup__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.phone-mockup__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.7);
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
}

.phone-mockup__item i {
    color: var(--purple);
    font-size: 0.6rem;
}

.phone-mockup__btn {
    background: var(--purple);
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Pills visual */
.feature-pills-visual {
    background: linear-gradient(135deg, var(--purple-light), #ede9fe);
    border-radius: 16px;
    padding: 28px 20px;
    min-height: 180px;
    position: relative;
    overflow: hidden;
    margin: 20px 20px 0;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
    position: absolute;
    white-space: nowrap;
}

.feature-pill i { color: var(--purple); font-size: 0.7rem; }

.feature-pill--1 { top: 20%; right: 10%; transform: rotate(3deg); }
.feature-pill--2 { top: 45%; left: 8%; transform: rotate(-2deg); }
.feature-pill--3 { bottom: 25%; right: 15%; transform: rotate(1deg); }
.feature-pill--4 { bottom: 15%; left: 12%; transform: rotate(-3deg); }

/* Folders visual */
.feature-folders-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 180px;
    margin: 20px 20px 0;
    position: relative;
}

.feature-folder {
    width: 120px;
    padding: 16px 12px;
    border-radius: 16px;
    color: white;
    text-align: center;
    position: relative;
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    transition: transform 0.3s ease;
}

.feature-folder--1 {
    background: linear-gradient(135deg, #c084fc, var(--purple));
    transform: rotate(-12deg) translateX(20px);
    z-index: 1;
}

.feature-folder--2 {
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    transform: rotate(0deg);
    z-index: 2;
}

.feature-folder--3 {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    transform: rotate(12deg) translateX(-20px);
    z-index: 1;
}

.feature-bento-card:hover .feature-folder--1 { transform: rotate(-8deg) translateX(24px) translateY(-4px); }
.feature-bento-card:hover .feature-folder--2 { transform: translateY(-8px); }
.feature-bento-card:hover .feature-folder--3 { transform: rotate(8deg) translateX(-24px) translateY(-4px); }

.feature-folder__icon { font-size: 1.2rem; margin-bottom: 6px; }
.feature-folder__title { font-size: 0.75rem; font-weight: 700; }
.feature-folder__sub { font-size: 0.6rem; opacity: 0.8; margin-top: 4px; }

.feature-bento-card__body {
    padding: 24px 28px 28px;
}

.feature-bento-card--large .feature-bento-card__body {
    padding: 28px;
    background: white;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    border: 1px solid var(--border);
    border-top: none;
}

.feature-bento-card__body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-bento-card__body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* Section header reveal */
.section-header .section-badge,
.section-header h2,
.section-header p {
    will-change: transform, opacity;
}

@media (max-width: 900px) {
    .features-bento__grid {
        grid-template-columns: 1fr;
    }

    .feature-bento-card--large {
        grid-row: span 1;
        min-height: auto;
    }

    .phone-mockup {
        width: 170px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .split-word {
        opacity: 1 !important;
        color: #ffffff !important;
    }

    .split-word.is-highlight {
        color: var(--purple-200) !important;
    }
}
