.single-content>#affwp-affiliate-dashboard {
    display: none;
}

/* ── Reset ── */
.sa-wrap,
.sa-wrap * {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Container ── */
.sa-wrap {
    max-width: 880px;
    margin: 32px auto;
    padding: 0;
}

/* ── Cabeçalho ── */
.sa-head {
    text-align: center;
    margin-bottom: 28px;
}

.sa-head h2 {
    font-size: 1.85em;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 6px;
    letter-spacing: -.5px;
}

.sa-head p {
    color: #718096;
    font-size: .93em;
    margin: 0;
}

/* ── Status bar ── */
.sa-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    border-radius: 9px;
    padding: 12px 18px;
    margin-bottom: 18px;
    font-size: .88em;
    color: #2b6cb0;
}

.sa-status strong {
    font-weight: 700;
}

.sa-prog-wrap {
    background: #e2e8f0;
    border-radius: 99px;
    height: 6px;
    margin-bottom: 24px;
    overflow: hidden;
}

.sa-prog-bar {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #00c6ff);
    border-radius: 99px;
    transition: width .4s ease;
}

/* ── Fieldset ── */
.sa-fs {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    padding: 26px 30px 18px;
    margin-bottom: 22px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
    transition: box-shadow .2s;
}

.sa-fs:focus-within {
    box-shadow: 0 4px 18px rgba(0, 115, 170, .1);
}

.sa-fs legend {
    font-size: .75em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #4a5568;
    padding: 0 10px;
    margin-left: -10px;
    background: #fff;
}

/* ── Grid ── */
.sa-row {
    display: grid;
    gap: 0 20px;
    grid-template-columns: 1fr 1fr;
}

.sa-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.sa-row-1 {
    grid-template-columns: 1fr;
}

@media(max-width:640px) {

    .sa-row,
    .sa-row-3 {
        grid-template-columns: 1fr;
    }
}

/* ── Tipo selector (pill buttons) ── */
.sa-type-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.sa-type-btn {
    flex: 1;
    min-width: 160px;
    padding: 16px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #f7fafc;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all .2s;
    text-align: center;
}

.sa-type-btn .sa-type-icon {
    font-size: 2em;
}

.sa-type-btn .sa-type-label {
    font-weight: 700;
    font-size: .95em;
    color: #4a5568;
}

.sa-type-btn .sa-type-sub {
    font-size: .78em;
    color: #a0aec0;
}

.sa-type-btn:hover {
    border-color: #0073aa;
    background: #ebf8ff;
}

.sa-type-btn.sa-type-active {
    border-color: #0073aa;
    background: #ebf8ff;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, .15);
}

.sa-type-btn.sa-type-active .sa-type-label {
    color: #0073aa;
}

.sa-type-note {
    font-size: .82em;
    color: #718096;
    margin-bottom: 18px;
    padding: 10px 14px;
    background: #f7fafc;
    border-radius: 7px;
    border-left: 3px solid #0073aa;
}

/* ── Form group ── */
.sa-fg {
    margin-bottom: 16px;
    position: relative;
}

.sa-fg label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    font-size: .8em;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #4a5568;
}

.sa-fg label .sa-req {
    color: #e53e3e;
    margin-left: 2px;
}

.sa-fg input[type="text"],
.sa-fg input[type="email"],
.sa-fg input[type="url"],
.sa-fg select,
.sa-fg textarea {
    width: 100%;
    padding: 11px 14px;
    font-size: .96em;
    color: #2d3748;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    background: #f7fafc;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.sa-fg input:focus,
.sa-fg select:focus,
.sa-fg textarea:focus {
    border-color: #0073aa;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, .14);
    outline: none;
}

.sa-fg input.sa-saved,
.sa-fg select.sa-saved,
.sa-fg textarea.sa-saved {
    border-color: #68d391;
    background: #f0fff4;
}

.sa-fg input.sa-saved:focus,
.sa-fg select.sa-saved:focus {
    border-color: #0073aa;
    background: #fff;
}

.sa-badge-saved {
    position: absolute;
    right: 11px;
    top: 35px;
    font-size: .72em;
    color: #38a169;
    pointer-events: none;
}

.sa-fg input.is-invalid,
.sa-fg select.is-invalid,
.sa-fg textarea.is-invalid {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.2);
}

.sa-fg .sa-pill-group.is-invalid-group .sa-pill {
    border-color: #e53e3e;
    background: #fffafa;
}

.sa-fg .sa-pill-group.is-invalid-group .sa-pill.sa-pill-on {
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.2);
}

.sa-fg .sa-pill.is-invalid {
    border-color: #e53e3e;
    background: #fffafa;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.2);
}

/* ── Desc ── */
.sa-desc {
    font-size: .8em;
    color: #a0aec0;
    margin-top: 4px;
    line-height: 1.45;
    display: block;
}

.sa-desc a {
    color: #0073aa;
}

/* ── Pills radio/checkbox ── */
.sa-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.sa-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    background: #f7fafc;
    cursor: pointer;
    font-size: .9em;
    font-weight: 600;
    color: #4a5568;
    transition: all .2s;
}

.sa-pill:hover {
    border-color: #0073aa;
    background: #ebf8ff;
}

.sa-pill.sa-pill-on {
    border-color: #0073aa;
    background: #ebf8ff;
    color: #0073aa;
}

.sa-pill input {
    display: none;
}

/* ── Contrato box ── */
.sa-contract-info {
    background: #fffbeb;
    border: 1.5px solid #f6e05e;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 16px;
    font-size: .88em;
    color: #744210;
    line-height: 1.6;
}

/* ── Feedback ── */
.sa-msg {
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .95em;
    text-align: center;
    display: none;
    margin-bottom: 22px;
}

.sa-msg--success {
    background: #c6f6d5;
    color: #22543d;
    border: 1.5px solid #9ae6b4;
}

.sa-msg--error {
    background: #fed7d7;
    color: #742a2a;
    border: 1.5px solid #feb2b2;
}

.sa-msg--info {
    background: #bee3f8;
    color: #2a4365;
    border: 1.5px solid #90cdf4;
}

/* ── Botão submit ── */
.sa-submit-wrap {
    text-align: center;
    margin-top: 8px;
}

.sa-submit-cadastro {
    margin-top: 24px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f0fff4, #ebf8ff);
    border: 1.5px solid #bee3f8;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.sa-save-hint {
    margin: 0;
    font-size: .85em;
    color: #2b6cb0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 200px;
}

.sa-save-hint .mdi {
    color: #0073aa;
    font-size: 1.1em;
}

.sa-submit-cadastro .sa-submit-btn {
    margin: 0;
}

.sa-submit-btn {
    display: inline-block;
    padding: 16px 60px;
    background: linear-gradient(135deg, #0073aa, #005177);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 1.05em;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: .3px;
    box-shadow: 0 4px 14px rgba(0, 115, 170, .35);
    transition: transform .2s, box-shadow .2s, opacity .2s;
}

.sa-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 115, 170, .4);
}

.sa-submit-btn:active {
    transform: none;
}

.sa-submit-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── MDI Icons ── */
.mdi {
    font-size: 1.2em;
    vertical-align: middle;
    margin-right: 4px;
    color: #4a5568;
}

.sa-type-btn .sa-type-icon {
    font-size: 2.2em;
    color: #a0aec0;
}

.sa-type-btn.sa-type-active .sa-type-icon {
    color: #0073aa;
}

.sa-badge-saved .mdi,
.sa-msg--success .mdi,
.sa-desc .mdi {
    color: inherit;
    font-size: 1em;
}

.sa-msg--error .mdi,
.sa-type-note .mdi {
    color: inherit;
}

.sa-type-note .mdi {
    color: #0073aa;
}

.sa-fg.hidden {
    display: none !important;
}

/* ── ABAS PRINCIPAIS ── */
.sa-tabs-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    overflow: hidden;
    flex-wrap: wrap;
}

.sa-tabs-nav button {
    flex: 1;
    min-width: 120px;
    background: none;
    border: none;
    padding: 14px 10px;
    font-size: .95em;
    font-weight: 700;
    color: #718096;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sa-tabs-nav button:hover {
    background: #ebf8ff;
    color: #2b6cb0;
}

.sa-tabs-nav button.sa-tab-active {
    background: #0073aa;
    color: #fff;
    box-shadow: inset 0 3px 0 rgba(0, 0, 0, .15);
    border-bottom: 3px solid #005177;
}

.sa-tabs-nav button.sa-tab-active .mdi {
    color: #fff;
}

.sa-tabs-content .sa-tab-pane {
    display: none;
}

.sa-tabs-content .sa-tab-pane.sa-tab-active {
    display: block;
}

/* ── SUB-ABAS (dentro da aba Cadastro) ── */
.sa-subtabs-nav {
    display: flex;
    gap: 0;
    margin-bottom: 22px;
    border-bottom: 2px solid #e2e8f0;
    flex-wrap: wrap;
}

.sa-subtabs-nav button {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 18px;
    margin-bottom: -2px;
    font-size: .88em;
    font-weight: 700;
    color: #718096;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.sa-subtabs-nav button:hover {
    color: #0073aa;
    border-bottom-color: #bee3f8;
    background: #f7fafc;
    border-radius: 6px 6px 0 0;
}

.sa-subtabs-nav button.sa-subtab-active {
    color: #0073aa;
    border-bottom-color: #0073aa;
    background: #ebf8ff;
    border-radius: 6px 6px 0 0;
}

.sa-subtabs-nav button.sa-subtab-active .mdi {
    color: #0073aa;
}

/* Badge de progresso da sub-aba */
.sa-subtab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #e2e8f0;
    border-radius: 99px;
    font-size: .72em;
    font-weight: 800;
    color: #718096;
    line-height: 1;
    transition: all .2s;
}

.sa-subtabs-nav button.sa-subtab-active .sa-subtab-badge {
    background: #0073aa;
    color: #fff;
}

.sa-subtab-badge.sa-badge-complete {
    background: #68d391;
    color: #22543d;
}

.sa-subtabs-nav button.sa-subtab-active .sa-subtab-badge.sa-badge-complete {
    background: #38a169;
    color: #fff;
}

.sa-subtab-pane {
    display: none;
}

.sa-subtab-pane.sa-subtab-active {
    display: block;
}

/* Navegação de sub-abas: botões prev/next */
.sa-subtab-nav-btns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
    gap: 12px;
}

.sa-subtab-nav-btns .sa-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border: 1.5px solid #0073aa;
    border-radius: 8px;
    background: #fff;
    color: #0073aa;
    font-weight: 700;
    font-size: .9em;
    cursor: pointer;
    transition: all .2s;
}

.sa-subtab-nav-btns .sa-nav-btn:hover {
    background: #ebf8ff;
}

.sa-subtab-nav-btns .sa-nav-btn.sa-nav-next {
    background: #0073aa;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 115, 170, .25);
}

.sa-subtab-nav-btns .sa-nav-btn.sa-nav-next:hover {
    background: #005177;
}

.sa-subtab-nav-btns .sa-nav-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.sa-subtab-nav-btns .sa-spacer {
    flex: 1;
}

/* Submit dentro da aba Cadastro */
.sa-submit-inline {
    margin-top: 10px;
}

/* AffiliateWP tab */
#tab-affiliatewp .sa-fs {
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
}

#tab-affiliatewp .sa-fs legend {
    display: none;
}

@media(max-width:768px) {
    .sa-wrap {
        margin: 14px 10px;
    }

    .sa-fs {
        padding: 18px 16px 12px;
    }

    .sa-submit-btn {
        width: 100%;
        padding: 16px;
    }

    .sa-type-btn {
        min-width: 130px;
    }

    .sa-tabs-nav button {
        flex-basis: 50%;
        padding: 12px 8px;
        font-size: .85em;
    }

    .sa-subtabs-nav button {
        padding: 8px 12px;
        font-size: .82em;
    }

    .sa-tabs-nav {
        border-radius: 8px;
    }
}

@media(max-width:480px) {
    .sa-tabs-nav button {
        flex-basis: 100%;
    }

    .sa-subtabs-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
}