﻿body {
    background: #f6f8fb;
}

.gw-page {
    direction: rtl;
}

.gw-loading {
    min-height: 300px;
}

/* ==========================
    General
========================== */

body {
    background: #f5f7fb;
}

.gw-page {
    direction: rtl;
}

.card {
    border-radius: 22px;
}

/* ==========================
    Hero
========================== */

.gw-hero {
    border-radius: 28px;
    background: linear-gradient(135deg,#ffffff 0%,#faf8ff 100%);
    border: 1px solid #eceef5;
    box-shadow: 0 15px 40px rgba(0,0,0,.05);
}

/* ==========================
    Poster
========================== */

.gw-poster-wrap {
    height: 100%;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg,#f7f8fc,#eef2f8);
}

.gw-poster {
    width: 100%;
    border-radius: 22px;
    object-fit: cover;
    aspect-ratio: 3/4;
    box-shadow: 0 20px 40px rgba(0,0,0,.18);
}

/* ==========================
    Title
========================== */

.gw-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #202842;
    line-height: 1.5;
}

.gw-desc {
    color: #5d6478;
    font-size: 15px;
    line-height: 2;
}

/* ==========================
    Genres
========================== */

.gw-badge {
    padding: 8px 18px;
    border-radius: 100px;
    background: #f3f4f8;
    color: #5a6174;
    border: none;
    font-weight: 600;
    transition: .25s;
}

    .gw-badge:hover {
        background: #6f42c1;
        color: #fff;
    }

/* ==========================
    Info Cards
========================== */

.gw-info-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #edf0f5;
    height: 100%;
    transition: .3s;
}

    .gw-info-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0,0,0,.06);
    }

.gw-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #f3ebff;
    color: #6f42c1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.gw-info-card small {
    font-size: 12px;
    color: #9096a7;
}

.gw-info-card div:last-child {
    font-weight: 700;
    color: #283046;
}

/* ==========================
    Section Header
========================== */

.section-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f3ebff;
    color: #6f42c1;
    margin-left: 12px;
    font-size: 18px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
}



/* =================================
   Seat Section
================================= */


.gw-seat-card {
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
}



.gw-seat-wrap {
    min-height: 200px;
}



/* Seat map container */

.zb-seatmap {
    width: 100%;
    overflow: auto;
    padding: 20px;
}



/* Hall */

#hall {
    margin: 30px auto;
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 15px 45px rgba(0,0,0,.08);
}



/* Scene */


.scene {
    background: linear-gradient( 135deg, #6f42c1, #8b5cf6 );
    color: #fff;
    border-radius: 0 0 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}



/* Legend */
#legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    background: #fafbff;
    padding: 15px;
    border-radius: 20px;
}


#legend .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}


#legend label {
    font-size: 13px;
    color: #555;
    margin: 0;
}


#legend .instance {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    display: inline-block;
}


/* موبایل */
@media(max-width:768px){

    #legend {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 15px 12px;
    }


    #legend .legend-item {
        justify-content: flex-start;
        font-size: 12px;
    }


    #legend .instance {
        width: 20px;
        height: 20px;
        flex-shrink:0;
    }

}




/* seat */
.chair {

    width:34px !important;
    height:34px !important;

    border-radius:10px;

    border:1px solid #6f42c1;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:12px;
    font-weight:600;

    color:#333;

    cursor:pointer;

    position:absolute;

    box-sizing:border-box;

    white-space:nowrap;

    overflow:visible;

    transition:.2s ease;

    /* فاصله بصری */
    padding:2px;

}


.chair::before {

    content:"";

    position:absolute;

    inset:3px;

    border-radius:7px;

    background:inherit;

    z-index:-1;

}



.chair input {
    display:none;
}



.chair:hover {

    transform:scale(1.15);

    z-index:20;

}



.chair:has(input:checked) {

    background:#6f42c1;

    color:#fff;

    transform:scale(1.15);

    z-index:30;

}
@media(max-width:768px){

    .chair {
        width:38px !important;
        height:38px !important;
        border-radius:12px;
        font-size:13px;
    }
}


/* states */
.normal {
    background: #fff;
    border: 1px solid #6f42c1;
}

.selected {
    background: #6f42c1;
}


.reserved {
    background: #ef4444 !important;
    color: #fff !important;
    border: none !important;
}



.pending {
    background: #f59e0b !important;
    color: #fff !important;
    border: none !important;
}



.locked-chair {
    background: #d1d5db !important;
    color: #fff !important;
    border: none !important;
    cursor: not-allowed;
}



/* payment */


.checkout-proced {
    position: sticky;
    bottom: 15px;
    margin: 20px auto;
    width: max-content;
    background: #fff;
    padding: 15px 20px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,.15);
}



#count_selct {
    border: 1px solid #ddd !important;
    border-radius: 12px;
    padding: 12px 18px !important;
    background: #fff;
}




@media(max-width:768px) {


    .zb-seatmap {
        padding: 10px;
    }


    #legend {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
    }



    .checkout-proced {
        width: 100%;
        display: flex;
        gap: 10px;
    }



    #count_selct,
    #bt_pay {
        flex: 1;
    }
}

.seat-scroll {
    overflow: auto;
    padding-bottom: 20px;
}

.zb-seatmap-container {
    width: 100%;
    direction: ltr;
}


.seat-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    
    justify-content: center;
    align-items: flex-start;
}


/* خود نقشه */
#hall {
    position: relative;
    flex: 0 0 auto;
    margin: 0 auto;
}



/* دسکتاپ */

@media(min-width:992px) {
    .seat-scroll {
        justify-content: center;
    }
}



/* موبایل */

@media(max-width:991px) {

    .seat-scroll {
        justify-content: flex-start;
        /*padding-left: 20px;*/
        padding-right: 20px;
    }


    #hall {
        margin-left: 0;
        margin-right: 0;
    }
}

.hall-wrapper {
    display: flex;
    justify-content: center;
    width: max-content;
}

/* ==========================
    Badge
========================== */

#gw-sale-badge {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
}

/* ==========================
    Loading
========================== */

.gw-loading {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ==========================
    Mobile
========================== */

@media(max-width:991px) {

    .gw-title {
        font-size: 1.7rem;
        text-align: center;
    }

    .gw-desc {
        text-align: center;
    }

    .gw-poster-wrap {
        padding: 18px;
    }
}

@media(max-width:767px) {

    .gw-title {
        font-size: 1.45rem;
    }

    .gw-poster {
        max-width: 260px;
        margin: auto;
        display: block;
    }

    .gw-info-card {
        padding: 14px;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .card-body {
        padding: 22px !important;
    }
}

/* =====================================
   Genres
===================================== */

.gw-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 50px;
    background: #f5f3ff;
    color: #6f42c1;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #e9ddff;
    transition: .25s;
}


    .gw-badge:hover {
        background: #6f42c1;
        color: #fff;
        transform: translateY(-2px);
    }



/* =====================================
   Personnel Section
===================================== */


.gw-group-title {
    font-size: 18px;
    font-weight: 800;
    color: #252b3a;
}


.section-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #f3ebff;
    color: #6f42c1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}



.gw-person {
    border-radius: 22px;
    background: #fff;
    overflow: hidden;
    transition: .3s;
}


    .gw-person:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 35px rgba(0,0,0,.08) !important;
    }



    .gw-person .card-body {
        padding: 18px;
    }



.gw-person-avatar {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    object-fit: cover;
    background: #f1f3f7;
    flex-shrink: 0;
}



.gw-person-name {
    font-size: 15px;
    font-weight: 800;
    color: #202636;
    line-height: 1.8;
}



.gw-person-role {
    margin-top: 3px;
    font-size: 13px;
    color: #8b93a7;
}

/* گروه عوامل */

.gw-person-group {
    background: #fff;
    border-radius: 24px;
    padding: 22px;
    border: 1px solid #edf0f5;
}



/* Header گروه */

.gw-group-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e5e7eb;
}



.gw-group-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}



.gw-group-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #f3ebff;
    color: #6f42c1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}



.gw-group-title {
    font-weight: 800;
    color: #202636;
}



.gw-group-title-wrap small {
    color: #9ca3af;
}





/* کارت شخص */


.gw-person-card {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    border-radius: 18px;
    background: #fafbff;
    border: 1px solid #edf0f5;
    transition: .3s;
}



    .gw-person-card:hover {
        transform: translateY(-5px);
        background: #fff;
        box-shadow: 0 15px 35px rgba(0,0,0,.08);
    }





.gw-person-avatar {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
    border-radius: 18px;
    object-fit: cover;
}




.gw-person-name {
    font-size: 15px;
    font-weight: 800;
    color: #1f2937;
}



.gw-person-role {
    margin-top: 5px;
    font-size: 13px;
    color: #8b93a7;
}




@media(max-width:576px) {


    .gw-person-group {
        padding: 15px;
        border-radius: 18px;
    }


    .gw-person-card {
        padding: 14px;
    }


    .gw-person-avatar {
        width: 58px;
        height: 58px;
    }
}

/* =====================================
   Sans Cards
===================================== */


.gw-sans-card {
    position: relative;
    cursor: pointer;
    border-radius: 24px;
    border: 1px solid #edf0f5;
    background: #fff;
    overflow: hidden;
    transition: .3s;
}



    .gw-sans-card:hover {
        transform: translateY(-7px);
        box-shadow: 0 18px 40px rgba(0,0,0,.09);
    }



    .gw-sans-card.active {
        border: 2px solid #6f42c1;
        background: linear-gradient( 135deg, #ffffff, #faf5ff );
        box-shadow: 0 15px 35px rgba(111,66,193,.2);
    }



/* سانس */

.gw-sans-date {
    font-size: 18px;
    font-weight: 800;
    color: #202636;
}



.gw-remained {
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 50px;
    background: #ecfdf3;
    color: #15803d;
    font-size: 12px;
    font-weight: 700;
}



.gw-price {
    font-size: 18px;
    font-weight: 900;
    color: #5f35ad;
}



/* دکمه سانس */


.gw-sans-card .btn {
    height: 45px;
    border-radius: 14px;
    font-weight: 700;
}



/* =====================================
   Empty State
===================================== */


.gw-empty-state {
    padding: 55px 25px;
    border-radius: 24px;
    background: linear-gradient( 180deg, #ffffff, #fafbff );
    border: 1px dashed #d8deea;
}



.gw-empty-icon {
    width: 70px;
    height: 70px;
    margin: auto;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3ebff;
    color: #6f42c1;
    font-size: 32px;
}



.gw-empty-state h4 {
    font-size: 18px;
    font-weight: 800;
    color: #202636;
}



/* =====================================
   Mobile
===================================== */


@media(max-width:767px) {


    .gw-person-avatar {
        width: 58px;
        height: 58px;
        border-radius: 16px;
    }


    .gw-person-name {
        font-size: 14px;
    }


    .gw-sans-date {
        font-size: 16px;
    }


    .gw-price {
        font-size: 16px;
    }
}

.gw-buy-btn {
    height: 48px;
    padding: 0 28px;
    border-radius: 16px;
    background: linear-gradient(135deg,#6f42c1,#8b5cf6);
    color: #fff;
    font-weight: 800;
    border: none;
    display: flex;
    align-items: center;
    transition: .3s;
}

/* Hero Buy Button */

.gw-buy-btn {
    height: 48px;
    padding: 0 28px;
    border-radius: 16px;
    background: linear-gradient( 135deg, #6f42c1, #8b5cf6 );
    color: #fff;
    font-weight: 800;
    border: none;
    display: flex;
    align-items: center;
    transition: .3s;
}


    .gw-buy-btn:hover {
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 12px 25px rgba(111,66,193,.35);
    }



.gw-info-btn {
    height: 48px;
    padding: 0 24px;
    border-radius: 16px;
    background: #f8fafc;
    color: #374151;
    border: 1px solid #e5e7eb;
    font-weight: 700;
}


    .gw-info-btn:hover {
        background: #fff;
        border-color: #6f42c1;
        color: #6f42c1;
    }



@media(max-width:576px) {


    .gw-buy-btn,
    .gw-info-btn {
        width: 100%;
        justify-content: center;
    }
}
.seat-scroll {
    width:100%;
    overflow-x:auto;
    overflow-y:auto;
    /*padding:30px;*/
}


.hall-wrapper {
    display:flex;
    justify-content:center;
    align-items:center;
    min-width:max-content;
}


#hall {
    position:relative;
    overflow:visible !important;
}

/* checkout */
.seat-checkout-card {

    margin-top:35px;

    background:#ffffff;

    border-radius:24px;

    padding:25px;

    border:1px solid #eee;

    box-shadow:
        0 10px 30px rgba(0,0,0,.06);

}


/* header */

.seat-checkout-header {

    display:flex;

    align-items:center;

    gap:15px;

    padding-bottom:20px;

    margin-bottom:20px;

    border-bottom:1px solid #eee;

}


.checkout-icon {

    width:50px;
    height:50px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:16px;

    background:#6f42c1;

    color:#fff;

    font-size:22px;

}


.seat-checkout-header h5 {

    font-weight:800;

    color:#222;

}


.seat-checkout-header small {

    color:#777;

}



/* body */

.seat-checkout-body {

    display:flex;

    align-items:center;

    justify-content:center;

    gap:15px;

}


#count_selct {

    max-width:300px;

    height:48px;

    border-radius:14px;

}



/* mobile */

@media(max-width:768px){

    .seat-checkout-card{

        padding:18px;

        border-radius:20px;

    }


    .seat-checkout-body{

        flex-direction:column;

    }


}

.gw-pay-modal {

    border-radius:28px;
    overflow:hidden;
    box-shadow:0 20px 60px rgba(0,0,0,.15);

}


.pay-header .pay-icon {

    width:70px;
    height:70px;
    margin:auto;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:#f0ebff;

    color:#6f42c1;

    font-size:32px;

}



.gw-pay-options {

    display:flex;
    flex-direction:column;
    gap:12px;

}



.pay-option {

    cursor:pointer;

    display:block;

    position:relative;

}



.pay-option input {

    position:absolute;

    opacity:0;

}



.pay-content {


    display:flex;

    align-items:center;

    gap:15px;


    padding:15px 18px;


    background:#f8f9fc;


    border:1px solid #e9e9ef;


    border-radius:16px;


    transition:.25s ease;
    color:black;

    font-size:14px;


}



.pay-content i {

    width:38px;
    height:38px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:12px;

    background:#fff;

    color:#6f42c1;

    font-size:20px;

}



.pay-option:hover .pay-content {


    transform:translateY(-2px);

    border-color:#6f42c1;

}




.pay-option input:checked + .pay-content {


    background:#f0ebff;

    border-color:#6f42c1;

    box-shadow:
    0 8px 20px rgba(111,66,193,.15);

}



.pay-option input:checked + .pay-content i {

    background:#6f42c1;

    color:white;

}




.gw-pay-btn {


    border-radius:16px;

    padding:14px;

    font-size:16px;

    font-weight:600;

}



/* موبایل */

@media(max-width:576px){


    .modal-dialog {

        margin:12px;

    }


    .gw-pay-modal {

        border-radius:22px;

    }


    .pay-content {

        padding:13px;
        color:black;
        font-size:13px;

    }


}

/* اصلاح نمایش مودال در موبایل */
#select_pay-view .modal-dialog {

    width: calc(100% - 24px);
    max-width: 500px;

    margin: 12px auto;

    min-height: calc(100vh - 24px);

    display: flex;
    align-items: center;

}


#select_pay-view .modal-content {

    width:100%;

    max-height: calc(100vh - 40px);

    border-radius:24px;

    overflow:hidden;

}



#select_pay-view .modal-body {

    overflow-y:auto;

    max-height: calc(100vh - 80px);

    padding:20px !important;

}




@media(max-width:576px){


    #select_pay-view .modal-dialog {

        margin:12px;

        width:auto;

        min-height:calc(100vh - 24px);

    }


    #select_pay-view .modal-content {

        border-radius:20px;

    }


    #select_pay-view .modal-body {

        padding:20px 16px !important;

    }


}