/* Banner Master */
.banner_master {
    width: 100% !important;
    margin: 0 !important;
}

/* Banner Wrapper */
.banner-wrapper {
    position: relative;
}

/* Banner Close Button */
.banner-close-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.banner-close-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: rotate(90deg);
}

.banner-close-btn:active {
    transform: rotate(90deg) scale(0.9);
}

/* Event Banner Container */
.event-banner-container {
    margin-top: 0.5rem;
    margin-bottom: 10px;
}

.event-banner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(219, 234, 254, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 20px 25px;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    min-height: 100px;
    display: flex;
    align-items: center;
    gap: 20px;
    direction: rtl;
}

.event-banner-shine {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    pointer-events: none;
    animation: shine 3s infinite;
}

.event-banner-circle-1 {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -30px;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.event-banner-circle-2 {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -20px;
    right: 15%;
    animation: float 8s ease-in-out infinite 2s;
}

.event-banner-icon {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.event-banner-icon i {
    font-size: 32px;
    color: white;
}

.event-banner-content {
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: right;
}

.event-banner-title {
    margin: 0 0 8px 0;
    font-weight: 700;
    font-size: 18px;
    color: #1e40af;
}

.event-banner-title i {
    margin-left: 5px;
    color: #3b82f6;
}

.event-banner-text {
    margin: 0 0 8px 0;
    line-height: 1.7;
    font-size: 14px;
    color: #1e3a8a;
}

.event-banner-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: end;
}

.event-banner-contact-name {
    font-size: 13px;
    color: #1e40af;
    font-weight: 600;
}

.event-banner-phone {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.event-banner-phone:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
    text-decoration: none;
    color: white;
}

.event-banner-close {
    position: relative;
    z-index: 2;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.event-banner-close:hover {
    background: rgba(59, 130, 246, 0.25);
    transform: rotate(90deg);
}

/* Banners Grid */
.banners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 0.5rem;
    position: relative;
}

.banners-grid a {
    text-decoration: none;
    display: block;
}

/* دکمه close برای کل grid */
.banner-grid-close {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 20;
}

/* Instagram Banner */
.instagram-promo-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #e1306c 100%);
    border-radius: 12px;
    padding: 12px 15px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: all 0.3s;
}

.instagram-promo-banner:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.instagram-banner-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: rotate(45deg);
    pointer-events: none;
    animation: shine 3s infinite;
}

.instagram-banner-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.instagram-banner-icon {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.instagram-banner-icon i {
    font-size: 24px;
    color: white;
}

.instagram-banner-text {
    color: white;
    line-height: 1.3;
}

.instagram-banner-title {
    font-weight: bold;
    font-size: 23px;
    margin-bottom: 2px;
}

.instagram-banner-subtitle {
    font-size: 11px;
    opacity: 0.95;
}

.instagram-banner-arrow {
    position: relative;
    z-index: 1;
}

.instagram-banner-arrow i {
    color: white;
    font-size: 18px;
}

/* Top Scores Banner Grid */
.top-scores-banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.top-score-card {
    border-radius: 12px;
    padding: 10px 12px;
    position: relative;
    overflow: hidden;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: all 0.3s;
}

.top-score-card.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.top-score-card.green:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.top-score-card.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.top-score-card.blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.top-score-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.top-score-icon {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.top-score-icon i {
    font-size: 20px;
    color: white;
}

.top-score-text {
    color: white;
    line-height: 1.2;
}

.top-score-title {
    font-weight: bold;
    font-size: 14px;
}

.top-score-arrow {
    position: relative;
    z-index: 1;
}

.top-score-arrow i {
    color: white;
    font-size: 14px;
}

/* Wheel Banner */
.wheel-promo-banner {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 50%, #f7971e 100%);
    border-radius: 12px;
    padding: 12px 15px;
    box-shadow: 0 4px 15px rgba(247, 151, 30, 0.3);
    position: relative;
    overflow: hidden;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: all 0.3s;
}

.wheel-promo-banner:hover {
    transform: translateY(-3px) scale(1.02) rotate(1deg);
    box-shadow: 0 8px 25px rgba(247, 151, 30, 0.5);
}

.wheel-banner-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255,255,255,0.1) 0%, transparent 40%);
    pointer-events: none;
    animation: bgPulse 4s ease-in-out infinite;
}

.wheel-banner-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.wheel-banner-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(10px);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15), inset 0 1px 3px rgba(255,255,255,0.5);
    border: 2px solid rgba(255, 255, 255, 0.6);
    animation: wheelSpin 8s linear infinite;
    position: relative;
}

.wheel-banner-icon i {
    font-size: 28px;
    color: #f7971e;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.wheel-banner-notification {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ff4757;
    border-radius: 50%;
    top: 8px;
    right: 8px;
    box-shadow: 0 0 10px #ff4757, 0 0 20px #ff4757;
    animation: blink 1.5s infinite;
}

.wheel-banner-text {
    color: white;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.wheel-banner-title {
    font-weight: bold;
    font-size: 23px;
    margin-bottom: 2px;
}

.wheel-banner-subtitle {
    font-size: 11px;
    opacity: 0.95;
    font-weight: 600;
}

.wheel-banner-btn-container {
    position: relative;
    z-index: 1;
}

.wheel-banner-btn {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: bold;
    color: #f7971e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.wheel-banner-btn i {
    font-size: 14px;
}

.wheel-sparkle-1 {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    top: 15px;
    right: 20%;
    box-shadow: 0 0 10px white;
    animation: sparkle 2s infinite;
}

.wheel-sparkle-2 {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    bottom: 20px;
    right: 35%;
    box-shadow: 0 0 8px white;
    animation: sparkle 2.5s infinite 0.5s;
}

.wheel-sparkle-3 {
    position: absolute;
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
    top: 30px;
    right: 60%;
    box-shadow: 0 0 9px white;
    animation: sparkle 3s infinite 1s;
}

/* Animations */
@keyframes wheelSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bgPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

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

/* Responsive - موبایل */
@media (max-width: 768px) {
    .banners-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    
    .banners-grid > a:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }
    
    .banners-grid > div.top-scores-banner-grid {
        grid-column: 1;
        grid-row: 3;
        grid-template-rows: auto !important;
        grid-template-columns: 1fr 1fr !important;
    }
    
    .banners-grid > a:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
    }
    
    .instagram-promo-banner,
    .wheel-promo-banner {
        height: 65px !important;
        padding: 10px 12px !important;
    }
    
    .top-score-card {
        height: 60px !important;
        padding: 8px 10px !important;
    }
    
    .instagram-banner-icon,
    .wheel-banner-icon {
        width: 40px !important;
        height: 40px !important;
    }
    
    .instagram-banner-icon i {
        font-size: 20px !important;
    }
    
    .wheel-banner-icon i {
        font-size: 20px !important;
    }
    
    .top-score-icon {
        width: 32px !important;
        height: 32px !important;
    }
    
    .top-score-icon i {
        font-size: 16px !important;
    }
    
    .top-score-title {
        font-size: 12px !important;
    }
    
    .banner-close-btn {
        width: 24px;
        height: 24px;
        font-size: 12px;
        top: 6px;
        left: 6px;
    }
    
    .banner-grid-close {
        top: 6px;
        left: 6px;
    }
}

