/* =============================================================
   PagHook Affiliate Onboarding — Modern UI
   ============================================================= */

:root {
    --ph-primary: #5b6cff;
    --ph-primary-dark: #4752d9;
    --ph-primary-light: #eef0ff;
    --ph-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --ph-success: #10b981;
    --ph-error: #ef4444;
    --ph-warning: #f59e0b;
    --ph-text: #1a202c;
    --ph-text-soft: #4a5568;
    --ph-text-muted: #718096;
    --ph-border: #e2e8f0;
    --ph-border-soft: #edf2f7;
    --ph-bg-soft: #f8fafc;
    --ph-radius: 10px;
    --ph-radius-lg: 16px;
    --ph-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --ph-shadow-lg: 0 20px 50px rgba(0,0,0,.08), 0 8px 20px rgba(0,0,0,.04);
    --ph-transition: all .15s cubic-bezier(.4,0,.2,1);
}

/* ---------- Standalone invite page body (forces full viewport, no theme constraints) ---------- */
html:has(body.paghook-invite-body),
body.paghook-invite-body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

body.paghook-invite-body {
    min-height: 100vh !important;
    background: var(--ph-gradient) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: var(--ph-text) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
    overflow-x: hidden;
}

body.paghook-invite-body *,
body.paghook-invite-body *::before,
body.paghook-invite-body *::after {
    box-sizing: border-box;
}

/* Neutralize any theme container that wraps body content */
body.paghook-invite-body > *:not(.paghook-ui):not(script):not(style):not(noscript) {
    display: none !important;
}

body.paghook-invite-body .paghook-ui {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

body.paghook-invite-body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at top, rgba(255,255,255,.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ---------- Outer wrapper ---------- */
.paghook-ui {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ph-text);
    position: relative;
    z-index: 1;
}

.paghook-invite-wrap {
    max-width: 580px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 48px 16px !important;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.paghook-invite-inner {
    background: #fff !important;
    padding: 48px 40px !important;
    border-radius: var(--ph-radius-lg) !important;
    box-shadow: var(--ph-shadow-lg) !important;
    animation: paghookFadeIn .4s ease-out;
    width: 100%;
    box-sizing: border-box;
    margin: 0 !important;
    float: none !important;
}

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

/* ---------- Title ---------- */
.paghook-invite-title {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    color: var(--ph-text);
    letter-spacing: -0.5px;
    line-height: 1.25;
    text-align: center;
}

.paghook-invite-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--ph-gradient);
    border-radius: 2px;
    margin: 14px auto 28px;
}

/* ---------- Welcome message ---------- */
.paghook-invite-welcome {
    margin: 0 0 28px;
    padding: 20px 24px;
    background: var(--ph-primary-light);
    border-radius: var(--ph-radius);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ph-text-soft);
    border-left: 4px solid var(--ph-primary);
}

.paghook-invite-welcome p:last-child { margin-bottom: 0; }

/* ---------- Error state ---------- */
.paghook-invite-error {
    text-align: center;
    padding: 20px 0;
}

.paghook-invite-error h1 {
    color: var(--ph-error);
    font-size: 22px;
    margin: 0 0 12px;
    font-weight: 700;
}

.paghook-invite-error p {
    color: var(--ph-text-muted);
    font-size: 15px;
    margin-bottom: 24px;
}

.paghook-invite-error .button {
    display: inline-block;
    background: var(--ph-gradient);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: var(--ph-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--ph-transition);
}

.paghook-invite-error .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102,126,234,.3);
}

/* =============================================================
   YITH Affiliate form overrides (login + register)
   ============================================================= */

.yith-wcaf.yith-wcaf-registration-form,
.paghook-invite-inner .yith-wcaf {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: var(--ph-text) !important;
}

/* Wrapper card when YITH form renders inside theme (dashboard shortcode / /afiliado/ page) */
body:not(.paghook-invite-body) .yith-wcaf.yith-wcaf-registration-form {
    max-width: 520px !important;
    margin: 48px auto !important;
    padding: 48px 44px !important;
    background: #fff !important;
    border: 1px solid var(--ph-border-soft) !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.05) !important;
    box-sizing: border-box !important;
}

body:not(.paghook-invite-body) .yith-wcaf.yith-wcaf-registration-form *,
body:not(.paghook-invite-body) .yith-wcaf.yith-wcaf-registration-form *::before,
body:not(.paghook-invite-body) .yith-wcaf.yith-wcaf-registration-form *::after {
    box-sizing: border-box !important;
}

/* Simple title */
body:not(.paghook-invite-body) .yith-wcaf.yith-wcaf-registration-form::before {
    content: 'Acessar sua conta';
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: var(--ph-text);
    text-align: center;
    margin: 0 0 32px;
    letter-spacing: -0.2px;
}

body:not(.paghook-invite-body) .yith-wcaf .login-title {
    display: none !important;
}

/* Force inputs & buttons styling inside theme-wrapped YITH form */
body:not(.paghook-invite-body) .yith-wcaf input[type=text],
body:not(.paghook-invite-body) .yith-wcaf input[type=email],
body:not(.paghook-invite-body) .yith-wcaf input[type=password],
body:not(.paghook-invite-body) .yith-wcaf input[type=tel],
body:not(.paghook-invite-body) .yith-wcaf input[type=url],
body:not(.paghook-invite-body) .yith-wcaf select,
body:not(.paghook-invite-body) .yith-wcaf textarea {
    width: 100% !important;
    padding: 14px 16px !important;
    border: 1.5px solid var(--ph-border) !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    background: #fff !important;
    color: var(--ph-text) !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
}

body:not(.paghook-invite-body) .yith-wcaf input:focus,
body:not(.paghook-invite-body) .yith-wcaf select:focus {
    outline: 0 !important;
    border-color: var(--ph-primary) !important;
    box-shadow: 0 0 0 3px rgba(91,108,255,.12) !important;
}

body:not(.paghook-invite-body) .yith-wcaf label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--ph-text-soft) !important;
    margin-bottom: 6px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

body:not(.paghook-invite-body) .yith-wcaf form.login label.inline,
body:not(.paghook-invite-body) .yith-wcaf .woocommerce-form__label-for-checkbox {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 14px !important;
    color: var(--ph-text-soft) !important;
    font-weight: 500 !important;
    margin: 10px 0 0 !important;
}

body:not(.paghook-invite-body) .yith-wcaf button[type=submit],
body:not(.paghook-invite-body) .yith-wcaf input[type=submit],
body:not(.paghook-invite-body) .yith-wcaf button.button,
body:not(.paghook-invite-body) .yith-wcaf form.login input.button {
    display: block !important;
    width: 100% !important;
    padding: 14px 20px !important;
    background: var(--ph-primary) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin-top: 24px !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    height: auto !important;
    float: none !important;
    text-shadow: none !important;
}

body:not(.paghook-invite-body) .yith-wcaf button[type=submit]:hover,
body:not(.paghook-invite-body) .yith-wcaf input[type=submit]:hover,
body:not(.paghook-invite-body) .yith-wcaf form.login input.button:hover {
    background: var(--ph-primary-dark) !important;
}

body:not(.paghook-invite-body) .yith-wcaf p.form-row,
body:not(.paghook-invite-body) .yith-wcaf .woocommerce-form-row {
    margin: 0 0 20px !important;
    padding: 0 !important;
}

body:not(.paghook-invite-body) .yith-wcaf .lost_password,
body:not(.paghook-invite-body) .yith-wcaf .woocommerce-LostPassword {
    text-align: right !important;
    margin-top: 8px !important;
}

body:not(.paghook-invite-body) .yith-wcaf .lost_password a {
    color: var(--ph-primary) !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.yith-wcaf .forms-container.u-columns.col2-set {
    display: block !important;
    margin: 0 !important;
}

.yith-wcaf .u-column1,
.yith-wcaf .u-column2,
.yith-wcaf .col-1,
.yith-wcaf .col-2 {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both;
}

/* Login mode: hide empty register column */
.paghook-mode-login .yith-wcaf .u-column2,
.paghook-mode-login .yith-wcaf .col-2 {
    display: none !important;
}

.paghook-mode-login .yith-wcaf .register-title,
.paghook-mode-login .yith-wcaf .register-form,
.paghook-mode-login .yith-wcaf form.register {
    display: none !important;
}

/* Login mode: remove "Login" heading so form looks cleaner on standalone */
.paghook-mode-login .yith-wcaf .login-title {
    display: none !important;
}

/* Headings */
.yith-wcaf .login-title,
.yith-wcaf .register-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ph-text);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ph-border-soft);
}

/* Form rows */
.yith-wcaf .woocommerce-form-row,
.yith-wcaf .form-row,
.yith-wcaf p.form-row {
    margin: 0 0 16px;
    padding: 0 !important;
}

/* Labels */
.yith-wcaf label,
.paghook-affonb-fields label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ph-text-soft);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.yith-wcaf label .required,
.paghook-affonb-fields .required {
    color: var(--ph-error);
    font-weight: 700;
    text-decoration: none;
}

/* Inputs */
.yith-wcaf input[type=text],
.yith-wcaf input[type=email],
.yith-wcaf input[type=password],
.yith-wcaf input[type=tel],
.yith-wcaf input[type=url],
.yith-wcaf input[type=number],
.yith-wcaf select,
.yith-wcaf textarea,
.paghook-affonb-fields input[type=text],
.paghook-affonb-fields input[type=email],
.paghook-affonb-fields select,
.paghook-affonb-fields textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--ph-border);
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    color: var(--ph-text);
    font-family: inherit;
    transition: var(--ph-transition);
    box-sizing: border-box;
    line-height: 1.4;
}

.yith-wcaf input:focus,
.yith-wcaf select:focus,
.yith-wcaf textarea:focus,
.paghook-affonb-fields input:focus,
.paghook-affonb-fields select:focus,
.paghook-affonb-fields textarea:focus {
    outline: 0;
    border-color: var(--ph-primary);
    box-shadow: 0 0 0 3px rgba(91,108,255,.12);
    background: #fff;
}

.yith-wcaf input::placeholder,
.paghook-affonb-fields input::placeholder {
    color: #a0aec0;
}

/* Buttons */
.yith-wcaf button[type=submit],
.yith-wcaf input[type=submit],
.yith-wcaf button.button,
.yith-wcaf .button,
.paghook-affonb-fields button[type=submit] {
    display: inline-block;
    width: 100%;
    padding: 14px 20px;
    background: var(--ph-gradient);
    color: #fff !important;
    border: 0;
    border-radius: var(--ph-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ph-transition);
    text-transform: none;
    letter-spacing: .2px;
    margin-top: 8px;
    text-decoration: none;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(91,108,255,.2);
}

.yith-wcaf button[type=submit]:hover,
.yith-wcaf input[type=submit]:hover,
.yith-wcaf button.button:hover,
.yith-wcaf .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(91,108,255,.3);
}

.yith-wcaf button[type=submit]:active {
    transform: translateY(0);
}

/* Checkbox inline (remember me, terms) */
.yith-wcaf .woocommerce-form__label-for-checkbox,
.yith-wcaf label.inline {
    display: flex !important;
    align-items: center;
    gap: 8px;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 14px !important;
    color: var(--ph-text-soft) !important;
    font-weight: 500 !important;
    margin: 10px 0 0 !important;
}

.yith-wcaf input[type=checkbox] {
    width: 16px;
    height: 16px;
    accent-color: var(--ph-primary);
    cursor: pointer;
}

/* Lost password link */
.yith-wcaf .lost_password a,
.yith-wcaf .woocommerce-LostPassword a {
    color: var(--ph-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.yith-wcaf .lost_password a:hover {
    text-decoration: underline;
}

.yith-wcaf .lost_password {
    text-align: right;
    margin-top: 6px !important;
}

/* =============================================================
   PagHook Onboarding custom fields
   ============================================================= */

.paghook-affonb-fields {
    margin: 24px 0 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.paghook-affonb-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--ph-text-muted);
    margin: 32px 0 16px;
    padding: 0;
    border: 0;
    text-transform: uppercase;
    letter-spacing: .8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.paghook-affonb-section-title:first-child {
    margin-top: 8px;
}

.paghook-affonb-section-title::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--ph-gradient);
    border-radius: 2px;
}

/* PF/PJ radio */
.paghook-affonb-radio {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 6px;
}

.paghook-affonb-radio label {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px !important;
    border: 1.5px solid var(--ph-border);
    border-radius: var(--ph-radius);
    background: #fff;
    cursor: pointer;
    font-weight: 500 !important;
    font-size: 14px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    color: var(--ph-text) !important;
    margin: 0 !important;
    transition: var(--ph-transition);
}

.paghook-affonb-radio label:hover {
    border-color: var(--ph-primary);
    background: var(--ph-primary-light);
}

.paghook-affonb-radio label:has(input:checked) {
    border-color: var(--ph-primary);
    background: var(--ph-primary-light);
    color: var(--ph-primary) !important;
    font-weight: 600 !important;
    box-shadow: 0 0 0 3px rgba(91,108,255,.12);
}

.paghook-affonb-radio input[type=radio] {
    accent-color: var(--ph-primary);
    margin: 0;
}

/* Terms block */
.paghook-affonb-terms {
    margin: 24px 0 16px !important;
    padding: 16px 18px !important;
    background: #fffbeb !important;
    border: 1px solid #fcd34d !important;
    border-radius: var(--ph-radius) !important;
}

.paghook-affonb-terms label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--ph-text-soft) !important;
    cursor: pointer;
    line-height: 1.5;
    margin: 0 !important;
}

.paghook-affonb-terms a {
    color: var(--ph-primary);
    text-decoration: underline;
    font-weight: 600;
    margin-left: 4px;
}

.paghook-affonb-terms input[type=checkbox] {
    margin-top: 2px;
    flex-shrink: 0;
}

/* Conditional PF/PJ visibility */
[data-affonb-if] { display: none; }
[data-affonb-if].is-visible { display: block; animation: paghookSlideIn .25s ease-out; }

@keyframes paghookSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============================================================
   WooCommerce notices override (success/error/info)
   ============================================================= */

.paghook-ui .woocommerce-notices-wrapper,
.paghook-invite-inner .woocommerce-notices-wrapper {
    margin-bottom: 16px;
}

.paghook-ui .woocommerce-message,
.paghook-ui .woocommerce-error,
.paghook-ui .woocommerce-info,
.paghook-invite-inner .woocommerce-message,
.paghook-invite-inner .woocommerce-error,
.paghook-invite-inner .woocommerce-info {
    padding: 14px 18px !important;
    border-radius: var(--ph-radius) !important;
    margin: 0 0 16px !important;
    border-left: 4px solid;
    background: #fff !important;
    font-size: 14px !important;
    box-shadow: var(--ph-shadow);
    list-style: none !important;
}

.paghook-ui .woocommerce-error,
.paghook-invite-inner .woocommerce-error {
    border-left-color: var(--ph-error);
    color: #991b1b;
    background: #fef2f2 !important;
}

.paghook-ui .woocommerce-message,
.paghook-invite-inner .woocommerce-message {
    border-left-color: var(--ph-success);
    color: #065f46;
    background: #ecfdf5 !important;
}

.paghook-ui .woocommerce-info,
.paghook-invite-inner .woocommerce-info {
    border-left-color: var(--ph-primary);
    color: #1e40af;
    background: var(--ph-primary-light) !important;
}

/* =============================================================
   Already-affiliate / Pending / Rejected states
   ============================================================= */

.yith-wcaf .already-an-affiliate-wrapper,
.yith-wcaf .pending-request-wrapper,
.yith-wcaf .rejected-request-wrapper,
.yith-wcaf .become-an-affiliate-form {
    text-align: center;
    padding: 20px 0;
}

.yith-wcaf .thank-you,
.yith-wcaf .we-are-sorry {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--ph-text);
}

.yith-wcaf .we-are-sorry {
    color: var(--ph-error);
}

.yith-wcaf .go-to-dashboard {
    background: var(--ph-gradient);
    color: #fff !important;
    padding: 14px 32px !important;
    border-radius: var(--ph-radius) !important;
    display: inline-block !important;
    margin-top: 20px;
    font-weight: 600;
    text-decoration: none;
    width: auto !important;
    transition: var(--ph-transition);
}

.yith-wcaf .go-to-dashboard:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(91,108,255,.3);
}

/* =============================================================
   Responsive
   ============================================================= */

@media (max-width: 640px) {
    .paghook-invite-wrap {
        padding: 24px 12px;
    }
    .paghook-invite-inner {
        padding: 32px 24px;
    }
    .paghook-invite-title {
        font-size: 22px;
    }
    .paghook-affonb-radio {
        grid-template-columns: 1fr;
    }
    .paghook-invite-welcome {
        padding: 14px 18px;
    }
    .yith-wcaf input[type=text],
    .yith-wcaf input[type=email],
    .yith-wcaf input[type=password],
    .yith-wcaf select,
    .paghook-affonb-fields input[type=text],
    .paghook-affonb-fields select {
        font-size: 16px; /* prevent iOS zoom */
    }
}

/* =============================================================
   Custom login form (render_login_page)
   ============================================================= */

.paghook-login-form {
    margin: 0;
    padding: 0;
}

.paghook-login-row {
    margin: 0 0 18px !important;
}

.paghook-login-row label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ph-text-soft);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.paghook-login-row input[type=text],
.paghook-login-row input[type=password] {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--ph-border);
    border-radius: var(--ph-radius);
    font-size: 15px;
    background: #fff;
    color: var(--ph-text);
    font-family: inherit;
    transition: var(--ph-transition);
    box-sizing: border-box;
    line-height: 1.4;
}

.paghook-login-row input:focus {
    outline: 0;
    border-color: var(--ph-primary);
    box-shadow: 0 0 0 3px rgba(91,108,255,.12);
}

.paghook-login-remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 24px !important;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 12px;
}

.paghook-login-remember label {
    display: flex !important;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--ph-text-soft);
    font-weight: 500;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 0 !important;
    font-size: 13px;
}

.paghook-login-remember input[type=checkbox] {
    width: 16px;
    height: 16px;
    accent-color: var(--ph-primary);
    margin: 0;
}

.paghook-lost-pass {
    color: var(--ph-primary) !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
}

.paghook-lost-pass:hover {
    text-decoration: underline;
}

.paghook-login-submit {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: var(--ph-gradient);
    color: #fff;
    border: 0;
    border-radius: var(--ph-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ph-transition);
    box-shadow: 0 4px 12px rgba(91,108,255,.2);
    font-family: inherit;
}

.paghook-login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(91,108,255,.3);
}

.paghook-login-submit:active {
    transform: translateY(0);
}

.paghook-login-hint {
    text-align: center;
    margin-top: 24px;
    padding: 14px;
    background: var(--ph-bg-soft);
    border-radius: var(--ph-radius);
    font-size: 13px;
    color: var(--ph-text-muted);
}

/* ---------- Footer link ---------- */
.paghook-invite-footer {
    text-align: center;
    margin-top: 24px;
    padding: 8px;
}

.paghook-invite-footer a {
    color: rgba(255,255,255,.9) !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
    transition: var(--ph-transition);
    display: inline-block;
}

.paghook-invite-footer a:hover {
    background: rgba(255,255,255,.15);
    color: #fff !important;
}

/* =============================================================
   Dashboard (/minha-conta style navigation tweaks)
   ============================================================= */

.yith-wcaf-navigation-menu {
    background: #fff;
    border-radius: var(--ph-radius);
    padding: 8px;
    box-shadow: var(--ph-shadow);
    list-style: none;
    margin: 0 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.yith-wcaf-navigation-menu li {
    flex: 1;
    min-width: 120px;
}

.yith-wcaf-navigation-menu a {
    display: block;
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--ph-text-soft);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    transition: var(--ph-transition);
}

.yith-wcaf-navigation-menu a:hover,
.yith-wcaf-navigation-menu li.current a {
    background: var(--ph-primary-light);
    color: var(--ph-primary);
}
