/* ==========================================================================
   Miss Bulgaria Voting System - Frontend Styles (Cleaned & Optimized)
   Preserves 100% computed visual appearance across desktop, tablet & mobile.
   ========================================================================== */

:root {
    --mbv-bg:#080808;
    --mbv-card:#151515;
    --mbv-gold:#D4AF37;
    --mbv-text:#ffffff;
    --mbv-muted:#b5b5b5;
}

body .mbv-card:hover{
    transform: translateY(-10px);
    border-color: var(--mbv-gold);
}

body .mbv-card h2{
    color: var(--mbv-text);
    font-size: 24px;
    margin-top: 20px;
}

body .mbv-card p{
    color: var(--mbv-muted);
    font-size: 16px;
}

body .mbv-vote-btn{
    background: transparent;
    color: var(--mbv-gold);
    border: 2px solid var(--mbv-gold);
    padding: 12px 35px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    transition: .3s;
}

body .mbv-vote-btn:hover{
    background: var(--mbv-gold);
    color: #000;
    transform: scale(1.05);
}

body .mbv-buy-votes:hover{
    background: #D4AF37;
    color: #000;
}

body .mbv-buy-votes.success{
    background: #D4AF37;
    color: #000;
}

body .mbv-leaderboard{
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 40px;
}

body .mbv-ranking-card:hover{
    transform: translateX(8px);
    border-color: #D4AF37;
}

body .mbv-rank-number{
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #D4AF37;
    color: #000;
    font-size: 22px;
    font-weight: 700;
}

body .mbv-rank-image img{
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #D4AF37;
}

body .mbv-rank-info h3{
    color: #fff;
    margin: 0 0 8px;
    font-size: 22px;
}

body .mbv-rank-info span{
    color: #D4AF37;
    font-weight: 700;
}

body .mbv-vote-btn.loading{
    position: relative;
    pointer-events: none;
    opacity: .7;
}

body .mbv-buy-votes.loading{
    opacity: .7;
    cursor: wait;
    position: relative;
    pointer-events: none;
}

body .mbv-vote-btn.loading::after{
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #000;
    border-top-color: transparent;
    border-radius: 50%;
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
    animation: mbv-spin .8s linear infinite;
}

body .mbv-buy-votes.loading::after{
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #000;
    border-top-color: transparent;
    border-radius: 50%;
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
    animation: mbv-spin .8s linear infinite;
}

body .mbv-modal{
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

body .mbv-modal.active{
    display: flex;
}

body .mbv-modal-content{
    width: 90%;
    max-width: 450px;
    background: #151515;
    border: 1px solid #D4AF37;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
}

body .mbv-modal-content h2{
    color: #fff;
}

body .mbv-modal-content p{
    color: #b5b5b5;
}

body .mbv-close-modal{
    color: #D4AF37;
    cursor: pointer;
    font-size: 24px;
    position: absolute;
}

body .mbv-success-popup{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

body .mbv-success-popup.active{
    display: flex;
}

body .mbv-success-box{
    position: relative;
    width: 420px;
    max-width: 90%;
    background: #111;
    border: 2px solid #d8af28;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    color: white;
    box-shadow: 0 0 30px rgba(216,175,40,.35);
    animation: mbvPopup .35s ease;
}

body .mbv-success-box h2{
    color: #d8af28;
    font-size: 30px;
    margin-bottom: 15px;
}

body .mbv-success-box p{
    color: #ccc;
    font-size: 16px;
}

body .mbv-success-details{
    margin-top: 25px;
    padding: 20px;
    border-radius: 12px;
    background: #0b0b0b;
    border: 1px solid #333;
}

body #mbv-success-name{
    color: white;
    font-size: 22px;
}

body #mbv-success-votes{
    display: block;
    margin-top: 10px;
    color: #d8af28;
    font-size: 20px;
    font-weight: bold;
}

body .mbv-ranking-card.leader{
    border-color: #d8af28;
}

body .mbv-ranking-card small{
    display: block;
    margin-top: 8px;
    color: #888;
    font-size: 13px;
}

body .mbv-ranking-card.leader small{
    color: #d8af28;
}

body .mbv-rank-info{
    flex: 1;
}

body .mbv-ranking-card.voted-candidate{
    border-color: #d8af28;
    box-shadow: 0 0 25px rgba(216,175,40,.5);
    animation: mbvVoteGlow 1.5s infinite alternate;
}

body .mbv-your-vote-badge{
    display: none !important;
    position: absolute;
    top: 10px;
    right: 15px;
    background: #d8af28;
    color: #111;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

body .mbv-ranking-card{
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(
        145deg,
        #151515,
        #090909
    );
    border: 1px solid rgba(212,175,55,.35);
    border-radius: 18px;
    padding: 18px 25px;
    transition: .3s ease;
    position: relative;
}

body .mbv-ranking-card.voted-candidate .mbv-your-vote-badge{
    display: block !important;
}

body .mbv-candidates{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

body .mbv-cards{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

body .mbv-container{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

body .mbv-vote-packages{
    display: grid !important;
    grid-template-columns: repeat(3,1fr);
    gap: 8px;
}

body .mbv-package{
    padding: 10px 8px !important;
    min-height: auto !important;
    border-radius: 14px !important;
    height: auto !important;
}

body .mbv-package h3{
    font-size: 16px !important;
    margin-bottom: 8px !important;
    display: inline !important;
    margin: 0 !important;
}

body .mbv-package-title{
    display: inline !important;
    font-size: 16px !important;
    margin: 0 !important;
}

body .mbv-package h3::after{
    content: " • ";
}

body .mbv-package-title::after{
    content: " • ";
}

body .mbv-package .votes{
    font-size: 16px !important;
    display: inline !important;
    font-weight: 700;
}

body .mbv-package .price{
    font-size: 18px !important;
    margin: 8px 0 !important;
    display: block;
    color: #d9af2f !important;
}

body .mbv-package button{
    padding: 6px 14px !important;
    font-size: 12px !important;
    border-radius: 30px !important;
    min-height: auto !important;
}

body .mbv-candidates-grid{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(280px,1fr)) !important;
    gap: 20px !important;
    padding: 0px 20px 15px;
    align-items: start;
    width: 100% !important;
}

body .mbv-package-card h3:after{
    content: " • ";
}

body .mbv-buy-votes{
    background: transparent;
    color: #D4AF37;
    border: 2px solid #D4AF37;
    padding: 5px 12px !important;
    border-radius: 30px !important;
    cursor: pointer;
    transition: .3s;
    font-size: 11px !important;
    min-height: auto !important;
}

body .mbv-content{
    padding-top: 5px !important;
    padding: 10px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

body .mbv-location span{
    color: #ffffff !important;
}

body .mbv-package-card:hover h3{
    color: #111 !important;
}

body .mbv-package-card:hover .mbv-package-votes{
    color: #111 !important;
}

body .mbv-package-card:hover .mbv-package-price{
    color: #111 !important;
}

body .mbv-success-close{
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    border: 1px solid #d9af2f !important;
    background: transparent !important;
    color: #d9af2f !important;
    font-size: 22px !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
}

body .mbv-success-close:hover{
    background: #d9af2f !important;
    color: #111 !important;
    transform: rotate(90deg);
    transition: .25s ease;
}

body #mbv-vote-again{
    margin-top: 20px;
    padding: 12px 30px;
    border-radius: 30px;
    border: 1px solid #d9af2f;
    background: transparent;
    color: #d9af2f;
    font-size: 15px;
    cursor: pointer;
    transition: .25s ease;
}

body #mbv-vote-again:hover{
    background: #d9af2f;
    color: #111;
}

body .mbv-vote-again{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 12px 35px;
    border-radius: 30px;
    border: 1px solid #d9af2f;
    color: #d9af2f;
    text-decoration: none;
    font-size: 15px;
    transition: .25s ease;
}

body .mbv-vote-again:hover{
    background: #d9af2f;
    color: #111;
}

body .mbv-paid-vote-overlay{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
}

body .mbv-payment-info span{
    display: block;
    color: #fff;
    font-size: 11px;
}

body .mbv-paid-candidate-info > div{
    margin-left: 0;
}

body .mbv-paid-candidate-info h2{
    margin-left: 0;
}

body .mbv-package-card:after{
    content: "Select";
    border: 1px solid #d4af37;
    border-radius: 20px;
    padding: 5px 8px;
    color: white;
    grid-column: 3;
    grid-row: 1;
    text-align: center;
    font-size: 11px;
    width: 60px;
}

body .mbv-paid-candidate-info img{
    width: 130px !important;
    height: 130px !important;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 !important;
}

body .mbv-package-card h3{
    color: #fff;
    font-size: 15px !important;
    margin-bottom: 15px;
    display: inline-block !important;
    margin: 0 !important;
    white-space: nowrap !important;
    width: 30%;
    flex: 0 0 180px !important;
    text-align: left;
}

body .mbv-package-votes{
    color: #fff;
    font-size: 15px !important;
    font-weight: 700 !important;
    display: inline-block !important;
    white-space: nowrap !important;
    width: 20%;
    flex: 1;
    text-align: center;
}

body .mbv-paid-candidate-info p{
    text-align: left;
    font-size: 12px;
    color: #ddd;
    margin-left: 0;
    margin: 5px 0;
    margin-bottom: 5px !important;
}

body .mbv-candidate-details h2{
    margin: 0;
}

body .mbv-candidate-details .mbv-region{
    margin: 0;
    font-size: 14px;
    letter-spacing: 2px;
    color: #ffffff;
}

body .mbv-card{
    background: #111;
    border: 1px solid #c9a227;
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 25px;
    transition: .4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
    padding: 0px !important;
    width: 100% !important;
    max-width: none !important;
    display: flex;
    flex-direction: column;
    height: auto !important;
    min-height: 0 !important;
    position: relative !important;
    color: #fff;
}

body .mbv-image{
    height: 350px !important;
    overflow: hidden;
    position: relative;
    margin-bottom: 15px;
}

body .mbv-region-title{
    color: #d4af37;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

body .mbv-content h2{
    margin: 8px 0 4px !important;
    font-size: 22px !important;
    margin-top: 8px !important;
    margin-bottom: 5px !important;
    color: #fff;
}

body .mbv-region-grid .mbv-card{
    background: #0d0d0d;
    border: 1px solid #c9a227;
    border-radius: 18px;
    padding: 14px;
    overflow: hidden;
}

body .mbv-region-grid .mbv-image{
    width: 100%;
    margin-bottom: 15px;
}

body .mbv-region-grid .mbv-region-title{
    font-size: 11px;
    letter-spacing: 3px;
    margin-bottom: 8px;
    color: #d4af37;
}

body .mbv-region-grid .mbv-content h2{
    font-size: 24px;
    margin: 8px 0;
}

body .mbv-location{
    margin-bottom: 8px !important;
    color: #ffffff !important;
    margin: 0 0 8px !important;
    font-size: 14px !important;
}

body .mbv-votes{
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin: 0px 0 0px !important;
    margin-bottom: 15px !important;
    margin-top: 12px;
}

body .mbv-percentage{
    color: #d4af37;
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
}

body .mbv-region-grid .mbv-paid-vote-btn{
    width: 100%;
    background: #d4af37;
    color: #050505;
    border: none;
    border-radius: 30px;
    padding: 12px;
    font-weight: bold;
    font-size: 16px;
}

body .mbv-count-1 .mbv-card{
    max-width: 520px;
    margin: auto;
}

body .mbv-count-2 .mbv-card{
    max-width: none;
}

body .mbv-count-3 .mbv-card{
    max-width: none;
}

body .mbv-progress{
    width: 100% !important;
    height: 10px;
    background: #252525;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 12px;
    max-width: none !important;
    margin: 12px 0 18px;
    border: 1px solid #333;
    display: block !important;
    box-sizing: border-box;
}

body .mbv-progress-bar{
    height: 100%;
    background: linear-gradient(
        90deg,
        #b8860b,
        #f5d76e
    );
    border-radius: 20px;
    transition: width .5s ease;
    display: block;
}

body .mbv-region-filter{
    background: #111;
    color: #fff;
    border: 1px solid #c9a227;
    border-radius: 25px;
    padding: 10px 30px;
    font-size: 15px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: .3s;
}

body .mbv-region-filter:hover{
    background: #c9a227;
    color: #000;
}

body .mbv-region-filter.active{
    background: #d4af37;
    color: #000;
    font-weight: bold;
}

body .mbv-region-filters{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0 40px;
    column-gap: 15px;
}

body #mbv-paid-vote-popup{
    overflow-x: hidden;
}

body #mbv-paid-vote-popup .mbv-content{
    display: block;
}

body #mbv-paid-vote-popup .mbv-card{
    display: block;
}

body #mbv-paid-vote-popup *{
    box-sizing: border-box;
}

body #mbv-paid-vote-popup .mbv-packages-grid{
    display: block !important;
}

body #mbv-paid-vote-popup .mbv-region-grid{
    display: block !important;
}

body #mbv-paid-vote-popup .mbv-package-card{
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    display: flex !important;
    min-height: 60px !important;
    height: 60px !important;
    padding: 0 18px !important;
    border-radius: 12px !important;
    align-items: center !important;
}

body #mbv-paid-vote-popup .mbv-package-card h3{
    margin: 0 !important;
    font-size: 15px !important;
}

body #mbv-paid-vote-popup .mbv-package-votes{
    font-size: 15px !important;
}

body #mbv-paid-vote-popup .mbv-package-price{
    font-size: 15px !important;
}

body #mbv-paid-vote-popup .mbv-packages{
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

body .mbv-paid-vote-close{
    position: absolute;
    right: 20px;
    top: 14px;
    background: #c9a227;
    color: #fff !important;
    border: 1px solid #c9a227 !important;
    width: 45px !important;
    height: 45px !important;
    cursor: pointer !important;
}

body .mbv-paid-vote-btn{
    width: 90%;
    background: #0e0e0e;
    color: #d4af37;
    border: 1px solid #daa520;
    padding: 12px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    height: 52px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: none;
    margin: auto;
}

body .mbv-paid-vote-btn:hover{
    background: #e6c04a;
    color: #000;
    opacity: .85;
    transform: translateY(-1px);
}

body .mbv-paid-vote-btn:active{
    transform: scale(0.98);
}

body .mbv-paid-vote-btn::before{
    content: "♥";
    font-size: 16px;
    color: #d4af37;
}

body .mbv-paid-vote-btn:hover::before{
    color: black;
}

body .mbv-image img{
    width: 100% !important;
    height: 350px !important;
    object-fit: cover !important;
    border-radius: 5px !important;
}

body .mbv-candidate-photo{
    height: 350px !important;
    width: 100% !important;
    object-fit: cover !important;
    border-radius: 5px !important;
}

body .mbv-final-path-text{
    text-align: center;
    max-width: 850px;
    margin: 15px auto 10px;
    border-top: 1px solid #242424;
    padding: 10px 10px 10px 10px;
}

body .mbv-final-path-text h3{
    font-size: 12px;
    font-weight: 800;
    color: #d4af37;
    margin-bottom: 5px;
    text-transform: uppercase;
}

body .mbv-final-path-text p{
    font-size: 14px !important;
    color: #ffffff;
    opacity: 0.85;
    margin: 0 auto;
}

body .mbv-countdown{
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 0px 10px 17px 10px;
}

body .mbv-countdown div{
    display: block !important;
    width: 55px;
    text-align: center;
}

body .mbv-countdown span{
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #d4af37;
}

body .mbv-countdown small{
    display: block;
    color: white;
    font-size: 10px;
}

body .mbv-badge{
    position: absolute !important;
    top: 15px;
    right: 15px;
    z-index: 5;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: black;
    color: #000;
    font-weight: 700;
    font-size: 20px;
    border: 1px solid #d4af37;
}

body .mbv-badge.rank-1{
    background: linear-gradient(
        145deg,
        #fff3a3,
        #d4af37,
        #8a6a00
    );
    box-shadow: 0 0 15px rgba(212,175,55,0.45);
}

body .mbv-badge.rank-2{
    background: linear-gradient(
        145deg,
        #ffffff,
        #bfc3c7,
        #707070
    );
    box-shadow: 0 0 15px rgba(200,200,200,0.35);
}

body .mbv-badge.rank-3{
    background: linear-gradient(
        145deg,
        #ffd2a1,
        #b87333,
        #6b3b15
    );
    box-shadow: 0 0 15px rgba(184,115,51,0.35);
}

body .mbv-badge:not(.rank-1):not(.rank-2):not(.rank-3){
    background: #111;
    border: 1px solid #d4af37;
    color: #d4af37;
}

body .mbv-voting-closed{
    opacity: 0.6;
    cursor: not-allowed;
    background: #222 !important;
    color: #d4af37 !important;
    border-color: #555 !important;
}

body .mbv-paid-candidate-info{
    text-align: left;
    color: #fff;
    display: flex !important;
    align-items: stretch !important;
    justify-content: center;
    gap: 25px;
    margin-bottom: 0 !important;
    width: 100%;
    background: #050505;
}

body .mbv-buy-title{
    text-align: center;
    font-size: 24px !important;
    color: #d4af37;
    margin: 10px 0 15px !important;
    letter-spacing: 3px;
    margin-top: 12px !important;
    margin-bottom: 12px !important;
}

body .mbv-personal-message{
    padding: 15px 0;
}

body .mbv-personal-message label{
    display: block;
    color: #d4af37;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

body #mbv-personal-message{
    width: 100%;
    min-height: 100px;
    background: #080808;
    border: 1px solid #d4af37;
    border-radius: 12px;
    color: white;
    padding: 15px;
    box-sizing: border-box;
}

body #mbv-personal-message::placeholder{
    color: #777;
}

body .mbv-payment-info{
    display: flex !important;
    justify-content: space-around !important;
    margin-top: 0px;
    border-top: 1px solid rgba(212,175,55,.3);
    padding-top: 5px;
    padding: 10px;
}

body .mbv-payment-info div{
    text-align: center;
    font-size: 12px;
    color: white;
}

body .mbv-payment-icon{
    display: block;
    margin-bottom: 10px;
}

body .mbv-payment-icon svg{
    width: 30px;
    height: 30px;
    fill: none;
    stroke: #d4af37;
    stroke-width: 1.5;
}

body .mbv-footer-brand{
    text-align: center;
    margin-top: 0px;
    color: #d4af37;
    font-size: 11px;
    letter-spacing: 5px;
    padding: 10px;
}

body .mbv-candidate-image-wrapper{
    width: 45%;
    height: 235px !important;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
}

body #mbv-paid-candidate-image{
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    display: block;
    border-radius: 0 !important;
}

body .mbv-candidate-details{
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 55%;
    padding: 20px 25px !important;
    justify-content: center !important;
    align-items: flex-start !important;
    text-align: left !important;
}

body .mbv-popup-mini-brand{
    text-align: left !important;
    margin-bottom: 18px !important;
}

body .mbv-popup-mini-brand h4{
    margin: 0 !important;
    color: #d4af37 !important;
    font-size: 14px !important;
    letter-spacing: 5px !important;
    font-weight: 500 !important;
}

body .mbv-popup-mini-brand span{
    color: #d4af37 !important;
    font-size: 10px !important;
    letter-spacing: 3px !important;
}

body .mbv-support{
    text-align: left;
    letter-spacing: 5px !important;
    color: #d4af37 !important;
    font-size: 10px !important;
    margin-bottom: 10px !important;
}

body #mbv-paid-candidate-name{
    font-size: 32px !important;
    color: #d4af37 !important;
    text-align: left;
    margin: 0 0 8px !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
}

body .mbv-region{
    color: white !important;
    font-size: 15px !important;
    letter-spacing: 2px !important;
    margin-bottom: 10px !important;
}

body .mbv-candidate-details p{
    margin: 0 !important;
    color: #ddd !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    text-align: left !important;
}

body .mbv-paid-vote-popup{
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    overflow-y: auto !important;
    padding: 20px 0;
    overflow: hidden !important;
}

body .mbv-paid-vote-content::-webkit-scrollbar{
    width: 8px;
}

body .mbv-paid-vote-content::-webkit-scrollbar-track{
    background: #0a0a0a;
    border-radius: 20px;
}

body .mbv-paid-vote-content::-webkit-scrollbar-thumb{
    background: #d4af37;
    border-radius: 20px;
    border: 2px solid #050505;
}

body .mbv-paid-vote-content::-webkit-scrollbar-thumb:hover{
    background: #f2d06b;
}

body .mbv-paid-vote-content{
    position: relative;
    width: 620px !important;
    max-width: 95%;
    margin: 20px auto !important;
    background: #050505;
    border: 1px solid #d4af37;
    border-radius: 25px;
    padding: 25px !important;
    z-index: 2;
    color: #fff;
    max-height: 90vh !important;
    overflow-y: auto !important;
    overflow: visible !important;
    height: auto;
    overflow-x: hidden !important;
    scrollbar-width: thin;
    scrollbar-color: #d4af37 #0a0a0a;
}

body .mbv-package-card:hover{
    transform: translateY(-2px);
    border-color: #d4af37;
    box-shadow: 0 15px 40px rgba(212,175,55,.15);
    background: #d9af2f !important;
    color: #111 !important;
}

body .mbv-package-select:hover{
    background: #d4af37;
    color: #050505;
}

body .mbv-packages{
    display: flex !important;
    grid-template-columns: repeat(3,1fr) !important;
    gap: 12px !important;
    margin-top: 10px !important;
    flex-direction: column !important;
}

body .mbv-package-card button{
    box-shadow: none !important;
    text-transform: none !important;
}

body .mbv-ultimate-label{
    position: absolute !important;
    top: -12px !important;
    right: 15px !important;
    background: #d4af37 !important;
    color: #000 !important;
    padding: 0px 10px !important;
    border-radius: 20px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
	    line-height: 22px !important;
}

body .mbv-package-card > .mbv-package-select + .mbv-package-select{
    display: none !important;
}

body .mbv-package-info h3::after{
    content: "" !important;
}

body .mbv-package-select{
    background: transparent !important;
    color: #ffffff !important;
    border: 1px solid #d4af37 !important;
    border-radius: 25px !important;
    padding: 8px 18px !important;
    font-size: 12px !important;
    letter-spacing: 1px;
    cursor: pointer;
    transition: .3s ease;
    display: block !important;
    align-self: center !important;
}

body .mbv-package-card{
    background: #080808 !important;
    border: 2px solid #d4af37 !important;
    border-radius: 15px !important;
    padding: 12px 15px !important;
    text-align: center;
    transition: .3s ease;
    min-height: 65px !important;
    cursor: pointer;
    color: #fff;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    grid-template-columns: 80px 1fr 90px;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    gap: 15px;
}

body .mbv-package-info{
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-left: 10px !important;
    flex-wrap: nowrap !important;
}

body .mbv-package-price{
    color: #d4af37 !important;
    font-size: 18px !important;
    margin: 0 !important;
    display: block;
    width: 90px !important;
    text-align: center;
    font-weight: 600 !important;
    margin-top: 4px;
    margin-left: auto !important;
    margin-right: 20px !important;
    line-height: 1.2 !important;
}

body .mbv-price-per-vote{
    color: #aaa !important;
    font-size: 11px !important;
    margin-top: 3px !important;
    position: static !important;
    display: block !important;
    white-space: nowrap !important;
    text-align: center;
}

body .mbv-package-icon{
    width: auto !important;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px !important;
    flex-shrink: 0 !important;
    margin-right: 8px !important;
}

body .mbv-package-info h3{
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 16px !important;
    letter-spacing: 1px;
    font-weight: 600 !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    margin-left: 0 !important;
}

@keyframes mbv-spin {
from{

        transform:rotate(0deg);

    }


    to{

        transform:rotate(360deg);

    }
}

@keyframes mbvPopup {
from{

        transform:scale(.8);

        opacity:0;

    }


    to{

        transform:scale(1);

        opacity:1;

    }
}

@keyframes mbvVoteGlow {
from {

        box-shadow:
        0 0 10px rgba(216,175,40,.3);

    }


    to {

        box-shadow:
        0 0 30px rgba(216,175,40,.8);

    }
}

@media (min-width: 601px) {

    body .mbv-candidate-details{
        text-align: left;
    }

}

@media (max-width: 900px) {

    body .mbv-candidates-grid{
        grid-template-columns: repeat(2,1fr) !important;
    }

}

@media (max-width: 768px) {

    body .mbv-image{
        height: 220px;
    }

    body .mbv-card h2{
        font-size: 18px;
    }

    body .mbv-vote-btn{
        padding: 10px 20px;
        font-size: 14px;
    }

    body .mbv-card{
        border-radius: 15px;
        width: 100% !important;
    }

    body .mbv-candidate-photo{
        height: 220px !important;
    }

    body .mbv-candidates{
        grid-template-columns: 1fr;
    }

    body .mbv-cards{
        grid-template-columns: 1fr;
    }

    body .mbv-container{
        grid-template-columns: 1fr;
    }

    body .mbv-vote-packages{
        grid-template-columns: repeat(2,1fr);
    }

    body .mbv-candidates-grid{
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    body .mbv-packages{
        grid-template-columns: repeat(2,1fr) !important;
    }

    body .mbv-region-filters{
        display: flex;
        gap: 12px;
        overflow-x: auto;
        white-space: nowrap;
        padding: 10px 15px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    body .mbv-region-filters::-webkit-scrollbar{
        display: none;
    }

    body .mbv-region-filters button{
        flex: 0 0 auto;
        min-width: auto;
        padding: 10px 22px;
        font-size: 14px;
    }

}

@media (max-width: 700px) {

    body .mbv-paid-candidate-info{
        flex-direction: column;
    }

    body .mbv-buy-title{
        font-size: 28px;
    }

    body .mbv-candidate-image-wrapper{
        width: 100%;
        height: 220px !important;
    }

    body #mbv-paid-candidate-image{
        height: 240px !important;
    }

    body .mbv-popup-mini-brand h4{
        font-size: 13px !important;
        letter-spacing: 4px !important;
        margin: 0 !important;
    }

    body .mbv-popup-mini-brand span{
        display: block;
        font-size: 9px !important;
        letter-spacing: 3px !important;
    }

    body .mbv-candidate-details{
        width: 100%;
        padding: 8px 0 !important;
        display: block !important;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto auto;
        gap: 0;
    }

    body .mbv-popup-mini-brand{
        grid-column: 1;
        grid-row: 1;
        margin: 0 !important;
        text-align: left !important;
        display: inline-block !important;
    }

    body .mbv-support{
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        margin: 0 !important;
        font-size: 10px !important;
        letter-spacing: 5px !important;
        text-align: right !important;
        float: right;
        margin-top: 5px !important;
    }

    body #mbv-paid-candidate-name{
        font-size: 30px !important;
        grid-column: 1;
        grid-row: 2;
        margin: 8px 0 0 !important;
        text-align: left !important;
        display: block !important;
    }

    body .mbv-region{
        grid-column: 2;
        grid-row: 2;
        align-self: center;
        margin: 3px 0 8px !important;
        font-size: 14px !important;
        letter-spacing: 2px !important;
        text-align: left !important;
        display: block !important;
    }

    body .mbv-candidate-details p{
        grid-column: 1 / 3;
        grid-row: 3;
        margin: 8px 0 0 !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
        text-align: left !important;
        margin-top: 5px !important;
    }

    body .mbv-package-icon{
        margin-right: 8px !important;
        font-size: 24px !important;
    }

    body #mbv-paid-vote-popup .mbv-package-card{
        padding: 0 8px !important;
    }

    body .mbv-package-card{
        padding: 10px 8px !important;
        min-height: 55px !important;
        border-radius: 12px !important;
        gap: 5px !important;
    }

    body .mbv-package-info{
        gap: 5px !important;
        margin-left: 0 !important;
    }

    body .mbv-package-info h3{
        font-size: 13px !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
        line-height: 1.2 !important;
    }

    body .mbv-package-price{
        font-size: 14px !important;
        margin-right: 8px !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }

    body .mbv-price-per-vote{
        left: 85px !important;
        bottom: 4px !important;
        font-size: 10px !important;
        white-space: nowrap !important;
        margin-left: 2px !important;
    }

    body .mbv-package-select{
        padding: 6px 12px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
        border-radius: 20px !important;
    }

    body .mbv-ultimate-label{
        top: -10px !important;
        right: 8px !important;
        padding: 4px 10px !important;
        font-size: 9px !important;
    }

}

@media (max-width: 600px) {

    body .mbv-ranking-card{
        padding: 15px;
        gap: 12px;
    }

    body .mbv-rank-number{
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    body .mbv-rank-image img{
        width: 55px;
        height: 55px;
    }

    body .mbv-candidates-grid{
        padding: 20px 10px;
        grid-template-columns: 1fr !important;
    }

    body .mbv-card{
        width: 100% !important;
    }

    body .mbv-image{
        height: 220px !important;
    }

    body .mbv-image img{
        height: 220px !important;
    }

    body .mbv-packages{
        grid-template-columns: repeat(2,1fr) !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        margin-top: 15px !important;
    }

    body #mbv-payment-success{
        padding: 15px !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body .mbv-success-box{
        width: 100% !important;
        max-width: 360px !important;
        padding: 25px 18px !important;
        border-radius: 18px !important;
    }

    body .mbv-success-box h2{
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
    }

    body .mbv-success-box p{
        font-size: 14px !important;
        margin-bottom: 18px !important;
    }

    body .mbv-success-details{
        padding: 18px 12px !important;
        border-radius: 12px !important;
    }

    body #mbv-success-name{
        font-size: 20px !important;
    }

    body #mbv-success-votes{
        font-size: 18px !important;
    }

    body #mbv-success-total{
        font-size: 14px !important;
        margin-top: 6px !important;
    }

    body #mbv-success-rank{
        font-size: 14px !important;
        margin-top: 6px !important;
    }

    body #mbv-success-needed{
        font-size: 14px !important;
        margin-top: 6px !important;
    }

    body .mbv-success-close{
        top: 12px !important;
        right: 12px !important;
        width: 32px !important;
        height: 32px !important;
    }

    body .mbv-paid-vote-content{
        width: 94% !important;
        padding: 16px !important;
        max-height: 88vh;
        border-radius: 20px;
    }

    body .mbv-paid-candidate-info{
        flex-direction: column;
        text-align: center;
        gap: 5px !important;
        margin-bottom: 0 !important;
    }

    body .mbv-paid-candidate-info img{
        width: 45px !important;
        height: 45px !important;
    }

    body .mbv-support{
        text-align: center;
        margin-top: 4px;
        font-size: 10px !important;
    }

    body #mbv-paid-candidate-name{
        text-align: center;
        font-size: 24px !important;
        margin: 3px 0 !important;
    }

    body .mbv-paid-candidate-info p{
        text-align: center;
        margin: 4px 0 !important;
        font-size: 12px !important;
    }

    body .mbv-buy-title{
        font-size: 26px !important;
        margin-top: 5px !important;
        margin-bottom: 10px !important;
        margin: 8px 0 12px !important;
    }

    body .mbv-paid-vote-close{
        top: 15px !important;
        right: 15px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 14px;
        padding: 0 !important;
        line-height: 28px;
        position: absolute !important;
        z-index: 10;
    }

    body .mbv-package-votes{
        font-size: 13px !important;
        white-space: nowrap !important;
        display: block !important;
        flex: 0 0 70px;
        text-align: center;
    }

    body .mbv-package-card{
        width: 100% !important;
        min-height: 38px !important;
        padding: 10px 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        text-align: center !important;
        gap: 8px;
    }

    body .mbv-package-card h3{
        font-size: 13px !important;
        white-space: nowrap !important;
        flex: 1 !important;
        min-width: 0;
    }

    body .mbv-package-price{
        margin: 0 !important;
        font-size: 13px !important;
        color: #d9af2f !important;
        width: auto !important;
        margin-right: 6px;
        flex: 0 0 55px;
        text-align: center;
    }

    body .mbv-package-card:after{
        width: auto !important;
        padding: 5px 4px !important;
        font-size: 11px !important;
        flex: 0 0 55px;
    }

    body .mbv-candidate-details{
        text-align: center;
    }

    body .mbv-candidate-photo{
        width: 160px;
        height: 160px;
    }

    body .mbv-content h2{
        font-size: 22px !important;
    }

    body .mbv-region-filters{
        gap: 8px;
        margin: 20px 0 25px;
    }

    body .mbv-region-filter{
        padding: 8px 18px;
        font-size: 13px;
    }

}

@media (max-width: 480px) {

    body .mbv-candidate-photo{
        height: 200px !important;
    }

    body .mbv-content h2{
        font-size: 20px !important;
    }

    body .mbv-vote-packages{
        grid-template-columns: 1fr;
    }

    body .mbv-packages{
        grid-template-columns: 1fr !important;
    }

}

@media (max-width: 450px) {

    body .mbv-candidates-grid{
        grid-template-columns: 1fr;
    }

    body .mbv-image{
        height: 280px;
    }

}


/* TEST OVERRIDE */
body .mbv-candidate-card{
    border-radius: 30px !important;
    overflow:hidden !important;
}

body .mbv-candidate-card img{
    border-radius:20px !important;
}

body .mbv-vote-button{
    border-radius:50px !important;
}

/* ==========================================================
   FINAL ANITA + ELEMENTOR COMPATIBILITY LAYER
   MISS BULGARIA VOTING SYSTEM
   Keep this section at the absolute bottom
========================================================== */

/* Elementor shortcode context + theme protection */
body .elementor-widget-shortcode .mbv-wrapper,
body .elementor-widget-shortcode .mbv-wrapper *,
body .elementor .mbv-wrapper,
body .elementor .mbv-wrapper * {
    box-sizing: border-box;
}

/* Candidate cards */
body .elementor .mbv-candidate-card,
body .elementor-widget-shortcode .mbv-candidate-card,
body .mbv-candidate-card {
    box-sizing: border-box !important;
}

/* Images */
body .elementor .mbv-candidate-card img,
body .elementor-widget-shortcode .mbv-candidate-card img,
body .mbv-candidate-card img {
    max-width:100% !important;
    height:auto;
}

/* Buttons - beat Anita global button selectors */
body .elementor-widget-shortcode button.mbv-paid-vote-btn,
body .elementor button.mbv-paid-vote-btn,
body button.mbv-paid-vote-btn,
body button.mbv-vote-btn,
body button.mbv-region-filter,
body button.mbv-package-select {
    appearance:none !important;
    -webkit-appearance:none !important;
    font-family:inherit !important;
    letter-spacing:normal !important;
    text-transform:inherit !important;
    box-shadow:none !important;
}

/* Paid vote button exact isolation */
body .elementor-widget-shortcode button.mbv-paid-vote-btn,
body .elementor button.mbv-paid-vote-btn {
    border-radius:30px !important;
}

/* Package cards */
body .elementor .mbv-package-card,
body .elementor-widget-shortcode .mbv-package-card,
body .mbv-package-card {
    box-sizing:border-box !important;
}

/* Typography protection */
body .elementor .mbv-wrapper h1,
body .elementor .mbv-wrapper h2,
body .elementor .mbv-wrapper h3,
body .elementor .mbv-wrapper h4,
body .elementor .mbv-wrapper p,
body .elementor-widget-shortcode .mbv-wrapper h1,
body .elementor-widget-shortcode .mbv-wrapper h2,
body .elementor-widget-shortcode .mbv-wrapper h3,
body .elementor-widget-shortcode .mbv-wrapper p {
    font-family:inherit;
}

/* Popup layering */
body .elementor .mbv-paid-vote-popup,
body .elementor-widget-shortcode .mbv-paid-vote-popup,
body .mbv-paid-vote-popup {
    z-index:999999 !important;
}



body .mbv-final-path-text p {
    font-size: 13px !important;
    color: #ffffff;
    opacity: 0.85;
    margin: 0 auto;
    line-height: 22px;
}

body .mbv-final-path-text h3 {
    line-height: 1.3em;
    font-family: inter;
}


body .mbv-votes {
    margin-bottom: 0px !important;
	color: #d4af30 !important;
}

body .mbv-content h2{
	line-height: 1.2em;
}


body .elementor-widget-shortcode button.mbv-paid-vote-btn:hover, body .elementor button.mbv-paid-vote-btn:hover{
	background-color: #d4af30 !important;
	color: black !important;
}


body .mbv-buy-title {
    margin-top: 10px !important;
    line-height: 1em;
}


body .mbv-candidate-details .mbv-region,body #mbv-paid-candidate-name,body .mbv-support,body .mbv-popup-mini-brand h4{
	line-height: 1.2em !important;
}


body .mbv-paid-vote-close{
	padding: 0px !important;
}