/* Level IX WooCommerce My Account Styles */

.woocommerce-MyAccount-content .lix-hero-card {
    background: #081727;
    color: #ffffff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 16px 32px rgba(8, 23, 39, 0.15);
}

.woocommerce-MyAccount-content .lix-hero-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.woocommerce-MyAccount-content .lix-score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(142, 198, 245, 0.1), transparent);
    padding: 16px 24px;
    border-radius: 12px;
    border: 1px solid rgba(142, 198, 245, 0.2);
}

.woocommerce-MyAccount-content .lix-score-value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    color: #ffd700;
    /* gold accent */
    margin-bottom: 4px;
}

.woocommerce-MyAccount-content .lix-score-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
}

.woocommerce-MyAccount-content .lix-level-display {
    flex: 1;
    min-width: 200px;
}

.woocommerce-MyAccount-content .lix-level-display h3 {
    margin: 0 0 8px;
    font-family: "Cormorant", serif;
    font-size: 32px;
    color: #ffffff;
}

.woocommerce-MyAccount-content .lix-level-display .lix-archetype {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

/* Category Bars */
.woocommerce-MyAccount-content .lix-category-bars {
    display: grid;
    gap: 12px;
    margin-bottom: 32px;
}

.woocommerce-MyAccount-content .lix-category-bar {
    display: grid;
    grid-template-columns: 80px 1fr 40px;
    gap: 16px;
    align-items: center;
    font-size: 14px;
}

.woocommerce-MyAccount-content .lix-cat-label {
    color: rgba(255, 255, 255, 0.9);
}

.woocommerce-MyAccount-content .lix-bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.woocommerce-MyAccount-content .lix-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2e7fd0, #8ec6f5);
    border-radius: 999px;
}

.woocommerce-MyAccount-content .lix-cat-percent {
    text-align: right;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Pathway Grid */
.woocommerce-MyAccount-content .lix-program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.woocommerce-MyAccount-content .lix-pathway-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.woocommerce-MyAccount-content .lix-pathway-card h4 {
    margin: 0 0 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8ec6f5;
}

.woocommerce-MyAccount-content .lix-pathway-card h5 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #ffffff;
}

.woocommerce-MyAccount-content .lix-pathway-card p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* Product Grid */
.woocommerce-MyAccount-content .lix-recommended-products h4 {
    margin: 0 0 16px;
    font-size: 18px;
    color: #ffffff;
}

.woocommerce-MyAccount-content .lix-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.woocommerce-MyAccount-content .lix-product {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    text-decoration: none !important;
    transition: transform 0.2s, background 0.2s;
}

.woocommerce-MyAccount-content .lix-product:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.woocommerce-MyAccount-content .lix-product img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #eef3f7;
}

.woocommerce-MyAccount-content .lix-product-name {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.3;
}

.woocommerce-MyAccount-content .lix-product-price {
    font-size: 14px;
    color: #8ec6f5;
}

/* History Accordion */
.woocommerce-MyAccount-content .lix-my-account-history h3 {
    margin-bottom: 24px;
    font-size: 24px;
}

.woocommerce-MyAccount-content .lix-history-row {
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.woocommerce-MyAccount-content .lix-history-row summary {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    cursor: pointer;
    list-style: none;
    transition: background 0.2s;
}

.woocommerce-MyAccount-content .lix-history-row summary::-webkit-details-marker {
    display: none;
}

.woocommerce-MyAccount-content .lix-history-row summary:hover {
    background: #f1f5f9;
}

.woocommerce-MyAccount-content .lix-history-date {
    font-size: 14px;
    color: #64748b;
}

.woocommerce-MyAccount-content .lix-history-badge {
    background: #081727;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
}

.woocommerce-MyAccount-content .lix-history-level {
    font-weight: 600;
    color: #0f172a;
}

.woocommerce-MyAccount-content .lix-history-pathway {
    text-align: right;
    font-size: 14px;
    color: #64748b;
}

.woocommerce-MyAccount-content .lix-history-details {
    padding: 24px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.woocommerce-MyAccount-content .lix-history-details .lix-hero-card {
    margin-bottom: 0;
}

/* Empty State */
.woocommerce-MyAccount-content .lix-my-account-empty {
    padding: 48px 24px;
    text-align: center;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
}

.woocommerce-MyAccount-content .lix-empty-card h2 {
    margin: 0 0 16px;
    font-family: "Cormorant", serif;
    font-size: 32px;
}

.woocommerce-MyAccount-content .lix-empty-card p {
    max-width: 480px;
    margin: 0 auto 24px;
    color: #64748b;
    line-height: 1.6;
}

/* Responsiveness */
@media (max-width: 768px) {
    .woocommerce-MyAccount-content .lix-history-row summary {
        grid-template-columns: 1fr auto;
    }

    .woocommerce-MyAccount-content .lix-history-level {
        grid-column: 1 / -1;
    }

    .woocommerce-MyAccount-content .lix-history-pathway {
        grid-column: 1 / -1;
        text-align: left;
    }
}