/* ============================================
   Battle Pass - Stili Front-End
   ============================================ */

:root {
    --sbp-primary: #FF4365;
    --sbp-primary-dark: #4f46e5;
    --sbp-secondary: #8b5cf6;
    --sbp-success: #10b981;
    --sbp-warning: #f59e0b;
    --sbp-danger: #ef4444;
    --sbp-dark: #1f2937;
    --sbp-light: #f3f4f6;
    --sbp-border: #e5e7eb;
    --sbp-text: #374151;
}

/* Container Principale */
/* .sbp-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
} */

/* UTILITY */
.flex{
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.flex-column{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.m-0{
    margin: 0;
}

/* Header */
.sbp-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 2em;
    padding-bottom: 20px;
    /* border-bottom: 3px solid var(--sbp-primary); */
    flex-direction: column;
    justify-content: center;
}

.sbp-title {
    font-size: 60px;
    font-weight: bold;
    font-style: italic;
    color: #212121;
    margin: 0;
}

.sbp-section-subtitle{
    font-size: 24px;
    font-weight: 500;
    color: #212121;
}


.sbp-info-header{
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin: 40px 0 50px 0; 
    /* padding: 20px;  */
    background: #DCDCDC; 
    border-radius: 24px;
    border: 1px solid #ffffff;
    width: 870px;
    /* height: 61px; */
}

.sbp-stat-value{
    color: var(--sbp-primary);
    font-size: 18px;
    font-weight:500;
}

.sbp-stats {
    display: flex;
    gap: 30px;
}

.sbp-stat {
    text-align: center;
}

.sbp-stat-label {
    font-size: 16px; color: #212121;  
}

/* .sbp-stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: var(--sbp-primary);
    margin-top: 5px;
} */

.sbp-days-left-container{
    display: flex;
    background-color: var(--sbp-primary);
    padding: 5px 20px 5px 50px;
    height: 100%;
    border-radius: 24px 0px 0px 24px;
    
}

.sbp-days-left{
    position: relative;
}
.sbp-days-left-icon{
    position: absolute;
    top: -8px;
    left: -69px;
    width: 100%;
    height: 100%;
    object-fit: contain;

}

.sbp-days-left-value{
    font-size: 31px;
    font-weight: 900;
    color: #ffffff;
    line-height: 107.8%;
    stroke: #000000;
    
}

.sbp-days-left-label{
    font-size: 16px;
    color: #ffffff
}

.sbp-info-header-right{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sbp-info-marchio{
    display: flex; 
    align-items: center;
    justify-content: center;
    gap: 20px;
    width:40%;
}

.sbp-info-tier{
    display: flex; 
    align-items: center; 
    justify-content: center;
    gap: 20px;
    width:20%;
    border-left: 2px solid #c7c5c5c7;
    border-right: 2px solid #c7c5c5;
}

.sbp-info-xp-totale{
    display: flex; 
    align-items: center; 
    justify-content: center;
    gap: 20px;
    width:40%;
}

.sbp-coupons-dashboard-header-text{
    margin-left: 10px;
}

/* Barra di Progressione */

.sbp-bar-section {
    position: relative;
    margin: 40px 0;
    overflow: visible;
}

.sbp-progress-bar-wrapper{
    position: relative; 
    height: 31px; 
    background: #1f2937; 
    border-radius: 40px; 
    margin: 60px 0;
}

.sbp-bar-extension {
    position: absolute;
    top: 0;
    height: 100%;
    background: #1f2937;
    z-index: 0;
    border-radius: 0;
}
.sbp-bar-extension-left {
    position: absolute;
    top: 0;
    height: 100%;
    background: #1f2937;
    z-index: 0;
    border-radius: 0;
}

/* Tier Pages */
.sbp-tier-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Navigation Arrows */
.sbp-bar-nav {
    position: absolute;
    top: 0;
    height: 100%;
    z-index: 10;
    background: #1f2937;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}
.sbp-bar-nav:hover,
.sbp-bar-nav:focus,
.sbp-bar-nav:active {
    background: #1f2937;
    opacity: 1;
    outline: none;
    box-shadow: none;
    transform: none;
}
.sbp-bar-nav img {
    height: 100%;
    width: auto;
    display: block;
    pointer-events: none;
}
.sbp-bar-nav-next {
    right: 0;
    border-radius: 0;
}
.sbp-bar-nav-prev {
    left: 0;
    border-radius: 0;
}
.sbp-bar-nav-prev img {
    transform: scaleX(-1);
}
.sbp-progress-section {
    margin-bottom: 30px;
}

.sbp-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--sbp-text);
}

.sbp-progress-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* .sbp-progress-bar-wrapper {
    width: 100%;
    height: 40px;
    background: var(--sbp-light);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
} */

.sbp-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--sbp-primary) 0%, var(--sbp-secondary) 100%);
    border-radius: 20px;
    transition: width 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.sbp-progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--sbp-dark);
    font-weight: bold;
    font-size: 14px;
    z-index: 10;
    text-shadow: 0 0 3px white, 0 0 5px white;
    pointer-events: none;
}

.sbp-progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
    z-index: 1;
}

#sbp-bar-xp-text{
    font-size: 10px; 
    color:rgb(0, 0, 0); 
    font-weight: 900; 
    white-space: nowrap; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);

}

#sbp-bar-xp-text-empty{
    position: absolute; 
    left: 12px; 
    top: 0; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    font-size: 13px; 
    color: #9ca3af; 
    font-weight: 900;
    white-space: nowrap; 
    z-index: 1;
}

.sbp-tier-number-container-last{
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    width: 9rem;
    height: 9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tier Number Container */
.sbp-tier-number-container{
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    width: 5rem;
    height: 5rem;
}

.sbp-claim-button-container{
    width: 200px;
    text-align: center;
    border: 1px solid rgb(255, 255, 255);
    border-radius: 18px;
    /* padding: 10px; */
    background: white;
}

.sbp-claim-button-container-text{
    font-size: 15px;
    font-weight: 700;
    color: #111111;
    margin: 0.5px 0.5px 0px;
    padding-top: 10px;
    background-color: #e9e9e9;
    border-radius: 16px 16px 0 0;
    padding-bottom: 5px;
}

.sbp-claim-button-container-button{
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 9px;
    font-weight: 700;
    min-width: 80px;
    margin: 0px 0.5px 0.5px 0.5px;
    border-radius: 0 0 16px 16px;
    padding-top: 10px;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Sezione Carica XP */


.sbp-pending-badge-icon{

    width: 80px;
    height: 80px;
    position: absolute;
    left: 210px;
}
.sbp-load-section {
    margin: 40px 0;
    display: flex;
    justify-content: center;
    position: relative;
    align-items: center;
}

.sbp-pending-badge {
    display: flex;
    align-items: center;
    /* background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); */
    color: #111111;
    /* padding: 12px 24px; */
    /* border-radius: 30px; */
    font-size: 18px;
    height: 30px;
    border: 1px solid var(--sbp-primary);
    border-radius: 8px;
    padding: 20px 20px 20px 47px;
    background-color: #F5F5F5;
}

.sbp-pending-badge strong {
    color: #58B400;
    font-size: 22px;
    margin: 0 10px;
}

@keyframes bounceIn {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.sbp-load-button {
    border: none !important;
    padding: 0 !important;
    
} 

.sbp-load-button:hover {
    /* transform: translateY(-2px); */
    /* box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6); */
    background: transparent !important;
    border: none !important;

}

/* .sbp-load-button:active {
    transform: translateY(0);
} */

.sbp-load-button.loading {
    pointer-events: none;
}

.sbp-load-button.sbp-load-disabled {
    background: #d1d5db;
    cursor: not-allowed;
    box-shadow: none;
}

.sbp-load-button.sbp-load-disabled:hover {
    transform: none;
    box-shadow: none;
}

.sbp-load-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: rgba(255, 255, 255, 0.8);
    transition: width 0.1s linear;
}

.sbp-load-hint {
    margin-top: 15px;
    font-size: 14px;
    color: #6b7280;
}

/* Come Funziona */
.sbp-how-it-works {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #3b82f6;
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
}

.sbp-how-it-works h3 {
    font-size: 24px;
    font-weight: bold;
    color: var(--sbp-dark);
    margin: 0 0 25px 0;
    text-align: center;
}

.sbp-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.sbp-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.sbp-step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--sbp-primary) 0%, var(--sbp-secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.sbp-step-content {
    flex: 1;
}

.sbp-step-content strong {
    display: block;
    font-size: 16px;
    color: var(--sbp-dark);
    margin-bottom: 5px;
}

.sbp-step-content p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

/* ========================================
   🎯 NUOVO DESIGN - BARRA PROGRESSIONE ORIZZONTALE
   ======================================== */

.sbp-horizontal-progress-container {
    margin: 40px 0;
    position: relative;
}

.sbp-milestone-rewards {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.sbp-milestone-item {
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.sbp-milestone-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: all 0.3s;
}

.sbp-milestone-icon.unlocked {
    background: #dbeafe;
    border: 3px solid #3b82f6;
}

.sbp-milestone-icon.claimed {
    background: #dcfce7;
    border: 3px solid #10b981;
}

.sbp-milestone-icon.locked {
    background: #f3f4f6;
    border: 3px solid #d1d5db;
}

.sbp-claim-button {

    border: none;

}

/* .sbp-claim-button:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.6);
}
 */
.sbp-claim-button:active {
    transform: scale(0.95);
}

/* ========================================
   🎟️ DASHBOARD CODICI SCONTO
   ======================================== */

.sbp-coupons-dashboard {
    margin-top: 40px;
    padding: 30px;
    background: #F1B143;
    border-radius: 0;
}

.sbp-coupons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
    margin: 20px 50px;
    
}

@media (max-width: 1024px) {
    .sbp-coupons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sbp-coupons-grid {
        grid-template-columns: 1fr;
    }
}

.sbp-coupon-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
   /* height: 226px; */
}

.sbp-coupon-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.sbp-coupon-active {
    background: #e9e9e9;
    /* border-color: #ef4444;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3); */
}

/* .sbp-coupon-active .sbp-coupon-header {
    background: linear-gradient(135deg, #fca5a5 0%, #f87171 100%);
} */

.sbp-coupon-used {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    /* border-color: #9ca3af; */
    opacity: 0.9;
}

/* .sbp-coupon-used .sbp-coupon-header {
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
}
 */
.sbp-coupon-expired {
    border-color: #ef4444;
    opacity: 0.7;
}

.sbp-coupon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #ffffff;
    /* border-bottom: 2px solid #e5e7eb; */
}

.sbp-coupon-tier-badge {
    /* background: linear-gradient(135deg, #3b82f6, #2563eb); */
    color: rgb(0, 0, 0);
    /* padding: 5px 12px; */
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    /* letter-spacing: 107.8%; */
}

.sbp-coupon-status {
    color: black;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sbp-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    display: inline-block;
    flex-shrink: 0;
}

.sbp-pulse-dot {
    background: #04d342;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: sbp-pulse 1.5s infinite;
}

@keyframes sbp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 230, 8, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.sbp-coupon-body {
    padding: 10px 20px 0px 20px;
    text-align: center;
    display: flex;
    justify-content: space-between;
}

.sbp-coupon-icon {
    font-size: 56px;
    /* margin-bottom: 15px; */
    display: block;
}

/* .sbp-coupon-active .sbp-coupon-icon {
    filter: drop-shadow(0 4px 8px rgba(239, 68, 68, 0.3));
} */

.sbp-coupon-value {
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    /* margin-bottom: 20px; */
    letter-spacing: -0.5px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;


}

.sbp-coupon-value-number{
    color:#FF4365 ;
    font-size: 46px;
    font-weight: bold ;
}

/* .sbp-coupon-active .sbp-coupon-value {
    color: #991b1b;
} */

.sbp-coupon-code-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    /* margin: 15px 0; */
    margin-bottom: 10px;
    margin-left: 10px;
}

.sbp-coupon-code-display {
    background: white;
    border: 1px solid #D7D5D5;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: 1px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* .sbp-coupon-active .sbp-coupon-code-display {
    background: white;
    border-color: #991b1b;
    color: #991b1b;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
} */

.sbp-coupon-used .sbp-coupon-code-display {
    background: #f9fafb;
    /* border-color: #9ca3af; */
    color: #6b7280;
}

.sbp-copy-coupon-dashboard {
    background: #FFBD4C;
    border: 1px solid #ffffff;
    /* padding: 6px 8px; */
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    display: flex;
}

.sbp-copy-coupon-dashboard:hover {
    background: #374151;
    border-color: #4b5563;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.sbp-copy-coupon-dashboard:active {
    transform: scale(0.95);
}

.sbp-coupon-used-info {
    margin-top: 15px;
    padding: 10px 15px;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
}

.sbp-coupon-used-info a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.sbp-coupon-used-info a:hover {
    text-decoration: underline;
}

.sbp-coupon-valid-info {
    margin-top: 10px;
    font-size: 12px;
    color: #10b981;
    font-weight: 600;
}

.sbp-coupon-expired-info {
    margin-top: 10px;
    font-size: 12px;
    color: #ef4444;
    font-weight: 600;
}

.sbp-change-from-dashboard {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.sbp-change-from-dashboard:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Griglia Tier */
.sbp-tiers-container {
    margin-top: 50px;
}

.sbp-section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--sbp-dark);
    margin-bottom: 20px;
    font-style: italic;
}

/* Legenda */
.sbp-legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.sbp-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--sbp-text);
}

.sbp-legend-box {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 2px solid;
}

.sbp-legend-locked {
    background: var(--sbp-light);
    border-color: var(--sbp-border);
}

.sbp-legend-unlocked {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: var(--sbp-primary);
}

.sbp-legend-current {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: var(--sbp-primary);
    animation: pulse 2s infinite;
}

.sbp-legend-claimed {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: var(--sbp-success);
}

.sbp-tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
}

.sbp-tier {
    background: var(--sbp-light);
    border: 3px solid var(--sbp-border);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sbp-tier-number {
    font-size: 20px;
    font-weight: bold;
    color: #9ca3af;
    margin-bottom: 10px;
}

.sbp-tier-empty {
    color: #d1d5db;
    font-size: 24px;
    margin: 20px 0;
}

/* Tier States */
.sbp-tier-unlocked {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border-color: var(--sbp-primary);
}

.sbp-tier-unlocked .sbp-tier-number {
    color: var(--sbp-primary);
}

.sbp-tier-current {
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.1); }
}

.sbp-tier-claimed {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: var(--sbp-success);
}

.sbp-tier-has-reward {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
}

.sbp-tier-has-reward.sbp-tier-unlocked {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

/* Premi */
.sbp-tier-reward {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sbp-reward-icon {
    font-size: 40px;
    margin: 10px 0;
}

.sbp-reward-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--sbp-dark);
    margin-top: 5px;
    line-height: 1.3;
}

.sbp-reward-help {
    font-size: 11px;
    color: #6b7280;
    margin-top: 5px;
    font-style: italic;
}

.sbp-locked-hint {
    margin-top: 10px;
    padding: 6px 12px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* Bottoni */
.sbp-claim-button {
    /* margin-top: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.4);
    animation: pulse-claim 2s infinite; */
}

@keyframes pulse-claim {
    0%, 100% {
        box-shadow: 0 3px 10px rgba(16, 185, 129, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 5px 15px rgba(16, 185, 129, 0.6);
        transform: scale(1.05);
    }
}

.sbp-claim-button:hover {
    background: #f3f4f6;
    /* transform: scale(1.1); */
    /* box-shadow: 0 6px 15px rgba(16, 185, 129, 0.6); */
}

.sbp-claim-button:active {
    transform: scale(0.95);
}

.sbp-claimed-badge {
    margin-top: 10px;
    padding: 8px 16px;
    background: var(--sbp-success);
    color: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
}

.sbp-delivered-badge {
    background: #6b7280;
}

/* Indicatore Codice Sconto Compatto nel Tier */

.sbp-coupons-dashboard-header{
    display: flex;
    align-items: center;
    gap: 10px;
}


.sbp-discount-tier-indicator {
    width: 100%;
    margin-top: 10px;
    text-align: center;
}

.sbp-discount-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    border: 2px solid #f59e0b;
}

.sbp-discount-compact-info {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin: 8px 0;
}

.sbp-discount-dashboard-hint {
    font-size: 11px;
    color: #6b7280;
    margin: 8px 0;
    font-style: italic;
}

.sbp-compact-change-btn {
    width: 100%;
    padding: 8px 14px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.sbp-compact-change-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Visualizzazione Prodotto nel Tier */
.sbp-product-claimed {
    width: 100%;
    text-align: center;
}

.sbp-product-name {
    font-size: 12px;
    color: #374151;
    margin: 5px 0;
    font-weight: 500;
}

.sbp-product-hint {
    font-size: 11px;
    color: #10b981;
    font-weight: 600;
}

/* Modal */
.sbp-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.sbp-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sbp-modal-content {
    background: white;
    padding: 28px 24px;
    border-radius: 24px;
    max-width: 320px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px); 
    }
    to { 
        opacity: 1;
        transform: translateY(0); 
    }
}

.sbp-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    font-weight: bold;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.sbp-modal-close:hover {
    color: var(--sbp-danger);
}

.sbp-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--sbp-dark);
    margin-bottom: 6px;
}

.sbp-modal-description {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

/* Opzioni Premi - Radio Style */
.sbp-reward-options {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sbp-reward-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.2s;
}

.sbp-reward-radio:last-child {
    border-bottom: none;
}

/* .sbp-reward-radio:hover {
    background: #f9fafb;
}
 */
.sbp-reward-radio-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    flex-shrink: 0;
    transition: all 0.2s;
    position: relative;
    background: #ffffff;
}

.sbp-reward-radio.selected .sbp-reward-radio-circle {
    border-color: var(--sbp-primary);
    background: var(--sbp-primary);
}

.sbp-reward-radio.selected .sbp-reward-radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.sbp-reward-radio-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--sbp-dark);
}

.sbp-reward-radio.selecting {
    pointer-events: none;
    opacity: 0.7;
}

.sbp-reward-separator {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--sbp-danger);
    padding: 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Accordion Premi */
.sbp-reward-accordion {
    background-color: #e9e9e9;
    border-radius:  0px 0px 20px 20px;
    /* padding: 16px 18px; */
    /* margin-top: 10px; */
    z-index: 10;
    position: relative;
}

.sbp-accordion-close {
    display: flex;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 0 0 16px 16px;
    padding: 16px 0;
    cursor: pointer;
}

.sbp-reward-accordion-content {
    padding: 20px 10px;
    background-color: #e9e9e9;
}

.sbp-reward-accordion-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--sbp-dark);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
    
}

.sbp-reward-option-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--sbp-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.sbp-view-product {
    display: inline-block;
    margin-top: 5px;
    padding: 4px 10px;
    background: #f3f4f6;
    color: var(--sbp-primary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.sbp-view-product:hover {
    background: var(--sbp-primary);
    color: white;
    transform: scale(1.05);
}

.sbp-option-select-icon {
    font-size: 24px;
    color: var(--sbp-primary);
    font-weight: bold;
}

/* Messaggi */
.sbp-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 600;
}

.sbp-message.sbp-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--sbp-danger);
}

.sbp-message.sbp-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--sbp-success);
}

/* Login Gate */
.sbp-login-gate {
    max-width: 520px;
    margin: 60px auto;
    padding: 50px 40px;
    text-align: center;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e5e5;
}

.sbp-login-gate-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.sbp-login-gate-title {
    font-size: 24px;
    font-weight: 800;
    color: #212121;
    margin: 0 0 12px 0;
}

.sbp-login-gate-text {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

.sbp-login-gate-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.sbp-login-gate-btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sbp-login-gate-btn:hover {
    transform: translateY(-2px);
}

.sbp-login-gate-btn-primary {
    background: var(--sbp-primary, #6366f1);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.sbp-login-gate-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    color: #ffffff;
}

.sbp-login-gate-btn-secondary {
    background: #f3f4f6;
    color: #212121;
    border: 1px solid #d1d5db;
}

.sbp-login-gate-btn-secondary:hover {
    background: #e5e7eb;
    color: #212121;
}

@media (max-width: 768px) {
    .sbp-login-gate {
        margin: 30px 15px;
        padding: 35px 25px;
    }

    .sbp-login-gate-title {
        font-size: 20px;
    }

    .sbp-login-gate-text {
        font-size: 14px;
    }

    .sbp-login-gate-buttons {
        flex-direction: column;
    }

    .sbp-login-gate-btn {
        width: 100%;
        text-align: center;
    }
}

/* Onboarding Page */
.sbp-onboarding {
   background-color: #e9e9e9;
   border-radius: 20px;
    margin: 40px auto;
    padding: 50px 30px;
    outline: 0.5px solid #ffffff;
}

.sbp-onboarding-header{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}


.sbp-onboarding-content{

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.sbp-onboarding-title {
    font-size: 48px;
    font-weight: 900;
    font-style: italic;
    color: #212121;
    margin: 0 0 8px 0;
    line-height: 1.1;
}

.sbp-onboarding-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #555;
    margin: 0 0 45px 0;
}

.sbp-onboarding-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.sbp-onboarding-step {
    border-radius: 16px;
    width: 180px;
    text-align: center;
    flex-shrink: 0;
}

.sbp-onboarding-step-title {
    font-size: 16px;
    font-weight: 700;
    font-style: italic;
    color: #212121;
    margin: 0 0 14px 0;
}

.sbp-onboarding-step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 14px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sbp-onboarding-step-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sbp-onboarding-step-text {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.sbp-onboarding-arrow {
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 22px;
    color: #333;
    margin-top: 70px;
    flex-shrink: 0;
}

.sbp-onboarding-cta {
    margin-top: 45px;
}

.sbp-onboarding-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--sbp-primary, #6366f1);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sbp-onboarding-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    color: #ffffff;
}

@media (max-width: 768px) {
    .sbp-onboarding {
        padding: 30px 15px;
        margin: 20px auto;
    }

    .sbp-onboarding-title {
        font-size: 30px;
    }

    .sbp-onboarding-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .sbp-onboarding-steps {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .sbp-onboarding-step {
        width: 100%;
        max-width: 300px;
    }

    .sbp-onboarding-arrow {
        margin-top: 0;
        padding: 8px 0;
        transform: rotate(90deg);
    }

    .sbp-onboarding-cta {
        margin-top: 30px;
    }

    .sbp-onboarding-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* Bottone Shortcode */
.sbp-button-wrapper {
    margin: 20px 0;
    text-align: center;
}

.sbp-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sbp-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.sbp-button-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.sbp-button-success {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: #1f2937;
}

.sbp-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.sbp-button-icon {
    font-size: 24px;
}

.sbp-button-text {
    font-size: 18px;
}

.sbp-button-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Widget Compatto */
.sbp-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.sbp-widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.sbp-widget-icon {
    font-size: 24px;
}

.sbp-widget-title {
    font-size: 18px;
    font-weight: bold;
}

.sbp-widget-content {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.sbp-widget-stat {
    flex: 1;
}

.sbp-widget-label {
    display: block;
    font-size: 11px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sbp-widget-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    margin-top: 5px;
}

.sbp-widget-pending {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { background: rgba(255, 255, 255, 0.2); }
    50% { background: rgba(255, 255, 255, 0.3); }
}

.sbp-widget-button {
    display: block;
    width: 100%;
    padding: 12px;
    background: white;
    color: #667eea;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s;
}

.sbp-widget-button:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* CTA Battle Pass su pagina prodotto */
.sbp-product-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    /*background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);*/
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 15px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    margin-top: 60px;
    background-color:#E7A026;
    padding: 20px 10px;
    border-radius: 18px
}
.sbp-product-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.sbp-product-cta-mascot {
    width: 100px !important;
}
.sbp-product-cta-text {
    flex: 1;
    font-size: 13px;
    line-height: 1.4;
    color: #78350f;
}
.sbp-product-cta-text strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}
.sbp-product-cta-highlight {
    color: #d97706;
}
.sbp-product-cta-arrow {
    font-size: 28px;
    font-weight: 700;
    color: #92400e;
    flex-shrink: 0;
}

.sbp-product-cta-highlight-white{
    font-size: 20px;
    color: #ffffff;
    font-weight: 900;
    font-style: italic;
}

.sbp-product-cta-text-description{
    font-size: 14px;
    color: #000000;
    font-weight: 400;
}

.sbp-product-cta-highlight-pink{
    font-size: 20px;
    color: var(--sbp-primary);
    font-weight: 900;
    font-style: italic;
}

/* Modale Info XP */
.sbp-xp-info-trigger {
    cursor: pointer;
    font-size: 14px;
    margin-left: 4px;
    vertical-align: middle;
}
.sbp-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}
.sbp-modal-overlay.active {
    display: flex;
}
.sbp-xp-modal {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    max-width: 550px;
    width: 90%;
    max-height: 80vh;
    /* overflow-y: auto; */
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: sbp-modal-in 0.25s ease-out;
}
@keyframes sbp-modal-in {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.sbp-xp-modal-close {
    position: absolute;
    top: -20px;
    right: -15px;
    width: 38px;
    height: 38px;
    background: #ef4444;
    color: #fff;
    /* border: aliceblue; */
    outline: 1px solid white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sbp-xp-modal-close-icon{
    max-width: none !important;
}
.sbp-xp-modal-title {
    font-size: 20px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 16px;
    border: none;
}

table thead:first-child tr:first-child th {
    border-block-start: 0px !important;
    font-size: 16px;
    color: black;
    font-weight: 600;
}

.sbp-xp-info-order-total{
    font-weight: bold;
    font-size: 16px;
}

.sbp-xp-info-order-xp{
    font-weight: bold;
    font-size: 16px;
    color: var(--sbp-primary) !important;
}

.sbp-xp-info-order-items{
    font-size: 14px;
    font-weight: 600;
}
.sbp-xp-info-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
    font-size: 13px;
}
.sbp-xp-info-table th {
    text-align: left;
    font-weight: 600;
    color: #6b7280;
    padding: 8px;
    border: none;
}
.sbp-xp-info-table td {
    padding: 10px 8px;
    border: none;
    color: #374151;
}
.sbp-xp-info-table tr {
    border-bottom: 1px solid #e5e7eb;
}
.sbp-xp-positive {
    color: #f59e0b;
    font-weight: 700;
}
.sbp-xp-negative {
    color: #ef4444;
    font-weight: 700;
}

/* Notifica Floating */
.sbp-floating-notification {
    position: fixed;
    bottom: 20px;
    right: 35px;
    z-index: 9998;
    width: 729.36px;
    border-radius: 16px;
    /* overflow: hidden; */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    background: #f5f5f5;
    height: 200px;
}

/* Parte superiore */
.sbp-floating-top {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: #e9e9e9;
    height: 70%;
    border-radius: 20px 20px 0px 0px;
}
.sbp-floating-mascot {
    width: 80px;
    height: 80px;
    object-fit: contain;
}
.sbp-floating-xp-display {
    flex: 1;
    font-size: 48px;
    font-weight: 700;
    color: #e74c6f;
    display: flex;
    justify-content: center;
    font-style: italic;
}
.sbp-floating-xp-display strong {
   /* font-size: 32px; */
}
.sbp-floating-close {
    position: absolute;
    top: -20px;
    right: -15px;
    width: 38px;
    height: 38px;
    background: #ef4444;
    color: #fff;
    /* border: aliceblue; */
    outline: 1px solid white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sbp-floating-mascot-container{
    position: relative;
}

.sbp-floating-mascot{
    left: -40px;
    height: 196px;
    width: 200px;
    position: absolute;
    top: -42px;
    z-index: 10;
}

.sbp-floating-close-icon{
    max-width: none !important;
}
/* monete */
.sbp-money-first, .sbp-money-second, .sbp-money-third, .sbp-money-fourth{
    position: relative;
}

.sbp-money-first-icon, .sbp-money-second-icon, .sbp-money-third-icon, .sbp-money-fourth-icon{
    position: absolute;
}

.sbp-money-first-icon{
    
    left: 179px;
    z-index: 10;
    top: -18px;
}

.sbp-money-second-icon{
 
    left: 259px;
    z-index: 10;
    top: 6px;
}

.sbp-money-third-icon{
    
    left: 619px;
    z-index: 10;
    top: -24px;
}

.sbp-money-fourth-icon{
    
    z-index: 10;
    top: 45px;
    right: -26px;
}



/* Parte inferiore */
.sbp-floating-bottom {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    background: #ffffff;
    height: 30%;
    justify-content: space-around;
    border-radius: 0 0 20px 20px;
}
.sbp-floating-info {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 12px;
}
.sbp-floating-info-label {
    font-weight: 400;
    text-transform: uppercase;
    color: #212121;
    font-size: 16px;
}
.sbp-floating-info-value {
    font-weight: 600;
    color: #e74c6f;
    font-size: 18px;
}
.sbp-floating-info-logo {
    height: 18px;
    object-fit: contain;
    width: 100px;
    
}

.sbp-floating-info:nth-child(2) {
    border-right: 1px solid #D0D0D0;
    padding-right: 30px;
    border-left: 1px solid #D0D0D0;
    padding-left: 30px;
}

/* Messaggi Floating Temporanei */
.sbp-floating-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.sbp-floating-message.show {
    transform: translateX(0);
    opacity: 1;
}

.sbp-floating-message.sbp-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.sbp-floating-message.sbp-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .sbp-container {
        padding: 20px;
        margin: 20px;
    }

    .sbp-header {
        flex-direction: column;
        gap: 20px;
    }

    .sbp-tiers-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
    }

    .sbp-title {
        font-size: 24px;
    }

    .sbp-stats {
        gap: 20px;
    }

    .sbp-modal-content {
        padding: 20px;
    }

    .sbp-floating-notification {
        bottom: 100px !important;
        right: 10px;
        left: 10px;
        width: auto;
        height: auto !important;
    }

    .sbp-floating-mascot {
        width: 110px !important;
        height: 100px;
        left: -15px;
        top: -25px;
    }

    .sbp-floating-xp-display {
        font-size: 24px;
        padding-left: 80px;
    }

    .sbp-floating-top {
        padding: 12px 15px;
    }

    .sbp-money-first-icon {
        left: 80px;
        top: -12px;
        width: 25px;
    }

    .sbp-money-second-icon {
        left: 140px;
        top: 4px;
        width: 20px;
    }

    .sbp-money-third-icon {
        display: none;
    }

    .sbp-money-fourth-icon {
        right: -10px;
        top: 25px;
        width: 25px;
    }

    .sbp-floating-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 8px 15px;
    }

    .sbp-floating-info {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .sbp-floating-info:nth-child(2) {
        border-left: none;
        border-right: none;
        padding-left: 0;
        padding-right: 0;
    }

    .sbp-floating-info-label {
        font-size: 12px;
    }

    .sbp-floating-info-value {
        font-size: 14px;
    }

    .sbp-floating-info-logo {
        width: 70px;
        height: 14px;
    }

    .sbp-floating-close {
        top: -12px;
        right: -8px;
        width: 30px;
        height: 30px;
    }

    .sbp-coupons-dashboard {
        padding: 20px;
    }

    .sbp-coupons-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .sbp-coupon-code-display {
        font-size: 12px;
        padding: 8px 14px;
    }

    .sbp-coupon-value {
        font-size: 18px;
    }

    .sbp-coupon-icon {
        font-size: 36px;
    }

    /* === Barra di progressione mobile === */
    .sbp-bar-section {
        margin: 20px 0;
    }

    .sbp-progress-bar-wrapper {
        margin: 40px 0;
        height: 26px;
    }

    .sbp-tier-number-container {
        width: 3rem;
        height: 3rem;
    }

    .sbp-tier-number-container-last {
        width: 5rem;
        height: 5rem;
    }

    .sbp-claim-button-container {
        width: 140px;
    }

    .sbp-claim-button-container-text {
        font-size: 12px;
        padding-top: 8px;
        padding-bottom: 4px;
    }

    .sbp-claim-button-container-button {
        font-size: 8px;
        padding-top: 8px;
    }

    .sbp-info-header {
        width: 100%;
        flex-direction: column;
        border-radius: 16px;
        gap: 0;
        margin: 20px 0 30px 0;
    }

    .sbp-days-left-container {
        width: 100%;
        border-radius: 16px 16px 0 0;
        padding: 8px 15px 8px 60px;
        justify-content: center;
    }

    .sbp-days-left-icon {
        left: -50px;
        top: -5px;
    }

    .sbp-days-left-icon img {
        width: 40px !important;
        height: 40px !important;
    }

    .sbp-days-left-value {
        font-size: 22px;
    }

    .sbp-days-left-label {
        font-size: 13px;
    }

    .sbp-info-header-right {
        flex-direction: column;
        width: 100%;
        padding: 10px 15px;
        gap: 6px;
    }

    .sbp-info-marchio {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .sbp-info-marchio-item {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        /* gap: 10px !important; */
    }

    .sbp-info-tier {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        border-left: none;
        border-right: none;
    }

    .sbp-info-xp-totale {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .sbp-stat-label {
        font-size: 14px;
    }

    .sbp-stat-value {
        font-size: 16px;
    }

    .sbp-load-section-container {
        padding: 0 10px;
    }

    .sbp-load-section {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin: 20px 0 !important;
    }

    .sbp-pending-badge {
        font-size: 14px;
        padding: 12px 15px 12px 40px;
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
    }

    .sbp-pending-badge strong {
        font-size: 16px;
        margin: 0 5px;
    }

    .sbp-pending-badge-icon {
        width: 50px;
        height: 50px;
        left: -15px;
    }

    #sbp-load-button {
        width: 100%;
    }

    #sbp-load-text img {
        max-width: 280px;
        width: 100%;
    }

    .sbp-load-hint {
        font-size: 12px;
        text-align: center;
        padding: 0 10px;
    }
}

/* Sezione scegli battlepass */

.sbp-selector-title{
    font-size: 60px;
    font-weight: 900;
    font-style: italic;
    color: #212121;
    margin: 0;
}

.sbp-selector-subtitle{
    font-size: 24px;
    font-weight: 500;
    color: #212121;
    margin: 0;
}

.sbp-type-selector-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    /* background: white; */
    /* border-radius: 16px; */
    /* box-shadow: 0 4px 10px rgba(0,0,0,0.1); */
}

.sbp-info-item-hr{
    border: 0.5px solid #D0D0D0;
}
.sbp-selector-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
}
.sbp-selector-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 30px;
}
.sbp-category-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.sbp-category-tab {
    padding: 15px 30px;
    border: none;
    border-bottom: 4px solid transparent;
    background: #f3f4f6;
    border-radius: 18px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 184.09px;
}

.sbp-category-tab:hover {
    background: #e5e7eb;
}
.sbp-category-tab.active {
    background: #FFBD4C;
    border-bottom-width: 4px;
}
.sbp-category-content {
    min-height: 300px;
}
.sbp-battlepasses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}
.sbp-battlepass-card {
    background: white;
    border: 0.5px solid white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.sbp-battlepass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.sbp-battlepass-card.sbp-battlepass-selected {
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.sbp-battlepass-header {
    padding: 25px;
    color: white;
    text-align: center;
    background-color: #FFBD4C;
}
.sbp-battlepass-emoji {
    font-size: 48px;
    margin-bottom: 10px;
}
.sbp-battlepass-header-title{
    font-size: 32px;
    font-weight: 900;
    color: #000000;
    font-style: italic;
}
.sbp-battlepass-body {
    padding: 20px;
    flex-grow: 1;
    background-color:#f5f5f5 ;
}
.sbp-battlepass-desc {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}
.sbp-battlepass-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}
.sbp-info-item {
    text-align: center;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
}
.sbp-info-item strong {
    display: block;
    font-size: 24px;
    color: #1f2937;
    margin-bottom: 5px;
}
.sbp-info-item span {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
}
.sbp-battlepass-deadline {
    background: #fef3c7;
    color: #92400e;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    margin-top: 15px;
}

.sbp-deadline-bar {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 15px;
    position: relative;
    border-radius: 8px;
}

.sbp-deadline-bar-icon {
    flex-shrink: 0;
    z-index: 1;
    margin-right: -10px;
    position: absolute;
}

.sbp-deadline-bar-track {
    position: relative;
    flex: 1;
    height: 36px;
    background: #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.sbp-deadline-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #FF4365;
    /* border-radius: 20px; */
    transition: width 0.6s ease;
}

.sbp-deadline-bar-text {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    padding-left: 15px;
}
.sbp-select-battlepass-btn {
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 15px;
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}
.sbp-select-battlepass-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.sbp-battlepass-badge {
    background: #6ACB0D;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: semibold;
    font-size: 20px;

}



.sbp-select-battlepass-btn-container{
    width: 100%;
    text-align: center;
    padding: 10px;
    background: #f5f5f5;
}

.sbp-select-battlepass-btn{
    background-color: #FFD24A;
    color: #212121;
    border-radius: 8px;
}

.sbp-select-battlepass-btn:hover{
    background-color: #6acb0d;
    color: #ffffff;
    border-radius: 8px;
}

.sbp-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}
.sbp-type-message {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
    display: none;
}
.sbp-type-message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}
.sbp-type-message.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}




/* TOPBAR */

.sbp-topbar {
    position: relative;
    z-index: 9990;
    width: 100%;
    font-family: inherit;
    display: flex;
    flex-direction: row;
}
.sbp-topbar-days {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    background-color: var(--sbp-primary);
    padding: 10px;
}
.sbp-topbar-content {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

/* Riga collassata */
.sbp-topbar-collapsed {
    display: flex;
    align-items: center;
    height: 64px;
}
.sbp-topbar-days-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.sbp-topbar-days-value {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    line-height: 10px;

}
.sbp-topbar-days-value small {
    font-size: 11px;
    font-weight: 600;
}
.sbp-topbar-days-label {
    font-size: 16px !important;
    color: #ffffff;
    font-weight: 400;
}

.sbp-topbar-days-value-container{
    display: flex;
    flex-direction: column;
    
}

/* Barra progresso */
.sbp-topbar-progress {
    flex: 1;
    background-color: rgb(0, 0, 0);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.sbp-topbar-progress-track {
    position: relative;
    height: 43px;
    background: #505050;
    /* border-radius: 12px; */
    overflow: visible;
    margin-left: 10px;
}
.sbp-topbar-progress-fill {
    height: 100%;
    background: linear-gradient(180deg,rgba(255, 210, 74, 1) 50%, rgba(241, 177, 67, 1) 50%);
    border-radius: 0px 30px 30px 0px;    ;
    transition: width 0.6s ease;
}
.sbp-topbar-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    /* background: rgba(255,255,255,0.3); */
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
}
.sbp-topbar-marker.reached {
    /* background: #fff; */
    color: #1f2937;
}
.sbp-topbar-marker.has-reward {
    display: flex;
    align-items: center;
    gap: 3px;
}
.sbp-topbar-marker-icon {
    width: 60px;
    height: 60px;
}

.sbp-topbar-marker-text{
    font-size: 16px;
    font-weight: 800;
    font-style: italic;
    color: #1f2937;
}

.sbp-topbar-marker .sbp-topbar-marker-text-no-marked {
    font-size: 16px;
    font-weight: 800;
    font-style: italic;
    color: #ffffff;
}

/* Frecce tra i tier */
.sbp-topbar-arrows {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 10px;
    z-index: 2;
    opacity: 0.6;
}

/* Tooltip prodotto carrello */
.sbp-topbar-progress {
    position: relative;
}
.sbp-topbar-tooltip {
    position: absolute;
    top: 100%;
    left: var(--tooltip-left, 50%);
    transform: translateX(-50%);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FFBD4C;
    border-radius: 25px;
    padding: 6px 30px 6px 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 10000;
    white-space: nowrap;
    height: 85px;
    animation: sbp-tooltip-bounce 3s ease-in-out infinite;
    border: 0.5px solid #ffffff;
}
.sbp-topbar-tooltip-img {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.sbp-topbar-tooltip-text {
    font-size: 12px;
    color: #1f2937;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
}
.sbp-topbar-tooltip-name {
    font-size: 16px;
    color: #000000;
    font-weight: 500;
}
.sbp-topbar-tooltip-text strong {
    color:var(--sbp-primary);
    font-size: 13px;
}
.sbp-topbar-tooltip-arrow {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid  #FFBD4C;
}
@keyframes sbp-tooltip-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-4px); }
}

/* XP */
.sbp-topbar-xp {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    background: rgba(255,255,255,0.3);
    padding: 4px 12px;
    border-radius: 10px;
}
.sbp-topbar-xp-current {
    font-size: 15px;
}

/* Riga espansa */
.sbp-topbar-expanded {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 8px 20px;
    background: rgb(0, 0, 0);
    border-top: 1px solid rgba(0,0,0,0.1);
    height: 64px;
}
.sbp-topbar-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #1f2937;
   
    
}

.sbp-topbar-detail:nth-child(2) {
    border-left: 0.5px solid #BCBCBC;
    border-right: 0.5px solid #BCBCBC;
    padding: 0 20px;
}



.sbp-topbar-detail-label {
    font-weight: regular;
    text-transform: uppercase;
    font-size: 16px;
    /* opacity: 0.7; */
    color: #ffffff;
}

.sbp-topbar-detail-value {
    color: var(--sbp-primary);
    font-size: 16px;
    font-weight: 700;
}
.sbp-topbar-detail-logo{
    color: var(--sbp-primary);
    font-size: 18px;
    font-weight: 600;
}

.sbp-topbar-detail-logo-container{
    display: flex;
    align-items: center;
    gap: 6px;
}
.sbp-topbar-detail-logo {
    height: 20px;
    object-fit: contain;
    width: 100px;
    /* margin-bottom: 10px; */
}


.sbp-topbar-btn {
    background: #FFD24A;
    color: #000000;
    padding: 6px 18px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.2s;
}
.sbp-topbar-btn:hover {
    opacity: 0.85;
    color: #fff;
}

@media screen and (max-width: 768px) {
    .sbp-topbar-collapsed {
        padding: 5px 10px;
        /* gap: 8px; */
    }
    .sbp-topbar-days-label { display: none; }
    .sbp-topbar-marker span { font-size: 8px; }
    .sbp-topbar-marker-icon {
        width: 40px;
        height: 40px;
    }
    .sbp-topbar-marker-text,
    .sbp-topbar-marker .sbp-topbar-marker-text-no-marked {
        font-size: 11px;
    }
    .sbp-topbar-expanded {
        flex-direction: column;
        height: auto;
        /* gap: 8px; */
        padding: 10px 15px;
    }

    .sbp-topbar-expanded-left {
        width: 100% !important;
        text-align: center;
    }

    .sbp-topbar-expanded-right {
        width: 100% !important;
        flex-direction: column;
        gap: 0px !important;
    }

    .sbp-topbar-detail {
        justify-content: space-between;
        width: 100%;
    }

    .sbp-topbar-detail-logo-container {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
        justify-content: space-between !important;
    
    
    
    }

    .sbp-topbar-detail:nth-child(2) {
        border-left: none;
        border-right: none;
        padding: 0;
    }

    .sbp-topbar-detail-label {
        font-size: 12px;
    }

    .sbp-topbar-detail-value {
        font-size: 14px;
    }

    .sbp-topbar-btn {
        font-size: 14px;
        padding: 6px 14px;
        display: block;
    }

    .sbp-topbar-detail-logo {
        width: 70px;
        height: 16px;
    }
}

.sbp-topbar-expanded-left{
    width: 20%;
}
.sbp-topbar-expanded-right{
    width: 80%;
    display: flex;
    gap: 60px;
}

/* Cart */

.sbp-cart-reward-notice{
    background: #e9e9e9 !important;
    padding: 20px !important;
    border-radius: 8px !important;
    margin: 20px 0 !important;
    outline: 1px solid #ffffff !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.sbp-cart-reward-notice-title{
    font-size: 16px;
    font-weight: bold;
    color: #000000;
}

.woocommerce-info::before{
    display: none !important;
}