/**
 * Likenet Bot Web — Estilos da Área do Cliente (/minha-conta/)
 * Padrão Visual Oficial Likenet (Elementor Global Kit 7)
 * Cores institucionais: Laranja #E65200, Fundo #FFFFFF / #F8FAFC, Texto #1A1C1E
 * Tipografia: 'Space Grotesk' (Headings) e 'Inter' (Body / Buttons)
 */

/* =========================================================================
   Base da Página /minha-conta/ (Central Institucional do Cliente)
   ========================================================================= */
body.page-id-354 .page-header,
main.post-354 > .page-header {
    display: none !important;
}

body.page-id-354 main.site-main,
main.post-354 {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #F8FAFC !important;
}

body.page-id-354 main.site-main > .page-content,
main.post-354 > .page-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.lb-portal-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 40px 20px 72px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1A1C1E;
}

.lb-portal-subtitle {
    margin: 2px 0 6px;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

/* Subnav Institucional */
.lb-portal-subnav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding: 6px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
}

.lb-subnav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.lb-subnav-link:hover,
.lb-subnav-link.active {
    background: #FFF7ED;
    color: #E65200;
    font-weight: 600;
}

/* Módulo de Produto (Likenet Bot dentro da Central do Cliente) */
.lb-product-module {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.lb-product-module-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    margin-bottom: 22px;
    border-bottom: 1px solid #F1F5F9;
}

.lb-product-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #16A34A;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.lb-product-name {
    margin: 0 0 4px;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #1A1C1E;
}

.lb-product-desc {
    margin: 0;
    font-size: 13.5px;
    color: #64748B;
    line-height: 1.5;
}

.lb-empty-box-compact {
    padding: 24px 20px;
    font-size: 14px;
    color: #64748B;
}

/* Perfil & Suporte Grid */
.lb-portal-bottom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.lb-portal-info-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.lb-profile-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lb-profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #F1F5F9;
    font-size: 13.5px;
}

.lb-profile-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.lb-profile-row span {
    color: #64748B;
}

.lb-profile-row strong {
    color: #1A1C1E;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.lb-support-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lb-support-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    background: #F8FAFC;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.lb-support-item strong {
    font-size: 13.5px;
    font-weight: 600;
    color: #1A1C1E;
}

.lb-support-item span {
    font-size: 12.5px;
    color: #64748B;
}

.lb-support-item:hover {
    background: #FFF7ED;
    border-color: #FDBA74;
}

.lb-support-item:hover strong {
    color: #E65200;
}

/* Header */
.lb-portal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.lb-portal-pill {
    font-size: 11px;
    font-weight: 700;
    color: #E65200;
    background: #FFF2E9;
    border: 1px solid rgba(230, 82, 0, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.lb-portal-welcome {
    margin: 0 0 4px;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1A1C1E;
    line-height: 1.25;
}

.lb-portal-email {
    font-size: 14px;
    color: #64748B;
}

.lb-portal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.lb-btn-logout {
    font-size: 13px;
    font-weight: 500;
    color: #64748B;
    background: #FFFFFF;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.lb-btn-logout:hover {
    color: #DC2626;
    border-color: #F87171;
    background: #FEF2F2;
}

/* Metrics */
.lb-portal-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.lb-metric-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

.lb-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.lb-metric-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.lb-metric-val {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: #E65200;
    line-height: 1.15;
    margin-bottom: 4px;
}

.lb-metric-val.alert {
    color: #D97706;
}

.lb-metric-sub {
    font-size: 13px;
    color: #94A3B8;
}

/* Sections */
.lb-portal-section {
    margin-bottom: 48px;
}

.lb-section-header {
    margin-bottom: 20px;
}

.lb-section-header h2 {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1A1C1E;
    margin: 0 0 6px;
}

.lb-section-header p {
    font-size: 14px;
    color: #64748B;
    margin: 0;
}

/* Groups Grid */
.lb-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.lb-group-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.lb-group-card:hover {
    border-color: #E65200;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(230, 82, 0, 0.08);
}

.lb-group-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.lb-group-card-title-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lb-group-icon {
    font-size: 22px;
}

.lb-group-card-title {
    margin: 0 0 2px;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #1A1C1E;
}

.lb-group-jid {
    font-size: 12px;
    color: #64748B;
    font-family: monospace;
}

.lb-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.lb-badge.active {
    background: #ECFDF5;
    color: #16A34A;
    border: 1px solid #A7F3D0;
}

.lb-badge.warning {
    background: #FFFBEB;
    color: #D97706;
    border: 1px solid #FDE68A;
}

.lb-badge.danger {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

.lb-group-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #64748B;
    margin-bottom: 8px;
}

.lb-group-info-row strong {
    color: #1A1C1E;
    font-weight: 600;
}

.lb-progress-bar-container {
    width: 100%;
    height: 8px;
    background: #F1F5F9;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
    margin: 14px 0;
}

.lb-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #E65200, #16A34A);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.lb-group-dates {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94A3B8;
    margin-bottom: 18px;
}

.lb-btn-renew {
    width: 100%;
    background: #FFF2E9;
    color: #E65200;
    border: 1px solid rgba(230, 82, 0, 0.4);
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lb-btn-renew:hover {
    background: #E65200;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(230, 82, 0, 0.25);
    border-color: #E65200;
}

/* Empty State */
.lb-empty-box {
    background: #FFFFFF;
    border: 1px dashed #CBD5E1;
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.lb-empty-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 14px;
}

.lb-empty-box h3 {
    margin: 0 0 8px;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #1A1C1E;
}

.lb-empty-box p {
    font-size: 14px;
    color: #64748B;
    max-width: 440px;
    margin: 0 auto 24px;
    line-height: 1.5;
}

/* Table */
.lb-table-responsive {
    overflow-x: auto;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
}

.lb-portal-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
    text-align: left;
    font-size: 13px;
}

.lb-portal-table th {
    background: #F8FAFC;
    color: #64748B;
    font-weight: 600;
    padding: 14px 18px;
    border-bottom: 1px solid #E5E7EB;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.lb-portal-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #E5E7EB;
    color: #1A1C1E;
}

.lb-portal-table tr:last-child td {
    border-bottom: none;
}

.lb-portal-table code {
    background: #F1F5F9;
    padding: 3px 8px;
    border-radius: 4px;
    color: #E65200;
    font-family: monospace;
    font-size: 12px;
}

.lb-subtle-empty {
    font-size: 14px;
    color: #94A3B8;
    font-style: italic;
}

/* Auth Login Card */
.lb-portal-auth-container {
    width: 100%;
    max-width: 100%;
    min-height: calc(100vh - 220px);
    margin: 0 auto;
    padding: 48px 20px 64px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.lb-portal-auth-container > .lb-return-status-card {
    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
}

.lb-auth-card {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    box-sizing: border-box;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.07);
}

.lb-auth-header {
    text-align: center;
}

.lb-auth-logo-wrap {
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
}

.lb-auth-logo {
    height: 36px;
    width: auto;
    display: block;
    object-fit: contain;
}

.lb-auth-brand {
    font-size: 11px;
    font-weight: 700;
    color: #E65200;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    display: inline-block;
    background: #FFF2E9;
    border: 1px solid rgba(230, 82, 0, 0.25);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.lb-auth-title {
    margin: 0 0 10px;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #1A1C1E;
    line-height: 1.25;
}

.lb-auth-desc {
    margin: 0 0 24px;
    font-size: 14px;
    color: #64748B;
    line-height: 1.55;
}

.lb-auth-form .lb-form-group {
    margin-bottom: 18px;
}

.lb-auth-form .lb-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1A1C1E;
    margin-bottom: 6px;
}

.lb-auth-form .lb-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 14.5px;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    background: #FFFFFF;
    color: #1A1C1E;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lb-auth-form .lb-input:focus {
    border-color: #E65200;
    box-shadow: 0 0 0 3px rgba(230, 82, 0, 0.12);
}

.lb-btn-primary.full-width {
    width: 100%;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
}

.lb-auth-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #E5E7EB;
    font-size: 12.5px;
    color: #64748B;
    line-height: 1.6;
    text-align: center;
}

.lb-auth-footer p {
    margin: 0 0 6px;
}

.lb-auth-footer p:last-child {
    margin-bottom: 0;
}

.lb-auth-footer a {
    color: #E65200;
    text-decoration: underline;
    font-weight: 600;
}

@media (max-width: 480px) {
    .lb-portal-auth-container {
        padding: 32px 16px 48px;
        min-height: calc(100vh - 180px);
    }

    .lb-auth-card {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .lb-auth-title {
        font-size: 23px;
    }
}

/* Banner de Retorno de Pagamento no Portal */
.lb-return-status-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.lb-return-status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
}

.lb-return-status-card.status-active::before {
    background: #16A34A;
}
.lb-return-status-card.status-paid::before,
.lb-return-status-card.status-awaiting_join::before {
    background: #E65200;
}
.lb-return-status-card.status-awaiting_approval::before,
.lb-return-status-card.status-awaiting_payment::before {
    background: #D97706;
}
.lb-return-status-card.status-processing::before {
    background: #0284C7;
}
.lb-return-status-card.status-failed::before,
.lb-return-status-card.status-cancelled::before {
    background: #DC2626;
}
.lb-return-status-card.status-refunded::before {
    background: #9333EA;
}

.lb-return-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.lb-return-status-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active .lb-return-status-badge {
    background: #ECFDF5;
    color: #16A34A;
    border: 1px solid #A7F3D0;
}
.status-paid .lb-return-status-badge,
.status-awaiting_join .lb-return-status-badge {
    background: #FFF2E9;
    color: #E65200;
    border: 1px solid rgba(230, 82, 0, 0.25);
}
.status-awaiting_approval .lb-return-status-badge,
.status-awaiting_payment .lb-return-status-badge {
    background: #FFFBEB;
    color: #D97706;
    border: 1px solid #FDE68A;
}
.status-processing .lb-return-status-badge {
    background: #F0F9FF;
    color: #0284C7;
    border: 1px solid #BAE6FD;
}
.status-failed .lb-return-status-badge,
.status-cancelled .lb-return-status-badge {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}
.status-refunded .lb-return-status-badge {
    background: #FAF5FF;
    color: #9333EA;
    border: 1px solid #E9D5FF;
}

.lb-return-ref {
    font-size: 13px;
    color: #64748B;
}

.lb-return-ref code {
    background: #F1F5F9;
    padding: 3px 8px;
    border-radius: 4px;
    color: #1A1C1E;
    font-size: 12px;
    font-family: monospace;
}

.lb-return-title,
#lb-return-banner .lb-return-title {
    margin: 0 0 8px;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1A1C1E !important;
}

.lb-return-desc,
#lb-return-banner .lb-return-desc {
    margin: 0 0 20px;
    font-size: 14px;
    color: #475569 !important;
    line-height: 1.6;
}

.lb-return-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    background: #F8FAFC;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px;
}

.lb-return-meta-item span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #64748B;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.lb-return-meta-item strong {
    font-size: 15px;
    color: #1A1C1E;
    font-weight: 600;
}

.lb-return-live-poll {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
    color: #E65200;
    font-weight: 500;
}

.lb-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E65200;
    animation: lbPulseOrange 1.5s infinite;
}

@keyframes lbPulseOrange {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(230, 82, 0, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(230, 82, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(230, 82, 0, 0); }
}

/* Review Card e Checkout Pro no Portal */
.lb-order-review-card {
    background: #F8FAFC;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 18px;
}

.lb-review-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #64748B;
    padding: 6px 0;
}

.lb-review-row.total {
    border-top: 1px solid #E5E7EB;
    margin-top: 10px;
    padding-top: 12px;
    font-size: 16px;
    color: #1A1C1E;
    font-weight: 700;
}

.lb-review-price-highlight {
    color: #E65200;
    font-size: 18px;
    font-weight: 700;
}

.lb-review-badge-sub {
    display: block;
    font-size: 11px;
    color: #E65200;
    margin-top: 4px;
    font-weight: 600;
}

.lb-mp-security-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    border-radius: 10px;
    padding: 14px 16px;
    color: #0369A1;
}

.lb-mp-security-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.lb-mp-security-text strong {
    display: block;
    color: #0284C7;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.lb-mp-security-text p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #075985;
}

.lb-btn-mercadopago {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #009EE3 0%, #0081BA 100%);
    color: #ffffff !important;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 158, 227, 0.3);
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.lb-btn-mercadopago:hover {
    background: linear-gradient(135deg, #00AFFF 0%, #009EE3 100%);
    box-shadow: 0 6px 20px rgba(0, 158, 227, 0.5);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.lb-pay-btn-hint {
    font-size: 12px;
    color: #64748B;
    text-align: center;
}
