/**
 * My Account - Premium Dashboard Design
 * Màu chủ đạo: #FE0078 (Pink/Magenta)
 * Full-width, compact, modern design
 * Optimized for performance and security
 */

:root {
    --primary-color: #FE0078;
    --primary-dark: #D1005F;
    --primary-light: #FF4DA6;
    --primary-gradient: linear-gradient(135deg, #FE0078 0%, #FF4DA6 50%, #FF80C4 100%);
    --secondary-gradient: linear-gradient(135deg, #FF4DA6 0%, #FE0078 100%);
    --success-color: #00C896;
    --warning-color: #FFB800;
    --danger-color: #FF4757;
    --info-color: #5F27CD;
    --bg-light: #FFF5FB;
    --bg-white: #FFFFFF;
    --text-dark: #2C2C2C;
    --text-gray: #6C6C6C;
    --border-color: #F0E6F0;
    --shadow-sm: 0 2px 8px rgba(254, 0, 120, 0.08);
    --shadow-md: 0 4px 16px rgba(254, 0, 120, 0.12);
    --shadow-lg: 0 8px 32px rgba(254, 0, 120, 0.16);
    --shadow-xl: 0 16px 48px rgba(254, 0, 120, 0.2);
}

/* Full-width container - override theme constraints */
body.woocommerce-account .woocommerce-MyAccount-content-wrapper,
body.woocommerce-account .woocommerce-MyAccount-content,
body.woocommerce-account .page-wrapper,
body.woocommerce-account .container,
body.woocommerce-account .row {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation-wrapper {
    max-width: 280px;
    padding: 0 15px;
}

body.woocommerce-account .woocommerce-MyAccount-content-wrapper {
    padding: 0 15px;
}

/* Main Container - Full Width */
.myshop-account-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    min-height: auto;
}

/* Hero Banner - Compact */
.myshop-hero-banner {
    background: var(--primary-gradient);
    border-radius: 20px;
    padding: 30px 35px;
    color: white;
    margin-bottom: 25px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.myshop-hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

.myshop-hero-banner h1 {
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 800;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.myshop-hero-banner p {
    margin: 0;
    font-size: 16px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* Stats Grid - Compact */
.myshop-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.myshop-stat-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.myshop-stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.myshop-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.myshop-stat-card:hover::before {
    transform: scaleY(1);
}

.myshop-stat-card.primary { border-left: 4px solid var(--primary-color); }
.myshop-stat-card.success { border-left: 4px solid var(--success-color); }
.myshop-stat-card.warning { border-left: 4px solid var(--warning-color); }
.myshop-stat-card.info { border-left: 4px solid var(--info-color); }
.myshop-stat-card.danger { border-left: 4px solid var(--danger-color); }

.myshop-stat-card .icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 24px;
    position: relative;
    overflow: hidden;
}

.myshop-stat-card.primary .icon-wrapper {
    background: linear-gradient(135deg, rgba(254, 0, 120, 0.1) 0%, rgba(255, 77, 166, 0.1) 100%);
    color: var(--primary-color);
}

.myshop-stat-card.success .icon-wrapper {
    background: linear-gradient(135deg, rgba(0, 200, 150, 0.1) 0%, rgba(0, 200, 150, 0.2) 100%);
    color: var(--success-color);
}

.myshop-stat-card.warning .icon-wrapper {
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.1) 0%, rgba(255, 184, 0, 0.2) 100%);
    color: var(--warning-color);
}

.myshop-stat-card.info .icon-wrapper {
    background: linear-gradient(135deg, rgba(95, 39, 205, 0.1) 0%, rgba(95, 39, 205, 0.2) 100%);
    color: var(--info-color);
}

.myshop-stat-card.danger .icon-wrapper {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.1) 0%, rgba(255, 71, 87, 0.2) 100%);
    color: var(--danger-color);
}

.myshop-stat-card .value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 8px 0;
    line-height: 1.2;
}

.myshop-stat-card .label {
    font-size: 12px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

/* Section Headers - Compact */
.myshop-section {
    margin-bottom: 25px;
}

.myshop-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.myshop-section-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    position: relative;
    padding-left: 15px;
}

.myshop-section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.myshop-section-header .view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.myshop-section-header .view-all:hover {
    color: var(--primary-dark);
    gap: 8px;
}

/* Subscription Cards - Compact Grid */
.myshop-subscription-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}

.myshop-subscription-card {
    background: var(--bg-white);
    border-radius: 18px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.myshop-subscription-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.myshop-subscription-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.myshop-subscription-card:hover::before {
    transform: scaleX(1);
}

.myshop-subscription-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--border-color);
}

.myshop-subscription-card .card-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 6px 0;
}

.myshop-subscription-card .card-subtitle {
    font-size: 13px;
    color: var(--text-gray);
    margin: 0;
    font-weight: 500;
}

.myshop-subscription-card .status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.myshop-subscription-card .status-badge.active {
    background: linear-gradient(135deg, var(--success-color) 0%, #00E5A0 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(0, 200, 150, 0.3);
}

.myshop-subscription-card .status-badge.expiring {
    background: linear-gradient(135deg, var(--warning-color) 0%, #FFD700 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(255, 184, 0, 0.3);
}

.myshop-subscription-card .status-badge.expired {
    background: #E0E0E0;
    color: #6C6C6C;
}

.myshop-subscription-card .card-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.myshop-subscription-card .info-item {
    text-align: center;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s;
}

.myshop-subscription-card .info-item:hover {
    background: white;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.myshop-subscription-card .info-label {
    font-size: 11px;
    color: var(--text-gray);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.myshop-subscription-card .info-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
}

/* Progress Bar - Compact */
.myshop-progress-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 2px solid var(--border-color);
}

.myshop-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
}

.myshop-progress-bar-container {
    background: var(--bg-light);
    border-radius: 15px;
    height: 32px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.05);
}

.myshop-progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 15px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 12px;
    position: relative;
    overflow: hidden;
}

.myshop-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.myshop-progress-text {
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
}

.myshop-progress-text strong {
    font-size: 18px;
    color: var(--primary-dark);
}

/* Rental Items Grid - Compact with Pagination */
.myshop-rentals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.myshop-rental-card {
    background: var(--bg-white);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.myshop-rental-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

.myshop-rental-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.myshop-rental-card .rental-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    background: var(--bg-light);
}

.myshop-rental-card .rental-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.myshop-rental-card .rental-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.myshop-rental-card .rental-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-gray);
}

.myshop-rental-card .rental-meta-item .icon {
    width: 18px;
    text-align: center;
    color: var(--primary-color);
}

.myshop-rental-card .rental-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 18px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.myshop-rental-card .rental-status.renting {
    background: rgba(254, 0, 120, 0.1);
    color: var(--primary-color);
}

.myshop-rental-card .rental-status.shipping {
    background: rgba(95, 39, 205, 0.1);
    color: var(--info-color);
}

.myshop-rental-card .rental-status.returned {
    background: rgba(0, 200, 150, 0.1);
    color: var(--success-color);
}

/* Pagination - Modern */
.myshop-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    padding: 20px 0;
}

.myshop-pagination button,
.myshop-pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-dark);
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.myshop-pagination button:hover:not(:disabled),
.myshop-pagination .page-numbers:hover:not(.current) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.myshop-pagination .page-numbers.current,
.myshop-pagination button.active {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-color);
}

.myshop-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Quick Actions - Compact */
.myshop-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.myshop-action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.myshop-action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: left 0.3s;
    z-index: 0;
}

.myshop-action-button:hover {
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.myshop-action-button:hover::before {
    left: 0;
}

.myshop-action-button .icon,
.myshop-action-button span {
    position: relative;
    z-index: 1;
}

.myshop-action-button .icon {
    font-size: 20px;
}

/* Empty State - Compact */
.myshop-empty-state {
    text-align: center;
    padding: 60px 30px;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 2px dashed var(--border-color);
}

.myshop-empty-state .icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.6;
    display: block;
}

.myshop-empty-state h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin: 0 0 12px 0;
    font-weight: 800;
}

.myshop-empty-state p {
    color: var(--text-gray);
    margin: 0 0 25px 0;
    font-size: 15px;
}

/* Modern Inputs & Forms */
.myshop-form-group {
    margin-bottom: 20px;
}

.myshop-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.myshop-form-input,
.myshop-form-select,
.myshop-form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: all 0.3s;
    font-family: inherit;
}

.myshop-form-input:focus,
.myshop-form-select:focus,
.myshop-form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(254, 0, 120, 0.1);
}

.myshop-form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* My Account Sidebar Navigation */
.woocommerce-MyAccount-navigation,
#my-account-nav,
.account-nav {
    background: var(--bg-white);
    border-radius: 18px;
    padding: 20px 0;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.woocommerce-MyAccount-navigation ul,
#my-account-nav,
.account-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation li,
#my-account-nav li,
.account-nav li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    transition: all 0.3s;
}

.woocommerce-MyAccount-navigation li:last-child,
#my-account-nav li:last-child,
.account-nav li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation li::before,
#my-account-nav li::before,
.account-nav li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.woocommerce-MyAccount-navigation li:hover::before,
#my-account-nav li:hover::before,
.account-nav li:hover::before,
.woocommerce-MyAccount-navigation li.is-active::before,
#my-account-nav li.is-active::before,
.account-nav li.is-active::before {
    transform: scaleY(1);
}

.woocommerce-MyAccount-navigation a,
#my-account-nav a,
.account-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    position: relative;
}

.woocommerce-MyAccount-navigation a::before,
#my-account-nav a::before,
.account-nav a::before {
    content: '';
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
    flex-shrink: 0;
}

/* Icons for menu items */
.woocommerce-MyAccount-navigation li[class*="dashboard"] a::before,
#my-account-nav li[class*="dashboard"] a::before,
.account-nav li[class*="dashboard"] a::before {
    content: '🏠';
}

.woocommerce-MyAccount-navigation li[class*="orders"] a::before,
#my-account-nav li[class*="orders"] a::before,
.account-nav li[class*="orders"] a::before {
    content: '📋';
}

.woocommerce-MyAccount-navigation li[class*="downloads"] a::before,
#my-account-nav li[class*="downloads"] a::before,
.account-nav li[class*="downloads"] a::before {
    content: '⬇️';
}

.woocommerce-MyAccount-navigation li[class*="address"] a::before,
#my-account-nav li[class*="address"] a::before,
.account-nav li[class*="address"] a::before {
    content: '📍';
}

.woocommerce-MyAccount-navigation li[class*="account"] a::before,
#my-account-nav li[class*="account"] a::before,
.account-nav li[class*="account"] a::before {
    content: '👤';
}

.woocommerce-MyAccount-navigation li[class*="rewards"] a::before,
#my-account-nav li[class*="rewards"] a::before,
.account-nav li[class*="rewards"] a::before {
    content: '🎁';
}

.woocommerce-MyAccount-navigation li[class*="my-subscriptions"] a::before,
#my-account-nav li[class*="my-subscriptions"] a::before,
.account-nav li[class*="my-subscriptions"] a::before {
    content: '📦';
}

.woocommerce-MyAccount-navigation li[class*="current-rentals"] a::before,
#my-account-nav li[class*="current-rentals"] a::before,
.account-nav li[class*="current-rentals"] a::before {
    content: '🎁';
}

.woocommerce-MyAccount-navigation li[class*="customer-logout"] a::before,
#my-account-nav li[class*="customer-logout"] a::before,
.account-nav li[class*="customer-logout"] a::before {
    content: '🚪';
}

.woocommerce-MyAccount-navigation a:hover,
#my-account-nav a:hover,
.account-nav a:hover {
    color: var(--primary-color);
    background: var(--bg-light);
    padding-left: 25px;
}

.woocommerce-MyAccount-navigation a:hover::before,
#my-account-nav a:hover::before,
.account-nav a:hover::before {
    background: var(--primary-gradient);
    transform: scale(1.1);
}

.woocommerce-MyAccount-navigation li.is-active a,
#my-account-nav li.is-active a,
.account-nav li.is-active a,
.woocommerce-MyAccount-navigation li[aria-current="page"] a,
#my-account-nav li[aria-current="page"] a,
.account-nav li[aria-current="page"] a {
    color: var(--primary-color);
    background: var(--bg-light);
    font-weight: 700;
}

.woocommerce-MyAccount-navigation li.is-active a::before,
#my-account-nav li.is-active a::before,
.account-nav li.is-active a::before,
.woocommerce-MyAccount-navigation li[aria-current="page"] a::before,
#my-account-nav li[aria-current="page"] a::before,
.account-nav li[aria-current="page"] a::before {
    background: var(--primary-gradient);
    transform: scale(1.1);
}

/* User Profile Section */
.account-user,
.woocommerce-MyAccount-navigation .user-profile {
    background: var(--primary-gradient);
    border-radius: 18px;
    padding: 25px 20px;
    margin-bottom: 20px;
    color: white;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.account-user::before,
.woocommerce-MyAccount-navigation .user-profile::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

.account-user.circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.account-user .image,
.account-user img {
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
    border: 3px solid rgba(255,255,255,0.3) !important;
    margin: 0 auto 12px !important;
    display: block !important;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    object-fit: cover;
}

.account-user .user-name,
.account-user .username,
.woocommerce-MyAccount-navigation .user-profile .username {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: white;
    display: block;
}

.account-user .user-id,
.account-user .user-email,
.woocommerce-MyAccount-navigation .user-profile .user-email {
    font-size: 12px;
    opacity: 0.85;
    margin: 4px 0 0;
    position: relative;
    z-index: 1;
    color: white;
    display: block;
    font-weight: 400;
}

.account-user .user-id {
    font-style: normal;
    font-weight: 500;
}

/* Logout button special styling */
.woocommerce-MyAccount-navigation li[class*="customer-logout"],
#my-account-nav li[class*="customer-logout"],
.account-nav li[class*="customer-logout"] {
    margin-top: 8px;
    border-top: 2px solid var(--border-color);
    border-bottom: none;
}

.woocommerce-MyAccount-navigation li[class*="customer-logout"] a,
#my-account-nav li[class*="customer-logout"] a,
.account-nav li[class*="customer-logout"] a {
    color: var(--danger-color);
}

.woocommerce-MyAccount-navigation li[class*="customer-logout"] a:hover,
#my-account-nav li[class*="customer-logout"] a:hover,
.account-nav li[class*="customer-logout"] a:hover {
    color: white;
    background: var(--danger-color);
}

.woocommerce-MyAccount-navigation li[class*="customer-logout"] a:hover::before,
#my-account-nav li[class*="customer-logout"] a:hover::before,
.account-nav li[class*="customer-logout"] a:hover::before {
    background: var(--danger-color);
}

/* Responsive - Mobile First */
@media (max-width: 1200px) {
    .myshop-subscription-grid,
    .myshop-rentals-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .myshop-account-container {
        padding: 15px;
    }
    
    .myshop-hero-banner {
        padding: 25px 20px;
    }
    
    .myshop-hero-banner h1 {
        font-size: 24px;
    }
    
    .myshop-stats-grid,
    .myshop-subscription-grid,
    .myshop-rentals-grid {
        grid-template-columns: 1fr;
    }
    
    .myshop-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .woocommerce-MyAccount-navigation,
    #my-account-nav,
    .account-nav {
        border-radius: 15px;
        padding: 15px 0;
    }
    
    .woocommerce-MyAccount-navigation a,
    #my-account-nav a,
    .account-nav a {
        padding: 12px 18px;
        font-size: 13px;
    }
    
    .account-user,
    .woocommerce-MyAccount-navigation .user-profile {
        padding: 20px 15px;
    }
    
    .account-user .image,
    .account-user img,
    .woocommerce-MyAccount-navigation .user-profile .avatar {
        width: 60px !important;
        height: 60px !important;
    }
}

/* Performance Optimizations */
.myshop-stat-card,
.myshop-subscription-card,
.myshop-rental-card {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.myshop-stat-card,
.myshop-subscription-card,
.myshop-rental-card {
    animation: fadeInUp 0.5s ease-out;
}

.myshop-stat-card:nth-child(1) { animation-delay: 0.05s; }
.myshop-stat-card:nth-child(2) { animation-delay: 0.1s; }
.myshop-stat-card:nth-child(3) { animation-delay: 0.15s; }
.myshop-stat-card:nth-child(4) { animation-delay: 0.2s; }

/* Products Grid - My Account Products Page */
.myshop-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.myshop-product-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.5s ease-out;
}

.myshop-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.myshop-product-card .product-image-link {
    display: block;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--bg-light);
    position: relative;
}

.myshop-product-card .product-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.myshop-product-card:hover .product-image-link img {
    transform: scale(1.05);
}

.myshop-product-card .product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.myshop-product-card .product-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.myshop-product-card .product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.myshop-product-card .product-title a:hover {
    color: var(--primary-color);
}

.myshop-product-card .product-price {
    margin-bottom: 15px;
}

.myshop-product-card .price-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.myshop-product-card .price-free {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
}

.myshop-product-card .product-stock {
    margin-top: 8px;
    font-size: 14px;
}

.myshop-product-card .product-actions {
    margin-top: auto;
    padding-top: 15px;
}

.myshop-add-to-cart-btn {
    width: 100%;
    padding: 14px 20px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.myshop-add-to-cart-btn:hover:not(.disabled):not(.processing) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--secondary-gradient);
}

.myshop-add-to-cart-btn.free-rental {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.myshop-add-to-cart-btn.free-rental:hover:not(.disabled):not(.processing) {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
}

.myshop-add-to-cart-btn.disabled,
.myshop-add-to-cart-btn.processing {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.myshop-add-to-cart-btn.added {
    background: var(--success-color);
}

.myshop-add-to-cart-btn .btn-icon {
    font-size: 18px;
}

.myshop-add-to-cart-btn .btn-text {
    font-weight: 600;
}

/* Package Banner */
.myshop-package-banner {
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

/* Loading Overlay */
.myshop-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.myshop-loading-overlay .loading-spinner {
    text-align: center;
    color: white;
}

.myshop-loading-overlay .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.myshop-loading-overlay p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

/* Notice Messages */
.myshop-notice {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    animation: slideDown 0.3s ease-out;
}

.myshop-notice.notice-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.myshop-notice.notice-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Filter Container Styles */
.myshop-filter-container {
    background: white;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.myshop-filter-container .filters input:focus,
.myshop-filter-container .filters select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(254, 0, 120, 0.1);
}

.myshop-filter-container .filters #resetFilters:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Grid Styles for Filter Results */
.myshop-filter-container + .myshop-section .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.myshop-filter-container + .myshop-section .grid .card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.myshop-filter-container + .myshop-section .grid .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.myshop-filter-container + .myshop-section .grid .card a {
    text-decoration: none;
    color: inherit;
}

.myshop-filter-container + .myshop-section .grid .card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.myshop-filter-container + .myshop-section .grid .card .body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.myshop-filter-container + .myshop-section .grid .card .body .title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.myshop-filter-container + .myshop-section .grid .card .body .meta {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.myshop-filter-container + .myshop-section .grid .card .body .price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.myshop-filter-container + .myshop-section .grid .card .body .button {
    margin-top: auto;
    padding: 14px 20px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
}

.myshop-filter-container + .myshop-section .grid .card .body .button:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--secondary-gradient);
}

.myshop-filter-container + .myshop-section .grid .card .body .button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #ccc;
}

/* Account Products Wrapper */
.myshop-account-products-wrapper {
    width: 100%;
}

.myshop-package-info-compact {
    transition: all 0.3s ease;
}

.myshop-filter-compact .filters-compact input:focus,
.myshop-filter-compact .filters-compact select:focus {
    outline: none;
    border-color: #FE0078;
    box-shadow: 0 0 0 3px rgba(254, 0, 120, 0.1);
}

.myshop-filter-compact .filters-compact #resetFilters-account:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 0, 120, 0.3);
}

.grid-account .card-account:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.grid-account .card-account .actions-account {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.grid-account .card-account .actions-account .myshop-rent-now-btn {
    flex: 1;
    padding: 8px 12px;
    background: linear-gradient(135deg, #FE0078 0%, #FF4DA6 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.4;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-account .card-account .actions-account .myshop-rent-now-btn:hover:not(.processing):not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(254, 0, 120, 0.3);
    background: linear-gradient(135deg, #FF4DA6 0%, #FE0078 100%);
}

.grid-account .card-account .actions-account .myshop-rent-now-btn.processing {
    opacity: 0.7;
    cursor: wait;
}

.grid-account .card-account .actions-account .myshop-rent-now-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.grid-account .card-account .actions-account a {
    padding: 8px 12px;
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
}

.grid-account .card-account .actions-account a:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

/* Responsive - Products Grid */
@media (max-width: 1400px) {
    .grid-account {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 1200px) {
    .myshop-products-grid,
    .myshop-filter-container + .myshop-section .grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .grid-account {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .myshop-filter-container .filters,
    .myshop-filter-compact .filters-compact {
        grid-template-columns: 1fr 1fr 1fr auto !important;
    }
    
    .myshop-filter-container .filters #q,
    .myshop-filter-compact .filters-compact #q-account {
        grid-column: 1 / -1;
    }
}

@media (max-width: 992px) {
    .grid-account {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Notification Bell Styles */
.myshop-sidebar-user {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 50px;
}

.myshop-notification-bell {
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-gray);
}

.myshop-notification-bell:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.myshop-notification-bell .bell-icon {
    font-size: 20px;
    line-height: 1;
}

.myshop-notification-bell .bell-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #e41e3f;
    color: white;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    padding: 0 4px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.myshop-notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    max-width: calc(100vw - 40px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.myshop-notification-dropdown.active {
    display: block;
    animation: myshop-dropdown-fade-in 0.2s ease-out;
}

@keyframes myshop-dropdown-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.myshop-notification-dropdown-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light);
}

.myshop-notification-dropdown-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.myshop-mark-all-read {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.myshop-mark-all-read:hover {
    background: rgba(254, 0, 120, 0.1);
}

.myshop-notification-list {
    max-height: 500px;
    overflow-y: auto;
}

.myshop-notification-list::-webkit-scrollbar {
    width: 6px;
}

.myshop-notification-list::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.myshop-notification-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.myshop-notification-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-gray);
}

.myshop-notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-gray);
}

.myshop-notification-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.myshop-notification-empty p {
    margin: 0;
    font-size: 14px;
}

.myshop-notification-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.myshop-notification-item:hover {
    background: var(--bg-light);
}

.myshop-notification-item.unread {
    background: rgba(254, 0, 120, 0.03);
}

.myshop-notification-item.read {
    opacity: 0.7;
}

.myshop-notification-item:last-child {
    border-bottom: none;
}

.notification-item-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

.myshop-notification-item.read .notification-item-icon {
    background: var(--text-gray);
    opacity: 0.5;
}

.notification-item-content {
    flex: 1;
    min-width: 0;
}

.notification-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.4;
}

.myshop-notification-item.read .notification-item-title {
    font-weight: 500;
}

.notification-item-message {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.4;
    margin-bottom: 6px;
}

.notification-item-time {
    font-size: 11px;
    color: var(--text-gray);
    opacity: 0.7;
}

.notification-item-unread-dot {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
}

/* Click outside to close */
.myshop-notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: none;
}

.myshop-notification-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .myshop-notification-dropdown {
        width: calc(100vw - 20px);
        right: -10px;
    }
    
    .myshop-notification-bell-wrapper {
        position: static;
        margin-left: auto;
    }
    
    .myshop-sidebar-user {
        display: flex;
        align-items: center;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .myshop-products-grid,
    .myshop-filter-container + .myshop-section .grid,
    .grid-account {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .myshop-product-card .product-image-link,
    .myshop-filter-container + .myshop-section .grid .card img,
    .grid-account .card-account img {
        height: 200px;
    }
    
    .myshop-package-banner,
    .myshop-package-info-compact {
        padding: 15px;
    }
    
    .myshop-package-banner > div,
    .myshop-package-info-compact {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .myshop-filter-container,
    .myshop-filter-compact {
        padding: 15px;
    }
    
    .myshop-filter-container .filters,
    .myshop-filter-compact .filters-compact {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .myshop-filter-container .filters #resetFilters,
    .myshop-filter-compact .filters-compact #resetFilters-account {
        width: 100%;
    }
    
    .grid-account .card-account .actions-account {
        flex-direction: column;
    }
    
    .grid-account .card-account .actions-account button,
    .grid-account .card-account .actions-account a {
        width: 100%;
    }
}