/* Pro100Store - Main Styles */
/* Light Theme E-commerce Design */

:root {
    /* Colors - Light Theme */
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef1f5;
    --bg-card: #ffffff;
    --bg-hover: #f0f3f7;

    --accent: #1a1a2e;
    --accent-hover: #2d2d4a;
    --accent-dark: #0d0d14;

    --success: #00b259;
    --warning: #f4a700;

    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-muted: #8a8a9a;

    --border-color: #e0e4ea;
    --border-light: #d0d4da;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --container-max: 1400px;
    --sidebar-width: 260px;
    --header-height: 70px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    padding: 15px 0;
}

.header-top-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.header-info {
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: var(--text-secondary);
}

.header-info span {
    cursor: pointer;
    transition: color var(--transition-fast);
}

.header-info span:hover {
    color: var(--text-primary);
}

.header-search-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    flex-shrink: 0;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

.search-box {
    flex: 1;
    max-width: 600px;
    display: flex;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition-fast);
    min-width: 200px;
    /* Prevent collapse */
}

.search-box:focus-within {
    border-color: var(--accent);
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
}

.search-btn {
    padding: 12px 20px;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.search-btn:hover {
    color: var(--accent);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 20px;
    flex-shrink: 0;
    /* Prevent shrinking to stabilize search width */
    min-width: 280px;
    /* Approximate width to prevent layout shift */
    justify-content: flex-end;
}

/* Skeleton Loading */
.skeleton-loader {
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}

@keyframes skeleton-pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.6;
    }
}

.sidebar-link.skeleton {
    pointer-events: none;
    gap: 12px;
}

.skeleton-icon {
    width: 20px;
    height: 20px;
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.skeleton-text {
    height: 14px;
    width: 70%;
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.header-btn svg {
    flex-shrink: 0;
}

.support-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.support-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Fix support button when it's a <button> element */
button.support-btn {
    background: transparent;
    cursor: pointer;
}

button.support-btn:hover {
    background: var(--bg-tertiary);
}

.login-btn {
    background: var(--accent);
    color: white;
    border: 1px solid var(--accent);
}

.login-btn:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.cart-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    position: relative;
    padding-right: 20px;
}

.cart-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.cart-count {
    background: var(--warning);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
    min-width: 20px;
    text-align: center;
    transition: transform 0.2s, opacity 0.2s;
}

.cart-count:empty,
.cart-count[data-count="0"] {
    display: none;
    opacity: 0;
    transform: scale(0);
}

.auto-delivery-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.auto-delivery-badge svg {
    flex-shrink: 0;
    filter: none;
}

.auto-delivery-badge svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .header-actions {
        display: none;
    }
}

/* Main Layout */
.main {
    min-height: calc(100vh - var(--header-height) - 200px);
    padding: 30px 0;
}

.main-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: 30px;
}

/* Sidebar */
.sidebar {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    height: fit-content;
    position: -webkit-sticky;
    position: sticky;
    top: 110px;
    align-self: start;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    border: 1px solid var(--border-color);
    z-index: 90;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.sidebar-close {
    display: none;
    color: var(--text-muted);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.sidebar-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: var(--accent);
    color: white;
}

.sidebar-link-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.cat-icon-svg,
.cat-icon-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.cat-icon-svg svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Force stable search width on desktop */
@media (min-width: 1024px) {
    .search-box {
        width: 600px;
        /* Fixed width to prevent jump */
        flex: 0 0 600px;
        /* Rigid flex item */
        min-width: 600px;
    }
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 1px solid transparent;
    /* Reserve space for border */
}

/* Ensure icon inherits color and doesn't vanish */
.sidebar-link svg {
    stroke: var(--text-secondary);
    fill: none;
    transition: stroke 0.2s ease;
}

.sidebar-link:hover svg {
    stroke: var(--text-primary) !important;
}

.sidebar-link.active svg {
    stroke: white !important;
    /* Maintain visibility */
}

/* Banner Section */
.banner-section {
    margin-bottom: 40px;
    position: relative;
}

.banner-slider {
    display: flex;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.banner-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    backdrop-filter: blur(4px);
}

.banner-nav-btn:hover {
    background: white;
    color: var(--accent);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.banner-nav-btn svg {
    width: 20px;
    height: 20px;
}

.banner-nav-btn.prev {
    left: 20px;
}

.banner-nav-btn.next {
    right: 20px;
}

.banner-slide {
    min-width: 100%;
    transition: transform 500ms ease;
}

.banner-content {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-card) 100%);
    border-radius: var(--radius-xl);
    padding: 24px 60px;
    /* Reduced vertical padding, enough side padding for arrows */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center horizontally by default */
    min-height: 160px;
    /* Substantially reduced min-height */
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    text-align: center;
    /* Ensure text centers well if no image */
}

.banner-text {
    max-width: 80%;
    /* Allow text to be wider if centered */
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center badge and text items */
}

/* If image exists, revert to left-aligned layout */
.banner-content:has(.banner-image[src]:not([style*="display: none"])) {
    justify-content: space-between;
    text-align: left;
}

.banner-content:has(.banner-image[src]:not([style*="display: none"])) .banner-text {
    max-width: 50%;
    align-items: flex-start;
}

.banner-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
}

.banner-title {
    font-size: 32px !important;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.banner-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
}

.banner-image {
    position: absolute;
    right: 40px;
    bottom: 0;
    max-height: 95%;
    opacity: 0.95;
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.banner-dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
}

/* Section Headers */
.section-header {
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
}

.section-header p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Products Grid */
.products-section {
    margin-bottom: 50px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Forced 4 columns on desktop */
    gap: 24px;
    padding: 0 20px;
    /* Force consistent internal padding across all sections */
}

/* Product Card */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
}

.product-image {
    aspect-ratio: 1 / 1 !important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.product-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
}

.product-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.product-stats .stat-rating {
    color: var(--text);
}

.product-stats .stat-reviews {
    color: var(--text-muted);
}

.product-stats .stat-sales {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.12);
    padding: 4px 8px;
    border-radius: 6px;
}

.stars {
    color: var(--warning);
    font-size: 14px;
}

.rating-count {
    font-size: 13px;
    color: var(--text-muted);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
}

.product-prices {
    display: flex;
    flex-direction: column;
    gap: 3px;
    justify-content: center;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--success);
    line-height: 1;
}

.product-old-price {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
    line-height: 1;
}

.btn-buy {
    padding: 10px 20px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-buy:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.btn-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-cart:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}

.btn-cart svg {
    flex-shrink: 0;
}

/* Subscription Countdown in Account */
.sub-countdown {
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
}

.sub-countdown span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Status Colors */
.sub-countdown.active {
    border-color: rgba(34, 197, 94, 0.2);
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.sub-countdown.warning {
    border-color: rgba(245, 158, 11, 0.2);
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.sub-countdown.critical {
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.sub-countdown.expired {
    border-color: var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-muted);
    filter: grayscale(1);
}

/* Info Badges */
.info-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.badge {
    display: flex;
    align-items: center;
    gap: 16px;
}

.badge-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    color: var(--accent);
    flex-shrink: 0;
}

.product-main-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-text strong {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.badge-text span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Super Prices Section */
.super-prices {
    background: var(--bg-secondary);
    padding: 40px 0;
    /* Changed from 30px to match other sections vertically, removed horizontal */
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    margin-bottom: 50px;
}

/* Ensure container inside super-prices handles the grid width correctly */
.super-prices .products-grid {
    padding: 0 20px;
    /* Already matched by the global .products-grid rule, ensuring perfect alignment */
}

/* Catalog Grid */
.catalog-section {
    margin-bottom: 50px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.catalog-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.catalog-item:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
    transform: translateY(-2px);
}

.catalog-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-icon img {
    max-width: 100%;
    max-height: 100%;
}

.catalog-emoji {
    font-size: 40px;
    line-height: 1;
}

/* Category icon styles (image and emoji) */
.cat-icon-img {
    object-fit: contain;
    border-radius: 4px;
}

.cat-icon-img.cat-icon-sm {
    width: 20px;
    height: 20px;
}

.cat-icon-img.cat-icon-lg {
    width: 48px;
    height: 48px;
}

.cat-icon-emoji {
    line-height: 1;
}

.sidebar-link-icon .cat-icon-emoji {
    font-size: 16px;
}

.catalog-icon .cat-icon-emoji {
    font-size: 40px;
}

.catalog-item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 30px;
    margin-top: 50px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 20px;
}

.payment-label {
    font-size: 14px;
    color: var(--text-muted);
}

.payment-icons {
    display: flex;
    gap: 12px;
}

.payment-icon {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 16px;
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 8px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 90;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .catalog-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .info-badges {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 200;
        border-radius: 0;
        overflow-y: auto;
        animation: slideIn 300ms ease;
    }

    .sidebar.active {
        display: block;
    }

    .sidebar-close {
        display: block;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .banner-content {
        padding: 24px;
        min-height: 200px;
    }

    .banner-text {
        max-width: 70%;
    }

    .banner-title {
        font-size: 20px;
    }

    .banner-image {
        max-height: 80%;
        right: 20px;
        opacity: 0.7;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card {
        padding: 14px;
    }

    .info-badges {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .catalog-item {
        padding: 16px;
    }

    .catalog-icon {
        width: 48px;
        height: 48px;
    }

    .header-info {
        display: none;
    }

    .payment-methods {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-top {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .section-header h2 {
        font-size: 18px;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Category Page Specific Styles */
.category-header {
    margin-bottom: 30px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.breadcrumb a {
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb-separator {
    color: var(--border-color);
}

.category-header h1 {
    font-size: 28px;
    font-weight: 700;
}

.sort-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.sort-label {
    font-size: 14px;
    color: var(--text-muted);
}

.sort-btn {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    transition: all var(--transition-fast);
}

.sort-btn:hover,
.sort-btn.active {
    border-color: var(--accent);
    color: var(--accent);
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-list-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all var(--transition-normal);
}

.product-list-item:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
}

.product-list-image {
    aspect-ratio: 1 / 1 !important;
    width: 100%;
    max-width: 160px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    overflow: visible;
    flex-shrink: 0;
    position: relative;
}

.product-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.product-list-info {
    display: flex;
    flex-direction: column;
}

.product-list-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.product-list-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.product-list-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.product-list-price {
    text-align: right;
}

.product-list-price .product-price {
    font-size: 24px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.page-btn:hover,
.page-btn.active {
    border-color: var(--accent);
    color: var(--accent);
}

.page-btn.active {
    background: var(--accent);
    color: white;
}

/* Product Page Specific Styles */
.product-page {
    display: flex;
    flex-direction: row;
    gap: 40px;
    margin-bottom: 50px;
    align-items: start;
}

@media (max-width: 1024px) {
    .product-page {
        flex-direction: column;
        gap: 24px;
    }
}

.product-gallery {
    border-radius: var(--radius-xl);
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
    /* Center it */
}

.product-main-image {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    overflow: hidden;
    /* Remove forced tertiary background to avoid contrasting double-box */
}

.product-main-image img,
.product-page-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    object-fit: cover;
    display: block;
}

.product-details {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 30px;
    border: 1px solid var(--border-color);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.product-details-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
    padding-top: 16px;
}

.product-details-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.product-details-price {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 20px;
}

.product-details-price .product-price {
    font-size: 32px;
}

.product-buy-btn {
    display: block;
    width: fit-content;
    padding: 16px 48px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-lg);
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-fast);
    margin-bottom: 24px;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.product-buy-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 20px;
    margin-bottom: 8px;
}

.product-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.product-feature svg {
    color: var(--success);
}

/* Tabs */
.product-tabs {
    margin-bottom: 40px;
}

.tabs-header {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    padding: 6px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.tab-btn {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--accent);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.product-description {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid var(--border-color);
}

.product-description h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.product-description p,
.product-description ul {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.product-description ul {
    padding-left: 24px;
}

.product-description li {
    margin-bottom: 8px;
}

/* Reviews */
.reviews-section {
    margin-bottom: 50px;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 16px;
}

.reviews-avg {
    font-size: 48px;
    font-weight: 700;
    color: var(--success);
}

.reviews-avg-info {
    display: flex;
    flex-direction: column;
}

.btn-review {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-review:hover {
    background: var(--accent);
    color: white;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--accent);
}

.review-author-info {
    flex: 1;
}

.review-author {
    font-weight: 600;
    margin-bottom: 4px;
}

.review-date {
    font-size: 13px;
    color: var(--text-muted);
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Related Products */
.related-products {
    margin-bottom: 50px;
}

/* Admin Styles */
.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--bg-secondary);
    padding: 30px 20px;
    border-right: 1px solid var(--border-color);
}

.admin-logo {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.admin-nav-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.admin-nav-link.active {
    background: var(--accent);
    color: white;
}

.admin-content {
    padding: 30px;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-title {
    font-size: 28px;
    font-weight: 700;
}

.btn-primary {
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-primary:hover {
    background: var(--accent-hover);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.stat-card-title {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.stat-card-value {
    font-size: 32px;
    font-weight: 700;
}

.stat-card-change {
    font-size: 13px;
    color: var(--success);
    margin-top: 8px;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.admin-table th,
.admin-table td {
    padding: 16px 20px;
    text-align: left;
}

.admin-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    border-top: 1px solid var(--border-color);
    font-size: 14px;
}

.admin-table tr:hover td {
    background: var(--bg-hover);
}

.table-actions {
    display: flex;
    gap: 8px;
}

.sidebar-link-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    /* Inherit color from parent for hover/active states */
    flex-shrink: 0;
}

.cat-icon-svg svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    display: block;
}

/* Match admin-nav-link exactly */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.sidebar-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: var(--accent);
    color: white;
}

.sidebar-link:hover .sidebar-link-icon {
    color: var(--accent);
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.btn-icon.edit {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.btn-icon.edit:hover {
    background: var(--accent);
    color: white;
}

.btn-icon.delete {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.btn-icon.delete:hover {
    background: #e94560;
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid var(--border-color);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    cursor: pointer;
}

.btn-secondary {
    padding: 12px 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* File Upload */
.file-upload {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.file-upload:hover {
    border-color: var(--accent);
}

.file-upload-icon {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.file-upload-text {
    font-size: 14px;
    color: var(--text-muted);
}

.file-upload input {
    display: none;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(0, 210, 106, 0.2);
    color: var(--success);
}

.status-badge.inactive {
    background: rgba(233, 69, 96, 0.2);
    color: var(--accent);
}

.status-badge.pending {
    background: rgba(255, 193, 7, 0.2);
    color: var(--warning);
}

/* Review Modal Form */
.review-form {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 24px;
    border: 1px solid var(--border-color);
    display: none;
}

.review-form.active {
    display: block;
}

.star-rating {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.star-input {
    font-size: 24px;
    cursor: pointer;
    color: var(--border-color);
    transition: color var(--transition-fast);
}

.star-input:hover,
.star-input.active {
    color: var(--warning);
}

@media (max-width: 1024px) {
    .product-page {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        max-width: 100%;
        aspect-ratio: 1 / 1;
    }

    .product-details {
        position: static;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-list-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-list-image {
        max-width: 150px;
    }

    .product-list-actions {
        flex-direction: row;
        align-items: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
    }
}

/* Tariffs Selector */
.product-tariffs {
    margin: 20px 0;
}

.tariffs-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

/* Banner Slider & Dots */

.banner-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.banner-slide {
    min-width: 100%;
    position: relative;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px;
    background: var(--bg-card);
    height: 320px;
    color: inherit;
    text-decoration: none;
}

.banner-text {
    max-width: 50%;
    z-index: 2;
}

.banner-badge {
    display: inline-block;
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.banner-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.banner-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.banner-image {
    max-height: 280px;
    object-fit: contain;
    z-index: 1;
}

.banner-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-dot {
    width: 8px;
    height: 8px;
    background: var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    background: var(--text-primary);
    width: 24px;
    border-radius: 4px;
}

/* Toggle Switch */
.switch {
    display: inline-block;
    position: relative;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #10b981;
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.tariffs-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tariff-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 140px;
}

.tariff-btn:hover {
    border-color: var(--accent);
}

.tariff-btn.active {
    border-color: var(--accent);
    background: var(--accent-muted);
}

.tariff-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.tariff-price {
    font-size: 14px;
    color: var(--text-secondary);
}

.tariff-btn.active .tariff-price {
    color: var(--accent);
}

/* FAQ Accordion */
.product-faq h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0 24px;
    transition: all var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-question:hover {
    color: var(--accent);
}

.faq-toggle {
    font-size: 20px;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
    margin-left: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-tertiary);
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
    background: var(--accent);
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: all var(--transition-normal);
    opacity: 0;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 0 24px 0;
    opacity: 1;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: -4px;
    /* Slight visual adjustment */
}

/* Cart Button & Counter */
.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.cart-count:empty,
.cart-count[data-count="0"] {
    display: none;
}

/* Anchor Links for FAQ and Reviews */
.anchor-link {
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.anchor-link:hover {
    opacity: 0.8;
}

/* Reviews Pagination */
.reviews-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.pagination-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pagination-btn:hover {
    background: var(--bg-hover);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ==============================
   MOBILE RESPONSIVE
============================== */

@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }
}

@media (max-width: 768px) {

    /* Header adaptations */
    .header-top-content {
        flex-direction: column;
        gap: 12px;
    }

    .header-search-wrapper {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        display: flex !important;
        /* Убедимся что они видны на мобильных если были скрыты */
    }

    .auto-delivery-badge {
        order: -1;
        width: 100%;
        justify-content: center;
        font-size: 12px;
        padding: 6px 12px;
    }

    .header-btn span {
        display: none;
    }

    .header-btn {
        padding: 10px;
    }

    .search-box {
        width: 100%;
    }

    .header-info {
        display: none;
    }

    /* Mobile Categories - Horizontal Scroll */
    .mobile-categories {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding: 12px 16px;
        background: var(--bg-card);
        margin-bottom: 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .mobile-categories::-webkit-scrollbar {
        display: none;
    }

    .mobile-cat-item {
        flex-shrink: 0;
        padding: 8px 16px;
        background: var(--bg-primary);
        border-radius: var(--radius-md);
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
        cursor: pointer;
        transition: background var(--transition-fast);
    }

    .mobile-cat-item:hover,
    .mobile-cat-item.active {
        background: var(--accent);
        color: white;
    }

    /* Product Cards - 2 columns on tablet, 1 on mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Banner - smaller height */
    .banner-section {
        margin-bottom: 20px;
    }

    .banner-content {
        padding: 30px 20px;
        height: auto;
        min-height: 200px;
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .banner-text {
        max-width: 100%;
    }

    .banner-title {
        font-size: 24px;
    }

    .banner-subtitle {
        font-size: 14px;
    }

    .banner-slide img {
        max-height: 140px;
        position: static;
        margin: 0 auto;
    }

    .banner-dots {
        bottom: 12px;
    }

    /* Product Page */
    .product-page {
        display: flex;
        flex-direction: column;
    }

    .product-main {
        grid-template-columns: 1fr;
    }

    .product-image-section {
        order: -1;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 12px;
    }

    .product-card-image {
        height: 180px;
    }

    .product-card-name {
        font-size: 14px;
    }

    .product-card-price {
        font-size: 18px;
    }

    .tariff-btn {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* Product Buttons */
.product-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.product-buy-btn {
    width: 100%;
    height: 52px;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: 1px solid var(--text-primary);
    padding: 0 16px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.product-buy-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.product-cart-btn {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0 16px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    box-sizing: border-box;
}

.product-cart-btn:hover {
    background: var(--bg-hover);
    border-color: var(--text-primary);
}

.product-cart-btn svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.cart-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.cart-notification svg {
    color: #10b981;
}

.cart-notification-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    margin-left: 8px;
}

.cart-notification-link:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .product-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .product-buy-btn,
    .product-cart-btn {
        width: 100%;
        padding: 16px;
    }

    .cart-notification {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Product List Buttons (Category Page) */
.product-list-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    width: 100%;
}

.product-list-buttons .btn-buy {
    flex: 1;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    background: var(--text-primary);
    color: var(--bg-primary);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    transition: opacity 0.2s;
}

.product-list-buttons .btn-buy:hover {
    opacity: 0.9;
}

.btn-cart-list {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-cart-list:hover {
    background: var(--bg-hover);
    border-color: var(--success);
}

/* Confirmation Error Styles */
.confirmation-error {
    color: #dc2626 !important;
    animation: shake 0.4s ease-in-out;
}

.confirmation-checkbox.error {
    outline: 2px solid #dc2626;
    outline-offset: 1px;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-4px);
    }

    40% {
        transform: translateX(4px);
    }

    60% {
        transform: translateX(-2px);
    }

    80% {
        transform: translateX(2px);
    }
}

/* ========== Chat Layout ========== */
.chat-layout {
    display: grid;
    grid-template-columns: 320px 1fr 340px;
    height: calc(100vh - 80px);
    gap: 0;
}

.chat-sidebar {
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.chat-sidebar-header h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.chat-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.chat-filter input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.chat-conversations {
    flex: 1;
    overflow-y: auto;
}

.chat-conv-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.chat-conv-item:hover {
    background: var(--bg-hover);
}

.chat-conv-item.active {
    background: var(--bg-tertiary);
}

.chat-conv-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--accent);
    font-size: 14px;
    flex-shrink: 0;
}

.chat-conv-info {
    flex: 1;
    min-width: 0;
}

.chat-conv-email {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-conv-preview {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-conv-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.chat-conv-time {
    font-size: 11px;
    color: var(--text-muted);
}

.chat-conv-badge {
    background: var(--success);
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chat Messages Area */
.chat-main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-main-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-main-header h3 {
    font-size: 15px;
    font-weight: 600;
}

.chat-main-header .chat-detail-link {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
}

.chat-main-header .chat-detail-link:hover {
    color: var(--text-primary);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-date-divider {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    padding: 8px 0;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
}

.message-bubble.client {
    align-self: flex-start;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.message-bubble.admin {
    align-self: flex-end;
    background: var(--accent);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 11px;
    margin-top: 4px;
    opacity: 0.6;
}

.message-bubble.admin .message-time {
    text-align: right;
}

/* Chat Input */
.chat-input-area {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-input-area input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
}

.chat-input-area input:focus {
    outline: none;
    border-color: var(--accent);
}

.chat-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    opacity: 0.85;
}

/* Chat Info Panel (Right Sidebar) */
.chat-info {
    border-left: 1px solid var(--border-color);
    padding: 24px;
    overflow-y: auto;
}

.chat-info-section {
    margin-bottom: 24px;
}

.chat-info-section h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.chat-info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}

.chat-info-row .label {
    color: var(--text-muted);
    font-weight: 500;
}

.chat-info-row .value {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
    max-width: 60%;
    word-break: break-all;
}

/* Chat Empty State */
.chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 15px;
    gap: 12px;
}

.chat-empty svg {
    width: 64px;
    height: 64px;
    stroke: var(--border-color);
}

/* ========== Order Detail Page ========== */
.order-detail-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 32px;
    margin-bottom: 24px;
}

.order-detail-card h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.order-detail-table {
    width: 100%;
}

.order-detail-table tr {
    border-bottom: 1px solid var(--border-color);
}

.order-detail-table tr:last-child {
    border-bottom: none;
}

.order-detail-table td {
    padding: 14px 0;
    font-size: 14px;
    vertical-align: top;
}

.order-detail-table td:first-child {
    font-weight: 600;
    color: var(--text-secondary);
    width: 200px;
    padding-right: 24px;
}

.order-detail-table td:last-child {
    color: var(--text-primary);
}

.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: flex-start;
}

.order-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}

.order-action-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
}

.order-action-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.order-action-btn .arrow {
    margin-left: auto;
    color: var(--text-muted);
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.delivered {
    background: #dcfce7;
    color: #16a34a;
}

.status-badge.pending {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.failed {
    background: #fee2e2;
    color: #dc2626;
}

/* ========== Settings Page ========== */
.settings-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 32px;
    margin-bottom: 24px;
}

.settings-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.settings-section p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.settings-form-group {
    margin-bottom: 20px;
}

.settings-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.settings-form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    box-sizing: border-box;
}

.settings-form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.settings-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.settings-status.connected {
    background: #dcfce7;
    color: #16a34a;
}

.settings-status.disconnected {
    background: #fee2e2;
    color: #dc2626;
}

.settings-actions {
    display: flex;
    gap: 12px;
}

.settings-btn {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
}

.settings-btn.primary {
    background: var(--accent);
    color: white;
}

.settings-btn.primary:hover {
    opacity: 0.9;
}

.settings-btn.secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.settings-btn.secondary:hover {
    background: var(--bg-hover);
}

/* Responsive: Chat on smaller screens */
@media (max-width: 1200px) {
    .chat-layout {
        grid-template-columns: 280px 1fr;
    }

    .chat-info {
        display: none;
    }

    .order-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================== Live Chat Widget ========================== */
.live-chat-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    animation: liveChatPulse 2s ease-in-out infinite;
}

.live-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(99, 102, 241, 0.6);
}

.live-chat-btn.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

@keyframes liveChatPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(99, 102, 241, 0.6);
    }
}

.live-chat-window {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 380px;
    height: 520px;
    background: var(--card-bg, #fff);
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.5) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: bottom right;
}

.live-chat-window.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.live-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.live-chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-chat-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-chat-header-title {
    font-weight: 600;
    font-size: 15px;
}

.live-chat-header-status {
    font-size: 12px;
    opacity: 0.85;
}

.live-chat-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.live-chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.live-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg, #f8f9fa);
}

.live-chat-welcome {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted, #888);
    font-size: 14px;
    line-height: 1.6;
}

.live-chat-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.live-chat-bubble.client {
    align-self: flex-end;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-bottom-right-radius: 4px;
}

.live-chat-bubble.admin {
    align-self: flex-start;
    background: var(--card-bg, #fff);
    color: var(--text, #1a1a2e);
    border: 1px solid var(--border-color, #e5e7eb);
    border-bottom-left-radius: 4px;
}

.live-chat-bubble-time {
    font-size: 11px;
    margin-top: 4px;
    opacity: 0.6;
}

.live-chat-bubble.client .live-chat-bubble-time {
    text-align: right;
}

.live-chat-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color, #e5e7eb);
    background: var(--card-bg, #fff);
}

.live-chat-input-area input {
    flex: 1;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    background: var(--bg, #f8f9fa);
    color: var(--text, #1a1a2e);
    transition: border-color 0.2s;
}

.live-chat-input-area input:focus {
    border-color: #6366f1;
}

.live-chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.live-chat-send:hover {
    transform: scale(1.1);
}

/* Mobile responsiveness for live chat */
@media (max-width: 480px) {
    .live-chat-window {
        width: calc(100vw - 16px);
        height: calc(100vh - 80px);
        bottom: 8px;
        right: 8px;
        border-radius: 12px;
    }

    .live-chat-btn {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
    }
}

/* Chat Auto Greeting */
.live-chat-bubble.auto-greeting {
    background: white;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 12px;
    max-width: 85%;
    border-radius: 12px;
    border-top-left-radius: 2px;
    margin-bottom: 8px;
}

.live-chat-sender-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.sender-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.sender-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.sender-online {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
}

/* Chat Teaser */
.live-chat-teaser {
    position: fixed;
    bottom: 84px;
    right: 20px;
    background: white;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 16px;
    border-radius: 12px;
    border-bottom-right-radius: 2px;
    z-index: 9998;
    max-width: 280px;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
}

.live-chat-teaser.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.live-chat-teaser:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.teaser-content {
    align-items: flex-start;
    gap: 12px;
}

.teaser-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.teaser-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
}

.teaser-name {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 2px;
    display: block;

}

/* Admin Extensions */
.promo-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.promo-stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.promo-stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    opacity: 0.1;
}

.promo-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-light);
}

.promo-stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
    line-height: 1;
}

.promo-stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.promo-table-wrap {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.promo-table {
    width: 100%;
    border-collapse: collapse;
}

.promo-table th,
.promo-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.promo-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.promo-table tr:last-child td {
    border-bottom: none;
}

.promo-table tr:hover td {
    background: var(--bg-hover);
}

.empty-state {
    padding: 60px 40px;
    text-align: center;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-light);
}

.stat-card-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-card-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

/* Banner Items */
.banner-item-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.banner-item-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-light);
}

.banner-item-preview {
    padding: 24px;
    background: var(--bg-tertiary);
    min-height: 100px;
    position: relative;
}

.banner-item-badge {
    background: var(--accent);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.banner-item-title {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.banner-item-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.banner-item-footer {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.banner-item-actions {
    display: flex;
    gap: 8px;
}

/* Response Fixes */
@media (max-width: 768px) {
    .promo-stats {
        grid-template-columns: 1fr;
    }
}

/* Backups & Unified Module Styles */
.backup-group {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.backup-date-header {
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
}

.file-list {
    padding: 8px 0;
}

.file-item {
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.file-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.file-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.file-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-name {
    font-weight: 500;
    color: var(--text-main);
}

.file-time {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-download {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-download:hover {
    background: var(--border-color);
    color: var(--primary-color);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background: #dcfce7 !important;
    color: #16a34a !important;
}

.status-inactive {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
}

/* Admin Promotions & Stats */
.promo-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.promo-stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.promo-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-light);
}

.promo-stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
    line-height: 1;
}

.promo-stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Marketing Templates */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.template-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-card:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
    transform: translateY(-2px);
}

.template-card.selected {
    border-color: var(--accent);
    background: var(--bg-tertiary);
    box-shadow: 0 0 0 2px var(--accent);
}

/* Marketing Email Preview - LARGER SIZE */
#emailPreviewContainer {
    min-height: 500px !important;
    max-height: 700px !important;
}

#emailPreview {
    min-height: 450px !important;
    width: 100% !important;
    border: 2px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    padding: 20px !important;
    background: white !important;
}

/* Subscribers Page - Better Design */
.newsletter-form {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.newsletter-form .form-group {
    margin-bottom: 24px;
}

.newsletter-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
}

.newsletter-form textarea {
    min-height: 180px !important;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="url"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: all 0.2s;
}

.newsletter-form input:focus,
.newsletter-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.newsletter-image-upload {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.newsletter-image-upload input {
    flex: 1;
}

.newsletter-image-upload button {
    padding: 12px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.newsletter-image-upload button:hover {
    background: var(--border-color);
}

.newsletter-submit {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.newsletter-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.subscribers-list {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
    margin-top: 32px;
}

.subscribers-list h3 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.subscriber-item {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.subscriber-item:hover {
    background: var(--bg-hover);
}

.subscriber-item:last-child {
    border-bottom: none;
}

.subscriber-email {
    font-weight: 500;
    color: var(--text-main);
}

.subscriber-orders {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: 12px;
}

/* Marketing Email Preview - LARGER SIZE */
.template-preview-section {
    margin-top: 24px !important;
}

.template-preview-body {
    min-height: 600px !important;
    max-height: 800px !important;
    overflow: auto !important;
    background: white !important;
    border: 2px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    padding: 0 !important;
}

#templatePreviewFrame {
    width: 100% !important;
    min-height: 580px !important;
    border: none !important;
    display: block !important;
}

/* Subscribers Page - Better Design */
.promo-stat-card {
    background: var(--bg-card) !important;
    border-radius: var(--radius-lg) !important;
    padding: 32px !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.form-group {
    margin-bottom: 24px !important;
}

.form-label {
    display: block !important;
    margin-bottom: 10px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: var(--text-main) !important;
}

.form-control,
textarea.form-control {
    width: 100% !important;
    padding: 14px 16px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    line-height: 1.6 !important;
    transition: all 0.2s ease !important;
    background: var(--bg-primary) !important;
    color: var(--text-main) !important;
}

textarea.form-control {
    min-height: 160px !important;
    resize: vertical !important;
}

.form-control:focus,
textarea.form-control:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.btn-primary {
    padding: 10px 20px !important;
    background: #1a1d29 !important;
    color: white !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.btn-primary:hover {
    background: #252936 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.btn-primary:active {
    transform: translateY(0) !important;
}

.btn-secondary {
    padding: 12px 24px !important;
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    color: var(--text-main) !important;
}

.btn-secondary:hover {
    background: var(--border-color) !important;
    border-color: var(--text-muted) !important;
}

/* Promo Table Styling */
.promo-table {
    width: 100% !important;
    border-collapse: collapse !important;
}

.promo-table thead th {
    padding: 14px 16px !important;
    text-align: left !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    color: var(--text-muted) !important;
    border-bottom: 2px solid var(--border-color) !important;
    background: var(--bg-secondary) !important;
}

.promo-table tbody td {
    padding: 16px !important;
    border-bottom: 1px solid var(--border-color) !important;
    font-size: 14px !important;
    color: var(--text-main) !important;
}

.promo-table tbody tr:hover {
    background: var(--bg-hover) !important;
}

.promo-table tbody tr:last-child td {
    border-bottom: none !important;
}

/* Tariff Availability Styles */
.tariff-btn.out-of-stock {
    opacity: 0.6;
    cursor: not-allowed !important;
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    filter: grayscale(1);
    position: relative;
}

.tariff-btn.out-of-stock:hover {
    transform: none !important;
    border-color: var(--border-color) !important;
}

/* NOTE: .tariff-btn.out-of-stock::after was removed to prevent badge duplication.
   The badge is now added only via JavaScript in product.js */
/* Fix for product card images - make them rectangular */
.product-card .product-image {
    aspect-ratio: 1 / 1 !important;
    width: 100%;
    overflow: visible;
    border-radius: 12px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 12px;
}

/* Fix for out-of-stock badge on tariff buttons */
.tariff-btn {
    position: relative;
    /* Ensure badge is positioned relative to button */
}

.out-of-stock-badge {
    position: absolute;
    top: -6px !important;
    right: -6px !important;
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%) !important;
    color: white !important;
    font-size: 10px !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    z-index: 100 !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    pointer-events: none !important;
    white-space: nowrap !important;
    backdrop-filter: blur(4px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Account Page Refreshed Styles */
.account-page {
    min-height: 100vh;
    padding-bottom: 80px;
}

.account-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding-top: 40px;
    align-items: start;
}

/* Sidebar */
.account-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px;
    position: sticky;
    top: 100px;
}

.user-profile-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info {
    overflow: hidden;
}

.user-email {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-status {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sidebar-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.sidebar-icon {
    font-size: 18px;
}

/* Main Content */
.account-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Telegram Card */
.telegram-card {
    background: linear-gradient(135deg, #24A1DE 0%, #1a8bc4 100%);
    color: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 30px rgba(36, 161, 222, 0.2);
}

.telegram-card .card-header h2 {
    color: white;
    font-size: 24px;
    margin-bottom: 16px;
}

.telegram-body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.telegram-info p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.status-success {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

.btn-telegram {
    background: white;
    color: #24A1DE;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
    white-space: nowrap;
}

.btn-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-telegram svg path {
    fill: #24A1DE;
}

/* Orders Grid */
.orders-grid {
    display: grid;
    gap: 20px;
}

.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.2s;
}

.order-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.order-product-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.order-date {
    font-size: 13px;
    color: var(--text-secondary);
}

.order-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-status-badge.paid {
    background: #E0F2FE;
    color: #0284C7;
}

.order-status-badge.pending {
    background: #FEF3C7;
    color: #D97706;
}

.order-status-badge.delivered {
    background: #DCFCE7;
    color: #16A34A;
}

.order-status-badge.failed {
    background: #FEE2E2;
    color: #DC2626;
}

.order-card-body {
    margin-bottom: 20px;
}

.sub-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

.sub-badge.active {
    background: #F0FDF4;
    color: #16A34A;
    border: 1px solid #DCFCE7;
}

.sub-badge.critical {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FEE2E2;
}

.sub-badge.expired {
    background: #F3F4F6;
    color: #6B7280;
    border: 1px solid #E5E7EB;
}

.order-card-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

.btn-view-order {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-view-order:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .account-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .account-sidebar {
        position: static;
        display: flex;
        flex-direction: column;
    }

    .user-profile-summary {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .sidebar-link {
        white-space: nowrap;
    }
}

@media (max-width: 640px) {
    .telegram-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .sidebar-nav {
        flex-wrap: wrap;
    }

    .sidebar-link {
        flex: 1;
        justify-content: center;
    }
}

/* Improved Account Styles */
.order-meta {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.order-id {
    color: var(--text-muted);
}

.btn-view-order {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-view-order:hover {
    border-color: var(--accent, #6366f1);
    color: var(--accent, #6366f1);
    background: var(--bg-primary, #f5f7fa);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-view-order svg {
    transition: transform 0.2s;
}

.btn-view-order:hover svg {
    transform: translateX(3px);
}

/* Modern Subscription Badge */
.sub-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    border: 1px solid transparent;
}

.sub-badge .sub-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sub-badge.active {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.2);
}

.sub-badge.critical {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.2);
}

.sub-badge.expired {
    background: var(--bg-tertiary, #f3f4f6);
    color: var(--text-secondary, #4b5563);
    border-color: var(--border-color, #e5e7eb);
}

/* Header Actions - Logout */
.logout-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.logout-btn:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

/* Telegram Notification Bar (Compact) */
.telegram-notification-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #f0f7ff, #ffffff);
    border: 1px solid #bfdbfe;
    padding: 16px 20px;
    margin-bottom: 32px;
}

.telegram-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.telegram-bar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #3b82f6;
    color: white;
    border-radius: 12px;
    flex-shrink: 0;
}

.telegram-bar-content h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.telegram-bar-content p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.4;
}

.btn-telegram-compact {
    white-space: nowrap;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-telegram-compact:hover {
    background: #2563eb;
}

.btn-telegram-compact:active {
    transform: scale(0.98);
}

@media (max-width: 640px) {
    .telegram-notification-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .telegram-bar-right {
        width: 100%;
    }

    .btn-telegram-compact {
        width: 100%;
        text-align: center;
    }
}

.orders-grid {
    gap: 16px !important;
}

.order-card {
    padding: 16px !important;
}

.order-card-header {
    margin-bottom: 0 !important;
}

.order-product-name {
    font-size: 15px !important;
    margin-bottom: 2px !important;
}

.order-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.btn-view-order {
    padding: 6px 12px !important;
    font-size: 13px !important;
    border: none !important;
    background: var(--bg-tertiary) !important;
    border-radius: 6px !important;
}

.btn-view-order:hover {
    background: var(--border-color) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Review Modal Styles */
.review-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.review-modal-overlay.active {
    display: flex;
}

.review-modal {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.review-modal .close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-muted);
}

.review-modal h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 20px;
}

.review-modal label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.review-modal textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    resize: vertical;
    margin-bottom: 16px;
    font-family: inherit;
    font-size: 14px;
}

.star-rating-input {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 28px;
    cursor: pointer;
    color: #d1d5db;
}

.star-rating-input span:hover,
.star-rating-input span.active {
    color: #eab308;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #3b82f6;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}