:root {
    --yaei-green: #15322D;
    --yaei-beige: #E3DDD0;
    --yaei-light-beige: #F5F2EC;
    --yaei-black: #0D0D0D;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #111;
    font-family: 'Cairo', sans-serif !important;
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Changed from center to allow normal scroll down */
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto; /* Global native scroll */
    margin: 0;
}

/* LTR Specific Adjustments */
html[dir="ltr"] body {
    font-family: 'Inter', sans-serif !important;
}

html[dir="rtl"] .script-subtitle {
    left: auto;
    right: 20%;
}

html[dir="ltr"] .script-subtitle {
    right: auto;
    left: 20%;
}

html[dir="rtl"] .arrow-dir {
    transform: rotate(0deg);
}

html[dir="ltr"] .arrow-dir {
    transform: rotate(180deg);
}

.wrapper {
    width: 100vw;
    min-height: 100vh;
    padding: 24px;
}

.main-container {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 48px);
    border-radius: 36px;
    background: url('./assets/hero-bg.png') center/cover no-repeat;
    background-attachment: fixed; /* Pin background so it doesnt scale terribly when scrolling */
    display: flex;
    flex-direction: column;
}

.main-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.4) 0%, rgba(21, 50, 45, 0.5) 100%);
    pointer-events: none;
    z-index: 1;
}

header,
#pages-container {
    position: relative;
    z-index: 10;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 60px;
    height: 120px;
}

.mobile-nav-toggle {
    display: none;
    font-size: 24px;
    color: var(--yaei-beige);
    cursor: pointer;
    z-index: 100;
}

/* Nav */
.nav-left {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.nav-btn {
    text-decoration: none;
    color: var(--yaei-beige);
    font-size: 13px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-btn.active {
    background: var(--white);
    color: var(--yaei-black);
}

.nav-btn:hover:not(.active) {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-grid {
    display: none;
}
.svg-logo { display: flex; }

.logo-grid span {
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 1px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text strong {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--white);
}

.logo-text span {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--yaei-beige);
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.nav-right {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--yaei-beige);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: var(--white);
}

.nav-cta i {
    font-size: 14px;
    margin-inline-start: 10px;
    transition: transform 0.3s ease;
}

.nav-cta:hover i {
    transform: translateX(calc(-5px * var(--dir-mult, 1)));
}

html[dir="ltr"] .nav-cta i {
    --dir-mult: -1;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: var(--white);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    display: flex;
    gap: 8px;
    backdrop-filter: blur(5px);
}

.lang-btn span {
    opacity: 0.5;
    transition: opacity 0.3s;
}

.lang-btn span.active {
    opacity: 1;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}


/* Pages Structure */
#pages-container {
    flex-grow: 1;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.page {
    width: 100%;
    flex-grow: 1;
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: 60px; /* Safe scroll margin */
}

.page.active {
    opacity: 1;
    visibility: visible;
    position: relative; /* When active, push the layout */
}

.page:not(.active) {
    position: absolute; /* When animating out, don't break layout width */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page.hidden {
    display: none;
}

/* Home specific */
#home {
    height: calc(100vh - 130px); /* Explicit height fixes Safari percentage calculation collapse */
}

.hero-typography {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 2;
}

.top-labels {
    width: 80%;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: -50px;
}

.huge-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 30vw;
    font-weight: 800;
    color: var(--yaei-light-beige);
    line-height: 0.75;
    letter-spacing: -0.05em;
    text-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.script-subtitle {
    font-family: 'Great Vibes', cursive !important;
    font-size: 13vw;
    font-weight: 400;
    color: var(--white);
    position: absolute;
    bottom: -15%;
    transform: rotate(-2deg);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.marker {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marker .dot {
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, var(--white) 30%, rgba(255, 255, 255, 0.3) 100%);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: pulse 2s infinite;
}

.marker .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent);
    margin-top: -2px;
}

.marker-1 {
    top: 55%;
    left: 28%;
}

.marker-2 {
    top: 72%;
    left: 70%;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Home Footer */
.home-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 60px 40px;
    z-index: 10;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 30px;
    width: 380px;
}

.info-card p {
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--yaei-beige);
}

.info-card span {
    color: var(--white);
    font-weight: 700;
    display: inline-block;
    width: 120px;
    margin-inline-end: 10px;
}

.social-circles {
    position: absolute;
    inset-inline-start: 60px;
    bottom: 40px;
    display: flex;
    gap: 15px;
}

.circle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.circle-btn:hover {
    background: var(--white);
    color: var(--yaei-black);
}

.bottom-texts {
    display: flex;
    gap: 60px;
    max-width: 600px;
}

.bottom-texts .col {
    font-size: 12px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* Inner Pages General */
.inner-page-content {
    padding: 20px 100px;
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    padding-bottom: 120px; /* Ensure content clears floating widgets entirely */
}

.section-title {
    font-size: 50px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--yaei-light-beige);
}

.divider {
    width: 80px;
    height: 4px;
    background-color: var(--yaei-beige);
    margin-bottom: 30px;
    border-radius: 2px;
}

/* About Overlay Page (Split Content) */
.content-split {
    flex-direction: row;
    justify-content: space-between;
    gap: 60px;
    align-items: center;
}

.content-split .text-content {
    flex: 1;
    max-width: 600px;
}

.content-split .image-content {
    flex: 1;
    height: 55vh;
    border-radius: 24px;
    background: url('assets/team_meeting.png') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.image-overlay-text {
    position: absolute;
    bottom: 30px;
    inset-inline-end: 30px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
}

.lead-text {
    font-size: 22px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--white);
}

.highlight-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    padding: 30px;
    border-inline-end: 4px solid var(--yaei-beige);
    border-radius: 12px;
    margin-bottom: 30px;
}

.highlight-box h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.highlight-box p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.vision-box h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--yaei-beige);
}

.vision-box p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 20px;
    padding-bottom: 50px;
}

.project-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-img {
    height: 300px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.project-info p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.view-project {
    color: var(--yaei-beige);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Services */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 20px;
    padding-bottom: 50px;
}

.service-item {
    display: flex;
    gap: 24px;
    background: rgba(255, 255, 255, 0.03);
    padding: 35px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s, transform 0.3s, border-color 0.3s;
    backdrop-filter: blur(10px);
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-icon {
    font-size: 34px;
    color: var(--yaei-beige);
    margin-top: 5px;
}

.service-text h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.service-text p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

/* Values */
.center-content {
    align-items: center;
    text-align: center;
    justify-content: center;
}

.center-block {
    margin-left: auto;
    margin-right: auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    width: 100%;
    margin-top: 40px;
    padding-bottom: 50px;
}

.value-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    padding: 40px 30px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.value-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.3);
}

.value-icon {
    font-size: 40px;
    color: var(--yaei-beige);
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
}

.value-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.value-card p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}


/* --- RESPONSIVE MOBILE --- */
@media (max-width: 1024px) {
    .huge-title {
        font-size: 24vw;
    }

    .script-subtitle {
        font-size: 12vw;
    }

    .content-split {
        flex-direction: column;
        text-align: start;
    }

    .highlight-box {
        border-inline-start: 4px solid var(--yaei-beige);
        border-inline-end: 0;
    }

    .bottom-texts {
        display: none;
    }
}

@media (max-width: 768px) {
    .wrapper {
        padding: 0;
    }

    .main-container {
        border-radius: 0;
        min-height: 100vh;
    }

    header {
        padding: 20px 25px;
        position: sticky;
        top: 0;
        z-index: 100;
        background: transparent; /* RESTORED: Removed black background */
        backdrop-filter: none;
    }

    /* Pages Container on mobile */
    #pages-container {
        height: auto;
    }

    .page {
        min-height: 100vh;
    }
    
    .page.hidden {
        display: none !important;
    }

    .nav-left {
        display: none;
    }

    /* Hide desktop nav */
    .mobile-nav-toggle {
        display: block;
    }

    /* Show Hamburger */
    .hidden-mobile {
        display: none !important;
    }

    .hero-typography {
        top: 35%; /* Lift the entire text block globally on mobile to prevent overlapping */
        position: absolute; /* Keep hero text absolute so background is pure */
    }

    .top-labels {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-bottom: 20px;
        width: 90%;
        text-align: center;
    }

    .label-left, .label-right {
        display: flex;
        justify-content: center;
    }

    .huge-title {
        font-size: 32vw; /* Make YAEI significantly visible without overlap */
        line-height: 0.8;
        margin-top: 10px;
    }

    .script-subtitle {
        font-size: 16vw;
        position: relative;
        transform: rotate(-3deg);
        margin-top: -15px;
        bottom: auto;
        right: auto;
        left: auto;
    }

    html[dir="ltr"] .script-subtitle {
        right: auto;
        left: auto;
    }

    .home-footer {
        padding: 0 30px 40px;
        flex-direction: column;
        align-items: stretch;
        position: relative; /* Restores flow */
        margin-top: 50vh; /* Pushes it down below hero */
    }

    .social-circles {
        position: relative;
        inset-inline-start: 0;
        bottom: 0;
        margin-top: 20px;
        justify-content: center;
    }

    .info-card {
        width: 100%;
        margin-bottom: 20px;
        padding: 20px;
    }

    .inner-page-content {
        padding: 30px 20px;
        padding-bottom: 150px !important; /* Force scroll space past WhatsApp widget & keyboard */
        min-height: max-content;
    }

    .section-title {
        font-size: 32px;
    }

    .lead-text {
        font-size: 16px;
    }

    .value-card {
        padding: 20px;
    }

    .content-split .image-content {
        height: 300px;
        width: 100%;
        border-radius: 12px;
    }
}

/* Mobile Nav Overlay */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(15px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px; /* Reduced gap significantly */
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav-menu.active {
    transform: translateY(0);
}

.mobile-nav-menu a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px; /* Reduced vertical padding */
    font-size: 24px;
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
    font-family: 'Cairo', sans-serif !important;
}

html[dir="ltr"] .mobile-nav-menu a {
    font-family: 'Inter', sans-serif !important;
}

.mobile-close {
    position: absolute;
    top: 30px;
    inset-inline-end: 30px;
    font-size: 30px;
    color: var(--white);
    cursor: pointer;
}

/* Mobile nav item entry animation (CSS-only for iOS touch compatibility) */
@keyframes mNavIn {
    from {
        opacity: 0;
        transform: translateY(25px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- CONTACT SECION & FORM --- */
.contact-details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    color: var(--yaei-beige);
}

.contact-line i {
    font-size: 20px;
    width: 25px;
    text-align: center;
}

.contact-line a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-line a:hover {
    color: var(--yaei-beige);
}

.form-container {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.form-container h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--white);
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding: 10px 0;
    font-size: 16px;
    color: var(--white);
    font-family: inherit;
    transition: border-color 0.3s;
    outline: none;
}

.form-input:focus {
    border-bottom-color: var(--white);
}

.form-label {
    position: absolute;
    inset-inline-start: 0;
    top: 10px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: 0.3s ease all;
}

.form-input:focus ~ .form-label,
.form-input:valid ~ .form-label {
    top: -15px;
    font-size: 12px;
    color: var(--yaei-beige);
}

.select-arrow {
    position: absolute;
    inset-inline-end: 10px;
    top: 15px;
    pointer-events: none;
    color: rgba(255, 255, 255, 0.5);
}

.form-input option {
    background: var(--yaei-green);
    color: var(--white);
}

.submit-btn {
    background: var(--white);
    color: var(--yaei-black);
    border: none;
    padding: 16px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
    justify-content: center;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.form-success {
    position: absolute;
    inset: 0;
    background: rgba(21, 50, 45, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    transition: opacity 0.5s, visibility 0.5s;
    opacity: 1;
    visibility: visible;
}

.form-success.hidden {
    opacity: 0;
    visibility: hidden;
}

.form-success i {
    font-size: 60px;
    color: var(--yaei-beige);
    margin-bottom: 20px;
}

.form-success h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.form-success p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* --- WHATSAPP FLOATING WIDGET --- */
.wa-widget {
    position: fixed;
    bottom: 30px;
    inset-inline-end: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: inherit;
    pointer-events: none; /* CRITICAL: Prevent invisible box from blocking clicks */
}

.wa-button-container {
    display: flex;
    align-items: center;
    gap: 15px;
    pointer-events: auto;
}

.wa-tooltip {
    background-color: #f8f9fa;
    color: #16322b;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.wa-widget:hover .wa-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.wa-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-end: -6px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-inline-start: 6px solid #f8f9fa;
}

.wa-button {
    width: 65px;
    height: 65px;
    background-color: #16322b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(22, 50, 43, 0.4);
    transition: transform 0.3s ease, background-color 0.3s ease;
    position: relative;
}

.wa-button:hover {
    transform: scale(1.05);
}

.wa-icon-default, .wa-icon-close {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.wa-icon-close.hidden, .wa-icon-default.hidden {
    opacity: 0;
    transform: rotate(90deg) scale(0);
    pointer-events: none;
}

.wa-box {
    width: 380px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-bottom: 20px;
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease, visibility 0.3s ease;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    border: 1px solid rgba(0,0,0,0.05);
    pointer-events: auto; /* Resume pointer events specifically here */
}

.wa-box.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8) translateY(20px);
}

.wa-header {
    background-color: #16322b;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.wa-header-text {
    flex: 1;
}

.wa-header-text h4 {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 800;
}

.wa-header-text p {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    line-height: 1.4;
}

.wa-header-icon {
    font-size: 40px;
    margin-inline-start: 15px;
}

.wa-body {
    padding: 20px;
    background-color: #ffffff;
}

.wa-reply-time {
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
    margin-top: 0;
}

.wa-member {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s ease;
    border-inline-start: 4px solid #25D366;
}

.wa-member:hover {
    background: #f1f1f1;
}

.wa-member-wa-icon {
    color: #25D366;
    font-size: 24px;
    margin-inline-end: 15px;
}

.wa-member-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wa-member-info strong {
    font-size: 16px;
    color: #16322b;
    margin-bottom: 3px;
    font-weight: 800;
}

.wa-member-info span {
    font-size: 13px;
    color: #888;
}

.wa-member-icon {
    width: 50px;
    height: 50px;
    background: #16322b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-footer-branding {
    text-align: center;
    padding: 10px;
    background: #fff;
    color: #ccc;
    font-size: 20px;
    border-top: 1px solid #eee;
}

@media (max-width: 480px) {
    .wa-box {
        width: calc(100vw - 40px);
        margin-inline-end: -10px;
    }
}