/* Main Partners Section */
.main-partners {
    padding: 4rem 0;
    position: relative;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    padding: 1rem;
    margin: 0 auto;
}

.partner-card {
    background: rgba(28, 28, 28, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    text-align: center;
}

.partner-card:hover {
    transform: translateY(-5px);
    border-color: rgba(98, 0, 234, 0.3);
    box-shadow: 0 12px 40px rgba(98, 0, 234, 0.2);
}

.partner-logo-wrapper {
    background-color: #2a2a2e; /* Fallback */
    background-image: linear-gradient(135deg, #4c4c4c, #2c2c2c); /* Default Gradient */
    border-radius: 16px 16px 0 0;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    position: relative;
    overflow: hidden;
}

.partner-logo-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Unique Gradients */
.gradient-1 { background-image: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); }
.gradient-2 { background-image: linear-gradient(135deg, #fc5c7d 0%, #6a82fb 100%); }
.gradient-3 { background-image: linear-gradient(135deg, #f7971e 0%, #ffd200 100%); }
.gradient-4 { background-image: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%); }
.gradient-5 { background-image: linear-gradient(135deg, #ef32d9 0%, #89fffd 100%); }
.gradient-6 { background-image: linear-gradient(135deg, #76b852 0%, #8dc26f 100%); }
.gradient-7 { background-image: linear-gradient(135deg, #f83600 0%, #f9d423 100%); }
.gradient-8 { background-image: linear-gradient(135deg, #5b247a 0%, #1bcedf 100%); }
.gradient-9 { background-image: linear-gradient(135deg, #D32F2F 0%, #FF5252 100%); }

.partner-logo {
    max-width: 180px;
    height: 100px;
    object-fit: contain;
    margin: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
    position: relative; /* Ensure it's above the ::after pseudo-element */
    z-index: 1;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25));
}

.partner-logo[alt="SESAME"] {
    max-width: 300px;
    height: 200px;
}

.partner-logo[alt="GANGSTA"] {
    max-width: 300px;
    height: 200px;
}

.partner-logo[alt="IWILD"] {
    max-width: 300px;
    height: 200px;
}

.partner-logo[alt="BETONRED"] {
    max-width: 300px;
    height: 200px;
}

.partner-logo[alt="VAVADA"] {
        max-width: 300px;
        height: 200px;
}

.partner-logo[alt="GAMDOM"] {
    max-width: 300px;
    height: 200px;
}

.partner-logo[alt="SHUFFLE"] {
    max-width: 300px;
    height: 200px;
}

.partner-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.partner-content h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.partner-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
    margin: 1rem 0;
}

/* Why Partner With Us Section */
.why-partner-section {
    padding: 6rem 2rem;
    background: rgba(98, 0, 234, 0.02);
    position: relative;
    overflow: hidden;
}

.why-partner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(98, 0, 234, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(41, 121, 255, 0.03) 0%, transparent 50%);
    z-index: 1;
}

.why-partner-section .section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.why-partner-section .section-description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 4rem auto;
    position: relative;
    z-index: 2;
}

.why-partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 2;
    width: 90%;
    margin: 0 auto;
}

.why-partner-item {
    text-align: center;
    padding: 2.5rem;
    background: rgba(13, 13, 13, 0.95);
    border: 1px solid rgba(98, 0, 234, 0.1);
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.why-partner-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(98, 0, 234, 0.05) 0%,
        rgba(41, 121, 255, 0.05) 50%,
        rgba(98, 0, 234, 0.05) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.why-partner-item:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 40px rgba(98, 0, 234, 0.1),
        0 0 20px rgba(41, 121, 255, 0.05);
    border-color: rgba(98, 0, 234, 0.2);
}

.why-partner-item:hover::before {
    opacity: 1;
}

.why-partner-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 2rem;
    background: rgba(98, 0, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s ease;
}

.why-partner-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, 
        rgba(98, 0, 234, 0.5),
        rgba(41, 121, 255, 0.5)
    );
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.why-partner-item:hover .why-partner-icon::before {
    opacity: 1;
}

.why-partner-icon i {
    font-size: 2.2rem;
    background: linear-gradient(135deg, 
        #ffffff 0%,
        #e0e0e0 50%,
        #ffffff 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.4s ease;
}

.why-partner-item:hover .why-partner-icon i {
    transform: scale(1.1);
}

.why-partner-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.why-partner-item h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(98, 0, 234, 0.5),
        rgba(41, 121, 255, 0.5)
    );
    border-radius: 2px;
}

.why-partner-item p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Partner CTA Section */
.partner-cta {
    padding: 8rem 0;
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(98, 0, 234, 0.05) 0%,
        rgba(41, 121, 255, 0.05) 50%,
        rgba(98, 0, 234, 0.05) 100%
    );
    position: relative;
    overflow: hidden;
}

.partner-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(98, 0, 234, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(41, 121, 255, 0.03) 0%, transparent 50%);
    z-index: 1;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, 
        #ffffff 0%,
        #e0e0e0 50%,
        #ffffff 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.cta-content p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* Partner Buttons */
.partner-card .btn, .partner-cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    width: 100%;
    line-height: 1;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    color: white;
    text-shadow: 
        -1px -1px 1px rgba(0,0,0,0.3),
        1px -1px 1px rgba(0,0,0,0.3),
        -1px 1px 1px rgba(0,0,0,0.3),
        1px 1px 1px rgba(0,0,0,0.3);
    background: linear-gradient(90deg, 
        rgba(76, 175, 80, 0.9) 0%,
        rgba(76, 175, 80, 1) 20%,
        rgba(56, 142, 60, 1) 80%,
        rgba(56, 142, 60, 0.9) 100%
    );
    border: 1px solid rgba(76, 175, 80, 0.2);
    box-shadow: 
        inset 0 -2px 0 rgba(0,0,0,0.3),
        inset 0 2px 0 rgba(255,255,255,0.5),
        0 1px 0 #388E3C,
        0 4px 15px rgba(76, 175, 80, 0.4);
}

.partner-card .btn:hover, .partner-cta .btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(90deg, 
        rgba(76, 175, 80, 1) 0%,
        rgba(76, 175, 80, 1) 20%,
        rgba(56, 142, 60, 1) 80%,
        rgba(56, 142, 60, 1) 100%
    );
    box-shadow: 
        inset 0 -2px 0 rgba(0,0,0,0.3),
        inset 0 2px 0 rgba(255,255,255,0.5),
        0 1px 0 #388E3C,
        0 8px 20px rgba(76, 175, 80, 0.5);
    border-color: rgba(76, 175, 80, 0.3);
}

.partner-card .btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.partner-card .btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .partners-hero h1 {
        font-size: 2.5rem;
    }

    .partners-hero p {
        font-size: 1rem;
    }

    .partner-card {
        padding: 0;
    }

    .partner-content {
        padding: 1.5rem;
        width: 100%;
    }

    .partner-logo-wrapper {
        width: 100%;
        height: 120px;
        border-radius: 16px;
    }

    .partner-card img {
        max-width: 150px;
        height: 80px;
    }

    .partner-content h3 {
        font-size: 1.2rem;
    }

    .why-partner-item {
        padding: 2rem;
    }

    .why-partner-icon {
        width: 70px;
        height: 70px;
    }

    .why-partner-icon i {
        font-size: 1.8rem;
    }

    .cta-content h2 {
        font-size: 2.5rem;
    }

    .cta-content p {
        font-size: 1.1rem;
    }

    .partner-card .btn {
        min-width: 100%;
        padding: 14px 24px;
    }

    .promo-container {
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .promo-box {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }

    .promo-box i {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .partners-hero h1 {
        font-size: 2.2rem;
    }

    .partner-card {
        min-height: 180px;
        padding: 1rem 1.25rem;
    }

    .partner-card img {
        width: 140px;
        height: 80px;
    }

    .why-partner-item {
        padding: 1.5rem;
    }

    .why-partner-icon {
        width: 60px;
        height: 60px;
    }

    .why-partner-icon i {
        font-size: 1.5rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .partner-card .btn {
        padding: 14px 24px;
    }

    .promo-container {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .promo-box {
        padding: 0.5rem 0.875rem;
        font-size: 0.85rem;
        justify-content: center;
    }

    .promo-box i {
        font-size: 1rem;
    }
}

.promo-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    width: 100%;
    align-items: center;
}

.promo-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    color: #81c784;
}

.promo-box.spins {
    background: rgba(98, 0, 234, 0.1);
    border: 1px solid rgba(98, 0, 234, 0.2);
    color: #b388ff;
}

.promo-box.sport {
    background: rgba(41, 121, 255, 0.1);
    border: 1px solid rgba(41, 121, 255, 0.2);
    color: #82b1ff;
}

.promo-box.code {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.2);
    color: #81c784;
}

.promo-box.cash {
    background: rgba(247, 151, 30, 0.1);
    border: 1px solid rgba(247, 151, 30, 0.2);
    color: #f7971e;
}

.partner-card:hover .promo-box {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.partner-card:hover .promo-box.spins {
    background: rgba(98, 0, 234, 0.15);
    border-color: rgba(98, 0, 234, 0.3);
}

.partner-card:hover .promo-box.sport {
    background: rgba(41, 121, 255, 0.15);
    border-color: rgba(41, 121, 255, 0.3);
}

.partner-card:hover .promo-box.code {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.3);
}

.partner-card:hover .promo-box.cash {
    background: rgba(247, 151, 30, 0.15);
    border-color: rgba(247, 151, 30, 0.3);
}

.partner-card:hover .promo-box i {
    transform: scale(1.1);
}

/* Modern Tab System */
.modern-tabs {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 2rem;
    --background-primary: var(--darker-bg);
}

.tab-nav {
    display: flex;
    justify-content: space-between;
    position: relative;
    border-bottom: 2px solid;
    gap: 10px;
    transition: border-bottom-color 0.3s ease;
}

.tab-nav-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    cursor: pointer;
    background: transparent;
    border: 2px solid;
    border-bottom: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 8px 0 0;
    text-align: center;
}

.tab-nav-btn:hover {
    color: var(--text-primary);
}

.tab-nav-btn[data-tab="bulgarian"] {
    border-color: rgba(98, 0, 234, 0.3);
}

.tab-nav-btn[data-tab="bulgarian"]:hover {
    border-color: rgba(98, 0, 234, 0.5);
}

.tab-nav-btn[data-tab="international"] {
    border-color: rgba(41, 121, 255, 0.3);
}

.tab-nav-btn[data-tab="international"]:hover {
    border-color: rgba(41, 121, 255, 0.5);
}

.tab-nav-btn.active {
    color: var(--text-primary);
    background: var(--background-primary);
    margin-bottom: -2px;
    z-index: 2;
}

.tab-nav-btn[data-tab="bulgarian"].active {
    border-color: rgba(98, 0, 234, 0.6);
    border-bottom: 2px solid var(--background-primary);
}

.tab-nav-btn[data-tab="international"].active {
    border-color: rgba(41, 121, 255, 0.6);
    border-bottom: 2px solid var(--background-primary);
}

.tab-icon {
    margin-right: 0.75rem;
}

.tab-content-wrapper {
    position: relative;
    background: var(--background-primary);
    border-style: solid;
    border-width: 0 2px 2px 2px;
    padding: 3rem 2rem;
    border-radius: 0 0 8px 8px;
    transition: border-color 0.3s ease;
}

.tab-content-wrapper.bulgarian-active {
    border-color: rgba(98, 0, 234, 0.6);
}

.tab-content-wrapper.international-active {
    border-color: rgba(41, 121, 255, 0.6);
}

.flag-icon, .tab-flag {
    width: 24px;
    height: auto;
    transition: all 0.3s ease;
}

.tab-flag {
    font-size: 1.1rem;
}

.tab-nav-btn.active .tab-icon {
    transform: scale(1.05);
}

.tab-label {
    font-size: 1rem;
    font-weight: 600;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

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

.tab-content.active {
    display: block;
}

/* Dynamically set the tab bar's bottom border color */
.tab-nav.bulgarian-active {
    border-bottom-color: rgba(98, 0, 234, 0.6);
}

.tab-nav.international-active {
    border-bottom-color: rgba(41, 121, 255, 0.6);
}

.tab-nav-btn[data-tab="bulgarian"].active,
.tab-nav-btn[data-tab="international"].active {
    border-bottom: 2px solid var(--background-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-tabs {
        padding: 0 1rem;
    }
    .tab-nav-btn {
        padding: 0.75rem 1rem;
    }
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 576px) {
    .modern-tabs {
        padding: 0 0.5rem;
    }
    .tab-nav-btn {
        padding: 0.8rem 0.5rem;
        font-size: 0.9rem;
    }
    .tab-icon {
        margin-right: 0.5rem;
    }
    .tab-label {
        font-size: 0.9rem;
    }
    .tab-content-wrapper {
        padding: 2rem 1rem;
    }
}