/* Стили для онлайн статистики - White Glassmorphism */
.online-stats-container {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.online-stats-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    pointer-events: none;
}

.online-stats-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
    pointer-events: none;
    opacity: 0.3;
}

.online-stats-title {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.online-stats-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    opacity: 0.6;
}

.online-stats-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 16px;
    pointer-events: none;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.6) 50%, 
        transparent 100%);
    border-radius: 16px 16px 0 0;
}

.stat-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
}

.stat-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.stat-icon {
    width: 28px;
    height: 28px;
    margin-right: 12px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.stat-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #4a5568;
    margin: 0;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
    line-height: 1;
}

.stat-description {
    font-size: 14px;
    color: #718096;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.online-users-list {
    max-height: 320px;
    overflow-y: auto;
    margin-top: 20px;
    position: relative;
    z-index: 2;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.online-users-list::-webkit-scrollbar {
    width: 6px;
}

.online-users-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.online-users-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.online-users-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.online-user-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.2s ease;
    position: relative;
}

.online-user-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.online-user-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding-left: 8px;
    padding-right: 8px;
}

.online-user-item:hover::before {
    opacity: 1;
}

.online-user-item:last-child {
    border-bottom: none;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 15px;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 15px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    margin-bottom: 2px;
}

.user-page {
    font-size: 13px;
    color: #718096;
    text-decoration: none;
    transition: color 0.2s ease;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.user-page:hover {
    color: #667eea;
}

.user-time {
    font-size: 11px;
    color: #a0aec0;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.page-stats-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.page-stats-table th,
.page-stats-table td {
    text-align: left;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-stats-table th {
    background: rgba(255, 255, 255, 0.2);
    font-weight: 700;
    color: #2d3748;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.page-stats-table th:first-child {
    border-top-left-radius: 12px;
}

.page-stats-table th:last-child {
    border-top-right-radius: 12px;
}

.page-stats-table td {
    font-size: 13px;
    color: #4a5568;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.page-stats-table tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

.page-stats-table tr:last-child td {
    border-bottom: none;
}

.page-url {
    color: #667eea;
    text-decoration: none;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-url:hover {
    color: #764ba2;
    text-shadow: 0 1px 4px rgba(102, 126, 234, 0.3);
}

.visit-count {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    color: #5a67d8;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.unique-count {
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.2) 0%, rgba(102, 126, 234, 0.2) 100%);
    color: #805ad5;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(118, 75, 162, 0.2);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.stats-refresh {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #4a5568;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.stats-refresh:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.2) 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    color: #667eea;
    border-color: rgba(102, 126, 234, 0.3);
}

.stats-refresh:before {
    content: "🔄";
    margin-right: 8px;
    filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.8));
}

.online-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    border-radius: 50%;
    margin-right: 10px;
    animation: glassPulse 2s infinite;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

@keyframes glassPulse {
    0% {
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.4), 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.4), 0 0 0 15px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.4), 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Дополнительные glassmorphism эффекты */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
}

/* Floating particles effect для фона */
.online-stats-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
    pointer-events: none;
    opacity: 0.3;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* Improved form elements for admin */
.form-table input[type="number"],
.form-table input[type="text"] {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 10px 15px;
    color: #2d3748;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-table input[type="number"]:focus,
.form-table input[type="text"]:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

/* Glassmorphism button styles */
.button-primary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 25px;
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.button-primary:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Enhanced loading states */
.loading-shimmer {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.0) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0.0) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Enhanced hover effects for interactive elements */
.online-user-item,
.page-stats-table tr {
    position: relative;
}

.online-user-item::before,
.page-stats-table tr::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.online-user-item:hover::before,
.page-stats-table tr:hover::before {
    opacity: 1;
}

/* Improved scrollbar for all containers */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Адаптивность */
@media (max-width: 768px) {
    .online-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .page-url {
        max-width: 200px;
    }
    
    .page-stats-table {
        font-size: 12px;
    }
    
    .page-stats-table th,
    .page-stats-table td {
        padding: 8px 5px;
    }
}

/* Стили для админ панели */
.online-stats-admin {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.online-stats-admin::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    pointer-events: none;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 25px;
    position: relative;
    z-index: 2;
}

.admin-stat-card {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 16px;
    pointer-events: none;
}

.admin-stat-card:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.admin-stat-card h3 {
    margin-top: 0;
    color: #2d3748;
    font-size: 20px;
    font-weight: 700;
    padding-bottom: 15px;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.admin-stat-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Стили для виджета */
.online-stats-widget {
    font-size: 14px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.online-stats-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 12px;
    pointer-events: none;
}

.widget-stat-item {
    margin-bottom: 18px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 2;
    transition: all 0.2s ease;
}

.widget-stat-item:hover {
    background: rgba(255, 255, 255, 0.25);
}

.widget-stat-item:last-child {
    margin-bottom: 0;
}

.widget-stat-item h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #2d3748;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.widget-pages-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.widget-pages-list li {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.widget-pages-list li:hover {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    margin: 0 -8px 8px -8px;
}

.widget-pages-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget-pages-list a {
    color: #667eea;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.widget-pages-list a:hover {
    color: #764ba2;
}

.widget-visit-count {
    color: #718096;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 6px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Стили для WooCommerce статистики */
.woocommerce-stats .sales-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.sales-metric {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.sales-metric:hover {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.metric-value {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.metric-label {
    font-size: 12px;
    color: #718096;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Стили для списка заказов */
.recent-orders {
    margin-top: 20px;
}

.orders-list {
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.orders-list::-webkit-scrollbar {
    width: 6px;
}

.orders-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.orders-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.order-item {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.order-item:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.order-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-id {
    font-weight: 700;
    color: #667eea;
    font-size: 14px;
}

.order-status {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-completed {
    background: rgba(72, 187, 120, 0.2);
    color: #38a169;
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.status-processing {
    background: rgba(237, 137, 54, 0.2);
    color: #dd6b20;
    border: 1px solid rgba(237, 137, 54, 0.3);
}

.order-total {
    font-weight: 700;
    color: #2d3748;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.order-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.customer-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.customer-info strong {
    color: #2d3748;
    font-size: 14px;
    font-weight: 600;
}

.customer-email {
    color: #718096;
    font-size: 12px;
}

.order-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.order-date {
    color: #718096;
    font-size: 12px;
    font-weight: 500;
}

.items-count {
    color: #667eea;
    font-size: 11px;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.order-items {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.order-item-product {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
}

.order-item-product:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.product-name {
    color: #2d3748;
    font-weight: 500;
    flex: 1;
    margin-right: 10px;
}

.product-qty {
    color: #718096;
    font-weight: 600;
    margin-right: 10px;
    min-width: 30px;
}

.product-total {
    color: #667eea;
    font-weight: 700;
    min-width: 60px;
    text-align: right;
}

/* Responsive для WooCommerce блоков */
@media (max-width: 768px) {
    .sales-summary {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .order-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .order-meta {
        align-items: flex-start;
    }
    
    .order-item-product {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 8px 0;
    }
    
    .product-total {
        align-self: flex-end;
    }
}

/* Стили для статистики покупателей */
.customers-stats .customers-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.customer-metric {
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.customer-metric:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Стили для топ товаров */
.top-products .products-list {
    max-height: 300px;
    overflow-y: auto;
}

.product-item {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.product-item:hover {
    background: rgba(255, 255, 255, 0.3);
}

.product-item:last-child {
    margin-bottom: 0;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
    line-height: 1.3;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.product-quantity {
    color: #667eea;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.15);
    padding: 3px 8px;
    border-radius: 6px;
}

.product-sales {
    color: #38a169;
    font-weight: 700;
    background: rgba(56, 161, 105, 0.15);
    padding: 3px 8px;
    border-radius: 6px;
}

/* Адаптивность для новых блоков */
@media (max-width: 768px) {
    .customers-summary {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
