/**
 * Planet Market CSS - Modern Premium Design
 * Gradients, Glassmorphism, Smooth Animations
 */

:root {
    /* Modern color palette */
    --pm-bg-primary: #f8fafc;
    --pm-bg-secondary: #ffffff;
    --pm-bg-tertiary: #f1f5f9;
    --pm-bg-hover: #e2e8f0;
    --pm-bg-active: #cbd5e1;

    --pm-text-primary: #0f172a;
    --pm-text-secondary: #64748b;
    --pm-text-tertiary: #94a3b8;
    --pm-text-inverse: #ffffff;

    --pm-border: #e2e8f0;
    --pm-border-focus: #6366f1;

    --pm-primary: #0f172a;
    --pm-primary-hover: #1e293b;
    --pm-secondary: #f8fafc;
    --pm-secondary-hover: #e2e8f0;

    /* Gradient colors */
    --pm-gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --pm-gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --pm-gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --pm-gradient-warning: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);

    /* Solid colors */
    --pm-success: #10b981;
    --pm-error: #ef4444;
    --pm-warning: #f59e0b;
    --pm-info: #3b82f6;
    --pm-purple: #8b5cf6;
    --pm-pink: #ec4899;

    /* Enhanced shadows */
    --pm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --pm-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.1), 0 2px 4px -2px rgba(99, 102, 241, 0.1);
    --pm-shadow-lg: 0 20px 25px -5px rgba(99, 102, 241, 0.15), 0 10px 10px -5px rgba(99, 102, 241, 0.1);
    --pm-shadow-xl: 0 25px 50px -12px rgba(99, 102, 241, 0.25);

    /* Colored shadows */
    --pm-shadow-purple: 0 10px 40px -10px rgba(139, 92, 246, 0.3);
    --pm-shadow-pink: 0 10px 40px -10px rgba(236, 72, 153, 0.3);
    --pm-shadow-blue: 0 10px 40px -10px rgba(59, 130, 246, 0.3);

    --pm-radius-sm: 8px;
    --pm-radius: 12px;
    --pm-radius-lg: 16px;
    --pm-radius-xl: 20px;
    --pm-radius-2xl: 28px;

    --pm-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode support */
.pm-dark-theme {
    --pm-bg-primary: #0f172a;
    --pm-bg-secondary: #1e293b;
    --pm-bg-tertiary: #334155;
    --pm-bg-hover: #475569;
    --pm-bg-active: #64748b;

    --pm-text-primary: #f8fafc;
    --pm-text-secondary: #94a3b8;
    --pm-text-tertiary: #64748b;
    --pm-text-inverse: #0f172a;

    --pm-border: #334155;
    --pm-border-focus: #818cf8;

    --pm-primary: #f8fafc;
    --pm-primary-hover: #ffffff;
    --pm-secondary: #1e293b;
    --pm-secondary-hover: #334155;

    --pm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --pm-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --pm-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    --pm-shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--pm-bg-primary);
    background-image:
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--pm-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

html {
    overflow-x: hidden;
}

.pm-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== HEADER ========== */
.pm-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    padding: 16px 0;
    transition: var(--pm-transition);
}

.pm-dark-theme .pm-header {
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.pm-header:hover {
    background: rgba(255, 255, 255, 0.95);
}

.pm-dark-theme .pm-header:hover {
    background: rgba(15, 23, 42, 0.95);
}

.pm-header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
}

.pm-logo {
    font-size: 22px;
    font-weight: 800;
    background: var(--pm-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.pm-logo i {
    width: 32px;
    height: 32px;
    background: var(--pm-gradient-primary);
    color: white;
    padding: 6px;
    border-radius: 10px;
}

/* Search */
.pm-search {
    flex: 1;
    max-width: 450px;
    position: relative;
}

.pm-search input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid transparent;
    border-radius: var(--pm-radius-lg);
    background: var(--pm-bg-secondary);
    color: var(--pm-text-primary);
    font-size: 15px;
    transition: var(--pm-transition);
    box-shadow: var(--pm-shadow-sm);
}

.pm-search input:focus {
    outline: none;
    background: white;
    border-color: var(--pm-border-focus);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), var(--pm-shadow);
}

.pm-dark-theme .pm-search input:focus {
    background: var(--pm-bg-secondary);
}

.pm-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pm-text-tertiary);
    pointer-events: none;
    transition: var(--pm-transition);
}

.pm-search input:focus + .pm-search-icon,
.pm-search input:focus ~ .pm-search-icon {
    color: var(--pm-border-focus);
}

.pm-search-icon i {
    width: 20px;
    height: 20px;
}

/* Navigation */
.pm-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pm-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--pm-radius);
    color: var(--pm-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--pm-transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.pm-nav a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--pm-gradient-primary);
    opacity: 0;
    transition: var(--pm-transition);
    z-index: -1;
}

.pm-nav a:hover {
    color: var(--pm-text-primary);
    background: var(--pm-bg-tertiary);
}

.pm-nav a:hover::before {
    opacity: 0.1;
}

.pm-nav a.active {
    background: var(--pm-gradient-primary);
    color: white;
    box-shadow: var(--pm-shadow-purple);
}

.pm-nav a.active::before {
    opacity: 1;
}

.pm-nav i {
    width: 18px;
    height: 18px;
}

.pm-fav-count {
    background: var(--pm-gradient-accent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    box-shadow: var(--pm-shadow-pink);
}

/* Header Actions */
.pm-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile Menu Button */
.pm-mobile-menu-btn {
    display: none;
    background: var(--pm-bg-tertiary);
    border: none;
    color: var(--pm-text-primary);
    cursor: pointer;
    padding: 10px;
    border-radius: var(--pm-radius);
    transition: var(--pm-transition);
}

.pm-mobile-menu-btn:hover {
    background: var(--pm-bg-hover);
    transform: scale(1.05);
}

.pm-mobile-menu-btn i {
    width: 24px;
    height: 24px;
}

/* Mobile Navigation */
.pm-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.pm-nav-overlay.active {
    display: block;
    opacity: 1;
}

.pm-nav.active {
    display: flex !important;
}

.pm-nav-close {
    display: none;
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1001;
    background: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--pm-shadow-xl);
    align-items: center;
    justify-content: center;
    transition: var(--pm-transition);
}

.pm-nav-close:hover {
    transform: scale(1.1) rotate(90deg);
}

/* ========== BUTTONS ========== */
.pm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--pm-radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--pm-transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.pm-btn i {
    width: 18px;
    height: 18px;
}

.pm-btn-primary {
    background: var(--pm-gradient-primary);
    color: white;
    box-shadow: var(--pm-shadow-purple);
}

.pm-btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    opacity: 0;
    transition: var(--pm-transition);
}

.pm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -10px rgba(99, 102, 241, 0.4);
}

.pm-btn-primary:hover::before {
    opacity: 1;
}

.pm-btn-primary:active {
    transform: translateY(0);
}

.pm-btn-secondary {
    background: var(--pm-bg-secondary);
    color: var(--pm-text-primary);
    border: 2px solid var(--pm-border);
    box-shadow: var(--pm-shadow-sm);
}

.pm-btn-secondary:hover {
    border-color: var(--pm-border-focus);
    background: var(--pm-bg-tertiary);
    transform: translateY(-1px);
}

.pm-btn-ghost {
    background: transparent;
    color: var(--pm-text-secondary);
    border: none;
}

.pm-btn-ghost:hover {
    background: var(--pm-bg-hover);
    color: var(--pm-text-primary);
}

.pm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========== FILTERS ========== */
.pm-filters {
    background: var(--pm-bg-secondary);
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius-xl);
    padding: 24px;
    margin-bottom: 36px;
    box-shadow: var(--pm-shadow);
    backdrop-filter: blur(10px);
}

.pm-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.pm-filters-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--pm-text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pm-filters-title i {
    color: var(--pm-purple);
}

.pm-filter-section {
    margin-bottom: 24px;
}

.pm-filter-section:last-child {
    margin-bottom: 0;
}

.pm-filter-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--pm-text-secondary);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.pm-filter-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pm-filter-item {
    padding: 10px 18px;
    border: 2px solid var(--pm-border);
    border-radius: var(--pm-radius);
    background: var(--pm-bg-primary);
    color: var(--pm-text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--pm-transition);
    position: relative;
    overflow: hidden;
}

.pm-filter-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--pm-gradient-primary);
    opacity: 0;
    transition: var(--pm-transition);
    z-index: -1;
}

.pm-filter-item:hover {
    border-color: var(--pm-border-focus);
    transform: translateY(-2px);
    box-shadow: var(--pm-shadow);
}

.pm-filter-item.active {
    background: var(--pm-gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--pm-shadow-purple);
}

.pm-filter-item.active::before {
    opacity: 1;
}

.pm-filter-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--pm-border);
    border-radius: var(--pm-radius);
    background: var(--pm-bg-primary);
    color: var(--pm-text-primary);
    font-size: 15px;
    transition: var(--pm-transition);
}

.pm-filter-input:focus {
    outline: none;
    border-color: var(--pm-border-focus);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* ========== SORT ========== */
.pm-sort {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pm-sort-label {
    font-size: 14px;
    color: var(--pm-text-secondary);
    font-weight: 600;
}

.pm-sort-select {
    padding: 10px 40px 10px 16px;
    border: 2px solid var(--pm-border);
    border-radius: var(--pm-radius);
    background: var(--pm-bg-primary);
    color: var(--pm-text-primary);
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: var(--pm-transition);
}

.pm-sort-select:focus {
    outline: none;
    border-color: var(--pm-border-focus);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* ========== PRODUCTS GRID ========== */
.pm-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    min-height: 400px;
}

.pm-product-card {
    background: var(--pm-bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--pm-radius-xl);
    overflow: hidden;
    transition: var(--pm-transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    word-wrap: break-word;
    box-shadow: var(--pm-shadow);
    position: relative;
}

.pm-product-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--pm-radius-xl);
    background: var(--pm-gradient-primary);
    opacity: 0;
    z-index: -1;
    transition: var(--pm-transition);
}

.pm-product-card:hover {
    border-color: transparent;
    box-shadow: var(--pm-shadow-xl);
    transform: translateY(-8px);
}

.pm-product-card:hover::before {
    opacity: 0.3;
}

.pm-product-image {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    overflow: hidden;
    flex-shrink: 0;
    min-height: 140px;
}

.pm-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pm-product-card:hover .pm-product-image img {
    transform: scale(1.1);
}

.pm-product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 14px;
    border-radius: var(--pm-radius);
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    box-shadow: var(--pm-shadow-sm);
}

.pm-product-badge.discount {
    background: var(--pm-gradient-accent);
    color: white;
}

.pm-product-badge.new {
    background: var(--pm-gradient-success);
    color: white;
}

.pm-product-favorite {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--pm-transition);
    z-index: 2;
    border: none;
    color: var(--pm-text-tertiary);
    box-shadow: var(--pm-shadow);
}

.pm-product-favorite:hover {
    background: white;
    transform: scale(1.15);
    box-shadow: var(--pm-shadow-lg);
}

.pm-product-favorite.active {
    color: var(--pm-pink);
    background: white;
}

.pm-product-favorite i {
    width: 22px;
    height: 22px;
    fill: none;
    transition: var(--pm-transition);
}

.pm-product-favorite.active i {
    fill: currentColor;
}

.pm-product-content {
    padding: 18px;
}

.pm-product-category {
    font-size: 12px;
    color: var(--pm-purple);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pm-product-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: var(--pm-text-primary);
}

.pm-product-title a {
    color: inherit;
    text-decoration: none;
    word-wrap: break-word;
}

.pm-product-title a:hover {
    color: var(--pm-border-focus);
}

.pm-product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
}

.pm-product-price-current {
    font-size: 22px;
    font-weight: 800;
    background: var(--pm-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pm-product-price-old {
    font-size: 15px;
    color: var(--pm-text-tertiary);
    text-decoration: line-through;
    font-weight: 500;
}

.pm-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--pm-border);
}

.pm-product-views {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--pm-text-secondary);
    font-weight: 500;
}

.pm-product-views i {
    width: 16px;
    height: 16px;
}

/* ========== EMPTY STATE ========== */
.pm-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 20px;
    background: var(--pm-bg-secondary);
    border-radius: var(--pm-radius-xl);
    border: 2px dashed var(--pm-border);
}

.pm-empty-icon {
    font-size: 72px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.pm-empty-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--pm-text-primary);
}

.pm-empty-text {
    color: var(--pm-text-secondary);
    font-size: 15px;
}

/* ========== LOADING ========== */
.pm-loading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px;
}

.pm-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--pm-border);
    border-top-color: var(--pm-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== AUTH MODAL ========== */
.pm-auth-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s;
}

.pm-auth-modal.active {
    display: flex;
    opacity: 1;
}

.pm-auth-content {
    background: var(--pm-bg-secondary);
    border-radius: var(--pm-radius-2xl);
    padding: 36px;
    max-width: 460px;
    width: 100%;
    box-shadow: var(--pm-shadow-xl);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.pm-auth-content::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--pm-radius-2xl);
    background: var(--pm-gradient-primary);
    opacity: 0.1;
    z-index: -1;
}

.pm-auth-title {
    font-size: 26px;
    font-weight: 800;
    background: var(--pm-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
}

.pm-auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    background: var(--pm-bg-tertiary);
    padding: 4px;
    border-radius: var(--pm-radius);
}

.pm-auth-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    color: var(--pm-text-secondary);
    cursor: pointer;
    border-radius: var(--pm-radius-sm);
    transition: var(--pm-transition);
}

.pm-auth-tab:hover {
    color: var(--pm-text-primary);
}

.pm-auth-tab.active {
    background: var(--pm-bg-secondary);
    color: var(--pm-purple);
    box-shadow: var(--pm-shadow-sm);
}

.pm-yandex-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 24px;
    background: #fccc00;
    color: #000;
    border: none;
    border-radius: var(--pm-radius);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--pm-transition);
    margin-bottom: 20px;
    box-shadow: var(--pm-shadow);
}

.pm-yandex-btn:hover {
    background: #e6b800;
    transform: translateY(-2px);
    box-shadow: var(--pm-shadow-lg);
}

.pm-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--pm-text-tertiary);
    font-size: 13px;
    font-weight: 500;
}

.pm-divider::before,
.pm-divider::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid var(--pm-border);
}

.pm-divider span {
    padding: 0 20px;
}

.pm-auth-form {
    display: none;
}

.pm-auth-form.active {
    display: block;
}

.pm-form-group {
    margin-bottom: 20px;
}

.pm-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--pm-text-secondary);
    margin-bottom: 10px;
}

.pm-form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--pm-border);
    border-radius: var(--pm-radius);
    background: var(--pm-bg-primary);
    color: var(--pm-text-primary);
    font-size: 15px;
    transition: var(--pm-transition);
}

.pm-form-input:focus {
    outline: none;
    border-color: var(--pm-border-focus);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), var(--pm-shadow);
}

/* ========== TOAST ========== */
.pm-toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    padding: 16px 24px;
    background: var(--pm-bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--pm-radius-lg);
    box-shadow: var(--pm-shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pm-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.pm-toast.success {
    border-color: var(--pm-success);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.pm-toast.error {
    border-color: var(--pm-error);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

/* ========== DASHBOARD ========== */
.pm-dashboard {
    padding-bottom: 40px;
}

.pm-dashboard-hero {
    background: var(--pm-gradient-primary);
    border-radius: var(--pm-radius-2xl);
    padding: 48px;
    color: white;
    margin-bottom: 40px;
    box-shadow: var(--pm-shadow-purple);
    position: relative;
    overflow: hidden;
}

.pm-dashboard-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.pm-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.pm-dashboard-stat-card {
    background: var(--pm-bg-secondary);
    border: 2px solid var(--pm-border);
    border-radius: var(--pm-radius-xl);
    padding: 28px;
    text-align: center;
    transition: var(--pm-transition);
    box-shadow: var(--pm-shadow);
}

.pm-dashboard-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pm-shadow-lg);
}

.pm-dashboard-stat-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--pm-radius-lg);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.pm-dashboard-stat-card:nth-child(1) .pm-dashboard-stat-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.pm-dashboard-stat-card:nth-child(2) .pm-dashboard-stat-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.pm-dashboard-stat-card:nth-child(3) .pm-dashboard-stat-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.pm-dashboard-stat-value {
    font-size: 36px;
    font-weight: 800;
    background: var(--pm-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.pm-dashboard-stat-label {
    color: var(--pm-text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== AUTH REQUIRED ========== */
.pm-auth-required {
    text-align: center;
    padding: 80px 40px;
    background: var(--pm-bg-secondary);
    border-radius: var(--pm-radius-2xl);
    border: 2px dashed var(--pm-border);
}

.pm-auth-required h2 {
    font-size: 28px;
    font-weight: 800;
    background: var(--pm-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.pm-auth-required p {
    color: var(--pm-text-secondary);
    font-size: 16px;
    margin-bottom: 28px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .pm-products {
        grid-template-columns: repeat(3, 1fr);
    }

    .pm-dashboard-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .pm-container {
        padding: 0 20px;
    }

    .pm-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .pm-product-card {
        border-radius: var(--pm-radius-lg);
    }

    .pm-product-content {
        padding: 14px;
    }

    .pm-product-title {
        font-size: 14px;
    }

    .pm-dashboard-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pm-dashboard-hero {
        padding: 32px 24px;
    }

    .pm-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--pm-bg-secondary);
        flex-direction: column;
        padding: 80px 24px 24px;
        gap: 8px;
        align-items: flex-start;
        overflow-y: auto;
        z-index: 1000;
    }

    .pm-nav.active {
        display: flex;
    }

    .pm-nav-overlay {
        display: block;
    }

    .pm-nav-overlay.active {
        display: block;
    }

    .pm-nav-close {
        display: flex;
    }

    .pm-mobile-menu-btn {
        display: block;
    }

    .pm-search {
        display: none;
    }

    .pm-header-actions {
        display: none;
    }

    .pm-filters {
        padding: 18px;
    }

    .pm-header {
        padding: 14px 0;
    }

    .pm-logo {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .pm-container {
        padding: 0 16px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .pm-products {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .pm-header {
        padding: 12px 0;
    }

    .pm-logo {
        font-size: 18px;
    }

    .pm-logo i {
        width: 28px;
        height: 28px;
        padding: 5px;
    }

    .pm-auth-content {
        padding: 24px;
        border-radius: var(--pm-radius-xl);
        max-width: calc(100% - 32px);
        max-height: 90vh;
        overflow-y: auto;
    }

    .pm-auth-title {
        font-size: 22px;
    }

    .pm-filter-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .pm-filter-section {
        margin-bottom: 18px;
    }

    .pm-filters {
        padding: 16px;
        margin-bottom: 24px;
    }

    .pm-form-input,
    .pm-filter-input,
    .pm-sort-select,
    .pm-search input {
        font-size: 16px;
    }

    main.pm-container {
        padding: 0 16px;
    }

    .pm-dashboard-hero {
        padding: 28px 20px;
    }

    .pm-dashboard-stat-value {
        font-size: 28px;
    }

    .pm-dashboard-stat-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .pm-toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}
