/* Affiliate Program Block Styles */

.mobcash-affiliate-program-wrapper {
    width: 100%;
}

.aff-section {
    padding: 60px 0;
    background-color: #080A0F;
    position: relative;
    overflow: hidden;
}

/* Grid layout */
.aff-container-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-areas:
        "text diag"
        "btn diag";
    align-items: center;
    gap: 40px 80px;
}

/* Text block */
.aff-text-block {
    grid-area: text;
    display: flex;
    flex-direction: column;
}

.aff-badge-new {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(110, 50, 249, 0.1);
    border: 1px solid rgba(110, 50, 249, 0.3);
    color: var(--accent-purple, #6E32F9);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 1px;
    align-self: flex-start;
}

.aff-title-big {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--text-white, #fff);
}

.aff-description {
    font-size: 16px;
    color: var(--text-gray, #8A92A6);
    line-height: 1.7;
}

/* Diagram block */
.aff-diag-block {
    grid-area: diag;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 350px;
}

.diagram-anchor {
    width: 380px;
    height: 280px;
    position: relative;
}

/* Button block */
.aff-btn-block {
    grid-area: btn;
}

.btn-aff-action {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--accent-purple, #6E32F9);
    color: white;
    padding: 18px 45px;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(110, 50, 249, 0.3);
    text-decoration: none;
}

.btn-aff-action:hover {
    transform: translateY(-3px);
    background-color: #5b28d6;
}

/* Diagram nodes */
.node-group {
    position: absolute;
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}

.node-box {
    width: 56px;
    height: 56px;
    background-color: var(--bg-card, #1E2330);
    border: 1px solid var(--border-color, #272C3D);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: var(--text-white, #fff);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.node-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray, #8A92A6);
    white-space: nowrap;
}

.node-cashier { top: 0; left: 0; }
.node-income { top: 0; right: 0; }
.node-affiliate { bottom: 0; left: 50%; transform: translateX(-50%); }

.node-income .node-box {
    background-color: var(--accent-purple, #6E32F9);
    border: none;
    box-shadow: 0 10px 25px rgba(110, 50, 249, 0.4);
}

.node-income .node-label {
    color: var(--text-white, #fff);
}

.diagram-lines-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: visible;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 992px) {
    .aff-container-grid {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .aff-text-block { order: 1; align-items: center; }
    .aff-diag-block { order: 2; width: 100%; min-height: 300px; margin: 20px 0; }
    .aff-btn-block { order: 3; width: 100%; }
    .aff-title-big { font-size: 30px; }
    .aff-badge-new { align-self: center; }
    .btn-aff-action { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .diagram-anchor { transform: scale(0.8); }
    .aff-section { padding: 60px 0; }
}
