.rdev-profile-wrapper {
    display: flex;
    gap: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* Layout Horizontal */
.rdev-tabs-layout-horizontal .rdev-profile-wrapper {
    flex-direction: column;
}

.rdev-tabs-layout-horizontal .rdev-profile-nav-list {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

/* Navegação */
.rdev-profile-nav {
    flex: 0 0 250px;
}

.rdev-profile-user-info {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.rdev-profile-user-info img {
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid #f8f8f8;
}

.rdev-user-name {
    display: block;
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.rdev-profile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.rdev-profile-nav-item {
    border-bottom: 1px solid #f8f8f8;
}

.rdev-profile-nav-item a {
    display: block;
    padding: 12px 15px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rdev-profile-nav-item i, 
.rdev-profile-nav-item svg {
    width: 16px;
    height: 16px;
}

.rdev-profile-nav-item:hover a,
.rdev-profile-nav-item.is-active a {
    background: #fdfdfd;
    color: #000;
}

.rdev-profile-nav-item.is-active {
    border-left: 3px solid #000;
}

/* Conteúdo */
.rdev-profile-content {
    flex: 1;
    min-width: 0; /* Fix para flex items com conteúdo longo */
}

.rdev-profile-panel {
    animation: fadeIn 0.4s ease;
}

.rdev-profile-main-custom {
    margin-top: 20px;
}

.rdev-profile-main-header {
    margin-bottom: 18px;
}

.rdev-profile-greeting {
    margin: 0;
    color: #111;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

.rdev-profile-subtitle {
    margin: 6px 0 0;
    color: #555;
    font-size: 14px;
}

.rdev-birth-info-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 600;
}

.rdev-birth-info-alert a {
    color: #000;
    font-weight: 700;
    text-decoration: underline;
    white-space: nowrap;
}

.rdev-astral-chart-card {
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid #ece8f4;
    border-radius: 8px;
    background: #fff;
}

.rdev-astral-chart-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #ece8f4;
    background: #faf8ff;
}

.rdev-astral-chart-card-header h3 {
    margin: 0;
    color: #111;
    font-size: 18px;
    line-height: 1.25;
}

.rdev-astral-chart-card-header p {
    margin: 4px 0 0;
    color: #666;
    font-size: 13px;
}

.rdev-astral-chart-card-header span {
    color: #333;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.rdev-astral-chart-table-wrap {
    overflow-x: auto;
}

.rdev-astral-chart-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
}

.rdev-astral-chart-table th,
.rdev-astral-chart-table td {
    padding: 13px 16px;
    border-bottom: 1px solid #f1eef6;
    color: #222;
    text-align: left;
    font-size: 14px;
}

.rdev-astral-chart-table th {
    background: #fff;
    color: #5d4b73;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.rdev-astral-chart-table tbody tr:last-child td {
    border-bottom: 0;
}

.rdev-astral-chart-table tbody tr:hover td {
    background: #fbf9ff;
}

.rdev-astral-chart-empty {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid #ece8f4;
    border-radius: 8px;
    background: #faf8ff;
    color: #222;
}

.rdev-astral-chart-empty span {
    color: #666;
    font-size: 14px;
}

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

/* WooCommerce Overrides */
.rdev-profile-panel .woocommerce-MyAccount-content {
    width: 100%;
}

.rdev-profile-panel .woocommerce-edit-account fieldset {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.rdev-profile-panel .woocommerce-edit-account fieldset legend {
    padding: 0 10px;
    font-weight: bold;
    color: #333;
}

.rdev-profile-panel .woocommerce-edit-account p.form-row-first[id="account_last_name_field"],
.rdev-profile-panel .woocommerce-edit-account p.form-row-last[id="account_last_name_field"],
.rdev-profile-panel .woocommerce-edit-account #account_last_name_field {
    display: none !important;
}

.rdev-profile-panel .woocommerce-edit-account p.form-row-first {
    width: 100% !important;
    float: none !important;
}

.rdev-profile-panel .woocommerce-MyAccount-navigation {
    display: none; /* Esconder a navegação padrão do WC dentro do nosso widget */
}

.rdev-extra-tab-content {
    line-height: 1.6;
    color: #444;
}

/* Responsivo */
@media (max-width: 768px) {
    .rdev-profile-wrapper {
        flex-direction: column;
    }
    .rdev-profile-nav {
        flex: 1;
    }
    .rdev-profile-nav-list {
        flex-direction: row;
        overflow-x: auto;
        border-bottom: 1px solid #eee;
    }
    .rdev-profile-nav-item {
        white-space: nowrap;
        border-bottom: none;
    }
    .rdev-profile-nav-item.is-active {
        border-left: none;
        border-bottom: 2px solid #000;
    }
    .rdev-birth-info-alert {
        align-items: flex-start;
        flex-direction: column;
    }
    .rdev-profile-greeting {
        font-size: 24px;
    }
    .rdev-astral-chart-card-header {
        flex-direction: column;
    }
}
