.public-discount-home{
    max-width:1180px;
    margin:18px auto 24px;
    padding:22px 26px;
    box-sizing:border-box;
    border-radius:20px;
    background:linear-gradient(135deg,#241b35 0%,#392651 58%,#18454a 100%);
    color:#fff;
    position:relative;
    overflow:hidden;
    box-shadow:0 12px 35px rgba(35,25,50,.18);
    direction:rtl;
}

.public-discount-home:before{
    content:"";
    position:absolute;
    width:230px;
    height:230px;
    border-radius:50%;
    background:rgba(65,220,199,.11);
    top:-130px;
    right:-80px;
}

.public-discount-home-inner{
    position:relative;
    z-index:2;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:25px;
}

.public-discount-home-content{
    flex:1;
}

.public-discount-badge{
    display:inline-block;
    background:#f0c65d;
    color:#3a2b08;
    padding:6px 13px;
    border-radius:30px;
    font-size:11px;
    font-weight:bold;
    margin-bottom:10px;
}

.public-discount-home h2{
    margin:0 0 8px;
    padding:0;
    font-size:21px;
    color:#fff;
    line-height:1.8;
}

.public-discount-home h2 strong{
    color:#4be0cb;
}

.public-discount-description{
    font-size:12px;
    line-height:2;
    color:rgba(255,255,255,.78);
}

.public-discount-action{
    flex:0 0 auto;
}

.public-discount-button{
    display:inline-block;
    padding:12px 22px;
    border-radius:12px;
    background:#48d7c4;
    color:#173b3d !important;
    text-decoration:none;
    font-size:12px;
    font-weight:bold;
    transition:.2s;
    box-shadow:0 6px 20px rgba(72,215,196,.22);
}

.public-discount-button:hover{
    background:#5de4d1;
    transform:translateY(-2px);
}

.public-discount-expire{
    margin-top:9px;
    font-size:11px;
    color:#f0c65d;
}

@media(max-width:700px){

    .public-discount-home{
        margin:12px 8px 18px;
        padding:18px 15px;
        border-radius:16px;
    }

    .public-discount-home-inner{
        display:block;
        text-align:center;
    }

    .public-discount-home h2{
        font-size:17px;
    }

    .public-discount-description{
        font-size:11px;
    }

    .public-discount-action{
        margin-top:15px;
    }

    .public-discount-button{
        width:100%;
        box-sizing:border-box;
        padding:12px 10px;
    }
}
/* Teacher public discount countdown */
.discount-premium-box{
    max-width:1180px;
    margin:14px auto 22px;
    padding:18px 22px;
    box-sizing:border-box;
    position:relative;
    overflow:hidden;
    direction:rtl;
    border-radius:18px;
    background:linear-gradient(135deg,#241b35 0%,#32234b 55%,#173b42 100%);
    border:1px solid rgba(39,210,190,.55);
    box-shadow:0 12px 35px rgba(20,15,35,.22);
    color:#fff;
}

.discount-premium-box:before{
    content:"";
    position:absolute;
    width:220px;
    height:220px;
    border-radius:50%;
    background:rgba(39,210,190,.10);
    top:-130px;
    right:-80px;
}

.discount-premium-content{
    position:relative;
    z-index:2;
}

.discount-premium-top{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:9px;
}

.discount-premium-badge{
    padding:6px 14px;
    border-radius:30px;
    background:linear-gradient(90deg,#d9aa3b,#f0cc70);
    color:#382a0a;
    font-size:12px;
    font-weight:bold;
}

.discount-premium-title{
    font-size:18px;
    font-weight:800;
    color:#fff;
}

.discount-premium-title strong{
    color:#45dcc7;
}

.discount-premium-message{
    text-align:center;
    font-size:13px;
    color:rgba(255,255,255,.78);
    margin-bottom:15px;
}

.discount-premium-timer{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:9px;
    direction:ltr;
}

.discount-time-box{
    width:72px;
    height:70px;
    border-radius:13px;
    background:rgba(255,255,255,.10);
    border:1px solid rgba(255,255,255,.15);
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
}

.discount-time-number{
    font-size:25px;
    line-height:27px;
    font-weight:900;
    color:#fff;
    font-family:Arial,sans-serif;
}

.discount-time-label{
    margin-top:4px;
    font-size:10px;
    color:rgba(255,255,255,.65);
}

.discount-time-separator{
    font-size:22px;
    font-weight:bold;
    color:#45dcc7;
}

.discount-seconds-box{
    border-color:rgba(240,204,112,.65);
    background:rgba(240,204,112,.13);
}

.discount-seconds-box .discount-time-number{
    color:#f0cc70;
}

.discount-premium-warning{
    margin-top:13px;
    text-align:center;
    font-size:12px;
    color:#f0cc70;
}

@keyframes teacherDiscountPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(240,204,112,0);
    }

    50% {
        transform: scale(1.10);
        box-shadow: 0 0 25px rgba(240,204,112,.8);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(240,204,112,0);
    }
}

.discount-premium-box .discount-seconds-box {
    animation: teacherDiscountPulse 1s ease-in-out infinite !important;
    transform-origin: center center;
}
/* =========================================
   OSTADHONAR - CHECKOUT DISCOUNT CARD
   ========================================= */

.ostad-checkout-discount {
    position: relative;
    overflow: hidden;
    margin: 14px 0 10px;
    padding: 0;
    border-radius: 18px;
    background:
        radial-gradient(circle at 8% 15%, rgba(68,220,199,.16), transparent 28%),
        linear-gradient(135deg,#261a39 0%,#35234c 55%,#173d43 100%);
    border: 1px solid rgba(72,215,196,.42);
    box-shadow: 0 10px 30px rgba(32,20,48,.18);
    direction: rtl;
    color: #fff;
}


/* نت‌های تزئینی */
.ostad-checkout-discount:before {
    content: "♫";
    position: absolute;
    left: 20px;
    top: -18px;
    font-size: 95px;
    line-height: 1;
    color: rgba(255,255,255,.045);
    transform: rotate(-12deg);
    pointer-events: none;
}


/* موج صوتی پایین کارت */
.ostad-checkout-discount:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        #45dbc6,
        #f0c65d,
        #45dbc6,
        transparent
    );
    opacity: .8;
}


.ostad-checkout-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid rgba(255,255,255,.09);
}


.ostad-checkout-head-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 800;
}


.ostad-checkout-music-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(72,215,196,.14);
    border: 1px solid rgba(72,215,196,.32);
    color: #4be0cb;
    font-size: 18px;
}


.ostad-checkout-applied {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(240,198,93,.15);
    border: 1px solid rgba(240,198,93,.36);
    color: #f0cc70;
    font-size: 10px;
    white-space: nowrap;
}


.ostad-checkout-body {
    position: relative;
    z-index: 2;
    padding: 13px 16px 15px;
}


.ostad-checkout-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    font-size: 11px;
    color: rgba(255,255,255,.72);
}


.ostad-checkout-old-price {
    color: rgba(255,255,255,.52);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}


.ostad-checkout-saving {
    color: #4be0cb;
    font-weight: 800;
}


.ostad-checkout-final {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255,255,255,.18);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}


.ostad-checkout-final-label {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}


.ostad-checkout-final-price {
    text-align: left;
}


.ostad-checkout-final-price strong {
    display: block;
    color: #f0cc70;
    font-size: 19px;
    line-height: 1.4;
    font-weight: 900;
}


.ostad-checkout-final-price small {
    display: block;
    margin-top: 1px;
    color: rgba(255,255,255,.50);
    font-size: 9px;
}


.ostad-checkout-note {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.55);
    font-size: 9px;
}


.ostad-checkout-note span {
    color: #4be0cb;
}


/* موبایل */
@media(max-width:600px) {

    .ostad-checkout-discount {
        border-radius: 14px;
    }

    .ostad-checkout-head {
        padding: 12px;
    }

    .ostad-checkout-body {
        padding: 11px 12px 14px;
    }

    .ostad-checkout-head-title {
        font-size: 12px;
    }

    .ostad-checkout-music-icon {
        width: 30px;
        height: 30px;
    }

    .ostad-checkout-final-price strong {
        font-size: 17px;
    }
}
/* =========================================
   RESERVE SUMMARY - OSTADHONAR STYLE
   ========================================= */

.ostad-reserve-summary {
    width: 98% !important;
    max-width: 600px !important;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 18px;
    background:
        radial-gradient(circle at 90% 0%, rgba(72,215,196,.10), transparent 28%),
        linear-gradient(135deg,#261a39 0%,#332247 55%,#183c42 100%);
    border: 1px solid rgba(72,215,196,.38);
    box-shadow: 0 10px 30px rgba(32,20,48,.15);
    color: #fff;
}

.ostad-reserve-summary th,
.ostad-reserve-summary td {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.07) !important;
    padding: 10px 14px !important;
    color: rgba(255,255,255,.82) !important;
    font-size: 11px;
}

.ostad-reserve-summary th {
    width: 34%;
    color: rgba(255,255,255,.55) !important;
    font-weight: 500;
}

.ostad-reserve-summary td {
    color: #fff !important;
    font-weight: 600;
}

.ostad-reserve-summary tr:last-child th,
.ostad-reserve-summary tr:last-child td {
    border-bottom: 0 !important;
}

.ostad-reserve-summary select {
    min-width: 52px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(72,215,196,.35);
    background: rgba(255,255,255,.10);
    color: #fff;
    outline: none;
}

.ostad-reserve-summary option {
    color: #222;
}

/* باکس تخفیف وقتی داخل خلاصه رزرو است */
.ostad-reserve-summary .ostad-checkout-discount {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: rgba(0,0,0,.08);
}

.ostad-reserve-summary td[colspan="2"] {
    padding: 0 !important;
}

/* مبلغ‌ها */
.ostad-reserve-summary strong {
    font-weight: 800;
}

@media(max-width:600px) {

    .ostad-reserve-summary th,
    .ostad-reserve-summary td {
        padding: 9px 10px !important;
        font-size: 10px;
    }

    .ostad-reserve-summary th {
        width: 38%;
    }
}
/* FIX reserve summary old table styles */

table.ostad-reserve-summary {
    background: #261a39 !important;
    background-image:
        radial-gradient(circle at 90% 0%, rgba(72,215,196,.12), transparent 30%),
        linear-gradient(135deg,#261a39 0%,#332247 55%,#183c42 100%) !important;
}

table.ostad-reserve-summary tr {
    background: transparent !important;
}

table.ostad-reserve-summary th {
    background: rgba(255,255,255,.035) !important;
    color: rgba(255,255,255,.58) !important;
}

table.ostad-reserve-summary td {
    background: rgba(255,255,255,.015) !important;
    color: #ffffff !important;
}

table.ostad-reserve-summary tr:nth-child(even) th,
table.ostad-reserve-summary tr:nth-child(even) td {
    background: rgba(255,255,255,.035) !important;
}

/* Keep discount section in the same visual language */
.ostad-reserve-summary .ostad-checkout-discount {
    background:
        radial-gradient(circle at 8% 15%, rgba(68,220,199,.13), transparent 28%),
        linear-gradient(135deg,#2a1d3d 0%,#34234a 55%,#193e44 100%) !important;
    border-top: 1px solid rgba(72,215,196,.25) !important;
}
/* Reserve summary header */

.ostad-reserve-header td {
    padding: 0 !important;
    border-bottom: 1px solid rgba(72,215,196,.28) !important;
}

.ostad-reserve-header-inner {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 16px;
    background:
        linear-gradient(
            90deg,
            rgba(72,215,196,.08),
            rgba(240,198,93,.05),
            transparent
        );
}

.ostad-reserve-header-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(72,215,196,.12);
    border: 1px solid rgba(72,215,196,.35);
    color: #4be0cb;
    font-size: 20px;
}

.ostad-reserve-header-inner strong {
    display: block;
    color: #fff;
    font-size: 14px;
    line-height: 1.7;
}

.ostad-reserve-header-inner small {
    display: block;
    margin-top: 1px;
    color: rgba(255,255,255,.48);
    font-size: 9px;
    font-weight: 400;
}

@media(max-width:600px) {

    .ostad-reserve-header-inner {
        padding: 12px;
    }

    .ostad-reserve-header-icon {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 18px;
    }

    .ostad-reserve-header-inner strong {
        font-size: 12px;
    }
}
/* Centered premium reserve header */

.ostad-reserve-header-inner {
    justify-content: center !important;
    text-align: center !important;
    flex-direction: column;
    gap: 6px;
}

.ostad-reserve-header-inner strong {
    font-size: 17px !important;
    line-height: 1.8;
    letter-spacing: .2px;
    text-shadow:
        0 0 8px rgba(72,215,196,.25),
        0 2px 10px rgba(0,0,0,.25);
}

.ostad-reserve-header-inner small {
    font-size: 11px !important;
    line-height: 1.9;
    color: rgba(255,255,255,.68) !important;
}

.ostad-reserve-header-icon {
    margin-bottom: 2px;
    box-shadow:
        0 0 16px rgba(72,215,196,.18);
}
/* =========================================
   DISCOUNT BADGE - TEACHER CARD
   ========================================= */

.ostad-teacher-discount-badge{
    position:relative;
    overflow:hidden;
    margin:0 6px 9px;
    padding:8px 10px;
    border-radius:11px;
    text-align:center;
    direction:rtl;
    background:
        linear-gradient(135deg,#2b1c40 0%,#3b2852 55%,#174148 100%);
    border:1px solid rgba(72,215,196,.45);
    box-shadow:0 5px 16px rgba(35,22,52,.16);
}

.ostad-teacher-discount-badge:before{
    content:"";
    position:absolute;
    width:65px;
    height:65px;
    border-radius:50%;
    top:-38px;
    left:-18px;
    background:rgba(72,215,196,.10);
}

.ostad-teacher-discount-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:22px;
    height:22px;
    margin-left:5px;
    border-radius:7px;
    background:rgba(72,215,196,.13);
    color:#4be0cb;
    font-size:14px;
    vertical-align:middle;
}

.ostad-teacher-discount-badge strong{
    position:relative;
    z-index:2;
    display:inline;
    color:#f0cc70;
    font-size:11px;
    font-weight:900;
    text-shadow:0 0 10px rgba(240,204,112,.15);
}

.ostad-teacher-discount-badge small{
    position:relative;
    z-index:2;
    display:block;
    margin-top:4px;
    color:rgba(255,255,255,.68);
    font-size:9px;
    font-weight:500;
}

.ostad-teacher-discount-badge:after{
    content:"";
    position:absolute;
    bottom:0;
    right:15%;
    width:70%;
    height:2px;
    border-radius:5px;
    background:linear-gradient(
        90deg,
        transparent,
        #48d7c4,
        #f0c65d,
        #48d7c4,
        transparent
    );
}
/* Teacher discount badge - attached to card */

.ostad-teacher-discount-badge{
    position:relative;
    margin:0 8px 12px;
    padding:9px 10px 11px;
    border-radius:12px;
    text-align:center;
    direction:rtl;
    background:
        linear-gradient(135deg,#2b1c40 0%,#3a2750 58%,#18444a 100%);
    border:1px solid rgba(72,215,196,.48);
    box-shadow:0 6px 18px rgba(35,22,52,.18);
    overflow:visible;
}

.ostad-teacher-discount-main{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:5px;
}

.ostad-teacher-discount-main strong{
    color:#f0cc70;
    font-size:11px;
    font-weight:900;
}

.ostad-teacher-discount-badge small{
    display:block;
    margin-top:4px;
    color:rgba(255,255,255,.72);
    font-size:9px;
}

.ostad-teacher-discount-arrow{
    position:absolute;
    left:50%;
    bottom:-9px;
    transform:translateX(-50%);
    width:0;
    height:0;
    border-left:9px solid transparent;
    border-right:9px solid transparent;
    border-top:9px solid #244047;
    filter:drop-shadow(0 2px 2px rgba(0,0,0,.12));
}
.ostad-teacher-discount-badge{
    margin-bottom:3px !important;
}

.ostad-teacher-discount-arrow{
    bottom:-8px;
}
/* Center homepage instrument cards */
#home-instruments .catslist{
    text-align:center !important;
}
/* Center the whole instrument section on homepage */
#home-instruments .bb_box_cats{
    float:none !important;
    margin-left:auto !important;
    margin-right:auto !important;
}