.nav-afil-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 15px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .01em;
    color: #e27a7a;
    background: linear-gradient(135deg, rgba(180, 42, 42, .18) 0, rgba(105, 25, 25, .12) 100%);
    border: 1px solid rgba(180, 42, 42, .28);
    border-radius: 12px;
    cursor: pointer;
    transition: .22s;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: none
}

.nav-afil-btn:hover {
    color: #f0b0b0;
    border-color: rgba(180, 42, 42, .5);
    background: linear-gradient(135deg, rgba(180, 42, 42, .28) 0, rgba(105, 25, 25, .18) 100%);
    transform: translateY(-1px)
}

.nav-afil-btn svg {
    flex-shrink: 0;
    stroke-width: 2.2
}

.nav-menus {
    position: static !important;
    left: auto !important;
    transform: none !important;
    margin: 0 auto !important
}

.nav-right {
    margin-left: 0 !important
}

@media (max-width:1100px) {
    .nav-afil-btn span {
        display: none
    }
    .nav-afil-btn {
        padding: 0 11px
    }
}

.afl-reg-box {
    position: relative;
    width: min(480px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: #100707;
    border: 1px solid rgba(180, 42, 42, .25);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 0 60px rgba(180, 42, 42, .12), 0 24px 64px rgba(0, 0, 0, .6)
}

.afl-reg-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px
}

.afl-reg-ic {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(180, 42, 42, .15);
    border: 1px solid rgba(180, 42, 42, .3);
    border-radius: 14px;
    box-shadow: 0 0 16px rgba(180, 42, 42, .2)
}

.afl-reg-title {
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .02em
}

.afl-reg-sub {
    font-size: 11px;
    color: #737373;
    margin-top: 2px
}

.afl-reg-close {
    margin-left: auto;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #737373;
    background: 0 0;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    cursor: pointer;
    transition: .2s
}

.afl-reg-close:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .25)
}

.afl-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.afl-field {
    margin-bottom: 14px
}

.afl-field label {
    display: block;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: #737373;
    margin-bottom: 6px
}

.afl-inp {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 13px;
    color: #fff;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    outline: 0;
    transition: border-color .2s, box-shadow .2s
}

.afl-inp::placeholder {
    color: #404040
}

.afl-inp:focus {
    border-color: rgba(180, 42, 42, .5);
    box-shadow: 0 0 0 3px rgba(180, 42, 42, .12)
}

.afl-pix-types {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 5px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px
}

.afl-pix-type {
    flex: 1;
    min-width: 64px;
    padding: 8px 6px;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    text-align: center;
    color: #737373;
    background: 0 0;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    transition: .2s;
    line-height: 1.3
}

.afl-pix-type:hover {
    color: #a1a1a1
}

.afl-pix-type.on {
    color: #d45a5a;
    background: rgba(180, 42, 42, .12);
    border-color: rgba(180, 42, 42, .4)
}

.afl-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 11px;
    color: #a1a1a1;
    margin: 4px 0 18px;
    cursor: pointer;
    user-select: none;
    line-height: 1.5
}

.afl-terms input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0
}

.afl-check {
    flex-shrink: 0;
    margin-top: 1px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 6px;
    transition: .18s
}

.afl-check svg {
    width: 12px;
    height: 12px;
    color: #fff;
    opacity: 0;
    transform: scale(.4);
    transition: opacity .18s, transform .18s cubic-bezier(.34, 1.56, .64, 1)
}

.afl-terms:hover .afl-check {
    border-color: rgba(180, 42, 42, .5);
    background: rgba(180, 42, 42, .08)
}

.afl-terms input:checked~.afl-check {
    background: linear-gradient(135deg, #b42a2a 0, #8f2020 100%);
    border-color: rgba(180, 42, 42, .8);
    box-shadow: 0 0 12px rgba(180, 42, 42, .35)
}

.afl-terms input:checked~.afl-check svg {
    opacity: 1;
    transform: scale(1)
}

.afl-terms input:focus-visible~.afl-check {
    box-shadow: 0 0 0 3px rgba(180, 42, 42, .25)
}

.afl-terms-tx {
    transition: color .18s;
    padding-top: 1px
}

.afl-terms:hover .afl-terms-tx {
    color: #c9c9c9
}

.afl-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: #fff;
    background: #b42a2a;
    border: 1px solid rgba(180, 42, 42, .5);
    border-radius: 14px;
    cursor: pointer;
    transition: .3s;
    box-shadow: 0 0 20px rgba(180, 42, 42, .3)
}

.afl-submit:hover {
    background: #8f2020
}

.afl-submit:disabled {
    opacity: .5;
    cursor: not-allowed
}

.afl-reg-error {
    display: none;
    font-size: 11px;
    color: #ef4444;
    padding: 10px 12px;
    margin-bottom: 14px;
    background: rgba(239, 68, 68, .08);
    border: 1px solid rgba(239, 68, 68, .25);
    border-radius: 10px
}

.afl-success {
    display: none;
    text-align: center;
    padding: 8px 0
}

.afl-success-ic {
    width: 72px;
    height: 72px;
    margin: 8px auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d45a5a;
    background: rgba(180, 42, 42, .1);
    border: 1px solid rgba(180, 42, 42, .35);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(180, 42, 42, .25)
}

.afl-success h3 {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px
}

.afl-success p {
    font-size: 12px;
    color: #737373;
    line-height: 1.6;
    margin-bottom: 22px
}

.afl-link-box {
    text-align: left;
    padding: 14px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    margin-bottom: 14px
}

.afl-link-box .lbl {
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: #737373;
    margin-bottom: 6px
}

.afl-link-box .lnk {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 12px;
    color: #d45a5a;
    word-break: break-all
}

.afl-copy-btn {
    width: 100%;
    padding: 13px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: #d45a5a;
    background: rgba(180, 42, 42, .08);
    border: 1px solid rgba(180, 42, 42, .35);
    border-radius: 12px;
    cursor: pointer;
    transition: .25s
}

.afl-copy-btn:hover {
    background: rgba(180, 42, 42, .16)
}

.afl-copy-btn.copied {
    color: #22c55e;
    background: rgba(34, 197, 94, .08);
    border-color: rgba(34, 197, 94, .4)
}

#afiliado-view {
    padding: 130px 40px 60px;
    min-height: 100vh
}

.afl-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 22px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start
}

.afl-side {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    background: #100707;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 20px;
    padding: 18px;
    min-height: calc(100vh - 200px)
}

.afl-side-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 6px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    margin-bottom: 14px
}

.afl-side-head .t1 {
    font-size: 13px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase
}

.afl-side-head .t2 {
    font-size: 9px;
    color: #737373
}

.afl-side-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #737373;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: .2s;
    margin-bottom: 4px
}

.afl-side-item:hover {
    color: #a1a1a1;
    background: rgba(255, 255, 255, .03)
}

.afl-side-item.on {
    color: #d45a5a;
    background: rgba(180, 42, 42, .1);
    border-color: rgba(180, 42, 42, .3)
}

.afl-side-user {
    margin-top: auto;
    padding: 14px;
    background: rgba(255, 255, 255, .02);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 14px
}

.afl-side-user .row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px
}

.afl-side-user .av {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(180, 42, 42, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d45a5a
}

.afl-side-user .nm {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2
}

.afl-side-user .pc {
    font-size: 9px;
    font-weight: 900;
    color: #d45a5a;
    text-transform: uppercase;
    letter-spacing: .1em
}

.afl-side-user .lbl {
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: #737373;
    margin-bottom: 4px
}

.afl-side-user .lnk {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 9px;
    color: #a1a1a1;
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 8px;
    padding: 7px 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px
}

.afl-side-user .cp {
    width: 100%;
    padding: 9px;
    font-family: inherit;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: #d45a5a;
    background: rgba(180, 42, 42, .08);
    border: 1px solid rgba(180, 42, 42, .3);
    border-radius: 10px;
    cursor: pointer;
    transition: .2s
}

.afl-side-user .cp:hover {
    background: rgba(180, 42, 42, .16)
}

.afl-side-user .cp.copied {
    color: #22c55e;
    background: rgba(34, 197, 94, .08);
    border-color: rgba(34, 197, 94, .4)
}

.afl-content {
    min-width: 0
}

.afl-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 22px
}

.afl-page-head h2 {
    font-size: 24px;
    font-weight: 900;
    color: #fff
}

.afl-page-head .sub {
    font-size: 11px;
    color: #737373;
    margin-top: 4px
}

.afl-periods {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px
}

.afl-period {
    padding: 7px 14px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #737373;
    background: 0 0;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    transition: .2s
}

.afl-period:hover {
    color: #a1a1a1
}

.afl-period.on {
    color: #d45a5a;
    background: rgba(180, 42, 42, .12);
    border-color: rgba(180, 42, 42, .4)
}

.afl-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 22px
}

.afl-stat {
    padding: 18px;
    background: #100707;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 16px
}

.afl-stat .top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px
}

.afl-stat .lbl {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: #737373
}

.afl-stat .ic {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #d45a5a;
    background: rgba(180, 42, 42, .1)
}

.afl-stat .ic.green {
    color: #22c55e;
    background: rgba(34, 197, 94, .1)
}

.afl-stat .val {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -.02em
}

.afl-stat.green {
    border-color: rgba(34, 197, 94, .2);
    background: linear-gradient(180deg, rgba(34, 197, 94, .04), transparent 60%), #100707
}

.afl-stat.green .val {
    color: #22c55e
}

.afl-chart-card {
    padding: 20px;
    background: #100707;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 16px;
    margin-bottom: 18px
}

.afl-chart-card h4 {
    font-size: 12px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 18px
}

.afl-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 160px
}

.afl-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    justify-content: flex-end;
    min-width: 0
}

.afl-bar {
    width: 100%;
    max-width: 28px;
    background: linear-gradient(180deg, rgba(180, 42, 42, .9), rgba(180, 42, 42, .35));
    border-radius: 4px 4px 0 0;
    min-height: 2px;
    transition: opacity .2s;
    position: relative
}

.afl-bar:hover {
    opacity: .8
}

.afl-bar-lbl {
    font-size: 8px;
    color: #404040;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%
}

.afl-chart-empty {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #404040
}

.afl-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    align-items: center
}

.afl-search {
    flex: 1;
    min-width: 180px;
    max-width: 260px;
    padding: 9px 14px;
    font-family: inherit;
    font-size: 11px;
    color: #fff;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    outline: 0
}

.afl-search::placeholder {
    color: #404040
}

.afl-search:focus {
    border-color: rgba(180, 42, 42, .5)
}

.afl-list {
    background: #100707;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 16px;
    overflow: hidden
}

.afl-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .04)
}

.afl-row:last-child {
    border-bottom: none
}

.afl-row .l1 {
    font-size: 12px;
    font-weight: 800;
    color: #fff
}

.afl-row .l2 {
    font-size: 10px;
    color: #737373;
    margin-top: 2px
}

.afl-row .r {
    text-align: right;
    flex-shrink: 0
}

.afl-row .amt {
    font-size: 13px;
    font-weight: 900;
    color: #fff
}

.afl-row .com {
    font-size: 10px;
    font-weight: 800;
    color: #22c55e;
    margin-top: 2px
}

.afl-badge {
    display: inline-block;
    padding: 3px 9px;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .1em;
    border-radius: 99px
}

.afl-badge.ok {
    color: #22c55e;
    background: rgba(34, 197, 94, .08);
    border: 1px solid rgba(34, 197, 94, .3)
}

.afl-badge.pend {
    color: #eab308;
    background: rgba(234, 179, 8, .08);
    border: 1px solid rgba(234, 179, 8, .3)
}

.afl-badge.ref {
    color: #ef4444;
    background: rgba(239, 68, 68, .08);
    border: 1px solid rgba(239, 68, 68, .3)
}

.afl-empty {
    padding: 48px 20px;
    text-align: center;
    font-size: 12px;
    color: #404040
}

.afl-empty .e2 {
    font-size: 10px;
    color: #333;
    margin-top: 6px
}

.afl-fin-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px
}

.afl-saque-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: #fff;
    background: #b42a2a;
    border: 1px solid rgba(180, 42, 42, .5);
    border-radius: 12px;
    cursor: pointer;
    transition: .3s;
    box-shadow: 0 0 20px rgba(180, 42, 42, .25)
}

.afl-saque-btn:hover {
    background: #8f2020
}

.afl-saque-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
    box-shadow: none
}

.afl-saque-note {
    font-size: 10px;
    color: #737373;
    margin-top: 10px
}

.afl-fin-sec-title {
    font-size: 12px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 24px 0 12px
}

.afil-saques-box {
    margin-bottom: 24px;
    padding: 18px;
    background: rgba(234, 179, 8, .03);
    border: 1px solid rgba(234, 179, 8, .18);
    border-radius: 16px
}

.afil-saques-box.empty-hide {
    display: none
}

.afil-saques-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #eab308;
    margin-bottom: 14px
}

.afil-saque-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .02);
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 12px;
    margin-bottom: 8px
}

.afil-saque-row:last-child {
    margin-bottom: 0
}

.afil-saque-row .nm {
    font-size: 12px;
    font-weight: 800;
    color: #fff
}

.afil-saque-row .cd {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 9px;
    color: #737373;
    margin-top: 2px
}

.afil-saque-row .px {
    font-size: 10px;
    color: #a1a1a1;
    margin-top: 4px;
    word-break: break-all
}

.afil-saque-row .px b {
    color: #d45a5a;
    font-weight: 800;
    text-transform: uppercase
}

.afil-saque-row .amt {
    font-size: 15px;
    font-weight: 900;
    color: #eab308
}

.afil-saque-confirm {
    padding: 9px 16px;
    font-family: inherit;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #22c55e;
    background: rgba(34, 197, 94, .08);
    border: 1px solid rgba(34, 197, 94, .35);
    border-radius: 10px;
    cursor: pointer;
    transition: .2s
}

.afil-saque-confirm:hover {
    background: rgba(34, 197, 94, .16)
}

.afil-saque-confirm:disabled {
    opacity: .5;
    cursor: not-allowed
}

@media (max-width:980px) {
    .afl-stats {
        grid-template-columns: repeat(2, 1fr)
    }
    .afl-layout {
        grid-template-columns: 1fr
    }
    .afl-side {
        position: static;
        min-height: 0;
        flex-direction: column
    }
}

@media (max-width:640px) {
    #afiliado-view {
        padding: 100px 14px 40px
    }
    .afl-fin-cards,
    .afl-grid-2,
    .afl-stats {
        grid-template-columns: 1fr
    }
    .afl-bar-lbl {
        display: none
    }
}

.afil-cad-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    background: #170a0a
}

.afil-cad-lbl {
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: #737373
}

.afil-cad-val {
    font-size: 13px;
    font-weight: 600;
    color: #e5e5e5;
    word-break: break-all
}