/**
 * Kosmetics - My Account Styles
 * =============================
 * Desktop: 2-column layout (sidebar + content) — NO container wrapper
 * Mobile: App-style full-width dashboard
 */

/* ==========================================
   RESET WC DEFAULTS + PARENT OVERRIDES
   ========================================== */
.woocommerce-account .woocommerce-MyAccount-navigation {
    display: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Override any parent padding leaking into my-account */
.k-my-account-wrapper {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.woocommerce-account .site-main {
    padding-top: 0 !important;
}

/* ==========================================
   LAYOUT
   ========================================== */
.k-my-account {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    padding: 16px 20px 100px;
    width: 100%;
    margin: 0 auto;
}

@media (min-width: 993px) {
    .k-my-account {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 40px;
        max-width: 1200px;
        /* Igual al padding del header general (.container) */
        padding: 40px 20px 80px;
        margin: 0 auto;
    }
}

/* ==========================================
   RESPONSIVE HELPERS
   ========================================== */
.mobile-only {
    display: block;
}

.mobile-only-flex {
    display: flex;
}

.desktop-only,
.desktop-only-flex {
    display: none;
}

@media (min-width: 993px) {
    .mobile-only {
        display: none !important;
    }

    .mobile-only-flex {
        display: none !important;
    }

    .desktop-only {
        display: block !important;
    }

    .desktop-only-flex {
        display: flex !important;
    }
}


/* ==========================================
   SIDEBAR (Desktop Only)
   ========================================== */
.k-account-sidebar {
    display: none;
}

@media (min-width: 993px) {
    .k-account-sidebar {
        display: flex;
        flex-direction: column;
        position: sticky;
        top: 80px;
        align-self: start;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
        border: 1px solid #eee;
        overflow: hidden;
    }
}

.k-sidebar-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 26px 20px 36px;
    /* Extra bottom padding for overlap */
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: #fff;
    position: relative;
}

.k-sidebar-profile .k-avatar-img {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.k-sidebar-name {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    color: #fff !important;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.k-sidebar-email {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 2px 0 0;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
}

.k-sidebar-wallet {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    margin: -20px 16px 16px;
    /* The overlap magic! */
    border-radius: 12px;
    background: linear-gradient(135deg, #10B981, #047857);
    color: #fff;
    position: relative;
    z-index: 2;
    box-shadow: 0 6px 16px rgba(4, 120, 87, 0.35);
}

.k-sidebar-wallet i {
    font-size: 18px;
    opacity: 0.9;
}

.k-sidebar-wallet-info {
    display: flex;
    flex-direction: column;
}

.k-sw-label {
    display: block;
    font-size: 10px;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.k-sw-balance {
    display: block;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.1;
    margin-top: 2px;
}

.k-sidebar-nav {
    padding: 4px 0;
}

.k-sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #4b5563 !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}

.k-sidebar-nav-item:hover {
    background: #f9f7ff;
    color: #7C3AED !important;
}

.k-sidebar-nav-item.active {
    background: #f5f3ff;
    color: #7C3AED !important;
    font-weight: 600;
    border-left-color: #7C3AED;
}

.k-sidebar-nav-item i {
    width: 16px;
    text-align: center;
    font-size: 12px;
}


/* ==========================================
   MAIN CONTENT AREA
   ========================================== */
.k-account-main {
    min-width: 0;
}


/* ==========================================
   DESKTOP WELCOME
   ========================================== */
.k-welcome-title {
    font-size: 34px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 8px;
    letter-spacing: -0.8px;
}

.k-welcome-subtitle {
    font-size: 17px;
    color: #6b7280;
    margin: 0 0 32px;
}


/* ==========================================
   PROFILE HEADER (Mobile)
   ========================================== */
.k-account-header {
    align-items: center;
    gap: 14px;
    padding: 18px 14px;
    background: linear-gradient(135deg, #8B5CF6, #7C3AED, #6D28D9);
    border-radius: 14px;
    color: #fff;
    position: relative;
    margin-bottom: 14px;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.25);
}

.k-account-avatar {
    flex-shrink: 0;
}

.k-avatar-img {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    object-fit: cover;
}

.k-account-user-info {
    flex: 1;
    min-width: 0;
}

.k-account-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff !important;
    margin: 0 0 2px;
}

.k-account-email {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0;
}

.k-edit-profile-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    flex-shrink: 0;
}

.k-edit-profile-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}


/* ==========================================
   QUICK ACTIONS
   ========================================== */
.k-quick-actions {
    display: flex;
    justify-content: space-around;
    background: #fff;
    border-radius: 12px;
    padding: 10px 4px;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
}

@media (min-width: 993px) {
    .k-quick-actions {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
        padding: 20px;
        margin-bottom: 24px;
        border-radius: 16px;
        border: 1px solid #f3f4f6;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
    }
}

.k-quick-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none !important;
    color: #333 !important;
    transition: all 0.2s;
    padding: 2px;
}

@media (min-width: 993px) {
    .k-quick-action-item {
        flex-direction: row !important;
        gap: 12px;
        padding: 12px 16px;
        border-radius: 12px;
        background: #f9fafb;
        border: 1px solid #f3f4f6;
    }

    .k-quick-action-item:hover {
        background: #f9fafb;
        border-color: #f3f4f6;
        box-shadow: none;
        transform: none;
    }
}

.k-quick-action-item:hover {
    transform: none;
}

.k-qa-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #F5F3FF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #7C3AED;
    flex-shrink: 0;
}

@media (min-width: 993px) {
    .k-qa-icon {
        width: 42px;
        height: 42px;
        font-size: 16px;
        background: #f3f4f6;
        color: #6b7280;
        border-radius: 10px;
        transition: all 0.2s;
    }

    .k-quick-action-item:hover .k-qa-icon {
        background: #ede9fe;
        color: #7C3AED;
    }
}

.k-quick-action-item span {
    font-size: 11px;
    font-weight: 600;
    color: #555;
}

@media (min-width: 993px) {
    .k-quick-action-item span {
        font-size: 14px;
        font-weight: 600;
        color: #1f2937;
    }
}


/* ==========================================
   WALLET CARD (Mobile)
   ========================================== */
.k-wallet-card {
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: linear-gradient(135deg, #065F46, #047857);
    border-radius: 12px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(6, 95, 70, 0.2);
    color: #fff;
}

.k-wallet-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.k-wallet-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.k-wallet-label {
    display: block;
    font-size: 10px;
    opacity: 0.8;
}

.k-wallet-balance {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

.k-wallet-action {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.k-wallet-action:hover {
    color: #fff !important;
}


/* ==========================================
   DASHBOARD CARDS (Desktop)
   ========================================== */
.k-dashboard-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

@media (min-width: 993px) {
    .k-dashboard-cards {
        display: grid;
        grid-template-columns: 340px 1fr;
        align-items: stretch;
    }
}

.k-dash-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #f3f4f6;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.k-dash-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.k-dash-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.k-dash-card-wallet .k-dash-card-icon {
    background: #ecfdf5;
    color: #059669;
}

.k-dash-card-orders .k-dash-card-icon {
    background: #eef2ff;
    color: #4f46e5;
}

.k-dash-card-info {
    flex: 1;
}

.k-dash-card-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 8px;
}

.k-dash-card-value {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    margin-bottom: 24px;
}

.k-dash-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: opacity 0.2s;
    margin-top: auto;
}

.k-dash-card-wallet .k-dash-card-link {
    color: #059669 !important;
}

.k-dash-card-orders .k-dash-card-link {
    color: #4f46e5 !important;
}

.k-dash-card-link:hover {
    opacity: 0.8;
}


/* ==========================================
   MENU LIST (Mobile)
   ========================================== */
.k-account-menu {
    margin-bottom: 14px;
}

.k-menu-section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin: 16px 0 6px 2px;
}

.k-menu-section-label:first-child {
    margin-top: 0;
}

.k-menu-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
}

.k-menu-list li {
    border-bottom: 1px solid #f5f5f5;
}

.k-menu-list li:last-child {
    border-bottom: none;
}

.k-menu-list li a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    text-decoration: none !important;
    color: #333 !important;
    gap: 10px;
}

.k-menu-list li a:hover {
    background: transparent;
}

.k-menu-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.k-menu-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.k-menu-arrow {
    font-size: 10px;
    color: #ccc;
}


/* ==========================================
   LOGOUT
   ========================================== */
.k-account-logout {
    text-align: center;
    margin-top: 14px;
}

.k-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 22px;
    font-size: 13px;
    font-weight: 600;
    color: #EF4444 !important;
    background: #FEF2F2;
    border-radius: 8px;
    text-decoration: none !important;
    border: 1px solid #FECACA;
}

.k-logout-btn:hover {
    background: #FEE2E2;
}

.k-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 22px;
    font-size: 13px;
    font-weight: 600;
    color: #7C3AED !important;
    background: #F5F3FF;
    border-radius: 8px;
    text-decoration: none !important;
    border: 1px solid #E9E5FF;
    margin-bottom: 10px;
    width: 100%;
    justify-content: center;
}

.k-home-btn:hover {
    background: #EDE9FE;
}

.k-wallet-status.refunded {
    color: #ef4444;
    background: #FEE2E2;
}

/* Wallet overrides (Global) */
.woo-wallet-nav-tabs .woo-wallet-nav-item-wrapper:nth-child(1),
.woo-wallet-nav-tabs .woo-wallet-nav-item-wrapper:nth-child(2) {
    display: none !important;
}


/* ==========================================
   ENDPOINT VIEW
   ========================================== */
.k-endpoint-header {
    margin-bottom: 12px;
    padding: 0 0 10px;
    border-bottom: 1px solid #eee;
}

.k-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    color: #7C3AED !important;
    font-size: 13px;
    font-weight: 600;
}

.k-back-btn i {
    font-size: 13px;
}

.k-back-btn:hover {
    color: #6D28D9 !important;
}

.k-endpoint-content {
    padding: 0;
}

/* Addresses base (mobile) */
.k-addresses-description {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 14px;
}

.k-addresses-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.k-address-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}

.k-address-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.k-address-card-header h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #1f2937;
}

.k-address-edit-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #7C3AED !important;
    font-weight: 500;
    text-decoration: none !important;
}

.k-address-edit-link i {
    font-size: 10px;
}

.k-address-card-body {
    padding: 12px 14px;
}

.k-address-card-body address {
    font-style: normal;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.k-no-address {
    font-size: 13px;
    color: #9ca3af;
    font-style: italic;
    margin: 0;
}


/* ==========================================
   DESKTOP ENDPOINT STYLING
   ========================================== */
@media (min-width: 993px) {

    .k-endpoint-content {
        background: #fff;
        border-radius: 12px;
        padding: 16px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
        border: 1px solid #eee;
    }

    /* Headings */
    .k-endpoint-content h2,
    .k-endpoint-content h3 {
        font-size: 15px;
        font-weight: 600;
        margin: 0 0 10px;
    }

    /* Tables */
    .k-endpoint-content table {
        width: 100% !important;
        border-collapse: collapse;
        font-size: 13px;
        display: table !important;
    }

    .k-endpoint-content table th,
    .k-endpoint-content table td {
        padding: 8px 10px;
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
        vertical-align: middle;
    }

    .k-endpoint-content table th {
        background: #f8f8fa;
        font-weight: 600;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        color: #888;
        border-bottom: 2px solid #e5e7eb;
    }

    .k-endpoint-content table tbody tr:hover {
        background: #fafafa;
    }

    /* Buttons */
    .k-endpoint-content .button,
    .k-endpoint-content .woocommerce-Button,
    .k-endpoint-content button[type="submit"],
    .k-endpoint-content input[type="submit"] {
        background: #7C3AED !important;
        color: #fff !important;
        border: none !important;
        border-radius: 8px;
        padding: 7px 16px;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        text-decoration: none !important;
        display: inline-block;
        line-height: 1.5;
    }

    .k-endpoint-content .button:hover,
    .k-endpoint-content .woocommerce-Button:hover,
    .k-endpoint-content button[type="submit"]:hover,
    .k-endpoint-content input[type="submit"]:hover {
        background: #6D28D9 !important;
    }

    /* Forms */
    .k-endpoint-content input[type="text"],
    .k-endpoint-content input[type="email"],
    .k-endpoint-content input[type="password"],
    .k-endpoint-content input[type="tel"],
    .k-endpoint-content input[type="number"],
    .k-endpoint-content select,
    .k-endpoint-content textarea {
        width: 100%;
        padding: 7px 10px;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        font-size: 13px;
        font-family: inherit;
        box-sizing: border-box;
    }

    .k-endpoint-content input:focus,
    .k-endpoint-content select:focus,
    .k-endpoint-content textarea:focus {
        border-color: #7C3AED;
        outline: none;
        box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.08);
    }

    .k-endpoint-content label {
        font-size: 12px;
        font-weight: 600;
        color: #374151;
        display: block;
        margin-bottom: 2px;
    }

    .k-endpoint-content fieldset {
        border: none;
        padding: 0;
        margin: 0 0 12px;
    }

    .k-endpoint-content .form-row {
        margin-bottom: 10px;
    }

    /* Notices */
    .k-endpoint-content .woocommerce-message,
    .k-endpoint-content .woocommerce-info,
    .k-endpoint-content .woocommerce-error {
        border-radius: 8px;
        padding: 8px 12px;
        margin-bottom: 12px;
        font-size: 13px;
    }

    .k-endpoint-content .woocommerce-info {
        background: #f0f9ff;
        border-left: 3px solid #0284c7;
        color: #0c4a6e;
    }

    .k-endpoint-content .woocommerce-message {
        background: #f0fdf4;
        border-left: 3px solid #16a34a;
        color: #14532d;
    }


    /* =========================
       WOO WALLET OVERRIDES
       ========================= */
    /* Reduce the wallet plugin's excessive padding */
    .k-endpoint-content .woo-wallet-my-wallet-container {
        width: 100% !important;
        max-width: 100% !important;
    }

    .k-endpoint-content .woo-wallet-header {
        margin-bottom: 14px !important;
    }

    .k-endpoint-content .woo-wallet-header h2 {
        font-size: 18px !important;
        margin: 0 0 4px !important;
    }

    .k-endpoint-content .woo-wallet-header p {
        font-size: 13px !important;
        margin: 0 !important;
    }

    .k-endpoint-content .woo-wallet-top-section {
        margin-bottom: 16px !important;
        border-radius: 10px !important;
    }

    .k-endpoint-content .woo-wallet-balance-card {
        padding: 24px 20px !important;
        border-radius: 10px 10px 0 0 !important;
    }

    .k-endpoint-content .woo-wallet-balance-card h3 {
        font-size: 13px !important;
        margin: 0 0 6px !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .k-endpoint-content .woo-wallet-balance-card .woo-wallet-price {
        font-size: 28px !important;
    }

    .k-endpoint-content .woo-wallet-nav-tabs {
        border-radius: 0 0 10px 10px !important;
    }

    /* Ocultar pestañas de Recargar Monedero y Transferencia ya manejado globalmente */


    .k-endpoint-content .woo-wallet-nav-tab {
        padding: 14px 20px !important;
        font-size: 14px !important;
    }

    /* Transactions list */
    .k-endpoint-content .woo-wallet-transactions-list {
        border-radius: 10px !important;
        overflow: hidden;
    }

    .k-endpoint-content .woo-wallet-section-title {
        font-size: 14px !important;
        padding: 12px 16px !important;
    }

    .k-endpoint-content .woo-wallet-transactions-table th {
        padding: 10px 16px !important;
        font-size: 11px !important;
    }

    .k-endpoint-content .woo-wallet-transactions-table td {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }

    /* Wallet forms */
    .k-endpoint-content .woo-wallet-form-wrapper {
        padding: 16px !important;
        border-radius: 10px !important;
    }

    .k-endpoint-content .woo-wallet-content-area {
        border-radius: 10px !important;
    }


    /* =========================
       DIRECCIONES (template custom)
       ========================= */
    .k-endpoint-content .k-addresses-description {
        font-size: 13px;
        color: #6b7280;
        margin: 0 0 16px;
    }

    .k-endpoint-content .k-addresses-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .k-endpoint-content .k-address-card {
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        overflow: hidden;
        transition: box-shadow 0.2s;
    }

    .k-endpoint-content .k-address-card:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .k-endpoint-content .k-address-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        border-bottom: 1px solid #e5e7eb;
        background: #fff;
    }

    .k-endpoint-content .k-address-card-header h3 {
        font-size: 14px !important;
        font-weight: 600 !important;
        margin: 0 !important;
        color: #1f2937;
    }

    .k-endpoint-content .k-address-edit-link {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 12px;
        color: #7C3AED !important;
        font-weight: 500;
        text-decoration: none !important;
    }

    .k-endpoint-content .k-address-edit-link:hover {
        color: #6D28D9 !important;
    }

    .k-endpoint-content .k-address-edit-link i {
        font-size: 10px;
    }

    .k-endpoint-content .k-address-card-body {
        padding: 14px 16px;
    }

    .k-endpoint-content .k-address-card-body address {
        font-style: normal;
        font-size: 13px;
        color: #555;
        line-height: 1.6;
    }

    .k-endpoint-content .k-no-address {
        font-size: 13px;
        color: #9ca3af;
        font-style: italic;
        margin: 0;
    }


    /* =========================
       EDIT ACCOUNT
       ========================= */
    .k-endpoint-content .woocommerce-EditAccountForm {
        max-width: 500px;
    }

    .k-endpoint-content .woocommerce-EditAccountForm .form-row-first,
    .k-endpoint-content .woocommerce-EditAccountForm .form-row-last {
        display: inline-block;
        width: 48%;
        vertical-align: top;
    }

    .k-endpoint-content .woocommerce-EditAccountForm .form-row-first {
        margin-right: 3%;
    }

    .k-endpoint-content fieldset legend {
        font-size: 14px;
        font-weight: 600;
        color: #333;
        margin-bottom: 8px;
        padding-bottom: 4px;
        border-bottom: 1px solid #eee;
        width: 100%;
    }
}


/* ==========================================
   MOBILE WALLET DASHBOARD CARD
   ========================================== */
.k-mobile-wallet-card {
    background: linear-gradient(135deg, #065F46, #047857);
    border-radius: 14px;
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(6, 95, 70, 0.2);
}

.k-mw-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
    text-decoration: none !important;
    color: #fff !important;
}

.k-mw-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.k-mw-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
}

.k-mw-info {
    display: flex;
    flex-direction: column;
}

.k-mw-label {
    font-size: 11px;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.k-mw-balance {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.k-mw-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.k-mw-cta {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.8;
}

.k-mw-arrow {
    font-size: 10px;
    opacity: 0.6;
}

.k-mw-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.15);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
}

.k-mw-hint i {
    font-size: 12px;
}


/* ==========================================
   ORDERS — REDESIGNED CARDS
   ========================================== */
.k-orders-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .k-orders-grid {
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
        align-items: stretch;
    }
}

.k-order-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-surface, #fff);
    border: 1px solid var(--color-border, #eaeaea);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.k-order-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
    border-color: #d1d5db;
}

.k-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border, #f3f4f6);
    background: #fdfdfd;
}

[data-theme='dark'] .k-order-header {
    background: #1c1c1e;
}

.k-order-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.k-order-number {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-text, #111);
    letter-spacing: -0.3px;
}

.k-order-date {
    font-size: 13px;
    color: var(--color-text-secondary, #888);
    font-weight: 500;
}

.k-order-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.badge-completed {
    background: #ECFDF5;
    color: #059669;
}

.badge-processing {
    background: #EEF2FF;
    color: #4F46E5;
}

.badge-on-hold {
    background: #FFF7ED;
    color: #C2410C;
}

.badge-pending {
    background: #FFF7ED;
    color: #D97706;
}

.badge-cancelled,
.badge-failed {
    background: #FEF2F2;
    color: #DC2626;
}

.badge-refunded {
    background: #F5F3FF;
    color: #7C3AED;
}

.k-order-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    gap: 16px;
    flex-grow: 1;
}

.k-order-thumbs {
    display: flex;
    gap: 0;
}

.k-order-thumb {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--bg-surface, #fff);
    margin-left: -12px;
    background: #f0eff5;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.k-order-thumb:first-child {
    margin-left: 0;
}

.k-order-thumb:hover {
    transform: translateY(-2px);
    z-index: 2;
}

.k-order-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.k-order-thumb-more {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #4b5563;
    background: #e5e7eb;
}

.k-order-total-info {
    text-align: right;
    flex-shrink: 0;
}

.k-order-total-amount {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--color-text, #111);
    letter-spacing: -0.5px;
}

.k-order-total-items {
    display: block;
    font-size: 12px;
    color: var(--color-text-secondary, #6b7280);
    font-weight: 500;
}

.k-order-actions {
    display: flex;
    gap: 8px;
    padding: 0 20px 20px;
}

.k-order-actions .k-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .k-order-actions {
        flex-direction: column;
    }
}

.k-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.k-btn-action {
    background: #f3f4f6;
    color: #374151 !important;
}

.k-btn-action:hover {
    background: #e5e7eb;
    color: #111 !important;
}

.k-btn-products {
    background: #F5F3FF;
    color: #7C3AED !important;
}

.k-btn-products:hover {
    background: #EDE9FE;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.15);
}

.k-order-review-prompt {
    padding: 0 20px 20px;
    margin-top: -6px;
    /* Pull closer to actions */
}

.k-review-reward-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: #fff !important;
    border: none;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.k-review-reward-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
    background: linear-gradient(135deg, #7C3AED, #6D28D9);
}


/* ==========================================
   PRODUCTS MODAL — ENHANCED
   ========================================== */
.k-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.k-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

.k-modal-content {
    position: relative;
    z-index: 2;
    background: var(--bg-surface, #fff);
    border-radius: 18px;
    width: 100%;
    max-width: 460px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    animation: k-modal-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes k-modal-pop {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.k-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--color-border-light, #f0f0f0);
}

.k-modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.k-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.k-modal-close:hover {
    color: #333;
}

.k-modal-loader {
    padding: 60px 20px;
    text-align: center;
    color: var(--color-text-secondary, #6b7280);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.k-css-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(130, 87, 229, 0.2);
    border-top-color: #8257E5;
    border-radius: 50%;
    animation: k-spin 0.8s linear infinite;
}

@keyframes k-spin {
    to {
        transform: rotate(360deg);
    }
}

.k-modal-products-list {
    padding: 10px 0;
}

.k-modal-product-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 12px;
    transition: background 0.15s;
}

.k-modal-product-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.k-modal-product-img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
}

.k-modal-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.k-modal-product-info {
    flex: 1;
    min-width: 0;
}

.k-modal-product-info h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 2px;
    color: var(--color-text, #111);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.k-modal-product-qty {
    font-size: 11px;
    color: var(--color-text-secondary, #888);
}

.k-modal-product-actions {
    flex-shrink: 0;
}

.k-btn-review-product {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #8257E5, #A855F7);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.k-btn-review-product:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(130, 87, 229, 0.3);
}

.k-btn-review-product i {
    color: #FBBF24;
}

.k-review-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
}

.k-review-pending {
    background: #FFF7ED;
    color: #D97706;
}

.k-review-approved {
    background: #ECFDF5;
    color: #059669 !important;
}

.k-review-approved:hover {
    background: #D1FAE5;
}


/* ==========================================
   REVIEW POPUP MODAL
   ========================================== */
.k-review-modal-content {
    max-width: 420px;
}

.k-review-product-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--color-border-light, #f9fafb);
    border-bottom: 1px solid var(--color-border, #f0f0f0);
}

.k-review-product-preview img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    background: #eee;
}

.k-review-product-preview span {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text, #111);
    line-height: 1.3;
}

.k-review-form-body {
    padding: 18px 20px 20px;
}

.k-review-stars-input {
    margin-bottom: 16px;
}

.k-review-stars-input label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary, #888);
    margin-bottom: 8px;
}

.k-stars-select {
    display: flex;
    gap: 6px;
}

.k-stars-select i {
    font-size: 28px;
    cursor: pointer;
    color: #d1d5db;
    transition: transform 0.15s, color 0.15s;
}

.k-stars-select i:hover {
    transform: scale(1.15);
}

.k-review-textarea-wrap {
    margin-bottom: 14px;
}

.k-review-textarea-wrap textarea {
    width: 100%;
    border: 1.5px solid var(--color-border, #e5e7eb);
    border-radius: 10px;
    padding: 12px 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    resize: vertical;
    min-height: 90px;
    background: var(--bg-surface, #fff);
    color: var(--color-text, #111);
    transition: border-color 0.2s;
}

.k-review-textarea-wrap textarea:focus {
    outline: none;
    border-color: #8257E5;
    box-shadow: 0 0 0 3px rgba(130, 87, 229, 0.1);
}

.k-review-media-upload {
    margin-bottom: 14px;
}

.k-review-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f3f4f6;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    justify-content: center;
}

.k-review-upload-label:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    color: #1f2937;
}

.k-review-upload-label i {
    font-size: 16px;
    color: #8257E5;
}

.k-media-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.k-media-preview-item {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.k-media-preview-item img,
.k-media-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.k-media-preview-item .k-remove-media {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    border: none;
    padding: 0;
}

.k-media-preview-item .k-remove-media:hover {
    background: #ef4444;
}

.k-review-reward-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #F5F3FF;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 12px;
    color: #6D28D9;
}

.k-review-reward-hint i {
    font-size: 16px;
    color: #FBBF24;
}

.k-review-submit {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #8257E5, #A855F7);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(130, 87, 229, 0.2);
}

.k-review-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(130, 87, 229, 0.35);
}

.k-review-submit:disabled {
    opacity: 0.7;
    cursor: wait;
}


/* ==========================================
   REVIEW SUCCESS STATE
   ========================================== */
.k-review-success-content {
    text-align: center;
    padding: 40px 30px;
}

.k-review-success-icon {
    font-size: 56px;
    margin-bottom: 12px;
    animation: k-success-bounce 0.6s ease;
}

@keyframes k-success-bounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.k-review-success-content h3 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--color-text, #111);
}

.k-review-success-msg {
    font-size: 14px;
    color: var(--color-text-secondary, #666);
    line-height: 1.5;
    margin: 0 0 24px;
}

.k-review-success-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.k-btn-see-review {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #ECFDF5;
    color: #059669 !important;
    border: 1.5px solid #A7F3D0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
}

.k-btn-see-review:hover {
    background: #D1FAE5;
    transform: translateY(-1px);
}

.k-btn-review-done {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: #f3f4f6;
    color: #374151 !important;
    border: none;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.k-btn-review-done:hover {
    background: #e5e7eb;
}


/* ==========================================
   SHAKE ANIMATION
   ========================================== */
@keyframes k-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

.k-shake {
    animation: k-shake 0.4s ease-in-out;
}


/* ==========================================
   DARK MODE
   ========================================== */
[data-theme='dark'] .k-account-sidebar {
    background: #1c1c1e;
    border-color: #2c2c2e;
}

[data-theme='dark'] .k-sidebar-nav-item {
    color: #aaa !important;
}

[data-theme='dark'] .k-sidebar-nav-item:hover {
    background: #2c2c2e;
    color: #a78bfa !important;
}

[data-theme='dark'] .k-sidebar-nav-item.active {
    background: rgba(124, 58, 237, 0.15);
    color: #a78bfa !important;
    border-left-color: #a78bfa;
}

[data-theme='dark'] .k-quick-actions {
    background: #1c1c1e;
    border-color: #2c2c2e;
}

[data-theme='dark'] .k-quick-action-item span {
    color: #ccc;
}

[data-theme='dark'] .k-qa-icon {
    background: #2c2c2e;
    color: #a78bfa;
}

@media (min-width: 993px) {
    [data-theme='dark'] .k-quick-action-item {
        background: #2c2c2e;
    }

    [data-theme='dark'] .k-quick-action-item:hover {
        background: #3c3c3e;
    }
}

[data-theme='dark'] .k-menu-list {
    background: #1c1c1e;
    border-color: #2c2c2e;
}

[data-theme='dark'] .k-menu-list li {
    border-color: #2c2c2e;
}

[data-theme='dark'] .k-menu-list li a {
    color: #e0e0e0 !important;
}

[data-theme='dark'] .k-menu-list li a:hover {
    background: #2c2c2e;
}

[data-theme='dark'] .k-menu-arrow {
    color: #666;
}

[data-theme='dark'] .k-menu-section-label {
    color: #888;
}

[data-theme='dark'] .k-logout-btn {
    background: #2c1f1f;
    border-color: #4a2020;
    color: #f87171 !important;
}

[data-theme='dark'] .k-endpoint-header {
    border-color: #2c2c2e;
}

[data-theme='dark'] .k-back-btn {
    color: #a78bfa !important;
}

[data-theme='dark'] .k-endpoint-content {
    background: #121212;
    border-color: #2c2c2e;
}

[data-theme='dark'] .k-endpoint-content table th {
    background: #2c2c2e;
    color: #999;
    border-color: #3c3c3e;
}

[data-theme='dark'] .k-endpoint-content table td {
    border-color: #2c2c2e;
    color: #ddd;
}

[data-theme='dark'] .k-endpoint-content table tbody tr:hover {
    background: #2c2c2e;
}

[data-theme='dark'] .k-endpoint-content input[type="text"],
[data-theme='dark'] .k-endpoint-content input[type="email"],
[data-theme='dark'] .k-endpoint-content input[type="password"],
[data-theme='dark'] .k-endpoint-content input[type="tel"],
[data-theme='dark'] .k-endpoint-content input[type="number"],
[data-theme='dark'] .k-endpoint-content select,
[data-theme='dark'] .k-endpoint-content textarea {
    background: #2c2c2e;
    border-color: #3c3c3e;
    color: #e0e0e0;
}

[data-theme='dark'] .k-endpoint-content label {
    color: #ccc;
}

[data-theme='dark'] .k-endpoint-content .woocommerce-Address,
[data-theme='dark'] .k-endpoint-content .col-1,
[data-theme='dark'] .k-endpoint-content .col-2 {
    background: #2c2c2e;
    border-color: #3c3c3e;
}

[data-theme='dark'] .k-endpoint-content .woo-wallet-balance-card {
    background: linear-gradient(135deg, #065F46, #047857) !important;
}

[data-theme='dark'] .k-endpoint-content .woo-wallet-transactions-list {
    background: #1c1c1e !important;
    border-color: #2c2c2e !important;
}

[data-theme='dark'] .k-endpoint-content .woo-wallet-transactions-list * {
    color: #e0e0e0;
}

[data-theme='dark'] .k-endpoint-content .woo-wallet-section-title {
    background: #2c2c2e;
    color: #f3f4f6 !important;
    border-color: #3c3c3e;
}

[data-theme='dark'] .k-dash-card {
    background: #1c1c1e;
    border-color: #2c2c2e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme='dark'] .k-dash-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme='dark'] .k-welcome-title {
    color: #f3f4f6;
}

[data-theme='dark'] .k-welcome-subtitle {
    color: #9ca3af;
}

[data-theme='dark'] .k-dash-card-value {
    color: #f3f4f6;
}

[data-theme='dark'] .k-dash-card-label {
    color: #9ca3af;
}

/* Direcciones Custom (Dark Mode) */
[data-theme='dark'] .k-endpoint-content .k-address-card {
    background: #1c1c1e;
    border-color: #2c2c2e;
}

[data-theme='dark'] .k-endpoint-content .k-address-card-header {
    background: #2c2c2e;
    border-color: #3c3c3e;
}

[data-theme='dark'] .k-endpoint-content .k-address-card-header h3 {
    color: #f3f4f6;
}

[data-theme='dark'] .k-endpoint-content .k-address-card-body address {
    color: #d1d5db;
}

/* Extras Endpoints Dark */
[data-theme='dark'] .k-endpoint-content .woocommerce-Address-title h3,
[data-theme='dark'] .k-endpoint-content h2,
[data-theme='dark'] .k-endpoint-content h3 {
    color: #f3f4f6;
}

[data-theme='dark'] .k-endpoint-content .button,
[data-theme='dark'] .k-endpoint-content .woocommerce-Button,
[data-theme='dark'] .k-endpoint-content button[type="submit"],
[data-theme='dark'] .k-endpoint-content input[type="submit"] {
    background: #8b5cf6 !important;
}

[data-theme='dark'] .k-endpoint-content .button:hover,
[data-theme='dark'] .k-endpoint-content .woocommerce-Button:hover,
[data-theme='dark'] .k-endpoint-content button[type="submit"]:hover,
[data-theme='dark'] .k-endpoint-content input[type="submit"]:hover {
    background: #a78bfa !important;
}

/* ==========================================
   DARK MODE — ORDERS & REVIEW POPUP
   ========================================== */
[data-theme='dark'] .k-order-card {
    background: #1c1c1e;
    border-color: #2c2c2e;
}

[data-theme='dark'] .k-order-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme='dark'] .k-order-number {
    color: #f3f4f6;
}

[data-theme='dark'] .k-order-total-amount {
    color: #f3f4f6;
}

[data-theme='dark'] .k-order-thumb {
    border-color: #1c1c1e;
    background: #2c2c2e;
}

[data-theme='dark'] .k-order-thumb-more {
    background: #3c3c3e;
    color: #aaa;
}

[data-theme='dark'] .k-btn-action {
    background: #2c2c2e;
    color: #ddd !important;
}

[data-theme='dark'] .k-btn-action:hover {
    background: #3c3c3e;
}

[data-theme='dark'] .k-btn-products {
    background: rgba(130, 87, 229, 0.15);
    color: #a78bfa !important;
}

[data-theme='dark'] .k-btn-products:hover {
    background: rgba(130, 87, 229, 0.25);
}

[data-theme='dark'] .badge-completed {
    background: rgba(5, 150, 105, 0.15);
}

[data-theme='dark'] .badge-processing {
    background: rgba(79, 70, 229, 0.15);
}

[data-theme='dark'] .badge-on-hold {
    background: rgba(217, 119, 6, 0.15);
}

[data-theme='dark'] .badge-pending {
    background: rgba(217, 119, 6, 0.15);
}

[data-theme='dark'] .badge-cancelled,
[data-theme='dark'] .badge-failed {
    background: rgba(220, 38, 38, 0.15);
}

[data-theme='dark'] .badge-refunded {
    background: rgba(124, 58, 237, 0.15);
}

[data-theme='dark'] .k-modal-content {
    background: #1c1c1e;
}

[data-theme='dark'] .k-modal-header {
    border-color: #2c2c2e;
}

[data-theme='dark'] .k-modal-header h3 {
    color: #f3f4f6;
}

[data-theme='dark'] .k-modal-close {
    color: #666;
}

[data-theme='dark'] .k-modal-close:hover {
    color: #ccc;
}

[data-theme='dark'] .k-modal-product-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme='dark'] .k-modal-product-img {
    background: #2c2c2e;
}

[data-theme='dark'] .k-modal-product-info h4 {
    color: #f3f4f6;
}

[data-theme='dark'] .k-review-pending {
    background: rgba(217, 119, 6, 0.15);
    color: #fbbf24;
}

[data-theme='dark'] .k-review-approved {
    background: rgba(5, 150, 105, 0.15);
    color: #34d399 !important;
}

[data-theme='dark'] .k-review-product-preview {
    background: #2c2c2e;
    border-color: #3c3c3e;
}

[data-theme='dark'] .k-review-product-preview span {
    color: #f3f4f6;
}

[data-theme='dark'] .k-review-textarea-wrap textarea {
    background: #2c2c2e;
    border-color: #3c3c3e;
    color: #f3f4f6;
}

[data-theme='dark'] .k-review-reward-hint {
    background: rgba(130, 87, 229, 0.12);
    color: #c4b5fd;
}

[data-theme='dark'] .k-review-success-content h3 {
    color: #f3f4f6;
}

[data-theme='dark'] .k-review-success-msg {
    color: #9ca3af;
}

[data-theme='dark'] .k-btn-see-review {
    background: rgba(5, 150, 105, 0.1);
    border-color: rgba(5, 150, 105, 0.3);
    color: #34d399 !important;
}

[data-theme='dark'] .k-btn-review-done {
    background: #2c2c2e;
    color: #ccc !important;
}

[data-theme='dark'] .k-btn-review-done:hover {
    background: #3c3c3e;
}

[data-theme='dark'] .k-review-stars-input label {
    color: #9ca3af;
}

[data-theme='dark'] .k-review-upload-label {
    background: #2c2c2e;
    border-color: #3c3c3e;
    color: #f3f4f6;
}

[data-theme='dark'] .k-review-upload-label:hover {
    background: #3c3c3e;
    border-color: #666;
}

[data-theme='dark'] .k-media-preview-item {
    border-color: #3c3c3e;
}


/* ==========================================
   KOSMETICS WALLET CARD (3D CREDIT CARD)
   ========================================== */
.k-wallet-card-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.k-wallet-cc {
    height: 200px;
    width: 100%;
    max-width: 340px;
    position: relative;
    perspective: 800px;
}

.k-wallet-cc__side {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    position: absolute;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    transition: transform 0.8s ease-in-out;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.k-wallet-cc__side_front {
    background: linear-gradient(135deg, #111827 0%, #000 100%);
    transform: rotateY(0deg);
}

.k-wallet-cc__side_front::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(130, 87, 229, 0.35) 0%, transparent 60%);
    pointer-events: none;
}

.k-wallet-cc__side_back {
    background: linear-gradient(135deg, #1f2937 0%, #111 100%);
    transform: rotateY(-180deg);
    color: #eeeeee;
}

.k-wallet-cc:hover .k-wallet-cc__side_front {
    transform: rotateY(180deg);
}

.k-wallet-cc:hover .k-wallet-cc__side_back {
    transform: rotateY(0deg);
}

.k-wallet-cc__flex-1 {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.k-wallet-cc__name-brand {
    font-family: inherit;
    font-weight: 800;
    font-size: 20px;
    margin: 0 0 15px 0;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    display: inline-block;
}

.k-wallet-cc__name-brand::after {
    content: "WALLET";
    position: absolute;
    font-size: 8px;
    top: 95%;
    left: 2px;
    color: #a78bfa;
    letter-spacing: 4px;
}

.k-wallet-cc__chip-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 5px;
}

.k-wallet-cc__chip {
    width: 42px;
    height: 32px;
    background: linear-gradient(135deg, #d4af37, #f3e5ab, #d4af37);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.4);
}

.k-wallet-cc__chip::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.2);
}

.k-wallet-cc__chip-container i {
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    transform: rotate(90deg);
}

.k-wallet-cc__balance-wrap {
    margin-top: 5px;
}

.k-wallet-cc__balance-label {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.k-wallet-cc__balance-amount {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(130, 87, 229, 0.5);
}

.k-wallet-cc__balance-amount bdi span {
    font-weight: 400;
    /* Para el signo $ en el saldo */
}

.k-wallet-cc__name-person {
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    margin: 0;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.k-wallet-cc__name-person::after {
    content: '';
    display: inline-block;
    width: 25px;
    height: 25px;
    background: radial-gradient(circle, #ec4899 0%, #8257e5 100%);
    border-radius: 50%;
    box-shadow: -15px 0 0 rgba(255, 255, 255, 0.2);
}

.k-wallet-cc__black-stripe {
    background: #000;
    width: 100%;
    height: 40px;
    margin-top: 25px;
}

.k-wallet-cc__number {
    font-size: 16px;
    letter-spacing: 3px;
    color: #fff;
    text-align: right;
    margin: 10px 20px 0px;
}

.k-wallet-cc__flex-2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 20px;
    margin-top: 5px;
}

.k-wallet-cc__stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Reduje el salto interno */
}

.k-wallet-cc__other-numbers {
    color: #fff;
    margin: 0;
    font-size: 12px;
    position: relative;
    padding-left: 25px;
}

.k-wallet-cc__other-numbers::before {
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 7px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1;
}

.k-wallet-cc__other-numbers_1::before {
    content: "VALID\A THRU";
    white-space: pre;
}

.k-wallet-cc__other-numbers_2::before {
    content: "CCV";
}

.k-wallet-cc__photo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.k-wallet-cc__debit {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.k-wallet-cc__other-info {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    position: absolute;
    bottom: 8px;
    width: 100%;
    letter-spacing: 0.5px;
}


/* ==========================================
   DARK MODE — Mi Cuenta (Dashboard Logueado)
   ========================================== */

/* Sidebar Desktop */
[data-theme="dark"] .k-account-sidebar {
    background: var(--bg-surface, #1a1a24);
    border-color: var(--color-border, #2d2d3a);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .k-sidebar-nav-item {
    color: #d1d5db !important;
}

[data-theme="dark"] .k-sidebar-nav-item:hover {
    background: rgba(130, 87, 229, 0.08);
    color: #a78bfa !important;
}

[data-theme="dark"] .k-sidebar-nav-item.active {
    background: rgba(130, 87, 229, 0.12);
    color: #a78bfa !important;
    border-left-color: #a78bfa;
}

/* Welcome Title */
[data-theme="dark"] .k-welcome-title {
    color: #fff;
}

[data-theme="dark"] .k-welcome-subtitle {
    color: #9ca3af;
}

/* Quick Actions */
[data-theme="dark"] .k-quick-actions {
    background: var(--bg-surface, #1a1a24);
    border-color: var(--color-border, #2d2d3a);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

@media (min-width: 993px) {
    [data-theme="dark"] .k-quick-action-item {
        background: var(--bg-surface-elevated, #242430);
        border-color: var(--color-border, #2d2d3a);
    }

    [data-theme="dark"] .k-quick-action-item:hover {
        background: rgba(130, 87, 229, 0.08);
        border-color: rgba(130, 87, 229, 0.2);
    }

    [data-theme="dark"] .k-quick-action-item:hover .k-qa-icon {
        background: rgba(167, 139, 250, 0.15);
        color: #a78bfa;
    }

    [data-theme="dark"] .k-qa-icon {
        background: #2d2d3a;
        color: #9ca3af;
    }

    [data-theme="dark"] .k-quick-action-item span {
        color: #e5e7eb;
    }
}

[data-theme="dark"] .k-quick-action-item {
    color: #e5e7eb !important;
}

[data-theme="dark"] .k-quick-action-item span {
    color: #d1d5db;
}

[data-theme="dark"] .k-qa-icon {
    background: rgba(130, 87, 229, 0.12);
    color: #a78bfa;
}

/* Dashboard Cards */
[data-theme="dark"] .k-dash-card {
    background: var(--bg-surface, #1a1a24);
    border-color: var(--color-border, #2d2d3a);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .k-dash-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .k-dash-card-label {
    color: #9ca3af;
}

[data-theme="dark"] .k-dash-card-value {
    color: #fff;
}

/* Menu List (Mobile) */
[data-theme="dark"] .k-menu-list {
    background: var(--bg-surface, #1a1a24);
    border-color: var(--color-border, #2d2d3a);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .k-menu-list li {
    border-bottom-color: var(--color-border, #2d2d3a);
}

[data-theme="dark"] .k-menu-list li a {
    color: #e5e7eb !important;
}

[data-theme="dark"] .k-menu-list li a:hover {
    background: rgba(130, 87, 229, 0.06);
}

[data-theme="dark"] .k-menu-section-label {
    color: #6b7280;
}

[data-theme="dark"] .k-menu-text {
    color: #e5e7eb;
}

[data-theme="dark"] .k-menu-arrow {
    color: #4b5563;
}

/* Logout */
[data-theme="dark"] .k-logout-btn {
    color: #f87171 !important;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

[data-theme="dark"] .k-logout-btn:hover {
    background: rgba(239, 68, 68, 0.15);
}

[data-theme="dark"] .k-home-btn {
    color: #a78bfa !important;
    background: rgba(130, 87, 229, 0.1);
    border-color: rgba(130, 87, 229, 0.2);
}

[data-theme="dark"] .k-home-btn:hover {
    background: rgba(130, 87, 229, 0.15);
}

/* Endpoint Views */
[data-theme="dark"] .k-endpoint-header {
    border-bottom-color: var(--color-border, #2d2d3a);
}

[data-theme="dark"] .k-back-btn {
    color: #a78bfa !important;
}

[data-theme="dark"] .k-back-btn:hover {
    color: #c4b5fd !important;
}

/* Address Cards */
[data-theme="dark"] .k-address-card {
    background: var(--bg-surface, #1a1a24);
    border-color: var(--color-border, #2d2d3a);
}

[data-theme="dark"] .k-address-card-header {
    background: var(--bg-surface-elevated, #242430);
    border-bottom-color: var(--color-border, #2d2d3a);
}

[data-theme="dark"] .k-address-card-header h3 {
    color: #f3f4f6;
}

[data-theme="dark"] .k-address-edit-link {
    color: #a78bfa !important;
}

[data-theme="dark"] .k-address-card-body {
    color: #d1d5db;
}

/* WooCommerce Form Fields (edit-account, edit-address) */
[data-theme="dark"] .k-endpoint-content input[type="text"],
[data-theme="dark"] .k-endpoint-content input[type="email"],
[data-theme="dark"] .k-endpoint-content input[type="tel"],
[data-theme="dark"] .k-endpoint-content input[type="password"],
[data-theme="dark"] .k-endpoint-content select,
[data-theme="dark"] .k-endpoint-content textarea,
[data-theme="dark"] .woocommerce-MyAccount-content input[type="text"],
[data-theme="dark"] .woocommerce-MyAccount-content input[type="email"],
[data-theme="dark"] .woocommerce-MyAccount-content input[type="tel"],
[data-theme="dark"] .woocommerce-MyAccount-content input[type="password"],
[data-theme="dark"] .woocommerce-MyAccount-content select,
[data-theme="dark"] .woocommerce-MyAccount-content textarea {
    background: var(--bg-surface-elevated, #242430) !important;
    border-color: var(--color-border, #2d2d3a) !important;
    color: #f3f4f6 !important;
}

[data-theme="dark"] .k-endpoint-content input:focus,
[data-theme="dark"] .k-endpoint-content select:focus,
[data-theme="dark"] .k-endpoint-content textarea:focus,
[data-theme="dark"] .woocommerce-MyAccount-content input:focus,
[data-theme="dark"] .woocommerce-MyAccount-content select:focus,
[data-theme="dark"] .woocommerce-MyAccount-content textarea:focus {
    border-color: #8257E5 !important;
    box-shadow: 0 0 0 3px rgba(130, 87, 229, 0.12) !important;
}

[data-theme="dark"] .k-endpoint-content label,
[data-theme="dark"] .woocommerce-MyAccount-content label {
    color: #d1d5db !important;
}

[data-theme="dark"] .k-endpoint-content input::placeholder,
[data-theme="dark"] .woocommerce-MyAccount-content input::placeholder {
    color: #6b7280 !important;
}

/* Orders Table */
[data-theme="dark"] .woocommerce-orders-table,
[data-theme="dark"] .woocommerce-MyAccount-orders {
    border-color: var(--color-border, #2d2d3a);
}

[data-theme="dark"] .woocommerce-orders-table th {
    background: var(--bg-surface-elevated, #242430);
    color: #e5e7eb;
    border-color: var(--color-border, #2d2d3a);
}

[data-theme="dark"] .woocommerce-orders-table td {
    color: #d1d5db;
    border-color: var(--color-border, #2d2d3a);
}

[data-theme="dark"] .woocommerce-orders-table tr:hover td {
    background: rgba(130, 87, 229, 0.04);
}

/* WooCommerce Buttons */
[data-theme="dark"] .woocommerce-button,
[data-theme="dark"] .woocommerce-MyAccount-content .button {
    background: var(--bg-surface-elevated, #242430);
    color: #e5e7eb;
    border-color: var(--color-border, #2d2d3a);
}

[data-theme="dark"] .woocommerce-button:hover,
[data-theme="dark"] .woocommerce-MyAccount-content .button:hover {
    background: rgba(130, 87, 229, 0.1);
    color: #a78bfa;
    border-color: rgba(130, 87, 229, 0.3);
}

/* WooCommerce Notices */
[data-theme="dark"] .woocommerce-message,
[data-theme="dark"] .woocommerce-info {
    background: var(--bg-surface-elevated, #242430);
    color: #e5e7eb;
    border-color: var(--color-border, #2d2d3a);
}

/* Mobile Wallet Card */
[data-theme="dark"] .k-addresses-description {
    color: #9ca3af;
}