:root {
            --primary: #005bff;
            --primary-dark: #0047cc;
            --primary-light: #e6f0ff;
            --secondary: #00d4aa;
            --accent: #f5a623;
            --danger: #ff4d4d;
            --success: #00c853;
            --warning: #ffb300;
            --dark: #001a34;
            --gray-900: #242424;
            --gray-700: #4d4d4d;
            --gray-500: #808080;
            --gray-300: #b3b3b3;
            --gray-100: #f2f2f2;
            --gray-50: #f9f9f9;
            --white: #ffffff;
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
            --shadow: 0 2px 8px rgba(0,0,0,0.08);
            --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
            --shadow-xl: 0 8px 32px rgba(0,0,0,0.16);
            --radius-sm: 8px;
            --radius: 12px;
            --radius-lg: 16px;
            --radius-xl: 24px;
            --transition: all 0.2s ease;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--gray-50);
            color: var(--gray-900);
            line-height: 1.5;
            min-height: 100vh;
        }
        
        /* Header */
        .header {
            background: var(--white);
            box-shadow: var(--shadow);
            position: sticky;
            top: 0;
            z-index: 1000;
        }
        
        .header-top {
            background: var(--dark);
            color: var(--white);
            padding: 8px 0;
            font-size: 13px;
        }
        
        .header-top-inner {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .header-top-links {
            display: flex;
            gap: 24px;
        }
        
        .header-top-links a {
            color: var(--gray-300);
            text-decoration: none;
            transition: var(--transition);
        }
        
        .header-top-links a:hover {
            color: var(--white);
        }
        
        .header-main {
            max-width: 1400px;
            margin: 0 auto;
            padding: 16px 24px;
            display: flex;
            align-items: center;
            gap: 24px;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
            flex-shrink: 0;
        }
        
        .logo-icon {
            width: 48px;
            height: 48px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            border-radius: var(--radius);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-weight: 700;
            font-size: 20px;
        }
        
        .logo-text {
            font-size: 24px;
            font-weight: 700;
            color: var(--dark);
        }
        
        .logo-text span {
            color: var(--primary);
        }
        
        .search-box {
            flex: 1;
            max-width: 600px;
            position: relative;
        }
        
        .search-box input {
            width: 100%;
            padding: 14px 20px;
            padding-right: 120px;
            border: 2px solid var(--primary);
            border-radius: var(--radius-xl);
            font-size: 15px;
            outline: none;
            transition: var(--transition);
        }
        
        .search-box input:focus {
            box-shadow: 0 0 0 4px var(--primary-light);
        }
        
        .search-btn {
            position: absolute;
            right: 6px;
            top: 50%;
            transform: translateY(-50%);
            background: var(--primary);
            color: var(--white);
            border: none;
            padding: 10px 24px;
            border-radius: var(--radius-xl);
            cursor: pointer;
            font-weight: 600;
            transition: var(--transition);
        }
        
        .search-btn:hover {
            background: var(--primary-dark);
        }
        
        .header-actions {
            display: flex;
            gap: 8px;
            align-items: center;
            overflow: auto;
        }
        
        .header-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 8px 16px;
            border-radius: var(--radius);
            text-decoration: none;
            color: var(--gray-700);
            font-size: 12px;
            transition: var(--transition);
            position: relative;
        }
        
        .header-btn:hover {
            background: var(--gray-100);
            color: var(--primary);
        }
        
        .header-btn svg {
            width: 24px;
            height: 24px;
        }
        
        .header-btn .badge {
            position: absolute;
            top: 4px;
            right: 8px;
            background: var(--danger);
            color: var(--white);
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 10px;
            font-weight: 600;
        }
        
        .btn-primary {
            background: var(--primary);
            color: var(--white);
            padding: 12px 24px;
            border-radius: var(--radius);
            text-decoration: none;
            font-weight: 600;
            border: none;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: var(--transition);
        }
        
        .btn-primary:hover {
            background: var(--primary-dark);
            transform: translateY(-1px);
            box-shadow: var(--shadow-lg);
        }
        
        .btn-secondary {
            background: var(--gray-100);
            color: var(--gray-900);
            padding: 12px 24px;
            border-radius: var(--radius);
            text-decoration: none;
            font-weight: 600;
            border: none;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: var(--transition);
        }
        
        .btn-secondary:hover {
            background: var(--gray-300);
        }
        
        .btn-outline {
            background: transparent;
            color: var(--primary);
            padding: 12px 24px;
            border-radius: var(--radius);
            text-decoration: none;
            font-weight: 600;
            border: 2px solid var(--primary);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: var(--transition);
        }
        
        .btn-outline:hover {
            background: var(--primary);
            color: var(--white);
        }
        
        .btn-danger {
            background: var(--danger);
            color: var(--white);
            padding: 12px 24px;
            border-radius: var(--radius);
            text-decoration: none;
            font-weight: 600;
            border: none;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: var(--transition);
        }
        
        .btn-danger:hover {
            background: #e60000;
        }
        
        .btn-success {
            background: var(--success);
            color: var(--white);
            padding: 12px 24px;
            border-radius: var(--radius);
            text-decoration: none;
            font-weight: 600;
            border: none;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: var(--transition);
        }
        
        .btn-success:hover {
            background: #00a344;
        }
        
        /* Container */
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 24px;
        }
        
        .container-narrow {
            max-width: 800px;
            margin: 0 auto;
            padding: 24px;
        }
        
        /* Categories */
        .categories-bar {
            background: var(--white);
            border-bottom: 1px solid var(--gray-100);
            padding: 12px 0;
        }
        
        .categories-inner {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 24px;
            display: flex;
            gap: 8px;
            overflow-x: auto;
            scrollbar-width: none;
        }
        
        .categories-inner::-webkit-scrollbar {
            display: none;
        }
        
        .category-chip {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            background: var(--gray-50);
            border-radius: var(--radius-xl);
            text-decoration: none;
            color: var(--gray-700);
            font-size: 14px;
            font-weight: 500;
            white-space: nowrap;
            transition: var(--transition);
        }
        
        .category-chip:hover {
            background: var(--primary-light);
            color: var(--primary);
        }
        
        .category-chip svg {
            width: 18px;
            height: 18px;
        }
        
        /* Hero Section */
        .hero {
            background: linear-gradient(135deg, var(--dark) 0%, #003366 100%);
            color: var(--white);
            padding: 80px 24px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        
        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        }
        
        .hero-content {
            position: relative;
            z-index: 1;
            max-width: 800px;
            margin: 0 auto;
        }
        
        .hero h1 {
            font-size: 56px;
            font-weight: 800;
            margin-bottom: 24px;
            line-height: 1.1;
        }
        
        .hero h1 span {
            background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .hero p {
            font-size: 20px;
            color: var(--gray-300);
            margin-bottom: 40px;
        }
        
        .hero-buttons {
            display: flex;
            gap: 16px;
            justify-content: center;
            flex-wrap: wrap;
        }
        
        .hero-btn {
            padding: 16px 32px;
            border-radius: var(--radius);
            font-size: 16px;
            font-weight: 600;
            text-decoration: none;
            transition: var(--transition);
        }
        
        .hero-btn-primary {
            background: var(--primary);
            color: var(--white);
        }
        
        .hero-btn-primary:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: var(--shadow-xl);
        }
        
        .hero-btn-secondary {
            background: rgba(255,255,255,0.1);
            color: var(--white);
            backdrop-filter: blur(10px);
        }
        
        .hero-btn-secondary:hover {
            background: rgba(255,255,255,0.2);
        }
        
        /* Section */
        .section {
            padding: 0;
        }

        .section_home {
            padding: 20px;
            margin-bottom: 30px;
            background: white;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow);
        }
        
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 32px;
        }
        
        .section-title {
            font-size: 28px;
            font-weight: 700;
            color: var(--dark);
        }
        
        .section-link {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .section-link:hover {
            text-decoration: underline;
        }
        
        /* Product Grid */
        .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 24px;
        }
        
        .product-card {
            background: var(--white);
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            cursor: pointer;
        }
        
        .product-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-xl);
        }
        
        .product-image {
            aspect-ratio: 16/10;
            background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-300) 100%);
            position: relative;
            overflow: hidden;
        }
        
        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }
        
        .product-card:hover .product-image img {
            transform: scale(1.05);
        }
        
        .product-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            background: var(--secondary);
            color: var(--white);
            padding: 4px 12px;
            border-radius: var(--radius-xl);
            font-size: 12px;
            font-weight: 600;
        }
        
        .product-favorite {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 36px;
            height: 36px;
            background: var(--white);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .product-favorite:hover {
            background: var(--danger);
            color: var(--white);
        }
        
        .product-info {
            padding: 16px;
        }
        
        .product-category {
            font-size: 12px;
            color: var(--gray-500);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
        }
        
        .product-title {
            font-size: 15px;
            font-weight: 600;
            color: var(--gray-900);
            margin-bottom: 12px;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .product-price-row {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
        }
        
        .product-price {
            font-size: 20px;
            font-weight: 700;
            color: var(--dark);
        }
        
        .product-old-price {
            font-size: 14px;
            color: var(--gray-500);
            text-decoration: line-through;
        }
        
        .product-discount {
            background: var(--danger);
            color: var(--white);
            padding: 2px 8px;
            border-radius: var(--radius-sm);
            font-size: 12px;
            font-weight: 600;
        }
        
        .product-seller {
            display: flex;
            align-items: center;
            gap: 8px;
            padding-top: 12px;
            border-top: 1px solid var(--gray-100);
        }
        
        .seller-avatar {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .seller-name {
            font-size: 13px;
            color: var(--gray-700);
        }
        
        .seller-rating {
            display: flex;
            align-items: center;
            gap: 4px;
            margin-left: auto;
            font-size: 13px;
            color: var(--accent);
        }
        
        .seller-rating svg {
            width: 14px;
            height: 14px;
            fill: currentColor;
        }
        
        /* Sidebar */
        .main-layout {
            display: grid;
            grid-template-columns: 1fr 320px;
            gap: 32px;
        }
        
        .sidebar {
            position: sticky;
            top: 15%;
            height: fit-content;
        }
        
        .sidebar-card {
            background: var(--white);
            border-radius: var(--radius-lg);
            padding: 24px;
            margin-bottom: 24px;
            box-shadow: var(--shadow);
        }
        
        .sidebar-title {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 16px;
            color: var(--dark);
        }
        
        /* Promoted Sellers */
        .promoted-seller {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 0;
            border-bottom: 1px solid var(--gray-100);
        }
        
        .promoted-seller:last-child {
            border-bottom: none;
        }
        
        .promoted-seller-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--primary-light);
        }
        
        .promoted-seller-info {
            flex: 1;
        }
        
        .promoted-seller-name {
            font-weight: 600;
            color: var(--gray-900);
            margin-bottom: 4px;
        }
        
        .promoted-seller-rating {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 13px;
            color: var(--accent);
        }
        
        .star {
            width: 14px;
            height: 14px;
            fill: var(--gray-300);
        }
        
        .star.filled {
            fill: var(--accent);
        }
        
        /* Forms */
        .form-card {
            background: var(--white);
            border-radius: var(--radius-lg);
            padding: 40px;
            box-shadow: var(--shadow);
            max-width: 600px;
            margin: 0 auto;
        }
        
        .form-title {
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--dark);
            text-align: center;
        }
        
        .form-subtitle {
            color: var(--gray-500);
            text-align: center;
            margin-bottom: 32px;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-label {
            display: block;
            font-size: 14px;
            font-weight: 500;
            color: var(--gray-700);
            margin-bottom: 8px;
        }
        
        .form-label span {
            color: var(--danger);
        }
        
        .form-input {
            width: 100%;
            padding: 14px 16px;
            border: 1px solid var(--gray-300);
            border-radius: var(--radius);
            font-size: 15px;
            transition: var(--transition);
            font-family: inherit;
        }
        
        .form-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-light);
        }
        
        .form-input::placeholder {
            color: var(--gray-500);
        }
        
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }
        
        .form-select {
            width: 100%;
            padding: 14px 16px;
            border: 1px solid var(--gray-300);
            border-radius: var(--radius);
            font-size: 15px;
            background: var(--white);
            cursor: pointer;
        }
        
        .form-textarea {
            min-height: 120px;
            resize: vertical;
        }
        
        .form-file {
            padding: 12px;
            border: 2px dashed var(--gray-300);
            border-radius: var(--radius);
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .form-file:hover {
            border-color: var(--primary);
            background: var(--primary-light);
        }
        
        .form-check {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            cursor: pointer;
        }
        
        .form-check input {
            width: 20px;
            height: 20px;
            margin-top: 2px;
            accent-color: var(--primary);
        }
        
        .form-check-label {
            font-size: 14px;
            color: var(--gray-700);
        }
        
        .form-check-label a {
            color: var(--primary);
        }
        
        .form-submit {
            width: 100%;
            padding: 16px;
            background: var(--primary);
            color: var(--white);
            border: none;
            border-radius: var(--radius);
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .form-submit:hover {
            background: var(--primary-dark);
        }
        
        .form-footer {
            text-align: center;
            margin-top: 24px;
            padding-top: 24px;
            border-top: 1px solid var(--gray-100);
            color: var(--gray-500);
        }
        
        .form-footer a {
            color: var(--primary);
            font-weight: 600;
        }
        
        .alert {
            padding: 16px 20px;
            border-radius: var(--radius);
            margin-bottom: 24px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .alert-success {
            background: #e8f5e9;
            color: #2e7d32;
        }
        
        .alert-error {
            background: #ffebee;
            color: #c62828;
        }
        
        /* Profile */
        .profile-header {
            background: var(--white);
            border-radius: var(--radius-lg);
            padding: 40px;
            margin-bottom: 24px;
            box-shadow: var(--shadow);
        }
        
        .profile-info {
            display: flex;
            gap: 32px;
            align-items: flex-start;
        }
        
        .profile-avatar {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid var(--primary-light);
        }
        
        .profile-details {
            flex: 1;
        }
        
        .profile-name {
            font-size: 32px;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 8px;
        }
        
        .profile-type {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 16px;
            background: var(--primary-light);
            color: var(--primary);
            border-radius: var(--radius-xl);
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 16px;
        }
        
        .profile-stats {
            display: flex;
            gap: 32px;
            margin-bottom: 16px;
        }
        
        .profile-stat {
            text-align: center;
        }
        
        .profile-stat-value {
            font-size: 24px;
            font-weight: 700;
            color: var(--dark);
        }
        
        .profile-stat-label {
            font-size: 13px;
            color: var(--gray-500);
        }
        
        .profile-rating {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .profile-rating-stars {
            display: flex;
            gap: 4px;
        }
        
        .profile-rating-stars .star {
            width: 24px;
            height: 24px;
        }
        
        .profile-rating-value {
            font-size: 20px;
            font-weight: 700;
            color: var(--accent);
        }
        
        .profile-actions {
            display: flex;
            gap: 12px;
            margin-left: auto;
            align-items: center;
        }
        
        /* Tabs */
        .tabs {
            display: flex;
            gap: 8px;
            border-bottom: 2px solid var(--gray-100);
            margin-bottom: 24px;
        }
        
        .tab {
            padding: 16px 24px;
            font-weight: 600;
            color: var(--gray-500);
            text-decoration: none;
            border-bottom: 2px solid transparent;
            margin-bottom: -2px;
            transition: var(--transition);
        }
        
        .tab:hover {
            color: var(--primary);
        }
        
        .tab.active {
            color: var(--primary);
            border-bottom-color: var(--primary);
        }
        
        /* Reviews */
        .review-card {
            background: var(--white);
            border-radius: var(--radius);
            padding: 24px;
            margin-bottom: 16px;
            box-shadow: var(--shadow-sm);
        }
        
        .review-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 12px;
        }
        
        .review-author {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .review-avatar {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .review-author-info {
            display: flex;
            flex-direction: column;
        }
        
        .review-author-name {
            font-weight: 600;
            color: var(--gray-900);
        }
        
        .review-date {
            font-size: 13px;
            color: var(--gray-500);
        }
        
        .review-rating {
            display: flex;
            gap: 4px;
        }
        
        .review-text {
            color: var(--gray-700);
            line-height: 1.6;
        }
        
        /* Admin Dashboard */
        .dashboard-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 24px;
            margin-bottom: 32px;
        }
        
        .dashboard-card {
            background: var(--white);
            border-radius: var(--radius-lg);
            padding: 24px;
            box-shadow: var(--shadow);
        }
        
        .dashboard-card-icon {
            width: 56px;
            height: 56px;
            border-radius: var(--radius);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 16px;
        }
        
        .dashboard-card-icon.blue {
            background: var(--primary-light);
            color: var(--primary);
        }
        
        .dashboard-card-icon.green {
            background: #e8f5e9;
            color: var(--success);
        }
        
        .dashboard-card-icon.orange {
            background: #fff3e0;
            color: var(--accent);
        }
        
        .dashboard-card-icon.red {
            background: #ffebee;
            color: var(--danger);
        }
        
        .dashboard-card-icon svg {
            width: 28px;
            height: 28px;
        }
        
        .dashboard-card-value {
            font-size: 32px;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 4px;
        }
        
        .dashboard-card-label {
            color: var(--gray-500);
            font-size: 14px;
        }
        
        /* Table */
        .data-table {
            width: 100%;
            background: var(--white);
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow);
        }
        
        .data-table table {
            width: 100%;
            border-collapse: collapse;
        }
        
        .data-table th {
            background: var(--gray-50);
            padding: 16px;
            text-align: left;
            font-weight: 600;
            color: var(--gray-700);
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .data-table td {
            padding: 16px;
            border-bottom: 1px solid var(--gray-100);
        }
        
        .data-table tr:last-child td {
            border-bottom: none;
        }
        
        .data-table tr:hover td {
            background: var(--gray-50);
        }
        
        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            border-radius: var(--radius-xl);
            font-size: 12px;
            font-weight: 600;
        }
        
        .status-badge::before {
            content: '';
            width: 6px;
            height: 6px;
            border-radius: 50%;
        }
        
        .status-pending {
            background: #fff3e0;
            color: #e65100;
        }
        
        .status-pending::before {
            background: #e65100;
        }
        
        .status-approved {
            background: #e8f5e9;
            color: #2e7d32;
        }
        
        .status-approved::before {
            background: #2e7d32;
        }
        
        .status-rejected {
            background: #ffebee;
            color: #c62828;
        }
        
        .status-rejected::before {
            background: #c62828;
        }
        
        /* Cart */
        .cart-item {
            display: flex;
            gap: 24px;
            padding: 24px;
            background: var(--white);
            border-radius: var(--radius-lg);
            margin-bottom: 16px;
            box-shadow: var(--shadow);
        }
        
        .cart-item-image {
            width: 120px;
            height: 80px;
            border-radius: var(--radius);
            object-fit: cover;
        }
        
        .cart-item-info {
            flex: 1;
        }
        
        .cart-item-title {
            font-weight: 600;
            color: var(--gray-900);
            margin-bottom: 8px;
        }
        
        .cart-item-seller {
            font-size: 13px;
            color: var(--gray-500);
        }
        
        .cart-item-price {
            font-size: 20px;
            font-weight: 700;
            color: var(--dark);
        }
        
        .cart-item-actions {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .cart-summary {
            background: var(--white);
            border-radius: var(--radius-lg);
            padding: 24px;
            box-shadow: var(--shadow);
        }
        
        .cart-summary-row {
            display: flex;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 1px solid var(--gray-100);
        }
        
        .cart-summary-row:last-child {
            border-bottom: none;
            font-size: 20px;
            font-weight: 700;
            color: var(--dark);
        }
        
        /* Chat Modal */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
        }
        
        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        .modal {
            background: var(--white);
            border-radius: var(--radius-lg);
            width: 90%;
            max-width: 600px;
            max-height: 80vh;
            display: flex;
            flex-direction: column;
            transform: scale(0.9);
            transition: var(--transition);
        }
        
        .modal-overlay.active .modal {
            transform: scale(1);
        }
        
        .modal-header {
            padding: 20px 24px;
            border-bottom: 1px solid var(--gray-100);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .modal-title {
            font-size: 18px;
            font-weight: 700;
        }
        
        .modal-close {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: none;
            background: var(--gray-100);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }
        
        .modal-close:hover {
            background: var(--gray-300);
        }
        
        .modal-body {
            flex: 1;
            overflow-y: auto;
            padding: 24px;
        }
        
        .modal-footer {
            padding: 20px 24px;
            border-top: 1px solid var(--gray-100);
            display: flex;
            gap: 12px;
            justify-content: flex-end;
        }
        
        /* Chat */
        .chat-messages {
            display: flex;
            flex-direction: column;
            gap: 16px;
            max-height: 400px;
            overflow-y: auto;
        }
        
        .chat-message {
            display: flex;
            gap: 12px;
            max-width: 80%;
        }
        
        .chat-message.own {
            margin-left: auto;
            flex-direction: row-reverse;
        }
        
        .chat-message-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
        }
        
        .chat-message-content {
            background: var(--gray-100);
            padding: 12px 16px;
            border-radius: var(--radius);
            border-bottom-left-radius: 4px;
        }
        
        .chat-message.own .chat-message-content {
            background: var(--primary);
            color: var(--white);
            border-bottom-left-radius: var(--radius);
            border-bottom-right-radius: 4px;
        }
        
        .chat-message-text {
            margin-bottom: 4px;
        }
        
        .chat-message-time {
            font-size: 11px;
            opacity: 0.7;
        }
        
        .chat-input {
            display: flex;
            gap: 12px;
            margin-top: 16px;
        }
        
        .chat-input input {
            flex: 1;
            padding: 12px 16px;
            border: 1px solid var(--gray-300);
            border-radius: var(--radius-xl);
            outline: none;
        }
        
        .chat-input button {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: var(--primary);
            color: var(--white);
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        /* Footer */
        .footer {
            background: var(--dark);
            color: var(--white);
            padding: 64px 0 32px;
            bottom: 0;
            width: 100%;
        }
        
        .footer-inner {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 24px;
        }
        
        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 48px;
            margin-bottom: 48px;
        }
        
        .footer-column h4 {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 20px;
        }
        
        .footer-column ul {
            list-style: none;
        }
        
        .footer-column li {
            margin-bottom: 12px;
        }
        
        .footer-column a {
            color: var(--gray-300);
            text-decoration: none;
            font-size: 14px;
            transition: var(--transition);
        }
        
        .footer-column a:hover {
            color: var(--white);
        }
        
        .footer-bottom {
            border-top: 1px solid rgba(255,255,255,0.1);
            padding-top: 32px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 16px;
        }
        
        .footer-copyright {
            color: var(--gray-500);
            font-size: 14px;
        }
        
        .footer-social {
            display: flex;
            gap: 16px;
        }
        
        .footer-social a {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255,255,255,0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            transition: var(--transition);
        }
        
        .footer-social a:hover {
            background: var(--primary);
        }
        
        /* Responsive */
        @media (max-width: 1024px) {
            .main-layout {
                grid-template-columns: 1fr;
            }
            
            .sidebar {
                position: static;
            }
            
            .hero h1 {
                font-size: 40px;
            }
        }
        
@media (max-width: 768px) {
    .header-main {
        flex-wrap: wrap;
    }
            
    .search-box {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
            
    .hero {
        padding: 48px 24px;
    }
            
    .hero h1 {
        font-size: 32px;
    }
            
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
            
    .profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
            
    .profile-actions {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
            
    .form-row {
        grid-template-columns: 1fr;
    }
            
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
        
@media (max-width: 480px) {
            .product-grid {
        grid-template-columns: 1fr;
    }
            
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
            
    .cart-item {
        flex-direction: column;
        }
            
    .cart-item-image {
        width: 100%;
        height: 160px;
    }
}
        
/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
        
.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}
        
/* Utility */
.text-center {
    text-align: center;
}
        
.mt-4 {
        margin-top: 24px;
}
        
.mb-4 {
    margin-bottom: 24px;
}
        
.hidden {
    display: none;
}

.messages-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    height: calc(100vh - 280px);
    min-height: 500px;
}
    
@media (max-width: 768px) {
    .messages-layout {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
    }
        
    .dialogs-list {
        height: 400px !important;
    }
}
    
.dialogs-list {
    height: calc(100vh - 280px) !important;
    min-height: 500px;
    overflow-y: auto;
}
    
.chat-container {
    height: calc(100vh - 280px) !important;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}
    
.messages-container {
    flex: 1;
    overflow-y: auto;
}
    
@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}
    
.loading-indicator {
    animation: pulse 1.5s infinite;
}
    
.new-message-highlight {
    animation: highlight 1s ease;
}
    
@keyframes highlight {
    0% { background-color: var(--primary-light); }
    100% { background-color: transparent; }
}
    
.dialog-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
    cursor: pointer;
}
    
.dialog-item:hover {
    background: var(--gray-50);
}
    
.dialog-item.active {
    background: var(--primary-light);
}
    
/* Стили для индикатора печатания */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--gray-500);
    margin-left: 0;
}
    
.typing-indicator span {
    width: 4px;
    height: 4px;
    background: var(--gray-500);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}
    
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
    
@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

/* Стили для контекстного меню */
.context-menu {
    position: absolute;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 4px 0;
    z-index: 1000;
    min-width: 180px;
}
    
.context-menu-item {
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}
    
.context-menu-item:hover {
    background: var(--gray-100);
}
    
.context-menu-item .menu-icon {
    font-size: 16px;
}
    
/* Индикатор редактирования */
.edited-indicator {
    font-size: 10px;
    color: var(--gray-500);
    margin-left: 4px;
    font-style: italic;
}
    
/* Стили для панели ответа */
.reply-panel {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
    
.reply-panel .reply-info {
    flex: 1;
    color: var(--gray-700);
}
    
.reply-panel .reply-sender {
    font-weight: 600;
    color: var(--primary);
}
    
.reply-panel .reply-text {
    margin-left: 8px;
    color: var(--gray-600);
    font-style: italic;
}
    
.reply-panel .close-reply {
    cursor: pointer;
    padding: 4px;
    color: var(--gray-500);
}
    
.reply-panel .close-reply:hover {
    color: var(--danger);
}
    
/* Стили для панели редактирования */
.edit-panel {
    background: #fff3e0;
    border-top: 1px solid var(--gray-200);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
    
.edit-panel .edit-info {
    flex: 1;
    color: var(--gray-700);
}
    
.edit-panel .close-edit {
    cursor: pointer;
    padding: 4px;
    color: var(--gray-500);
}
    
.edit-panel .close-edit:hover {
    color: var(--danger);
}
    
/* Стили для ответов */
.reply-container {
    margin-bottom: 8px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.03);
    border-left: 3px solid var(--primary);
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
}
    
.reply-container .reply-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    color: var(--gray-600);
}
    
.reply-container .reply-header svg {
    width: 12px;
    height: 12px;
    stroke: var(--gray-500);
}
    
.reply-container .reply-sender {
    font-weight: 600;
    color: var(--primary);
}
    
.reply-container .reply-text {
    color: var(--gray-700);
    word-break: break-word;
    font-style: italic;
}
    
/* Стили для сообщений */
.message-text {
    padding: 12px 16px;
    border-radius: var(--radius);
    word-break: break-word;
    background: var(--gray-100);
    color: var(--gray-900);
}
    
.message-item[style*="flex-direction: row-reverse"] .message-text {
    background: var(--primary);
    color: white;
}
   
/* Вложения */
.attachment-container {
    background: var(--gray-100);
    border-radius: 12px;
    padding: 12px;
    min-width: 250px;
}

.file-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 8px;
}

.upload-progress {
    position: relative;
    width: 32px;
    height: 32px;
}

.progress-circle {
    width: 32px;
    height: 32px;
    position: relative;
}

.progress-fill {
    transition: stroke-dashoffset 0.3s;
}

.cancel-upload {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--danger);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding: 0;
    z-index: 10;
}

.cancel-upload:hover {
    background: var(--danger-dark, #c82333);
}

.attachment-preview {
    opacity: 0.7;
    transition: opacity 0.3s;
}

.attachment-preview:hover {
    opacity: 1;
}

/* Сообщение с вложением */
.message-attachment {
    margin-top: 8px;
    background: var(--gray-100);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.message-attachment:hover {
    background: var(--gray-200);
}

.message-attachment-icon {
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 6px;
}

.message-attachment-info {
    flex: 1;
    min-width: 0;
}

.message-attachment-name {
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.message-attachment-size {
    font-size: 11px;
    color: var(--gray-600);
}

.message-attachment-download {
    color: var(--primary);
    font-size: 18px;
}