/**
 * mi-cuenta.css — Rodio Divi Child v2
 * Estilos del Panel de Mi Cuenta / WooCommerce My Account
 * Diseño: Rodio Store — PERFIL USUARIO
 *
 * Scope: body.rodio-wc-account
 * Colores: var(--rodio-teal), var(--rodio-gray-*) del tokens.css
 */

/* =============================================================================
 * 1. RESET / LAYOUT BASE — override Divi containers
 * =========================================================================== */

body.rodio-wc-account #main-content,
body.rodio-wc-account #main-content .container,
body.rodio-wc-account #content-area {
    max-width: 100% !important;
    width:     100% !important;
    padding:   0 !important;
    margin:    0 !important;
}

/* #left-area es el contenedor 2/3 de Divi — lo expandimos a full width */
body.rodio-wc-account #left-area {
    width:         100% !important;
    float:         none !important;
    padding-right: 0 !important;
    padding-left:  0 !important;
}

/* Ocultar la sidebar de Divi (columna derecha) en mi-cuenta */
body.rodio-wc-account #sidebar {
    display: none !important;
}

/* Solo afectar las secciones/filas/columnas DENTRO del contenido de la página,
   NO el header ni el footer global de Divi */
body.rodio-wc-account #main-content .et_pb_section,
body.rodio-wc-account #main-content .et_pb_row,
body.rodio-wc-account #main-content .et_pb_column {
    max-width: 100% !important;
    width:     100% !important;
    padding:   0 !important;
    margin:    0 !important;
}

body.rodio-wc-account #main-content .et_pb_post_content,
body.rodio-wc-account #main-content .entry-content {
    padding: 0 !important;
    margin:  0 !important;
}

/* Quitar el max-width del woocommerce wrapper que Divi/WC agregan */
body.rodio-wc-account .woocommerce {
    max-width: 100% !important;
    width:     100% !important;
    padding:   0 !important;
    margin:    0 !important;
}

/* Ocultar título de la página de Divi en account */
body.rodio-wc-account h1.entry-title,
body.rodio-wc-account .main_title {
    display: none !important;
}

/* =============================================================================
 * 2. CONTENEDOR PRINCIPAL DEL PANEL
 * =========================================================================== */

.rodio-account-wrap {
    display:    flex;
    min-height: calc(100vh - 120px);
    background: var(--rodio-gray-50);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size:  16px;
    color:      #030213;
    line-height: 1.5;
}

/* =============================================================================
 * 3. SIDEBAR
 * =========================================================================== */

.rodio-account-sidebar {
    width:     256px;
    min-width: 256px;
    background:   #ffffff;
    border-right: 1px solid var(--rodio-gray-200);
    position:  sticky;
    top:       0;
    height:    100vh;
    overflow-y: auto;
    flex-shrink: 0;
    z-index: 10;
}

.rodio-account-nav {
    padding: 1.5rem 0 1.5rem;
}

.rodio-account-nav-list {
    list-style: none;
    list-style-type: none !important;
    margin:  0;
    padding: 0;
}

.rodio-account-nav-item {
    margin:  0;
    padding: 0;
}

.rodio-account-nav-link {
    display:      flex;
    align-items:  center;
    gap:          0.5rem;
    padding:      0.75rem 1.5rem;
    color:        #374151;
    text-decoration: none;
    font-size:    0.9375rem;
    font-weight:  400;
    border-radius: 0;
    transition:   all 0.2s ease;
    position:     relative;
}

.rodio-account-nav-link:hover {
    background: rgba(0, 179, 166, 0.06);
    color:      var(--rodio-teal);
    transform:  translateX(4px);
    text-decoration: none;
}

.rodio-account-nav-link--active,
.rodio-account-nav-link--active:hover {
    background: var(--rodio-teal);
    color:      #ffffff;
    transform:  none;
    font-weight: 500;
}

.rodio-account-nav-link--logout {
    color: var(--rodio-gray-500);
    margin-top: 0.5rem;
}

.rodio-account-nav-link--logout:hover {
    color: var(--rodio-red-500);
    background: var(--rodio-red-50);
}

.rodio-nav-indicator {
    position:     absolute;
    left:         0;
    top:          50%;
    transform:    translateY(-50%);
    width:        3px;
    height:       0;
    background:   var(--rodio-teal);
    border-radius: 0 4px 4px 0;
    transition:   height 0.2s ease;
}

.rodio-account-nav-link--active .rodio-nav-indicator {
    height: 2rem;
}

.rodio-account-nav-link:not(.rodio-account-nav-link--active):hover .rodio-nav-indicator {
    height: 1.5rem;
}

/* Separator before logout */
.rodio-account-nav-item--logout {
    border-top: 1px solid var(--rodio-gray-200);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

/* =============================================================================
 * 4. MAIN CONTENT AREA
 * =========================================================================== */

.rodio-account-main {
    flex:       1;
    min-width:  0;
    background: var(--rodio-gray-50);
    display:    flex;
    flex-direction: column;
}

/* Breadcrumb */
.rodio-account-breadcrumb {
    background:  #ffffff;
    border-bottom: 1px solid var(--rodio-gray-200);
    padding:    0.75rem 2.5rem;
    font-size:  0.8125rem;
    color:      var(--rodio-gray-500);
    position:   sticky;
    top:        0;
    z-index:    5;
    display:    flex;
    align-items: center;
    gap:        0.375rem;
}

.rodio-account-breadcrumb a {
    color:      var(--rodio-gray-500);
    text-decoration: none;
}

.rodio-account-breadcrumb a:hover {
    color: var(--rodio-teal);
}

.rodio-breadcrumb-sep {
    color: var(--rodio-gray-400);
}

/* Mobile menu toggle — hidden on desktop */
.rodio-mobile-menu-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 1.5rem;
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 1px solid var(--rodio-gray-200);
    border-radius: var(--rodio-radius);
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--rodio-gray-700);
}

/* Content wrapper */
.rodio-account-content {
    padding: 2rem 2.5rem;
    flex: 1;
}

/* =============================================================================
 * 5. GENERIC CARD
 * =========================================================================== */

.rodio-card {
    background:    #ffffff;
    border-radius: 1rem;
    box-shadow:    0 4px 20px rgba(0, 0, 0, 0.04);
    overflow:      hidden;
}

.rodio-card + .rodio-card,
.rodio-card + .rodio-section,
.rodio-section + .rodio-card {
    margin-top: 1.5rem;
}

.rodio-card__header {
    display:     flex;
    align-items: center;
    justify-content: space-between;
    padding:     1.5rem 1.5rem 1rem;
    gap:         1rem;
}

.rodio-card__title {
    font-size:   1.0625rem;
    font-weight: 600;
    color:       #030213;
}

.rodio-card__title-wrap {
    display:     flex;
    align-items: center;
    gap:         0.5rem;
}

.rodio-card__body {
    padding: 0 1.5rem 1.5rem;
}

.rodio-card__sub {
    font-size:  0.875rem;
    color:      var(--rodio-gray-500);
    margin-top: 0.25rem;
}

/* Card with header + description */
.rodio-card__section-header {
    display:     flex;
    align-items: flex-start;
    gap:         0.75rem;
    padding:     1.5rem 1.5rem 1rem;
}

.rodio-card__section-icon {
    padding:       0.5rem;
    border-radius: 0.5rem;
    flex-shrink:   0;
    display:       flex;
    align-items:   center;
    justify-content: center;
}

.rodio-card__section-icon--blue  { background: #dbeafe; color: #2563eb; }
.rodio-card__section-icon--amber { background: #fef3c7; color: #d97706; }
.rodio-card__section-icon--teal  { background: rgba(0,179,166,.1); color: var(--rodio-teal); }

/* =============================================================================
 * 6. LINK & BUTTON HELPERS
 * =========================================================================== */

.rodio-link-teal {
    display:     inline-flex;
    align-items: center;
    gap:         0.25rem;
    font-size:   0.875rem;
    color:       var(--rodio-teal);
    text-decoration: none;
    font-weight: 500;
    transition:  opacity .2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.rodio-link-teal:hover {
    opacity:         .8;
    text-decoration: none;
    color: var(--rodio-teal);
}

/* Primary button (teal) */
.rodio-btn {
    display:        inline-flex;
    align-items:    center;
    justify-content: center;
    gap:            0.375rem;
    padding:        0.5rem 1.125rem;
    border-radius:  var(--rodio-radius);
    font-size:      0.875rem;
    font-weight:    500;
    cursor:         pointer;
    text-decoration: none;
    transition:     all .2s ease;
    border:         none;
    white-space:    nowrap;
}

.rodio-btn--teal {
    background: var(--rodio-teal);
    color:      #ffffff !important;
}

.rodio-btn--teal:hover {
    background:      var(--rodio-teal-dk);
    color:           #ffffff !important;
    text-decoration: none;
}

.rodio-btn--teal-outline {
    background: transparent;
    color:      var(--rodio-teal) !important;
    border:     1.5px solid var(--rodio-teal);
}

.rodio-btn--teal-outline:hover {
    background:      rgba(0, 179, 166, .08);
    text-decoration: none;
}

.rodio-btn--outline {
    background: transparent;
    color:      var(--rodio-gray-700);
    border:     1px solid var(--rodio-gray-200);
}

.rodio-btn--outline:hover {
    background: var(--rodio-gray-50);
    border-color: var(--rodio-gray-400);
    text-decoration: none;
}

.rodio-btn--ghost {
    background:  transparent;
    color:       var(--rodio-gray-600);
    border:      none;
    padding:     0.375rem 0.75rem;
}

.rodio-btn--ghost:hover {
    background: var(--rodio-gray-100);
}

.rodio-btn--danger-ghost {
    background:  transparent;
    color:       var(--rodio-gray-500);
    border:      none;
}

.rodio-btn--danger-ghost:hover {
    background: var(--rodio-red-50);
    color:      var(--rodio-red-500);
    text-decoration: none;
}

.rodio-btn--sm {
    padding:    0.375rem 0.875rem;
    font-size:  0.8125rem;
}

.rodio-btn--lg {
    padding:    0.75rem 2rem;
    font-size:  1rem;
}

.rodio-btn--block {
    width:           100%;
    justify-content: center;
    display:         flex;
}

/* =============================================================================
 * 7. ORDER STATUS BADGES
 * =========================================================================== */

.rodio-badge {
    display:       inline-flex;
    align-items:   center;
    gap:           0.25rem;
    padding:       0.2rem 0.625rem;
    border-radius: 9999px;
    font-size:     0.75rem;
    font-weight:   500;
    line-height:   1.4;
    white-space:   nowrap;
}

.rodio-badge--green   { background: var(--rodio-green-100); color: var(--rodio-green-600); }
.rodio-badge--gray    { background: var(--rodio-gray-100);  color: var(--rodio-gray-500); }
.rodio-badge--blue    { background: var(--rodio-blue-100);  color: var(--rodio-blue-600); }
.rodio-badge--red     { background: #fee2e2; color: #dc2626; }
.rodio-badge--teal    { background: rgba(0,179,166,.1); color: var(--rodio-teal); }
.rodio-badge--amber   { background: #fef3c7; color: #d97706; }
.rodio-badge--purple  { background: #f5f3ff; color: #7c3aed; }

/* =============================================================================
 * 8. STAT ICONS (colored icon boxes)
 * =========================================================================== */

.rodio-stat-icon {
    display:        flex;
    align-items:    center;
    justify-content: center;
    padding:        0.5rem;
    border-radius:  0.5rem;
    flex-shrink:    0;
}

.rodio-stat-icon--teal   { background: rgba(0,179,166,.10); color: var(--rodio-teal); }
.rodio-stat-icon--blue   { background: #dbeafe; color: #2563eb; }
.rodio-stat-icon--pink   { background: #fce7f3; color: #db2777; }
.rodio-stat-icon--amber  { background: #fef3c7; color: #d97706; }
.rodio-stat-icon--green  { background: var(--rodio-green-100); color: var(--rodio-green-600); }
.rodio-stat-icon--red    { background: #fee2e2; color: #dc2626; }
.rodio-stat-icon--purple { background: #f5f3ff; color: #7c3aed; }

.rodio-stat-icon--sm { padding: 0.375rem; border-radius: 0.375rem; }

/* =============================================================================
 * 9. DASHBOARD — SECTIONS
 * =========================================================================== */

.rodio-section { display: flex; flex-direction: column; gap: 1.5rem; }
.rodio-section--dashboard { gap: 1.5rem; }

/* Dashboard header */
.rodio-dashboard-header {
    display:     flex;
    align-items: center;
    justify-content: space-between;
    gap:         1rem;
    flex-wrap:   wrap;
}

.rodio-dashboard-greeting {
    font-size:   1.75rem;
    font-weight: 600;
    color:       #030213;
    margin:      0 0 0.25rem;
}

.rodio-dashboard-sub {
    color:     var(--rodio-gray-500);
    font-size: 0.9375rem;
    margin:    0;
}

.rodio-dashboard-search {
    position: relative;
    flex-shrink: 0;
}

.rodio-search-icon {
    position:  absolute;
    left:      0.75rem;
    top:       50%;
    transform: translateY(-50%);
    color:     var(--rodio-gray-400);
    pointer-events: none;
}

.rodio-search-input {
    padding:      0.5rem 1rem 0.5rem 2.25rem;
    border:       1px solid var(--rodio-gray-200);
    border-radius: var(--rodio-radius);
    font-size:    0.875rem;
    background:   #ffffff;
    color:        #030213;
    width:        280px;
    outline:      none;
    transition:   border-color .2s;
}

.rodio-search-input:focus {
    border-color: var(--rodio-teal);
    box-shadow:   0 0 0 3px rgba(0,179,166,.15);
}

/* Stats grid: 4 columns */
.rodio-stats-grid {
    display:    grid;
    grid-template-columns: repeat(4, 1fr);
    gap:        1rem;
}

.rodio-stat-card {
    background:    #ffffff;
    border-radius: 0.75rem;
    box-shadow:    0 2px 12px rgba(0,0,0,.04);
    padding:       1.5rem;
    transition:    box-shadow .2s;
}

.rodio-stat-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.rodio-stat-card__header {
    display:     flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.rodio-stat-card__value {
    font-size:   1.5rem;
    font-weight: 700;
    color:       #030213;
    line-height: 1;
    margin-bottom: 0.375rem;
}

.rodio-stat-card__label {
    font-size: 0.875rem;
    color:     var(--rodio-gray-500);
}

/* Dashboard main grid: 2/3 + 1/3 */
.rodio-dash-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap:     1.5rem;
    align-items: start;
}

/* Activity card */
.rodio-activity-featured {
    background:    linear-gradient(135deg, rgba(0,179,166,.10), rgba(0,179,166,.05));
    border:        1px solid rgba(0,179,166,.20);
    border-radius: 0.75rem;
    padding:       1rem;
    margin:        0 1.5rem 1rem;
}

.rodio-activity-featured__header {
    display:     flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.rodio-activity-featured__label {
    font-size:   0.75rem;
    font-weight: 500;
    color:       var(--rodio-teal);
    margin:      0 0 0.25rem;
}

.rodio-activity-featured__number {
    font-size:   1.125rem;
    font-weight: 600;
    color:       #030213;
    margin:      0;
}

.rodio-activity-featured__info {
    display:     flex;
    align-items: center;
    gap:         0.375rem;
    font-size:   0.8125rem;
    color:       var(--rodio-gray-500);
    margin-bottom: 0.75rem;
}

.rodio-activity-featured__footer {
    display:     flex;
    align-items: center;
    justify-content: space-between;
}

.rodio-activity-featured__total {
    font-size:   1rem;
    font-weight: 600;
    color:       #030213;
}

/* Activity list */
.rodio-activity-list {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rodio-activity-item {
    display:     flex;
    align-items: flex-start;
    gap:         0.75rem;
    padding:     0.75rem;
    border-radius: 0.5rem;
    transition:  background .2s;
}

.rodio-activity-item:hover {
    background: var(--rodio-gray-50);
}

.rodio-activity-item__content { flex: 1; min-width: 0; }

.rodio-activity-item__title {
    font-size:   0.875rem;
    font-weight: 500;
    color:       #030213;
    margin:      0 0 0.125rem;
    white-space: nowrap;
    overflow:    hidden;
    text-overflow: ellipsis;
}

.rodio-activity-item__date {
    font-size: 0.75rem;
    color:     var(--rodio-gray-400);
    margin:    0;
}

/* Quick links */
.rodio-quicklink {
    display:     flex;
    align-items: center;
    justify-content: space-between;
    padding:     0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color:       #030213;
    transition:  all .2s;
    margin:      0 1.5rem;
}

.rodio-quicklink:hover {
    background:      var(--rodio-gray-50);
    text-decoration: none;
    color:           #030213;
}

.rodio-quicklink:last-child {
    margin-bottom: 1.5rem;
}

.rodio-quicklink__left {
    display:     flex;
    align-items: center;
    gap:         0.75rem;
    font-size:   0.875rem;
    font-weight: 500;
}

.rodio-quicklink__arrow {
    color: var(--rodio-gray-400);
    flex-shrink: 0;
}

/* =============================================================================
 * 10. PRODUCT GRIDS
 * =========================================================================== */

.rodio-card--products .rodio-card__header { padding-bottom: 0.75rem; }

.rodio-product-grid {
    display: grid;
    gap:     1rem;
    padding: 0 1.5rem 1.5rem;
}

.rodio-product-grid--4 { grid-template-columns: repeat(4, 1fr); }
.rodio-product-grid--3 { grid-template-columns: repeat(3, 1fr); }
.rodio-product-grid--6 { grid-template-columns: repeat(6, 1fr); gap: 0.625rem; }
.rodio-product-grid--8 { grid-template-columns: repeat(8, 1fr); gap: 0.5rem; }

/* ── Cards compactas en grids de 6 y 8 columnas ── */
.rodio-product-grid--6 .rodio-product-card,
.rodio-product-grid--8 .rodio-product-card {
    border-radius: 0.5rem;
}

.rodio-product-grid--6 .rodio-product-card__image-wrap,
.rodio-product-grid--8 .rodio-product-card__image-wrap {
    aspect-ratio: 1 / 1;
}

.rodio-product-grid--6 .rodio-product-card__image,
.rodio-product-grid--8 .rodio-product-card__image {
    padding: 0.25rem;
}

.rodio-product-grid--6 .rodio-product-card__body,
.rodio-product-grid--8 .rodio-product-card__body {
    padding: 0.5rem;
}

.rodio-product-grid--6 .rodio-product-card__name,
.rodio-product-grid--8 .rodio-product-card__name {
    font-size:   0.7rem;
    min-height:  2em;
    margin-bottom: 0.25rem;
    -webkit-line-clamp: 2;
}

.rodio-product-grid--6 .rodio-product-card__price,
.rodio-product-grid--8 .rodio-product-card__price {
    font-size:     0.75rem;
    margin-bottom: 0.375rem;
}

.rodio-product-grid--6 .rodio-btn,
.rodio-product-grid--8 .rodio-btn {
    font-size: 0.6875rem;
    padding:   0.3rem 0.5rem;
}

.rodio-product-card {
    border:        1px solid var(--rodio-gray-200);
    border-radius: 0.75rem;
    overflow:      hidden;
    background:    #ffffff;
    transition:    all .2s ease;
}

.rodio-product-card:hover {
    border-color: rgba(0,179,166,.3);
    box-shadow:   0 4px 16px rgba(0,0,0,.06);
    transform:    translateY(-1px);
}

.rodio-product-card__image-wrap {
    display:  block;
    aspect-ratio: 1 / 1;
    background: var(--rodio-gray-50);
    overflow:  hidden;
}

.rodio-product-card__image {
    width:        100%;
    height:       100%;
    object-fit:   contain;
    padding:      0.5rem;
    transition:   transform .2s;
}

.rodio-product-card:hover .rodio-product-card__image {
    transform: scale(1.04);
}

.rodio-product-card__body {
    padding: 0.875rem;
}

.rodio-product-card__name {
    font-size:     0.8125rem;
    color:         #030213;
    text-decoration: none;
    display:       -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow:      hidden;
    min-height:    2.4em;
    margin-bottom: 0.5rem;
}

.rodio-product-card__name:hover {
    color: var(--rodio-teal);
    text-decoration: none;
}

.rodio-product-card__price {
    font-size:   1rem;
    font-weight: 600;
    color:       var(--rodio-teal);
    margin-bottom: 0.75rem;
}

.rodio-product-card__price del {
    font-size:   0.8125rem;
    color:       var(--rodio-gray-400);
    font-weight: 400;
    text-decoration: line-through;
    margin-right: 0.25rem;
}

.rodio-product-card__price ins {
    text-decoration: none;
}

/* =============================================================================
 * 11. ORDERS TABLE
 * =========================================================================== */

.rodio-table-wrap {
    overflow-x: auto;
    padding:    0 1.5rem 1.5rem;
}

.rodio-orders-table {
    width:           100%;
    border-collapse: collapse;
    font-size:       0.9rem;
}

.rodio-orders-table thead tr {
    border-bottom: 2px solid var(--rodio-gray-100);
}

.rodio-orders-table th {
    padding:     0.75rem 1rem;
    text-align:  left;
    font-size:   0.8125rem;
    font-weight: 600;
    color:       var(--rodio-gray-500);
    white-space: nowrap;
}

.rodio-orders-table tbody tr {
    border-bottom: 1px solid rgba(0,0,0,.05);
    transition:    background .15s;
}

.rodio-orders-table tbody tr:hover { background: #f8fafc; }
.rodio-orders-table tbody tr:last-child { border-bottom: none; }

.rodio-orders-table td {
    padding:    0.875rem 1rem;
    color:      #030213;
    vertical-align: middle;
}

.rodio-order-link {
    font-weight:     600;
    color:           var(--rodio-teal) !important;
    text-decoration: none;
}

.rodio-order-link:hover {
    text-decoration: underline;
}

.rodio-order-actions {
    display:    flex;
    gap:        0.5rem;
    flex-wrap:  wrap;
    justify-content: flex-end;
}

/* Orders page header filters */
.rodio-section-toolbar {
    display:     flex;
    align-items: center;
    gap:         0.75rem;
    flex-wrap:   wrap;
}

.rodio-select {
    padding:      0.4375rem 2rem 0.4375rem 0.75rem;
    border:       1px solid var(--rodio-gray-200);
    border-radius: var(--rodio-radius);
    font-size:    0.875rem;
    background:   #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 0.625rem center;
    -webkit-appearance: none;
    appearance:   none;
    color:        #030213;
    cursor:       pointer;
    outline:      none;
}

.rodio-select:focus {
    border-color: var(--rodio-teal);
    box-shadow:   0 0 0 3px rgba(0,179,166,.15);
}

.rodio-input-search {
    position: relative;
    display:  flex;
    align-items: center;
}

.rodio-input-search svg {
    position:       absolute;
    left:           0.75rem;
    color:          var(--rodio-gray-400);
    pointer-events: none;
}

.rodio-input-search input {
    padding:       0.4375rem 0.75rem 0.4375rem 2.25rem;
    border:        1px solid var(--rodio-gray-200);
    border-radius: var(--rodio-radius);
    font-size:     0.875rem;
    color:         #030213;
    background:    #ffffff;
    width:         200px;
    outline:       none;
}

.rodio-input-search input:focus {
    border-color: var(--rodio-teal);
    box-shadow:   0 0 0 3px rgba(0,179,166,.15);
}

/* Orders section empty state */
.rodio-empty-state {
    text-align: center;
    padding:    3rem 1rem;
}

.rodio-empty-state svg {
    color:         var(--rodio-gray-400);
    margin-bottom: 1rem;
}

.rodio-empty-state p {
    color:     var(--rodio-gray-500);
    font-size: 0.9375rem;
    margin:    0;
}

/* =============================================================================
 * 12. ADDRESSES SECTION
 * =========================================================================== */

.rodio-address-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap:     1.5rem;
    padding: 0 1.5rem 1.5rem;
}

.rodio-address-card {
    background:    #ffffff;
    border:        1px solid var(--rodio-gray-200);
    border-radius: 0.75rem;
    padding:       1.25rem;
    transition:    all .2s;
}

.rodio-address-card:hover {
    box-shadow:   0 8px 30px rgba(0,0,0,.08);
    transform:    translateY(-2px);
}

.rodio-address-card__header {
    display:     flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap:         0.5rem;
}

.rodio-address-card__title {
    font-size:   1rem;
    font-weight: 700;
    color:       #030213;
    margin:      0;
}

.rodio-address-card__body {
    font-size: 0.875rem;
    color:     var(--rodio-gray-600);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.rodio-address-card__body address {
    font-style: normal;
}

.rodio-address-card__empty {
    font-size:    0.875rem;
    color:        var(--rodio-gray-400);
    font-style:   italic;
    padding:      0.5rem 0;
}

.rodio-address-card__actions {
    border-top:  1px solid var(--rodio-gray-100);
    padding-top: 0.75rem;
}

/* =============================================================================
 * 13. EDIT ACCOUNT FORM
 * =========================================================================== */

.rodio-form { display: flex; flex-direction: column; gap: 1.5rem; }

.rodio-form-group { display: flex; flex-direction: column; gap: 0.375rem; }

.rodio-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap:     1rem;
}

.rodio-form-label {
    font-size:   0.875rem;
    font-weight: 500;
    color:       #374151;
}

.rodio-form-label .required { color: var(--rodio-teal); margin-left: 2px; }

.rodio-form-input-wrap {
    position:   relative;
    display:    flex;
    align-items: center;
}

.rodio-form-input-wrap svg {
    position:       absolute;
    left:           0.75rem;
    color:          var(--rodio-gray-400);
    pointer-events: none;
}

.rodio-form-field {
    width:         100%;
    padding:       0.5625rem 0.875rem !important;
    border:        1px solid var(--rodio-gray-200) !important;
    border-radius: var(--rodio-radius) !important;
    font-size:     0.9375rem !important;
    color:         #030213 !important;
    background:    #ffffff !important;
    outline:       none !important;
    transition:    border-color .2s, box-shadow .2s;
    box-sizing:    border-box;
}

.rodio-form-field:focus {
    border-color: var(--rodio-teal) !important;
    box-shadow:   0 0 0 3px rgba(0,179,166,.15) !important;
}

.rodio-form-field--has-icon { padding-left: 2.375rem !important; }

.rodio-form-field--has-toggle { padding-right: 2.75rem !important; }

.rodio-password-toggle {
    position:   absolute;
    right:      25px;
    top:        0;
    height:     100%;
    padding:    0 0.75rem;
    background: transparent;
    border:     none;
    cursor:     pointer;
    color:      var(--rodio-gray-400);
    display:    flex;
    align-items: center;
}

.rodio-password-toggle:hover { color: var(--rodio-gray-600); }

.rodio-form-hint {
    font-size: 0.75rem;
    color:     var(--rodio-gray-500);
    margin:    0;
}

.rodio-form-note {
    background:   rgba(59,130,246,.05);
    border:       1px solid #bfdbfe;
    border-radius: var(--rodio-radius);
    padding:      0.875rem 1rem;
    font-size:    0.875rem;
    color:        #1e40af;
}

.rodio-form-note strong { font-weight: 600; }

.rodio-form-actions {
    display:     flex;
    justify-content: flex-end;
    padding-top: 0.5rem;
}

/* WooCommerce form overrides for edit-account */
body.rodio-wc-account .woocommerce-form__label-for-checkbox { cursor: pointer; }

/* WC native field overrides */
body.rodio-wc-account .woocommerce-MyAccount-content .form-row input[type="text"],
body.rodio-wc-account .woocommerce-MyAccount-content .form-row input[type="email"],
body.rodio-wc-account .woocommerce-MyAccount-content .form-row input[type="password"],
body.rodio-wc-account .woocommerce-MyAccount-content .form-row textarea {
    padding:       0.5625rem 0.875rem;
    border:        1px solid var(--rodio-gray-200) !important;
    border-radius: var(--rodio-radius) !important;
    font-size:     0.9375rem !important;
    color:         #030213 !important;
    background:    #ffffff !important;
    width:         100% !important;
    box-shadow:    none !important;
    outline:       none;
    transition:    border-color .2s, box-shadow .2s;
    box-sizing:    border-box;
}

body.rodio-wc-account .woocommerce-MyAccount-content .form-row input:focus {
    border-color: var(--rodio-teal) !important;
    box-shadow:   0 0 0 3px rgba(0,179,166,.15) !important;
}

body.rodio-wc-account .woocommerce-MyAccount-content .form-row label {
    font-size:   0.875rem !important;
    font-weight: 500 !important;
    color:       #374151 !important;
    margin-bottom: 0.375rem !important;
    display:     block !important;
}

body.rodio-wc-account .woocommerce-MyAccount-content button[type="submit"],
body.rodio-wc-account .woocommerce-MyAccount-content input[type="submit"] {
    background:    var(--rodio-teal) !important;
    color:         #ffffff !important;
    border:        none !important;
    border-radius: var(--rodio-radius) !important;
    padding:       0.625rem 2rem !important;
    font-size:     1rem !important;
    font-weight:   500 !important;
    cursor:        pointer !important;
    transition:    background .2s !important;
}

body.rodio-wc-account .woocommerce-MyAccount-content button[type="submit"]:hover,
body.rodio-wc-account .woocommerce-MyAccount-content input[type="submit"]:hover {
    background: var(--rodio-teal-dk) !important;
}

/* =============================================================================
 * 14. PAYMENT METHODS
 * =========================================================================== */

.rodio-payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap:     1.5rem;
    padding: 0 1.5rem 1.5rem;
}

.rodio-payment-card {
    background:    #ffffff;
    border:        1px solid var(--rodio-gray-200);
    border-radius: 0.75rem;
    padding:       1.25rem;
    transition:    all .2s;
    display:       flex;
    flex-direction: column;
}

.rodio-payment-card:hover {
    box-shadow:  0 8px 30px rgba(0,0,0,.08);
    transform:   translateY(-2px);
}

.rodio-payment-card__header {
    display:     flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.rodio-payment-card__brand-icon {
    width:         48px;
    height:        48px;
    border-radius: 0.625rem;
    display:       flex;
    align-items:   center;
    justify-content: center;
    font-weight:   700;
    font-size:     0.75rem;
    color:         #ffffff;
    margin-right:  0.75rem;
}

.rodio-payment-card__brand-info { flex: 1; }

.rodio-payment-card__brand-name {
    font-weight: 500;
    font-size:   0.9375rem;
    margin:      0 0 0.125rem;
}

.rodio-payment-card__last4 {
    font-size: 0.75rem;
    color:     var(--rodio-gray-400);
}

.rodio-payment-card__details {
    flex: 1;
    margin-bottom: 1.25rem;
}

.rodio-payment-card__detail-row {
    display:     flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.rodio-payment-card__detail-label {
    font-size: 0.75rem;
    color:     var(--rodio-gray-400);
}

.rodio-payment-card__detail-value {
    font-size:   0.875rem;
    font-weight: 500;
    color:       #030213;
}

.rodio-payment-card__actions {
    display:      flex;
    gap:          0.375rem;
    border-top:   1px solid var(--rodio-gray-100);
    padding-top:  0.75rem;
    flex-wrap:    wrap;
}

.rodio-payment-card--add {
    background: linear-gradient(135deg, var(--rodio-gray-50), #ffffff);
    border:     2px dashed var(--rodio-gray-200);
    cursor:     pointer;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    text-align: center;
    text-decoration: none;
}

.rodio-payment-card--add:hover {
    border-color: var(--rodio-teal);
    box-shadow:   0 8px 30px rgba(0,179,166,.12);
    text-decoration: none;
}

.rodio-payment-add-icon {
    width:         64px;
    height:        64px;
    border-radius: 9999px;
    background:    rgba(0,179,166,.1);
    display:       flex;
    align-items:   center;
    justify-content: center;
    margin:        0 auto 1rem;
    color:         var(--rodio-teal);
    transition:    background .2s;
}

.rodio-payment-card--add:hover .rodio-payment-add-icon {
    background: rgba(0,179,166,.2);
}

.rodio-payment-add-title {
    font-weight: 500;
    color:       #030213;
    margin:      0 0 0.25rem;
    font-size:   0.9375rem;
}

.rodio-payment-add-sub {
    font-size: 0.8125rem;
    color:     var(--rodio-gray-500);
    margin:    0;
}

.rodio-info-box {
    margin: 0 1.5rem 1.5rem;
    background:    rgba(59,130,246,.04);
    border:        1px solid #bfdbfe;
    border-radius: var(--rodio-radius);
    padding:       1rem 1.25rem;
    display:       flex;
    align-items:   flex-start;
    gap:           0.75rem;
}

.rodio-info-box__icon {
    background:    #dbeafe;
    color:         #2563eb;
    padding:       0.5rem;
    border-radius: 0.5rem;
    flex-shrink:   0;
    display:       flex;
}

.rodio-info-box__text h4 {
    font-size:   0.9375rem;
    font-weight: 600;
    color:       #1e3a8a;
    margin:      0 0 0.25rem;
}

.rodio-info-box__text p {
    font-size: 0.875rem;
    color:     #1e40af;
    margin:    0;
}

/* =============================================================================
 * 15. DOWNLOADS SECTION
 * =========================================================================== */

.rodio-downloads-table {
    width:           100%;
    border-collapse: collapse;
    font-size:       0.9rem;
}

.rodio-downloads-table th,
.rodio-downloads-table td {
    padding:    0.875rem 1rem;
    text-align: left;
}

.rodio-downloads-table thead tr {
    border-bottom: 2px solid var(--rodio-gray-100);
}

.rodio-downloads-table th {
    font-size:   0.8125rem;
    font-weight: 600;
    color:       var(--rodio-gray-500);
}

.rodio-downloads-table tbody tr {
    border-bottom: 1px solid rgba(0,0,0,.05);
    transition:    background .15s;
}

.rodio-downloads-table tbody tr:hover { background: var(--rodio-gray-50); }

/* =============================================================================
 * 16. SECTION PAGE HEADERS (Pedidos, Descargas, etc.)
 * =========================================================================== */

.rodio-page-header {
    margin-bottom: 0.25rem;
}

.rodio-page-header h1 {
    font-size:   1.5rem;
    font-weight: 600;
    color:       #030213;
    margin:      0 0 0.25rem;
}

.rodio-page-header p {
    font-size: 0.9375rem;
    color:     var(--rodio-gray-500);
    margin:    0;
}

/* =============================================================================
 * 17. FOOTER UTILITY SECTIONS
 * =========================================================================== */

.rodio-account-utility-footer {
    border-top: 1px solid var(--rodio-gray-200);
    padding:    4rem 2.5rem;
    margin-top: auto;
    background: #ffffff;
}

.rodio-utility-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap:     2rem;
    max-width: 900px;
    margin:    0 auto;
}

.rodio-utility-item {
    text-align: center;
}

.rodio-utility-icon {
    width:         64px;
    height:        64px;
    background:    var(--rodio-teal);
    border-radius: 9999px;
    display:       flex;
    align-items:   center;
    justify-content: center;
    margin:        0 auto 1rem;
    color:         #ffffff;
}

.rodio-utility-item h3 {
    font-size:   1.0625rem;
    font-weight: 600;
    color:       #030213;
    margin:      0 0 0.5rem;
}

.rodio-utility-item p {
    font-size: 0.875rem;
    color:     var(--rodio-gray-500);
    margin:    0;
}

/* =============================================================================
 * 18. SECTION WRAPPERS
 * =========================================================================== */

.rodio-section > * + * { margin-top: 1.5rem; }
.rodio-section > *:first-child { margin-top: 0; }

.rodio-section-gap { display: flex; flex-direction: column; gap: 1.5rem; }

/* =============================================================================
 * 19. WooCommerce NATIVE NOTICE overrides
 * =========================================================================== */

body.rodio-wc-account .woocommerce-notices-wrapper .woocommerce-message,
body.rodio-wc-account .woocommerce-notices-wrapper .woocommerce-error,
body.rodio-wc-account .woocommerce-notices-wrapper .woocommerce-info {
    margin:        0 2.5rem 1rem !important;
    border-radius: var(--rodio-radius) !important;
    border-left:   4px solid var(--rodio-teal) !important;
    background:    rgba(0,179,166,.06) !important;
    color:         #030213 !important;
    box-shadow:    none !important;
    padding:       0.875rem 1rem !important;
    font-size:     0.9rem !important;
}

body.rodio-wc-account .woocommerce-notices-wrapper .woocommerce-error {
    border-left-color: var(--rodio-red-500) !important;
    background:        var(--rodio-red-50) !important;
}

body.rodio-wc-account .woocommerce-notices-wrapper .woocommerce-message::before,
body.rodio-wc-account .woocommerce-notices-wrapper .woocommerce-error::before,
body.rodio-wc-account .woocommerce-notices-wrapper .woocommerce-info::before {
    display: none !important;
}

/* =============================================================================
 * 20. RESPONSIVE — Tablet / Mobile
 * =========================================================================== */

@media (max-width: 1024px) {
    .rodio-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .rodio-dash-main-grid { grid-template-columns: 1fr; }
    .rodio-product-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .rodio-payment-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .rodio-account-sidebar {
        position:   fixed;
        left:       -100%;
        top:        0;
        height:     100vh;
        z-index:    100;
        transition: left .3s ease;
        box-shadow: none;
    }

    .rodio-account-sidebar.rodio-sidebar--open {
        left:       0;
        box-shadow: 0 0 0 9999px rgba(0,0,0,.4);
    }

    .rodio-mobile-menu-toggle {
        display: flex;
    }

    .rodio-account-content {
        padding: 1.25rem;
    }

    .rodio-account-breadcrumb {
        padding: 0.75rem 1.25rem;
    }

    .rodio-account-utility-footer {
        padding: 2rem 1.25rem;
    }

    .rodio-utility-grid { grid-template-columns: 1fr; gap: 1.5rem; }

    .rodio-dashboard-header {
        flex-direction: column;
        align-items:    flex-start;
    }

    .rodio-search-input { width: 100%; }

    .rodio-address-grid { grid-template-columns: 1fr; }

    .rodio-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .rodio-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .rodio-product-grid--4,
    .rodio-product-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .rodio-payment-grid { grid-template-columns: 1fr; }
    .rodio-orders-table { font-size: 0.8125rem; }
    .rodio-orders-table th,
    .rodio-orders-table td { padding: 0.625rem 0.625rem; }
    .rodio-activity-featured { margin: 0 1rem 1rem; }
    .rodio-quicklink { margin: 0 1rem; }
}
