/* Стили для B2B раздела (Партнерам) */

.b2b-modal-content {
    max-width: 1000px !important;
    padding: 40px !important;
}

/* Навигация по вкладкам */
.b2b-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 15px;
    flex-wrap: wrap;
}

.b2b-tab-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    font-weight: 800;
    font-size: 0.9rem;
    padding: 10px 20px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.b2b-tab-btn.active {
    color: var(--gold);
    border-bottom: 3px solid var(--gold);
}

/* Контент вкладок */
.b2b-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.b2b-panel.active {
    display: block;
}

.b2b-header {
    text-align: center;
    margin-bottom: 40px;
}

.b2b-header h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.b2b-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Сетка преимуществ - сбалансированная 2х2 */
.b2b-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Ровно по 2 в ряд */
    gap: 20px;
    margin-bottom: 50px;
}

@media (max-width: 600px) {
    .b2b-features {
        grid-template-columns: 1fr; /* На узких мобилках в один столбец */
    }
}

.b2b-feat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 25px;
    border-radius: 24px; /* Чуть более скругленные */
    text-align: left;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

/* Стили для полноэкранного просмотра фото */
.full-image-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    animation: fadeIn 0.3s ease;
}

.full-image-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(212,175,55,0.3);
    border: 2px solid var(--gold);
}

.close-full-image {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
}

.b2b-feat-card:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
    transform: translateY(-5px);
}

.b2b-feat-card b {
    color: var(--gold-bright);
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Форма заявки */
.b2b-form-container {
    background: linear-gradient(145deg, rgba(27, 22, 18, 0.9), rgba(45, 38, 30, 0.9));
    border: 1px solid var(--gold);
    padding: 35px;
    border-radius: 30px;
    max-width: 600px;
    margin: 40px auto 0 auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.b2b-form-container h3 {
    color: var(--gold);
    margin-bottom: 25px;
    text-transform: uppercase;
    font-weight: 900;
}

.b2b-input-group {
    margin-bottom: 20px;
    text-align: left;
}

.b2b-input-group label {
    display: block;
    color: var(--text-gray);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    margin-left: 5px;
}

.b2b-input-group input {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: 0.3s;
}

.b2b-input-group input:focus {
    border-color: var(--gold);
    outline: none;
    background: rgba(0,0,0,0.5);
}

.b2b-submit-btn {
    width: 100%;
    background: var(--gold);
    color: #000;
    border: none;
    padding: 18px;
    border-radius: 15px;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.b2b-submit-btn:hover {
    filter: brightness(1.2);
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

/* Секция примеров (Showcase) */
.b2b-showcase {
    margin: 40px 0;
    text-align: center;
}

.showcase-label {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.b2b-img-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.b2b-img-grid img {
    width: 140px;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.b2b-img-grid img:hover {
    transform: scale(1.05);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

/* Мини-таблица для блогеров */
.b2b-blog-preview-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.b2b-mini-table {
    background: #1B1612;
    border: 2px solid var(--gold);
    border-radius: 20px;
    padding: 20px;
    width: 280px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    text-align: left;
}

.mini-table-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-weight: 900;
    font-size: 0.9rem;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(212,175,55,0.2);
    padding-bottom: 10px;
}

.mini-table-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #fff;
    font-weight: 700;
    gap: 15px; /* Гарантированный отступ между элементами */
}

.m-rank { color: var(--gold); width: 25px; flex-shrink: 0; }
.m-name { flex-grow: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 5px; }
.m-weight { color: var(--gold-bright); flex-shrink: 0; min-width: 70px; text-align: right; }
[dir="rtl"] .m-weight { text-align: left; }

.mini-table-live {
    margin-top: 15px;
    font-size: 0.65rem;
    color: #4CAF50;
    font-weight: 900;
    text-align: center;
    animation: fadeIn 1s infinite alternate;
}

.b2b-img-grid.mini img {
    width: 120px;
    height: 200px;
}

.b2b-success-msg {
    color: #4CAF50;
    font-weight: 800;
    margin-top: 20px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .b2b-modal-content { padding: 25px 15px !important; }
    .b2b-header h2 { font-size: 1.5rem; }
    .b2b-tabs {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        border-bottom: none !important;
        padding-bottom: 0 !important;
        margin-bottom: 25px !important;
    }
    .b2b-tab-btn {
        width: 100% !important;
        text-align: center !important;
        font-size: 0.8rem !important;
        padding: 12px 15px !important;
        background: rgba(255, 255, 255, 0.01) !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
    }
    .b2b-tab-btn.active {
        color: var(--gold) !important;
        border: 1.5px solid var(--gold) !important;
        background: rgba(212, 175, 55, 0.05) !important;
    }
    .b2b-form-container { padding: 20px; }
}
