/* =========================================
   POTO HERO — MOBILE STABLE SHADOW
========================================= */

@media (max-width: 639px) {

    .poto-hero .poto-machine-stage::after {
        display: block !important;

        width: 58%;
        height: 18px;

        filter: none !important;

        background:
            radial-gradient(
                ellipse at center,
                rgba(35, 37, 40, 0.34) 0%,
                rgba(35, 37, 40, 0.16) 48%,
                rgba(35, 37, 40, 0) 78%
            );
    }

}
/* =========================================
   POTO HEADER — MATCH FA WITH EN
   MOBILE / TABLET ONLY
========================================= */

@media (max-width: 1024px) {

    html[lang="fa-IR"] .poto-header .poto-header-inner {
        direction: ltr !important;
        flex-direction: row-reverse !important;
    }

}
/* =========================================
   ENGLISH HOME HERO — MOBILE EXACT CENTER
   Page ID: 532
========================================= */

@media (max-width: 639px) {

    /* Main copy column */
    html[lang="en-US"]
    body.page-id-532
    .poto-hero
    .poto-hero-copy {
        direction: ltr !important;

        width: 100% !important;
        max-width: 100% !important;

        padding-left: 0 !important;
        padding-right: 0 !important;

        align-items: center !important;
        text-align: center !important;
    }


    /* Eyebrow */
    html[lang="en-US"]
    body.page-id-532
    .poto-hero
    .poto-hero-badge {
        direction: ltr !important;

        width: max-content !important;

        align-self: center !important;

        margin-left: auto !important;
        margin-right: auto !important;

        text-align: center !important;
    }

    html[lang="en-US"]
    body.page-id-532
    .poto-hero
    .poto-hero-badge
    .poto-badge-text p {
        direction: ltr !important;
        text-align: center !important;
    }


    /* Elementor HTML widget containing H1 */
    html[lang="en-US"]
    body.page-id-532
    .poto-hero
    .poto-hero-title {
        width: 100% !important;
        max-width: 100% !important;

        padding-left: 0 !important;
        padding-right: 0 !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        align-self: stretch !important;
        text-align: center !important;
    }


    /* Actual heading */
    html[lang="en-US"]
    body.page-id-532
    .poto-hero
    .poto-hero-heading {
        direction: ltr !important;

        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        padding-left: 0 !important;
        padding-right: 0 !important;

        text-align: center !important;
    }


    /* Both H1 lines */
    html[lang="en-US"]
    body.page-id-532
    .poto-hero
    .poto-hero-heading
    .poto-hero-line {
        display: block !important;

        width: 100% !important;

        text-align: center !important;
    }


    /* Description */
    html[lang="en-US"]
    body.page-id-532
    .poto-hero
    .poto-hero-sub {
        direction: ltr !important;

        width: 100% !important;
        max-width: 320px !important;

        padding-left: 0 !important;
        padding-right: 0 !important;

        margin-left: auto !important;
        margin-right: auto !important;

        align-self: center !important;

        text-align: center !important;
    }


    html[lang="en-US"]
    body.page-id-532
    .poto-hero
    .poto-hero-sub p {
        direction: ltr !important;

        margin-left: auto !important;
        margin-right: auto !important;

        text-align: center !important;
    }

}
/* =========================================
   PERSIAN HOME HERO — MOBILE EXACT CENTER
========================================= */

@media (max-width: 639px) {

    /* Main copy column */
    html[lang="fa-IR"]
    .poto-hero
    .poto-hero-copy {
        direction: rtl !important;

        width: 100% !important;
        max-width: 100% !important;

        padding-left: 0 !important;
        padding-right: 0 !important;

        align-items: center !important;
        text-align: center !important;
    }


    /* Eyebrow */
    html[lang="fa-IR"]
    .poto-hero
    .poto-hero-badge {
        direction: rtl !important;

        width: max-content !important;

        align-self: center !important;

        margin-left: auto !important;
        margin-right: auto !important;

        text-align: center !important;
    }

    html[lang="fa-IR"]
    .poto-hero
    .poto-hero-badge
    .poto-badge-text,
    
    html[lang="fa-IR"]
    .poto-hero
    .poto-hero-badge
    .poto-badge-text p {
        direction: rtl !important;
        text-align: center !important;
    }


    /* Heading widget */
    html[lang="fa-IR"]
    .poto-hero
    .poto-hero-title {
        width: 100% !important;
        max-width: 100% !important;

        padding-left: 0 !important;
        padding-right: 0 !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        align-self: stretch !important;

        text-align: center !important;
    }


    /* Actual H1 */
    html[lang="fa-IR"]
    .poto-hero
    .poto-hero-heading {
        direction: rtl !important;

        width: 100% !important;
        max-width: 100% !important;

        padding-left: 0 !important;
        padding-right: 0 !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        text-align: center !important;
    }


    /* Heading lines */
    html[lang="fa-IR"]
    .poto-hero
    .poto-hero-heading
    .poto-hero-line {
        display: block !important;
        width: 100% !important;

        text-align: center !important;
    }


    /* Description */
    html[lang="fa-IR"]
    .poto-hero
    .poto-hero-sub {
        direction: rtl !important;

        width: 100% !important;
        max-width: 320px !important;

        padding-left: 0 !important;
        padding-right: 0 !important;

        margin-left: auto !important;
        margin-right: auto !important;

        align-self: center !important;

        text-align: center !important;
    }

    html[lang="fa-IR"]
    .poto-hero
    .poto-hero-sub p {
        direction: rtl !important;

        margin-left: auto !important;
        margin-right: auto !important;

        text-align: center !important;
    }

}
/* =========================================
   POTO MOBILE MENU — POLISHED DROPDOWN
========================================= */

@media (max-width: 1024px) {

    /* =====================================
       MENU TOGGLE
    ===================================== */

    .poto-header
    .poto-mobile-menu
    .elementor-menu-toggle {
        transition:
            background-color 0.25s ease,
            border-color 0.25s ease,
            transform 0.25s ease,
            box-shadow 0.25s ease;
    }

    .poto-header
    .poto-mobile-menu
    .elementor-menu-toggle:hover,

    .poto-header
    .poto-mobile-menu
    .elementor-menu-toggle.elementor-active {
        background-color:
            rgba(255, 255, 255, 0.08) !important;

        border-color:
            rgba(255, 255, 255, 0.30) !important;

        box-shadow:
            0 10px 24px rgba(0, 0, 0, 0.18);
    }


    /* =====================================
       DROPDOWN CARD
    ===================================== */

    .poto-header
    .poto-mobile-menu
    .elementor-nav-menu--dropdown {
        position: absolute !important;

        top: calc(100% + 14px) !important;
        right: 20px !important;
        left: auto !important;

        width:
            min(300px, calc(100vw - 40px)) !important;

        margin-top: 0 !important;
        padding: 10px !important;

        background:
            rgba(35, 37, 40, 0.90) !important;

        border:
            1px solid rgba(255, 255, 255, 0.10);

        border-radius: 24px;

        box-shadow:
            0 18px 42px rgba(0, 0, 0, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);

        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);

        overflow: hidden;
    }


    /* =====================================
       LANGUAGE DIRECTION
    ===================================== */

    html[lang="fa-IR"]
    .poto-header
    .poto-mobile-menu
    .elementor-nav-menu--dropdown {
        direction: rtl !important;
    }

    html[lang="en-US"]
    .poto-header
    .poto-mobile-menu
    .elementor-nav-menu--dropdown {
        direction: ltr !important;
    }


    /* =====================================
       MENU LIST
    ===================================== */

    .poto-header
    .poto-mobile-menu
    .elementor-nav-menu--dropdown
    .elementor-nav-menu {
        display: flex !important;

        flex-direction: column;
        align-items: stretch;

        width: 100%;
        gap: 6px;
    }

    .poto-header
    .poto-mobile-menu
    .elementor-nav-menu--dropdown
    li {
        width: 100%;
        margin: 0 !important;
    }


    /* =====================================
       MENU ITEMS
    ===================================== */

    .poto-header
    .poto-mobile-menu
    .elementor-nav-menu--dropdown
    .elementor-item {
        position: relative;

        display: flex;
        align-items: center;

        width: 100%;
        min-height: 58px;

        padding: 0 18px !important;

        color:
            rgba(255, 255, 255, 0.92) !important;

        background:
            transparent !important;

        border:
            1px solid transparent !important;

        border-radius: 16px;

        font-family:
            Vazirmatn, Arial, sans-serif;

        font-size: 18px;
        font-weight: 700;
        line-height: 1.4;

        transition:
            color 0.25s ease,
            background-color 0.25s ease,
            border-color 0.25s ease,
            transform 0.25s ease;
    }


    /* Persian alignment */

    html[lang="fa-IR"]
    .poto-header
    .poto-mobile-menu
    .elementor-nav-menu--dropdown
    .elementor-item {
        direction: rtl !important;
        text-align: right !important;
        justify-content: flex-start;
    }


    /* English alignment */

    html[lang="en-US"]
    .poto-header
    .poto-mobile-menu
    .elementor-nav-menu--dropdown
    .elementor-item {
        direction: ltr !important;
        text-align: left !important;
        justify-content: flex-start;
    }


    /* =====================================
       HOVER
    ===================================== */

    .poto-header
    .poto-mobile-menu
    .elementor-nav-menu--dropdown
    .elementor-item:hover,

    .poto-header
    .poto-mobile-menu
    .elementor-nav-menu--dropdown
    .elementor-item:focus {
        color: #ffffff !important;

        background:
            rgba(255, 255, 255, 0.055) !important;

        border-color:
            rgba(255, 255, 255, 0.07) !important;

        transform: translateY(-1px);
    }


    /* =====================================
       ACTIVE PAGE
    ===================================== */

    .poto-header
    .poto-mobile-menu
    .elementor-nav-menu--dropdown
    .elementor-item.elementor-item-active {
        color: #ffffff !important;

        background:
            rgba(255, 255, 255, 0.07) !important;

        border-color:
            rgba(255, 255, 255, 0.09) !important;
    }


    /* Active indicator */

    .poto-header
    .poto-mobile-menu
    .elementor-nav-menu--dropdown
    .elementor-item.elementor-item-active::after {
        content: "";

        position: absolute;

        top: 50%;

        width: 4px;
        height: 24px;

        border-radius: 999px;

        background-color: #febc20;

        transform: translateY(-50%);

        pointer-events: none;
    }


    /* Persian:
       marker on opposite side of RTL text */

    html[lang="fa-IR"]
    .poto-header
    .poto-mobile-menu
    .elementor-nav-menu--dropdown
    .elementor-item.elementor-item-active::after {
        left: 12px;
        right: auto;
    }


    /* English:
       marker on opposite side of LTR text */

    html[lang="en-US"]
    .poto-header
    .poto-mobile-menu
    .elementor-nav-menu--dropdown
    .elementor-item.elementor-item-active::after {
        right: 12px;
        left: auto;
    }


    /* =====================================
       LANGUAGE SWITCHER / LAST ITEM
    ===================================== */

    .poto-header
    .poto-mobile-menu
    .elementor-nav-menu--dropdown
    li:last-child
    > .elementor-item {
        margin-top: 2px;

        color: #ffffff !important;

        background:
            rgba(254, 188, 32, 0.10) !important;

        border-color:
            rgba(254, 188, 32, 0.24) !important;
    }

    .poto-header
    .poto-mobile-menu
    .elementor-nav-menu--dropdown
    li:last-child
    > .elementor-item:hover,

    .poto-header
    .poto-mobile-menu
    .elementor-nav-menu--dropdown
    li:last-child
    > .elementor-item:focus {
        background:
            rgba(254, 188, 32, 0.16) !important;

        border-color:
            rgba(254, 188, 32, 0.34) !important;
    }

}
/* =========================================
   POTO LOCATIONS — CARD IMAGE + HEIGHT FIX
========================================= */

/* Keep every new image inside the same frame */
body .poto-locations .location-bg img {
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
    object-position: center center !important;
}


/* Desktop */
@media (min-width: 1024px) {

    body .poto-locations .location-panel {
        height: auto !important;
    }

    body .poto-locations .location-media {
        flex: 0 0 190px !important;
        height: 190px !important;
        min-height: 190px !important;
    }

    body .poto-locations .location-body {
        min-height: 150px !important;
        height: auto !important;

        flex-shrink: 0 !important;

        padding: 20px 22px 22px !important;
    }
}


/* Short desktop/laptop screens */
@media (min-width: 1024px) and (max-height: 800px) {

    body .poto-locations .locations-stage {
        padding-top: 48px !important;
        padding-bottom: 24px !important;
    }

    body .poto-locations .locations-track-wrap {
        margin-top: 32px !important;
    }

    body .poto-locations .location-media {
        flex-basis: 170px !important;
        height: 170px !important;
        min-height: 170px !important;
    }

    body .poto-locations .location-body {
        min-height: 145px !important;
        padding: 18px 20px 20px !important;
    }

}
/* =========================================
   POTO MOBILE — DIRECT LANGUAGE SWITCH
========================================= */

.poto-header .poto-mobile-lang-switch {
    display: none;
}


@media (max-width: 1024px) {

    /* Show on both Persian and English */
    html[lang="fa-IR"]
    .poto-header
    .poto-mobile-lang-switch,

    html[lang="en-US"]
    .poto-header
    .poto-mobile-lang-switch {
        display: flex !important;

        width: auto !important;
        flex: 0 0 auto;

        align-items: center;
        justify-content: center;

        margin: 0 !important;
    }


    /* Language button */
    .poto-header
    .poto-mobile-lang-switch
    .poto-mobile-lang-link {
        display: inline-flex;

        align-items: center;
        justify-content: center;

        width: 40px;
        height: 40px;

        padding: 0;

        direction: ltr;

        color:
            rgba(255, 255, 255, 0.92);

        background:
            rgba(255, 255, 255, 0.06);

        border:
            1px solid rgba(255, 255, 255, 0.20);

        border-radius: 999px;

        font-family:
            Arial,
            sans-serif;

        font-size: 11px;
        font-weight: 700;
        line-height: 1;

        letter-spacing: 0.04em;

        text-decoration: none;

        transition:
            color 0.25s ease,
            background-color 0.25s ease,
            border-color 0.25s ease,
            transform 0.25s ease;
    }


    .poto-header
    .poto-mobile-lang-switch
    .poto-mobile-lang-link:hover,

    .poto-header
    .poto-mobile-lang-switch
    .poto-mobile-lang-link:focus {
        color: #232528;

        background-color: #febc20;

        border-color: #febc20;

        transform: translateY(-1px);
    }

}
/* =========================================
   ENGLISH HOME — PARTNERSHIP TIMELINE LINE
   Page ID: 532
========================================= */

html[lang="en-US"]
body.page-id-532
.poto-partnership
.timeline-line {
    right: auto !important;
    left: 16px !important;
}
/* =========================================
   POTO MOBILE MENU — HIDE LANGUAGE ITEM
========================================= */

@media (max-width: 1024px) {

    .poto-header
    .poto-mobile-menu
    .elementor-nav-menu--dropdown
    li.lang-item {
        display: none !important;
    }

}
/* =========================================
   SMOOTH ANCHOR SCROLL
========================================= */

html {
    scroll-behavior: smooth;
}

#poto-video {
    scroll-margin-top: 90px;
}
/* =========================================
   POTO HEADER — DESKTOP LAYOUT FIX
   FA + EN match Turkish physical layout
========================================= */

@media (min-width: 1025px) {

    html[lang="fa-IR"]
    .poto-header
    .poto-header-inner,

    html[lang="en-US"]
    .poto-header
    .poto-header-inner {
        direction: rtl !important;
        flex-direction: row !important;
    }

}
/* =========================================
   POTO TURKISH — GLOBAL LTR
   Applies to all Turkish pages
========================================= */

html[lang="tr-TR"] body {
    direction: ltr !important;
}


/* Main Turkish sections */

html[lang="tr-TR"] body .poto-hero,
html[lang="tr-TR"] body .poto-about-hero,
html[lang="tr-TR"] body .poto-catalog-hero,
html[lang="tr-TR"] body .poto-business-hero,

html[lang="tr-TR"] body .poto-product-story,
html[lang="tr-TR"] body .poto-how-it-works,
html[lang="tr-TR"] body .poto-video,
html[lang="tr-TR"] body .poto-specs,
html[lang="tr-TR"] body .poto-official-catalog,

html[lang="tr-TR"] body .poto-locations,
html[lang="tr-TR"] body .poto-business,
html[lang="tr-TR"] body .poto-partnership,
html[lang="tr-TR"] body .poto-final-cta,

html[lang="tr-TR"] body .contact-main-inner {
    direction: ltr !important;
}


/* Partnership / timeline */

html[lang="tr-TR"] body
.poto-partnership
.timeline-head,

html[lang="tr-TR"] body
.poto-partnership
.timeline-list,

html[lang="tr-TR"] body
.poto-partnership
.timeline-node,

html[lang="tr-TR"] body
.poto-partnership
.timeline-node-content,

html[lang="tr-TR"] body
.poto-partnership
.timeline-node-meta {
    direction: ltr !important;
}


html[lang="tr-TR"] body
.poto-partnership
.timeline-head {
    align-items: flex-start !important;
}


html[lang="tr-TR"] body
.poto-partnership
.timeline-eyebrow,

html[lang="tr-TR"] body
.poto-partnership
.timeline-eyebrow p,

html[lang="tr-TR"] body
.poto-partnership
.timeline-title,

html[lang="tr-TR"] body
.poto-partnership
.timeline-title
.elementor-heading-title,

html[lang="tr-TR"] body
.poto-partnership
.timeline-intro,

html[lang="tr-TR"] body
.poto-partnership
.timeline-intro p,

html[lang="tr-TR"] body
.poto-partnership
.timeline-node-title,

html[lang="tr-TR"] body
.poto-partnership
.timeline-node-title
.elementor-heading-title,

html[lang="tr-TR"] body
.poto-partnership
.timeline-node-text,

html[lang="tr-TR"] body
.poto-partnership
.timeline-node-text p {
    direction: ltr !important;
    text-align: left !important;
}


/* Timeline line on LTR side */

html[lang="tr-TR"] body
.poto-partnership
.timeline-line {
    right: auto !important;
    left: 16px !important;
}

/* =========================================
   POTO MULTILINGUAL FIXES — V2
   Mobile navigation + Turkish LTR
   Language selector for FA / EN / TR / AR
========================================= */


/* =========================================
   POTO — TURKISH MOBILE MENU POSITION FIX
   Anchor dropdown to the full-width header
========================================= */

@media (max-width: 1024px) {

    /* Header is the positioning reference */
    html[lang="tr-TR"] .poto-header {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        overflow: visible !important;
    }

    /* Remove positioning contexts from
       Elementor containers around hamburger */

    html[lang="tr-TR"]
    .poto-header
    :is(
        .e-con,
        .e-con-inner,
        .elementor-element,
        .poto-header-inner,
        .poto-header-actions
    ):has(.poto-mobile-menu):not(.poto-header) {
        position: static !important;
        overflow: visible !important;
    }

    html[lang="tr-TR"]
    .poto-header
    .poto-mobile-menu,

    html[lang="tr-TR"]
    .poto-header
    .poto-mobile-menu
    .elementor-widget-container {
        position: static !important;
        overflow: visible !important;
    }

    /* Dropdown card */

    html[lang="tr-TR"]
    .poto-header
    .poto-mobile-menu
    .elementor-nav-menu--dropdown {
        position: absolute !important;

        top: calc(100% + 10px) !important;
        right: 16px !important;
        left: auto !important;
        bottom: auto !important;

        width: min(300px, calc(100vw - 32px)) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 32px) !important;
        max-height: calc(100dvh - 100px) !important;

        margin: 0 !important;
        box-sizing: border-box !important;

        direction: ltr !important;
        text-align: left !important;

        transform: none !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        z-index: 10001 !important;
    }

    /* Menu items */

    html[lang="tr-TR"]
    .poto-header
    .poto-mobile-menu
    .elementor-nav-menu--dropdown
    .elementor-item {
        direction: ltr !important;
        text-align: left !important;
        justify-content: flex-start !important;
    }

    /* Active item indicator */

    html[lang="tr-TR"]
    .poto-header
    .poto-mobile-menu
    .elementor-nav-menu--dropdown
    .elementor-item.elementor-item-active::after {
        right: 12px !important;
        left: auto !important;
    }
}

/* -----------------------------------------
   2. TURKISH HOMEPAGE — MOBILE LTR
   Preserve layouts and scroll animations
----------------------------------------- */

@media (max-width: 1024px) {

    html[lang="tr-TR"] body :is(
        .poto-hero,
        .poto-product-story,
        .poto-how-it-works,
        .poto-video,
        .poto-business,
        .poto-partnership,
        .poto-final-cta
    ) {
        direction: ltr !important;
    }

    /* Inner content containers */

    html[lang="tr-TR"] body :is(
        .poto-hero .poto-hero-inner,
        .poto-hero .poto-hero-inner > .e-con-inner,
        .poto-hero .poto-hero-copy,
        .poto-product-story .story-inner,
        .poto-product-story .story-panel,
        .poto-how-it-works .hiw-inner,
        .poto-how-it-works .hiw-step,
        .poto-how-it-works .hiw-step-content,
        .poto-business .biz-inner,
        .poto-business .biz-copy,
        .poto-business .biz-feature,
        .poto-final-cta .final-cta-inner,
        .poto-final-cta .cta-copy,
        .poto-locations .location-body,
        .poto-video .video-inner
    ) {
        direction: ltr !important;
    }

    /* Text alignment */

    html[lang="tr-TR"] body :is(
        .poto-product-story .story-panel-title,
        .poto-product-story .story-panel-text,
        .poto-product-story .story-kicker-text,
        .poto-how-it-works .hiw-eyebrow,
        .poto-how-it-works .hiw-title,
        .poto-how-it-works .hiw-intro,
        .poto-how-it-works .hiw-step-title,
        .poto-how-it-works .hiw-step-text,
        .poto-business .biz-eyebrow,
        .poto-business .biz-title,
        .poto-business .biz-intro,
        .poto-business .biz-feature-title,
        .poto-business .biz-feature-text,
        .poto-business .biz-point-title,
        .poto-business .biz-point-text,
        .poto-locations .location-body,
        .poto-final-cta .cta-copy
    ) {
        direction: ltr !important;
        text-align: left !important;
    }

    /* CTA form */

    html[lang="tr-TR"]
    .poto-final-cta
    :is(
        .cta-elementor-form,
        .elementor-form,
        .elementor-field-label,
        .elementor-field-textual
    ) {
        direction: ltr !important;
        text-align: left !important;
    }

    /* Turkish footer */

    html[lang="tr-TR"]
    .poto-footer,
    html[lang="tr-TR"]
    .poto-footer-grid {
        direction: ltr !important;
    }

    html[lang="tr-TR"]
    .poto-footer
    :is(
        .poto-footer-title,
        .poto-footer-description,
        .poto-contact-text,
        .poto-contact-phone,
        .poto-footer-menu .elementor-item
    ) {
        direction: ltr !important;
        text-align: left !important;
    }
}


/* Turkish hero: same mobile centering as EN */

@media (max-width: 639px) {

    html[lang="tr-TR"]
    .poto-hero
    .poto-hero-copy {
        direction: ltr !important;
        width: 100% !important;
        padding-inline: 0 !important;
        align-items: center !important;
        text-align: center !important;
    }

    html[lang="tr-TR"]
    .poto-hero
    :is(
        .poto-hero-heading,
        .poto-hero-line,
        .poto-hero-sub,
        .poto-hero-sub p,
        .poto-badge-text p
    ) {
        direction: ltr !important;
        text-align: center !important;
    }

    html[lang="tr-TR"]
    .poto-hero
    .poto-hero-badge {
        direction: ltr !important;
        align-self: center !important;
        margin-inline: auto !important;
    }

    html[lang="tr-TR"]
    .poto-hero
    .poto-hero-sub {
        max-width: 320px !important;
        margin-inline: auto !important;
    }
}


/* -----------------------------------------
   3. LANGUAGE SELECTOR — SHARED STYLING
----------------------------------------- */

.poto-header .poto-lang-switcher {
    position: relative;
    display: inline-block;
    direction: ltr;
    font-family: Arial, sans-serif;
    z-index: 10005;
}

.poto-header .poto-lang-switcher[open] {
    z-index: 10020;
}

.poto-header .poto-lang-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    height: 40px;
    min-width: 66px;
    padding: 0 11px;

    color: #fff;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 999px;

    cursor: pointer;
    list-style: none;
    user-select: none;
}

.poto-header .poto-lang-trigger::-webkit-details-marker {
    display: none;
}

.poto-header .poto-lang-trigger::marker {
    content: "";
}

.poto-header .poto-lang-trigger svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: #febc20;
}

.poto-header .poto-lang-code {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
}

.poto-header .poto-lang-arrow {
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s ease;
}

.poto-header
.poto-lang-switcher[open]
.poto-lang-arrow {
    transform: rotate(225deg) translate(-2px,-2px);
}

.poto-header
.poto-lang-switcher[open]
.poto-lang-trigger {
    border-color: rgba(254,188,32,.65);
    background: rgba(255,255,255,.11);
}

.poto-header .poto-lang-trigger:focus-visible {
    outline: 2px solid #febc20;
    outline-offset: 3px;
}

/* Dropdown panel */

.poto-header .poto-lang-options {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    z-index: 10030;

    width: 176px;
    max-width: calc(100vw - 32px);

    margin: 0 !important;
    padding: 6px !important;

    direction: ltr;
    list-style: none !important;

    background: rgba(35,37,40,.97);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 15px;

    box-shadow: 0 16px 40px rgba(0,0,0,.28);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.poto-header .poto-lang-options li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.poto-header .poto-lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    min-height: 40px;
    padding: 9px 11px;

    color: rgba(255,255,255,.86) !important;
    text-decoration: none !important;
    background: transparent;
    border-radius: 10px;

    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;

    transition: background .2s ease, color .2s ease;
}

.poto-header .poto-lang-option:hover,
.poto-header .poto-lang-option:focus-visible {
    color: #fff !important;
    background: rgba(255,255,255,.09);
}

.poto-header .poto-lang-option.is-current {
    color: #febc20 !important;
    background: rgba(254,188,32,.10);
}

.poto-header .poto-lang-option-code {
    font-size: 10px;
    font-weight: 700;
    opacity: .60;
    letter-spacing: .04em;
}

.poto-header .poto-lang-name[dir="rtl"] {
    font-family: Vazirmatn, Arial, sans-serif;
}


/* -----------------------------------------
   4. DESKTOP / MOBILE VISIBILITY
----------------------------------------- */

@media (min-width: 1025px) {

    .poto-header .poto-mobile-lang-switch {
        display: none !important;
    }

    .poto-header .poto-desktop-lang-switch {
        display: flex !important;
        align-items: center;
        flex: 0 0 auto;
        width: auto !important;
    }
}

@media (max-width: 1024px) {

    .poto-header .poto-desktop-lang-switch {
        display: none !important;
    }

    .poto-header .poto-mobile-lang-switch {
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: auto !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    .poto-header
    .poto-mobile-lang-switch
    .elementor-widget-container {
        overflow: visible !important;
    }

    .poto-header
    .poto-mobile-lang-switch
    .poto-lang-options {
        position: fixed;
        top: 76px;
        right: 16px;
        left: auto;
        width: 176px;
    }

    .poto-header.poto-scrolled
    .poto-mobile-lang-switch
    .poto-lang-options {
        top: 68px;
    }
}

/* =========================================
   POTO TURKISH MOBILE MENU — CLOSED STATE FIX
========================================= */

@media (max-width: 1024px) {

    /* Hide menu when Elementor marks it closed */

    html[lang="tr-TR"]
    .poto-header .poto-mobile-menu
    .elementor-nav-menu--dropdown[aria-hidden="true"],

    html[lang="tr-TR"]
    .poto-header
    .poto-mobile-menu:not(:has(
        .elementor-menu-toggle.elementor-active
    ))
    .elementor-nav-menu--dropdown {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Restore visibility when menu is open */

    html[lang="tr-TR"]
    .poto-header
    .poto-mobile-menu:has(
        .elementor-menu-toggle.elementor-active
    )
    .elementor-nav-menu--dropdown[aria-hidden="false"] {
        visibility: visible !important;
        pointer-events: auto !important;
    }
}

/* =========================================
   POTO — AUTOMATIC DESKTOP LANGUAGE SWITCH
========================================= */

#poto-auto-desktop-lang {
    display: none !important;
}

@media (min-width: 1025px) {

    .poto-header #poto-auto-desktop-lang {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        flex: 0 0 auto !important;
        width: auto !important;
        min-width: max-content;

        margin-inline-start: 12px !important;
        overflow: visible !important;
    }

    .poto-header
    #poto-auto-desktop-lang
    .poto-lang-options {
        left: 0 !important;
        right: auto !important;
    }

    .poto-header
    #poto-auto-desktop-lang
    .poto-lang-trigger:hover {
        background: rgba(255,255,255,.12);
        border-color: rgba(254,188,32,.55);
    }
}

/* =========================================
   POTO — TURKISH MOBILE LANGUAGE DROPDOWN
   Open directly below language button
========================================= */

@media (max-width: 1024px) {

    html[lang="tr-TR"]
    .poto-header
    .poto-mobile-lang-switch
    .poto-lang-switcher {
        position: relative !important;
        overflow: visible !important;
    }

    html[lang="tr-TR"]
    .poto-header
    .poto-mobile-lang-switch
    .poto-lang-options {
        position: absolute !important;

        top: calc(100% + 10px) !important;
        left: 0 !important;
        right: auto !important;
        bottom: auto !important;

        width: 176px !important;
        max-width: calc(100vw - 32px) !important;

        transform: none !important;
        direction: ltr !important;

        z-index: 10030 !important;
    }
}
