/* =====================================================
   MOBILE RESPONSIVE STYLES — front_mobile.css
   Bu fayl yalniz responsive/mobil stillerini saxlayir.
   front.css-deki kodlara toxunulmur, burda override edilir.
   Breakpoints:
     Mobile:  max-width: 767px
     Tablet:  768px – 1199px
   ===================================================== */


/* ──────────────────────────────────────────────────────
   BÜTÜN SƏHİFƏLƏR — Ümumi stillər
   front.css-dəki updateScale() JS hack-i CSS transform
   ilə ekranı kiçildirdi. Mobilda bu ləğv edilir,
   əvəzinə real responsive layout istifadə olunur.
   ────────────────────────────────────────────────────── */
@media screen and (max-width: 1199px) {
    /* front.css: .page-scaler { transform: scale(...) } — ləğv edilir */
    .page-scaler {
        transform: none !important;
        width: 100% !important;
        min-height: 100vh !important;
        position: relative; /* popup-lar buna görə yerləşir, body-ni uzatmır */
        overflow: hidden;   /* footer altındakı boşluğun qarşısını alır */
    }

    html, body {
        height: auto !important;
        overflow-x: hidden;
    }
}


/* ──────────────────────────────────────────────────────
   BÜTÜN SƏHİFƏLƏR — .container
   front.css-də .container width: 1560px sabit idi.
   Mobilda tam genişlik olsun deyə override edilir.
   ────────────────────────────────────────────────────── */
@media screen and (max-width: 767px) {
    .container {
        width: 100% !important;
        min-width: unset !important;
        max-width: 100vw !important;
        padding: 0 16px;
        box-sizing: border-box;
        flex-direction: column;
        overflow: hidden;
    }
}


/* ──────────────────────────────────────────────────────
   BÜTÜN SƏHİFƏLƏR — Header (partials/front/header.html.php)
   front.css-də header height: 160px sabit idi.
   Mobilda 70px-ə endirilir, desktop nav gizlədilir.
   ────────────────────────────────────────────────────── */
@media screen and (max-width: 767px) {

    /* front.css: section.header { height: 160px } */
    section.header {
        height: 70px;
    }

    section.header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 70px;
        padding: 0 16px;
    }

    /* front.css: section.header img.logo { width: 224px } */
    section.header img.logo {
        width: 130px;
    }

    /* Desktop nav linkleri mobilda gizledilir,
       evezine hamburger menu acilir */
    section.header .right {
        display: none;
    }

    /* front.css: div.header_spacer { height: 160px } */
    div.header_spacer {
        height: 70px;
    }
}

/* Hamburger icon — desktop-da gizli, yalniz mobilda gorunur.
   HTML-i header.html.php-ye elave edilib. */
.header-hamburger {
    display: none;
}

@media screen and (max-width: 767px) {
    .header-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        cursor: pointer;
        z-index: 101;
        flex-shrink: 0;
    }

    .header-hamburger span {
        display: block;
        width: 100%;
        height: 3px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
}

/* Mobile menu overlay — hamburger-e basilanda acilir.
   Toggle mentiqi header.html.php-deki JS-de yazilir. */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px; /* header hündürlüyü ilə uyğun */
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: #4370d8;
    z-index: 100;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20px;
    overflow-y: auto;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 16px 20px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* Daxil ol / Qeydiyyat düymələri mobile menuda */
.mobile-menu a.button-link {
    margin-top: 10px;
    border: 2px solid white;
    border-radius: 10px;
    width: calc(100% - 40px);
}

/* Desktop-da mobile menu her zaman gizli qalir */
@media screen and (min-width: 768px) {
    .mobile-menu {
        display: none !important;
    }
}


/* ──────────────────────────────────────────────────────
   TermsOfUse, ReturnTerms, PaymentRules, AboutUs
   — show_content.html.php şablonu istifadə edilir
   front.css-də margin-top: 160px (header hündürlüyü) idi,
   mobilda header 70px-ə endiyinə görə bu da dəyişdirilir.
   ────────────────────────────────────────────────────── */
@media screen and (max-width: 767px) {

    /* front.css: section.show_content { margin-top: 160px } */
    section.show_content {
        margin-top: 70px !important;
        padding: 20px 0;
    }

    /* front.css: section.show_content .container { padding: 60px 80px } */
    section.show_content .container {
        padding: 24px 16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        gap: 16px;
    }
}


/* ──────────────────────────────────────────────────────
   BÜTÜN SƏHİFƏLƏR — Footer (footer_dark.html.php / footer_light.html.php)
   front.css-də footer height: 370px sabit idi,
   items yan-yana sıralanırdı. Mobilda şaquli olur.
   ────────────────────────────────────────────────────── */
@media screen and (max-width: 767px) {

    /* front.css: section.footer { height: 370px } */
    section.footer {
        height: auto !important;
        padding: 30px 0 20px;
    }

    section.footer .container {
        flex-direction: column;
        padding: 0 16px;
    }

    /* front.css: section.footer .items { flex-direction: row } */
    section.footer .items {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    /* front.css: section.footer .items .item { height: 200px } */
    section.footer .items .item {
        height: auto;
        max-width: 100%;
        font-size: 16px;
        gap: 12px;
    }

    /* front.css: section.footer .footer_logo { width: 316px } */
    section.footer .footer_logo {
        width: 160px;
        height: auto;
    }

    section.footer .items .item.apps {
        align-items: flex-start;
    }

    section.footer .items .item.apps .apps {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    section.footer .items .item.apps a {
        width: auto;
        height: auto;
    }

    section.footer .items .item.apps a img {
        width: 140px;
        height: auto;
    }

    section.footer hr {
        margin-top: 20px;
    }

    /* front.css: section.footer .copyright { height: 60px } */
    section.footer .copyright {
        font-size: 13px;
        text-align: center;
        padding: 10px 0;
        height: auto;
    }
}


/* ──────────────────────────────────────────────────────
   FAQ — faq.html.php şablonu
   front.css-də margin-top: 160px, padding: 20px 110px,
   font-size: 22px kimi böyük dəyərlər var.
   Mobilda bunlar azaldılır.
   ────────────────────────────────────────────────────── */
@media screen and (max-width: 767px) {

    /* front.css: section.faq { margin-top: 160px } */
    section.faq {
        margin-top: 70px !important;
        margin-bottom: 30px;
    }

    /* front.css: section.faq .container { padding: 60px 0 } */
    section.faq .container {
        padding: 30px 16px;
        gap: 20px;
    }

    /* front.css: section.faq .caption { font-size: 40px } */
    section.faq .caption {
        font-size: 24px;
    }

    section.faq .questions {
        padding: 20px 12px;
        gap: 12px;
    }

    /* front.css: section.faq .question { padding: 20px 110px 20px 30px }
       Sağ padding çox böyük idi, toggle düyməsi üçün azaldılır */
    section.faq .question {
        padding: 16px 50px 16px 16px;
    }

    /* front.css: section.faq .question .title { font-size: 22px } */
    section.faq .question .title {
        font-size: 16px;
    }

    /* front.css: section.faq .question .answer { font-size: 22px } */
    section.faq .question .answer {
        font-size: 15px;
    }

    /* Toggle düyməsinin mövqeyi */
    section.faq .question .toggle {
        right: 12px;
        top: 16px;
        width: 30px;
        height: 20px;
    }
}


/* ──────────────────────────────────────────────────────
   PassengerLogin — login.html.php şablonu
   front.css-də form sağ tərəfdə idi (justify-content: flex-end),
   container width: 50% idi. Mobilda tam genişlik olur
   və mərkəzə alınır.
   ────────────────────────────────────────────────────── */
@media screen and (max-width: 767px) {

    /* front.css: section.login { justify-content: flex-end } */
    section.login {
        justify-content: center;
        align-items: flex-start;
        background-position: center;
        min-height: 100vh;
        height: auto;
    }

    /* front.css: section.login .container { width: 50%, min-width: 480px } */
    section.login .container {
        width: 100% !important;
        min-width: unset !important;
        margin-right: 0;
        background: #FFFFFFCC;
        min-height: 100vh;
    }

    /* front.css: section.login .login_form { width: 420px } */
    section.login .login_form {
        width: 100%;
        padding: 40px 24px;
    }

    /* front.css: section.login .login_form .title { font-size: 40px } */
    section.login .login_form .title {
        font-size: 28px;
    }
}


/* ──────────────────────────────────────────────────────
   Index — index.html.php
   ────────────────────────────────────────────────────── */
@media screen and (max-width: 767px) {

    /* ── Hero / Search bölməsi ── */

    /* front.css: section.search { height: 882px, margin-top: 160px } */
    section.search {
        height: auto !important;
        min-height: 420px;
        margin-top: 70px !important;
        background-position: center;
    }

    /* front.css: section.search .caption { font-size: 64px } */
    section.search .caption {
        font-size: 24px;
        text-align: center;
        padding-top: 24px;
    }

    /* front.css: section.search .search_box { height: 110px, padding: 20px 50px, flex-direction: row }
       Mobilda elementler sutun seklinde yigilir */
    section.search .search_box {
        flex-direction: column;
        height: auto !important;
        padding: 16px;
        gap: 12px;
        align-items: stretch;
    }

    /* btn_reverse mərkəzə alınır */
    section.search .reverse {
        align-self: center;
    }

    /* front.css: section.search #from_stop_search, #to_stop_search { width: 336px } */
    section.search #from_stop_search,
    section.search #to_stop_search {
        width: 100%;
    }

    /* front.css: .filter_select .selected { width: 336px } — sabit en override edilir */
    .filter_select .selected {
        width: 100%;
        box-sizing: border-box;
    }

    /* front.css: section.search .date { width: 450px } */
    section.search .date {
        width: 100%;
        font-size: 16px;
        gap: 8px;
        padding: 0 10px;
    }

    section.search .date input {
        font-size: 16px;
        flex: 1 1 auto;
        min-width: 0;
    }

    /* front.css: section.search .date a { width: 110px } — mobilda daralır */
    section.search .date a {
        width: auto;
        flex-shrink: 0;
        font-size: 12px;
        padding: 0 8px;
        white-space: nowrap;
    }

    /* front.css: section.search .btn_search { width: 200px, height: 70px } */
    section.search .btn_search {
        width: 100%;
        height: 50px;
        font-size: 20px;
    }

    /* front.css: section.search .map { margin-top: 100px } */
    section.search .map {
        margin-top: 20px;
        margin-bottom: 30px;
    }

    /* front.css: section.search .map_button { width: 300px } */
    section.search .map_button {
        width: auto;
        height: 44px;
        padding: 0 16px;
    }

    /* Mobilda "Xəritə" yazısı gizlədilir */
    section.search .map_button span {
        display: none;
    }

    /* front.css: section.search .map_button img { width: 70px } */
    section.search .map_button img {
        width: 37px;
    }


    /* ── Why Us bölməsi ── */

    /* front.css: section.why_us { height: 876px } */
    section.why_us {
        height: auto !important;
        padding: 40px 0;
    }

    /* front.css: section.why_us div.caption { font-size: 64px } */
    section.why_us div.caption {
        font-size: 28px;
    }

    /* front.css: section.why_us .items .item { width: 375px }
       Mobilda 2 sutunlu grid — 2x2 */
    section.why_us .items .item {
        width: calc(50% - 10px);
    }

    /* front.css: section.why_us .items .item a { width: 375px } */
    section.why_us .items .item a {
        width: 100%;
    }

    /* front.css: section.why_us .items .item .text { width: 375px, height: 330px } */
    section.why_us .items .item .text {
        width: 100%;
        height: auto;
        padding: 16px;
    }

    /* front.css: section.why_us .items .item .item_caption { font-size: 32px, width: 330px } */
    section.why_us .items .item .item_caption {
        font-size: 16px;
        width: 100%;
        height: auto;
    }

    /* front.css: section.why_us .items .item .text span { font-size: 22px, width: 303px } */
    section.why_us .items .item .text span {
        font-size: 13px;
        width: 100%;
    }


    /* ── Stats bölməsi ── */

    /* front.css: section.stats { height: 824px } */
    section.stats {
        height: auto !important;
        padding: 40px 0;
        background-position: center;
    }

    /* front.css: section.stats .caption { font-size: 64px } */
    section.stats .caption {
        font-size: 22px;
        gap: 15px;
    }

    /* front.css: section.stats .items .item { width: 375px, height: 225px }
       Mobilda 2 sutunlu grid */
    section.stats .items .item {
        width: calc(50% - 10px);
        height: auto;
    }

    section.stats .items .item img {
        height: 60px;
    }

    /* front.css: section.stats .items .item .number { font-size: 42px } */
    section.stats .items .item .number {
        font-size: 22px;
        height: auto;
    }
}


/* ──────────────────────────────────────────────────────
   TicketSelect — ticket_select.html.php şablonu
   front.css-də sabit genişliklər var (1050px, 450px, 1500px).
   Mobilda bunlar override edilir.
   ────────────────────────────────────────────────────── */
@media screen and (max-width: 767px) {

    /* Bütün ticket_select sectionları overflow-dan qorunur */
    section.search.ticket_select,
    section.calendar.ticket_select,
    section.ticket_select {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* ── Search bölməsi ── */

    /* front.css: section.search.ticket_select { height: 200px } */
    section.search.ticket_select {
        height: auto;
        padding: 15px 0;
    }

    /* front.css: section.search.ticket_select .search_box — box-shadow var */
    section.search.ticket_select .search_box {
        flex-direction: column;
        height: auto !important;
        padding: 15px;
        gap: 12px;
        align-items: stretch;
        box-sizing: border-box;
    }

    /* ── Calendar bölməsi ── */

    /* front.css: section.calendar.ticket_select { height: 170px } */
    section.calendar.ticket_select {
        height: auto;
        padding: 10px 0;
    }

    /* front.css: section.calendar.ticket_select .container { gap: 40px } */
    section.calendar.ticket_select .container {
        gap: 5px;
        padding: 0 8px;
        box-sizing: border-box;
        flex-wrap: nowrap;
        justify-content: center;
        overflow-x: hidden;
    }

    /* Mobilda yalnız d-1, d_0, d_1 görünsün */
    section.calendar.ticket_select .date.d-3,
    section.calendar.ticket_select .date.d-2,
    section.calendar.ticket_select .date.d_2,
    section.calendar.ticket_select .date.d_3 {
        display: none;
    }

    /* front.css: section.calendar.ticket_select .date { width: 130px } */
    section.calendar.ticket_select .date {
        width: 58px;
        height: 30px;
        font-size: 10px;
        flex-shrink: 0;
        border-radius: 6px;
    }

    /* front.css: section.calendar.ticket_select .date.d_0 { width: 205px } */
    section.calendar.ticket_select .date.d_0 {
        width: 100px;
        height: 40px;
        font-size: 13px;
    }

    /* front.css: section.calendar.ticket_select .left,.right { width: 50px } */
    section.calendar.ticket_select .left,
    section.calendar.ticket_select .right {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }

    section.calendar.ticket_select .left::before,
    section.calendar.ticket_select .right::before {
        width: 11px;
        height: 11px;
        top: 8px;
        left: 8px;
        border-width: 2px;
    }


    /* ── Result kartları — header ── */

    /* front.css: section.ticket_select .result .header { flex-direction: row, height: 210px } */
    section.ticket_select .result .header {
        flex-direction: column;
        height: auto;
        padding: 0;
        gap: 0;
    }

    /* front.css: section.ticket_select .result .header .trip_name { width: 1050px, padding: 40px 50px 10px 50px }
       width+padding = overflow-un əsas səbəbi. box-sizing: border-box ilə düzəldilir. */
    section.ticket_select .result .header .trip_name {
        width: 100% !important;
        max-width: 100% !important;
        height: auto;
        padding: 15px;
        box-sizing: border-box;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    /* front.css: .price_button { flex-direction: column, width: 450px, height: 210px }
       Mobilda: qiymət yuxarıda, altında [Seç düyməsi] + [sub_place yan-yana] */
    section.ticket_select .result .header .price_button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        height: auto;
        padding: 10px 15px 12px 15px;
        border-left: none;
        gap: 6px;
    }

    /* front.css: .price { font-size: 40px } */
    section.ticket_select .result .header .price_button .price {
        font-size: 24px;
        line-height: 1;
    }

    /* front.css: .button { flex-direction: column, width: 215px, height: 99px }
       Mobilda: Seç düyməsi + sub_place yan-yana bir sırada */
    section.ticket_select .result .header .price_button .button {
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding-top: 0;
    }

    /* front.css: button.select_trip { width: 205px, height: 60px } */
    section.ticket_select .result .header .price_button .button button.select_trip {
        width: 110px;
        height: 40px;
        font-size: 13px;
        flex-shrink: 0;
    }

    /* sub_place: qiymətin altında, seç düyməsinin yanında görünür */
    section.ticket_select .result .header .price_button .button .sub_place {
        flex: 1;
        font-size: 11px;
        white-space: normal;
        text-align: center;
        overflow: visible;
        line-height: 1.3;
        width: auto;
        max-width: none;
    }

    /* front.css: section.ticket_select .result .header .trip_name .links { height: 60px } */
    section.ticket_select .result .header .trip_name .links {
        height: auto;
        flex-wrap: wrap;
        gap: 4px;
    }

    section.ticket_select .result .header .trip_name .links div {
        width: auto;
        border: none;
    }

    /* front.css: section.ticket_select .result .header .trip_name .links a { font-size: 18px } */
    section.ticket_select .result .header .trip_name .links a {
        font-size: 12px;
    }

    /* front.css: div.route { text-wrap: nowrap, height: 150px, gap: 20px } */
    section.ticket_select .result .header .trip_name div.route {
        height: auto;
        gap: 4px;
        width: 100%;
        box-sizing: border-box;
        align-items: center;
    }

    /* Route hər div: flex: 1 ilə yer bölüşsün, min-width:0 overflow üçün */
    section.ticket_select .result div.route > div {
        text-wrap: wrap;
        min-width: 0;
        flex: 1;
    }

    /* Ox/müddət divy (2n) */
    section.ticket_select .result div.route > div:nth-child(2n) {
        flex: 0 0 auto;
        min-width: 60px;
        max-width: 100px;
    }

    /* front.css: .route > div > div:first-child { height: 39px, font-size: 32px } */
    section.ticket_select .result div.route > div > div:first-child {
        font-size: 16px;
        height: auto;
        text-align: center;
    }

    /* front.css: .route > div > div:last-child { height: 27px, font-size: 22px } */
    section.ticket_select .result div.route > div > div:last-child {
        font-size: 12px;
        height: auto;
        text-align: center;
    }

    /* front.css: section.ticket_select .results { width: 1500px } — əsas overflow səbəbi */
    section.ticket_select .results {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
        gap: 15px;
    }

    section.ticket_select .results .result {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }

    /* front.css: section.ticket_select #loading_screen { width: 1500px } */
    section.ticket_select #loading_screen {
        width: 100% !important;
        box-sizing: border-box;
    }


    /* ── Result body (avtobus + sərnişin formu) ── */

    /* front.css: section.ticket_select .result .body { width: 1500px } */
    section.ticket_select .result .body {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* front.css: section.ticket_select .result .ticket_select { flex-direction: row } */
    section.ticket_select .result .ticket_select {
        flex-direction: column;
    }

    /* front.css: section.ticket_select .result .ticket_select .left { width: 1050px, height: 610px } */
    section.ticket_select .result .ticket_select .left {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        height: auto;
        padding: 15px;
        gap: 12px;
    }

    /* front.css: section.ticket_select .result .ticket_select .left .bus_structure { width: 950px, height: 315px } */
    section.ticket_select .result .ticket_select .left .bus_structure {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        height: auto;
        min-height: 180px;
    }

    /* front.css: section.ticket_select .result .ticket_select .right { width: 450px, height: 610px } */
    section.ticket_select .result .ticket_select .right {
        width: 100%;
        height: auto;
        padding: 15px;
        border-top: 1px solid #e0e0e0;
        box-sizing: border-box;
    }

    /* front.css: section.ticket_select .result .ticket_select .right .ticket_icons { width: 350px } */
    section.ticket_select .result .ticket_select .right .ticket_icons {
        width: 100%;
    }

    /* front.css: section.ticket_select .result .ticket_select .right .foreign_check { width: 350px } */
    section.ticket_select .result .ticket_select .right .foreign_check {
        width: 100%;
    }

    /* front.css: section.ticket_select .result .ticket_select .right .info { width: 350px } */
    section.ticket_select .result .ticket_select .right .info {
        width: 100%;
    }

    /* front.css: section.ticket_select .result .ticket_select .right .input { width: 350px } */
    section.ticket_select .result .ticket_select .right .input {
        width: 100%;
        box-sizing: border-box;
    }

    /* front.css: section.ticket_select .result .ticket_select .right .row { width: 350px } */
    section.ticket_select .result .ticket_select .right .row {
        width: 100%;
        flex-wrap: wrap;
    }

    section.ticket_select .result .ticket_select .right button {
        width: 100%;
    }


    /* ── Trip Plan (marşrut planı) ── */

    /* front.css: .trip_plan .header .title { padding: 0 50px, font-size: 22px }
       ::before bus ikonu left:20px, width:21px → icon 41px-də bitir, padding-left ≥ 44px lazımdır */
    section.ticket_select .result .footer .trip_plan .header .title {
        font-size: 15px;
        padding: 0 40px 0 46px;
    }

    /* front.css: .trip_plan.active .body { padding: 40px 0 } */
    section.ticket_select .result .footer .trip_plan.active .body {
        padding: 15px 0;
        gap: 0;
    }

    /* front.css: .trip_plan .body .line { padding: 0 50px } — çox böyük padding */
    section.ticket_select .result .footer .trip_plan .body .line {
        padding: 6px 10px;
        gap: 4px;
    }

    /* front.css: .trip_plan .body .line > div { width: 33%, font-size: 18px } */
    section.ticket_select .result .footer .trip_plan .body .line > div {
        font-size: 12px;
        width: 33%;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Vaxt sütunu daha dar ola bilər */
    section.ticket_select .result .footer .trip_plan .body .line > div:first-child {
        width: 22%;
        flex-shrink: 0;
    }

    /* İstiqamət sütunu daha geniş */
    section.ticket_select .result .footer .trip_plan .body .line > div:nth-child(2) {
        width: 44%;
    }

    /* Dayanacaq sütunu */
    section.ticket_select .result .footer .trip_plan .body .line > div:last-child {
        width: 34%;
    }

    /* Pin ikonu yerini dəyiş */
    section.ticket_select .result .footer .trip_plan .body .line.main_route > div:last-child::before {
        left: -18px;
        width: 16px;
        height: 16px;
    }


    /* ── Popuplar ── */

    /* front.css: .popup_alert { width: 300px, left: calc(50% - 200px), height: 400px } */
    .popup_alert {
        width: calc(100vw - 32px);
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        height: auto;
        min-height: 240px;
        padding: 20px;
        box-sizing: border-box;
    }

    /* front.css: #popup_qarabag, #popup_blacklist { width: 800px, height: 600px } */
    #popup_qarabag,
    #popup_blacklist,
    #popup_fin,
    #popup_fin4 {
        width: calc(100vw - 32px);
        height: auto;
        min-height: 240px;
    }

    /* front.css: #popup_blacklist .popup { width: 600px, height: 400px } */
    #popup_blacklist .popup {
        width: 100%;
        height: auto;
        min-height: 0;
    }

    /* front.css: .popup_alert.doc .popup .text img { height: 300px } */
    .popup_alert.doc .popup .text img {
        height: 150px;
        width: auto;
    }

    .popup_alert.doc .row {
        flex-direction: column;
        align-items: center;
    }

    /* front.css: .popup_alert .ok_button, .confirm_button { width: 240px } */
    .popup_alert .ok_button,
    .popup_alert .confirm_button {
        width: 100%;
        box-sizing: border-box;
    }

}

/* front.css: .bi-circle div { font-size: 12px; width: 120px; left: calc(50% - 60px); top: -15px } */
.bi-circle div {
    font-size: 10px;
    width: 80px;
    left: calc(50% - 40px);
    top: -12px;
}


/* Android WEB BANNER*/
.custom-app-banner {
    display: none; /* JS ilə yalnız Android-də açılacaq */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #f1f1f1;
    border-bottom: 1px solid #ccc;
    z-index: 999999;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

.banner-close {
    font-size: 24px;
    color: #888;
    margin-right: 10px;
    cursor: pointer;
}

.app-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    margin-right: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.app-info {
    flex: 1;
}

.app-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.app-author {
    font-size: 11px;
    color: #666;
}

.app-price {
    font-size: 10px;
    color: #999;
}

.app-get-btn {
    background: transparent;
    color: #4370d8;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 4px;
    text-transform: uppercase;
}